Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / public / vendors-ecf192bf7887d5b3781e.js
1 /*! For license information please see vendors-ecf192bf7887d5b3781e.js.LICENSE.txt */
2 (self.webpackChunkmotion_client=self.webpackChunkmotion_client||[]).push([["vendors"],{"./node_modules/@flowjs/flow.js/src/flow.js":(e,t,n)=>{var a;e=n.nmd(e),function(n,o,r){"use strict";if(n&&o){var i=n.navigator.msPointerEnabled;s.prototype={on:function(e,t){e=e.toLowerCase(),this.events.hasOwnProperty(e)||(this.events[e]=[]),this.events[e].push(t)},off:function(e,t){var n,a,o;e!==r?(e=e.toLowerCase(),t!==r?this.events.hasOwnProperty(e)&&(n=this.events[e],a=t,(o=n.indexOf(a))>-1&&n.splice(o,1)):delete this.events[e]):this.events={}},fire:function(e,t){t=Array.prototype.slice.call(arguments),e=e.toLowerCase();var n=!1;return this.events.hasOwnProperty(e)&&p(this.events[e],(function(e){n=!1===e.apply(this,t.slice(1))||n}),this),"catchall"!=e&&(t.unshift("catchAll"),n=!1===this.fire.apply(this,t)||n),!n},webkitReadDataTransfer:function(e){var t=this,n=e.dataTransfer.items.length,a=[];function o(e){e.readEntries((function(t){t.length?(n+=t.length,p(t,(function(e){if(e.isFile){var t=e.fullPath;e.file((function(e){r(e,t)}),i)}else e.isDirectory&&o(e.createReader())})),o(e)):s()}),i)}function r(e,t){e.relativePath=t.substring(1),a.push(e),s()}function i(e){throw s(),e}function s(){0==--n&&t.addFiles(a,e)}p(e.dataTransfer.items,(function(e){var t=e.webkitGetAsEntry();t?t.isFile?r(e.getAsFile(),t.fullPath):o(t.createReader()):s()}))},generateUniqueIdentifier:function(e){var t=this.opts.generateUniqueIdentifier;if("function"==typeof t)return t(e);var n=e.relativePath||e.webkitRelativePath||e.fileName||e.name;return e.size+"-"+n.replace(/[^0-9a-zA-Z_-]/gim,"")},uploadNextChunk:function(e){var t=!1;if(this.opts.prioritizeFirstAndLastChunk&&(p(this.files,(function(e){return!e.paused&&e.chunks.length&&"pending"===e.chunks[0].status()?(e.chunks[0].send(),t=!0,!1):!e.paused&&e.chunks.length>1&&"pending"===e.chunks[e.chunks.length-1].status()?(e.chunks[e.chunks.length-1].send(),t=!0,!1):void 0})),t))return t;if(p(this.files,(function(e){if(e.paused||p(e.chunks,(function(e){if("pending"===e.status())return e.send(),t=!0,!1})),t)return!1})),t)return!0;var n=!1;return p(this.files,(function(e){if(!e.isComplete())return n=!0,!1})),n||e||f((function(){this.fire("complete")}),this),!1},assignBrowse:function(e,t,n,a){e instanceof Element&&(e=[e]),p(e,(function(e){var r;"INPUT"===e.tagName&&"file"===e.type?r=e:((r=o.createElement("input")).setAttribute("type","file"),m(r.style,{visibility:"hidden",position:"absolute",width:"1px",height:"1px"}),e.appendChild(r),e.addEventListener("click",(function(){r.click()}),!1)),this.opts.singleFile||n||r.setAttribute("multiple","multiple"),t&&r.setAttribute("webkitdirectory","webkitdirectory"),p(a,(function(e,t){r.setAttribute(t,e)}));var i=this;r.addEventListener("change",(function(e){e.target.value&&(i.addFiles(e.target.files,e),e.target.value="")}),!1)}),this)},assignDrop:function(e){void 0===e.length&&(e=[e]),p(e,(function(e){e.addEventListener("dragover",this.preventEvent,!1),e.addEventListener("dragenter",this.preventEvent,!1),e.addEventListener("drop",this.onDrop,!1)}),this)},unAssignDrop:function(e){void 0===e.length&&(e=[e]),p(e,(function(e){e.removeEventListener("dragover",this.preventEvent),e.removeEventListener("dragenter",this.preventEvent),e.removeEventListener("drop",this.onDrop)}),this)},isUploading:function(){var e=!1;return p(this.files,(function(t){if(t.isUploading())return e=!0,!1})),e},_shouldUploadNext:function(){var e=0,t=!0,n=this.opts.simultaneousUploads;return p(this.files,(function(a){p(a.chunks,(function(a){if("uploading"===a.status()&&++e>=n)return t=!1,!1}))})),t&&e},upload:function(){var e=this._shouldUploadNext();if(!1!==e){this.fire("uploadStart");for(var t=!1,n=1;n<=this.opts.simultaneousUploads-e;n++)t=this.uploadNextChunk(!0)||t;t||f((function(){this.fire("complete")}),this)}},resume:function(){p(this.files,(function(e){e.isComplete()||e.resume()}))},pause:function(){p(this.files,(function(e){e.pause()}))},cancel:function(){for(var e=this.files.length-1;e>=0;e--)this.files[e].cancel()},progress:function(){var e=0,t=0;return p(this.files,(function(n){e+=n.progress()*n.size,t+=n.size})),t>0?e/t:0},addFile:function(e,t){this.addFiles([e],t)},addFiles:function(e,t){var n=[];p(e,(function(e){if((!i||i&&e.size>0)&&(e.size%4096!=0||"."!==e.name&&"."!==e.fileName)){var a=this.generateUniqueIdentifier(e);if(this.opts.allowDuplicateUploads||!this.getFromUniqueIdentifier(a)){var o=new l(this,e,a);this.fire("fileAdded",o,t)&&n.push(o)}}}),this),this.fire("filesAdded",n,t)&&(p(n,(function(e){this.opts.singleFile&&this.files.length>0&&this.removeFile(this.files[0]),this.files.push(e)}),this),this.fire("filesSubmitted",n,t))},removeFile:function(e){for(var t=this.files.length-1;t>=0;t--)this.files[t]===e&&(this.files.splice(t,1),e.abort(),this.fire("fileRemoved",e))},getFromUniqueIdentifier:function(e){var t=!1;return p(this.files,(function(n){n.uniqueIdentifier===e&&(t=n)})),t},getSize:function(){var e=0;return p(this.files,(function(t){e+=t.size})),e},sizeUploaded:function(){var e=0;return p(this.files,(function(t){e+=t.sizeUploaded()})),e},timeRemaining:function(){var e=0,t=0;return p(this.files,(function(n){n.paused||n.error||(e+=n.size-n.sizeUploaded(),t+=n.averageSpeed)})),e&&!t?Number.POSITIVE_INFINITY:e||t?Math.floor(e/t):0}},l.prototype={measureSpeed:function(){var e=Date.now()-this._lastProgressCallback;if(e){var t=this.flowObj.opts.speedSmoothingFactor,n=this.sizeUploaded();this.currentSpeed=Math.max((n-this._prevUploadedSize)/e*1e3,0),this.averageSpeed=t*this.currentSpeed+(1-t)*this.averageSpeed,this._prevUploadedSize=n}},chunkEvent:function(e,t,n){switch(t){case"progress":if(Date.now()-this._lastProgressCallback<this.flowObj.opts.progressCallbacksInterval)break;this.measureSpeed(),this.flowObj.fire("fileProgress",this,e),this.flowObj.fire("progress"),this._lastProgressCallback=Date.now();break;case"error":this.error=!0,this.abort(!0),this.flowObj.fire("fileError",this,n,e),this.flowObj.fire("error",n,this,e);break;case"success":if(this.error)return;this.measureSpeed(),this.flowObj.fire("fileProgress",this,e),this.flowObj.fire("progress"),this._lastProgressCallback=Date.now(),this.isComplete()&&(this.currentSpeed=0,this.averageSpeed=0,this.flowObj.fire("fileSuccess",this,n,e));break;case"retry":this.flowObj.fire("fileRetry",this,e)}},pause:function(){this.paused=!0,this.abort()},resume:function(){this.paused=!1,this.flowObj.upload()},abort:function(e){this.currentSpeed=0,this.averageSpeed=0;var t=this.chunks;e&&(this.chunks=[]),p(t,(function(e){"uploading"===e.status()&&(e.abort(),this.flowObj.uploadNextChunk())}),this)},cancel:function(){this.flowObj.removeFile(this)},retry:function(){this.bootstrap(),this.flowObj.upload()},bootstrap:function(){"function"==typeof this.flowObj.opts.initFileFn&&this.flowObj.opts.initFileFn(this),this.abort(!0),this.error=!1,this._prevProgress=0;var e=this.flowObj.opts.forceChunkSize?Math.ceil:Math.floor;this.chunkSize=d(this.flowObj.opts.chunkSize,this);for(var t=Math.max(e(this.size/this.chunkSize),1),n=0;n<t;n++)this.chunks.push(new u(this.flowObj,this,n))},progress:function(){if(this.error)return 1;if(1===this.chunks.length)return this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),this._prevProgress;var e=0;p(this.chunks,(function(t){e+=t.progress()*(t.endByte-t.startByte)}));var t=e/this.size;return this._prevProgress=Math.max(this._prevProgress,t>.9999?1:t),this._prevProgress},isUploading:function(){var e=!1;return p(this.chunks,(function(t){if("uploading"===t.status())return e=!0,!1})),e},isComplete:function(){var e=!1;return p(this.chunks,(function(t){var n=t.status();if("pending"===n||"uploading"===n||"reading"===n||1===t.preprocessState||1===t.readState)return e=!0,!1})),!e},sizeUploaded:function(){var e=0;return p(this.chunks,(function(t){e+=t.sizeUploaded()})),e},timeRemaining:function(){if(this.paused||this.error)return 0;var e=this.size-this.sizeUploaded();return e&&!this.averageSpeed?Number.POSITIVE_INFINITY:e||this.averageSpeed?Math.floor(e/this.averageSpeed):0},getType:function(){return this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.name.substr(2+(~-this.name.lastIndexOf(".")>>>0)).toLowerCase()}},u.prototype={getParams:function(){return{flowChunkNumber:this.offset+1,flowChunkSize:this.chunkSize,flowCurrentChunkSize:this.endByte-this.startByte,flowTotalSize:this.fileObj.size,flowIdentifier:this.fileObj.uniqueIdentifier,flowFilename:this.fileObj.name,flowRelativePath:this.fileObj.relativePath,flowTotalChunks:this.fileObj.chunks.length}},getTarget:function(e,t){return 0==t.length?e:(e.indexOf("?")<0?e+="?":e+="&",e+t.join("&"))},test:function(){this.xhr=new XMLHttpRequest,this.xhr.addEventListener("load",this.testHandler,!1),this.xhr.addEventListener("error",this.testHandler,!1);var e=d(this.flowObj.opts.testMethod,this.fileObj,this),t=this.prepareXhrRequest(e,!0);this.xhr.send(t)},preprocessFinished:function(){this.endByte=this.computeEndByte(),this.preprocessState=2,this.send()},readFinished:function(e){this.readState=2,this.bytes=e,this.send()},send:function(){var e=this.flowObj.opts.preprocess,t=this.flowObj.opts.readFileFn;if("function"==typeof e)switch(this.preprocessState){case 0:return this.preprocessState=1,void e(this);case 1:return}switch(this.readState){case 0:return this.readState=1,void t(this.fileObj,this.startByte,this.endByte,this.fileObj.file.type,this);case 1:return}if(!this.flowObj.opts.testChunks||this.tested){this.loaded=0,this.total=0,this.pendingRetry=!1,this.xhr=new XMLHttpRequest,this.xhr.upload.addEventListener("progress",this.progressHandler,!1),this.xhr.addEventListener("load",this.doneHandler,!1),this.xhr.addEventListener("error",this.doneHandler,!1);var n=d(this.flowObj.opts.uploadMethod,this.fileObj,this),a=this.prepareXhrRequest(n,!1,this.flowObj.opts.method,this.bytes),o=this.flowObj.opts.changeRawDataBeforeSend;"function"==typeof o&&(a=o(this,a)),this.xhr.send(a)}else this.test()},abort:function(){var e=this.xhr;this.xhr=null,e&&e.abort()},status:function(e){return 1===this.readState?"reading":this.pendingRetry||1===this.preprocessState?"uploading":this.xhr?this.xhr.readyState<4?"uploading":this.flowObj.opts.successStatuses.indexOf(this.xhr.status)>-1?"success":this.flowObj.opts.permanentErrors.indexOf(this.xhr.status)>-1||!e&&this.retries>=this.flowObj.opts.maxChunkRetries?"error":(this.abort(),"pending"):"pending"},message:function(){return this.xhr?this.xhr.responseText:""},progress:function(){if(this.pendingRetry)return 0;var e=this.status();return"success"===e||"error"===e?1:"pending"===e?0:this.total>0?this.loaded/this.total:0},sizeUploaded:function(){var e=this.endByte-this.startByte;return"success"!==this.status()&&(e=this.progress()*e),e},prepareXhrRequest:function(e,t,n,a){var o=d(this.flowObj.opts.query,this.fileObj,this,t);o=m(o||{},this.getParams());var r=d(this.flowObj.opts.target,this.fileObj,this,t),i=null;if("GET"===e||"octet"===n){var s=[];p(o,(function(e,t){s.push([encodeURIComponent(t),encodeURIComponent(e)].join("="))})),r=this.getTarget(r,s),i=a||null}else i=new FormData,p(o,(function(e,t){i.append(t,e)})),void 0!==a&&i.append(this.flowObj.opts.fileParameterName,a,this.filename||this.fileObj.file.name);return this.xhr.open(e,r,!0),this.xhr.withCredentials=this.flowObj.opts.withCredentials,p(d(this.flowObj.opts.headers,this.fileObj,this,t),(function(e,t){this.xhr.setRequestHeader(t,e)}),this),i}},s.evalOpts=d,s.extend=m,s.each=p,s.FlowFile=l,s.FlowChunk=u,s.version="<%= version %>",e&&"object"==typeof e.exports?e.exports=s:(n.Flow=s,(a=function(){return s}.apply(t,[]))===r||(e.exports=a))}else console.warn("Flowjs needs window and document objects to work");function s(e){if(this.support=!("undefined"==typeof File||"undefined"==typeof Blob||"undefined"==typeof FileList||!Blob.prototype.slice&&!Blob.prototype.webkitSlice&&!Blob.prototype.mozSlice),this.support){this.supportDirectory=/Chrome/.test(n.navigator.userAgent)||/Firefox/.test(n.navigator.userAgent)||/Edge/.test(n.navigator.userAgent),this.files=[],this.defaults={chunkSize:1048576,forceChunkSize:!1,simultaneousUploads:3,singleFile:!1,fileParameterName:"file",progressCallbacksInterval:500,speedSmoothingFactor:.1,query:{},headers:{},withCredentials:!1,preprocess:null,changeRawDataBeforeSend:null,method:"multipart",testMethod:"GET",uploadMethod:"POST",prioritizeFirstAndLastChunk:!1,allowDuplicateUploads:!1,target:"/",testChunks:!0,generateUniqueIdentifier:null,maxChunkRetries:0,chunkRetryInterval:null,permanentErrors:[404,413,415,500,501],successStatuses:[200,201,202],onDropStopPropagation:!1,initFileFn:null,readFileFn:c},this.opts={},this.events={};var t=this;this.onDrop=function(e){t.opts.onDropStopPropagation&&e.stopPropagation(),e.preventDefault();var n=e.dataTransfer;n.items&&n.items[0]&&n.items[0].webkitGetAsEntry?t.webkitReadDataTransfer(e):t.addFiles(n.files,e)},this.preventEvent=function(e){e.preventDefault()},this.opts=s.extend({},this.defaults,e||{})}}function l(e,t,n){this.flowObj=e,this.bytes=null,this.file=t,this.name=t.fileName||t.name,this.size=t.size,this.relativePath=t.relativePath||t.webkitRelativePath||this.name,this.uniqueIdentifier=n===r?e.generateUniqueIdentifier(t):n,this.chunkSize=0,this.chunks=[],this.paused=!1,this.error=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}function c(e,t,n,a,o){var r="slice";e.file.slice?r="slice":e.file.mozSlice?r="mozSlice":e.file.webkitSlice&&(r="webkitSlice"),o.readFinished(e.file[r](t,n,a))}function u(e,t,n){this.flowObj=e,this.fileObj=t,this.offset=n,this.tested=!1,this.retries=0,this.pendingRetry=!1,this.preprocessState=0,this.readState=0,this.loaded=0,this.total=0,this.chunkSize=this.fileObj.chunkSize,this.startByte=this.offset*this.chunkSize,this.filename=null,this.computeEndByte=function(){var e=Math.min(this.fileObj.size,(this.offset+1)*this.chunkSize);return this.fileObj.size-e<this.chunkSize&&!this.flowObj.opts.forceChunkSize&&(e=this.fileObj.size),e},this.endByte=this.computeEndByte(),this.xhr=null;var a=this;this.event=function(e,t){(t=Array.prototype.slice.call(arguments)).unshift(a),a.fileObj.chunkEvent.apply(a.fileObj,t)},this.progressHandler=function(e){e.lengthComputable&&(a.loaded=e.loaded,a.total=e.total),a.event("progress",e)},this.testHandler=function(e){var t=a.status(!0);"error"===t?(a.event(t,a.message()),a.flowObj.uploadNextChunk()):"success"===t?(a.tested=!0,a.event(t,a.message()),a.flowObj.uploadNextChunk()):a.fileObj.paused||(a.tested=!0,a.send())},this.doneHandler=function(e){var t=a.status();if("success"===t||"error"===t)delete this.data,a.event(t,a.message()),a.flowObj.uploadNextChunk();else if(!a.fileObj.paused){a.event("retry",a.message()),a.pendingRetry=!0,a.abort(),a.retries++;var n=a.flowObj.opts.chunkRetryInterval;null!==n?setTimeout((function(){a.send()}),n):a.send()}}}function d(e,t){return"function"==typeof e&&(t=Array.prototype.slice.call(arguments),e=e.apply(null,t.slice(1))),e}function f(e,t){setTimeout(e.bind(t),0)}function m(e,t){return p(arguments,(function(t){t!==e&&p(t,(function(t,n){e[n]=t}))})),e}function p(e,t,n){var a;if(e)if(void 0!==e.length){for(a=0;a<e.length;a++)if(!1===t.call(n,e[a],a))return}else for(a in e)if(e.hasOwnProperty(a)&&!1===t.call(n,e[a],a))return}}("undefined"!=typeof window&&window,"undefined"!=typeof document&&document)},"./node_modules/@flowjs/ng-flow/dist/ng-flow.js":(e,t,n)=>{var a=n("./node_modules/@flowjs/flow.js/src/flow.js");angular.module("flow.provider",[]).provider("flowFactory",(function(){"use strict";this.defaults={},this.factory=function(e){return new a(e)},this.events=[],this.on=function(e,t){this.events.push([e,t])},this.$get=function(){var e=this.factory,t=this.defaults,n=this.events;return{create:function(a){var o=e(angular.extend({},t,a));return angular.forEach(n,(function(e){o.on(e[0],e[1])})),o}}}})),angular.module("flow.init",["flow.provider"]).controller("flowCtrl",["$scope","$attrs","$parse","flowFactory",function(e,t,n,a){var o=angular.extend({},e.$eval(t.flowInit)),r=e.$eval(t.flowObject)||a.create(o),i=function(t){var n=Array.prototype.slice.call(arguments);n.shift();var a=e.$broadcast.apply(e,["flow::"+t,r].concat(n));if({progress:1,filesSubmitted:1,fileSuccess:1,fileError:1,complete:1}[t]&&e.$applyAsync(),a.defaultPrevented)return!1};r.on("catchAll",i),e.$on("$destroy",(function(){r.off("catchAll",i)})),e.$flow=r,t.hasOwnProperty("flowName")&&(n(t.flowName).assign(e,r),e.$on("$destroy",(function(){n(t.flowName).assign(e)})))}]).directive("flowInit",[function(){return{scope:!0,controller:"flowCtrl"}}]),angular.module("flow.btn",["flow.init"]).directive("flowBtn",[function(){return{restrict:"EA",scope:!1,require:"^flowInit",link:function(e,t,n){var a=n.hasOwnProperty("flowDirectory"),o=n.hasOwnProperty("flowSingleFile"),r=n.hasOwnProperty("flowAttrs")&&e.$eval(n.flowAttrs);e.$flow.assignBrowse(t,a,o,r)}}}]),angular.module("flow.dragEvents",["flow.init"]).directive("flowPreventDrop",(function(){return{scope:!1,link:function(e,t,n){t.bind("drop dragover",(function(e){e.preventDefault()}))}}})).directive("flowDragEnter",["$timeout",function(e){return{scope:!1,link:function(t,n,a){var o,r=!1;n.bind("dragover",(function(n){var i,s,l;(s=!1,l=(i=n).dataTransfer||i.originalEvent.dataTransfer,angular.forEach(l&&l.types,(function(e){"Files"===e&&(s=!0)})),s)&&(r||(t.$apply(a.flowDragEnter),r=!0),e.cancel(o),n.preventDefault())})),n.bind("dragleave drop",(function(n){e.cancel(o),o=e((function(){t.$eval(a.flowDragLeave),o=null,r=!1}),100)}))}}}]),angular.module("flow.drop",["flow.init"]).directive("flowDrop",(function(){return{scope:!1,require:"^flowInit",link:function(e,t,n){function a(){e.$flow.assignDrop(t)}n.flowDropEnabled?e.$watch(n.flowDropEnabled,(function(n){n?a():e.$flow.unAssignDrop(t)})):a()}}})),function(e){"use strict";var t=e.module("flow.events",["flow.init"]);e.forEach({fileSuccess:["$file","$message"],fileProgress:["$file"],fileAdded:["$file","$event"],filesAdded:["$files","$event"],filesSubmitted:["$files","$event"],fileRetry:["$file"],fileRemoved:["$file"],fileError:["$file","$message"],uploadStart:[],complete:[],progress:[],error:["$message","$file"]},(function(n,a){var o,r="flow"+((o=a).charAt(0).toUpperCase()+o.slice(1));"flowUploadStart"==r&&(r="flowUploadStarted"),t.directive(r,[function(){return{require:"^flowInit",controller:["$scope","$attrs",function(t,o){t.$on("flow::"+a,(function(){var a=Array.prototype.slice.call(arguments),i=a.shift();if(t.$flow===a.shift()){var s={};e.forEach(n,(function(e,t){s[e]=a[t]})),!1===t.$eval(o[r],s)&&i.preventDefault()}}))}]}}])}))}(angular),angular.module("flow.img",["flow.init"]).directive("flowImg",[function(){return{scope:!1,require:"^flowInit",link:function(e,t,n){var a=n.flowImg;e.$watch(a,(function(t){if(t){var a=new FileReader;a.readAsDataURL(t.file),a.onload=function(t){e.$apply((function(){n.$set("src",t.target.result)}))}}}))}}}]),angular.module("flow.transfers",["flow.init"]).directive("flowTransfers",[function(){return{scope:!0,require:"^flowInit",link:function(e){e.transfers=e.$flow.files}}}]),angular.module("flow",["flow.provider","flow.init","flow.events","flow.btn","flow.drop","flow.transfers","flow.img","flow.dragEvents"])},"./node_modules/@uirouter/angularjs/release/angular-ui-router.js":function(e,t,n){!function(e,t){"use strict";var a=angular,o=t&&t.module?t:a,r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],i=0,s=r.length;i<s;i++,o++)a[o]=r[i];return a};function i(e){return function t(){if(arguments.length>=e.length)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);return t.bind.apply(t,r([this],n))}}function s(){var e=arguments,t=e.length-1;return function(){for(var n=t,a=e[t].apply(this,arguments);n--;)a=e[n].call(this,a);return a}}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.apply(null,[].slice.call(arguments).reverse())}var c=function(e){return function(t){return t&&t[e]}},u=i((function(e,t,n){return n&&n[e]===t})),d=function(e){return l.apply(null,e.split(".").map(c))},f=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}};function m(e,t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return e.apply(null,n)&&t.apply(null,n)}}function p(e,t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return e.apply(null,n)||t.apply(null,n)}}var g=function(e){return function(t){return t.reduce((function(t,n){return t&&!!e(n)}),!0)}},h=function(e){return function(t){return t.reduce((function(t,n){return t||!!e(n)}),!1)}},_=function(e){return function(t){return null!=t&&t.constructor===e||t instanceof e}},b=function(e){return function(t){return e===t}},y=function(e){return function(){return e}};function v(e,t){return function(n){return n[e].apply(n,t)}}function A(e){return function(t){for(var n=0;n<e.length;n++)if(e[n][0](t))return e[n][1](t)}}var S=Object.prototype.toString,w=function(e){return function(t){return typeof t===e}},E=w("undefined"),C=f(E),T=function(e){return null===e},I=p(T,E),k=w("function"),D=w("number"),x=w("string"),M=function(e){return null!==e&&"object"==typeof e},P=Array.isArray,O=function(e){return"[object Date]"===S.call(e)},R=function(e){return"[object RegExp]"===S.call(e)};function N(e){if(P(e)&&e.length){var t=e.slice(0,-1),n=e.slice(-1);return!(t.filter(f(x)).length||n.filter(f(k)).length)}return k(e)}var L=m(M,l(c("then"),k)),$=function(e){return function(){throw new Error("No implementation for "+e+". The framework specific code did not implement this method.")}},U=function(e,t){return t.reduce((function(t,n){return t[n]=$(e+"."+n+"()"),t}),{})},j={$q:void 0,$injector:void 0},F=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],i=0,s=r.length;i<s;i++,o++)a[o]=r[i];return a},q="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g||void 0,Y=q.angular||{},H=Y.fromJson||JSON.parse.bind(JSON),B=Y.toJson||JSON.stringify.bind(JSON),G=Y.forEach||Pe,V=Object.assign||Oe,W=Y.equals||Re;function Q(e){return e}function z(){}function K(e,t,n,a,o){void 0===o&&(o=!1);var r=function(t){return e()[t].bind(n())},i=function(e){return function(){return t[e]=r(e),t[e].apply(null,arguments)}};return(a=a||Object.keys(e())).reduce((function(e,t){return e[t]=o?i(t):r(t),e}),t)}var J=function(e,t){return V(Object.create(e),t)},X=i(Z);function Z(e,t){return-1!==e.indexOf(t)}var ee=i(te);function te(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),e}var ne=i(ae);function ae(e,t){return e.push(t),t}var oe=function(e){return e.slice().forEach((function(t){"function"==typeof t&&t(),ee(e,t)}))};function re(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=V.apply(void 0,F([{}],t.reverse()));return V(a,le(e||{},Object.keys(a)))}var ie=function(e,t){return V(e,t)};function se(e,t){var n=[];for(var a in e.path){if(e.path[a]!==t.path[a])break;n.push(e.path[a])}return n}function le(e,t){var n={};for(var a in e)-1!==t.indexOf(a)&&(n[a]=e[a]);return n}function ce(e,t){return Object.keys(e).filter(f(X(t))).reduce((function(t,n){return t[n]=e[n],t}),{})}function ue(e,t){return pe(e,c(t))}function de(e,t){var n=P(e),a=n?[]:{},o=n?function(e){return a.push(e)}:function(e,t){return a[t]=e};return G(e,(function(e,n){t(e,n)&&o(e,n)})),a}function fe(e,t){var n;return G(e,(function(e,a){n||t(e,a)&&(n=e)})),n}var me=pe;function pe(e,t,n){return n=n||(P(e)?[]:{}),G(e,(function(e,a){return n[a]=t(e,a)})),n}var ge=function(e){return Object.keys(e).map((function(t){return e[t]}))},he=function(e,t){return e&&t},_e=function(e,t){return e||t},be=function(e,t){return e.concat(t)},ye=function(e,t){return P(t)?e.concat(t.reduce(ye,[])):ve(e,t)};function ve(e,t){return e.push(t),e}var Ae=function(e,t){return X(e,t)?e:ve(e,t)},Se=function(e){return e.reduce(be,[])},we=function(e){return e.reduce(ye,[])},Ee=Te,Ce=Te;function Te(e,t){return void 0===t&&(t="assert failure"),function(n){var a=e(n);if(!a)throw new Error(k(t)?t(n):t);return a}}var Ie=function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};function ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return[];for(var n=e.reduce((function(e,t){return Math.min(t.length,e)}),9007199254740991),a=[],o=function(t){switch(e.length){case 1:a.push([e[0][t]]);break;case 2:a.push([e[0][t],e[1][t]]);break;case 3:a.push([e[0][t],e[1][t],e[2][t]]);break;case 4:a.push([e[0][t],e[1][t],e[2][t],e[3][t]]);break;default:a.push(e.map((function(e){return e[t]})))}},r=0;r<n;r++)o(r);return a}function De(e,t){var n,a;if(P(t)&&(n=t[0],a=t[1]),!x(n))throw new Error("invalid parameters to applyPairs");return e[n]=a,e}function xe(e){return e.length&&e[e.length-1]||void 0}function Me(e,t){return t&&Object.keys(t).forEach((function(e){return delete t[e]})),t||(t={}),V(t,e)}function Pe(e,t,n){if(P(e))return e.forEach(t,n);Object.keys(e).forEach((function(n){return t(e[n],n)}))}function Oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var a=Object.keys(n),o=0;o<a.length;o++)e[a[o]]=n[a[o]]}return e}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=typeof e;if(n!==typeof t||"object"!==n)return!1;var a=[e,t];if(g(P)(a))return Ne(e,t);if(g(O)(a))return e.getTime()===t.getTime();if(g(R)(a))return e.toString()===t.toString();if(g(k)(a))return!0;if([k,P,O,R].map(h).reduce((function(e,t){return e||!!t(a)}),!1))return!1;var o={};for(var r in e){if(!Re(e[r],t[r]))return!1;o[r]=!0}for(var r in t)if(!o[r])return!1;return!0}function Ne(e,t){return e.length===t.length&&ke(e,t).reduce((function(e,t){return e&&Re(t[0],t[1])}),!0)}var Le,$e=function(e){return e.catch((function(e){return 0}))&&e},Ue=function(e){return $e(j.$q.reject(e))},je=function(){function e(e){this.text=e,this.glob=e.split(".");var t=this.text.split(".").map((function(e){return"**"===e?"(?:|(?:\\.[^.]*)*)":"*"===e?"\\.[^.]*":"\\."+e})).join("");this.regexp=new RegExp("^"+t+"$")}return e.is=function(e){return!!/[!,*]+/.exec(e)},e.fromString=function(t){return e.is(t)?new e(t):null},e.prototype.matches=function(e){return this.regexp.test("."+e)},e}(),Fe=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=null),this._items=e,this._limit=t,this._evictListeners=[],this.onEvict=ne(this._evictListeners)}return e.prototype.enqueue=function(e){var t=this._items;return t.push(e),this._limit&&t.length>this._limit&&this.evict(),e},e.prototype.evict=function(){var e=this._items.shift();return this._evictListeners.forEach((function(t){return t(e)})),e},e.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},e.prototype.clear=function(){var e=this._items;return this._items=[],e},e.prototype.size=function(){return this._items.length},e.prototype.remove=function(e){var t=this._items.indexOf(e);return t>-1&&this._items.splice(t,1)[0]},e.prototype.peekTail=function(){return this._items[this._items.length-1]},e.prototype.peekHead=function(){if(this.size())return this._items[0]},e}();(Le=e.RejectType||(e.RejectType={}))[Le.SUPERSEDED=2]="SUPERSEDED",Le[Le.ABORTED=3]="ABORTED",Le[Le.INVALID=4]="INVALID",Le[Le.IGNORED=5]="IGNORED",Le[Le.ERROR=6]="ERROR";var qe=0,Ye=function(){function t(e,t,n){this.$id=qe++,this.type=e,this.message=t,this.detail=n}return t.isRejectionPromise=function(e){return e&&"function"==typeof e.then&&_(t)(e._transitionRejection)},t.superseded=function(n,a){var o="The transition has been superseded by a different transition",r=new t(e.RejectType.SUPERSEDED,o,n);return a&&a.redirected&&(r.redirected=!0),r},t.redirected=function(e){return t.superseded(e,{redirected:!0})},t.invalid=function(n){var a="This transition is invalid";return new t(e.RejectType.INVALID,a,n)},t.ignored=function(n){var a="The transition was ignored";return new t(e.RejectType.IGNORED,a,n)},t.aborted=function(n){var a="The transition has been aborted";return new t(e.RejectType.ABORTED,a,n)},t.errored=function(n){var a="The transition errored";return new t(e.RejectType.ERROR,a,n)},t.normalize=function(e){return _(t)(e)?e:t.errored(e)},t.prototype.toString=function(){var e,t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():Je(e),n=this;return"Transition Rejection($id: "+n.$id+" type: "+n.type+", message: "+n.message+", detail: "+t+")"},t.prototype.toPromise=function(){return V(Ue(this),{_transitionRejection:this})},t}();function He(e,t){return t.length<=e?t:t.substr(0,e-3)+"..."}function Be(e,t){for(;t.length<e;)t+=" ";return t}function Ge(e){return e.replace(/^([A-Z])/,(function(e){return e.toLowerCase()})).replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}function Ve(e){var t=We(e),n=t.match(/^(function [^ ]+\([^)]*\))/),a=n?n[1]:t,o=e.name||"";return o&&a.match(/function \(/)?"function "+o+a.substr(9):a}function We(e){var t=P(e)?e.slice(-1)[0]:e;return t&&t.toString()||"undefined"}var Qe=Ye.isRejectionPromise,ze=function(e){return M(e)&&!P(e)&&e.constructor!==Object&&k(e.toString)},Ke=A([[E,y("undefined")],[T,y("null")],[L,y("[Promise]")],[Qe,function(e){return e._transitionRejection.toString()}],[ze,function(e){return e.toString()}],[N,Ve],[y(!0),Q]]);function Je(e){var t=[];function n(e){if(M(e)){if(-1!==t.indexOf(e))return"[circular ref]";t.push(e)}return Ke(e)}return E(e)?n(e):JSON.stringify(e,(function(e,t){return n(t)})).replace(/\\"/g,'"')}var Xe=function(e){return function(t){if(!t)return["",""];var n=t.indexOf(e);return-1===n?[t,""]:[t.substr(0,n),t.substr(n+1)]}},Ze=new RegExp("^(?:[a-z]+:)?//[^/]+/"),et=function(e){return e.replace(/\/[^/]*$/,"")},tt=Xe("#"),nt=Xe("?"),at=Xe("="),ot=function(e){return e?e.replace(/^#/,""):""};function rt(e){var t=new RegExp("("+e+")","g");return function(e){return e.split(t).filter(Q)}}function it(e,t){return x(xe(e))&&x(t)?e.slice(0,-1).concat(xe(e)+t):ve(e,t)}var st={log:z,error:z,table:z};function lt(e){var t=function(t){return Function.prototype.bind.call(t,e)};return{log:t(e.log),error:t(e.log),table:t(e.log)}}function ct(e){var t=e.log.bind(e);return{log:t,error:e.error?e.error.bind(e):t,table:e.table?e.table.bind(e):t}}function ut(){return"undefined"!=typeof document&&document.documentMode&&9===document.documentMode?window&&window.console?lt(window.console):st:console.table&&console.error?console:ct(console)}var dt=ut();function ft(e){if(!e)return"ui-view (defunct)";var t=e.creationContext?e.creationContext.name||"(root)":"(none)";return"[ui-view#"+e.id+" "+e.$type+":"+e.fqn+" ("+e.name+"@"+t+")]"}var mt,pt=function(e){var t=e.viewDecl,n=t.$context.name||"(root)";return"[View#"+e.$id+" from '"+n+"' state]: target ui-view: '"+t.$uiViewName+"@"+t.$uiViewContextAnchor+"'"};function gt(t){return D(t)?e.Category[t]:e.Category[e.Category[t]]}(mt=e.Category||(e.Category={}))[mt.RESOLVE=0]="RESOLVE",mt[mt.TRANSITION=1]="TRANSITION",mt[mt.HOOK=2]="HOOK",mt[mt.UIVIEW=3]="UIVIEW",mt[mt.VIEWCONFIG=4]="VIEWCONFIG";var ht=d("$id"),_t=d("router.$id"),bt=function(e){return"Transition #"+ht(e)+"-"+_t(e)},yt=function(){function t(){this._enabled={},this.approximateDigests=0}return t.prototype._set=function(t,n){var a=this;n.length||(n=Object.keys(e.Category).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)})).map((function(t){return e.Category[t]}))),n.map(gt).forEach((function(e){return a._enabled[e]=t}))},t.prototype.enable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._set(!0,e)},t.prototype.disable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._set(!1,e)},t.prototype.enabled=function(e){return!!this._enabled[gt(e)]},t.prototype.traceTransitionStart=function(t){this.enabled(e.Category.TRANSITION)&&dt.log(bt(t)+": Started  -> "+Je(t))},t.prototype.traceTransitionIgnored=function(t){this.enabled(e.Category.TRANSITION)&&dt.log(bt(t)+": Ignored  <> "+Je(t))},t.prototype.traceHookInvocation=function(t,n,a){if(this.enabled(e.Category.HOOK)){var o=d("traceData.hookType")(a)||"internal",r=d("traceData.context.state.name")(a)||d("traceData.context")(a)||"unknown",i=Ve(t.registeredHook.callback);dt.log(bt(n)+":   Hook -> "+o+" context: "+r+", "+He(200,i))}},t.prototype.traceHookResult=function(t,n,a){this.enabled(e.Category.HOOK)&&dt.log(bt(n)+":   <- Hook returned: "+He(200,Je(t)))},t.prototype.traceResolvePath=function(t,n,a){this.enabled(e.Category.RESOLVE)&&dt.log(bt(a)+":         Resolving "+t+" ("+n+")")},t.prototype.traceResolvableResolved=function(t,n){this.enabled(e.Category.RESOLVE)&&dt.log(bt(n)+":               <- Resolved  "+t+" to: "+He(200,Je(t.data)))},t.prototype.traceError=function(t,n){this.enabled(e.Category.TRANSITION)&&dt.log(bt(n)+": <- Rejected "+Je(n)+", reason: "+t)},t.prototype.traceSuccess=function(t,n){this.enabled(e.Category.TRANSITION)&&dt.log(bt(n)+": <- Success  "+Je(n)+", final state: "+t.name)},t.prototype.traceUIViewEvent=function(t,n,a){void 0===a&&(a=""),this.enabled(e.Category.UIVIEW)&&dt.log("ui-view: "+Be(30,t)+" "+ft(n)+a)},t.prototype.traceUIViewConfigUpdated=function(t,n){this.enabled(e.Category.UIVIEW)&&this.traceUIViewEvent("Updating",t," with ViewConfig from context='"+n+"'")},t.prototype.traceUIViewFill=function(t,n){this.enabled(e.Category.UIVIEW)&&this.traceUIViewEvent("Fill",t," with: "+He(200,n))},t.prototype.traceViewSync=function(t){if(this.enabled(e.Category.VIEWCONFIG)){var n="uiview component fqn",a="view config state (view name)",o=t.map((function(e){var t,o=e.uiView,r=e.viewConfig,i=o&&o.fqn,s=r&&r.viewDecl.$context.name+": ("+r.viewDecl.$name+")";return(t={})[n]=i,t[a]=s,t})).sort((function(e,t){return(e[n]||"").localeCompare(t[n]||"")}));dt.table(o)}},t.prototype.traceViewServiceEvent=function(t,n){this.enabled(e.Category.VIEWCONFIG)&&dt.log("VIEWCONFIG: "+t+" "+pt(n))},t.prototype.traceViewServiceUIViewEvent=function(t,n){this.enabled(e.Category.VIEWCONFIG)&&dt.log("VIEWCONFIG: "+t+" "+ft(n))},t}(),vt=new yt,At=function(){function e(e){this.pattern=/.*/,this.inherit=!0,V(this,e)}return e.prototype.is=function(e,t){return!0},e.prototype.encode=function(e,t){return e},e.prototype.decode=function(e,t){return e},e.prototype.equals=function(e,t){return e==t},e.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},e.prototype.toString=function(){return"{ParamType:"+this.name+"}"},e.prototype.$normalize=function(e){return this.is(e)?e:this.decode(e)},e.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 St(this,e)},e}();function St(e,t){var n=this;function a(e){return P(e)?e:C(e)?[e]:[]}function o(e){switch(e.length){case 0:return;case 1:return"auto"===t?e[0]:e;default:return e}}function r(e,t){return function(n){if(P(n)&&0===n.length)return n;var r=pe(a(n),e);return!0===t?0===de(r,(function(e){return!e})).length:o(r)}}function i(e){return function(t,n){var o=a(t),r=a(n);if(o.length!==r.length)return!1;for(var i=0;i<o.length;i++)if(!e(o[i],r[i]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((function(t){var a=e[t].bind(e),o="equals"===t?i:r;n[t]=o(a)})),V(this,{dynamic:e.dynamic,name:e.name,pattern:e.pattern,inherit:e.inherit,raw:e.raw,is:r(e.is.bind(e),!0),$arrayMode:t})}var wt,Et=Object.prototype.hasOwnProperty,Ct=function(e){return 0===["value","type","squash","array","dynamic"].filter(Et.bind(e||{})).length};function Tt(t,n,a){var o=!1===a.reloadOnSearch&&n===e.DefType.SEARCH||void 0,r=fe([a.dynamic,o],C),i=C(r)?{dynamic:r}:{},s=It(a&&a.params&&a.params[t]);return V(i,s)}function It(e){function t(){return e.value}e=Ct(e)?{value:e}:e,t.__cacheable=!0;var n=N(e.value)?e.value:t;return V(e,{$$fn:n})}function kt(t,n,a,o,r){if(t.type&&n&&"string"!==n.name)throw new Error("Param '"+o+"' has two type configurations.");if(t.type&&n&&"string"===n.name&&r.type(t.type))return r.type(t.type);if(n)return n;if(!t.type){var i=a===e.DefType.CONFIG?"any":a===e.DefType.PATH?"path":a===e.DefType.SEARCH?"query":"string";return r.type(i)}return t.type instanceof At?t.type:r.type(t.type)}function Dt(e,t,n){var a=e.squash;if(!t||!1===a)return!1;if(!C(a)||null==a)return n;if(!0===a||x(a))return a;throw new Error("Invalid squash policy: '"+a+"'. Valid policies: false, true, or arbitrary string")}function xt(e,t,n,a){var o=[{from:"",to:n||t?void 0:""},{from:null,to:n||t?void 0:""}],r=P(e.replace)?e.replace:[];x(a)&&r.push({from:a,to:void 0});var i=pe(r,c("from"));return de(o,(function(e){return-1===i.indexOf(e.from)})).concat(r)}(wt=e.DefType||(e.DefType={}))[wt.PATH=0]="PATH",wt[wt.SEARCH=1]="SEARCH",wt[wt.CONFIG=2]="CONFIG";var Mt=function(){function t(t,n,a,o,r){var i=Tt(t,a,r);n=kt(i,n,a,t,o.paramTypes);var s=p();n=s?n.$asArray(s,a===e.DefType.SEARCH):n;var l=void 0!==i.value||a===e.DefType.SEARCH,c=C(i.dynamic)?!!i.dynamic:!!n.dynamic,u=C(i.raw)?!!i.raw:!!n.raw,d=Dt(i,l,o.defaultSquashPolicy()),f=xt(i,s,l,d),m=C(i.inherit)?!!i.inherit:!!n.inherit;function p(){var n={array:a===e.DefType.SEARCH&&"auto"},o=t.match(/\[\]$/)?{array:!0}:{};return V(n,o,i).array}V(this,{id:t,type:n,location:a,isOptional:l,dynamic:c,raw:u,squash:d,replace:f,inherit:m,array:s,config:i})}return t.values=function(e,t){void 0===t&&(t={});for(var n={},a=0,o=e;a<o.length;a++){var r=o[a];n[r.id]=r.value(t[r.id])}return n},t.changed=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e.filter((function(e){return!e.type.equals(t[e.id],n[e.id])}))},t.equals=function(e,n,a){return void 0===n&&(n={}),void 0===a&&(a={}),0===t.changed(e,n,a).length},t.validates=function(e,t){return void 0===t&&(t={}),e.map((function(e){return e.validates(t[e.id])})).reduce(he,!0)},t.prototype.isDefaultValue=function(e){return this.isOptional&&this.type.equals(this.value(),e)},t.prototype.value=function(e){var t=this,n=function(){if(t._defaultValueCache)return t._defaultValueCache.defaultValue;if(!j.$injector)throw new Error("Injectable functions cannot be called at configuration time");var e=j.$injector.invoke(t.config.$$fn);if(null!=e&&!t.type.is(e))throw new Error("Default value ("+e+") for parameter '"+t.id+"' is not an instance of ParamType ("+t.type.name+")");return t.config.$$fn.__cacheable&&(t._defaultValueCache={defaultValue:e}),e};return e=function(e){for(var n=0,a=t.replace;n<a.length;n++){var o=a[n];if(o.from===e)return o.to}return e}(e),E(e)?n():this.type.$normalize(e)},t.prototype.isSearch=function(){return this.location===e.DefType.SEARCH},t.prototype.validates=function(e){if((E(e)||null===e)&&this.isOptional)return!0;var t=this.type.$normalize(e);if(!this.type.is(t))return!1;var n=this.type.encode(t);return!(x(n)&&!this.type.pattern.exec(n))},t.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},t}(),Pt=function(){function e(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=le(e.prototype,["hash","string","query","path","int","bool","date","json","any"]);var t=function(e,t){return new At(V({name:t},e))};this.types=J(pe(this.defaultTypes,t),{})}return e.prototype.dispose=function(){this.types={}},e.prototype.type=function(e,t,n){if(!C(t))return this.types[e];if(this.types.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return this.types[e]=new At(V({name:e},t)),n&&(this.typeQueue.push({name:e,def:n}),this.enqueue||this._flushTypeQueue()),this},e.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;){var e=this.typeQueue.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");V(this.types[e.name],j.$injector.invoke(e.def))}},e}();function Ot(){var e=function(e){var t=function(e){return null!=e?e.toString():e},n={encode:t,decode:t,is:_(String),pattern:/.*/,equals:function(e,t){return e==t}};return V({},n,e)};V(Pt.prototype,{string:e({}),path:e({pattern:/[^/]*/}),query:e({}),hash:e({inherit:!1}),int:e({decode:function(e){return parseInt(e,10)},is:function(e){return!I(e)&&this.decode(e.toString())===e},pattern:/-?\d+/}),bool:e({encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:_(Boolean),pattern:/0|1/}),date:e({encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):void 0},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]):void 0},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(e,t){return["getFullYear","getMonth","getDate"].reduce((function(n,a){return n&&e[a]()===t[a]()}),!0)},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:e({encode:B,decode:H,is:_(Object),equals:W,pattern:/[^/]*/}),any:e({encode:Q,decode:Q,is:function(){return!0},equals:W})})}Ot();var Rt=function(){function e(e){void 0===e&&(e={}),V(this,e)}return e.prototype.$inherit=function(e,t,n){var a,o=se(t,n),r={},i=[];for(var s in o)if(o[s]&&o[s].params&&(a=Object.keys(o[s].params)).length)for(var l in a)i.indexOf(a[l])>=0||(i.push(a[l]),r[a[l]]=this[a[l]]);return V({},r,e)},e}(),Nt=function(){function e(t){if(t instanceof e){var n=t;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=V({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{var a=t;this.state=a,this.paramSchema=a.parameters({inherit:!1}),this.paramValues={},this.resolvables=a.resolvables.map((function(e){return e.clone()}))}}return e.prototype.clone=function(){return new e(this)},e.prototype.applyRawParams=function(e){var t=function(t){return[t.id,t.value(e[t.id])]};return this.paramValues=this.paramSchema.reduce((function(e,n){return De(e,t(n))}),{}),this},e.prototype.parameter=function(e){return fe(this.paramSchema,u("id",e))},e.prototype.equals=function(e,t){var n=this.diff(e,t);return n&&0===n.length},e.prototype.diff=function(e,t){if(this.state!==e.state)return!1;var n=t?t(this):this.paramSchema;return Mt.changed(n,this.paramValues,e.paramValues)},e.clone=function(e){return e.clone()},e}(),Lt=function(){function e(e,t,n,a){this._stateRegistry=e,this._identifier=t,this._identifier=t,this._params=V({},n||{}),this._options=V({},a||{}),this._definition=e.matcher.find(t,this._options.relative)}return e.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},e.prototype.identifier=function(){return this._identifier},e.prototype.params=function(){return this._params},e.prototype.$state=function(){return this._definition},e.prototype.state=function(){return this._definition&&this._definition.self},e.prototype.options=function(){return this._options},e.prototype.exists=function(){return!(!this._definition||!this._definition.self)},e.prototype.valid=function(){return!this.error()},e.prototype.error=function(){var e=this.options().relative;if(!this._definition&&e){var t=e.name?e.name:e;return"Could not resolve '"+this.name()+"' from state '"+t+"'"}return this._definition?this._definition.self?void 0:"State '"+this.name()+"' has an invalid definition":"No such state '"+this.name()+"'"},e.prototype.toString=function(){return"'"+this.name()+"'"+Je(this.params())},e.prototype.withState=function(t){return new e(this._stateRegistry,t,this._params,this._options)},e.prototype.withParams=function(t,n){void 0===n&&(n=!1);var a=n?t:V({},this._params,t);return new e(this._stateRegistry,this._identifier,a,this._options)},e.prototype.withOptions=function(t,n){void 0===n&&(n=!1);var a=n?t:V({},this._options,t);return new e(this._stateRegistry,this._identifier,this._params,a)},e.isDef=function(e){return e&&e.state&&(x(e.state)||M(e.state)&&x(e.state.name))},e}(),$t=function(){function e(){}return e.makeTargetState=function(e,t){var n=xe(t).state;return new Lt(e,n,t.map(c("paramValues")).reduce(ie,{}),{})},e.buildPath=function(e){var t=e.params();return e.$state().path.map((function(e){return new Nt(e).applyRawParams(t)}))},e.buildToPath=function(t,n){var a=e.buildPath(n);return n.options().inherit?e.inheritParams(t,a,Object.keys(n.params())):a},e.applyViewConfigs=function(t,n,a){n.filter((function(e){return X(a,e.state)})).forEach((function(a){var o=ge(a.state.views||{}),r=e.subPath(n,(function(e){return e===a})),i=o.map((function(e){return t.createViewConfig(r,e)}));a.views=i.reduce(be,[])}))},e.inheritParams=function(e,t,n){function a(e,t){var n=fe(e,u("state",t));return V({},n&&n.paramValues)}void 0===n&&(n=[]);var o=e.map((function(e){return e.paramSchema})).reduce(be,[]).filter((function(e){return!e.inherit})).map(c("id"));function r(t){var r=V({},t&&t.paramValues),i=le(r,n);r=ce(r,n);var s=ce(a(e,t.state)||{},o),l=V(r,s,i);return new Nt(t.state).applyRawParams(l)}return t.map(r)},e.treeChanges=function(t,n,a){for(var o,r,i,s,l=Math.min(t.length,n.length),c=0,u=function(t,n){return t.equals(n,e.nonDynamicParams)};c<l&&t[c].state!==a&&u(t[c],n[c]);)c++;function d(e,t){var a=e.clone();return a.paramValues=n[t].paramValues,a}r=(o=t).slice(0,c),i=o.slice(c);var f=r.map(d);return s=n.slice(c),{from:o,to:f.concat(s),retained:r,retainedWithToParams:f,exiting:i,entering:s}},e.matching=function(e,t,n){var a=!1;return ke(e,t).reduce((function(e,t){var o=t[0],r=t[1];return(a=a||!o.equals(r,n))?e:e.concat(o)}),[])},e.equals=function(t,n,a){return t.length===n.length&&e.matching(t,n,a).length===t.length},e.subPath=function(e,t){var n=fe(e,t),a=e.indexOf(n);return-1===a?void 0:e.slice(0,a+1)},e.nonDynamicParams=function(e){return e.state.parameters({inherit:!1}).filter((function(e){return!e.dynamic}))},e.paramValues=function(e){return e.reduce((function(e,t){return V(e,t.paramValues)}),{})},e}(),Ut={when:{LAZY:"LAZY",EAGER:"EAGER"},async:{WAIT:"WAIT",NOWAIT:"NOWAIT"}},jt={when:"LAZY",async:"WAIT"},Ft=function(){function e(t,n,a,o,r){if(this.resolved=!1,this.promise=void 0,t instanceof e)V(this,t);else if(k(n)){if(I(t))throw new Error("new Resolvable(): token argument is required");if(!k(n))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=t,this.policy=o,this.resolveFn=n,this.deps=a||[],this.data=r,this.resolved=void 0!==r,this.promise=this.resolved?j.$q.when(this.data):void 0}else if(M(t)&&t.token&&(t.hasOwnProperty("resolveFn")||t.hasOwnProperty("data"))){var i=t;return new e(i.token,i.resolveFn,i.deps,i.policy,i.data)}}return e.prototype.getPolicy=function(e){var t=this.policy||{},n=e&&e.resolvePolicy||{};return{when:t.when||n.when||jt.when,async:t.async||n.async||jt.async}},e.prototype.resolve=function(e,t){var n=this,a=j.$q,o=function(){return a.all(e.getDependencies(n).map((function(n){return n.get(e,t)})))},r=function(e){return n.resolveFn.apply(null,e)},i=e.findNode(this),s=i&&i.state,l=this.getPolicy(s).async,c=k(l)?l:Q,u=function(e){return n.data=e,n.resolved=!0,n.resolveFn=null,vt.traceResolvableResolved(n,t),n.data};return this.promise=a.when().then(o).then(r).then(c).then(u)},e.prototype.get=function(e,t){return this.promise||this.resolve(e,t)},e.prototype.toString=function(){return"Resolvable(token: "+Je(this.token)+", requires: ["+this.deps.map(Je)+"])"},e.prototype.clone=function(){return new e(this)},e.fromData=function(t,n){return new e(t,(function(){return n}),null,null,n)},e}(),qt=Ut.when,Yt=[qt.EAGER,qt.LAZY],Ht=[qt.EAGER],Bt="Native Injector",Gt=function(){function e(e){this._path=e}return e.prototype.getTokens=function(){return this._path.reduce((function(e,t){return e.concat(t.resolvables.map((function(e){return e.token})))}),[]).reduce(Ae,[])},e.prototype.getResolvable=function(e){return xe(this._path.map((function(e){return e.resolvables})).reduce(be,[]).filter((function(t){return t.token===e})))},e.prototype.getPolicy=function(e){var t=this.findNode(e);return e.getPolicy(t.state)},e.prototype.subContext=function(t){return new e($t.subPath(this._path,(function(e){return e.state===t})))},e.prototype.addResolvables=function(e,t){var n=fe(this._path,u("state",t)),a=e.map((function(e){return e.token}));n.resolvables=n.resolvables.filter((function(e){return-1===a.indexOf(e.token)})).concat(e)},e.prototype.resolvePath=function(e,t){var n=this;void 0===e&&(e="LAZY");var a=(X(Yt,e)?e:"LAZY")===Ut.when.EAGER?Ht:Yt;vt.traceResolvePath(this._path,e,t);var o=function(e,t){return function(a){return X(e,n.getPolicy(a)[t])}},r=this._path.reduce((function(e,r){var i=r.resolvables.filter(o(a,"when")),s=i.filter(o(["NOWAIT"],"async")),l=i.filter(f(o(["NOWAIT"],"async"))),c=n.subContext(r.state),u=function(e){return e.get(c,t).then((function(t){return{token:e.token,value:t}}))};return s.forEach(u),e.concat(l.map(u))}),[]);return j.$q.all(r)},e.prototype.injector=function(){return this._injector||(this._injector=new Vt(this))},e.prototype.findNode=function(e){return fe(this._path,(function(t){return X(t.resolvables,e)}))},e.prototype.getDependencies=function(e){var t=this,n=this.findNode(e),a=($t.subPath(this._path,(function(e){return e===n}))||this._path).reduce((function(e,t){return e.concat(t.resolvables)}),[]).filter((function(t){return t!==e})),o=function(e){var n=a.filter((function(t){return t.token===e}));if(n.length)return xe(n);var o=t.injector().getNative(e);if(E(o))throw new Error("Could not find Dependency Injection token: "+Je(e));return new Ft(e,(function(){return o}),[],o)};return e.deps.map(o)},e}(),Vt=function(){function e(e){this.context=e,this.native=this.get(Bt)||j.$injector}return e.prototype.get=function(e){var t=this.context.getResolvable(e);if(t){if("NOWAIT"===this.context.getPolicy(t).async)return t.get(this.context);if(!t.resolved)throw new Error("Resolvable async .get() not complete:"+Je(t.token));return t.data}return this.getNative(e)},e.prototype.getAsync=function(e){var t=this.context.getResolvable(e);return t?t.get(this.context):j.$q.when(this.native.get(e))},e.prototype.getNative=function(e){return this.native&&this.native.get(e)},e}(),Wt=function(e){if(!x(e))return!1;var t="^"===e.charAt(0);return{val:t?e.substring(1):e,root:t}};function Qt(e){return e.name}function zt(e){return e.self.$$state=function(){return e},e.self}function Kt(e){return e.parent&&e.parent.data&&(e.data=e.self.data=J(e.parent.data,e.data)),e.data}var Jt=function(e,t){return function(n){var a=n.self;if(a&&a.url&&a.name&&a.name.match(/\.\*\*$/)){var o={};Me(a,o),o.url+="{remainder:any}",a=o}var r=n.parent,i=Wt(a.url),s=i?e.compile(i.val,{state:a}):a.url;if(!s)return null;if(!e.isMatcher(s))throw new Error("Invalid url '"+s+"' in state '"+n+"'");return i&&i.root?s:(r&&r.navigable||t()).url.append(s)}},Xt=function(e){return function(t){return!e(t)&&t.url?t:t.parent?t.parent.navigable:null}},Zt=function(e){return function(t){var n=function(n,a){return e.fromConfig(a,null,t.self)},a=t.url&&t.url.parameters({inherit:!1})||[],o=ge(me(ce(t.params||{},a.map(c("id"))),n));return a.concat(o).map((function(e){return[e.id,e]})).reduce(De,{})}};function en(e){return e.parent?e.parent.path.concat(e):[e]}function tn(e){var t=e.parent?V({},e.parent.includes):{};return t[e.name]=!0,t}function nn(e){var t=function(e,t){return Object.keys(e||{}).map((function(n){return{token:n,val:e[n],deps:void 0,policy:t[n]}}))},n=function(e){var t=j.$injector;return e.$inject||t&&t.annotate(e,t.strictDi)||"deferred"},a=function(e){return!(!e.token||!e.resolveFn)},o=function(e){return!(!e.provide&&!e.token||!(e.useValue||e.useFactory||e.useExisting||e.useClass))},r=function(e){return!!(e&&e.val&&(x(e.val)||P(e.val)||k(e.val)))},i=function(e){return e.provide||e.token},s=A([[c("resolveFn"),function(e){return new Ft(i(e),e.resolveFn,e.deps,e.policy)}],[c("useFactory"),function(e){return new Ft(i(e),e.useFactory,e.deps||e.dependencies,e.policy)}],[c("useClass"),function(e){return new Ft(i(e),(function(){return new e.useClass}),[],e.policy)}],[c("useValue"),function(e){return new Ft(i(e),(function(){return e.useValue}),[],e.policy,e.useValue)}],[c("useExisting"),function(e){return new Ft(i(e),Q,[e.useExisting],e.policy)}]]),u=A([[l(c("val"),x),function(e){return new Ft(e.token,Q,[e.val],e.policy)}],[l(c("val"),P),function(e){return new Ft(e.token,xe(e.val),e.val.slice(0,-1),e.policy)}],[l(c("val"),k),function(e){return new Ft(e.token,e.val,n(e.val),e.policy)}]]),d=A([[_(Ft),function(e){return e}],[a,s],[o,s],[r,u],[y(!0),function(e){throw new Error("Invalid resolve value: "+Je(e))}]]),f=e.resolve;return(P(f)?f:t(f,e.resolvePolicy||{})).map(d)}var an,on,rn=function(){function e(e,t){this.matcher=e;var n=this,a=function(){return e.find("")},o=function(e){return""===e.name};function r(t){return o(t)?null:e.find(n.parentName(t))||a()}this.builders={name:[Qt],self:[zt],parent:[r],data:[Kt],url:[Jt(t,a)],navigable:[Xt(o)],params:[Zt(t.paramFactory)],views:[],path:[en],includes:[tn],resolvables:[nn]}}return e.prototype.builder=function(e,t){var n=this.builders,a=n[e]||[];return x(e)&&!C(t)?a.length>1?a:a[0]:x(e)&&k(t)?(n[e]=a,n[e].push(t),function(){return n[e].splice(n[e].indexOf(t,1))&&null}):void 0},e.prototype.build=function(e){var t=this,n=t.matcher,a=t.builders,o=this.parentName(e);if(o&&!n.find(o,void 0,!1))return null;for(var r in a)if(a.hasOwnProperty(r)){var i=a[r].reduce((function(e,t){return function(n){return t(n,e)}}),z);e[r]=i(e)}return e},e.prototype.parentName=function(e){var t=e.name||"",n=t.split(".");if("**"===n.pop()&&n.pop(),n.length){if(e.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+t+")");return n.join(".")}return e.parent?x(e.parent)?e.parent:e.parent.name:""},e.prototype.name=function(e){var t=e.name;if(-1!==t.indexOf(".")||!e.parent)return t;var n=x(e.parent)?e.parent:e.parent.name;return n?n+"."+t:t},e}(),sn=function(){function e(t){return e.create(t||{})}return e.create=function(t){t=e.isStateClass(t)?new t:t;var n=J(J(t,e.prototype));return t.$$state=function(){return n},n.self=t,n.__stateObjectCache={nameGlob:je.fromString(n.name)},n},e.prototype.is=function(e){return this===e||this.self===e||this.fqn()===e},e.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var e=this.parent.fqn();return e?e+"."+this.name:this.name},e.prototype.root=function(){return this.parent&&this.parent.root()||this},e.prototype.parameters=function(e){return((e=re(e,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(ge(this.params)).filter((function(t){return!e.matchingKeys||e.matchingKeys.hasOwnProperty(t.id)}))},e.prototype.parameter=function(e,t){return void 0===t&&(t={}),this.url&&this.url.parameter(e,t)||fe(ge(this.params),u("id",e))||t.inherit&&this.parent&&this.parent.parameter(e)},e.prototype.toString=function(){return this.fqn()},e.isStateClass=function(e){return k(e)&&!0===e.__uiRouterState},e.isStateDeclaration=function(e){return k(e.$$state)},e.isState=function(e){return M(e.__stateObjectCache)},e}(),ln=function(){function e(e){this._states=e}return e.prototype.isRelative=function(e){return 0===(e=e||"").indexOf(".")||0===e.indexOf("^")},e.prototype.find=function(e,t,n){if(void 0===n&&(n=!0),e||""===e){var a=x(e),o=a?e:e.name;this.isRelative(o)&&(o=this.resolvePath(o,t));var r=this._states[o];if(r&&(a||!(a||r!==e&&r.self!==e)))return r;if(a&&n){var i=ge(this._states).filter((function(e){return e.__stateObjectCache.nameGlob&&e.__stateObjectCache.nameGlob.matches(o)}));return i.length>1&&dt.error("stateMatcher.find: Found multiple matches for "+o+" using glob: ",i.map((function(e){return e.name}))),i[0]}}},e.prototype.resolvePath=function(e,t){if(!t)throw new Error("No reference point given for path '"+e+"'");for(var n=this.find(t),a=e.split("."),o=a.length,r=0,i=n;r<o;r++)if(""!==a[r]||0!==r){if("^"!==a[r])break;if(!i.parent)throw new Error("Path '"+e+"' not valid for state '"+n.name+"'");i=i.parent}else i=n;var s=a.slice(r).join(".");return i.name+(i.name&&s?".":"")+s},e}(),cn=function(){function e(e,t,n,a){this.router=e,this.states=t,this.builder=n,this.listeners=a,this.queue=[]}return e.prototype.dispose=function(){this.queue=[]},e.prototype.register=function(e){var t=this.queue,n=sn.create(e),a=n.name;if(!x(a))throw new Error("State must have a valid name");if(this.states.hasOwnProperty(a)||X(t.map(c("name")),a))throw new Error("State '"+a+"' is already defined");return t.push(n),this.flush(),n},e.prototype.flush=function(){for(var e=this,t=this,n=t.queue,a=t.states,o=t.builder,r=[],i=[],s={},l=function(t){return e.states.hasOwnProperty(t)&&e.states[t]},c=function(){r.length&&e.listeners.forEach((function(e){return e("registered",r.map((function(e){return e.self})))}))};n.length>0;){var u=n.shift(),d=u.name,f=o.build(u),m=i.indexOf(u);if(f){var p=l(d);if(p&&p.name===d)throw new Error("State '"+d+"' is already defined");var g=l(d+".**");g&&this.router.stateRegistry.deregister(g),a[d]=u,this.attachRoute(u),m>=0&&i.splice(m,1),r.push(u)}else{var h=s[d];if(s[d]=n.length,m>=0&&h===n.length)return n.push(u),c(),a;m<0&&i.push(u),n.push(u)}}return c(),a},e.prototype.attachRoute=function(e){if(!e.abstract&&e.url){var t=this.router.urlService.rules;t.rule(t.urlRuleFactory.create(e))}},e}(),un=function(){function e(e){this.router=e,this.states={},this.listeners=[],this.matcher=new ln(this.states),this.builder=new rn(this.matcher,e.urlMatcherFactory),this.stateQueue=new cn(e,this.states,this.builder,this.listeners),this._registerRoot()}return e.prototype._registerRoot=function(){var e={name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0};(this._root=this.stateQueue.register(e)).navigable=null},e.prototype.dispose=function(){var e=this;this.stateQueue.dispose(),this.listeners=[],this.get().forEach((function(t){return e.get(t)&&e.deregister(t)}))},e.prototype.onStatesChanged=function(e){return this.listeners.push(e),function(){ee(this.listeners)(e)}.bind(this)},e.prototype.root=function(){return this._root},e.prototype.register=function(e){return this.stateQueue.register(e)},e.prototype._deregisterTree=function(e){var t=this,n=this.get().map((function(e){return e.$$state()})),a=function(e){var t=n.filter((function(t){return-1!==e.indexOf(t.parent)}));return 0===t.length?t:t.concat(a(t))},o=a([e]),r=[e].concat(o).reverse();return r.forEach((function(e){var n=t.router.urlService.rules;n.rules().filter(u("state",e)).forEach((function(e){return n.removeRule(e)})),delete t.states[e.name]})),r},e.prototype.deregister=function(e){var t=this.get(e);if(!t)throw new Error("Can't deregister state; not found: "+e);var n=this._deregisterTree(t.$$state());return this.listeners.forEach((function(e){return e("deregistered",n.map((function(e){return e.self})))})),n},e.prototype.get=function(e,t){var n=this;if(0===arguments.length)return Object.keys(this.states).map((function(e){return n.states[e].self}));var a=this.matcher.find(e,t);return a&&a.self||null},e.prototype.decorator=function(e,t){return this.builder.builder(e,t)},e}();(on=e.TransitionHookPhase||(e.TransitionHookPhase={}))[on.CREATE=0]="CREATE",on[on.BEFORE=1]="BEFORE",on[on.RUN=2]="RUN",on[on.SUCCESS=3]="SUCCESS",on[on.ERROR=4]="ERROR",(an=e.TransitionHookScope||(e.TransitionHookScope={}))[an.TRANSITION=0]="TRANSITION",an[an.STATE=1]="STATE";var dn={current:z,transition:null,traceData:{},bind:null},fn=function(){function t(t,n,a,o){var r=this;this.transition=t,this.stateContext=n,this.registeredHook=a,this.options=o,this.isSuperseded=function(){return r.type.hookPhase===e.TransitionHookPhase.RUN&&!r.options.transition.isActive()},this.options=re(o,dn),this.type=a.eventType}return t.chain=function(e,t){var n=function(e,t){return e.then((function(){return t.invokeHook()}))};return e.reduce(n,t||j.$q.when())},t.invokeHooks=function(e,n){for(var a=0;a<e.length;a++){var o=e[a].invokeHook();if(L(o)){var r=e.slice(a+1);return t.chain(r,o).then(n)}}return n()},t.runAllHooks=function(e){e.forEach((function(e){return e.invokeHook()}))},t.prototype.logError=function(e){this.transition.router.stateService.defaultErrorHandler()(e)},t.prototype.invokeHook=function(){var e=this,t=this.registeredHook;if(!t._deregistered){var n=this.getNotCurrentRejection();if(n)return n;var a=this.options;vt.traceHookInvocation(this,this.transition,a);var o=function(){return t.callback.call(a.bind,e.transition,e.stateContext)},r=function(e){return Ye.normalize(e).toPromise()},i=function(n){return t.eventType.getErrorHandler(e)(n)},s=function(n){return t.eventType.getResultHandler(e)(n)};try{var l=o();return!this.type.synchronous&&L(l)?l.catch(r).then(s,i):s(l)}catch(e){return i(Ye.normalize(e))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}},t.prototype.handleHookResult=function(e){var t=this,n=this.getNotCurrentRejection();return n||(L(e)?e.then((function(e){return t.handleHookResult(e)})):(vt.traceHookResult(e,this.transition,this.options),!1===e?Ye.aborted("Hook aborted transition").toPromise():_(Lt)(e)?Ye.redirected(e).toPromise():void 0))},t.prototype.getNotCurrentRejection=function(){var e=this.transition.router;return e._disposed?Ye.aborted("UIRouter instance #"+e.$id+" has been stopped (disposed)").toPromise():this.transition._aborted?Ye.aborted().toPromise():this.isSuperseded()?Ye.superseded(this.options.current()).toPromise():void 0},t.prototype.toString=function(){var e=this,t=e.options,n=e.registeredHook;return(d("traceData.hookType")(t)||"internal")+" context: "+(d("traceData.context.state.name")(t)||d("traceData.context")(t)||"unknown")+", "+He(200,We(n.callback))},t.HANDLE_RESULT=function(e){return function(t){return e.handleHookResult(t)}},t.LOG_REJECTED_RESULT=function(e){return function(t){L(t)&&t.catch((function(t){return e.logError(Ye.normalize(t))}))}},t.LOG_ERROR=function(e){return function(t){return e.logError(t)}},t.REJECT_ERROR=function(e){return function(e){return Ue(e)}},t.THROW_ERROR=function(e){return function(e){throw e}},t}();function mn(e,t,n){var a=x(t)?[t]:t;function o(e){for(var t=a,n=0;n<t.length;n++){var o=new je(t[n]);if(o&&o.matches(e.name)||!o&&t[n]===e.name)return!0}return!1}return!!(k(a)?a:o)(e,n)}var pn=function(){function t(e,t,n,a,o,r){void 0===r&&(r={}),this.tranSvc=e,this.eventType=t,this.callback=n,this.matchCriteria=a,this.removeHookFromRegistry=o,this.invokeCount=0,this._deregistered=!1,this.priority=r.priority||0,this.bind=r.bind||null,this.invokeLimit=r.invokeLimit}return t.prototype._matchingNodes=function(e,t,n){if(!0===t)return e;var a=e.filter((function(e){return mn(e.state,t,n)}));return a.length?a:null},t.prototype._getDefaultMatchCriteria=function(){return me(this.tranSvc._pluginapi._getPathTypes(),(function(){return!0}))},t.prototype._getMatchingNodes=function(t,n){var a=this,o=V(this._getDefaultMatchCriteria(),this.matchCriteria);return ge(this.tranSvc._pluginapi._getPathTypes()).reduce((function(r,i){var s=i.scope===e.TransitionHookScope.STATE,l=t[i.name]||[],c=s?l:[xe(l)];return r[i.name]=a._matchingNodes(c,o[i.name],n),r}),{})},t.prototype.matches=function(e,t){var n=this._getMatchingNodes(e,t);return ge(n).every(Q)?n:null},t.prototype.deregister=function(){this.removeHookFromRegistry(this),this._deregistered=!0},t}();function gn(e,t,n){var a=(e._registeredHooks=e._registeredHooks||{})[n.name]=[],o=ee(a);function r(e,r,i){void 0===i&&(i={});var s=new pn(t,n,r,e,o,i);return a.push(s),s.deregister.bind(s)}return e[n.name]=r,r}var hn=function(){function t(e){this.transition=e}return t.prototype.buildHooksForPhase=function(e){var t=this;return this.transition.router.transitionService._pluginapi._getEvents(e).map((function(e){return t.buildHooks(e)})).reduce(be,[]).filter(Q)},t.prototype.buildHooks=function(t){var n=this.transition,a=n.treeChanges(),o=this.getMatchingHooks(t,a,n);if(!o)return[];var r={transition:n,current:n.options().current},i=function(o){return o.matches(a,n)[t.criteriaMatchPath.name].map((function(a){var i=V({bind:o.bind,traceData:{hookType:t.name,context:a}},r),s=t.criteriaMatchPath.scope===e.TransitionHookScope.STATE?a.state.self:null,l=new fn(n,s,o,i);return{hook:o,node:a,transitionHook:l}}))};return o.map(i).reduce(be,[]).sort(_n(t.reverseSort)).map((function(e){return e.transitionHook}))},t.prototype.getMatchingHooks=function(t,n,a){var o=t.hookPhase===e.TransitionHookPhase.CREATE,r=this.transition.router.transitionService;return(o?[r]:[this.transition,r]).map((function(e){return e.getHooks(t.name)})).filter(Ee(P,"broken event named: "+t.name)).reduce(be,[]).filter((function(e){return e.matches(n,a)}))},t}();function _n(e){return void 0===e&&(e=!1),function(t,n){var a=e?-1:1,o=(t.node.state.path.length-n.node.state.path.length)*a;return 0!==o?o:n.hook.priority-t.hook.priority}}var bn=c("self"),yn=function(){function t(t,n,a){var o=this;if(this._deferred=j.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new hn(this),this.isActive=function(){return o.router.globals.transition===o},this.router=a,this._targetState=n,!n.valid())throw new Error(n.error());this._options=V({current:y(this)},n.options()),this.$id=a.transitionService._transitionCount++;var r=$t.buildToPath(t,n);this._treeChanges=$t.treeChanges(t,r,this._options.reloadState),this.createTransitionHookRegFns();var i=this._hookBuilder.buildHooksForPhase(e.TransitionHookPhase.CREATE);fn.invokeHooks(i,(function(){return null})),this.applyViewConfigs(a)}return t.prototype.onBefore=function(e,t,n){},t.prototype.onStart=function(e,t,n){},t.prototype.onExit=function(e,t,n){},t.prototype.onRetain=function(e,t,n){},t.prototype.onEnter=function(e,t,n){},t.prototype.onFinish=function(e,t,n){},t.prototype.onSuccess=function(e,t,n){},t.prototype.onError=function(e,t,n){},t.prototype.createTransitionHookRegFns=function(){var t=this;this.router.transitionService._pluginapi._getEvents().filter((function(t){return t.hookPhase!==e.TransitionHookPhase.CREATE})).forEach((function(e){return gn(t,t.router.transitionService,e)}))},t.prototype.getHooks=function(e){return this._registeredHooks[e]},t.prototype.applyViewConfigs=function(e){var t=this._treeChanges.entering.map((function(e){return e.state}));$t.applyViewConfigs(e.transitionService.$view,this._treeChanges.to,t)},t.prototype.$from=function(){return xe(this._treeChanges.from).state},t.prototype.$to=function(){return xe(this._treeChanges.to).state},t.prototype.from=function(){return this.$from().self},t.prototype.to=function(){return this.$to().self},t.prototype.targetState=function(){return this._targetState},t.prototype.is=function(e){return e instanceof t?this.is({to:e.$to().name,from:e.$from().name}):!(e.to&&!mn(this.$to(),e.to,this)||e.from&&!mn(this.$from(),e.from,this))},t.prototype.params=function(e){return void 0===e&&(e="to"),Object.freeze(this._treeChanges[e].map(c("paramValues")).reduce(ie,{}))},t.prototype.paramsChanged=function(){var e=this.params("from"),t=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((function(e){return e.paramSchema})).reduce(ye,[]).reduce(Ae,[]);return Mt.changed(n,e,t).reduce((function(e,n){return e[n.id]=t[n.id],e}),{})},t.prototype.injector=function(e,t){void 0===t&&(t="to");var n=this._treeChanges[t];return e&&(n=$t.subPath(n,(function(t){return t.state===e||t.state.name===e}))),new Gt(n).injector()},t.prototype.getResolveTokens=function(e){return void 0===e&&(e="to"),new Gt(this._treeChanges[e]).getTokens()},t.prototype.addResolvable=function(e,t){void 0===t&&(t=""),e=_(Ft)(e)?e:new Ft(e);var n="string"==typeof t?t:t.name,a=this._treeChanges.to,o=fe(a,(function(e){return e.state.name===n}));new Gt(a).addResolvables([e],o.state)},t.prototype.redirectedFrom=function(){return this._options.redirectedFrom||null},t.prototype.originalTransition=function(){var e=this.redirectedFrom();return e&&e.originalTransition()||this},t.prototype.options=function(){return this._options},t.prototype.entering=function(){return pe(this._treeChanges.entering,c("state")).map(bn)},t.prototype.exiting=function(){return pe(this._treeChanges.exiting,c("state")).map(bn).reverse()},t.prototype.retained=function(){return pe(this._treeChanges.retained,c("state")).map(bn)},t.prototype.views=function(e,t){void 0===e&&(e="entering");var n=this._treeChanges[e];return(n=t?n.filter(u("state",t)):n).map(c("views")).filter(Q).reduce(be,[])},t.prototype.treeChanges=function(e){return e?this._treeChanges[e]:this._treeChanges},t.prototype.redirect=function(e){for(var t=1,n=this;null!=(n=n.redirectedFrom());)if(++t>20)throw new Error("Too many consecutive Transition redirects (20+)");var a={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==e.options().location&&(a.location="replace");var o=V({},this.options(),e.options(),a);e=e.withOptions(o,!0);var r=this.router.transitionService.create(this._treeChanges.from,e),i=this._treeChanges.entering,s=r._treeChanges.entering,l=function(e){return function(t){return e&&t.state.includes[e.name]}};return $t.matching(s,i,$t.nonDynamicParams).filter(f(l(e.options().reloadState))).forEach((function(e,t){e.resolvables=i[t].resolvables})),r},t.prototype._changedParams=function(){var e=this._treeChanges;if(!(this._options.reload||e.exiting.length||e.entering.length||e.to.length!==e.from.length||ke(e.to,e.from).map((function(e){return e[0].state!==e[1].state})).reduce(_e,!1))){var t=e.to.map((function(e){return e.paramSchema})),n=[e.to,e.from].map((function(e){return e.map((function(e){return e.paramValues}))}));return ke(t,n[0],n[1]).map((function(e){var t=e[0],n=e[1],a=e[2];return Mt.changed(t,n,a)})).reduce(be,[])}},t.prototype.dynamic=function(){var e=this._changedParams();return!!e&&e.map((function(e){return e.dynamic})).reduce(_e,!1)},t.prototype.ignored=function(){return!!this._ignoredReason()},t.prototype._ignoredReason=function(){var e=this.router.globals.transition,t=this._options.reloadState,n=function(e,n){if(e.length!==n.length)return!1;var a=$t.matching(e,n);return e.length===a.filter((function(e){return!t||!e.state.includes[t.name]})).length},a=this.treeChanges(),o=e&&e.treeChanges();return o&&n(o.to,a.to)&&n(o.exiting,a.exiting)?"SameAsPending":0===a.exiting.length&&0===a.entering.length&&n(a.from,a.to)?"SameAsCurrent":void 0},t.prototype.run=function(){var t=this,n=fn.runAllHooks,a=function(e){return t._hookBuilder.buildHooksForPhase(e)},o=function(){vt.traceSuccess(t.$to(),t),t.success=!0,t._deferred.resolve(t.to()),n(a(e.TransitionHookPhase.SUCCESS))},r=function(o){vt.traceError(o,t),t.success=!1,t._deferred.reject(o),t._error=o,n(a(e.TransitionHookPhase.ERROR))},i=function(){var t=a(e.TransitionHookPhase.RUN),n=function(){return j.$q.when(void 0)};return fn.invokeHooks(t,n)},s=function(){var e=t.router.globals;return e.lastStartedTransitionId=t.$id,e.transition=t,e.transitionHistory.enqueue(t),vt.traceTransitionStart(t),j.$q.when(void 0)},l=a(e.TransitionHookPhase.BEFORE);return fn.invokeHooks(l,s).then(i).then(o,r),this.promise},t.prototype.valid=function(){return!this.error()||void 0!==this.success},t.prototype.abort=function(){E(this.success)&&(this._aborted=!0)},t.prototype.error=function(){var e=this.$to();if(e.self.abstract)return Ye.invalid("Cannot transition to abstract state '"+e.name+"'");var t=e.parameters(),n=this.params(),a=t.filter((function(e){return!e.validates(n[e.id])}));if(a.length){var o=a.map((function(e){return"["+e.id+":"+Je(n[e.id])+"]"})).join(", "),r="The following parameter values are not valid for state '"+e.name+"': "+o;return Ye.invalid(r)}return!1===this.success?this._error:void 0},t.prototype.toString=function(){var e=this.from(),t=this.to(),n=function(e){return null!==e["#"]&&void 0!==e["#"]?e:ce(e,["#"])};return"Transition#"+this.$id+"( '"+(M(e)?e.name:e)+"'"+Je(n(this._treeChanges.from.map(c("paramValues")).reduce(ie,{})))+" -> "+(this.valid()?"":"(X) ")+"'"+(M(t)?t.name:t)+"'"+Je(n(this.params()))+" )"},t.diToken=t,t}();function vn(e,t){var n=["",""],a=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return a;switch(t.squash){case!1:n=["(",")"+(t.isOptional?"?":"")];break;case!0:a=a.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=["("+t.squash+"|",")?"]}return a+n[0]+t.type.pattern.source+n[1]}var An=function(e,t,n){return e[t]=e[t]||n()},Sn=rt("/"),wn={state:{params:{}},strict:!0,caseInsensitive:!0,decodeParams:!0},En=function(){function t(e,n,a,o){var r=this;this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=o=re(o,wn),this.pattern=e;for(var i,s,l,c=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,d=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f=[],m=0,p=function(n){if(!t.nameValidator.test(n))throw new Error("Invalid parameter name '"+n+"' in pattern '"+e+"'");if(fe(r._params,u("id",n)))throw new Error("Duplicate parameter name '"+n+"' in pattern '"+e+"'")},g=function(t,a){var o=t[2]||t[3],i=a?t[4]:t[4]||("*"===t[1]?"[\\s\\S]*":null),s=function(e){return J(n.type(a?"query":"path"),{pattern:new RegExp(e,r.config.caseInsensitive?"i":void 0)})};return{id:o,regexp:i,segment:e.substring(m,t.index),type:i?n.type(i)||s(i):null}};(i=c.exec(e))&&!((s=g(i,!1)).segment.indexOf("?")>=0);)p(s.id),this._params.push(a.fromPath(s.id,s.type,o.state)),this._segments.push(s.segment),f.push([s.segment,xe(this._params)]),m=c.lastIndex;var h=(l=e.substring(m)).indexOf("?");if(h>=0){var _=l.substring(h);if(l=l.substring(0,h),_.length>0)for(m=0;i=d.exec(_);)p((s=g(i,!0)).id),this._params.push(a.fromSearch(s.id,s.type,o.state)),m=c.lastIndex}this._segments.push(l),this._compiled=f.map((function(e){return vn.apply(null,e)})).concat(vn(l))}return t.encodeDashes=function(e){return encodeURIComponent(e).replace(/-/g,(function(e){return"%5C%"+e.charCodeAt(0).toString(16).toUpperCase()}))},t.pathSegmentsAndParams=function(t){return ke(t._segments,t._params.filter((function(t){return t.location===e.DefType.PATH})).concat(void 0)).reduce(be,[]).filter((function(e){return""!==e&&C(e)}))},t.queryParams=function(t){return t._params.filter((function(t){return t.location===e.DefType.SEARCH}))},t.compare=function(e,n){var a=function(e){return e._cache.segments=e._cache.segments||e._cache.path.map(t.pathSegmentsAndParams).reduce(be,[]).reduce(it,[]).map((function(e){return x(e)?Sn(e):e})).reduce(be,[])},o=function(e){return e._cache.weights=e._cache.weights||a(e).map((function(e){return"/"===e?1:x(e)?2:e instanceof Mt?3:void 0}))},r=function(e,t,n){for(var a=Math.max(e.length,t.length);e.length<a;)e.push(n);for(;t.length<a;)t.push(n)},i=o(e),s=o(n);r(i,s,0);var l,c,u=ke(i,s);for(c=0;c<u.length;c++)if(0!=(l=u[c][0]-u[c][1]))return l;return 0},t.prototype.append=function(e){return this._children.push(e),e._cache={path:this._cache.path.concat(e),parent:this,pattern:null},e},t.prototype.isRoot=function(){return this._cache.path[0]===this},t.prototype.toString=function(){return this.pattern},t.prototype._getDecodedParamValue=function(e,t){return C(e)&&(this.config.decodeParams&&!t.type.raw&&(e=P(e)?e.map((function(e){return decodeURIComponent(e)})):decodeURIComponent(e)),e=t.type.decode(e)),t.value(e)},t.prototype.exec=function(e,t,n,a){var o=this;void 0===t&&(t={});var r=An(this._cache,"pattern",(function(){return new RegExp(["^",Se(o._cache.path.map(c("_compiled"))).join(""),!1===o.config.strict?"/?":"","$"].join(""),o.config.caseInsensitive?"i":void 0)})).exec(e);if(!r)return null;var i=this.parameters(),s=i.filter((function(e){return!e.isSearch()})),l=i.filter((function(e){return e.isSearch()})),u=this._cache.path.map((function(e){return e._segments.length-1})).reduce((function(e,t){return e+t})),d={};if(u!==r.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");function f(e){var t=function(e){return e.split("").reverse().join("")},n=function(e){return e.replace(/\\-/g,"-")},a=pe(t(e).split(/-(?!\\)/),t);return pe(a,n).reverse()}for(var m=0;m<u;m++){for(var p=s[m],g=r[m+1],h=0;h<p.replace.length;h++)p.replace[h].from===g&&(g=p.replace[h].to);g&&!0===p.array&&(g=f(g)),d[p.id]=this._getDecodedParamValue(g,p)}return l.forEach((function(e){for(var n=t[e.id],a=0;a<e.replace.length;a++)e.replace[a].from===n&&(n=e.replace[a].to);d[e.id]=o._getDecodedParamValue(n,e)})),n&&(d["#"]=n),d},t.prototype.parameters=function(e){return void 0===e&&(e={}),!1===e.inherit?this._params:Se(this._cache.path.map((function(e){return e._params})))},t.prototype.parameter=function(e,t){var n=this;void 0===t&&(t={});var a=function(){for(var t=0,a=n._params;t<a.length;t++){var o=a[t];if(o.id===e)return o}},o=this._cache.parent;return a()||!1!==t.inherit&&o&&o.parameter(e,t)||null},t.prototype.validates=function(e){var t=function(e,t){return!e||e.validates(t)};return e=e||{},this.parameters().filter((function(t){return e.hasOwnProperty(t.id)})).map((function(n){return t(n,e[n.id])})).reduce(he,!0)},t.prototype.format=function(e){void 0===e&&(e={});var n=this._cache.path,a=n.map(t.pathSegmentsAndParams).reduce(be,[]).map((function(e){return x(e)?e:i(e)})),o=n.map(t.queryParams).reduce(be,[]).map(i),r=function(e){return!1===e.isValid};if(a.concat(o).filter(r).length)return null;function i(t){var n=t.value(e[t.id]),a=t.validates(n),o=t.isDefaultValue(n),r=!!o&&t.squash,i=t.type.encode(n);return{param:t,value:n,isValid:a,isDefaultValue:o,squash:r,encoded:i}}var s=a.reduce((function(e,n){if(x(n))return e+n;var a=n.squash,o=n.encoded,r=n.param;return!0===a?e.match(/\/$/)?e.slice(0,-1):e:x(a)?e+a:!1!==a||null==o?e:P(o)?e+pe(o,t.encodeDashes).join("-"):r.raw?e+o:e+encodeURIComponent(o)}),""),l=o.map((function(e){var t=e.param,n=e.squash,a=e.encoded,o=e.isDefaultValue;if(!(null==a||o&&!1!==n)&&(P(a)||(a=[a]),0!==a.length))return t.raw||(a=pe(a,encodeURIComponent)),a.map((function(e){return t.id+"="+e}))})).filter(Q).reduce(be,[]).join("&");return s+(l?"?"+l:"")+(e["#"]?"#"+e["#"]:"")},t.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,t}(),Cn=function(){return(Cn=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Tn=function(){function t(e){this.router=e}return t.prototype.fromConfig=function(t,n,a){return new Mt(t,n,e.DefType.CONFIG,this.router.urlService.config,a)},t.prototype.fromPath=function(t,n,a){return new Mt(t,n,e.DefType.PATH,this.router.urlService.config,a)},t.prototype.fromSearch=function(t,n,a){return new Mt(t,n,e.DefType.SEARCH,this.router.urlService.config,a)},t}(),In=function(){function e(e){var t=this;this.router=e,this.paramFactory=new Tn(this.router),this.UrlMatcher=En,this.Param=Mt,this.caseInsensitive=function(e){return t.router.urlService.config.caseInsensitive(e)},this.defaultSquashPolicy=function(e){return t.router.urlService.config.defaultSquashPolicy(e)},this.strictMode=function(e){return t.router.urlService.config.strictMode(e)},this.type=function(e,n,a){return t.router.urlService.config.type(e,n,a)||t}}return e.prototype.compile=function(e,t){var n=this.router.urlService.config,a=t&&!t.state&&t.params;t=a?Cn({state:{params:a}},t):t;var o={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive,decodeParams:n._decodeParams};return new En(e,n.paramTypes,this.paramFactory,V(o,t))},e.prototype.isMatcher=function(e){if(!M(e))return!1;var t=!0;return G(En.prototype,(function(n,a){k(n)&&(t=t&&C(e[a])&&k(e[a]))})),t},e.prototype.$get=function(){var e=this.router.urlService.config;return e.paramTypes.enqueue=!1,e.paramTypes._flushTypeQueue(),this},e}(),kn=function(){function e(e){this.router=e}return e.prototype.compile=function(e){return this.router.urlMatcherFactory.compile(e)},e.prototype.create=function(e,t){var n=this,a=sn.isState,o=sn.isStateDeclaration,r=A([[x,function(e){return r(n.compile(e))}],[_(En),function(e){return n.fromUrlMatcher(e,t)}],[p(a,o),function(e){return n.fromState(e,n.router)}],[_(RegExp),function(e){return n.fromRegExp(e,t)}],[k,function(e){return new Dn(e,t)}]]),i=r(e);if(!i)throw new Error("invalid 'what' in when()");return i},e.prototype.fromUrlMatcher=function(e,t){var n=t;function a(t){var n=e.exec(t.path,t.search,t.hash);return e.validates(n)&&n}function o(t){var n=e.parameters().filter((function(e){return e.isOptional}));return n.length?n.filter((function(e){return t[e.id]})).length/n.length:1e-6}x(t)&&(t=this.router.urlMatcherFactory.compile(t)),_(En)(t)&&(n=function(e){return t.format(e)});var r={urlMatcher:e,matchPriority:o,type:"URLMATCHER"};return V(new Dn(a,n),r)},e.prototype.fromState=function(e,t){var n=sn.isStateDeclaration(e)?e.$$state():e,a=function(e){var a=t.stateService,o=t.globals;a.href(n,e)!==a.href(o.current,o.params)&&a.transitionTo(n,e,{inherit:!0,source:"url"})},o={state:n,type:"STATE"};return V(this.fromUrlMatcher(n.url,a),o)},e.prototype.fromRegExp=function(e,t){if(e.global||e.sticky)throw new Error("Rule RegExp must not be global or sticky");var n=function(e){return t.replace(/\$(\$|\d{1,2})/,(function(t,n){return e["$"===n?0:Number(n)]}))},a=x(t)?n:t,o=function(t){return e.exec(t.path)},r={regexp:e,type:"REGEXP"};return V(new Dn(o,a),r)},e.isUrlRule=function(e){return e&&["type","match","handler"].every((function(t){return C(e[t])}))},e}(),Dn=function(){function e(e,t){var n=this;this.match=e,this.type="RAW",this.matchPriority=function(e){return 0-n.$id},this.handler=t||Q}return e}();function xn(e,t,n,a){return"/"===a?e:t?et(a)+e:n?a.slice(1)+e:e}var Mn,Pn=function(){function e(e){var t=this;this.router=e,this.sync=function(e){return t.router.urlService.sync(e)},this.listen=function(e){return t.router.urlService.listen(e)},this.deferIntercept=function(e){return t.router.urlService.deferIntercept(e)},this.match=function(e){return t.router.urlService.match(e)},this.initial=function(e){return t.router.urlService.rules.initial(e)},this.otherwise=function(e){return t.router.urlService.rules.otherwise(e)},this.removeRule=function(e){return t.router.urlService.rules.removeRule(e)},this.rule=function(e){return t.router.urlService.rules.rule(e)},this.rules=function(){return t.router.urlService.rules.rules()},this.sort=function(e){return t.router.urlService.rules.sort(e)},this.when=function(e,n,a){return t.router.urlService.rules.when(e,n,a)},this.urlRuleFactory=new kn(e)}return e.prototype.update=function(e){var t=this.router.locationService;e?this.location=t.url():t.url()!==this.location&&t.url(this.location,!0)},e.prototype.push=function(e,t,n){var a=n&&!!n.replace;this.router.urlService.url(e.format(t||{}),a)},e.prototype.href=function(e,t,n){var a=e.format(t);if(null==a)return null;n=n||{absolute:!1};var o=this.router.urlService.config,r=o.html5Mode();if(r||null===a||(a="#"+o.hashPrefix()+a),a=xn(a,r,n.absolute,o.baseHref()),!n.absolute||!a)return a;var i=!r&&a?"/":"",s=o.port(),l=80===s||443===s?"":":"+s;return[o.protocol(),"://",o.host(),l,i,a].join("")},Object.defineProperty(e.prototype,"interceptDeferred",{get:function(){return this.router.urlService.interceptDeferred},enumerable:!1,configurable:!0}),e}(),On=function(){function e(e){var t=this;this.router=e,this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:function(e){return fe(t._uiViews,(function(n){return t.router.$id+"."+n.id===e}))},_registeredUIViews:function(){return t._uiViews},_activeViewConfigs:function(){return t._viewConfigs},_onSync:function(e){return t._listeners.push(e),function(){return ee(t._listeners,e)}}}}return e.normalizeUIViewTarget=function(e,t){void 0===t&&(t="");var n=t.split("@"),a=n[0]||"$default",o=x(n[1])?n[1]:"^",r=/^(\^(?:\.\^)*)\.(.*$)/.exec(a);if(r&&(o=r[1],a=r[2]),"!"===a.charAt(0)&&(a=a.substr(1),o=""),/^(\^(?:\.\^)*)$/.exec(o)){var i=o.split(".").reduce((function(e,t){return e.parent}),e);o=i.name}else"."===o&&(o=e.name);return{uiViewName:a,uiViewContextAnchor:o}},e.prototype._rootViewContext=function(e){return this._rootContext=e||this._rootContext},e.prototype._viewConfigFactory=function(e,t){this._viewConfigFactories[e]=t},e.prototype.createViewConfig=function(e,t){var n=this._viewConfigFactories[t.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+t.$type);var a=n(e,t);return P(a)?a:[a]},e.prototype.deactivateViewConfig=function(e){vt.traceViewServiceEvent("<- Removing",e),ee(this._viewConfigs,e)},e.prototype.activateViewConfig=function(e){vt.traceViewServiceEvent("-> Registering",e),this._viewConfigs.push(e)},e.prototype.sync=function(){var t=this,n=this._uiViews.map((function(e){return[e.fqn,e]})).reduce(De,{});function a(e){var t=function(e){return e&&e.parent?t(e.parent)+1:1};return 1e4*e.fqn.split(".").length+t(e.creationContext)}function o(e){for(var t=e.viewDecl.$context,n=0;++n&&t.parent;)t=t.parent;return n}var r=i((function(e,t,n,a){return t*(e(n)-e(a))})),s=function(a){var i=t._viewConfigs.filter(e.matches(n,a));return i.length>1&&i.sort(r(o,-1)),{uiView:a,viewConfig:i[0]}},l=function(e){-1!==t._uiViews.indexOf(e.uiView)&&e.uiView.configUpdated(e.viewConfig)},c=this._uiViews.sort(r(a,1)).map(s),u=c.map((function(e){return e.viewConfig})),d=this._viewConfigs.filter((function(e){return!X(u,e)})).map((function(e){return{uiView:void 0,viewConfig:e}}));c.forEach(l);var f=c.concat(d);this._listeners.forEach((function(e){return e(f)})),vt.traceViewSync(f)},e.prototype.registerUIView=function(e){vt.traceViewServiceUIViewEvent("-> Registering",e);var t=this._uiViews,n=function(t){return t.fqn===e.fqn&&t.$type===e.$type};return t.filter(n).length&&vt.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",e),t.push(e),this.sync(),function(){-1!==t.indexOf(e)?(vt.traceViewServiceUIViewEvent("<- Deregistering",e),ee(t)(e)):vt.traceViewServiceUIViewEvent("Tried removing non-registered uiView",e)}},e.prototype.available=function(){return this._uiViews.map(c("fqn"))},e.prototype.active=function(){return this._uiViews.filter(c("$config")).map(c("name"))},e.matches=function(e,t){return function(n){if(t.$type!==n.viewDecl.$type)return!1;var a=n.viewDecl,o=a.$uiViewName.split("."),r=t.fqn.split(".");if(!W(o,r.slice(0-o.length)))return!1;var i=1-o.length||void 0,s=r.slice(0,i).join("."),l=e[s].creationContext;return a.$uiViewContextAnchor===(l&&l.name)}},e}(),Rn=function(){function e(){this.params=new Rt,this.lastStartedTransitionId=-1,this.transitionHistory=new Fe([],1),this.successfulTransitions=new Fe([],1)}return e.prototype.dispose=function(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null},e}(),Nn=function(e,t){return(t.priority||0)-(e.priority||0)},Ln=function(e,t){var n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[e.type]||0)-(n[t.type]||0)},$n=function(e,t){return e.urlMatcher&&t.urlMatcher?En.compare(e.urlMatcher,t.urlMatcher):0},Un=function(e,t){var n={STATE:!0,URLMATCHER:!0};return n[e.type]&&n[t.type]?0:(e.$id||0)-(t.$id||0)};function jn(e){if(!(k(e)||x(e)||_(Lt)(e)||Lt.isDef(e)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return k(e)?e:y(e)}Mn=function(e,t){var n=Nn(e,t);return 0!==n||0!==(n=Ln(e,t))||0!==(n=$n(e,t))?n:Un(e,t)};var Fn=function(){function e(e){this.router=e,this._sortFn=Mn,this._rules=[],this._id=0,this.urlRuleFactory=new kn(e)}return e.prototype.dispose=function(e){this._rules=[],delete this._otherwiseFn},e.prototype.initial=function(e){var t=jn(e),n=function(e,t){return 0===t.globals.transitionHistory.size()&&!!/^\/?$/.exec(e.path)};this.rule(this.urlRuleFactory.create(n,t))},e.prototype.otherwise=function(e){var t=jn(e);this._otherwiseFn=this.urlRuleFactory.create(y(!0),t),this._sorted=!1},e.prototype.removeRule=function(e){ee(this._rules,e)},e.prototype.rule=function(e){var t=this;if(!kn.isUrlRule(e))throw new Error("invalid rule");return e.$id=this._id++,e.priority=e.priority||0,this._rules.push(e),this._sorted=!1,function(){return t.removeRule(e)}},e.prototype.rules=function(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])},e.prototype.sort=function(e){for(var t=this.stableSort(this._rules,this._sortFn=e||this._sortFn),n=0,a=0;a<t.length;a++)t[a]._group=n,a<t.length-1&&0!==this._sortFn(t[a],t[a+1])&&n++;this._rules=t,this._sorted=!0},e.prototype.ensureSorted=function(){this._sorted||this.sort()},e.prototype.stableSort=function(e,t){var n=e.map((function(e,t){return{elem:e,idx:t}}));return n.sort((function(e,n){var a=t(e.elem,n.elem);return 0===a?e.idx-n.idx:a})),n.map((function(e){return e.elem}))},e.prototype.when=function(e,t,n){var a=this.urlRuleFactory.create(e,t);return C(n&&n.priority)&&(a.priority=n.priority),this.rule(a),a},e}(),qn=function(){function e(e){var t=this;this.router=e,this.paramTypes=new Pt,this._decodeParams=!0,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this.dispose=function(){return t.paramTypes.dispose()},this.baseHref=function(){return t.router.locationConfig.baseHref()},this.hashPrefix=function(e){return t.router.locationConfig.hashPrefix(e)},this.host=function(){return t.router.locationConfig.host()},this.html5Mode=function(){return t.router.locationConfig.html5Mode()},this.port=function(){return t.router.locationConfig.port()},this.protocol=function(){return t.router.locationConfig.protocol()}}return e.prototype.caseInsensitive=function(e){return this._isCaseInsensitive=C(e)?e:this._isCaseInsensitive},e.prototype.defaultSquashPolicy=function(e){if(C(e)&&!0!==e&&!1!==e&&!x(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return this._defaultSquashPolicy=C(e)?e:this._defaultSquashPolicy},e.prototype.strictMode=function(e){return this._isStrictMode=C(e)?e:this._isStrictMode},e.prototype.type=function(e,t,n){var a=this.paramTypes.type(e,t,n);return C(t)?this:a},e}(),Yn=function(){function e(e){var t=this;this.router=e,this.interceptDeferred=!1,this.rules=new Fn(this.router),this.config=new qn(this.router),this.url=function(e,n,a){return t.router.locationService.url(e,n,a)},this.path=function(){return t.router.locationService.path()},this.search=function(){return t.router.locationService.search()},this.hash=function(){return t.router.locationService.hash()},this.onChange=function(e){return t.router.locationService.onChange(e)}}return e.prototype.dispose=function(){this.listen(!1),this.rules.dispose()},e.prototype.parts=function(){return{path:this.path(),search:this.search(),hash:this.hash()}},e.prototype.sync=function(e){if(!e||!e.defaultPrevented){var t=this.router,n=t.urlService,a=t.stateService,o={path:n.path(),search:n.search(),hash:n.hash()},r=this.match(o);A([[x,function(e){return n.url(e,!0)}],[Lt.isDef,function(e){return a.go(e.state,e.params,e.options)}],[_(Lt),function(e){return a.go(e.state(),e.params(),e.options())}]])(r&&r.rule.handler(r.match,o,this.router))}},e.prototype.listen=function(e){var t=this;if(!1!==e)return this._stopListeningFn=this._stopListeningFn||this.router.urlService.onChange((function(e){return t.sync(e)}));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn},e.prototype.deferIntercept=function(e){void 0===e&&(e=!0),this.interceptDeferred=e},e.prototype.match=function(e){var t=this;e=V({path:"",search:{},hash:""},e);for(var n,a=this.rules.rules(),o=function(n){var a=n.match(e,t.router);return a&&{match:a,rule:n,weight:n.matchPriority(a)}},r=0;r<a.length&&(!n||n.rule._group===a[r]._group);r++){var i=o(a[r]);n=!n||i&&i.weight>n.weight?i:n}return n},e}(),Hn=0,Bn=["port","protocol","host","baseHref","html5Mode","hashPrefix"],Gn=U("LocationServices",["url","path","search","hash","onChange"]),Vn=U("LocationConfig",Bn),Wn=function(){function e(e,t){void 0===e&&(e=Gn),void 0===t&&(t=Vn),this.locationService=e,this.locationConfig=t,this.$id=Hn++,this._disposed=!1,this._disposables=[],this.trace=vt,this.viewService=new On(this),this.globals=new Rn,this.transitionService=new Ma(this),this.urlMatcherFactory=new In(this),this.urlRouter=new Pn(this),this.urlService=new Yn(this),this.stateRegistry=new un(this),this.stateService=new Pa(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlService),this.disposable(e),this.disposable(t)}return e.prototype.disposable=function(e){this._disposables.push(e)},e.prototype.dispose=function(e){var t=this;e&&k(e.dispose)?e.dispose(this):(this._disposed=!0,this._disposables.slice().forEach((function(e){try{"function"==typeof e.dispose&&e.dispose(t),ee(t._disposables,e)}catch(e){}})))},e.prototype.plugin=function(e,t){void 0===t&&(t={});var n=new e(this,t);if(!n.name)throw new Error("Required property `name` missing on plugin: "+n);return this._disposables.push(n),this._plugins[n.name]=n},e.prototype.getPlugin=function(e){return e?this._plugins[e]:ge(this._plugins)},e}();function Qn(e){e.addResolvable(Ft.fromData(Wn,e.router),""),e.addResolvable(Ft.fromData(yn,e),""),e.addResolvable(Ft.fromData("$transition$",e),""),e.addResolvable(Ft.fromData("$stateParams",e.params()),""),e.entering().forEach((function(t){e.addResolvable(Ft.fromData("$state$",t),t)}))}var zn=function(e){return e.onCreate({},Qn)},Kn=X(["$transition$",yn]),Jn=function(e){var t=ge(e.treeChanges()).reduce(be,[]).reduce(Ae,[]),n=function(e){return Kn(e.token)?Ft.fromData(e.token,null):e};t.forEach((function(e){e.resolvables=e.resolvables.map(n)}))},Xn=function(e){var t=e.to().redirectTo;if(t){var n=e.router.stateService;return k(t)?j.$q.when(t(e)).then(a):a(t)}function a(t){if(t)return t instanceof Lt?t:x(t)?n.target(t,e.params(),e.options()):t.state||t.params?n.target(t.state||e.to(),t.params||e.params(),e.options()):void 0}},Zn=function(e){return e.onStart({to:function(e){return!!e.redirectTo}},Xn)};function ea(e){return function(t,n){return(0,n.$$state()[e])(t,n)}}var ta=ea("onExit"),na=function(e){return e.onExit({exiting:function(e){return!!e.onExit}},ta)},aa=ea("onRetain"),oa=function(e){return e.onRetain({retained:function(e){return!!e.onRetain}},aa)},ra=ea("onEnter"),ia=function(e){return e.onEnter({entering:function(e){return!!e.onEnter}},ra)},sa=1e3,la=function(e){return new Gt(e.treeChanges().to).resolvePath("EAGER",e).then(z)},ca=function(e){return e.onStart({},la,{priority:sa})},ua=function(e,t){return new Gt(e.treeChanges().to).subContext(t.$$state()).resolvePath("LAZY",e).then(z)},da=function(e){return e.onEnter({entering:y(!0)},ua,{priority:sa})},fa=function(e){return new Gt(e.treeChanges().to).resolvePath("LAZY",e).then(z)},ma=function(e){return e.onFinish({},fa,{priority:sa})},pa=function(e){var t=j.$q,n=e.views("entering");if(n.length)return t.all(n.map((function(e){return t.when(e.load())}))).then(z)},ga=function(e){return e.onFinish({},pa)},ha=function(e){var t=e.views("entering"),n=e.views("exiting");if(t.length||n.length){var a=e.router.viewService;n.forEach((function(e){return a.deactivateViewConfig(e)})),t.forEach((function(e){return a.activateViewConfig(e)})),a.sync()}},_a=function(e){return e.onSuccess({},ha)},ba=function(e){var t=e.router.globals,n=function(){t.successfulTransitions.enqueue(e),t.$current=e.$to(),t.current=t.$current.self,Me(e.params(),t.params)},a=function(){t.transition===e&&(t.transition=null)};e.onSuccess({},n,{priority:1e4}),e.promise.then(a,a)},ya=function(e){return e.onCreate({},ba)},va=function(e){var t=e.options(),n=e.router.stateService,a=e.router.urlRouter;if("url"!==t.source&&t.location&&n.$current.navigable){var o={replace:"replace"===t.location};a.push(n.$current.navigable.url,n.params,o)}a.update(!0)},Aa=function(e){return e.onSuccess({},va,{priority:9999})},Sa=function(e){var t=e.router;function n(){if("url"!==e.originalTransition().options().source){var n=e.targetState();return t.stateService.target(n.identifier(),n.params(),n.options())}var a=t.urlService,o=a.match(a.parts()),r=o&&o.rule;if(r&&"STATE"===r.type){var i=r.state,s=o.match;return t.stateService.target(i,s,e.options())}t.urlService.sync()}var a=e.entering().filter((function(e){return!!e.$$state().lazyLoad})).map((function(t){return Ea(e,t)}));return j.$q.all(a).then(n)},wa=function(e){return e.onBefore({entering:function(e){return!!e.lazyLoad}},Sa)};function Ea(e,t){var n=t.$$state().lazyLoad,a=n._promise;if(!a){var o=function(e){return delete t.lazyLoad,delete t.$$state().lazyLoad,delete n._promise,e},r=function(e){return delete n._promise,j.$q.reject(e)};a=n._promise=j.$q.when(n(e,t)).then(i).then(o,r)}function i(t){return t&&Array.isArray(t.states)&&t.states.forEach((function(t){return e.router.stateRegistry.register(t)})),t}return a}var Ca=function(){function e(e,t,n,a,o,r,i,s){void 0===o&&(o=!1),void 0===r&&(r=fn.HANDLE_RESULT),void 0===i&&(i=fn.REJECT_ERROR),void 0===s&&(s=!1),this.name=e,this.hookPhase=t,this.hookOrder=n,this.criteriaMatchPath=a,this.reverseSort=o,this.getResultHandler=r,this.getErrorHandler=i,this.synchronous=s}return e}();function Ta(e){var t=e._ignoredReason();if(t){vt.traceTransitionIgnored(e);var n=e.router.globals.transition;return"SameAsCurrent"===t&&n&&n.abort(),Ye.ignored().toPromise()}}var Ia=function(e){return e.onBefore({},Ta,{priority:-9999})};function ka(e){if(!e.valid())throw new Error(e.error().toString())}var Da=function(e){return e.onBefore({},ka,{priority:-1e4})},xa={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:function(){return null},source:"unknown"},Ma=function(){function t(e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=e,this.$view=e.viewService,this._deregisterHookFns={},this._pluginapi=K(y(this),{},y(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),e.globals.successfulTransitions.onEvict(Jn)}return t.prototype.onCreate=function(e,t,n){},t.prototype.onBefore=function(e,t,n){},t.prototype.onStart=function(e,t,n){},t.prototype.onExit=function(e,t,n){},t.prototype.onRetain=function(e,t,n){},t.prototype.onEnter=function(e,t,n){},t.prototype.onFinish=function(e,t,n){},t.prototype.onSuccess=function(e,t,n){},t.prototype.onError=function(e,t,n){},t.prototype.dispose=function(e){ge(this._registeredHooks).forEach((function(e){return e.forEach((function(t){t._deregistered=!0,ee(e,t)}))}))},t.prototype.create=function(e,t){return new yn(e,t,this._router)},t.prototype._defineCoreEvents=function(){var t=e.TransitionHookPhase,n=fn,a=this._criteriaPaths,o=!1,r=!0,i=!0;this._defineEvent("onCreate",t.CREATE,0,a.to,o,n.LOG_REJECTED_RESULT,n.THROW_ERROR,i),this._defineEvent("onBefore",t.BEFORE,0,a.to),this._defineEvent("onStart",t.RUN,0,a.to),this._defineEvent("onExit",t.RUN,100,a.exiting,r),this._defineEvent("onRetain",t.RUN,200,a.retained),this._defineEvent("onEnter",t.RUN,300,a.entering),this._defineEvent("onFinish",t.RUN,400,a.to),this._defineEvent("onSuccess",t.SUCCESS,0,a.to,o,n.LOG_REJECTED_RESULT,n.LOG_ERROR,i),this._defineEvent("onError",t.ERROR,0,a.to,o,n.LOG_REJECTED_RESULT,n.LOG_ERROR,i)},t.prototype._defineCorePaths=function(){var t=e.TransitionHookScope.STATE,n=e.TransitionHookScope.TRANSITION;this._definePathType("to",n),this._definePathType("from",n),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)},t.prototype._defineEvent=function(e,t,n,a,o,r,i,s){void 0===o&&(o=!1),void 0===r&&(r=fn.HANDLE_RESULT),void 0===i&&(i=fn.REJECT_ERROR),void 0===s&&(s=!1);var l=new Ca(e,t,n,a,o,r,i,s);this._eventTypes.push(l),gn(this,this,l)},t.prototype._getEvents=function(e){return(C(e)?this._eventTypes.filter((function(t){return t.hookPhase===e})):this._eventTypes.slice()).sort((function(e,t){var n=e.hookPhase-t.hookPhase;return 0===n?e.hookOrder-t.hookOrder:n}))},t.prototype._definePathType=function(e,t){this._criteriaPaths[e]={name:e,scope:t}},t.prototype._getPathTypes=function(){return this._criteriaPaths},t.prototype.getHooks=function(e){return this._registeredHooks[e]},t.prototype._registerCoreTransitionHooks=function(){var e=this._deregisterHookFns;e.addCoreResolves=zn(this),e.ignored=Ia(this),e.invalid=Da(this),e.redirectTo=Zn(this),e.onExit=na(this),e.onRetain=oa(this),e.onEnter=ia(this),e.eagerResolve=ca(this),e.lazyResolve=da(this),e.resolveAll=ma(this),e.loadViews=ga(this),e.activateViews=_a(this),e.updateGlobals=ya(this),e.updateUrl=Aa(this),e.lazyLoad=wa(this)},t}(),Pa=function(){function t(e){this.router=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(e){e instanceof Error&&e.stack?(console.error(e),console.error(e.stack)):e instanceof Ye?(console.error(e.toString()),e.detail&&e.detail.stack&&console.error(e.detail.stack)):console.error(e)};var n=["current","$current","params","transition"],a=Object.keys(t.prototype).filter(f(X(n)));K(y(t.prototype),this,y(this),a)}return Object.defineProperty(t.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.defaultErrorHandler(z),this.invalidCallbacks=[]},t.prototype._handleInvalidTargetState=function(e,t){var n=this,a=$t.makeTargetState(this.router.stateRegistry,e),o=this.router.globals,r=function(){return o.transitionHistory.peekTail()},i=r(),s=new Fe(this.invalidCallbacks.slice()),l=new Gt(e).injector(),c=function(e){if(e instanceof Lt){var t=e;return(t=n.target(t.identifier(),t.params(),t.options())).valid()?r()!==i?Ye.superseded().toPromise():n.transitionTo(t.identifier(),t.params(),t.options()):Ye.invalid(t.error()).toPromise()}};function u(){var e=s.dequeue();return void 0===e?Ye.invalid(t.error()).toPromise():j.$q.when(e(t,a,l)).then(c).then((function(e){return e||u()}))}return u()},t.prototype.onInvalid=function(e){return this.invalidCallbacks.push(e),function(){ee(this.invalidCallbacks)(e)}.bind(this)},t.prototype.reload=function(e){return this.transitionTo(this.current,this.params,{reload:!C(e)||e,inherit:!1,notify:!1})},t.prototype.go=function(e,t,n){var a=re(n,{relative:this.$current,inherit:!0},xa);return this.transitionTo(e,t,a)},t.prototype.target=function(e,t,n){if(void 0===n&&(n={}),M(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");var a=this.router.stateRegistry;if(n.reloadState=!0===n.reload?a.root():a.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error("No such reload state '"+(x(n.reload)?n.reload:n.reload.name)+"'");return new Lt(this.router.stateRegistry,e,t,n)},t.prototype.getCurrentPath=function(){var e=this,t=this.router.globals.successfulTransitions.peekTail(),n=function(){return[new Nt(e.router.stateRegistry.root())]};return t?t.treeChanges().to:n()},t.prototype.transitionTo=function(t,n,a){var o=this;void 0===n&&(n={}),void 0===a&&(a={});var r=this.router,i=r.globals;a=re(a,xa);var s=function(){return i.transition};a=V(a,{current:s});var l=this.target(t,n,a),c=this.getCurrentPath();if(!l.exists())return this._handleInvalidTargetState(c,l);if(!l.valid())return Ue(l.error());if(!1===a.supercede&&s())return Ye.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();var u=function(t){return function(n){if(n instanceof Ye){var a=r.globals.lastStartedTransitionId<=t.$id;if(n.type===e.RejectType.IGNORED)return a&&r.urlRouter.update(),j.$q.when(i.current);var s=n.detail;if(n.type===e.RejectType.SUPERSEDED&&n.redirected&&s instanceof Lt){var l=t.redirect(s);return l.run().catch(u(l))}if(n.type===e.RejectType.ABORTED)return a&&r.urlRouter.update(),j.$q.reject(n)}return o.defaultErrorHandler()(n),j.$q.reject(n)}},d=this.router.transitionService.create(c,l),f=d.run().catch(u(d));return $e(f),V(f,{transition:d})},t.prototype.is=function(e,t,n){n=re(n,{relative:this.$current});var a=this.router.stateRegistry.matcher.find(e,n.relative);if(C(a)){if(this.$current!==a)return!1;if(!t)return!0;var o=a.parameters({inherit:!0,matchingKeys:t});return Mt.equals(o,Mt.values(o,t),this.params)}},t.prototype.includes=function(e,t,n){n=re(n,{relative:this.$current});var a=x(e)&&je.fromString(e);if(a){if(!a.matches(this.$current.name))return!1;e=this.$current.name}var o=this.router.stateRegistry.matcher.find(e,n.relative),r=this.$current.includes;if(C(o)){if(!C(r[o.name]))return!1;if(!t)return!0;var i=o.parameters({inherit:!0,matchingKeys:t});return Mt.equals(i,Mt.values(i,t),this.params)}},t.prototype.href=function(e,t,n){n=re(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),t=t||{};var a=this.router.stateRegistry.matcher.find(e,n.relative);if(!C(a))return null;n.inherit&&(t=this.params.$inherit(t,this.$current,a));var o=a&&n.lossy?a.navigable:a;return o&&void 0!==o.url&&null!==o.url?this.router.urlRouter.href(o.url,t,{absolute:n.absolute}):null},t.prototype.defaultErrorHandler=function(e){return this._defaultErrorHandler=e||this._defaultErrorHandler},t.prototype.get=function(e,t){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(e,t||this.$current)},t.prototype.lazyLoad=function(e,t){var n=this.get(e);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+e);var a=this.getCurrentPath(),o=$t.makeTargetState(this.router.stateRegistry,a);return Ea(t=t||this.router.transitionService.create(a,o),n)},t}(),Oa={when:function(e){return new Promise((function(t,n){return t(e)}))},reject:function(e){return new Promise((function(t,n){n(e)}))},defer:function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},all:function(e){if(P(e))return Promise.all(e);if(M(e)){var t=Object.keys(e).map((function(t){return e[t].then((function(e){return{key:t,val:e}}))}));return Oa.all(t).then((function(e){return e.reduce((function(e,t){return e[t.key]=t.val,e}),{})}))}}},Ra={},Na=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,La=/([^\s,]+)/g,$a={get:function(e){return Ra[e]},has:function(e){return null!=$a.get(e)},invoke:function(e,t,n){var a=V({},Ra,n||{}),o=$a.annotate(e),r=Ee((function(e){return a.hasOwnProperty(e)}),(function(e){return"DI can't find injectable: '"+e+"'"})),i=o.filter(r).map((function(e){return a[e]}));return k(e)?e.apply(t,i):e.slice(-1)[0].apply(t,i)},annotate:function(e){if(!N(e))throw new Error("Not an injectable function: "+e);if(e&&e.$inject)return e.$inject;if(P(e))return e.slice(0,-1);var t=e.toString().replace(Na,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(La)||[]}},Ua=function(e,t){var n=t[0],a=t[1];return e.hasOwnProperty(n)?P(e[n])?e[n].push(a):e[n]=[e[n],a]:e[n]=a,e},ja=function(e){return e.split("&").filter(Q).map(at).reduce(Ua,{})};function Fa(e){var t=function(e){return e||""},n=tt(e).map(t),a=n[0],o=n[1],r=nt(a).map(t);return{path:r[0],search:r[1],hash:o,url:e}}var qa=function(e){var t=e.path(),n=e.search(),a=e.hash(),o=Object.keys(n).map((function(e){var t=n[e];return(P(t)?t:[t]).map((function(t){return e+"="+t}))})).reduce(be,[]).join("&");return t+(o?"?"+o:"")+(a?"#"+a:"")};function Ya(e,t,n,a){return function(o){var r=o.locationService=new n(o),i=o.locationConfig=new a(o,t);function s(e){e.dispose(r),e.dispose(i)}return{name:e,service:r,configuration:i,dispose:s}}}var Ha,Ba=function(){function e(e,t){var n=this;this.fireAfterUpdate=t,this._listeners=[],this._listener=function(e){return n._listeners.forEach((function(t){return t(e)}))},this.hash=function(){return Fa(n._get()).hash},this.path=function(){return Fa(n._get()).path},this.search=function(){return ja(Fa(n._get()).search)},this._location=q.location,this._history=q.history}return e.prototype.url=function(e,t){return void 0===t&&(t=!0),C(e)&&e!==this._get()&&(this._set(null,null,e,t),this.fireAfterUpdate&&this._listeners.forEach((function(t){return t({url:e})}))),qa(this)},e.prototype.onChange=function(e){var t=this;return this._listeners.push(e),function(){return ee(t._listeners,e)}},e.prototype.dispose=function(e){oe(this._listeners)},e}(),Ga=(Ha=function(e,t){return(Ha=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])})(e,t)},function(e,t){function n(){this.constructor=e}Ha(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Va=function(e){function t(t){var n=e.call(this,t,!1)||this;return q.addEventListener("hashchange",n._listener,!1),n}return Ga(t,e),t.prototype._get=function(){return ot(this._location.hash)},t.prototype._set=function(e,t,n,a){this._location.hash=n},t.prototype.dispose=function(t){e.prototype.dispose.call(this,t),q.removeEventListener("hashchange",this._listener)},t}(Ba),Wa=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}}(),Qa=function(e){function t(t){return e.call(this,t,!0)||this}return Wa(t,e),t.prototype._get=function(){return this._url},t.prototype._set=function(e,t,n,a){this._url=n},t}(Ba),za=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ka=function(e){function t(t){var n=e.call(this,t,!0)||this;return n._config=t.urlService.config,q.addEventListener("popstate",n._listener,!1),n}return za(t,e),t.prototype._getBasePrefix=function(){return et(this._config.baseHref())},t.prototype._get=function(){var e=this._location,t=e.pathname,n=e.hash,a=e.search;a=nt(a)[1],n=tt(n)[1];var o=this._getBasePrefix(),r=t===this._config.baseHref(),i=t.substr(0,o.length)===o;return(t=r?"/":i?t.substring(o.length):t)+(a?"?"+a:"")+(n?"#"+n:"")},t.prototype._set=function(e,t,n,a){var o=this._getBasePrefix(),r=n&&"/"!==n[0]?"/":"",i=""===n||"/"===n?this._config.baseHref():o+r+n;a?this._history.replaceState(e,t,i):this._history.pushState(e,t,i)},t.prototype.dispose=function(t){e.prototype.dispose.call(this,t),q.removeEventListener("popstate",this._listener)},t}(Ba),Ja=function(){function e(){var e=this;this.dispose=z,this._baseHref="",this._port=80,this._protocol="http",this._host="localhost",this._hashPrefix="",this.port=function(){return e._port},this.protocol=function(){return e._protocol},this.host=function(){return e._host},this.baseHref=function(){return e._baseHref},this.html5Mode=function(){return!1},this.hashPrefix=function(t){return C(t)?e._hashPrefix=t:e._hashPrefix}}return e}(),Xa=function(){function e(e,t){void 0===t&&(t=!1),this._isHtml5=t,this._baseHref=void 0,this._hashPrefix=""}return e.prototype.port=function(){return location.port?Number(location.port):"https"===this.protocol()?443:80},e.prototype.protocol=function(){return location.protocol.replace(/:/g,"")},e.prototype.host=function(){return location.hostname},e.prototype.html5Mode=function(){return this._isHtml5},e.prototype.hashPrefix=function(e){return C(e)?this._hashPrefix=e:this._hashPrefix},e.prototype.baseHref=function(e){return C(e)&&(this._baseHref=e),E(this._baseHref)&&(this._baseHref=this.getBaseHref()),this._baseHref},e.prototype.getBaseHref=function(){var e=document.getElementsByTagName("base")[0];return e&&e.href?e.href.replace(/^([^/:]*:)?\/\/[^/]*/,""):this._isHtml5?"/":location.pathname||"/"},e.prototype.dispose=function(){},e}();function Za(e){return j.$injector=$a,j.$q=Oa,{name:"vanilla.services",$q:Oa,$injector:$a,dispose:function(){return null}}}var eo=Ya("vanilla.hashBangLocation",!1,Va,Xa),to=Ya("vanilla.pushStateLocation",!0,Ka,Xa),no=Ya("vanilla.memoryLocation",!1,Qa,Ja),ao=function(){function e(){}return e.prototype.dispose=function(e){},e}(),oo=Object.freeze({__proto__:null,root:q,fromJson:H,toJson:B,forEach:G,extend:V,equals:W,identity:Q,noop:z,createProxyFunctions:K,inherit:J,inArray:X,_inArray:Z,removeFrom:ee,_removeFrom:te,pushTo:ne,_pushTo:ae,deregAll:oe,defaults:re,mergeR:ie,ancestors:se,pick:le,omit:ce,pluck:ue,filter:de,find:fe,mapObj:me,map:pe,values:ge,allTrueR:he,anyTrueR:_e,unnestR:be,flattenR:ye,pushR:ve,uniqR:Ae,unnest:Se,flatten:we,assertPredicate:Ee,assertMap:Ce,assertFn:Te,pairs:Ie,arrayTuples:ke,applyPairs:De,tail:xe,copy:Me,_extend:Oe,silenceUncaughtInPromise:$e,silentRejection:Ue,makeStub:U,services:j,Glob:je,curry:i,compose:s,pipe:l,prop:c,propEq:u,parse:d,not:f,and:m,or:p,all:g,any:h,is:_,eq:b,val:y,invoke:v,pattern:A,isUndefined:E,isDefined:C,isNull:T,isNullOrUndefined:I,isFunction:k,isNumber:D,isString:x,isObject:M,isArray:P,isDate:O,isRegExp:R,isInjectable:N,isPromise:L,Queue:Fe,maxLength:He,padString:Be,kebobString:Ge,functionToString:Ve,fnToString:We,stringify:Je,beforeAfterSubstr:Xe,hostRegex:Ze,stripLastPathElement:et,splitHash:tt,splitQuery:nt,splitEqual:at,trimHashVal:ot,splitOnDelim:rt,joinNeighborsR:it,get Category(){return e.Category},Trace:yt,trace:vt,get DefType(){return e.DefType},Param:Mt,ParamTypes:Pt,StateParams:Rt,ParamType:At,PathNode:Nt,PathUtils:$t,resolvePolicies:Ut,defaultResolvePolicy:jt,Resolvable:Ft,NATIVE_INJECTOR_TOKEN:Bt,ResolveContext:Gt,resolvablesBuilder:nn,StateBuilder:rn,StateObject:sn,StateMatcher:ln,StateQueueManager:cn,StateRegistry:un,StateService:Pa,TargetState:Lt,get TransitionHookPhase(){return e.TransitionHookPhase},get TransitionHookScope(){return e.TransitionHookScope},HookBuilder:hn,matchState:mn,RegisteredHook:pn,makeEvent:gn,get RejectType(){return e.RejectType},Rejection:Ye,Transition:yn,TransitionHook:fn,TransitionEventType:Ca,defaultTransOpts:xa,TransitionService:Ma,UrlRules:Fn,UrlConfig:qn,UrlMatcher:En,ParamFactory:Tn,UrlMatcherFactory:In,UrlRouter:Pn,UrlRuleFactory:kn,BaseUrlRule:Dn,UrlService:Yn,ViewService:On,UIRouterGlobals:Rn,UIRouter:Wn,$q:Oa,$injector:$a,BaseLocationServices:Ba,HashLocationService:Va,MemoryLocationService:Qa,PushStateLocationService:Ka,MemoryLocationConfig:Ja,BrowserLocationConfig:Xa,keyValsToObjectR:Ua,getParams:ja,parseUrl:Fa,buildUrl:qa,locationPluginFactory:Ya,servicesPlugin:Za,hashLocationPlugin:eo,pushStateLocationPlugin:to,memoryLocationPlugin:no,UIRouterPluginBase:ao});function ro(){var e=null;return function(t,n){return e=e||j.$injector.get("$templateFactory"),[new co(t,n,e)]}}var io=function(e,t){return e.reduce((function(e,n){return e||C(t[n])}),!1)};function so(e){if(!e.parent)return{};var t=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),a=t.concat(n);if(C(e.views)&&io(a,e))throw new Error("State '"+e.name+"' has a 'views' object. It cannot also have \"view properties\" at the state level.  Move the following properties into a view (in the 'views' object):  "+a.filter((function(t){return C(e[t])})).join(", "));var o={},r=e.views||{$default:le(e,a)};return G(r,(function(a,r){if(r=r||"$default",x(a)&&(a={component:a}),a=V({},a),io(t,a)&&io(n,a))throw new Error("Cannot combine: "+t.join("|")+" with: "+n.join("|")+" in stateview: '"+r+"@"+e.name+"'");a.resolveAs=a.resolveAs||"$resolve",a.$type="ng1",a.$context=e,a.$name=r;var i=On.normalizeUIViewTarget(a.$context,a.$name);a.$uiViewName=i.uiViewName,a.$uiViewContextAnchor=i.uiViewContextAnchor,o[r]=a})),o}var lo=0,co=function(){function e(e,t,n){var a=this;this.path=e,this.viewDecl=t,this.factory=n,this.$id=lo++,this.loaded=!1,this.getTemplate=function(e,t){return a.component?a.factory.makeComponentTemplate(e,t,a.component,a.viewDecl.bindings):a.template}}return e.prototype.load=function(){var e=this,t=j.$q,n=new Gt(this.path),a=this.path.reduce((function(e,t){return V(e,t.paramValues)}),{}),o={template:t.when(this.factory.fromConfig(this.viewDecl,a,n)),controller:t.when(this.getController(n))};return t.all(o).then((function(t){return vt.traceViewServiceEvent("Loaded",e),e.controller=t.controller,V(e,t.template),e}))},e.prototype.getController=function(e){var t=this.viewDecl.controllerProvider;if(!N(t))return this.viewDecl.controller;var n=j.$injector.annotate(t),a=P(t)?xe(t):t;return new Ft("",a,n).get(e)},e}(),uo=function(){function e(){var e=this;this._useHttp=o.version.minor<3,this.$get=["$http","$templateCache","$injector",function(t,n,a){return e.$templateRequest=a.has&&a.has("$templateRequest")&&a.get("$templateRequest"),e.$http=t,e.$templateCache=n,e}]}return e.prototype.useHttpService=function(e){this._useHttp=e},e.prototype.fromConfig=function(e,t,n){var a="<ui-view></ui-view>",o=function(e){return j.$q.when(e).then((function(e){return{template:e}}))},r=function(e){return j.$q.when(e).then((function(e){return{component:e}}))};return C(e.template)?o(this.fromString(e.template,t)):C(e.templateUrl)?o(this.fromUrl(e.templateUrl,t)):C(e.templateProvider)?o(this.fromProvider(e.templateProvider,t,n)):C(e.component)?r(e.component):C(e.componentProvider)?r(this.fromComponentProvider(e.componentProvider,t,n)):o(a)},e.prototype.fromString=function(e,t){return k(e)?e(t):e},e.prototype.fromUrl=function(e,t){return k(e)&&(e=e(t)),null==e?null:this._useHttp?this.$http.get(e,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(e){return e.data})):this.$templateRequest(e)},e.prototype.fromProvider=function(e,t,n){var a=j.$injector.annotate(e),o=P(e)?xe(e):e;return new Ft("",o,a).get(n)},e.prototype.fromComponentProvider=function(e,t,n){var a=j.$injector.annotate(e),o=P(e)?xe(e):e;return new Ft("",o,a).get(n)},e.prototype.makeComponentTemplate=function(e,t,n,a){a=a||{};var r=o.version.minor>=3?"::":"",i=function(e){var t=Ge(e);return/^(x|data)-/.exec(t)?"x-"+t:t},s=function(n){var o=n.name,s=n.type,l=i(o);if(e.attr(l)&&!a[o])return l+"='"+e.attr(l)+"'";var c=a[o]||o;if("@"===s)return l+"='{{"+r+"$resolve."+c+"}}'";if("&"===s){var u=t.getResolvable(c),d=u&&u.data,f=d&&j.$injector.annotate(d)||[];return l+"='$resolve."+c+(P(d)?"["+(d.length-1)+"]":"")+"("+f.join(",")+")'"}return l+"='"+r+"$resolve."+c+"'"},l=fo(n).map(s).join(" "),c=i(n);return"<"+c+" "+l+"></"+c+">"},e}();function fo(e){var t=j.$injector.get(e+"Directive");if(!t||!t.length)throw new Error("Unable to find component named '"+e+"'");return t.map(mo).reduce(be,[])}var mo=function(e){return M(e.bindToController)?po(e.bindToController):po(e.scope)},po=function(e){return Object.keys(e||{}).map((function(t){return[t,/^([=<@&])[?]?(.*)/.exec(e[t])]})).filter((function(e){return C(e)&&P(e[1])})).map((function(e){return{name:e[1][2]||e[0],type:e[1][1]}}))},go=function(){function e(t,n){this.stateRegistry=t,this.stateService=n,K(y(e.prototype),this,y(this))}return e.prototype.decorator=function(e,t){return this.stateRegistry.decorator(e,t)||this},e.prototype.state=function(e,t){return M(e)?t=e:t.name=e,this.stateRegistry.register(t),this},e.prototype.onInvalid=function(e){return this.stateService.onInvalid(e)},e}(),ho=function(e){return function(t){var n=t[e],a="onExit"===e?"from":"to";function o(e,t){var o=new Gt(e.treeChanges(a)).subContext(t.$$state()),r=V(No(o),{$state$:t,$transition$:e});return j.$injector.invoke(n,this,r)}return n?o:void 0}},_o=function(){function e(e){this._urlListeners=[],this.$locationProvider=e;var t=y(e);K(t,this,t,["hashPrefix"])}return e.monkeyPatchPathParameterType=function(e){var t=e.urlMatcherFactory.type("path");t.encode=function(e){return null!=e?e.toString().replace(/(~|\/)/g,(function(e){return{"~":"~~","/":"~2F"}[e]})):e},t.decode=function(e){return null!=e?e.toString().replace(/(~~|~2F)/g,(function(e){return{"~~":"~","~2F":"/"}[e]})):e}},e.prototype.dispose=function(){},e.prototype.onChange=function(e){var t=this;return this._urlListeners.push(e),function(){return ee(t._urlListeners)(e)}},e.prototype.html5Mode=function(){var e=this.$locationProvider.html5Mode();return(e=M(e)?e.enabled:e)&&this.$sniffer.history},e.prototype.baseHref=function(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)},e.prototype.url=function(e,t,n){return void 0===t&&(t=!1),C(e)&&this.$location.url(e),t&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},e.prototype._runtimeServices=function(e,t,n,a,o){var r=this;this.$location=t,this.$sniffer=n,this.$browser=a,this.$window=o,e.$on("$locationChangeSuccess",(function(e){return r._urlListeners.forEach((function(t){return t(e)}))}));var i=y(t);K(i,this,i,["replace","path","search","hash"]),K(i,this,i,["port","protocol","host"])},e}(),bo=function(){function e(e){this.router=e}return e.injectableHandler=function(e,t){return function(n){return j.$injector.invoke(t,null,{$match:n,$stateParams:e.globals.params})}},e.prototype.$get=function(){var e=this.router.urlService;return this.router.urlRouter.update(!0),e.interceptDeferred||e.listen(),this.router.urlRouter},e.prototype.rule=function(e){var t=this;if(!k(e))throw new Error("'rule' must be a function");var n=new Dn((function(){return e(j.$injector,t.router.locationService)}),Q);return this.router.urlService.rules.rule(n),this},e.prototype.otherwise=function(e){var t=this,n=this.router.urlService.rules;if(x(e))n.otherwise(e);else{if(!k(e))throw new Error("'rule' must be a string or function");n.otherwise((function(){return e(j.$injector,t.router.locationService)}))}return this},e.prototype.when=function(t,n){return(P(n)||k(n))&&(n=e.injectableHandler(this.router,n)),this.router.urlService.rules.when(t,n),this},e.prototype.deferIntercept=function(e){this.router.urlService.deferIntercept(e)},e}();o.module("ui.router.angular1",[]);var yo=o.module("ui.router.init",["ng"]),vo=o.module("ui.router.util",["ui.router.init"]),Ao=o.module("ui.router.router",["ui.router.util"]),So=o.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),wo=o.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),Eo=(o.module("ui.router.compat",["ui.router"]),null);function Co(e){(Eo=this.router=new Wn).stateProvider=new go(Eo.stateRegistry,Eo.stateService),Eo.stateRegistry.decorator("views",so),Eo.stateRegistry.decorator("onExit",ho("onExit")),Eo.stateRegistry.decorator("onRetain",ho("onRetain")),Eo.stateRegistry.decorator("onEnter",ho("onEnter")),Eo.viewService._pluginapi._viewConfigFactory("ng1",ro()),Eo.urlService.config._decodeParams=!1;var t=Eo.locationService=Eo.locationConfig=new _o(e);function n(e,n,a,o,r,i,s){return t._runtimeServices(r,e,o,n,a),delete Eo.router,delete Eo.$get,Eo}return _o.monkeyPatchPathParameterType(Eo),Eo.router=Eo,Eo.$get=n,n.$inject=["$location","$browser","$window","$sniffer","$rootScope","$http","$templateCache"],Eo}Co.$inject=["$locationProvider"];var To=function(e){return["$uiRouterProvider",function(t){var n=t.router[e];return n.$get=function(){return n},n}]};function Io(e,t,n){if(j.$injector=e,j.$q=t,!Object.prototype.hasOwnProperty.call(e,"strictDi"))try{e.invoke((function(e){}))}catch(t){e.strictDi=!!/strict mode/.exec(t&&t.toString())}n.stateRegistry.get().map((function(e){return e.$$state().resolvables})).reduce(be,[]).filter((function(e){return"deferred"===e.deps})).forEach((function(t){return t.deps=e.annotate(t.resolveFn,e.strictDi)}))}Io.$inject=["$injector","$q","$uiRouter"];var ko=function(e){return e.urlRouterProvider=new bo(e)},Do=function(){return V(Eo.stateProvider,{$get:function(){return Eo.stateService}})};function xo(e){e.$watch((function(){vt.approximateDigests++}))}xo.$inject=["$rootScope"],yo.provider("$uiRouter",Co),Ao.provider("$urlRouter",["$uiRouterProvider",ko]),vo.provider("$urlService",To("urlService")),vo.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return Eo.urlMatcherFactory}]),vo.provider("$templateFactory",(function(){return new uo})),So.provider("$stateRegistry",To("stateRegistry")),So.provider("$uiRouterGlobals",To("globals")),So.provider("$transitions",To("transitionService")),So.provider("$state",["$uiRouterProvider",Do]),So.factory("$stateParams",["$uiRouter",function(e){return e.globals.params}]),wo.factory("$view",(function(){return Eo.viewService})),wo.service("$trace",(function(){return vt})),wo.run(xo),vo.run(["$urlMatcherFactory",function(e){}]),So.run(["$state",function(e){}]),Ao.run(["$urlRouter",function(e){}]),yo.run(Io);var Mo,Po,Oo,Ro,No=function(e){return e.getTokens().filter(x).map((function(t){var n=e.getResolvable(t);return[t,"NOWAIT"===e.getPolicy(n).async?n.promise:n.data]})).reduce(De,{})};function Lo(e){var t=e.match(/^\s*({[^}]*})\s*$/);t&&(e="("+t[1]+")");var n=e.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function $o(e){var t=e.parent().inheritedData("$uiView"),n=d("$cfg.path")(t);return n?xe(n).state.name:void 0}function Uo(e,t,n){var a=n.uiState||e.current.name,o=V(qo(t,e),n.uiStateOpts||{}),r=e.href(a,n.uiStateParams,o);return{uiState:a,uiStateParams:n.uiStateParams,uiStateOpts:o,href:r}}function jo(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 Fo(e,t,n,a,o){return function(r){var i=r.which||r.button,s=o();if(!(i>1||r.ctrlKey||r.metaKey||r.shiftKey||r.altKey||e.attr("target"))){var l=n((function(){e.attr("disabled")||t.go(s.uiState,s.uiStateParams,s.uiStateOpts)}));r.preventDefault();var c=a.isAnchor&&!s.href?1:0;r.preventDefault=function(){c--<=0&&n.cancel(l)}}}}function qo(e,t){return{relative:$o(e)||t.$current,inherit:!0,source:"sref"}}function Yo(e,t,n,a){var o;a&&(o=a.events),P(o)||(o=["click"]);for(var r=e.on?"on":"bind",i=0,s=o;i<s.length;i++){var l=s[i];e[r](l,n)}t.$on("$destroy",(function(){for(var t=e.off?"off":"unbind",a=0,r=o;a<r.length;a++){var i=r[a];e[t](i,n)}}))}function Ho(e){var t=function(t,n,a){return e.is(t,n,a)};return t.$stateful=!0,t}function Bo(e){var t=function(t,n,a){return e.includes(t,n,a)};return t.$stateful=!0,t}function Go(e,t,n,a,r){var i=d("viewDecl.controllerAs"),s=d("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(a){var l=a.html();return a.empty(),function(a,c){var u=c.data("$uiView");if(!u)return c.html(l),void e(c.contents())(a);var d=u.$cfg||{viewDecl:{},getTemplate:z},f=d.path&&new Gt(d.path);c.html(d.getTemplate(c,f)||l),vt.traceUIViewFill(u.$uiView,c.html());var m=e(c.contents()),p=d.controller,g=i(d),h=s(d),_=f&&No(f);if(a[h]=_,p){var b=t(p,V({},_,{$scope:a,$element:c}));g&&(a[g]=b,a[g][h]=_),c.data("$ngControllerController",b),c.children().data("$ngControllerController",b),Qo(r,n,b,a,d)}if(x(d.component))var y=Ge(d.component),v=new RegExp("^(x-|data-)?"+y+"$","i"),A=function(){var e=[].slice.call(c[0].children).filter((function(e){return e&&e.tagName&&v.exec(e.tagName)}));return e&&o.element(e).data("$"+d.component+"Controller")},S=a.$watch(A,(function(e){e&&(Qo(r,n,e,a,d),S())}));m(a)}}}}Mo=["$uiRouter","$timeout",function(e,t){var n=e.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(a,o,r,i){var s=jo(o),l=i[1]||i[0],c=null,u={},d=function(){return Uo(n,o,u)},f=Lo(r.uiSref);function m(){var e=d();c&&c(),l&&(c=l.$$addStateInfo(e.uiState,e.uiStateParams)),null!=e.href&&r.$set(s.attr,e.href)}if(u.uiState=f.state,u.uiStateOpts=r.uiSrefOpts?a.$eval(r.uiSrefOpts):{},f.paramExpr&&(a.$watch(f.paramExpr,(function(e){u.uiStateParams=V({},e),m()}),!0),u.uiStateParams=V({},a.$eval(f.paramExpr))),m(),a.$on("$destroy",e.stateRegistry.onStatesChanged(m)),a.$on("$destroy",e.transitionService.onSuccess({},m)),s.clickable){var p=Fo(o,n,t,s,d);Yo(o,a,p,u.uiStateOpts)}}}}],Po=["$uiRouter","$timeout",function(e,t){var n=e.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(a,o,r,i){var s,l=jo(o),c=i[1]||i[0],u=null,d={},f=function(){return Uo(n,o,d)},m=["uiState","uiStateParams","uiStateOpts"],p=m.reduce((function(e,t){return e[t]=z,e}),{});function g(){var e=f();u&&u(),c&&(u=c.$$addStateInfo(e.uiState,e.uiStateParams)),null!=e.href&&r.$set(l.attr,e.href)}m.forEach((function(e){d[e]=r[e]?a.$eval(r[e]):null,r.$observe(e,(function(t){p[e](),p[e]=a.$watch(t,(function(t){d[e]=t,g()}),!0)}))})),g(),a.$on("$destroy",e.stateRegistry.onStatesChanged(g)),a.$on("$destroy",e.transitionService.onSuccess({},g)),l.clickable&&(s=Fo(o,n,t,l,f),Yo(o,a,s,d.uiStateOpts))}}}],Oo=["$state","$stateParams","$interpolate","$uiRouter",function(e,t,n,a){return{restrict:"A",controller:["$scope","$element","$attrs",function(t,o,r){var i,s,l=[];i=n(r.uiSrefActiveEq||"",!1)(t);try{s=t.$eval(r.uiSrefActive)}catch(e){}function c(e){e.promise.then(p,z)}function u(){var e=a.stateRegistry.onStatesChanged(d),n=a.transitionService.onStart({},c),o=t.$on("$stateChangeSuccess",p);return function(){e(),n(),o()}}function d(){f(s)}function f(e){M(e)&&(l=[],G(e,(function(e,n){var a=function(e,n){var a=Lo(e);m(a.state,t.$eval(a.paramExpr),n)};x(e)?a(e,n):P(e)&&G(e,(function(e){a(e,n)}))})))}function m(t,n,a){var r={state:e.get(t,$o(o))||{name:t},params:n,activeClass:a};return l.push(r),function(){ee(l)(r)}}function p(){var n=function(e){return e.split(/\s/).filter(Q)},a=function(e){return e.map((function(e){return e.activeClass})).map(n).reduce(be,[])},r=a(l).concat(n(i)).reduce(Ae,[]),s=a(l.filter((function(t){return e.includes(t.state.name,t.params)}))),c=l.filter((function(t){return e.is(t.state.name,t.params)})).length?n(i):[],u=s.concat(c).reduce(Ae,[]),d=r.filter((function(e){return!X(u,e)}));t.$evalAsync((function(){u.forEach((function(e){return o.addClass(e)})),d.forEach((function(e){return o.removeClass(e)}))}))}f(s=s||n(r.uiSrefActive||"",!1)(t)),this.$$addStateInfo=function(e,t){if(!(M(s)&&l.length>0)){var n=m(e,t,s);return p(),n}},t.$on("$destroy",u()),a.globals.transition&&c(a.globals.transition),p()}]}}],o.module("ui.router.state").directive("uiSref",Mo).directive("uiSrefActive",Oo).directive("uiSrefActiveEq",Oo).directive("uiState",Po),Ho.$inject=["$state"],Bo.$inject=["$state"],o.module("ui.router.state").filter("isState",Ho).filter("includedByState",Bo),Ro=["$view","$animate","$uiViewScroll","$interpolate","$q",function(e,t,n,a,r){function i(){return{enter:function(e,n,a){o.version.minor>2?t.enter(e,null,n).then(a):t.enter(e,null,n,a)},leave:function(e,n){o.version.minor>2?t.leave(e).then(n):t.leave(e,n)}}}function s(e,t){return e===t}var l={$cfg:{viewDecl:{$context:e._pluginapi._rootViewContext()}},$uiView:{}},c={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(t,o,u){return function(t,o,f){var m,p,g,h,_=f.onload||"",b=f.autoscroll,y=i(),v=o.inheritedData("$uiView")||l,A=a(f.uiView||f.name||"")(t)||"$default",S={$type:"ng1",id:c.count++,name:A,fqn:v.$uiView.fqn?v.$uiView.fqn+"."+A:A,config:null,configUpdated:w,get creationContext(){var e=d("$cfg.viewDecl.$context")(v),t=d("$uiView.creationContext")(v);return e||t}};function w(e){(!e||e instanceof co)&&(s(h,e)||(vt.traceUIViewConfigUpdated(S,e&&e.viewDecl&&e.viewDecl.$context),h=e,I(e)))}vt.traceUIViewEvent("Linking",S),o.data("$uiView",{$uiView:S}),I();var E=e.registerUIView(S);function T(){if(m&&(vt.traceUIViewEvent("Removing (previous) el",m.data("$uiView")),m.remove(),m=null),g&&(vt.traceUIViewEvent("Destroying scope",S),g.$destroy(),g=null),p){var e=p.data("$uiViewAnim");vt.traceUIViewEvent("Animate out",e),y.leave(p,(function(){e.$$animLeave.resolve(),m=null})),m=p,p=null}}function I(e){var a=t.$new(),i=r.defer(),s=r.defer(),l={$cfg:e,$uiView:S},c={$animEnter:i.promise,$animLeave:s.promise,$$animLeave:s};a.$emit("$viewContentLoading",A);var d=u(a,(function(e){e.data("$uiViewAnim",c),e.data("$uiView",l),y.enter(e,o,(function(){i.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(C(b)&&!b||t.$eval(b))&&n(e)})),T()}));p=d,(g=a).$emit("$viewContentLoaded",e||h),g.$eval(_)}t.$on("$destroy",(function(){vt.traceUIViewEvent("Destroying/Unregistering",S),E()}))}}};return c}],Go.$inject=["$compile","$controller","$transitions","$view","$q"];var Vo="function"==typeof o.module("ui.router").component,Wo=0;function Qo(e,t,n,a,o){!k(n.$onInit)||(o.viewDecl.component||o.viewDecl.componentProvider)&&Vo||n.$onInit();var r=xe(o.path).state.self,i={bind:n};if(k(n.uiOnParamsChanged)){var s=new Gt(o.path).getResolvable("$transition$").data,l=function(e){if(e!==s&&-1===e.exiting().indexOf(r)){var t=e.params("to"),a=e.params("from"),o=function(e){return e.paramSchema},i=e.treeChanges("to").map(o).reduce(be,[]),l=e.treeChanges("from").map(o).reduce(be,[]),c=i.filter((function(e){var n=l.indexOf(e);return-1===n||!l[n].type.equals(t[e.id],a[e.id])}));if(c.length){var u=c.map((function(e){return e.id})),d=de(t,(function(e,t){return-1!==u.indexOf(t)}));n.uiOnParamsChanged(d,e)}}};a.$on("$destroy",t.onSuccess({},l,i))}if(k(n.uiCanExit)){var c=Wo++,u="_uiCanExitIds",d=function(e){return!!e&&(e[u]&&!0===e[u][c]||d(e.redirectedFrom()))},f=function(t){var a,o=t[u]=t[u]||{};return d(t)||(a=e.when(n.uiCanExit(t))).then((function(e){return o[c]=!1!==e})),a},m={exiting:r.name};a.$on("$destroy",t.onBefore(m,f,i))}}function zo(){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)}}]}o.module("ui.router.state").directive("uiView",Ro),o.module("ui.router.state").directive("uiView",Go),o.module("ui.router.state").provider("$uiViewScroll",zo);var Ko="ui.router";e.$injector=$a,e.$q=Oa,e.BaseLocationServices=Ba,e.BaseUrlRule=Dn,e.BrowserLocationConfig=Xa,e.Glob=je,e.HashLocationService=Va,e.HookBuilder=hn,e.MemoryLocationConfig=Ja,e.MemoryLocationService=Qa,e.NATIVE_INJECTOR_TOKEN=Bt,e.Ng1ViewConfig=co,e.Param=Mt,e.ParamFactory=Tn,e.ParamType=At,e.ParamTypes=Pt,e.PathNode=Nt,e.PathUtils=$t,e.PushStateLocationService=Ka,e.Queue=Fe,e.RegisteredHook=pn,e.Rejection=Ye,e.Resolvable=Ft,e.ResolveContext=Gt,e.StateBuilder=rn,e.StateMatcher=ln,e.StateObject=sn,e.StateParams=Rt,e.StateProvider=go,e.StateQueueManager=cn,e.StateRegistry=un,e.StateService=Pa,e.TargetState=Lt,e.Trace=yt,e.Transition=yn,e.TransitionEventType=Ca,e.TransitionHook=fn,e.TransitionService=Ma,e.UIRouter=Wn,e.UIRouterGlobals=Rn,e.UIRouterPluginBase=ao,e.UrlConfig=qn,e.UrlMatcher=En,e.UrlMatcherFactory=In,e.UrlRouter=Pn,e.UrlRouterProvider=bo,e.UrlRuleFactory=kn,e.UrlRules=Fn,e.UrlService=Yn,e.ViewService=On,e._extend=Oe,e._inArray=Z,e._pushTo=ae,e._removeFrom=te,e.all=g,e.allTrueR=he,e.ancestors=se,e.and=m,e.any=h,e.anyTrueR=_e,e.applyPairs=De,e.arrayTuples=ke,e.assertFn=Te,e.assertMap=Ce,e.assertPredicate=Ee,e.beforeAfterSubstr=Xe,e.buildUrl=qa,e.compose=s,e.copy=Me,e.core=oo,e.createProxyFunctions=K,e.curry=i,e.default=Ko,e.defaultResolvePolicy=jt,e.defaultTransOpts=xa,e.defaults=re,e.deregAll=oe,e.eq=b,e.equals=W,e.extend=V,e.filter=de,e.find=fe,e.flatten=we,e.flattenR=ye,e.fnToString=We,e.forEach=G,e.fromJson=H,e.functionToString=Ve,e.getLocals=No,e.getNg1ViewConfigFactory=ro,e.getParams=ja,e.hashLocationPlugin=eo,e.hostRegex=Ze,e.identity=Q,e.inArray=X,e.inherit=J,e.invoke=v,e.is=_,e.isArray=P,e.isDate=O,e.isDefined=C,e.isFunction=k,e.isInjectable=N,e.isNull=T,e.isNullOrUndefined=I,e.isNumber=D,e.isObject=M,e.isPromise=L,e.isRegExp=R,e.isString=x,e.isUndefined=E,e.joinNeighborsR=it,e.kebobString=Ge,e.keyValsToObjectR=Ua,e.locationPluginFactory=Ya,e.makeEvent=gn,e.makeStub=U,e.map=pe,e.mapObj=me,e.matchState=mn,e.maxLength=He,e.memoryLocationPlugin=no,e.mergeR=ie,e.ng1ViewsBuilder=so,e.noop=z,e.not=f,e.omit=ce,e.or=p,e.padString=Be,e.pairs=Ie,e.parse=d,e.parseUrl=Fa,e.pattern=A,e.pick=le,e.pipe=l,e.pluck=ue,e.prop=c,e.propEq=u,e.pushR=ve,e.pushStateLocationPlugin=to,e.pushTo=ne,e.removeFrom=ee,e.resolvablesBuilder=nn,e.resolvePolicies=Ut,e.root=q,e.services=j,e.servicesPlugin=Za,e.silenceUncaughtInPromise=$e,e.silentRejection=Ue,e.splitEqual=at,e.splitHash=tt,e.splitOnDelim=rt,e.splitQuery=nt,e.stringify=Je,e.stripLastPathElement=et,e.tail=xe,e.toJson=B,e.trace=vt,e.trimHashVal=ot,e.uniqR=Ae,e.unnest=Se,e.unnestR=be,e.val=y,e.values=ge,e.watchDigests=xo,Object.defineProperty(e,"__esModule",{value:!0})}(t,n("./node_modules/angular/index-exposed.js"))},"./node_modules/@uirouter/angularjs/release/stateEvents.js":function(e,t,n){!function(e,t){"use strict";var n,a,o,r,i,s=angular,l=t&&t.module?t:s;(function(){var e=l.isFunction,t=l.isString;function n(e,n){var a,o;if(Array.isArray(n)&&(a=n[0],o=n[1]),!t(a))throw new Error("invalid parameters to applyPairs");return e[a]=o,e}function a(e){if(e.options().notify&&e.valid()&&!e.ignored()){var t=e.injector(),n=t.get("$stateEvents"),a=t.get("$rootScope"),o=t.get("$state"),r=t.get("$urlRouter"),i=n.provider.enabled(),s=e.params("to"),l=e.params("from");if(i.$stateChangeSuccess){if(a.$broadcast("$stateChangeStart",e.to(),s,e.from(),l,e.options(),e).defaultPrevented)return i.$stateChangeCancel&&a.$broadcast("$stateChangeCancel",e.to(),s,e.from(),l,e.options(),e),null==o.transition&&r.update(),!1;var c={priority:9999};e.onSuccess({},(function(){a.$broadcast("$stateChangeSuccess",e.to(),s,e.from(),l,e.options(),e)}),c)}i.$stateChangeError&&e.promise.catch((function(t){(!t||2!==t.type&&3!==t.type)&&(a.$broadcast("$stateChangeError",e.to(),s,e.from(),l,t,e.options(),e).defaultPrevented||r.update())}))}}function o(t,n,a){var o=a.get("$state"),r=a.get("$rootScope"),i=a.get("$urlRouter"),s={to:t.identifier(),toParams:t.params(),options:t.options()},l=r.$broadcast("$stateNotFound",s,n.state(),n.params());function c(){return o.target(s.to,s.toParams,s.options)}return(l.defaultPrevented||l.retry)&&i.update(),!l.defaultPrevented&&(l.retry||o.get(s.to)?l.retry&&e(l.retry.then)?l.retry.then(c):c():void 0)}function r(e){r.prototype.instance=this;var t=!1,i=["$stateChangeStart","$stateNotFound","$stateChangeSuccess","$stateChangeError"],s=i.map((function(e){return[e,!0]})).reduce(n,{});function l(){if(t)throw new Error("Cannot enable events at runtime (use $stateEventsProvider")}function c(n){return t=!0,s.$stateNotFound&&e.onInvalid(o),s.$stateChangeStart&&n.onBefore({},a,{priority:1e3}),{provider:r.prototype.instance}}this.enable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l(),e&&e.length||(e=i),e.forEach((function(e){return s[e]=!0}))},this.disable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l(),e&&e.length||(e=i),e.forEach((function(e){return delete s[e]}))},this.enabled=function(){return s},this.$get=c,c.$inject=["$transitions"]}o.$inject=["$to$","$from$","$state","$rootScope","$urlRouter"],r.$inject=["$stateProvider"],l.module("ui.router.state.events",["ui.router.state"]).provider("$stateEvents",r).run(["$stateEvents",function(e){}])})(),e.$stateChangeCancel=a,e.$stateChangeError=r,e.$stateChangeStart=n,e.$stateChangeSuccess=o,e.$stateNotFound=i,Object.defineProperty(e,"__esModule",{value:!0})}(t,n("./node_modules/angular/index-exposed.js"))},"./node_modules/@xenialab/angular-clock/dist/angular-clock.min.js":()=>{!function(){"use strict";function e(e,a){return{restrict:"EA",scope:{gmtOffset:"=gmtOffset",digitalFormat:"=digitalFormat",showDigital:"=showDigital",showAnalog:"=showAnalog",startTime:"=startTime",theme:"=theme",majorsTotal:"=majorsTotal"},template:'<div class="widget-clock" ng-class="themeClass" ng-if="date"><div class="digital" ng-if="digital"><span class="time"><span class="hours">{{digital}}</span></span></div><div class="analog" ng-if="analog"><div class="square"><svg viewBox="0 0 100 100"><g transform="translate(50,50)"><circle class="clock-face" r="48" /><line ng-repeat="minor in minors track by $index" class="minor" y1="42" y2="45" ng-attr-transform="rotate({{360 * $index / minors.length}})" /><line ng-repeat="major in majors track by $index" class="major" y1="35" y2="46" ng-attr-transform="rotate({{360 * $index / majors.length}})" /><line class="hour" y1="2" y2="-20" ng-attr-transform="rotate({{30 * date.hrs + date.mins / 2}})" /><line class="minute" y1="4" y2="-30" ng-attr-transform="rotate({{6 * date.mins + date.secs / 10}})" /><g ng-attr-transform="rotate({{6 * date.secs}})"><line class="second" y1="10" y2="-38" /><line class="second-counterweight" y1="10" y2="2" /></g></g></svg></div></div><div ng-if="gmtInfo" class="gmt-info">{{gmtInfo}}</div></div>',link:function(o,r,i){var s,l={},c=o.gmtOffset,u=o.digitalFormat?o.digitalFormat:"HH:mm:ss";l.showDigital=null!=o.showDigital?o.showDigital:void 0!==i.showDigital,l.showAnalog=null!=o.showAnalog?o.showAnalog:void 0!==i.showAnalog,l.showGmtInfo=void 0!==i.showGmtInfo,l.startTime=parseInt(o.startTime,10),o.themeClass=o.theme?o.theme:i.theme?i.theme:"light",l.showDigital||l.showAnalog||(l.showAnalog=!0,l.showDigital=!0),o.gmtInfo=!1,o.date=n(l),o.digital=!!l.showDigital&&"Loading..",o.analog=l.showAnalog,o.majors=i.majorsTotal?new Array(parseInt(i.majorsTotal)):new Array(12),o.minors=new Array(60);var d=null,f=function(){isNaN(l.startTime)||(l.startTime=l.startTime+1e3),d=n(l),o.date=d,l.showDigital&&(o.digital=function(e,t,n){return n("date")(e.date,t)}(d,u,a))};s=e(f,1e3),o.$watch("gmtOffset",(function(e){c=e,l.gmtOffset=null!=c&&function(e){return((e=parseFloat(e))>0?Math.floor(e):Math.ceil(e))+e%1/.6}(c),l.showGmtInfo&&!1!==l.gmtOffset&&(o.gmtInfo=t(l.gmtOffset)),f()})),o.$watch("digitalFormat",(function(e,t){e!=t&&(u=e)})),o.$watch("startTime",(function(e,t){e!=t&&(l.startTime=parseInt(e,10))})),o.$watch("showDigital",(function(e,t){e!=t&&(l.showDigital=e,o.digital=!!l.showDigital&&"Loading..")})),o.$watch("showAnalog",(function(e,t){e!=t&&(l.showAnalog=e,o.analog=e)})),o.$watch("theme",(function(e,t){e!=t&&(o.themeClass=e||(i.theme?i.theme:"light"))})),r.on("$destroy",(function(){e.cancel(s),s=null}))}}}function t(e){var t=e>0?Math.floor(e):Math.ceil(e),n=Math.round((e>0?e:-1*e)%1*60);return"GMT"+(0===e?"":(e>0?" +":" ")+function(e){return 0>e?(e>-10?"-0":"-")+-1*e:(10>e?"0":"")+e}(t)+"."+function(e){return e+(10>e?"0":"")}(n).substring(0,2))}function n(e){var t=isNaN(e.startTime)?new Date:new Date(e.startTime);if(null!==e.gmtOffset&&!1!==e.gmtOffset){var n=t.getTime()+6e4*t.getTimezoneOffset(),a=new Date(n+36e5*e.gmtOffset);return{hrs:a.getHours(),mins:a.getMinutes(),secs:a.getSeconds(),date:a}}return{hrs:t.getHours(),mins:t.getMinutes(),secs:t.getSeconds(),date:t}}angular.module("ds.clock",[]).directive("dsWidgetClock",["$interval","$filter",function(t,n){return e(t,n)}])}()},"./node_modules/@xenialab/angular-gridster/dist/angular-gridster.min.js":function(e,t,n){var a,o,r;!function(i,s){"use strict";o=[n("./node_modules/angular/index-exposed.js")],void 0===(r="function"==typeof(a=function(e){return e.module("gridster",[]).constant("gridsterConfig",{columns:6,pushing:!0,floating:!0,swapping:!1,width:"auto",colWidth:"auto",rowHeight:"match",margins:[10,10],outerMargin:!0,sparse:!1,isMobile:!1,mobileBreakPoint:600,mobileModeEnabled:!0,minColumns:1,minRows:1,maxRows:100,defaultSizeX:2,defaultSizeY:1,minSizeX:1,maxSizeX:null,minSizeY:1,maxSizeY:null,saveGridItemCalculatedHeightInMobile:!1,resizable:{enabled:!0,handles:["s","e","n","w","se","ne","sw","nw"]},draggable:{enabled:!0,scrollSensitivity:20,scrollSpeed:15}}).controller("GridsterCtrl",["gridsterConfig","$timeout",function(t,n){var a=this;e.extend(this,t),this.resizable=e.extend({},t.resizable||{}),this.draggable=e.extend({},t.draggable||{});var o=!1;this.layoutChanged=function(){o||(o=!0,n((function(){o=!1,a.loaded&&a.floatItemsUp(),a.updateHeight(a.movingItem?a.movingItem.sizeY:0)}),30))},this.grid=[],this.allItems=[],this.destroy=function(){this.grid&&(this.grid=[]),this.$element=null,this.allItems&&(this.allItems.length=0,this.allItems=null)},this.setOptions=function(t){if(t)if((t=e.extend({},t)).draggable&&(e.extend(this.draggable,t.draggable),delete t.draggable),t.resizable&&(e.extend(this.resizable,t.resizable),delete t.resizable),e.extend(this,t),this.margins&&2===this.margins.length)for(var n=0,a=this.margins.length;n<a;++n)this.margins[n]=parseInt(this.margins[n],10),isNaN(this.margins[n])&&(this.margins[n]=0);else this.margins=[0,0]},this.canItemOccupy=function(e,t,n){return t>-1&&n>-1&&e.sizeX+n<=this.columns&&e.sizeY+t<=this.maxRows},this.autoSetItemPosition=function(e){for(var t=0;t<this.maxRows;++t)for(var n=0;n<this.columns;++n){if(0===this.getItems(t,n,e.sizeX,e.sizeY,e).length&&this.canItemOccupy(e,t,n))return void this.putItem(e,t,n)}throw new Error("Unable to place item!")},this.getItems=function(e,t,n,a,o){var r,i=[];if(n&&a||(n=a=1),!o||o instanceof Array||(o=[o]),!1===this.sparse)for(var s=0;s<a;++s)for(var l=0;l<n;++l)!(r=this.getItem(e+s,t+l,o))||o&&-1!==o.indexOf(r)||-1!==i.indexOf(r)||i.push(r);else for(var c=e+a-1,u=t+n-1,d=0;d<this.allItems.length;++d)!(r=this.allItems[d])||o&&-1!==o.indexOf(r)||-1!==i.indexOf(r)||!this.intersect(r,t,u,e,c)||i.push(r);return i},this.getBoundingBox=function(e){if(0===e.length)return null;if(1===e.length)return{row:e[0].row,col:e[0].col,sizeY:e[0].sizeY,sizeX:e[0].sizeX};for(var t=0,n=0,a=9999,o=9999,r=0,i=e.length;r<i;++r){var s=e[r];a=Math.min(s.row,a),o=Math.min(s.col,o),t=Math.max(s.row+s.sizeY,t),n=Math.max(s.col+s.sizeX,n)}return{row:a,col:o,sizeY:t-a,sizeX:n-o}},this.intersect=function(e,t,n,a,o){return t<=e.col+e.sizeX-1&&n>=e.col&&a<=e.row+e.sizeY-1&&o>=e.row},this.removeItem=function(e){for(var t,n=0,a=this.grid.length;n<a;++n){var o=this.grid[n];if(o&&-1!==(t=o.indexOf(e))){o[t]=null;break}}this.sparse&&(-1!==(t=this.allItems.indexOf(e))&&this.allItems.splice(t,1)),this.layoutChanged()},this.getItem=function(e,t,n){!n||n instanceof Array||(n=[n]);for(var a=1;e>-1;){for(var o=1,r=t;r>-1;){var i=this.grid[e];if(i){var s=i[r];if(s&&(!n||-1===n.indexOf(s))&&s.sizeX>=o&&s.sizeY>=a)return s}++o,--r}--e,++a}return null},this.putItems=function(e){for(var t=0,n=e.length;t<n;++t)this.putItem(e[t])},this.putItem=function(e,t,n,a){if(null!=t||(t=e.row,n=e.col,null!=t)){if(this.canItemOccupy(e,t,n)||(n=Math.min(this.columns-e.sizeX,Math.max(0,n)),t=Math.min(this.maxRows-e.sizeY,Math.max(0,t))),null!==e.oldRow&&void 0!==e.oldRow){var o=e.oldRow===t&&e.oldColumn===n,r=this.grid[t]&&this.grid[t][n]===e;if(o&&r)return e.row=t,void(e.col=n);var i=this.grid[e.oldRow];i&&i[e.oldColumn]===e&&delete i[e.oldColumn]}e.oldRow=e.row=t,e.oldColumn=e.col=n,this.moveOverlappingItems(e,a),this.grid[t]||(this.grid[t]=[]),this.grid[t][n]=e,this.sparse&&-1===this.allItems.indexOf(e)&&this.allItems.push(e),this.movingItem===e&&this.floatItemUp(e),this.layoutChanged()}else this.autoSetItemPosition(e)},this.swapItems=function(e,t){this.grid[e.row][e.col]=t,this.grid[t.row][t.col]=e;var n=e.row,a=e.col;e.row=t.row,e.col=t.col,t.row=n,t.col=a},this.moveOverlappingItems=function(e,t){t?-1===t.indexOf(e)&&(t=t.slice(0)).push(e):t=[e];var n=this.getItems(e.row,e.col,e.sizeX,e.sizeY,t);this.moveItemsDown(n,e.row+e.sizeY,t)},this.moveItemsDown=function(e,t,n){if(e&&0!==e.length){e.sort((function(e,t){return e.row-t.row})),n=n?n.slice(0):[];var a,o,r,i={};for(o=0,r=e.length;o<r;++o){var s=i[(a=e[o]).col];(void 0===s||a.row<s)&&(i[a.col]=a.row)}for(o=0,r=e.length;o<r;++o){var l=t-i[(a=e[o]).col];this.moveItemDown(a,a.row+l,n),n.push(a)}}},this.moveItemDown=function(e,t,n){if(!(e.row>=t)){for(;e.row<t;)++e.row,this.moveOverlappingItems(e,n);this.putItem(e,e.row,e.col,n)}},this.floatItemsUp=function(){if(!1!==this.floating)for(var e=0,t=this.grid.length;e<t;++e){var n=this.grid[e];if(n)for(var a=0,o=n.length;a<o;++a){var r=n[a];r&&this.floatItemUp(r)}}},this.floatItemUp=function(e){if(!1!==this.floating){for(var t=e.col,n=e.sizeY,a=e.sizeX,o=null,r=null,i=e.row-1;i>-1;){if(0!==this.getItems(i,t,a,n,e).length)break;o=i,r=t,--i}null!==o&&this.putItem(e,o,r)}},this.updateHeight=function(e){var t=this.minRows;e=e||0;for(var n=this.grid.length;n>=0;--n){var a=this.grid[n];if(a)for(var o=0,r=a.length;o<r;++o)a[o]&&(t=Math.max(t,n+e+a[o].sizeY))}this.gridHeight=this.maxRows-t>0?Math.min(this.maxRows,t):Math.max(this.maxRows,t)},this.pixelsToRows=function(e,t){return this.outerMargin||(e+=this.margins[0]/2),!0===t?Math.ceil(e/this.curRowHeight):!1===t?Math.floor(e/this.curRowHeight):Math.round(e/this.curRowHeight)},this.pixelsToColumns=function(e,t){return this.outerMargin||(e+=this.margins[1]/2),!0===t?Math.ceil(e/this.curColWidth):!1===t?Math.floor(e/this.curColWidth):Math.round(e/this.curColWidth)}}]).directive("gridsterPreview",(function(){return{replace:!0,scope:!0,require:"^gridster",template:'<div ng-style="previewStyle()" class="gridster-item gridster-preview-holder"></div>',link:function(e,t,n,a){e.previewStyle=function(){return a.movingItem?{display:"block",height:a.movingItem.sizeY*a.curRowHeight-a.margins[0]+"px",width:a.movingItem.sizeX*a.curColWidth-a.margins[1]+"px",top:a.movingItem.row*a.curRowHeight+(a.outerMargin?a.margins[0]:0)+"px",left:a.movingItem.col*a.curColWidth+(a.outerMargin?a.margins[1]:0)+"px"}:{display:"none"}}}}})).directive("gridster",["$timeout","$window","$rootScope","gridsterDebounce",function(t,n,a,o){return{scope:!0,restrict:"EAC",controller:"GridsterCtrl",controllerAs:"gridster",compile:function(r){return r.prepend('<div ng-if="gridster.movingItem" gridster-preview></div>'),function(r,i,s,l){function c(){i.css("height",l.gridHeight*l.curRowHeight+(l.outerMargin?l.margins[0]:-l.margins[0])+"px")}function u(e){if(l.setOptions(e),d(i[0])){"auto"===l.width?l.curWidth=i[0].offsetWidth||parseInt(i.css("width"),10):l.curWidth=l.width,"auto"===l.colWidth?l.curColWidth=(l.curWidth+(l.outerMargin?-l.margins[1]:l.margins[1]))/l.columns:l.curColWidth=l.colWidth,l.curRowHeight=l.rowHeight,"string"==typeof l.rowHeight&&("match"===l.rowHeight?l.curRowHeight=Math.round(l.curColWidth):-1!==l.rowHeight.indexOf("*")?l.curRowHeight=Math.round(l.curColWidth*l.rowHeight.replace("*","").replace(" ","")):-1!==l.rowHeight.indexOf("/")&&(l.curRowHeight=Math.round(l.curColWidth/l.rowHeight.replace("/","").replace(" ","")))),l.isMobile=l.mobileModeEnabled&&l.curWidth<=l.mobileBreakPoint;for(var t=0,n=l.grid.length;t<n;++t){var a=l.grid[t];if(a)for(var o=0,r=a.length;o<r;++o)if(a[o]){var s=a[o];s.setElementPosition(),s.setElementSizeY(),s.setElementSizeX()}}c()}}l.loaded=!1,l.$element=i,r.gridster=l,i.addClass("gridster");var d=function(e){return"hidden"!==e.style.visibility&&"none"!==e.style.display};r.$watch((function(){return l.gridHeight}),c),r.$watch((function(){return l.movingItem}),(function(){l.updateHeight(l.movingItem?l.movingItem.sizeY:0)}));var f=s.gridster;f?r.$parent.$watch(f,(function(e){u(e)}),!0):u({}),r.$watch((function(){return l.loaded}),(function(){l.loaded?(i.addClass("gridster-loaded"),a.$broadcast("gridster-loaded",l)):i.removeClass("gridster-loaded")})),r.$watch((function(){return l.isMobile}),(function(){l.isMobile?i.addClass("gridster-mobile").removeClass("gridster-desktop"):i.removeClass("gridster-mobile").addClass("gridster-desktop"),a.$broadcast("gridster-mobile-changed",l)})),r.$watch((function(){return l.draggable}),(function(){a.$broadcast("gridster-draggable-changed",l)}),!0),r.$watch((function(){return l.resizable}),(function(){a.$broadcast("gridster-resizable-changed",l)}),!0);var m=i[0].offsetWidth||parseInt(i.css("width"),10),p=function(){var e=i[0].offsetWidth||parseInt(i.css("width"),10);e&&e!==m&&!l.movingItem&&(m=e,l.loaded&&i.removeClass("gridster-loaded"),u(),l.loaded&&i.addClass("gridster-loaded"),a.$broadcast("gridster-resized",[e,i[0].offsetHeight],l))},g=o((function(){p(),t((function(){r.$apply()}))}),100);r.$watch((function(){return d(i[0])}),g),"function"==typeof window.addResizeListener?window.addResizeListener(i[0],g):r.$watch((function(){return i[0].offsetWidth||parseInt(i.css("width"),10)}),p);var h=e.element(n);h.on("resize",g),r.$on("$destroy",(function(){l.destroy(),h.off("resize",g),"function"==typeof window.removeResizeListener&&window.removeResizeListener(i[0],g)})),t((function(){r.$watch("gridster.floating",(function(){l.floatItemsUp()})),l.loaded=!0}),100)}}}}]).controller("GridsterItemCtrl",(function(){this.$element=null,this.gridster=null,this.row=null,this.col=null,this.sizeX=null,this.sizeY=null,this.minSizeX=0,this.minSizeY=0,this.maxSizeX=null,this.maxSizeY=null,this.init=function(e,t){this.$element=e,this.gridster=t,this.sizeX=t.defaultSizeX,this.sizeY=t.defaultSizeY},this.destroy=function(){this.gridster=null,this.$element=null},this.toJSON=function(){return{row:this.row,col:this.col,sizeY:this.sizeY,sizeX:this.sizeX}},this.isMoving=function(){return this.gridster.movingItem===this},this.setPosition=function(e,t){this.gridster.putItem(this,e,t),this.isMoving()||this.setElementPosition()},this.setSize=function(e,t,n){var a="size"+(e=e.toUpperCase()),o="Size"+e;if(""!==t){t=parseInt(t,10),(isNaN(t)||0===t)&&(t=this.gridster["default"+o]);var r="X"===e?this.gridster.columns:this.gridster.maxRows;this["max"+o]&&(r=Math.min(this["max"+o],r)),this.gridster["max"+o]&&(r=Math.min(this.gridster["max"+o],r)),"X"===e&&this.cols?r-=this.cols:"Y"===e&&this.rows&&(r-=this.rows);var i=0;this["min"+o]&&(i=Math.max(this["min"+o],i)),this.gridster["min"+o]&&(i=Math.max(this.gridster["min"+o],i)),t=Math.max(Math.min(t,r),i);var s=this[a]!==t||this["old"+o]&&this["old"+o]!==t;return this["old"+o]=this[a]=t,this.isMoving()||this["setElement"+o](),!n&&s&&(this.gridster.moveOverlappingItems(this),this.gridster.layoutChanged()),s}},this.setSizeY=function(e,t){return this.setSize("Y",e,t)},this.setSizeX=function(e,t){return this.setSize("X",e,t)},this.setElementPosition=function(){this.gridster.isMobile?this.$element.css({marginLeft:this.gridster.margins[0]+"px",marginRight:this.gridster.margins[0]+"px",marginTop:this.gridster.margins[1]+"px",marginBottom:this.gridster.margins[1]+"px",top:"",left:""}):this.$element.css({margin:0,top:this.row*this.gridster.curRowHeight+(this.gridster.outerMargin?this.gridster.margins[0]:0)+"px",left:this.col*this.gridster.curColWidth+(this.gridster.outerMargin?this.gridster.margins[1]:0)+"px"})},this.setElementSizeY=function(){this.gridster.isMobile&&!this.gridster.saveGridItemCalculatedHeightInMobile?this.$element.css("height",""):this.$element.css("height",this.sizeY*this.gridster.curRowHeight-this.gridster.margins[0]+"px")},this.setElementSizeX=function(){this.gridster.isMobile?this.$element.css("width",""):this.$element.css("width",this.sizeX*this.gridster.curColWidth-this.gridster.margins[1]+"px")},this.getElementSizeX=function(){return this.sizeX*this.gridster.curColWidth-this.gridster.margins[1]},this.getElementSizeY=function(){return this.sizeY*this.gridster.curRowHeight-this.gridster.margins[0]}})).factory("GridsterTouch",[function(){return function(e,t,n,a){var o,r,i={},s=function(e){if(Object.keys)return Object.keys(e).length;var t,n=0;for(t in e)++n;return n},l=function(e){for(var t=0,n=0,a=navigator.userAgent.match(/\bMSIE\b/),o=e;null!=o;o=o.offsetParent)a&&(!document.documentMode||document.documentMode<8)&&"relative"===o.currentStyle.position&&o.offsetParent&&"relative"===o.offsetParent.currentStyle.position&&o.offsetLeft===o.offsetParent.offsetLeft||(t+=o.offsetLeft),n+=o.offsetTop;return{x:t,y:n}},c=l(e),u=!1,d=function(o){if("mousemove"!==o.type||0!==s(i)){for(var r=!0,f=o.changedTouches?o.changedTouches:[o],m=0;m<f.length;++m){var p=f[m],g=void 0!==p.identifier?p.identifier:void 0!==p.pointerId?p.pointerId:1;if(void 0===p.pageX)if(p.pageX=p.offsetX+c.x,p.pageY=p.offsetY+c.y,p.srcElement.offsetParent===e&&document.documentMode&&8===document.documentMode&&"mousedown"===p.type)p.pageX+=p.srcElement.offsetLeft,p.pageY+=p.srcElement.offsetTop;else if(p.srcElement!==e&&!document.documentMode||document.documentMode<8){for(var h=-2,_=-2,b=p.srcElement;null!==b;b=b.parentNode)h+=b.scrollLeft?b.scrollLeft:0,_+=b.scrollTop?b.scrollTop:0;p.pageX=p.clientX+h,p.pageY=p.clientY+_}var y=p.pageX,v=p.pageY;o.type.match(/(start|down)$/i)?(c=l(e),i[g]&&(a&&a({target:o.target,which:o.which,pointerId:g,pageX:y,pageY:v}),delete i[g]),t&&r&&(r=t({target:o.target,which:o.which,pointerId:g,pageX:y,pageY:v})),i[g]={x:y,y:v},e.msSetPointerCapture&&r?e.msSetPointerCapture(g):"mousedown"===o.type&&1===s(i)&&(u?e.setCapture(!0):(document.addEventListener("mousemove",d,!1),document.addEventListener("mouseup",d,!1)))):o.type.match(/move$/i)?!i[g]||i[g].x===y&&i[g].y===v||(n&&r&&(r=n({target:o.target,which:o.which,pointerId:g,pageX:y,pageY:v})),i[g].x=y,i[g].y=v):i[g]&&o.type.match(/(up|end|cancel)$/i)&&(a&&r&&(r=a({target:o.target,which:o.which,pointerId:g,pageX:y,pageY:v})),delete i[g],e.msReleasePointerCapture?e.msReleasePointerCapture(g):"mouseup"===o.type&&0===s(i)&&(u?e.releaseCapture():(document.removeEventListener("mousemove",d,!1),document.removeEventListener("mouseup",d,!1))))}r&&(o.preventDefault&&o.preventDefault(),o.preventManipulation&&o.preventManipulation(),o.preventMouseEvent&&o.preventMouseEvent())}};return this.enable=function(){window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",d,!1),e.addEventListener("MSPointerMove",d,!1),e.addEventListener("MSPointerUp",d,!1),e.addEventListener("MSPointerCancel",d,!1),void 0!==e.style.msContentZooming&&(o=e.style.msContentZooming,e.style.msContentZooming="none"),void 0!==e.style.msTouchAction&&(r=e.style.msTouchAction,e.style.msTouchAction="none")):e.addEventListener?(e.addEventListener("touchstart",d,!1),e.addEventListener("touchmove",d,!1),e.addEventListener("touchend",d,!1),e.addEventListener("touchcancel",d,!1),e.addEventListener("mousedown",d,!1),e.setCapture&&!window.navigator.userAgent.match(/\bGecko\b/)&&(u=!0,e.addEventListener("mousemove",d,!1),e.addEventListener("mouseup",d,!1))):e.attachEvent&&e.setCapture&&(u=!0,e.attachEvent("onmousedown",(function(){return d(window.event),window.event.returnValue=!1,!1})),e.attachEvent("onmousemove",(function(){return d(window.event),window.event.returnValue=!1,!1})),e.attachEvent("onmouseup",(function(){return d(window.event),window.event.returnValue=!1,!1})))},this.disable=function(){window.navigator.msPointerEnabled?(e.removeEventListener("MSPointerDown",d,!1),e.removeEventListener("MSPointerMove",d,!1),e.removeEventListener("MSPointerUp",d,!1),e.removeEventListener("MSPointerCancel",d,!1),o&&(e.style.msContentZooming=o),r&&(e.style.msTouchAction=r)):e.removeEventListener?(e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",d,!1),e.removeEventListener("touchend",d,!1),e.removeEventListener("touchcancel",d,!1),e.removeEventListener("mousedown",d,!1),e.setCapture&&!window.navigator.userAgent.match(/\bGecko\b/)&&(u=!0,e.removeEventListener("mousemove",d,!1),e.removeEventListener("mouseup",d,!1))):e.detachEvent&&e.setCapture&&(u=!0,e.detachEvent("onmousedown"),e.detachEvent("onmousemove"),e.detachEvent("onmouseup"))},this}}]).factory("GridsterDraggable",["$document","$window","GridsterTouch",function(t,n,a){function o(o,r,i,s,l){function c(e){o.addClass("gridster-item-moving"),i.movingItem=s,i.updateHeight(s.sizeY),r.$apply((function(){i.draggable&&i.draggable.start&&i.draggable.start(e,o,l,s)}))}function u(e){var t=s.row,a=s.col,c=i.draggable&&i.draggable.drag,u=i.draggable.scrollSensitivity,d=i.draggable.scrollSpeed,f=Math.min(i.pixelsToRows(h),i.maxRows-1),m=Math.min(i.pixelsToColumns(g),i.columns-1),p=i.getItems(f,m,s.sizeX,s.sizeY,s),_=0!==p.length;if(!0===i.swapping&&_){var b=i.getBoundingBox(p),y=b.sizeX===s.sizeX&&b.sizeY===s.sizeY,v=b.row===t,A=b.col===a,S=b.row===f&&b.col===m,w=v||A;if(y&&1===p.length){if(S)i.swapItems(s,p[0]);else if(w)return}else if(b.sizeX<=s.sizeX&&b.sizeY<=s.sizeY&&w)for(var E=s.row<=f?s.row:f+s.sizeY,C=s.col<=m?s.col:m+s.sizeX,T=E-b.row,k=C-b.col,D=0,x=p.length;D<x;++D){var M=p[D];0===i.getItems(M.row+T,M.col+k,M.sizeX,M.sizeY,s).length&&i.putItem(M,M.row+T,M.col+k)}}!1===i.pushing&&_||(s.row=f,s.col=m),e.pageY-I.body.scrollTop<u?I.body.scrollTop=I.body.scrollTop-d:n.innerHeight-(e.pageY-I.body.scrollTop)<u&&(I.body.scrollTop=I.body.scrollTop+d),e.pageX-I.body.scrollLeft<u?I.body.scrollLeft=I.body.scrollLeft-d:n.innerWidth-(e.pageX-I.body.scrollLeft)<u&&(I.body.scrollLeft=I.body.scrollLeft+d),(c||t!==s.row||a!==s.col)&&r.$apply((function(){c&&i.draggable.drag(e,o,l,s)}))}function d(e){o.removeClass("gridster-item-moving");var t=Math.min(i.pixelsToRows(h),i.maxRows-1),n=Math.min(i.pixelsToColumns(g),i.columns-1);!1===i.pushing&&0!==i.getItems(t,n,s.sizeX,s.sizeY,s).length||(s.row=t,s.col=n),i.movingItem=null,s.setPosition(s.row,s.col),r.$apply((function(){i.draggable&&i.draggable.stop&&i.draggable.stop(e,o,l,s)}))}function f(t){if(-1!==k.indexOf(t.target.nodeName.toLowerCase()))return!1;var n=e.element(t.target);if(n.hasClass("gridster-item-resizable-handler"))return!1;if(n.attr("onclick")||n.attr("ng-click"))return!1;if(n.closest&&n.closest(".gridster-no-drag").length)return!1;if(i.draggable&&i.draggable.handle){var a=e.element(o[0].querySelectorAll(i.draggable.handle)),r=!1;e:for(var l=0,u=a.length;l<u;++l){var d=a[l];if(d===t.target){r=!0;break}for(var f=t.target,m=0;m<20;++m){var p=f.parentNode;if(p===o[0]||!p)break;if(p===d){r=!0;break e}f=p}}if(!r)return!1}switch(t.which){case 1:break;case 2:case 3:return}return A=t.pageX,S=t.pageY,g=parseInt(o.css("left"),10),h=parseInt(o.css("top"),10),_=o[0].offsetWidth,b=o[0].offsetHeight,s.col,s.row,c(t),!0}function m(e){if(!o.hasClass("gridster-item-moving")||o.hasClass("gridster-item-resizing"))return!1;var t=i.curWidth-1,n=i.curRowHeight*i.maxRows-1;y=e.pageX,v=e.pageY;var a=y-A+w,r=v-S+E;w=E=0,A=y,S=v;var s=a,l=r;return g+s<T?w=s-(a=T-g):g+_+s>t&&(w=s-(a=t-g-_)),h+l<C?E=l-(r=C-h):h+b+l>n&&(E=l-(r=n-h-b)),g+=a,h+=r,o.css({top:h+"px",left:g+"px"}),u(e),!0}function p(e){return!(!o.hasClass("gridster-item-moving")||o.hasClass("gridster-item-resizing")||(w=E=0,d(e),0))}var g,h,_,b,y=0,v=0,A=0,S=0,w=0,E=0,C=0,T=0,I=t[0],k=["select","option","input","textarea","button"],D=null,x=null;this.enable=function(){if(!0!==D){if(D=!0,x)return void x.enable();(x=new a(o[0],f,m,p)).enable()}},this.disable=function(){!1!==D&&(D=!1,x&&x.disable())},this.toggle=function(e){e?this.enable():this.disable()},this.destroy=function(){this.disable()}}return o}]).factory("GridsterResizable",["GridsterTouch",function(t){function n(n,a,o,r,i){function s(s){function l(e){n.addClass("gridster-item-moving"),n.addClass("gridster-item-resizing"),o.movingItem=r,r.setElementSizeX(),r.setElementSizeY(),r.setElementPosition(),o.updateHeight(1),a.$apply((function(){o.resizable&&o.resizable.start&&o.resizable.start(e,n,i,r)}))}function c(e){var t=r.row,l=r.col,c=r.sizeX,u=r.sizeY,d=o.resizable&&o.resizable.resize,f=r.col;-1!==["w","nw","sw"].indexOf(s)&&(f=o.pixelsToColumns(p,!1));var m=r.row;-1!==["n","ne","nw"].indexOf(s)&&(m=o.pixelsToRows(g,!1));var b=r.sizeX;-1===["n","s"].indexOf(s)&&(b=o.pixelsToColumns(h,!0));var y=r.sizeY;-1===["e","w"].indexOf(s)&&(y=o.pixelsToRows(_,!0)),!(m>-1&&f>-1&&b+f<=o.columns&&y+m<=o.maxRows)||!1===o.pushing&&0!==o.getItems(m,f,b,y,r).length||(r.row=m,r.col=f,r.sizeX=b,r.sizeY=y);var v=r.row!==t||r.col!==l||r.sizeX!==c||r.sizeY!==u;(d||v)&&a.$apply((function(){d&&o.resizable.resize(e,n,i,r)}))}function u(e){n.removeClass("gridster-item-moving"),n.removeClass("gridster-item-resizing"),o.movingItem=null,r.setPosition(r.row,r.col),r.setSizeY(r.sizeY),r.setSizeX(r.sizeX),a.$apply((function(){o.resizable&&o.resizable.stop&&o.resizable.stop(e,n,i,r)}))}function d(e){switch(e.which){case 1:break;case 2:case 3:return}return(b=o.draggable.enabled)&&(o.draggable.enabled=!1,a.$broadcast("gridster-draggable-changed",o)),w=e.pageX,E=e.pageY,p=parseInt(n.css("left"),10),g=parseInt(n.css("top"),10),h=n[0].offsetWidth,_=n[0].offsetHeight,r.sizeX,r.sizeY,l(e),!0}function f(e){var t=o.curWidth-1;A=e.pageX,S=e.pageY;var a=A-w+C,r=S-E+T;C=T=0,w=A,E=S;var i=r,s=a;return v.indexOf("n")>=0&&(_-i<x()?(r=_-x(),T=i-r):g+i<I&&(T=i-(r=I-g)),g+=r,_-=r),v.indexOf("s")>=0&&(_+i<x()?(r=x()-_,T=i-r):g+_+i>k&&(T=i-(r=k-g-_)),_+=r),v.indexOf("w")>=0&&(h-s<M()?(a=h-M(),C=s-a):p+s<D&&(C=s-(a=D-p)),p+=a,h-=a),v.indexOf("e")>=0&&(h+s<M()?(a=M()-h,C=s-a):p+h+s>t&&(C=s-(a=t-p-h)),h+=a),n.css({top:g+"px",left:p+"px",width:h+"px",height:_+"px"}),c(e),!0}function m(e){return o.draggable.enabled!==b&&(o.draggable.enabled=b,a.$broadcast("gridster-draggable-changed",o)),C=T=0,u(e),!0}var p,g,h,_,b,y,v=s,A=0,S=0,w=0,E=0,C=0,T=0,I=0,k=9999,D=0,x=function(){return(r.minSizeY?r.minSizeY:1)*o.curRowHeight-o.margins[0]},M=function(){return(r.minSizeX?r.minSizeX:1)*o.curColWidth-o.margins[1]},P=null;this.enable=function(){P||(P=e.element('<div class="gridster-item-resizable-handler handle-'+v+'"></div>'),n.append(P)),(y=new t(P[0],d,f,m)).enable()},this.disable=function(){P&&(P.remove(),P=null),y.disable(),y=void 0},this.destroy=function(){this.disable()}}var l=[],c=o.resizable.handles;"string"==typeof c&&(c=o.resizable.handles.split(","));for(var u=!1,d=0,f=c.length;d<f;d++)l.push(new s(c[d]));this.enable=function(){if(!u){for(var e=0,t=l.length;e<t;e++)l[e].enable();u=!0}},this.disable=function(){if(u){for(var e=0,t=l.length;e<t;e++)l[e].disable();u=!1}},this.toggle=function(e){e?this.enable():this.disable()},this.destroy=function(){for(var e=0,t=l.length;e<t;e++)l[e].destroy()}}return n}]).factory("gridsterDebounce",(function(){return function(e,t,n){var a;return function(){var o=this,r=arguments,i=function(){a=null,n||e.apply(o,r)},s=n&&!a;clearTimeout(a),a=setTimeout(i,t),s&&e.apply(o,r)}}})).directive("gridsterItem",["$parse","GridsterDraggable","GridsterResizable","gridsterDebounce",function(e,t,n,a){return{scope:!0,restrict:"EA",controller:"GridsterItemCtrl",controllerAs:"gridsterItem",require:["^gridster","gridsterItem"],link:function(o,r,i,s){function l(){p.setPosition(p.row,p.col),_.row&&_.row.assign&&_.row.assign(o,p.row),_.col&&_.col.assign&&_.col.assign(o,p.col)}function c(){var e=p.setSizeX(p.sizeX,!0);e&&_.sizeX&&_.sizeX.assign&&_.sizeX.assign(o,p.sizeX);var t=p.setSizeY(p.sizeY,!0);t&&_.sizeY&&_.sizeY.assign&&_.sizeY.assign(o,p.sizeY),(e||t)&&(p.gridster.moveOverlappingItems(p),m.layoutChanged(),o.$broadcast("gridster-item-resized",p))}function u(){var e=document.createElement("div"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(void 0!==e.style[n])return t[n]}var d,f=i.gridsterItem,m=s[0],p=s[1];if(o.gridster=m,f){var g=e(f);!(d=g(o)||{})&&g.assign&&(d={row:p.row,col:p.col,sizeX:p.sizeX,sizeY:p.sizeY,minSizeX:0,minSizeY:0,maxSizeX:null,maxSizeY:null},g.assign(o,d))}else d=i;p.init(r,m),r.addClass("gridster-item");for(var h=["minSizeX","maxSizeX","minSizeY","maxSizeY","sizeX","sizeY","row","col"],_={},b=[],y=function(t){var n;if("string"==typeof d[t])n=d[t];else if("string"==typeof d[t.toLowerCase()])n=d[t.toLowerCase()];else{if(!f)return;n=f+"."+t}b.push('"'+t+'":'+n),_[t]=e(n);var a=_[t](o);"number"==typeof a&&(p[t]=a)},v=0,A=h.length;v<A;++v)y(h[v]);var S="{"+b.join(",")+"}";o.$watchCollection(S,(function(e,t){for(var n in e){var a=e[n];t[n]!==a&&(a=parseInt(a,10),isNaN(a)||(p[n]=a))}})),o.$watch((function(){return p.row+","+p.col}),l),o.$watch((function(){return p.sizeY+","+p.sizeX+","+p.minSizeX+","+p.maxSizeX+","+p.minSizeY+","+p.maxSizeY}),c);var w=new t(r,o,m,p,d),E=new n(r,o,m,p,d),C=function(){E.toggle(!m.isMobile&&m.resizable&&m.resizable.enabled)};C();var T=function(){w.toggle(!m.isMobile&&m.draggable&&m.draggable.enabled)};T(),o.$on("gridster-draggable-changed",T),o.$on("gridster-resizable-changed",C),o.$on("gridster-resized",C),o.$on("gridster-mobile-changed",(function(){C(),T()}));var I=a((function(){o.$apply((function(){o.$broadcast("gridster-item-transition-end",p)}))}),50);return r.on(u(),I),o.$broadcast("gridster-item-initialized",p),o.$on("$destroy",(function(){try{E.destroy(),w.destroy()}catch(e){}try{m.removeItem(p)}catch(e){}try{p.destroy()}catch(e){}}))}}}]).directive("gridsterNoDrag",(function(){return{restrict:"A",link:function(e,t){t.addClass("gridster-no-drag")}}}))})?a.apply(t,o):a)||(e.exports=r)}()},"./node_modules/@xenialab/angular-material-form-builder/dist/angular-material-form-builder.min.js":e=>{self,e.exports=(()=>{"use strict";var e={"./src/lib/directives/agreement-item/agreement-item.controller.js":(e,t,n)=>{function a(e,t){this.Element=t,this.item=e.extend(this.item||{},{config:{maxSelections:null},options:[{value:"",selected:!1}]})}n.r(t),n.d(t,{AgreementItemCtrl:()=>a}),a.$inject=["Utils","$element"]},"./src/lib/directives/agreement-item/agreement-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{AgreementItem:()=>o});var a=n("./src/lib/directives/agreement-item/agreement-item.controller.js");class o{constructor(){this.restrict="E",this.scope={item:"="},this.controller=a.AgreementItemCtrl,this.controllerAs="Agreement",this.bindToController=!0}}o.$inject=[]},"./src/lib/directives/agreement-item/agreement-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{AgreementViewCtrl:()=>a});class a{constructor(e,t){this.Scope=e,this.Utils=t,this.formItem={}}init(){this.formItem=this.Utils.extend(this.formItem||{},{config:{},options:[{value:"",selected:!1}]}),this.selectedOptions=this._getSelectedOptions(),this.disableOptions=!1,this.isValid=!0,this._updateView(),this._updateValidity(),this.isPreview()&&this._enableWatchers()}toggleSelectedOption(){this.selectedOptions=this._getSelectedOptions(),this._updateView(),this._updateValidity()}_getSelectedOptions(){return this.formItem.options.filter((e=>e.selected))}_updateView(){this.formItem.config.maxSelections&&this.selectedOptions.length===this.formItem.config.maxSelections?this.disableOptions=!0:this.disableOptions=!1}_updateValidity(){this.formItem.config.required?this.isValid=this.selectedOptions.length>0:this.isValid=!0,this.form.$setValidity("minSelections",this.isValid)}_enableWatchers(){this.Scope.$watch("AgreementView.formItem.config.required",(e=>{void 0!==e&&(this._updateView(),this._updateValidity())}))}}a.$inject=["$scope","Utils"]},"./src/lib/directives/agreement-item/agreement-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{AgreementView:()=>r});var a=n("./src/lib/directives/agreement-item/agreement-view.controller.js"),o=n("./src/lib/directives/agreement-item/agreement-view.tpl.html");class r{constructor(e){this.$timeout=e,this.template=o.default,this.restrict="E",this.scope={formItem:"=",isPreview:"&",form:"="},this.controller=a.AgreementViewCtrl,this.controllerAs="AgreementView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/checkboxes-item/checkboxes-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{CheckboxesItemCtrl:()=>a});class a{constructor(e,t){this.Element=t,this.item=e.extend(this.item||{},{config:{maxSelections:null},options:[{value:"",selected:!1}]})}deleteOption(e){this.item.options.splice(e,1)}addOption(){this.item.options.push({value:"",selected:!1}),setTimeout((()=>{const e=this.Element.find("input");e[e.length-1].focus()}),0)}}a.$inject=["Utils","$element"]},"./src/lib/directives/checkboxes-item/checkboxes-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{CheckboxesItem:()=>r});var a=n("./src/lib/directives/checkboxes-item/checkboxes-item.tpl.html"),o=n("./src/lib/directives/checkboxes-item/checkboxes-item.controller.js");function r(){return{restrict:"E",template:a.default,scope:{item:"="},controller:o.CheckboxesItemCtrl,controllerAs:"Checkboxes",bindToController:!0}}},"./src/lib/directives/checkboxes-item/checkboxes-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{CheckboxesViewCtrl:()=>a});class a{constructor(e,t){this.Scope=e,this.Utils=t,this.formItem={}}init(){this.formItem=this.Utils.extend(this.formItem||{},{config:{},options:[]}),this.selectedOptions=this._getSelectedOptions(),this.disableOptions=!1,this.isValid=!0,this._updateView(),this._updateValidity(),this.isPreview()&&this._enableWatchers()}toggleSelectedOption(){this.selectedOptions=this._getSelectedOptions(),this._updateView(),this._updateValidity()}_getSelectedOptions(){return this.formItem.options.filter((e=>e.selected))}_updateView(){this.formItem.config.maxSelections&&this.selectedOptions.length===this.formItem.config.maxSelections?this.disableOptions=!0:this.disableOptions=!1}_updateValidity(){this.formItem.config.required?this.isValid=this.selectedOptions.length>0:this.isValid=!0,this.form.$setValidity("minSelections",this.isValid)}_enableWatchers(){this.Scope.$watch("CheckboxesView.formItem.config.required",(e=>{void 0!==e&&(this._updateView(),this._updateValidity())}))}}a.$inject=["$scope","Utils"]},"./src/lib/directives/checkboxes-item/checkboxes-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{CheckboxesView:()=>r});var a=n("./src/lib/directives/checkboxes-item/checkboxes-view.tpl.html"),o=n("./src/lib/directives/checkboxes-item/checkboxes-view.controller.js");class r{constructor(e){this.$timeout=e,this.restrict="E",this.template=a.default,this.scope={formItem:"=",isPreview:"&",form:"="},this.controller=o.CheckboxesViewCtrl,this.controllerAs="CheckboxesView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/form-item/form-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{FormItemCtrl:()=>o});const a={upload:"Attachment",agreement:"Agreement",input:"Field",chooseFromList:"Select",label:"Label",multipleChoices:"Choice",matrix:"Matrix",checkboxes:"Options",textarea:"Text"};class o{constructor(e,t,n){this.Attrs=t,this.Utils=n,this.templates={upload:'<upload-item item="FormItem.item"></upload-item>',agreement:'<agreement-item item="FormItem.item"></agreement-item>',input:'<input-item item="FormItem.item"></input-item>',chooseFromList:'<bet-form-choose-from-list item="FormItem.item"></bet-form-choose-from-list>',label:'<label-item item="FormItem.item"></label-item>',multipleChoices:'<radio-button-item item="FormItem.item"></radio-button-item>',matrix:'<matrix-item item="FormItem.item"></matrix-item>',checkboxes:'<checkboxes-item item="FormItem.item"></checkboxes-item>',textarea:'<textarea-item item="FormItem.item"></textarea-item>'},this.item={},this.scope=e}init(){this.item=this.Utils.extend(this.item||{},{type:this.Attrs.type,props:{title:a[this.Attrs.type],helpText:""},config:{required:!1}})}deleteClicked(){this.onDelete({item:this.item,index:this.index()})}_getItemTemplate(e){return'<div class="form-item-container"><div class="form-item-actions"><md-button class="md-button" ng-if="FormItem.Attrs.onDelete" ng-click="FormItem.deleteClicked()"> <md-icon class="material-icons small">delete</md-icon></md-button><md-button class="md-button" ng-if="FormItem.Attrs.onUp" ng-click="FormItem.onUp({item: FormItem.item, index: FormItem.index()})"> <md-icon class="material-icons small">arrow_drop_up</md-icon></md-button><md-button class="md-button" ng-if="FormItem.Attrs.onDown" ng-click="FormItem.onDown({item: FormItem.item, index: FormItem.index()})"> <md-icon class="material-icons small">arrow_drop_down</md-icon></md-button></div><md-input-container><label>Field Title</label><input ng-model="FormItem.item.props.title"/></md-input-container><md-input-container><label>Help Text</label><input ng-model="FormItem.item.props.helpText" /></md-input-container>'+this.templates[e]+'<md-input-container><md-checkbox ng-model="FormItem.item.config.required">Required field</md-checkbox></md-input-container></div>'}}o.$inject=["$scope","$attrs","Utils"]},"./src/lib/directives/form-item/form-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{FormItem:()=>r});var a=n("./src/lib/directives/form-item/form-item.tpl.html"),o=n("./src/lib/directives/form-item/form-item.controller.js");class r{constructor(e){this.$compile=e,this.restrict="E",this.scope={item:"=",onDelete:"&",onUp:"&",onDown:"&",index:"&"},this.controller=o.FormItemCtrl,this.controllerAs="FormItem",this.bindToController=!0,this.template=a.default}link(e,t,n,a){const o=a._getItemTemplate(n.type),r=this.$compile(o)(e);return a.init(),r}}r.$inject=["$compile"]},"./src/lib/directives/form-items-container/form-items-container.controller.js":(e,t,n)=>{n.r(t),n.d(t,{FormItemsContainerCtrl:()=>a});class a{constructor(){this.form={items:[]}}delete(e,t){this.form.items.splice(t,1)}up(e,t){if(0!==t){const n=this.form.items[t-1];this.form.items[t]=n,this.form.items[t-1]=e}}down(e,t){if(t!==this.form.items.length-1){const n=this.form.items[t+1];this.form.items[t]=n,this.form.items[t+1]=e}}}a.$inject=[]},"./src/lib/directives/form-items-container/form-items-container.directive.js":(e,t,n)=>{n.r(t),n.d(t,{FormItemsContainer:()=>r});var a=n("./src/lib/directives/form-items-container/form-items-container.controller.js"),o=n("./src/lib/directives/form-items-container/form-items-container.tpl.html");class r{constructor(){this.restrict="E",this.scope={form:"="},this.template=o.default,this.controller=a.FormItemsContainerCtrl,this.controllerAs="container",this.bindToController=!0}}r.$inject=[]},"./src/lib/directives/form-view/form-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{FormViewCtrl:()=>a});class a{constructor(e){this.Scope=e}init(){}}a.$inject=["$scope"]},"./src/lib/directives/form-view/form-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{FormView:()=>r});var a=n("./src/lib/directives/form-view/form-view.controller.js"),o=n("./src/lib/directives/form-view/form-view.tpl.html");class r{constructor(){this.restrict="E",this.template=o.default,this.scope={form:"="},this.controller=a.FormViewCtrl,this.controllerAs="FormView",this.bindToController=!0}link(e,t,n,a){a.init()}}r.$inject=[]},"./src/lib/directives/input-item/input-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{InputItemCtrl:()=>a});class a{constructor(e,t){this.Element=t,this.item=e.extend(this.item||{},{config:{type:"text"}})}}a.$inject=["Utils","$element"]},"./src/lib/directives/input-item/input-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{InputItem:()=>r});var a=n("./src/lib/directives/input-item/input-item.controller.js"),o=n("./src/lib/directives/input-item/input-item.tpl.html");class r{constructor(){this.restrict="E",this.template=o.default,this.scope={item:"="},this.controller=a.InputItemCtrl,this.controllerAs="Input",this.bindToController=!0}}r.$inject=[]},"./src/lib/directives/input-item/input-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{InputViewCtrl:()=>a});class a{constructor(e){this.Utils=e,this.formItem={}}init(){this.Utils.extend(this.formItem,{config:{}})}}a.$inject=["Utils"]},"./src/lib/directives/input-item/input-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{InputView:()=>r});var a=n("./src/lib/directives/input-item/input-view.controller.js"),o=n("./src/lib/directives/input-item/input-view.tpl.html");class r{constructor(e){this.$timeout=e,this.restrict="E",this.template=o.default,this.scope={formItem:"=",form:"="},this.controller=a.InputViewCtrl,this.controllerAs="InputView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/label-item/label-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{LabelItemCtrl:()=>a});class a{constructor(e){this.Element=e}}a.$inject=["$element"]},"./src/lib/directives/label-item/label-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{LabelItem:()=>r});var a=n("./src/lib/directives/label-item/label-item.controller.js"),o=n("./src/lib/directives/label-item/label-item.tpl.html");class r{constructor(){this.restrict="E",this.template=o.default,this.scope={item:"="},this.controller=a.LabelItemCtrl,this.controllerAs="Label",this.bindToController=!0}}},"./src/lib/directives/label-item/label-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{LabelViewCtrl:()=>a});class a{constructor(e){this.Utils=e}init(){this.Utils.extend(this.formItem,{})}}a.$inject=["Utils"]},"./src/lib/directives/label-item/label-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{LabelView:()=>r});var a=n("./src/lib/directives/label-item/label-view.controller.js"),o=n("./src/lib/directives/label-item/label-view.tpl.html");class r{constructor(e){this.$timeout=e,this.restrict="E",this.template=o.default,this.scope={formItem:"=",form:"="},this.controller=a.LabelViewCtrl,this.controllerAs="LabelView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/matrix-item/matrix-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{MatrixItemCtrl:()=>a});class a{constructor(e,t){this.RowContainer=angular.element(t[0].querySelector(".rowContainer")),this.ColumnContainer=angular.element(t[0].querySelector(".columnContainer")),this.item=e.extend(this.item||{},{config:{rows:[{value:""}],columns:[{value:""}]}})}deleteRow(e){this.item.config.rows.splice(e,1)}addRow(){this.item.config.rows.push({value:""}),setTimeout(function(){const e=this.RowContainer.find("input");e[e.length-1].focus()}.bind(this),0)}deleteColumn(e){this.item.config.columns.splice(e,1)}addColumn(){this.item.config.columns.push({value:""}),setTimeout((()=>{const e=this.ColumnContainer.find("input");e[e.length-1].focus()}),0)}}a.$inject=["Utils","$document"]},"./src/lib/directives/matrix-item/matrix-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{MatrixItem:()=>r});var a=n("./src/lib/directives/matrix-item/matrix-item.controller.js"),o=n("./src/lib/directives/matrix-item/matrix-item.tpl.html");class r{constructor(){this.restrict="E",this.template=o.default,this.scope={item:"="},this.controller=a.MatrixItemCtrl,this.controllerAs="Matrix",this.bindToController=!0}}r.$inject=[]},"./src/lib/directives/matrix-item/matrix-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{MatrixViewCtrl:()=>a});class a{constructor(e,t){this.Scope=e,this.Utils=t,this.isValid=!0,this.formItem={}}init(){this.formItem=this.Utils.extend(this.formItem,{config:{rows:[],columns:[]}}),this._updateValidity(),this.isPreview()&&this._enableWatchers()}_updateValidity(){let e=!0;this.formItem.config.required&&(e=!this.formItem.config.rows.some((e=>void 0===e.selected))),this.isValid=e,this.form.$setValidity("required",this.isValid)}_enableWatchers(){this.Scope.$watchGroup(["MatrixView.formItem.config.required","MatrixView.formItem.config.rows.length"],(e=>{void 0!==e&&this._updateValidity()}))}}a.$inject=["$scope","Utils"]},"./src/lib/directives/matrix-item/matrix-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{MatrixView:()=>r});var a=n("./src/lib/directives/matrix-item/matrix-view.tpl.html"),o=n("./src/lib/directives/matrix-item/matrix-view.controller.js");class r{constructor(e){this.$timeout=e,this.restrict="E",this.template=a.default,this.scope={formItem:"=",isPreview:"&",form:"="},this.controller=o.MatrixViewCtrl,this.controllerAs="MatrixView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/radio-button-item/radio-button-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{RadioButtonItemCtrl:()=>a});class a{constructor(e,t){this.Element=t,this.item=e.extend(this.item||{},{config:{},options:[{value:""}]})}deleteOption(e){this.item.options.splice(e,1)}addOption(){this.item.options.push({value:""}),setTimeout((()=>{const e=this.Element.find("input");e[e.length-1].focus()}),0)}}a.$inject=["Utils","$element"]},"./src/lib/directives/radio-button-item/radio-button-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{RadioButtonItem:()=>r});var a=n("./src/lib/directives/radio-button-item/radio-button-item.controller.js"),o=n("./src/lib/directives/radio-button-item/radio-button-item.tpl.html");class r{constructor(){this.restrict="E",this.template=o.default,this.scope={item:"="},this.controller=a.RadioButtonItemCtrl,this.controllerAs="RadioButton",this.bindToController=!0}}r.$inject=[]},"./src/lib/directives/radio-button-item/radio-button-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{RadioButtonViewCtrl:()=>a});class a{constructor(e){this.Utils=e,this.formItem={}}init(){this.formItem=this.Utils.extend(this.formItem,{config:{},options:[]})}}a.$inject=["Utils"]},"./src/lib/directives/radio-button-item/radio-button-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{RadioButtonView:()=>r});var a=n("./src/lib/directives/radio-button-item/radio-button-view.controller.js"),o=n("./src/lib/directives/radio-button-item/radio-button-view.tpl.html");class r{constructor(e){this.$timeout=e,this.restrict="E",this.template=o.default,this.scope={formItem:"=",isPreview:"&",form:"="},this.controller=a.RadioButtonViewCtrl,this.controllerAs="RadioButtonView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/select-item/select-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{SelectItemCtrl:()=>a});class a{constructor(e,t){this.Element=t,this.item=e.extend(this.item||{},{config:{},options:[{value:""}]})}deleteOption(e){this.item.options.splice(e,1)}addOption(){this.item.options.push({value:""}),setTimeout((()=>{const e=this.Element.find("input");e[e.length-1].focus()}),0)}}a.$inject=["Utils","$element"]},"./src/lib/directives/select-item/select-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{SelectItem:()=>r});var a=n("./src/lib/directives/select-item/select-item.tpl.html"),o=n("./src/lib/directives/select-item/select-item.controller.js");class r{constructor(){this.restrict="E",this.template=a.default,this.scope={item:"="},this.controller=o.SelectItemCtrl,this.controllerAs="Select",this.bindToController=!0}}r.$inject=[]},"./src/lib/directives/select-item/select-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{SelectViewCtrl:()=>a});class a{constructor(e){this.Utils=e,this.formItem={}}init(){this.formItem=this.Utils.extend(this.formItem,{config:{},options:[]})}}a.$inject=["Utils"]},"./src/lib/directives/select-item/select-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{SelectView:()=>r});var a=n("./src/lib/directives/select-item/select-view.tpl.html"),o=n("./src/lib/directives/select-item/select-view.controller.js");class r{constructor(e){this.$timeout=e,this.restrict="E",this.template=a.default,this.scope={formItem:"=",isPreview:"&",form:"="},this.controller=o.SelectViewCtrl,this.controllerAs="SelectView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/textarea-item/textarea-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{TextareaItemCtrl:()=>a});class a{constructor(e,t){this.Element=t,this.item=e.extend(this.item||{},{config:{}})}}a.$inject=["Utils","$element"]},"./src/lib/directives/textarea-item/textarea-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{TextareaItem:()=>r});var a=n("./src/lib/directives/textarea-item/textarea-item.controller.js"),o=n("./src/lib/directives/textarea-item/textarea-item.tpl.html");class r{constructor(){this.restrict="E",this.template=o.default,this.scope={item:"="},this.controller=a.TextareaItemCtrl,this.controllerAs="Textarea",this.bindToController=!0}}r.$inject=[]},"./src/lib/directives/textarea-item/textarea-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{TextareaViewCtrl:()=>a});class a{constructor(e){this.Utils=e,this.formItem={}}init(){this.formItem=this.Utils.extend(this.formItem,{config:{}})}}a.$inject=["Utils"]},"./src/lib/directives/textarea-item/textarea-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{TextareaView:()=>r});var a=n("./src/lib/directives/textarea-item/textarea-view.controller.js"),o=n("./src/lib/directives/textarea-item/textarea-view.tpl.html");class r{constructor(e){this.$timeout=e,this.scope={formItem:"=",form:"="},this.restrict="E",this.template=o.default,this.controller=a.TextareaViewCtrl,this.controllerAs="TextareaView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50)}}r.$inject=["$timeout"]},"./src/lib/directives/upload-item/upload-item.controller.js":(e,t,n)=>{n.r(t),n.d(t,{UploadItemCtrl:()=>a});class a{constructor(e,t){this.Element=t,this.item=e.extend(this.item||{},{config:{},options:[]})}}a.$inject=["Utils","$element"]},"./src/lib/directives/upload-item/upload-item.directive.js":(e,t,n)=>{n.r(t),n.d(t,{UploadItem:()=>r});var a=n("./src/lib/directives/upload-item/upload-item.tpl.html"),o=n("./src/lib/directives/upload-item/upload-item.controller.js");class r{constructor(){this.restrict="E",this.template=a.default,this.scope={item:"="},this.controller=o.UploadItemCtrl,this.controllerAs="Upload",this.bindToController=!0}}r.$inject=[]},"./src/lib/directives/upload-item/upload-view.controller.js":(e,t,n)=>{n.r(t),n.d(t,{UploadViewCtrl:()=>a});class a{constructor(e,t,n){this.Scope=e,this.Element=n,this.Utils=t,this.formItem={}}init(){this.isMultiple=!1,this.showAllowed=!1,this.formItem=this.Utils.extend(this.formItem||{},{config:{size:10,uploadFileButtonLabel:"Add files"},options:[]}),this.isPreview()&&this._enableWatchers()}_updateMultiple(){this.isMultiple=!!this.formItem.config.multipleUpload;const e=angular.element(this.Element[0].querySelector("input[type=file]"));e&&(this.formItem.options=[],this.isMultiple?e.attr("multiple","multiple"):e.removeAttr("multiple"))}_updateAccept(){this.showAllowed=!!this.formItem.config.showAccept;const e=angular.element(this.Element[0].querySelector("input[type=file]"));e&&(this.showAllowed?e[0].setAttribute("accept",this.formItem.config.accept):(e[0].removeAttribute("accept"),delete this.formItem.config.accept))}_enableWatchers(){this.Scope.$watch("UploadView.formItem.config.multipleUpload",(e=>{void 0!==e&&this._updateMultiple()})),this.Scope.$watch("UploadView.formItem.config.showAccept",(e=>{void 0!==e&&this._updateAccept()})),this.Scope.$watch("UploadView.formItem.config.accept",(e=>{void 0!==e&&this._updateAccept()}))}removeItem(e){this.formItem.options.splice(e,1)}}a.$inject=["$scope","Utils","$element"]},"./src/lib/directives/upload-item/upload-view.directive.js":(e,t,n)=>{n.r(t),n.d(t,{UploadView:()=>r});var a=n("./src/lib/directives/upload-item/upload-view.controller.js"),o=n("./src/lib/directives/upload-item/upload-view.tpl.html");class r{constructor(e){this.$timeout=e,this.template=o.default,this.restrict="E",this.scope={formItem:"=",isPreview:"&",form:"="},this.controller=a.UploadViewCtrl,this.controllerAs="UploadView",this.bindToController=!0}link(e,t,n,a){this.$timeout((function(){a.init()}),50);const o=angular.element(t[0].querySelector(".upload-button")),r=angular.element(t[0].querySelector("input[type=file]")),i=angular.element(t[0].querySelector("label"));i.length&&i.css("display","none"),o.on("click",(()=>{i.css("display","none"),"function"==typeof r.trigger?r.trigger("click"):r[0].click()})),r.on("change",(t=>{e.$apply((function(){const e=Array.from(t.target.files),n=1048576*a.formItem.config.size;e.some((e=>e.size>=n))?(i.css("display","block"),i.text(a.formItem.config.sizeErrMessage),a.formItem.options=[]):a.formItem.options=e.map((e=>{const{name:t,size:n,type:a}=e;return{name:t,size:n,type:a,file:e}}))}))}))}}r.$inject=["$timeout"]},"./src/lib/index.module.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>T}),n("./src/lib/index.scss");var a=n("./src/lib/directives/upload-item/upload-item.directive.js"),o=n("./src/lib/directives/upload-item/upload-view.directive.js"),r=n("./src/lib/directives/agreement-item/agreement-item.directive.js"),i=n("./src/lib/directives/agreement-item/agreement-view.directive.js"),s=n("./src/lib/main/main.controller.js"),l=n("./src/lib/utils/utils.service.js"),c=n("./src/lib/directives/checkboxes-item/checkboxes-item.directive.js"),u=n("./src/lib/directives/checkboxes-item/checkboxes-view.directive.js"),d=n("./src/lib/directives/form-item/form-item.directive.js"),f=n("./src/lib/directives/form-items-container/form-items-container.directive.js"),m=n("./src/lib/directives/form-view/form-view.directive.js"),p=n("./src/lib/directives/input-item/input-item.directive.js"),g=n("./src/lib/directives/input-item/input-view.directive.js"),h=n("./src/lib/directives/label-item/label-item.directive.js"),_=n("./src/lib/directives/label-item/label-view.directive.js"),b=n("./src/lib/directives/matrix-item/matrix-item.directive.js"),y=n("./src/lib/directives/matrix-item/matrix-view.directive.js"),v=n("./src/lib/directives/radio-button-item/radio-button-item.directive.js"),A=n("./src/lib/directives/radio-button-item/radio-button-view.directive.js"),S=n("./src/lib/directives/select-item/select-view.directive.js"),w=n("./src/lib/directives/select-item/select-item.directive.js"),E=n("./src/lib/directives/textarea-item/textarea-item.directive.js"),C=n("./src/lib/directives/textarea-item/textarea-view.directive.js");const T=angular.module("angularMaterialFormBuilder",["ngMaterial","angular-sortable-view","ngMessages"]).service("Utils",l.Utils).controller("MainController",s.MainController).directive("uploadItem",a.UploadItem).directive("uploadView",o.UploadView).directive("agreementItem",r.AgreementItem).directive("agreementView",i.AgreementView).directive("checkboxesItem",c.CheckboxesItem).directive("checkboxesView",u.CheckboxesView).directive("formItem",d.FormItem).directive("formItemsContainer",f.FormItemsContainer).directive("formView",m.FormView).directive("inputItem",p.InputItem).directive("inputView",g.InputView).directive("labelItem",h.LabelItem).directive("labelView",_.LabelView).directive("matrixItem",b.MatrixItem).directive("matrixView",y.MatrixView).directive("radioButtonItem",v.RadioButtonItem).directive("radioButtonView",A.RadioButtonView).directive("selectItem",w.SelectItem).directive("selectView",S.SelectView).directive("textareaItem",E.TextareaItem).directive("textareaView",C.TextareaView)},"./src/lib/main/main.controller.js":(e,t,n)=>{n.r(t),n.d(t,{MainController:()=>a});class a{constructor(){this.form={items:[]}}addItem(e){this.form.items.push({type:e})}delete(e,t){this.form.items.splice(t,1)}up(e,t){if(0!==t){const n=this.form.items[t-1];this.form.items[t]=n,this.form.items[t-1]=e}}down(e,t){if(t!==this.form.items.length-1){const n=this.form.items[t+1];this.form.items[t]=n,this.form.items[t+1]=e}}}a.$inject=[]},"./src/lib/utils/utils.service.js":(e,t,n)=>{n.r(t),n.d(t,{Utils:()=>a});class a{extend(e,t){return Object.keys(t).reduce(((e,n)=>(void 0===e[n]?e[n]=t[n]:"object"==typeof t[n]&&(e[n]=this.extend(e[n],t[n])),e)),void 0===e?{}:e)}}},"./src/lib/index.scss":(e,t,n)=>{n.r(t)},"./src/lib/directives/agreement-item/agreement-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container>\n  <div\n    layout="{{AgreementView.formItem.config.direction == \'horizontal\' ? \'row\' : \'columb\'}}"\n  >\n    <md-checkbox\n      ng-model="AgreementView.formItem.options[0].selected"\n      ng-change="AgreementView.toggleSelectedOption(option)"\n      ng-disabled="AgreementView.disableOptions && !option.selected"\n      aria-label="..."\n      >{{AgreementView.formItem.options[0].value}}</md-checkbox\n    >\n  </div>\n\n  <div ng-messages="AgreementView.form.$error">\n    <div ng-message="minSelections">\n      Must select {{AgreementView.formItem.maxSelections || 1}} items\n    </div>\n  </div>\n</md-input-container>\n'},"./src/lib/directives/checkboxes-item/checkboxes-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div\n  class="sortable-container"\n  layout="column"\n  sv-root\n  sv-part="Checkboxes.item.options"\n>\n  <md-input-container class="md-block">\n    <label>Max Selections</label>\n    <input type="number" ng-model="Checkboxes.item.config.maxSelections" />\n  </md-input-container>\n\n  <md-switch\n    ng-model="Checkboxes.item.config.direction"\n    ng-true-value="\'horizontal\'"\n    ng-false-value="\'vertical\'"\n  >\n    Layout direction ({{Checkboxes.item.config.direction == \'horizontal\' ?\n    \'Horizontal\' : \'Vertical\'}})\n  </md-switch>\n\n  <div\n    class="option-item"\n    layout="row"\n    ng-repeat="option in Checkboxes.item.options track by $index"\n    sv-element\n  >\n    <md-button\n      class="md-button handle"\n      md-no-ink\n      aria-label="reorder option item"\n      sv-handle\n    >\n      <md-icon class="material-icons">reorder</md-icon>\n    </md-button>\n\n    <md-input-container class="md-block">\n      <label>Option {{$index + 1}}</label>\n      <input ng-model="option.value" />\n    </md-input-container>\n\n    <md-button class="md-button" ng-click="Checkboxes.deleteOption($index)">\n      <md-icon class="material-icons">delete</md-icon>\n    </md-button>\n  </div>\n  <div layout="row" layout-align="start">\n    <md-button\n      class="md-primary add-option-button"\n      ng-click="Checkboxes.addOption()"\n    >\n      <md-icon class="material-icons">add</md-icon>\n    </md-button>\n  </div>\n</div>\n'},"./src/lib/directives/checkboxes-item/checkboxes-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container>\n  <div\n    layout="{{CheckboxesView.formItem.config.direction == \'horizontal\' ? \'row\' : \'column\'}}"\n  >\n    <md-checkbox\n      ng-repeat="option in CheckboxesView.formItem.options track by $index"\n      ng-model="option.selected"\n      ng-change="CheckboxesView.toggleSelectedOption(option)"\n      ng-disabled="CheckboxesView.disableOptions && !option.selected"\n      aria-label="..."\n      >{{option.value}}</md-checkbox\n    >\n  </div>\n\n  <div ng-messages="CheckboxesView.form.$error">\n    <div ng-message="minSelections">\n      Must select {{CheckboxesView.formItem.maxSelections || 1}} items\n    </div>\n  </div>\n</md-input-container>\n'},"./src/lib/directives/form-item/form-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div class="form-item-container md-inline-form">\n  <div class="form-item-actions">\n    <md-button\n      class="md-button"\n      ng-if="FormItem.Attrs.onDelete"\n      ng-click="FormItem.deleteClicked()"\n    >\n      <md-icon class="material-icons small">delete</md-icon>\n    </md-button>\n    <md-button\n      class="md-button"\n      ng-if="FormItem.Attrs.onUp"\n      ng-click="FormItem.onUp({item: FormItem.item, index: FormItem.index()})"\n    >\n      <md-icon class="material-icons small">arrow_drop_up</md-icon>\n    </md-button>\n    <md-button\n      class="md-button"\n      ng-if="FormItem.Attrs.onDown"\n      ng-click="FormItem.onDown({item: FormItem.item, index: FormItem.index()})"\n    >\n      <md-icon class="material-icons small">arrow_drop_down</md-icon>\n    </md-button>\n  </div>\n\n  <md-input-container ng-if="FormItem.item.type != \'label\'" class="md-block">\n    <label>Field Title</label>\n    <input ng-model="FormItem.item.props.title" />\n  </md-input-container>\n\n  <md-input-container ng-if="FormItem.item.type != \'label\'" class="md-block">\n    <label>Help Text</label>\n    <input ng-model="FormItem.item.props.helpText" />\n  </md-input-container>\n\n  <md-input-container\n    ng-if="FormItem.item.type === \'agreement\'"\n    class="md-block"\n  >\n    <label>Option Text</label>\n    <input ng-model="FormItem.item.options[0].value" />\n  </md-input-container>\n\n  <div ng-switch="FormItem.item.type">\n    <upload-item ng-switch-when="upload" item="FormItem.item"></upload-item>\n    <agreement-item\n      ng-switch-when="agreement"\n      item="FormItem.item"\n    ></agreement-item>\n    <label-item ng-switch-when="label" item="FormItem.item"></label-item>\n    <input-item ng-switch-when="input" item="FormItem.item"></input-item>\n    <radio-button-item\n      ng-switch-when="multipleChoices"\n      item="FormItem.item"\n    ></radio-button-item>\n    <matrix-item ng-switch-when="matrix" item="FormItem.item"></matrix-item>\n    <checkboxes-item\n      ng-switch-when="checkboxes"\n      item="FormItem.item"\n    ></checkboxes-item>\n    <textarea-item\n      ng-switch-when="textarea"\n      item="FormItem.item"\n    ></textarea-item>\n    <select-item\n      ng-switch-when="chooseFromList"\n      item="FormItem.item"\n    ></select-item>\n    <p ng-switch-default>UNKNOWN TYPE</p>\n  </div>\n\n  <md-input-container\n    ng-if="FormItem.item.type != \'label\' && FormItem.item.type != \'upload\'"\n    class="md-block"\n  >\n    <md-checkbox ng-model="FormItem.item.config.required"\n      >Required field</md-checkbox\n    >\n  </md-input-container>\n</div>\n'},"./src/lib/directives/form-items-container/form-items-container.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div>\n  <form-item\n    ng-repeat="item in container.form.items track by $index"\n    type="{{item.type}}"\n    item="item"\n    index="$index"\n    on-delete="container.delete(item, index)"\n    on-up="container.up(item, index)"\n    on-down="container.down(item, index)"\n  >\n  </form-item>\n</div>\n'},"./src/lib/directives/form-view/form-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div class="md-inline-form">\n  <div\n    class="formItem"\n    ng-repeat="formItem in FormView.form.items track by $index"\n    ng-switch="formItem.type"\n    layout="column"\n  >\n    <ng-form name="formItemForm">\n      <div>\n        <div class="formItem-title">{{formItem.props.title}}</div>\n        <div class="formItem-help-text">{{formItem.props.helpText}}</div>\n\n        <upload-view\n          form-item="formItem"\n          is-preview="true"\n          form="formItemForm"\n          ng-switch-when="upload"\n        ></upload-view>\n        <agreement-view\n          form-item="formItem"\n          is-preview="true"\n          form="formItemForm"\n          ng-switch-when="agreement"\n        ></agreement-view>\n        <checkboxes-view\n          form-item="formItem"\n          is-preview="true"\n          form="formItemForm"\n          ng-switch-when="checkboxes"\n        ></checkboxes-view>\n        <radio-button-view\n          form-item="formItem"\n          is-preview="true"\n          form="formItemForm"\n          ng-switch-when="multipleChoices"\n        ></radio-button-view>\n        <input-view\n          form-item="formItem"\n          form="formItemForm"\n          ng-switch-when="input"\n        ></input-view>\n        <textarea-view\n          form-item="formItem"\n          form="formItemForm"\n          ng-switch-when="textarea"\n        ></textarea-view>\n        <matrix-view\n          form-item="formItem"\n          is-preview="true"\n          form="formItemForm"\n          ng-switch-when="matrix"\n        ></matrix-view>\n        <select-view\n          form-item="formItem"\n          is-preview="true"\n          form="formItemForm"\n          ng-switch-when="chooseFromList"\n        ></select-view>\n        <label-view\n          form-item="formItem"\n          is-preview="true"\n          form="formItemForm"\n          ng-switch-when="label"\n        ></label-view>\n      </div>\n    </ng-form>\n  </div>\n</div>\n'},"./src/lib/directives/input-item/input-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <label>Placeholder</label>\n  <input type="text" ng-model="Input.item.config.placeholder" />\n</md-input-container>\n<md-input-container class="md-block">\n  <label>Type</label>\n  <md-select ng-model="Input.item.config.type">\n    <md-option value="text">Text</md-option>\n    <md-option value="number">Number</md-option>\n    <md-option value="email">Email</md-option>\n  </md-select>\n</md-input-container>\n'},"./src/lib/directives/input-item/input-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <input\n    ng-model="InputView.formItem.value"\n    type="{{InputView.formItem.config.type}}"\n    placeholder="{{InputView.formItem.config.placeholder}}"\n    ng-required="InputView.formItem.config.required"\n  />\n  <div ng-messages="InputView.form.$error">\n    <div ng-message="required">This field is required</div>\n  </div>\n</md-input-container>\n'},"./src/lib/directives/label-item/label-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <label>Text</label>\n  <textarea ng-model="Label.item.value" md-maxlength="150" rows="5"></textarea>\n</md-input-container>\n'},"./src/lib/directives/label-item/label-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <md-content flex layout-padding layout="row" layout-align="center center">\n    <pre>\n      <span class="formItem-content">{{LabelView.formItem.value}}</span>\n    </pre>\n  </md-content>\n</md-input-container>\n'},"./src/lib/directives/matrix-item/matrix-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div\n  class="sortable-container columnContainer"\n  layout="column"\n  sv-root\n  sv-part="Matrix.item.config.columns"\n>\n  <div\n    class="option-item"\n    layout="row"\n    ng-repeat="column in Matrix.item.config.columns track by $index"\n    sv-element\n  >\n    <md-button\n      class="md-button handle"\n      md-no-ink\n      aria-label="reorder option item"\n      sv-handle\n    >\n      <md-icon class="material-icons">reorder</md-icon>\n    </md-button>\n\n    <md-input-container class="input-container">\n      <label>Column {{$index + 1}}</label>\n      <input ng-model="column.value" />\n    </md-input-container>\n\n    <md-button\n      class="md-button"\n      md-no-ink\n      aria-label="delete column item"\n      ng-click="Matrix.deleteColumn($index)"\n    >\n      <md-icon class="material-icons">delete</md-icon>\n      <md-tooltip md-autohide="true">Delete</md-tooltip>\n    </md-button>\n  </div>\n  <div layout="row" layout-align="start">\n    <md-button\n      class="md-primary add-option-button"\n      md-no-ink\n      aria-label="add option item"\n      ng-click="Matrix.addColumn()"\n      >Add Column</md-button\n    >\n  </div>\n</div>\n\n<div\n  class="sortable-container rowContainer"\n  layout="column"\n  sv-root\n  sv-part="Matrix.item.config.rows"\n>\n  <div\n    class="option-item"\n    layout="row"\n    ng-repeat="row in Matrix.item.config.rows track by $index"\n    sv-element\n  >\n    <md-button\n      class="md-button handle"\n      md-no-ink\n      aria-label="reorder row item"\n      sv-handle\n    >\n      <md-icon class="material-icons">reorder</md-icon>\n    </md-button>\n\n    <md-input-container class="input-container">\n      <label>Row {{$index + 1}}</label>\n      <input ng-model="row.value" />\n    </md-input-container>\n\n    <md-button\n      class="md-button"\n      md-no-ink\n      aria-label="delete row item"\n      ng-click="Matrix.deleteRow($index)"\n    >\n      <md-icon class="material-icons">delete</md-icon>\n      <md-tooltip md-autohide="true">Delete</md-tooltip>\n    </md-button>\n  </div>\n  <div layout="row" layout-align="start">\n    <md-button\n      class="md-primary add-option-button"\n      md-no-ink\n      aria-label="add row item"\n      ng-click="Matrix.addRow()"\n      >Add row</md-button\n    >\n  </div>\n</div>\n'},"./src/lib/directives/matrix-item/matrix-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="matrix-container md-block" layout="column">\n  <div class="matrix">\n    <div class="matrix-row" flex layout="row">\n      <span class="matrix-cell" flex="20"></span>\n      <span\n        class="matrix-cell matrix-cell-header"\n        flex\n        ng-repeat="column in MatrixView.formItem.config.columns track by $index"\n        >{{column.value}}</span\n      >\n    </div>\n    <div\n      class="matrix-row"\n      ng-repeat="row in MatrixView.formItem.config.rows track by $index"\n      layout="row"\n    >\n      <span class="matrix-cell" flex="20" layout="column" layout-align="center"\n        >{{row.value}}</span\n      >\n      <md-radio-group\n        ng-model="row.selected"\n        ng-change="MatrixView._updateValidity()"\n        flex\n        layout="row"\n      >\n        <span\n          class="matrix-cell radio-button-cell"\n          flex\n          ng-repeat="column in MatrixView.formItem.config.columns track by $index"\n        >\n          <md-radio-button\n            value="{{column.value}}"\n            aria-label="..."\n          ></md-radio-button>\n        </span>\n      </md-radio-group>\n    </div>\n  </div>\n\n  <div ng-messages="MatrixView.form.$error">\n    <div ng-message="required">This is required</div>\n  </div>\n</md-input-container>\n'},"./src/lib/directives/radio-button-item/radio-button-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div\n  class="sortable-container"\n  layout="column"\n  sv-root\n  sv-part="RadioButton.item.options"\n>\n  <md-switch\n    ng-model="RadioButton.item.config.direction"\n    ng-true-value="\'horizontal\'"\n    ng-false-value="\'vertical\'"\n  >\n    Layout direction ({{RadioButton.item.config.direction == \'horizontal\' ?\n    \'Horizontal\' : \'Vertical\'}})\n  </md-switch>\n\n  <div\n    class="option-item"\n    layout="row"\n    ng-repeat="option in RadioButton.item.options track by $index"\n    sv-element\n  >\n    <md-button\n      class="md-button handle"\n      md-no-ink\n      aria-label="reorder option item"\n      sv-handle\n    >\n      <md-icon class="material-icons">reorder</md-icon>\n    </md-button>\n\n    <md-input-container class="md-block">\n      <label>Option {{$index + 1}}</label>\n      <input ng-model="option.value" />\n    </md-input-container>\n\n    <md-button\n      class="md-button md-warn"\n      ng-click="RadioButton.deleteOption($index)"\n    >\n      <md-icon class="material-icons">delete</md-icon>\n    </md-button>\n  </div>\n\n  <md-button class="md-raised md-accent" ng-click="RadioButton.addOption()"\n    >Add Option</md-button\n  >\n</div>\n'},"./src/lib/directives/radio-button-item/radio-button-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <md-radio-group\n    name="formItemInput"\n    ng-required="RadioButtonView.formItem.config.required"\n    ng-model="RadioButtonView.formItem.value"\n    layout="{{RadioButtonView.formItem.config.direction == \'horizontal\' ? \'row\' : \'column\'}}"\n    required\n  >\n    <md-radio-button\n      ng-repeat="option in RadioButtonView.formItem.options track by $index"\n      value="{{option.value}}"\n      aria-label="..."\n    >\n      {{option.value}}\n    </md-radio-button>\n  </md-radio-group>\n\n  <div ng-messages="RadioButtonView.form.$error">\n    <div ng-message="required">This field is required</div>\n  </div>\n</md-input-container>\n'},"./src/lib/directives/select-item/select-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div\n  class="sortable-container"\n  layout="column"\n  sv-root\n  sv-part="Select.item.options"\n>\n  <div\n    class="option-item"\n    layout="row"\n    ng-repeat="option in Select.item.options track by $index"\n    sv-element\n  >\n    <md-button\n      class="md-button handle"\n      md-no-ink\n      aria-label="reorder option item"\n      sv-handle\n    >\n      <md-icon class="material-icons">reorder</md-icon>\n    </md-button>\n\n    <md-input-container class="md-block">\n      <label>Option {{$index + 1}}</label>\n      <input ng-model="option.value" />\n    </md-input-container>\n\n    <md-button class="md-button md-warn" ng-click="Select.deleteOption($index)">\n      <md-icon class="material-icons">delete</md-icon>\n    </md-button>\n  </div>\n\n  <md-button class="md-raised md-accent" ng-click="Select.addOption()"\n    >Add Option</md-button\n  >\n</div>\n'},"./src/lib/directives/select-item/select-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <md-select\n    name="formItemInput"\n    ng-required="SelectView.formItem.config.required"\n    ng-model="SelectView.formItem.value"\n  >\n    <md-option\n      ng-repeat="option in SelectView.formItem.options track by $index"\n      ng-value="option.value"\n      >{{ option.value }}</md-option\n    >\n  </md-select>\n  <div ng-messages="SelectView.form.$error">\n    <div ng-message="required">This field is required</div>\n  </div>\n</md-input-container>\n'},"./src/lib/directives/textarea-item/textarea-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <label>Placeholder</label>\n  <input type="text" ng-model="Textarea.item.config.placeholder" />\n</md-input-container>\n'},"./src/lib/directives/textarea-item/textarea-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<md-input-container class="md-block">\n  <textarea\n    ng-model="TextareaView.formItem.value"\n    placeholder="{{TextareaView.formItem.config.placeholder}}"\n    ng-required="TextareaView.formItem.config.required"\n  ></textarea>\n  <div ng-messages="TextareaView.form.$error">\n    <div ng-message="required">This field is required</div>\n  </div>\n</md-input-container>\n'},"./src/lib/directives/upload-item/upload-item.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div\n  class="sortable-container"\n  layout="column"\n  sv-root\n  sv-part="Upload.item.options"\n>\n  <md-input-container class="md-block">\n    <label>Upload Button label</label>\n    <input ng-model="Upload.item.config.uploadFileButtonLabel" />\n  </md-input-container>\n\n  <md-switch\n    ng-model="Upload.item.config.multipleUpload"\n    ng-true-value="true"\n    ng-false-value="false"\n  >\n    Multiple\n  </md-switch>\n\n  <md-input-container class="md-block">\n    <span>Max File size: {{Upload.item.config.size}} Mb</span>\n    <input\n      type="number"\n      id="size"\n      name="size"\n      min="0.1"\n      max="999"\n      step="0.1"\n      aria-label="size"\n      ng-model="Upload.item.config.size"\n    />\n  </md-input-container>\n\n  <md-input-container class="md-block">\n    <label>Max file size error message</label>\n    <textarea\n      ng-model="Upload.item.config.sizeErrMessage"\n      md-maxlength="150"\n      rows="2"\n    ></textarea>\n  </md-input-container>\n\n  <md-switch\n    ng-model="Upload.item.config.showAccept"\n    ng-true-value="true"\n    ng-false-value="false"\n  >\n    Configure allowed file types\n  </md-switch>\n\n  <md-input-container class="md-block" ng-if="Upload.item.config.showAccept">\n    <label>Allowed Types</label>\n    <textarea\n      ng-model="Upload.item.config.accept"\n      md-maxlength="150"\n      rows="2"\n    ></textarea>\n  </md-input-container>\n</div>\n'},"./src/lib/directives/upload-item/upload-view.tpl.html":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a='<div layout="row" class="option-item upload-item">\n  <md-input-container class="md-block" style="margin: 0">\n    <input type="file" class="ng-hide" aria-label="file" />\n    <md-input-container flex class="md-block">\n      <input\n        type="text"\n        ng-model="fileName"\n        class="ng-hide"\n        disabled\n        aria-label="fileName"\n      />\n    </md-input-container>\n  </md-input-container>\n\n  <md-button class="md-raised md-accent upload-button"\n    ><md-icon class="material-icons">attach_file</md-icon\n    ><span\n      >{{UploadView.formItem.config.uploadFileButtonLabel}}</span\n    ></md-button\n  >\n</div>\n\n<div>\n  <label></label>\n  <div\n    style="display: grid; grid-template-columns: 8em auto; align-items: center"\n    layout="row"\n    ng-repeat="option in UploadView.formItem.options track by $index"\n  >\n    <md-button ng-click="UploadView.removeItem($index)" class="md-icon-button">\n      <md-icon class="material-icons">close</md-icon>\n    </md-button>\n    <span>{{option.name}}</span>\n  </div>\n</div>\n'}},t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n("./src/lib/index.module.js")})()},"./node_modules/@xenialab/angular-toasty/dist/angular-toasty.js":()=>{"use strict";angular.module("angular-toasty",[]),angular.module("angular-toasty").directive("toasty",["toasty","$timeout","$sce",function(e,t,n){return{replace:!0,restrict:"EA",scope:!0,link:function(e,a,o){var r=0,i=["default","material","bootstrap"];function s(t){t?angular.forEach(e.toasty,(function(n,a){n.id==t&&(e.$broadcast("toasty-cleared",e.toasty[a]),n.onRemove&&angular.isFunction(n.onRemove)&&n.onRemove.call(e.toasty[a]),e.toasty.splice(a,1),e.$$phase||e.$digest())})):(angular.forEach(e.toasty,(function(t,n){t.onRemove&&angular.isFunction(t.onRemove)&&t.onRemove.call(e.toasty[n])})),e.toasty=[],e.$broadcast("toasty-cleared"))}function l(e,t,n){return 0!=t[n]&&(!!t[n]||e[n])}e.position="",e.toasty=[],e.$on("toasty-new",(function(a,o){var c=o.config,u=o.options;e.position||(e.position="toasty-position-"+c.position),function(a,o){r++;var c,u=l(a,o,"sound"),d=l(a,o,"showClose"),f=l(a,o,"clickToClose"),m=l(a,o,"html"),p=l(a,o,"shake");c=o.theme&&i.indexOf(o.theme)>-1?o.theme:a.theme;e.toasty.length>=a.limit&&e.toasty.shift();u&&document.getElementById("toasty-sound").play();var g={id:r,title:m?n.trustAsHtml(o.title):o.title,msg:m?n.trustAsHtml(o.msg):o.msg,showClose:d,clickToClose:f,sound:u,shake:p?"toasty-shake":"",html:m,type:"toasty-type-"+o.type,theme:"toasty-theme-"+c,onAdd:o.onAdd&&angular.isFunction(o.onAdd)?o.onAdd:null,onRemove:o.onRemove&&angular.isFunction(o.onRemove)?o.onRemove:null,onClick:o.onClick&&angular.isFunction(o.onClick)?o.onClick:null,onAccept:o.onAccept&&angular.isFunction(o.onAccept)?o.onAccept:null,onReject:o.onReject&&angular.isFunction(o.onReject)?o.onReject:null};e.toasty.push(g),o.onAdd&&angular.isFunction(o.onAdd)&&o.onAdd.call(g);e.$broadcast("toasty-added",g),0!=o.timeout&&(o.timeout||a.timeout)&&function(e,n){e.timeout=t((function(){s(e.id)}),n)}(e.toasty[e.toasty.length-1],o.timeout||a.timeout)}(c,u)})),e.$on("toasty-clear",(function(e,t){s(t.id)})),e.close=function(e){s(e)},e.clickToasty=function(t){e.$broadcast("toasty-clicked",t),t.onClick&&angular.isFunction(t.onClick)&&t.onClick.call(t),t.clickToClose&&s(t.id)}},template:'<div id="toasty" ng-class="[position]"><audio id="toasty-sound" src="data:audio/wav;base64,UklGRiQ9AABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0YQA9AAA4AFAASABAADgAQAAwACgAGAAoADAAIAAoADgAKAAgACAAKAA4ADgAMABIADgAQABIAFAAWABQAHAASABYAFAAUAA4AEAAMAAwADgAQABQAFAASABYAFgAaABwAHgAeABoAGgAaABoAGgAUABQAFAAWABQAEgASAA4AEAAOAAgADAAMABIAEAAOABAADAAQAAwADgAKAAwACAAIAAwACAAIAAwACgAGAAQABAAAAD4//D/2P/o/+j/8P/o/+D/0P/Y/9D/2P/I/8D/yP/g/8j/0P/Y/+j/2P/w/9D/2P/A/8D/yP/A/9D/yP/A/9D/0P/I/8j/yP+4/9j/6P/g/+D/2P/Y/+D/4P/Y/9j/4P/o/+j/0P/g/+D/4P/o/+D/4P/g/9D/4P/g/+D/4P/w/wAAIAAwABgAMABAADAAOAAwADAAKAAwADgAIAAYACAAAAAAAAgAIAAIABAACAAgACAAIAAgAAgAEAAIAAAAAAAAAOj/8P8AAAAA+P/4//j/+P/o/+j/6P/g/+j/+P8AAPD/6P/o//D/2P/o/9D/4P/w/+j/4P8IABAAAAAQABgAAAAAAAgAAAAAAPj/8P/w//D/6P/4//D/+P8AAPj/AAAAAAgACAD4//j/CAAAAPj/CAAAAAAAAAAQABgAIAA4ADgAMABIAEgAOAAwAFAAOABAAEAASABIAEAAOAAgACgAGAAwACAAKAAwADgAMAA4ADgAQABAADAAKAAYAPj/6P/4/+j/4P/I/8D/uP+w/8D/uP+o/7j/qP/A/9j/qP/I/9j/wP/A/8D/4P/g/9j/2P+4/8D/wP+w/9D/wP/Q/9j/0P/Q/8D/2P/I/9j/6P/o/+j/+P/o//j/AAAAAAgAEAAIAAAAAAAIAAgAEAAYABAACAAgACAAAAAYADgAMABIAEAAKAA4ADAASABQAFAAUABYAEAAKAAQAAgAEAAQACgAGAAYABgAGAAgACAAMAAgADgAMAAwADgAMABIAEAASAAoAEgAQABYADAAUABQADgAMAAoACgAOABAAEAAMAAoACgAIAAgACAAOAAwACgAKAAoADAAKAAwACAAIAAYADAAKAAgACgAIAAQABgAGAAIAAgAAAAIAAAAAAD4//j/EAAYAAAAAAAQAPD/GAAgABAAEAAYACAAOABIAEAAMABAACgAKAAoAAgAEAAgABgACAAQAAgAEAAgAAgAAAAAABgACAAYABAACAAQAAAAAAAQAAgA+P/w/+j/4P/w/+D/6P/o//D/2P/g/9D/6P/o/8D/wP+w/7j/0P/I/9D/wP/g/9j/6P/g/+D/2P/Y/9D/2P/g/9j/0P+w/6j/4P/Y/9j/2P/Y/9D/0P/A/8D/8P+w/8D/uP/A/8j/0P/Q/9D/0P/w//D/2P/g/+D/6P8AAPD/6P/g/+j/6P/Q/+D/4P/4/+j/+P/o/+D/8P/4/wAAAAD4//j/6P/Y/9D/yP/g/+j/2P/Y/9j/yP/Q/9D/yP/Q/9D/yP+4/6D/qP+g/7j/sP+4/8D/yP/Y/8D/wP/Q//D/0P/g/8j/wP/A/7j/qP+w/7D/sP+w/6j/sP+w/7j/uP/A/8D/2P/A/+D/6P/o/+j/4P/Y/+j/2P/Q/9j/4P/o//j/EAAAAAgA+P/4//D/AAAAAAAAAAD4//j/8P/4/wAAIAAQACAAEAAIABgACAAQADAAKAAgACAAMABAAEgAMAAwAFgAWABgAFgAQABIAFgAYABYAGgAUABwAEgAQABAADgAOAA4ADgAMAAgACgAKAAoACgAMAAoACAAEAAQABAACAAIAAAAAAD4/wAAEAAIAPj/6P/Y//D/AAAAAOj/4P/w//j/8P8IAPj/EAAAAPj/6P/4/+D/4P/Y/9j/2P/g//D/8P/o/+D/6P8gABAACAD4/yAAIABAADgAMAA4ADgAIAAQACAAIAAgADAAKAAwAEgAOAA4AEAAQABIAEAAMABAAEAAMABQADAAYABAAEgAQABQADAAUABYABgAQABAAEAAKABIADAAIAAYABgAAAAgACAAGAAgAAgAGAAAAAgACAAQABAACAAQAPD/IAAoAPD/CAAgAPj/4P/w//D/+P/g/9j/2P/Y/9j/6P/I/6j/4P/Y/+D/0P/A/8D/yP/A/8D/2P8AAPD/CAAAAAAAGAAQAOj/GAAoAPD/GAAYAPD/IAAgAOj/GAAgAAAACABQACgAEABQADAAKADw//j/+P8IABAAGAAYADgAEAD4/8D/2P8AAFAAKAAoAPj/8P8QAOj/6P/Q/7j/iP+I/7j/8P8oAPj/aP9w/5j/+P8YAAAACAB4/5j/CAAQAOj/GADg/1D/uP8oAHAAKADw/4D/sAAwABAA4P9I/2j/AACAAXAAiABo/zAAMAAA/+D9EP7w/2AAKAGAAOAAiP8YAFD/YP5I/7j+mP2g/jAAIAPQAYAAMP/Y/8D/SP6g/ID9yP/QAYgCiAGQAMgAKAD4/0j+CP9g/ij9AP+QAAACQAAwADAAmP8gATD/cP6Y/rD/gADA/7j8iP04/WD/QAEYATD+yP9g/Lj8WP/I/tAAIP6I/wj+uP8IAagA8P9g/gj+cAOw/dD+QADYAYgDSP8QAhj8uP5wAXj+wAMIAfgBsP+w/7gBmAMwA4AAmAC4AAj/SP0IAegEoAWw/lD7iPrY/IACuP+QA4gEqAgAACj4CAFQ+9gB8P9wAjgDOP5QBbgCSAfgAfD/IP+Y/qgFmACIAsAEIP0wBTAAeAGo/OgFWP2oDrADoAZAAqgK+P5ACsgBCALwD0AL0AlwBhgCiP9o/dj7+AJg/6AEWAXICej7KADYAjgCEP94B4j4SAEY/yAAWP4Y/8D8QACIAYgDUP4w/fj98AEYANgDGAIoAJD90AcIBXgC4AeYB+D9OP0Q+IAAWAKQCPgFsAZI/AADmPxQBKD/kABIAcAFqP+IBnAH4AQoApgSYP4QDmjvwAGgBdgCiAJw+wgDAAE4B6gT8P6wB9D78AdQCbj/aACo/oAAWPtYAvj/IPug+MgDQAJQA7D7EPdI/yD2uPSg+dDyyPWw7pjysOvY9vjugO8Y6ZjfeOZw62jkgOXA4ijgsOSw4dDdKOBY1QjTMNUg1GDciNfY0ADbUNhA29DUqNQY3HDe4Ncg1QjVoND41aDUcNno2QDWYNdw2tDjUOEA5QDpoO3Y70D46PFY8vj3iP4QBRgBAAiADVAP6BDIFogfqCHQKTgzcDGgNfg48EPQRzBGCEvQUMhQ4FLgV2BZ8FpAUnBVUFhgUehRCFDYUShKeEMYQhg9uDCAMfgrACUwG8AUcBXYDBAGuALA/oD0mOt451jlyOAg3vDaQNhw1BDRgNBgzVDOIM+Y04jR0NJA0pDY0N0g3rjlUOow7tDt4PdA/agACASYCGAOSBHgEhAX8ByQH1AneCd4KbApACqALhAv+C4gMLgvuC/4MPgqyCmIJRgfAB2QGTgTyA6QCjgHcAK4+oj4MPHI7BDrYOgg4fjcSNrg1zDUINHAz2jNuMqAybjJaMewydjJYM7wz4DSgNRQ2XjciOP46ODrmPCg9UD5SP1YAcAE4AqYDDgSUBPAGKgb4BqYHiAg6CFoIFAj8CNgIvggoCBoHqAawBUwEygQMAtoB2gCYP6Y+Pj3APFA7UDqeOfw4qDeQN7I2nDYWNUQ1qjRCNJg0KjRANKQ1NDWGNfo2qDckN/44NjnyOuY8LD1OPvI/lgEAAegCqgOwBGoGFgZKB6IH3Ak8CHYJgAnqCh4KZgpACqQJ8gnICdQJUghuCDQHFAYMBPgD+gMaAfoBQgB2PwQ+LD1OPLo7kDsOOwo6ojn4OYw5vDj4OO45CDk2OSQ5MDnuOlI7SjukO9Q8yD2cPuY/LgBoAQAB0ALUA4wEVgTMBUQF9AYUBloG2ga+BlwGzgamBlIF3gWSBQoE7ARQBHADfAJaAdQA+AAaP14+iD2WPKQ8fjsCOuI6EDmqOM44ujhyOAQ30DgIOIg4tDiyOPA5ODlgOgw60DsIO+Y8hD22PmY+xD/cAB4AhgHoAgoDKAOOBIgFNAVOBcAGPAWgBewF/AWCBeQF7gUuBMAEuAPGA2ACfgJUAd4BWADKALg/pD6APo49sjz+PAg8PjtMO7Q7mjtEOpg6xjs2Ozg7MDtMO9A8HDySPQ49oD3iPpI/KD+QAEwBMgFaAjIC7gNAA4gDrAQCBGQEtATABVAFHgUgBR4E5gR4BB4DwgNAAzwCQAHUAQQA/gAeP5w/ID6IPcY9Yj0cPIY8RDu6O3g6jjrMOqY6SDpMOo462DsqO5g7uDvmO+A8nj0OPbo+GD7wP4QAbgDGAUYBkAJQAzIDbAQaBE4FMgTWBa4FogWABZAFiAXGBbIFfgUgBSoE7gRyA4IDXgKwAjYBUgEsAJo/xj9oPoA+Zj28PXg8xDycPEo8NDuIO1g7CjsqOo46/jrGO0w7WjvSPII80D0CPWo9hD5WPtA/Xj+uABYA+gFcAcQCmgLWAxYDSAQQBHYETgS8BKIEzATGBPwEWARmBGgEEgQUA+4DlANKAuYCegHcAWoA9AB4AA4/xj+aP3w+xD6IPlI95j26PV49qD1wPWA9RD1mPRw9aD10PUo9yD5kPp4+qD7SP1I/pj+eAA4APAAUAK4A3gECAWwBzAGuAfgBuAGUAeQBugGgAYgBqgEkAMIA2ACoAAYAIj/UP/Y/Wj98Psg+wj6CPhY9wD28PUo9cD1iPWY9VD14PT49MD1uPXQ9QD26Pao+Lj4OPqg+6D8oP2I/nAAUAKAA2AF0AbwB3AIMAgwCbAJcAsQCzAM8AzgDDgNSA04DVAMeAswC6AJsAjwBxgHAAY4BQgE8AHQAEgAyP8I/hj9OP3w+3j6EPqw+LD46Peo9tj32PfI+Gj4yPiA+dj5ePqo+kj8cP3I/Sj/WAAwAVgCYAKQBKgEwAUwBuAHuAhQCUgKqAkwCpAJWAmoCOAIaAiwCOAHEAgAB/AFUATQAtAB0P8A/9D9yP1I/MD6EPqI+Ej4KPco9nD20PUg9Sj0kPMA9GDzGPMQ8/DyiPPQ9MD1IPeg95j44PiA+RD6cPqo++D8aP2Y/qD/SABoAegBsAJ4A9ADUAT4BAgFcAVgBTAFuASQBHAE2AOgAzADaAMIAxgCoAEIAFj/wP4g/ij9uPxo/BD8ePvA+kD6uPm4+dD5aPlw+Yj5QPmY+WD50Pkw+jj6APtg+0j8QP0g/gD/OP/Y/xAAkP9oAFAA4AFIAvACCARwBIAEiASIBBgFgAXgBDgG2AUoBhgFSAVoBVgFKAVwBDAEgARYBAAE4ATQA3AEsANIA+ACqALwAhgDIAOwA6AD8AKAAzADMAOoAuACGAM4A3gDMANQA5gDCAQABLgEgAVoBQgGeAWgBfAEgARgBPADuANgA3gDgAP4A3ADUAMYA2gC8AFwAdgAWAAAAPj/oP8g/0j+yP2g/Xj9KP1Q/Bj9mPxA/Cj8WPzQ+6D7kPuo+1D7mPvg+1j8aP2A/Wj9UPwg/BD8gPwY/aj9SP6o/sj+gP6g/qj+gP5A/zj/mP+w/xD/QP9o/nj+IP7A/dD9yP3w/Rj+2P34/eD9SP3I/JD8GPz4+0D8EPwo/Cj8+PuQ+9D7cPsQ+8j7+Ptg/Aj8YPzI/PD82PyY/Aj9UP1g/lj+eP8IAEgAOADo/wAAUAAAAXABOAKAApgC6AL4AgADkAMwA/gDAATgA6ADiAOQA6ADSAMgA8gCyAGQAbAB2AGYASABiADwAAgAYP+o/iD+iP2Q/ZD9gP14/eD8iPyo+zj7APtQ+wD7EPsQ+zD7CPv4+nD72PvY+3D8qP2g/eD9cP6w/rj+6P4IAOj/OACYAHgBCALQAngDmAMIBAAE+APYA2AE4ATYBcAF4AWoBTAFUAXYBJAEqAQQBVgFYAXgBHAEiAO4AyADAAPwAhAD4AJYAoACGAKoARgBAAFYADAAmACAAKgAEADQ/yAA8P/A/wAAWACwAEgAuACoACAA4P9gAHAA0ACAAJAAsAAAATABAAF4ARABKAHgAJgAsABwAAABmABQAEAA2P+o/2j/eP+A/1j/WP8Y/4D/KP/Q/tj+uP7Q/pj+oP7A/rD+0P7Y/rD+gP5o/kj+OP64/mj+kP4I/yD/EP9I/4D/sP/Y/ygASAA4AHAAkADgAPAAmACIAKAAwAA4ATgB0AG4AZgBYAE4AcgAsACwAHgAsABYAIgAWABoAPD/sP+o/+j+0P7Y/gD/cP74/Qj+IP6A/Yj9QP0o/VD9cP1Y/ZD9CP3w/CD9+Pz4/PD84Px4/Vj9iP24/Yj9kP3Q/fD9aP7Y/lj/uP/Y/xgAeAB4ALgAMAFgAcgBYAJoApACaAIoAhgCiAJwAkACQAIwAlACQAIYAngCCALQAaAB8AC4AGgAAAD4/+j/UP/4/rj+4P2Q/cj9iP1A/Tj9QP1Y/cj8+Pzo/Mj8EP2I/XD9oP3w/Rj+KP5A/jj+aP7w/lD/yP+AAAgBmAHgAYACwALwAmgDoAMgBFAEgASYBDgEcAQIBfgEAAU4BUAFQAV4BUgFCAW4BGAECARwA+gCoAJgAigCkAEQAXAA6P9o//j+2P5w/hj+cP3A/Gj8KPwI/Nj7mPtA++D6kPp4+tD6uPq4+sD6APvQ+sD6yPpo+wj8CPwQ/Hj8UPzg/Ej9YP1o/dj9SP54/oj+2P5I/zj/eP+Y/5D/sP8QAFgAkACAAHgAWAAYALj/QP84/7j+2P7w/hD/8P6I/nj+gP54/kD+OP4w/kD+aP54/nD+0P6w/hD/GP8o/1D/gP8IAEgA+ABoAbABoAJYA4gD8ANwBNAEMAWIBegF8AX4BRAGeAagBrgGyAaoBoAGQAZABugFqAVgBRgFqARwBMADaAPwApgCwAHYACAAYP9Y/+D+mP4w/sD9KP34/ID8IPwQ/Pj7EPwA/OD7uPuw+4D7APwY/Ej8sPwY/RD9mP0Q/oD+2P7w/rj/0P+IABgBqAHYAUACqALYAvgCCAOIA8ADOATQA9gD+AMABJgDsANIAyADmAJIAgAC0AGgAVABEAFAAMj/OP/A/nD+6P2g/UD98PzA/HD8GPy4+5j7kPt4+zD7OPtI+2j7oPuY++D78Pvw+1j8uPzo/FD9oP0g/mj+uP4w/4j/yP9wABABUAGoAZgB8AEAAgAC6AEwAggCSAJIAiAC0AFYAfgA2ADQAIAAeAD4/6D/WP9A/4j+aP64/aD9cP0I/dj8yPyI/GD8iPww/Cj8EPxI/KD8uPz4/Kj9yP1A/sj+gP/Y/wgAiADQAIABEAKwAmgDIATIBAgFYAXIBSgGsAYoB7gH6AcYCCgIsAeIB1gHIAfIBqgGGAbgBWgF+ASIBNgDMAOIAugBmAGwAOj/KP9I/rD96PxA/JD72PqI+jD6wPmQ+Yj5QPnw+GD4gPiA+MD4MPlo+ej5+PlA+pj68Pqg+zD84PyY/Uj+2P6I/9j/SAD4AJgBAAKIAsACMAOIA9ADOAQYBCAEIAT4AxgEyAOAA3gDOAPAAnAC6AFoAeAAoABAAND/UP/I/ij+wP1o/fj8oPwY/Mj7YPuY+8D7sPug+6D7iPuo+9D76Ps4/LD8SP2o/Sj+cP44/3j/8P+AABABmAEQAsACKAO4A/ADWASIBOgESAVwBdgF6AXIBZgFkAVwBTgFAAUABaAEeAQIBJgDMAPQAmAC0AEwAeAAQAC4/xj/oP74/XD9yPxg/Mj7IPvw+qj6aPoY+uj54PnI+bD5mPl4+Xj5ePn4+Xj6IPsg+6j78PsY/KD8UP0w/rD+iP9AANAAWAEIAsACgAMgBHAE4AQYBdAFQAaoBvgG4AYoBygHSAc4B1AHYAdQB2AHEAfIBiAG2AWQBSAFsAQABHAD2AI4AtABEAGQADAAkP8Q/3D+GP6w/Uj9KP3Y/JD8EPzY+8j7ePu4+6D7uPvo+7D7qPvY++j7OPyY/BD9gP3g/Sj+WP6A/tj+EP+o/+j/OACAAIgA+ABoAcABsAHIAeABIAJQAmACcAJIAlACMAIoAtABeAEwAQgBKAHYAKgAWADY/2D/OP8Y/7D+oP5w/jj+2P3I/aj9gP2I/Vj9EP3Q/PD8+Pw4/XD9eP1Q/Uj9kP2I/fj9SP6Q/rD+uP4A/xj/CP9o/1j/cP9g/4j/eP9w/5j/gP+Y/5j/sP/Q/yAAGAAwAIAAQABQADAAMABgAFgAiACIAFgAYABwAHgAIADQ/9j/IAAgAPj/MAA4AAgA+P/I/6j/yP/I/7j/qP9o/0D/SP8Y/xj/AP/g/qj+cP54/oD+gP64/oj+YP5Q/uD90P0o/nD+qP6Y/uD+GP8g/yj/UP94/+j/EABQALgAAAEQAXgB6AHIAQACUAJwAqgC8AIwA1gDIAMQAygDSANgA5ADoANwA4gDSANQAygDyAKYAlAC6AG4AUAB+AC4AHAA4P+o/xj/yP6I/lj+MP4A/rD9SP3o/KD8iPxQ/DD8KPw4/ED8aPyQ/ID8wPwI/UD9cP24/VD+6P6A/+D/KABYAMgAWAHYATgCsAIQA5AD0AMoBHgE+AQQBWAFiAWwBcgF8AUABhAGoAVoBSgF2ASoBIAEAASoAygDoAIQAlgBsAAoAIj/AP94/hj+cP24/Dj8sPs4+7D6YPr4+fD52Pnw+cj5sPmY+cD56Pko+rD6APt4++j7gPzQ/HD98P2g/ij/2P9QAMAAkAFAAnAC6AKIA+ADaATIBCAFiAWgBfgF4AXwBegFuAWABXAFSAUgBeAEgAQQBHgDCAOQAvgBaAEAAYgAIACY/0j/sP5I/gj+cP34/Lj8aPwI/DD8KPwo/BD8KPwo/Fj8aPyg/Cj9qP1A/pj+8P4I/5D/EACYABABkAH4AWgC+AIoA5AD0AP4AyAEQARoBIgEeASYBFgE+AN4AxAD2AKQApgCCAJQAdgAUAC4/wD/eP7I/SD9aPwA/Ij7GPvY+mj6wPlQ+RD58PjA+LD4wPiQ+Lj46Pj4+Dj5cPng+Wj62PpA++j7aPwA/Yj90P1I/sj+UP/w/6AAMAGoATACwAIYAxgDMAN4A7gDAAQIBPgDwAOwA4ADIAPYArgCQALgAZgBcAEwAbAASACg/xD/uP5A/kD++P0I/uD9qP1w/VD9+PwY/UD9QP2Q/aj94P3w/RD+aP7Y/ij/kP/A/xAAeADQABABcAHAAdAB+AE4AmgCkAKwAtgC+AIIAwADsAKIAnACUAIgAugBiAEwAdgAeAAoAOj/aP/4/qj+eP4o/gD+yP1o/UD9CP3Q/MD8yPwI/XD9WP1Y/Tj9cP2Q/cj9GP5w/vD+QP+I//D/KACAANgAQAG4ASACoALoAkADmAPIA+ADEARYBJAE2AToBBgF+ATwBOAEqASYBJgEYAQYBOADsANYAxgD6AIoAuABmAFgASgB0ACQAFgA+P/Q/4j/QP8Y/wD/2P7g/sD+wP7o/rD+0P7Q/rj+4P4A/zj/UP9o/5D/uP/g//D/AAAQACgASABYAIgAkAB4AJAAoABgACgAGAAIAAAA6P/Y/7D/kP9w/1D/+P6o/lj+OP5I/gD+8P2w/Xj9QP0I/QD9GP0g/UD9eP2Q/Zj9wP3Q/QD+SP6Q/uj+IP+Y/8j/CABIAIgA2AAYAXABoAEQAkACmALYAhgDWAOAA5gDoAOwA7ADyAOwA4ADYAMwA8gCiAJQAhAC+AGYAUgB6AC4AGgA8P+w/2j/CP+4/pD+UP44/vj9gP1Q/Sj9AP3o/Mj88Pzw/AD9CP0g/WD9iP2Y/dj9EP5A/qj+AP8o/5D/8P8gAHgAoADIABgBUAHAAdgBCAIQAjACMAIgAggCEAIIAvAByAGoAWABGAHIAIgAMAD4/8D/eP8o/+j+aP4w/vD9wP1w/Tj98PzQ/MD8sPy4/ID8aPxg/Fj8YPyY/Lj8CP1Y/Yj9qP2w/eD9AP6A/tD+SP9w/9j/EABoAMAAAAEwAVABmAGgAdgB+AEYAgACKAI4AhAC6AHgAegBwAHIAcABmAFAASgB2AC4AJgAcABgAGgASAAIAOj/yP9o/0D/cP9A/zj/OP8Q//j+0P7A/rj+kP5w/nj+gP5g/nj+mP6I/qD+gP6Y/nD+eP6A/mD+cP6I/mj+YP6Q/oD+kP6o/qD+0P6o/tD+2P7g/vj+CP8g/xj/QP9o/8D/4P/w/wAAGABQAHgAsAC4ABABWAGgAdAB+AEIAigCUAJgApgCgAKgAtgC6ALoAgADCAP4AtgCoAJwAkACIALwAeABuAGAATgBKAHIAKAAeAAYAAgAsP9g/xD/oP5w/jD+6P3A/aj9iP1Y/Uj9MP0o/QD9EP1A/Xj9iP2g/bD96P1A/mD+gP6o/tj+CP9Q/6D/GAAwAIAAsADYAPAAMAFwAbgBAAIgAjgCQAIoAkgCWAJoAoACWAJIAmACYAJIAkgCGALwAagBaAFQAVgBEAEAAfgAyACwAIAAWABIAEgAMAAIAMj/uP+Q/5D/oP+o/8j/2P/Y/8D/0P/Q/9D/wP/Q/+D/+P8AAPj/CAAAABAAEAAoAEAAUABYABgACAAIAAgAEAA4ACgAWABoAFgAQAAwAEgAOABIADgAIAD4//j/AAD4/wAAMAAwACAACAAIAAAAAAAYABgACAAIACAAIAA4ADgAWABwAIAAgACIAHgAmACgALAAsACgALgAoACYAKAAmACgALAAmACgAJAAeABwAGgAgABoAEgAMAAgABAA4P/I/6j/kP9Y/0j/GP8Q/wD/0P7Q/pD+gP5o/lD+UP5Q/lj+eP5A/lj+SP44/jj+QP5g/lj+aP6Y/rj+wP74/iD/SP9g/2D/gP+I/7j/wP/Y/+j/CAAIAPD/8P/w/wgA+P/g/9j/2P/A/8D/eP+A/2D/QP9I/0D/CP/o/sj+qP6I/mj+YP44/jj+QP4I/vj9KP44/kj+UP54/oj+sP7Q/vD+MP9Q/4j/wP+g/zAAIACIAKgAAAEgAWABeAFwAbgB0AHgAfABCAIgAjgCQAJAAiACKAIIAugByAGoAbABuAGgAVgBIAEIAcgAkABgAEgAUABIACAA6P/Q/8j/mP94/3D/aP9g/0D/QP9I/yD/OP84/0j/IP9I/0j/aP94/3j/gP+Y/6D/sP+4/9j/6P/g/xAAGAA4ABAAAAAIAAAA+P8QACAAQAAwACgAOAAYADAAKAAIAPj/+P/o/9j/qP/Y/9j/sP+4/5D/kP+w/7D/yP+o/7j/qP+g/8D/4P/Q/8D/yP/w//j/CAAoADAAaAB4AIAAkACIALgAsACoAMAAsACoALAA8ADQAOAA2ADAAKgAmACYAKAAeAB4AGgASABQAGAAaABoAFAAWABgAHAAaABYAFgAeABwAHAAcACQAIAAeACQAJAAcACAAJgAiACwAMgAwADQALgAsADIAMgAyAC4ALgAmACIAIAAcABYAFAAOAAYAAgA8P/o/7j/uP+Q/4D/gP9I/yj/MP8w/wD/+P7Q/qj+kP54/pj+oP6o/qj+eP54/qj+oP64/tj+AP8I/xj/SP84/1j/gP+w/9D/6P8AABAAQABwAIgAsACwAPAAIAFAAVABSAFoAXgBcAGYAagBsAGoAYgBeAGgAYgBcAF4AVgBQAEIAfgAuACAAEAAQAAQAAAAuP+A/0j/OP8I/+D+qP6Y/nD+eP5g/lj+aP5Q/mD+YP5w/nj+mP6w/rj+4P4A/yj/OP9w/5j/mP+o/9j/AAAYAEgAiAB4AKAAuADAALgAAAEgAQABOAEIARAB+ADwAPAA6ADQAMAAqACIAEgAMAAIAPj/6P+w/3j/QP8Y/wj/6P7Y/pj+eP5Y/iD+AP4Y/iD+IP4g/jD+OP5A/kD+MP5A/oj+uP7Y/vD+IP9Q/4D/yP/o/xgAUAB4AKAA2AD4APgAKAFYAZABoAGwAbgBwAHYAdgB4AHwAegB0AGgAYgBeAFQATABGAH4AMgAuABwAGAAGAAAANj/sP+Y/3D/UP8Y//j++P7o/uD+yP7Q/tj+wP7A/sD+wP7w/gj/OP9A/0j/cP+I/7j/+P8QADAASABwAIgAuADYAOgA6ADwAOgA4AAAAfgAIAEwASgBMAE4AQgBEAHwAPAA4ADIAKAAqAB4AGgAGAAIAOj/0P+g/5D/cP9I/0j/QP8g//D+AP8A/+D+8P7Q/uj+8P74/hj/GP8Y/yj/GP8Y/1D/eP+4/7j/0P/A/9D/6P8AACAAKAAwADAAUABYADgAaAB4AFgAWABIAFgAQABQAGgAGAAAAAgAEAD4//j/AADo/9D/wP+o/5D/kP+Q/6D/mP+Q/4j/oP+Q/5D/kP+I/5D/qP+Y/7j/0P/o/wAA8P/o//D/6P/w/wAAEAAIACAACAAoAEgAQABYAFAAUABoAEgASABAACgAGAAoABgAKAA4ACgAIAAIAAgAAADw/+j/+P/w/+j/AAAAAPj/AAAAABgAIAAQACAAQAAoAGgAgACIALAAuADAAOAAAAEwAUgBcAFwAXgBiAGYAZABuAGwAbgBuAGoAaABkAGQAXABYAEoAQAB4ACwAJAAaABQABgA4P+w/3D/KP8Y/9D+oP5w/lD+OP4Q/uD9wP2w/aD9qP2I/Zj9oP2g/cD96P34/TD+UP54/qj++P4o/5D/uP8IAFgAkACwAAABUAGAAcgBEAI4AjgCUAJIAlgCcAJgAlgCOAJAAjACIALgAbABeAFQARAB2ACoAFgAAADQ/6j/WP8Y/7j+iP5Y/gD+wP2g/XD9UP0w/Qj96PzQ/Oj8+Pzw/Pj8CP1A/XD9mP3Q/Qj+QP6A/tD+IP9o/5j/2P8oAHAAoADoADgBSAGIAdAB0AHwARACIAIoAjACSAJAAjgCOAIIAuABqAF4ATgBKAHoALAAeAA4ABgA2P+w/3D/OP8g/+j+wP6Y/pD+cP5g/mj+WP5o/oj+kP7I/vj++P5I/2j/oP/A//D/SACgAMgAAAFAAWgBqAHYAfgBQAJIAlgCcAKAAogCiAKAAngCWAJQAkgCGALoAcABkAFIARAB0ACIAEAA8P+o/1j/CP+w/oD+aP5A/uj9sP2g/Wj9UP1I/Rj9EP0Q/RD9QP0w/WD9mP2Y/dj9KP5Y/pD+6P4w/3D/oP/w/xAAcADAAPgAOAF4AagByAHoARgCKAI4AkgCYAJQAkgCSAIgAgACuAF4AWABKAEIAdAAkABQACgA4P+4/1D/GP+4/nD+WP4Q/tj9mP2Q/XD9WP04/Sj9IP0I/Sj9MP1A/VD9aP2Y/bj9+P0A/lD+gP7Q/vj+QP9w/7j/8P8gAHgAuAAIAUABWAFoAZABmAG4AcgB0AHYAdgB2AG4AagBkAFwAXABUAE4AQgBwACoAHAASAAgAOj/uP+Y/4D/MP/g/uD+wP6Y/oj+aP5Q/kj+UP5Q/mD+cP6I/oj+iP6w/rj+0P7o/iD/KP9Q/4D/mP/Q/+j/EAAwAGgAmACwANgACAEwARgBMAE4AUgBKAFAATgBMAE4ASgBEAEYAfgA+ADoANAA0ADAAKAAkABwAGgAWAAwAPD/6P/Q/+D/4P/w/8j/0P/I/8j/0P/I/+j/8P/o/wAA6P8AAPj/AAAIADAAMAAwADAAQABAAFgAcACQAIAAsAC4ANgAwADgAOAA+ADoANgA2ACwALgAmACIAHgAcABwAGAAWABYAEgASABIAEAASABQAEAAQAAoABgAGAAIAAgAEAD4/wAAAAD4/wAA+P/w/+j/8P8AACAAKAA4AEAAKABYAEgAaABoAGAAeACQALAAkACIAJAAiAB4AIAAiACIAHgAgABwAGAAQAAwACAAIAAoABAAAAD4/wAA6P/Y/9j/wP+g/5j/kP+o/5j/kP+I/6j/mP+w/4j/mP+o/6j/oP+o/8D/qP+4/6j/sP/I/9j/2P/g//D/AAAIABAACAAAAPj/AADo//D/2P+4/6D/mP+o/6j/uP+Y/5D/kP94/3D/eP9w/2D/UP9o/0j/UP9Q/1j/YP94/3D/iP+Q/5j/mP/A/+D/+P8QACAAMAA4AFAAUABwAHgAsADYAOAA6ADwAAgBEAEQAQABOAFAAUABQAFIAVgBUAEoASABCAHgANgAuACgAHgAYAAwAAgA6P+w/3j/UP8w/xj/AP/w/sD+sP6Q/oj+YP5g/mD+SP5g/jj+OP4g/ij+OP44/jj+SP5Y/lj+cP6Q/rD+4P4I/0D/cP+Y/7D/4P8YADAAcACgANAA2ADwAAgBGAE4AWABYAFYAWgBcAFoAWgBSAFQATABIAHoANgAsAB4AJAAkABIAEgAKAAIAPj/wP+Y/5D/eP9o/1D/OP8w/yD/AP8A//D+4P7o/uD+6P74/gD/GP8g/yD/QP9I/2j/iP/A/9j/+P8QABAAIAAQADAAQABAAFgAgACAAJAAmACgAKgAoACoAJAAiACIAHgAaABYAFAAOAAYAAgA+P/Y/8j/uP+Q/3j/YP9I/1D/MP84/zj/KP8Y/xj/EP/o/uj+AP8Q/xD/KP9I/3j/mP+w/8D/0P/g/wAAIAA4AFgAkAC4AMgA4AAQARABGAFIAUgBWAFoAXgBmAGgAagBiAGQAXgBcAFwAVgBUAFIAUABKAEAAfgA0AC4AKgAmACQAHAAaABQAEgAKAAoABAAGAAAAAAACADo//D/0P/A/7j/uP/I/9j/6P/Y//D/+P8IABAAKAAIACgAEAAYABgAKAAYAAAACAAAAAAA+P/o/+D/yP/A/8j/mP+A/2j/cP9I/1D/SP9A/zj/KP8o/wD/+P7g/uj+8P7o/vD++P7o/tD+0P74/uD+8P4A//j+8P4Q/yD/SP9g/3D/cP94/3j/oP+w/8j/6P/4/wgAAAAYABgAGAAwADAAMAAoADAAEAAQAAAAAADo//j/+P/4/+j/8P/4/8j/4P/g/+D/4P/I/9D/yP/Q/9D/2P/Y/9D/uP/Q/8D/2P/A/+D/4P/w//j/8P/4/+j/EAA4ADgASABQAFAASABAADAAOAAYACAAKAAAAPj/CAD4//D/8P/Y/+j/0P/I/8j/oP+Q/5D/cP9g/1D/MP84/zj/OP8o/0j/KP8o/zj/KP9A/1D/SP9o/2j/eP+I/5D/mP+4/+j/4P8IABAAKAA4AFAAeACIAKAAwADIANAA0ADoAOgA+ADwAPgACAEAAfgA6ADYAOAA0AC4AKgAkAB4AGgAWABYAEgAOAAwABgA8P/g/+j/2P+4/8D/uP+4/7j/wP+w/8j/wP+4/8D/yP/g/9j/8P/g//D/+P8AAAAAEAAgADAAKABAAEgAWABgAGAAQABQAFgAWABwAGAAaAB4AFgAUAAwACgAEAAwAAgACAAAAPj/6P/Y/7j/wP+w/5j/kP+Q/5j/mP9w/3D/eP94/2j/gP+Q/6D/2P/Q/+D/8P8AAAAAEAAoAEgAYAB4AKAAqACwANAA4AAAAfgA8ADwAPAAEAEQAQgBEAEIASABAAEAAfgA8AD4AOgA2ADIALAAkACIAHAAYABAAFAAIAAoABAAAADo/9j/2P/I/7D/0P/A/7D/qP+g/6j/oP+w/9D/0P/Y/9j/+P/g/+D/UAB4AHAAeACIAJAAqACYAMAA4AAAATABMAFIATgBGAEoASgBMAEwAVABSAFIATABMAEgAQgBCAEAAdgAyACwAKgAsACQAJAAiABwAGAAOAAoABgAEAD4//j/4P/I/6D/eP9w/2D/UP9Q/0D/IP8w/yD/QP8o/xj/OP8o/xD/GP8g/wj/EP8Y/xj/CP8g/xj/IP8Y/yj/KP8g/xj/IP8Y/wj/GP8o/yD/OP9Q/1D/WP9w/1j/UP9g/2D/YP9Y/2D/aP9w/4j/kP+g/6j/uP+4/6j/oP+w/5j/sP+g/5j/kP+I/3j/cP9g/1j/WP9Y/1D/SP9A/zj/KP8w/zj/OP84/yD/KP8o/yj/KP9A/0j/OP8w/0D/OP9Q/1D/gP9w/4D/aP+A/4j/kP/A/7j/0P/I//D/+P8AABgAMABQAGgAiACQAKgAsACgALgAwADYAPAA6ADgAOgA4ADYAMgAyAC4AMAAwACoAJgAkABwAFgAUABQACgAMAAIABAA+P/g/8D/oP+I/3j/aP9o/2j/YP9A/zj/QP84/0D/UP9Y/1D/aP9o/2j/cP94/5D/kP+Y/7D/sP+4/7D/0P/4/wgAIABAAFgAWABoAIgAgACAAIgAkACQAJAAmACQAJAAiAB4AHAAcABoAFgAUAAwADgAMAAQAAgAAADg/9D/2P/Q/8D/yP+o/6D/iP+I/4j/gP+Q/3j/cP+A/5D/kP+I/5D/mP+o/6j/kP+w/9D/wP/o//D/+P8IABgAIAA4ADgAQABIAFAAUABQAGgAkABwAHAAcABoAHAAWABgAFAAOABAADAAIAAYADAAKAAgADAAIAAYAAAAAADo/wAA+P/4/+j/4P/A/7j/sP+Y/6D/sP+w/8D/wP/Q/9D/0P/Q/9D/2P/g//j/AAAgADAAQABAAGAAeACAAJgAwADAAOAAyADgAMAA6ADgANAA8ADoAAAB+AAIAdgAyADoAOgA2ADYAMgAwAC4AKgAqACQAHgAaABQAEAAKAAYAAgAAAAAAOD/uP+w/7D/oP+Y/5j/gP+A/3j/aP9w/3D/SP9g/2j/YP9g/2j/eP9w/3j/eP9w/3D/iP+Q/5D/mP+4/7j/wP/I/+j/6P/4/wAAAAAIABAAAAAIADAAOAAwAEgAQABIAFAASABQAGgAWABIAEgAUABYAFgAQAAoABgACAAQAPD/2P/Q/+D/yP/A/7j/uP/A/8D/sP+4/6j/oP+Y/4j/mP+Q/4D/gP+A/3j/iP+I/5j/oP+g/7D/yP/Y/+D/4P/g//D/+P8AAAAA6P8QAAAA+P8YABgACAAQACAAGAAYACAAKAA4AEgAUABYAGgAUAA4AEgASABAAEgAQAAoACgAMAAgABAAGAAwADAAIAAQACAAGAAwADgAKAAoADAAIAAYABgAIAAIABAACAAYAAAACAAoACgAMABAADgAUABIAFgAaABoAHgAeABwAGgAUABAADgAKAAwACAAGAAgABgACAAQACAAIAAgADAAQABAAFAAUABQAFAASABIADgAOAAwAEAAOABAACgAIAAgACgAKAAoADAAMAAYADAAMABAAEAAOABQAGgAaABwAIAAcABoAHAAYABIAFgAQABgAFAAcABwAHgAeABwAIAAiAB4AHAAaABoAEAAWABIACgAMAAgACAAAAAAAOj/6P/Q/+j/yP/A/7D/qP+g/4j/iP94/3D/aP9o/3D/OP8w/zj/GP8o/0D/MP9A/0D/OP8w/yj/OP9A/0j/UP9A/2D/WP9o/3j/gP9w/6D/mP+o/7j/qP+4/7D/2P/A/+D/yP/Q//D/6P/o/+D/AAD4/wgAKAAgADgAKAAgACgAMAAoACgACAAAABgAAAAIAAgACAAAAPD/AADw/9j/4P/Q/8j/0P+w/7j/sP+w/5j/iP9w/3D/YP9Y/1j/UP84/yj/IP9I/1j/WP9w/3D/cP+I/4j/eP+Q/4j/oP+w/6j/uP+4/7D/0P/Y//D/AAAIABAAIAAwAEAASABwAHgAcAB4AJAAmACIAIAAcABgAFAAYAAwADAAQAAgAAgACAD4//D/0P/Q/8D/qP+Y/4j/aP9w/2j/YP9A/yD/IP8I//D+GP8I/wj/AP8I/xD/KP9A/0j/UP9Y/3j/eP+Q/6j/yP/Q//D/AAAAADAAQABIAFAAaACIAJgAsAC4ANAA2ADgANAA2ADoAOgAyADQAMAAsACYAIgAgACIAIAAaABgAEgAKAAQAAAA+P/w/+D/wP+4/6D/mP+A/4D/UP9Q/0D/UP9A/xj/IP8g/yD/KP8g/zD/QP9A/0j/YP9w/4D/kP+Y/7D/wP/Q/+D/+P8AAAgAGAAoADgAUABQAGAAcACAAIgAiACIAJgAgACIAJAAiACYAJgAoACIAIgAkACIAHgAcABwAGAAWABAADgAKAAwACAAQAAoACAAKAAYACgAIAAwADAAKAAgADgAIAAgAEAAMABYAFgAaABoAGgAgACAAHAAaACAAHgAiABoAGgAeABgAGgAiABwAGgAQABAACAAIAAQAAAACAAIAAAA6P/Y/9D/4P/Y/8D/0P+4/7D/sP+o/5j/eP9w/0j/UP9I/0j/MP9Y/1j/aP+I/3j/kP+Y/5j/qP/A/8D/wP/Y//j/8P8QABAACAAgABAAEAAgADAAMABIAGAAYABYAFgAaABoAGgAaABoAFAAaABQAFgAUAAwADAAIAAgABAACAAYABAAAAAAAAgA+P8IAPj/CADw/+D/AAAAAAAAAAAYAAgAAAAAAAAAAAD4//j/AAAAAPj/8P/w//D/8P/w/wAACAAQAAAA8P/w//D/4P/w/+D/2P/o/8D/2P/g/7j/0P+w/8D/qP/A/7D/sP+o/7j/uP/I/8j/yP/Y/9j/0P/I/8j/4P/o//j/+P8QAAgAGAAYACAAEAAgAEAASABIAEgAUABgAGAAcABYAFgAaABQAEgAWABIAFgAWABgAFAASABQAEgAQABYAEgAUABYAEgAUAAwADAAOAAYABgAEAAAAPj/+P/4/+D/wP/A/7D/qP+w/6j/sP/Q/8j/2P/g/+D/AAAAAPj/+P8IAPD/AAAQAAgAAAAYABgACAAQABgAIAAgABgAGAAgACAAKAAwADAAKAAgABgAEAAYAAAA+P/o//D/2P/o/+D/0P/Q/9j/2P/I/+j/4P/w/9D/0P/A/7j/qP+w/5D/qP+Y/7D/sP+o/8D/yP/Y/+D/6P/4/wgAKAAwACgAOABAAEgASABAAEAAQAA4ACgAMABIAEgAUABwAGgAaABoAHgAaABoAGgAYABwAFAAWABQAEgASAA4ACgAOAAwABgAKAAAAAgAAAD4//j/6P/o//D/yP/I/9j/4P/g/9D/yP/I/8j/sP/I/8D/yP/Y/9D/4P/Y/+D/4P/Y//D/+P/g/wAACAAIAPD/EAAgADAAIAAQABAAGAAYABAAEAAwAEgAMAAwAEgAMAA4ACgAMAAgADAAKAAoABgACADw/+D/2P+4/8D/wP+g/5j/mP+o/6D/kP+Q/5j/qP+o/5j/qP+g/7D/qP+g/6D/qP+Y/6j/uP/A/8j/2P/Y/wAA8P/4/wAACAAYABgAIAAoABgAOAA4AEAAYAB4AHAAcABwAHgAeABQAGAAOAAgACgACAAQAAgACAAIAPj/4P/Y/+D/uP+w/7D/qP+Q/5j/kP94/2D/UP9A/1D/SP9I/2D/OP9A/0j/UP9Y/1D/UP9I/2D/aP94/4D/gP+Q/6D/oP+o/6D/qP/I/+D/4P/w/wAACAAQAAgAAAAgACAAMAAwAEAASABQAGgAYABoAHAAaACAAGAAaABQAEgASABAADAAMABAADgAMAAgABAAGAAQABgAIAAoABAAGAAoACAAGAAIAAAAAAAQAAAAAAAIAPD/AAAYAOj/AAAQABAAMAAoABgAMABAAEAAIAA4ADgAQABAACAAKAAYADgAKAA4AEgAOABIAFgAYABgAFgAcABwAIgAiACAAGAAaABwAHAAgABoAGAAeABIAGAAcABYAGgAUABIAFgAUABQAGAAWABgAGAAYABoAEgASABIADAAKAAwACgAIAAYABAACAAIAPj/6P/4/wAA+P/w/+j/AADo/+j/AADY//j/AADw//j/4P/Q/9j/2P/g/8D/uP/Q/8D/uP/I/8D/0P/Q/9D/wP+4/7D/mP+Y/5D/eP9w/2j/cP9g/2j/YP9Q/1j/WP9g/1j/cP94/4D/gP+A/4j/aP9g/2D/UP9o/2j/cP9Y/4D/gP94/4j/kP+Q/6D/sP+4/9j/4P8IAAAAAAAYABgAEAAQABgAKAAwACAAGAAgAEAAMAAwADgAKAAwADgAOAAYADAAGAAgABAAGAAAAAgAAADg/9D/yP/Y/9D/wP+4/8j/2P+4/7D/sP+4/8D/qP+Y/4j/cP9w/3D/cP9w/4j/kP+Y/6D/sP+w/7j/uP/Y/+D/4P8QAAgAIABAAEgAUABgAHAAeAB4AJAAmACoALAAuADAAMgAyADYAMAAuADAALAAoACYAJAAcABwAFAAQAAwABgAAAAQAOj/4P/Y/6D/oP+Y/4D/aP9g/1D/QP9I/1j/SP84/zD/SP9g/2j/cP+A/3j/iP+A/5j/kP+w/8D/4P/4//D/AAAQACAAUABAAFAAWACAAJAAiACIAIgAcAB4AGAAWABoAEgAUABIADAAMAAoACgAGAAQAPD/8P8AAPD/8P/Y/+D/+P/Q/8D/yP+w/7D/sP+w/6j/oP+g/5D/iP+I/5j/qP+o/6j/wP/Y/+D/8P8IACAAMAAoAEAAUABYAGAAcACIAKAAoACIAKgAsACwAKgAqACgALgAsACoAKgAsACgAJgAmACAAIgAYABQAFAASABgAEgASAAoADAAKAAYAAAAEAAYABAAAAAAAAAAAAAQAAgAAAAQAAgAAAAYACgAIAA4AEAAWABoAHAAeACIAIAAiACAAIAAcACAAIgAiACIAIgAeACAAHAAeABoAHgAeABIAEgAKAAoADgAMAAwADAAMAAYAAAAAADo/+j/+P/w//j/8P/g/+j/0P/I/7j/wP/A/7j/sP+w/7D/uP+w/5j/sP+o/7D/sP/A/8j/wP/I/+D/2P/g/+j/0P+4/9D/yP/Q/7j/uP/I/8D/wP+o/5j/gP94/2D/cP9w/4D/aP9w/1j/WP9g/0j/UP9Y/1D/QP9Q/zj/QP8o/zj/QP8w/0D/MP9I/1j/WP9o/2j/YP+A/2j/eP94/2D/aP94/3D/cP+Y/6D/sP+o/8D/uP+4/7j/sP/A/8D/uP+4/5j/uP+g/5j/mP+g/5j/kP+A/5D/iP+g/5j/sP+Y/4j/mP+g/5D/qP+Y/5D/mP+Y/4j/sP+o/7D/wP/Q/9D/0P8AAAgAAAAAACgAMAAwADgAWABYAFAAaABgAGAAUABgAFgA" preload="auto"></audio><div class="toast" ng-repeat="toast in toasty" ng-class="[toast.type, toast.interact, toast.shake, toast.theme]" ng-click="clickToasty(toast)"><div ng-click="close(toast.id)" class="close-button" ng-if="toast.showClose"></div><div ng-if="toast.title || toast.msg" class="toast-text"><span class="toast-title" ng-if="!toast.html && toast.title" ng-bind="toast.title"></span><span class="toast-title" ng-if="toast.html && toast.title" ng-bind-html="toast.title"></span><br ng-if="toast.title && toast.msg" /><span class="toast-msg" ng-if="!toast.html && toast.msg" ng-bind="toast.msg"></span><span class="toast-msg" ng-if="toast.html && toast.msg" ng-bind-html="toast.msg"></span><div layout="row"><span ng-if="toast.onAccept" class="md-button md-raised md-accent" ng-click="toast.onAccept()">ACCEPT</span><span ng-if="toast.onReject" class="md-button md-raised md-warn" ng-click="toast.onReject()">REJECT</span></div></div></div></div>'}}]),angular.module("angular-toasty").provider("toastyConfig",(function(){var e={limit:5,showClose:!0,clickToClose:!1,position:"bottom-right",timeout:5e3,sound:!0,html:!1,shake:!1,theme:"default"},t={};return{setConfig:function(e){t=e},$get:function(){return{config:angular.extend(e,t)}}}})),angular.module("angular-toasty").factory("toasty",["$rootScope","toastyConfig",function(e,t){var n=t.config,a=function(t,a){(angular.isString(t)&&""!=t||angular.isNumber(t))&&(t={title:t.toString()}),t&&(t.title||t.msg)?(t.type=a||"default",e.$broadcast("toasty-new",{config:n,options:t})):console.error("angular-toasty: No toast title or message specified!")};return a.default=function(e){a(e)},a.info=function(e){a(e,"info")},a.wait=function(e){a(e,"wait")},a.success=function(e){a(e,"success")},a.error=function(e){a(e,"error")},a.warning=function(e){a(e,"warning")},a.clear=function(t){e.$broadcast("toasty-clear",{id:t})},a.getGlobalConfig=function(){return n},a}])},"./node_modules/@xenialab/insight-surveys/dist/form-builder-material-tpls.min.js":()=>{angular.module("mwFormBuilder").run(["$templateCache",function(e){e.put("mw-form-builder.html",'<div class=mw-form-builder><form name=ctrl.form role=form novalidate><div class=mw-title-page><md-input-container class=md-block><mw-label label-for=formName label-key=mwForm.form.name></mw-label><input type=text class=form-control name=formName id=formName ng-model=ctrl.formData.name ng-readonly=ctrl.readOnly required></md-input-container><md-input-container class=md-block><mw-label label-for=formDescription label-key=mwForm.form.description></mw-label><textarea msd-elastic class=form-control name=formDescription ng-model=ctrl.formData.description id=formDescription ng-readonly=ctrl.readOnly>\n            </textarea></md-input-container></div><div class=form-page-list><mw-form-page-builder ng-repeat="page in ctrl.formData.pages| mwStartFrom:ctrl.currentPage * ctrl.options.pageSize | limitTo:ctrl.options.pageSize" form-page=page form-object=ctrl.formData is-first=$first is-last=$last read-only=ctrl.readOnly></mw-form-page-builder></div><div layout=row layout-align="center center"><div flex-gt-xs=75><div layout=row layout-align="center center"><div flex-gt-xs=50><md-button class="md-icon-button md-raised" ng-disabled="ctrl.currentPage === 0" ng-click="ctrl.currentPage = 0"><i class="fa fa-angle-double-left fa-lg"></i></md-button><md-button class="md-icon-button md-raised" ng-disabled="ctrl.currentPage === 0" ng-click="ctrl.currentPage = ctrl.currentPage - 1"><i class="fa fa-angle-left fa-lg"></i></md-button>{{ctrl.currentPage + 1}}/{{ctrl.numberOfPages()}}<md-button class="md-icon-button md-raised" ng-disabled="ctrl.currentPage >= ctrl.formData.pages.length / ctrl.options.pageSize - 1" ng-click="ctrl.currentPage = ctrl.currentPage + 1"><i class="fa fa-angle-right fa-lg"></i></md-button><md-button class="md-icon-button md-raised" ng-disabled="ctrl.currentPage >= ctrl.formData.pages.length / ctrl.options.pageSize - 1" ng-click=ctrl.lastPage()><i class="fa fa-angle-double-right fa-lg"></i></md-button></div><div flex-gt-xs=18><md-input-container><md-select ng-change=ctrl.onChangePageSize() class=form-control ng-model=ctrl.options.pageSize><md-option ng-repeat="item in ctrl.options.pagesSize" value={{item}}>{{item}}</md-option></md-select></md-input-container></div></div></div><div flex><div layout=row layout-align=end><md-button type=button class="md-raised md-primary" ng-click=ctrl.addPage() ng-if=!ctrl.readOnly><i class="fa fa-plus"></i> <span translate=mwForm.buttons.addPage></span></md-button></div></div></div><mw-form-confirmation-page-builder form-object=ctrl.formData read-only=ctrl.readOnly></mw-form-confirmation-page-builder></form></div>'),e.put("mw-form-confirmation-page-builder.html",'<div class="mw-form-page-builder mw-confirmation-page"><div><div class=mw-page-tab-container><div class=mw-form-page-tab><span class=mw-page-tab-text role=heading translate=mwForm.confirmationPage.title>Strona potwierdzenia</span></div><div class=mw-page-tab-triangle></div></div><div ng-form=ctrl.form role=form novalidate class=form-page-builder-body><div class=form-group><md-input-container class=md-block><mw-label label-for=customConfirmationMessage label-key=mwForm.confirmationPage.customMessage></mw-label><textarea id=customConfirmationMessage msd-elastic class=form-control name=confirmationMessage ng-model=ctrl.formObject.confirmationMessage ng-disabled=ctrl.readOnly></textarea></md-input-container></div></div></div></div>'),e.put("mw-form-image-builder.html",'<div class=mw-form-image-builder-wrapper><div class=mw-form-image-builder ng-class="{\'ng-submitted\':ctrl.formSubmitted}"><div class=image-editor ng-form=ctrl.form ng-if=!ctrl.isPreview><button ng-if=!ctrl.image.src ng-click=ctrl.selectImageButtonClicked() type=button class="btn btn-default" translate=mwForm.image.selectImageButton>Select image</button><div class="image-edition row" ng-if=ctrl.image.src><div class=col-md-12 ng-class="\'align-\'+ctrl.image.align"><img ng-src={{ctrl.image.src}}></div><div class="col-md-12 image-align-control"><div class=btn-group role=group aria-label="Image align"><button type=button class="btn btn-default" ng-class="{\'selected\': ctrl.image.align==\'left\'}" ng-click="ctrl.setAlign(\'left\')"><i class="fa fa-align-left"></i></button> <button type=button class="btn btn-default" ng-class="{\'selected\': ctrl.image.align==\'center\'}" ng-click="ctrl.setAlign(\'center\')"><i class="fa fa-align-center"></i></button> <button type=button class="btn btn-default" ng-class="{\'selected\': ctrl.image.align==\'right\'}" ng-click="ctrl.setAlign(\'right\')"><i class="fa fa-align-right"></i></button></div></div><md-input-container class=md-block><mw-label label-for=image-caption-{{ctrl.id}} label-key=mwForm.image.caption>Image caption</mw-label><input type=text class=form-control name=text ng-attr-id=image-caption-{{ctrl.id}} ng-model=ctrl.image.caption ng-readonly=ctrl.readOnly></md-input-container></div><div ng-if=ctrl.image.src><br><br><md-button class="md-primary md-raised" type=button role=button ng-click=ctrl.save() translate=mwForm.buttons.questionReady>Ready</md-button></div></div><div class=mw-preview ng-if=ctrl.isPreview><figure ng-class="\'align-\'+ctrl.image.align"><img ng-src={{ctrl.image.src}} ng-attr-alt=ctrl.image.caption><figcaption ng-if=ctrl.image.caption>{{ctrl.image.caption}}</figcaption></figure></div></div></div>'),e.put("mw-form-page-builder.html",'<div class=mw-form-page-builder ng-class="{\'page-folded\': ctrl.isFolded}"><div ng-mouseover=ctrl.hoverIn() ng-mouseleave=ctrl.hoverOut()><div class=mw-page-tab-container><div class=mw-form-page-tab><span class=mw-page-tab-text role=heading translate=mwForm.page.tab.heading translate-values="{page: ctrl.formPage.number, allPages:ctrl.formObject.pages.length}">Strona 1 z 3</span> <span class=mw-page-tab-checkbox><label><input type=checkbox ng-model=ctrl.formPage.namedPage ng-disabled=ctrl.readOnly><span class=mw-page-tab-checkbox-text translate=mwForm.page.pageWithNameCheckbox>named</span></label></span></div><div class=mw-page-tab-triangle></div><div class=mw-page-tab-actions ng-switch=ctrl.readOnly><button type=button class=fold-button ng-click=ctrl.fold() ng-attr-title="{{\'mwForm.buttons.fold\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.fold>Fold</span></md-tooltip><i class="fa fa-compress"></i></button> <button type=button class=unfold-button ng-click=ctrl.unfold() ng-attr-title="{{\'mwForm.buttons.unfold\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.unfold>Unfold</span></md-tooltip><i class="fa fa-expand"></i></button> <button type=button class=move-down-button ng-click=ctrl.moveDown() ng-if=!ctrl.isLast ng-switch-when=false ng-attr-title="{{\'mwForm.buttons.moveDown\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.moveDown>Move down</span></md-tooltip><i class="fa fa-chevron-down"></i></button> <button type=button class=move-up-button ng-click=ctrl.moveUp() ng-if=!ctrl.isFirst ng-switch-when=false ng-attr-title="{{\'mwForm.buttons.moveUp\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.moveUp>move Up</span></md-tooltip><i class="fa fa-chevron-up"></i></button> <button type=button class=remove-button mw-confirm-click confirmed-action=ctrl.removePage() ng-switch-when=false ng-attr-title="{{\'mwForm.buttons.removePage\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.removePage>remove Page</span></md-tooltip><i class="fa fa-trash"></i></button></div></div><div ng-form=ctrl.form role=form novalidate class=form-page-builder-body><md-input-container class=md-block ng-if=ctrl.formPage.namedPage><label ng-attr-for=page-name-{{ctrl.formPage.number}} translate=mwForm.page.name>Nazwa strony</label> <input type=text class=form-control name=pageName ng-attr-id=page-name-{{ctrl.formPage.number}} ng-model=ctrl.formPage.name ng-blur=ctrl.pageNameChanged() ng-readonly=ctrl.readOnly></md-input-container><div class=page-element-list ng-sortable=ctrl.sortableConfig ng-model=ctrl.formPage.elements><div class="empty-page-element-list-label form-group" ng-if="!ctrl.formPage.elements || (ctrl.formPage.elements && ctrl.formPage.elements.length === 0)"><span translate=mwForm.page.elements.empty>Brak elementów</span></div><mw-form-page-element-builder ng-repeat="element in ctrl.formPage.elements" page-element=element form-object=ctrl.formObject is-active=ctrl.isElementActive(element) on-ready=ctrl.onElementReady() ng-click=ctrl.selectElement(element) is-first=$first is-last=$last read-only=ctrl.readOnly></mw-form-page-element-builder></div><md-menu ng-if=!ctrl.readOnly><md-button class=md-raised aria-label="{{\'mwForm.buttons.addElement\'|translate}}" ng-click=$mdOpenMenu($event) translate=mwForm.buttons.addElement>Add element</md-button><md-menu-content width=4><md-menu-item ng-if="ctrl.isElementTypeEnabled(\'question\')"><md-button type=button ng-click=ctrl.addQuestion()><span translate=mwForm.elements.question>Pytanie</span><i class="fa fa-question-circle fa-lg fa-fw" style="margin-left: 10px;"></i></md-button></md-menu-item><md-menu-item ng-if="ctrl.isElementTypeEnabled(\'image\')"><md-button type=button ng-click=ctrl.addImage()><span translate=mwForm.elements.image>Obraz</span><i class="fa fa-picture-o fa-lg fa-fw" style="margin-left: 10px;"></i></md-button></md-menu-item><md-menu-item ng-if="ctrl.isElementTypeEnabled(\'paragraph\')"><md-button type=button ng-click=ctrl.addParagraph()><span translate=mwForm.elements.paragraph>Obraz</span><i class="fa fa-paragraph fa-lg fa-fw" style="margin-left: 10px;"></i></md-button></md-menu-item></md-menu-content></md-menu></div><table cellspacing=0 class=mw-page-bottom-tab-container ng-if=!ctrl.isLast><tr><td class=mw-page-bottom-tab-triangle></td><td class=mw-form-page-bottom-tab><div class="page-flow-select form-inline"><label translate=mwForm.pageFlow.afterPage translate-values={page:ctrl.formPage.number} ng-attr-for=page-flow-select-{{ctrl.formPage.number}}>Po stronie 1</label><select ng-attr-id=page-flow-select-{{ctrl.formPage.number}} ng-options="pageFlow.label|translate:pageFlow for pageFlow in ctrl.possiblePageFlow" ng-model=ctrl.formPage.pageFlow class=form-control ng-disabled=ctrl.readOnly></select></div></td><td class=mw-page-bottom-tab-actions><button type=button role=button class=btn ng-click=ctrl.addPage() ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.addPage\' | translate}}"><md-tooltip md-direction=top>{{\'mwForm.buttons.addPage\' | translate}}</md-tooltip><i class="fa fa-plus"></i></button></td></tr></table></div></div>'),e.put("mw-form-page-element-builder.html",'<div class=mw-form-page-element-builder-wrapper><div class=mw-form-page-element-builder ng-class="{\'active\': ctrl.isActive, \'inactive draggable\': !ctrl.isActive}"><div class=mw-page-element-actions-tab ng-switch=ctrl.isActive&&!ctrl.readOnly><span class=mw-additional-buttons><button type=button ng-click=ctrl.callback($event,button) ng-attr-title="{{button.title | translate}}" ng-class=button.cssClass class=edit-button aria-label="{{button.title | translate}}" aria-hidden=false ng-if="ctrl.filter(button) && !ctrl.readOnly" ng-repeat="button in ctrl.options.elementButtons"><md-tooltip md-direction=top><span>{{button.title | translate}}</span></md-tooltip><i class={{button.icon}}></i> {{button.text}}</button></span> <span ng-switch-when=true><button type=button class=move-down-button ng-click=ctrl.moveDown() ng-if=!ctrl.isLast ng-attr-title="{{\'mwForm.buttons.moveDown\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.moveDown>moveDown</span></md-tooltip><i class="fa fa-chevron-down"></i></button> <button type=button class=move-up-button ng-click=ctrl.moveUp() ng-if=!ctrl.isFirst ng-attr-title="{{\'mwForm.buttons.moveUp\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.moveUp>moveUp</span></md-tooltip><i class="fa fa-chevron-up"></i></button> <button type=button class=remove-button mw-confirm-click confirmed-action=ctrl.removeElement() ng-attr-title="{{\'mwForm.buttons.remove\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.remove>remove</span></md-tooltip><i class="fa fa-trash"></i></button></span> <span ng-switch-when=false><button type=button aria-label="{{\'mwForm.buttons.clone\' | translate}}" aria-hidden=false class=edit-button ng-click=ctrl.cloneElement($event) ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.clone\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.clone>clone</span></md-tooltip><i class="fa fa-clone"></i></button> <button type=button aria-label="{{\'mwForm.buttons.edit\' | translate}}" aria-hidden=false class=edit-button ng-click=ctrl.editElement() ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.edit\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.edit>edit</span></md-tooltip><i class="fa fa-pencil"></i></button> <button type=button aria-label="{{\'mwForm.buttons.view\' | translate}}" aria-hidden=false class=edit-button ng-click=ctrl.editElement() ng-if=ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.view\' | translate}}"><md-tooltip md-direction=top><span translate=mwForm.buttons.view>view</span></md-tooltip><i class="fa fa-eye"></i></button></span></div><div ng-switch=ctrl.pageElement.type><mw-form-question-builder ng-switch-when=question question=ctrl.pageElement.question form-object=ctrl.formObject on-ready=ctrl.onReady() is-preview=!ctrl.isActive read-only=ctrl.readOnly></mw-form-question-builder><mw-form-image-builder ng-switch-when=image image=ctrl.pageElement.image form-object=ctrl.formObject on-ready=ctrl.onReady() is-preview=!ctrl.isActive read-only=ctrl.readOnly on-image-selection=ctrl.onImageSelection()></mw-form-image-builder><mw-form-paragraph-builder ng-switch-when=paragraph paragraph=ctrl.pageElement.paragraph form-object=ctrl.formObject on-ready=ctrl.onReady() is-preview=!ctrl.isActive read-only=ctrl.readOnly></mw-form-paragraph-builder></div></div></div>'),e.put("mw-form-paragraph-builder.html",'<div class=mw-form-paragraph-builder-wrapper><div class=mw-form-paragraph-builder ng-class="{\'ng-submitted\':ctrl.formSubmitted}"><div class=paragraph-editor ng-form=ctrl.form ng-if=!ctrl.isPreview><md-input-container class=md-block><mw-label label-for=paragraph-textarea-{{ctrl.id}} label-key=mwForm.paragraph.placeholder></mw-label><textarea msd-elastic class="form-control mw-form-paragraph-textarea" ng-model=ctrl.paragraph.html required ng-attr-id=paragraph-textarea-{{ctrl.id}} ng-readonly=ctrl.readOnly></textarea></md-input-container><div layout=row><br><md-button class="md-primary md-raised" type=button role=button ng-click=ctrl.save() translate=mwForm.buttons.questionReady>Ready</md-button></div></div><div class=mw-preview ng-if=ctrl.isPreview><p ng-bind-html=ctrl.paragraph.html></p></div></div></div>'),e.put("mw-form-question-builder.html",'<div class=mw-form-question-builder-wrapper><div class=mw-form-question-builder ng-class="{\'ng-submitted\':ctrl.formSubmitted}"><div ng-form=ctrl.form ng-if=!ctrl.isPreview><div class=form-horizontal><md-input-container class=md-block><mw-label label-for=question-text-{{ctrl.id}} label-key=mwForm.question.text></mw-label><input type=text name=text ng-attr-id=question-text-{{ctrl.id}} ng-model=ctrl.question.text ng-readonly=ctrl.readOnly required></md-input-container><div class=mw-question-type layout=row layout-align="start center"><md-input-container flex-gt-md=30><mw-label label-for=question-type-{{ctrl.id}} label-class="col-sm-2 control-label" label-key=mwForm.question.type></mw-label><md-select ng-attr-id=question-type-{{ctrl.id}} ng-model=ctrl.question.type ng-change=ctrl.questionTypeChanged() ng-disabled=ctrl.readOnly required><md-option ng-repeat="type in ctrl.questionTypes" ng-value=type>{{\'mwForm.question.types.\'+type+\'.name\'|translate}}</md-option></md-select></md-input-container><div flex flex-offset-gt-md=5><md-checkbox ng-if="ctrl.question.type==\'radio\' || ctrl.question.type==\'select\'" ng-model=ctrl.question.pageFlowModifier ng-change=ctrl.pageFlowModifierChanged() ng-readonly=ctrl.readOnly aria-label="Go to page"><span translate=mwForm.pageFlow.afterQuestionAnswer>Przejdź do strony w oparciu o odpowiedź</span></md-checkbox></div></div><div class="form-group mw-question-type" ng-repeat="select in ctrl.options.customQuestionSelects"><mw-label label-for=question-{{select.key}}-{{ctrl.id}} label-class="col-sm-2 control-label" label-key={{select.label}}></mw-label><div class="col-sm-10 form-inline"><select ng-attr-id=question-{{opt.key}}-{{ctrl.id}} ng-options="opt.label for opt in select.options track by opt.key" ng-model=ctrl.question[select.key] class=form-control ng-disabled=ctrl.readOnly ng-required=select.required></select></div></div></div><div ng-if=ctrl.question.type><div class=mw-form-question-answers-builder ng-switch=ctrl.question.type><div ng-if="ctrl.question.type==\'text\'"><md-input-container class=md-block><input class=form-control type=text disabled value="{{\'mwForm.question.preview.text\'|translate}}"></md-input-container></div><div ng-switch-when=textarea><md-input-container class=md-block><textarea class=form-control maxlength=150 rows=5 disabled>{{\'mwForm.question.preview.textarea\'|translate}}</textarea></md-input-container></div><div ng-switch-when=radio><mw-question-offered-answer-list-builder question=ctrl.question form-object=ctrl.formObject read-only=ctrl.readOnly></mw-question-offered-answer-list-builder></div><div ng-switch-when=select><mw-question-offered-answer-list-builder question=ctrl.question form-object=ctrl.formObject read-only=ctrl.readOnly disable-other-answer=true></mw-question-offered-answer-list-builder></div><div ng-switch-when=checkbox><mw-question-offered-answer-list-builder question=ctrl.question form-object=ctrl.formObject read-only=ctrl.readOnly></mw-question-offered-answer-list-builder></div><div ng-switch-when=priority><mw-question-priority-list-builder question=ctrl.question read-only=ctrl.readOnly></mw-question-priority-list-builder></div><div ng-switch-when=number class=form-inline><div class="range-config form-inline"><md-input-container><mw-label label-for=question-number-range-min-{{ctrl.id}} label-key=mwForm.question.number.min></mw-label><input ng-attr-id=question-number-range-min-{{ctrl.id}} class=form-control type=number ng-model=ctrl.question.min max={{ctrl.question.max}} ng-readonly=ctrl.readOnly></md-input-container><md-input-container><mw-label label-for=question-number-range-max-{{ctrl.id}} label-key=mwForm.question.number.max></mw-label><input ng-attr-id=question-number-range-max-{{ctrl.id}} class=form-control type=number min={{ctrl.question.min}} ng-model=ctrl.question.max ng-readonly=ctrl.readOnly></md-input-container></div><br><md-input-container><input class=form-control type=number disabled></md-input-container></div><div ng-switch-when=date class=form-inline><md-input-container><input class=form-control type=date disabled></md-input-container></div><div ng-switch-when=datetime class=form-inline><md-input-container><input class=form-control type=datetime disabled></md-input-container></div><div ng-switch-when=time class=form-inline><md-input-container><input class=form-control type=time disabled></md-input-container></div><div ng-switch-when=email class=form-inline><md-input-container><input class=form-control type=email disabled></md-input-container></div><div ng-switch-when=range><div class="range-config form-inline"><md-input-container><mw-label label-for=question-range-from-{{ctrl.id}} label-key=mwForm.question.range.from></mw-label><input ng-attr-id=question-range-from-{{ctrl.id}} type=number ng-model=ctrl.question.min max={{ctrl.question.max}} ng-readonly=ctrl.readOnly></md-input-container><md-input-container><mw-label label-for=question-range-to-{{ctrl.id}} label-key=mwForm.question.range.to></mw-label><input ng-attr-id=question-range-to-{{ctrl.id}} type=number min={{ctrl.question.min}} ng-model=ctrl.question.max ng-readonly=ctrl.readOnly></md-input-container></div><br><div class=mw-range><md-slider min=ctrl.question.min max=ctrl.question.max type=range disabled></md-slider></div></div><div ng-switch-when=url class=form-inline><input class=form-control type=url disabled></div><div ng-switch-when=star class=form-inline><div class="range-config form-inline"><span translate=mwForm.question.star.no>Number of stars</span> <input class=form-control type=number ng-model=ctrl.question.noStars min=3 max=10 step=1 required ng-readonly=ctrl.readOnly ng-init="ctrl.question.noStars = ctrl.question.noStars || 5"></div></div></div><div class=col-sm-12 ng-if="ctrl.question.type==\'grid\'"><mw-question-grid-builder question=ctrl.question read-only=ctrl.readOnly></mw-question-grid-builder></div><div class=col-sm-12 ng-if="ctrl.question.type==\'division\'"><mw-question-division-builder question=ctrl.question read-only=ctrl.readOnly></mw-question-division-builder></div></div><br><br><div layout=row layout-align="start center"><div flex=20><md-button class="md-primary md-raised" type=button role=button ng-click=ctrl.save() translate=mwForm.buttons.questionReady>Ready</md-button></div><div flex><md-checkbox ng-model=ctrl.question.required ng-disabled=ctrl.readOnly flex><span translate=mwForm.question.required>Required</span></md-checkbox></div></div></div><div class=mw-preview ng-if=ctrl.isPreview><div class=mw-question-text>{{ctrl.question.text}} <span ng-if=ctrl.question.required>*</span></div><div class=question-answers ng-switch=ctrl.question.type><div ng-switch-when=text><md-input-container class=md-block><input class=form-control type=text disabled value="{{\'mwForm.question.preview.text\'|translate}}"></md-input-container></div><div ng-switch-when=number class=form-inline><md-input-container><input class=form-control type=number disabled></md-input-container></div><div ng-switch-when=date class=form-inline><md-input-container><input class=form-control type=date disabled></md-input-container></div><div ng-switch-when=datetime class=form-inline><md-input-container><input class=form-control type=datetime disabled></md-input-container></div><div ng-switch-when=time class=form-inline><md-input-container><input class=form-control type=time disabled></md-input-container></div><div ng-switch-when=email class=form-inline><md-input-container><input class=form-control type=email disabled></md-input-container></div><div ng-switch-when=range class=mw-range><md-slider min=ctrl.question.min max=ctrl.question.max type=range disabled></md-slider></div><div ng-switch-when=url class=form-inline><md-input-container class=md-block><input class=form-control type=url disabled></md-input-container></div><div ng-switch-when=textarea><md-input-container class=md-block><textarea class=form-control type=text disabled>{{\'mwForm.question.preview.textarea\'|translate}}</textarea></md-input-container></div><div ng-switch-when=radio><md-radio-group disabled><md-radio-button ng-repeat="answer in ctrl.question.offeredAnswers" aria-label="{{ answer.value }}">{{answer.value}}</md-radio-button><div layout=row layout-align="start center" class=mw-question-other-answer ng-if=ctrl.question.otherAnswer><div><md-radio-button disabled><span translate=mwForm.question.preview.otherAnswer>Inna</span>:</md-radio-button></div><div><md-input-container><input type=text class=form-control disabled></md-input-container></div></div></md-radio-group></div><div ng-switch-when=checkbox><div ng-repeat="answer in ctrl.question.offeredAnswers"><md-checkbox disabled>{{answer.value}}</md-checkbox></div><div layout=row layout-align="start center" class=mw-question-other-answer ng-if=ctrl.question.otherAnswer><div><md-checkbox disabled><span translate=mwForm.question.preview.otherAnswer>Inna</span>:</md-checkbox></div><div><md-input-container><input type=text class=form-control disabled></md-input-container></div></div></div><div ng-switch-when=select><md-input-container><md-select ng-disabled=true ng-model=ctrl.selectAnswerMock><md-option ng-repeat="answer in ctrl.question.offeredAnswers" ng-value=answer.id>{{answer.value}}</md-option></md-select></md-input-container></div><div ng-switch-when=grid><div class=table-responsive><table class="mw-data-table mw-no-border" border=0 cellpadding=5 cellspacing=0><thead><tr><td></td><td ng-repeat="col in ctrl.question.grid.cols"><label>{{col.label}}</label></td></tr></thead><tbody><tr ng-repeat="row in ctrl.question.grid.rows"><td>{{row.label}}</td><td ng-repeat="col in ctrl.question.grid.cols" ng-switch=ctrl.question.grid.cellInputType><md-radio-group ng-switch-when=radio><md-radio-button></md-radio-button></md-radio-group><div ng-switch-when=checkbox><md-checkbox></md-checkbox></div><md-input-container ng-switch-default><input ng-attr-type={{ctrl.question.grid.cellInputType}} disabled ng-class="\'form-control\'"></md-input-container></td></tr></tbody></table></div></div><div class=mw-priority-list ng-switch-when=priority><table><thead><tr><th translate=mwForm.question.priority.sorted>Sorted</th><th translate=mwForm.question.priority.available>Available</th></tr></thead><tbody><tr><td class=mw-ordered-items></td><td class=mw-available-items><div class=mw-item ng-repeat="item in ctrl.question.priorityList">{{::item.value}}</div></td></tr></tbody></table></div><div ng-switch-when=division class=mw-division-list><div class=form-inline style="margin-bottom: 5px" ng-repeat="item in ctrl.question.divisionList"><div class=form-group><label>{{item.value}}</label><md-input-container md-no-float><input type=number class=form-control style="width: 80px"></md-input-container><span>{{ctrl.question.unit}}</span></div></div><div class=form-inline style="margin-bottom: 5px"><div class=form-group><label translate=mwForm.question.division.assignedSumLabel>Przydzielono</label><md-input-container md-no-float><input type=number class="form-control strict-validation" style="width: 80px" readonly value=0></md-input-container><span>{{ctrl.question.unit}} <span translate=mwForm.question.division.fromRequiredLabel>z wymaganych</span> <strong>{{ctrl.question.quantity}}</strong> {{ctrl.question.unit}}</span></div></div></div><div ng-switch-when=star class=stars><span ng-repeat="n in [].constructor(ctrl.question.noStars) track by $index"><i class="fa fa-star star"></i></span></div></div></div></div></div>'),e.put("mw-label.html","<label ng-attr-for={{::ctrl.labelFor}} ng-attr-class={{::ctrl.labelClass}}>{{ctrl.labelKey|translate:ctrl.labelTranslateValues}}</label>"),e.put("mw-question-division-builder.html",'<div class=mw-question-division-builder><div><div><md-input-container><mw-label label-for=division-quantity-{{ctrl.question.id}} label-class="col-sm-2 control-label" label-key=mwForm.question.division.quantity></mw-label><div class="col-sm-10 col-md-8 form-inline"><input ng-attr-id=division-quantity-{{ctrl.question.id}} type=number ng-model=ctrl.question.quantity required class=form-control min=1 ng-readonly=ctrl.readOnly></div></md-input-container><md-input-container><mw-label label-for=division-unit-{{ctrl.question.id}} label-class="col-sm-2 control-label" label-key=mwForm.question.division.unit></mw-label><div class="col-sm-10 col-md-8 form-inline"><input ng-attr-id=division-unit-{{ctrl.question.id}} type=text ng-model=ctrl.question.unit required class=form-control ng-readonly=ctrl.readOnly></div></md-input-container></div></div><div><div class=question-division-list ng-sortable=ctrl.itemsSortableConfig ng-model=ctrl.question.divisionList role=list><div class=mw-question-division-list-item ng-repeat="item in ctrl.question.divisionList" role=listitem><div class=drag-handle ng-if=!ctrl.readOnly><i class="fa fa-arrows-v fa-lg handle-inner"></i></div><md-input-container><input wd-focus-me=ctrl.isNewItem[item.id] type=text ng-model=item.value ng-keypress=ctrl.keyPressedOnInput($event,item) required class="form-control item-value" ng-readonly=ctrl.readOnly></md-input-container><md-button role=button class="md-raised md-icon-button remove-item-button" ng-click=ctrl.removeItem(item) ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.remove\' | translate}}"><md-tooltip md-direction=top>{{\'mwForm.buttons.remove\' | translate}}</md-tooltip><i class="fa fa-times"></i></md-button></div></div><div class="mw-question-division-list-item add-new-item-widget"><div class=drag-handle></div><md-input-container><span ng-click=ctrl.addNewItem() role=button ng-if=!ctrl.readOnly><input type=text required class=form-control value="{{\'mwForm.question.priority.clickToAddItem\'|translate}}"></span></md-input-container></div></div></div>'),e.put("mw-question-grid-builder.html",'<div class=mw-question-grid-builder><div class=mw-grid-rows-builder><div><div style="margin-top: 20px;" layout=row layout-align="start center"><md-input-container flex-gt-md=30><mw-label label-for=mw-grid-cell-input-type-{{ctrl.question.id}} label-class="col-sm-2 control-label" label-key=mwForm.question.grid.cellInputType></mw-label><md-select ng-attr-id=mw-grid-cell-input-type-{{ctrl.question.id}} ng-model=ctrl.question.grid.cellInputType ng-disabled=ctrl.readOnly required><md-option ng-repeat="opt in ctrl.cellInputTypes" ng-value=opt>{{\'mwForm.question.grid.cellInputTypes.\'+opt|translate}}</md-option></md-select></md-input-container></div></div><div class=mw-grid-row-list ng-sortable=ctrl.rowsSortableConfig ng-model=ctrl.question.grid.rows role=list><div class="mw-grid-item form-group" ng-repeat="row in ctrl.question.grid.rows" role=listitem layout=row layout-align="start center"><div flex-gt-xs=20><mw-label label-for=mw-grid-row-{{row.id}}-label label-class=col-sm-2 label-key=mwForm.question.grid.rowLabel label-translate-values="{row: row.orderNo}"></mw-label></div><div flex><div class=drag-handle><i class="fa fa-arrows-v fa-lg handle-inner"></i></div><md-input-container><input ng-attr-id=mw-grid-row-{{row.id}}-label wd-focus-me=ctrl.isNewInput[row.id] type=text ng-model=row.label ng-keypress="ctrl.keyPressedOnInput($event,row, \'row\')" required class="form-control mw-item-label-value" ng-readonly=ctrl.readOnly></md-input-container><md-button role=button class="md-raised md-icon-button remove-item-button" ng-click=ctrl.removeRow(row) ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.remove\' | translate}}"><md-tooltip md-direction=top>{{\'mwForm.buttons.remove\' | translate}}</md-tooltip><i class="fa fa-times"></i></md-button></div></div></div><div class="mw-grid-item form-group add-new-item-widget" ng-if=!ctrl.readOnly layout=row layout-align="start center"><div flex-gt-xs=20><label translate=mwForm.question.grid.rowLabel translate-values="{row: ctrl.question.grid.rows.length+1}">Etykieta wiersza {{ctrl.question.grid.rows.length+1}}</label></div><div flex><div class=drag-handle></div><span ng-click=ctrl.addNewRow() role=button><md-input-container><input type=text required class=form-control value="{{\'mwForm.question.grid.clickToAddRow\'|translate}}"></md-input-container></span></div></div></div><div class=row><div class="mw-grid-separator col-sm-9 col-sm-offset-1"></div></div><div class="form-horizontal mw-grid-cols-builder"><div class=mw-grid-col-list ng-sortable=ctrl.colsSortableConfig ng-model=ctrl.question.grid.cols role=list><div class="mw-grid-item form-group" ng-repeat="col in ctrl.question.grid.cols" role=listitem layout=row layout-align="start center"><div flex-gt-xs=20><mw-label label-for=mw-grid-col-{{col.id}}-label label-class="col-sm-2 control-label" label-key=mwForm.question.grid.columnLabel label-translate-values="{col: col.orderNo}"></mw-label></div><div flex><div class=drag-handle><i class="fa fa-arrows-v fa-lg handle-inner"></i></div><md-input-container><input ng-attr-id=mw-grid-col-{{col.id}}-label wd-focus-me=ctrl.isNewInput[col.id] type=text ng-model=col.label ng-keypress="ctrl.keyPressedOnInput($event,col, \'col\')" required class="form-control mw-item-label-value" ng-readonly=ctrl.readOnly></md-input-container><md-button role=button class="md-raised md-icon-button remove-item-button" ng-click=ctrl.removeCol(col) ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.remove\' | translate}}"><md-tooltip md-direction=top>{{\'mwForm.buttons.remove\' | translate}}</md-tooltip><i class="fa fa-times"></i></md-button></div></div></div><div class="mw-grid-item form-group add-new-item-widget" ng-if=!ctrl.readOnly layout=row layout-align="start center"><div flex-gt-xs=20><label class="col-sm-2 control-label" translate=mwForm.question.grid.columnLabel translate-values="{col: ctrl.question.grid.cols.length+1}">Etykieta kolumny {{ctrl.question.grid.cols.length+1}}</label></div><div flex><div class=drag-handle></div><span ng-click=ctrl.addNewCol() role=button><md-input-container><input type=text required class=form-control value="{{\'mwForm.question.grid.clickToAddColumn\'|translate}}"></md-input-container></span></div></div></div></div>'),e.put("mw-question-offered-answer-list-builder.html",'<div class=question-offered-answer-list-builder><div class=question-offered-answer-list ng-sortable=ctrl.offeredAnswersSortableConfig ng-model=ctrl.question.offeredAnswers role=list><div class=mw-question-offered-answer ng-repeat="answer in ctrl.question.offeredAnswers" role=listitem><div class=drag-handle ng-if=!ctrl.readOnly><i class="fa fa-arrows-v fa-lg handle-inner"></i></div><div class=option-type-indicator><i ng-if="ctrl.question.type==\'radio\'" class="fa fa-circle-thin fa-fw"></i> <i ng-if="ctrl.question.type==\'checkbox\'" class="fa fa-square-o fa-fw"></i></div><md-input-container><input wd-focus-me=ctrl.isNewAnswer[answer.id] type=text ng-model=answer.value ng-keypress=ctrl.keyPressedOnInput($event,answer) required class="form-control offered-answer-value" ng-readonly=ctrl.readOnly></md-input-container><md-button role=button class="md-raised md-icon-button remove-item-button" ng-click=ctrl.removeOfferedAnswer(answer) ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.remove\' | translate}}"><md-tooltip md-direction=top>{{\'mwForm.buttons.remove\' | translate}}</md-tooltip><i class="fa fa-times"></i></md-button><span ng-if=ctrl.question.pageFlowModifier class=form-inline><md-input-container><md-select ng-model=answer.pageFlow ng-disabled=ctrl.readOnly><md-option ng-value=pageFlow ng-repeat="pageFlow in ctrl.possiblePageFlow">{{ pageFlow.label|translate:pageFlow }}</md-option></md-select></md-input-container></span></div></div><div class="mw-question-offered-answer add-new-answer-widget" ng-if=!ctrl.readOnly><div class=drag-handle></div><div class=option-type-indicator><i ng-if="ctrl.question.type==\'radio\'" class="fa fa-circle-thin fa-fw"></i> <i ng-if="ctrl.question.type==\'checkbox\'" class="fa fa-square-o fa-fw"></i></div><span ng-click=ctrl.addNewOfferedAnswer() role=button><md-input-container><input type=text class="form-control offered-answer-value" value="{{\'mwForm.question.buttons.addOption\'|translate}}"></md-input-container></span> <span class=add-custom-answer ng-if="!ctrl.disableOtherAnswer && !ctrl.question.otherAnswer"><span translate=mwForm.question.orLabel>or</span><md-button role=button ng-click=ctrl.addCustomAnswer() translate=mwForm.question.buttons.addOther>Dodaj "Inne"</md-button></span></div><div class="mw-question-offered-answer custom-answer" ng-if=ctrl.question.otherAnswer><div class=drag-handle ng-if=!ctrl.readOnly></div><div class=option-type-indicator><i ng-if="ctrl.question.type==\'radio\'" class="fa fa-circle-thin fa-fw"></i> <i ng-if="ctrl.question.type==\'checkbox\'" class="fa fa-square-o fa-fw"></i></div><label translate=mwForm.question.otherLabel>Inna:</label><md-input-container><input type=text value="{{\'mwForm.question.userAnswer\'|translate}}" class="form-control offered-answer-value" readonly></md-input-container><md-button type=button role=button class="md-raised md-icon-button remove-item-button" ng-click=ctrl.removeCustomAnswer() ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.remove\' | translate}}"><md-tooltip md-direction=top>{{\'mwForm.buttons.remove\' | translate}}</md-tooltip><i class="fa fa-times"></i></md-button></div></div>'),e.put("mw-question-priority-list-builder.html",'<div class=mw-question-priority-list-builder><div class=question-priority-list ng-sortable=ctrl.itemsSortableConfig ng-model=ctrl.question.priorityList role=list><div class=mw-question-priority-list-item ng-repeat="item in ctrl.question.priorityList" role=listitem><div class=drag-handle ng-if=!ctrl.readOnly><i class="fa fa-arrows-v fa-lg handle-inner"></i></div><md-input-container><input wd-focus-me=ctrl.isNewItem[item.id] type=text ng-model=item.value ng-keypress=ctrl.keyPressedOnInput($event,item) required class="form-control item-value" ng-readonly=ctrl.readOnly></md-input-container><md-button role=button class="md-raised md-icon-button remove-item-button" ng-click=ctrl.removeItem(item) ng-if=!ctrl.readOnly ng-attr-title="{{\'mwForm.buttons.remove\' | translate}}"><md-tooltip md-direction=top>{{\'mwForm.buttons.remove\' | translate}}</md-tooltip><i class="fa fa-times"></i></md-button></div></div><div class="mw-question-priority-list-item add-new-item-widget"><div class=drag-handle></div><span ng-click=ctrl.addNewItem() role=button><md-input-container><input type=text required class=form-control value="{{\'mwForm.question.priority.clickToAddItem\'|translate}}"></md-input-container></span></div></div>')}])},"./node_modules/@xenialab/insight-surveys/dist/form-builder.js":()=>{angular.module("mwFormBuilder",["ngSanitize","ng-sortable","pascalprecht.translate"]),angular.module("mwFormBuilder").service("mwFormUuid",(function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}this.get=function(){return e()+e()+e()+e()+e()+e()+e()+e()}})).factory("mwFormClone",["mwFormUuid",function(e){var t={},n=[];return t.resetIds=function(a,o){if(o&&(n=[]),!(n.indexOf(a)>=0)&&(n.push(a),!a!==Object(a)))if(Array.isArray(a))a.forEach(t.resetIds);else{for(var r in a)a.hasOwnProperty(r)&&t.resetIds(a[r]);if(a.hasOwnProperty("id")){var i=e.get();a.id;a.id=i}}},t.cloneElement=function(e){var n={};return angular.copy(e,n),t.resetIds(n,!0),n},t.clonePage=function(n){var a={};angular.copy(n,a),a.id=e.get();var o=[];if(Array.isArray(n.elements))for(var r=0;r<n.elements.length;r++)o.push(t.cloneElement(n.elements[r]));return a.elements=o,a},t.cloneForm=function(e){var n={};angular.copy(e,n);var a=[];if(Array.isArray(e.pages))for(var o=0;o<e.pages.length;o++)a.push(t.clonePage(e.pages[o]));return n.pages=a,n},t}]),angular.module("mwFormBuilder").directive("mwQuestionPriorityListBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormQuestionBuilder",scope:{question:"=",readOnly:"=?",options:"=?"},templateUrl:"mw-question-priority-list-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["mwFormUuid",function(e){var t=this;t.isNewItem={},this.$onInit=function(){t.question.priorityList||(t.question.priorityList=[],t.addNewItem()),t.question.priorityList.sort((function(e,t){return e.orderNo-t.orderNo})),t.itemsSortableConfig={disabled:t.readOnly,ghostClass:"beingDragged",handle:".drag-handle",onEnd:function(e,n){!function(e){if(e)for(var t=0;t<e.length;t++){e[t].orderNo=t+1}}(t.question.priorityList)}}},t.addNewItem=function(n){var a={id:e.get(),orderNo:t.question.priorityList.length+1,value:null};n||(t.isNewItem[a.id]=!0),t.question.priorityList.push(a)},t.removeItem=function(e){var n=t.question.priorityList.indexOf(e);-1!=n&&t.question.priorityList.splice(n,1)},t.keyPressedOnInput=function(e,n){delete t.isNewItem[n.id],13===e.which&&(e.preventDefault(),t.addNewItem())},1===angular.version.major&&angular.version.minor<5&&this.$onInit()}],link:function(e,t,n,a){e.ctrl}}})),angular.module("mwFormBuilder").directive("mwQuestionOfferedAnswerListBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormQuestionBuilder",scope:{question:"=",formObject:"=",readOnly:"=?",options:"=?",disableOtherAnswer:"=?"},templateUrl:"mw-question-offered-answer-list-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["FormQuestionBuilderId","mwFormUuid",function(e,t){var n=this;this.$onInit=function(){n.config={radio:{},checkbox:{}},n.isNewAnswer={},n.question.offeredAnswers&&n.question.offeredAnswers.sort((function(e,t){return e.orderNo-t.orderNo})),n.offeredAnswersSortableConfig={disabled:n.readOnly,ghostClass:"beingDragged",handle:".drag-handle",onEnd:function(e,t){!function(){if(n.question.offeredAnswers)for(var e=0;e<n.question.offeredAnswers.length;e++){n.question.offeredAnswers[e].orderNo=e+1}}()}}},n.addNewOfferedAnswer=function(){var e=n.possiblePageFlow[0],a={id:t.get(),orderNo:n.question.offeredAnswers.length+1,value:null,pageFlow:e};n.isNewAnswer[a.id]=!0,n.question.offeredAnswers.push(a)},n.removeOfferedAnswer=function(e){var t=n.question.offeredAnswers.indexOf(e);-1!=t&&n.question.offeredAnswers.splice(t,1)},n.addCustomAnswer=function(){n.question.otherAnswer=!0},n.removeCustomAnswer=function(){n.question.otherAnswer=!1},n.keyPressedOnInput=function(e,t){delete n.isNewAnswer[t.id],13===e.which&&(e.preventDefault(),n.addNewOfferedAnswer())},1===angular.version.major&&angular.version.minor<5&&this.$onInit()}],link:function(e,t,n,a){e.ctrl.possiblePageFlow=a.possiblePageFlow}}})),angular.module("mwFormBuilder").directive("mwQuestionGridBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormQuestionBuilder",scope:{question:"=",formObject:"=",readOnly:"=?",options:"=?"},templateUrl:"mw-question-grid-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["mwFormUuid","MW_GRID_CELL_INPUT_TYPES",function(e,t){var n=this;function a(e){if(e)for(var t=0;t<e.length;t++){e[t].orderNo=t+1}}function o(e){e.sort((function(e,t){return e.orderNo-t.orderNo}))}this.$onInit=function(){n.cellInputTypes=t,n.isNewInput={},n.question.grid||(n.question.grid={rows:[],cols:[]},n.addNewRow(),n.addNewCol(!0)),n.question.grid.cellInputType||(n.question.grid.cellInputType=n.cellInputTypes[0]),o(n.question.grid.rows),o(n.question.grid.cols),n.rowsSortableConfig={disabled:n.readOnly,ghostClass:"beingDragged",handle:".drag-handle",onEnd:function(e,t){a(n.question.grid.rows)}},n.colsSortableConfig={disabled:n.readOnly,ghostClass:"beingDragged",handle:".drag-handle",onEnd:function(e,t){a(n.question.grid.cols)}}},n.addNewRow=function(t){var a={id:e.get(),orderNo:n.question.grid.rows.length+1,label:null};t||(n.isNewInput[a.id]=!0),n.question.grid.rows.push(a)},n.addNewCol=function(t){var a={id:e.get(),orderNo:n.question.grid.cols.length+1,label:null};t||(n.isNewInput[a.id]=!0),n.question.grid.cols.push(a)},n.removeRow=function(e){var t=n.question.grid.rows.indexOf(e);-1!=t&&n.question.grid.rows.splice(t,1)},n.removeCol=function(e){var t=n.question.grid.cols.indexOf(e);-1!=t&&n.question.grid.cols.splice(t,1)},n.keyPressedOnInput=function(e,t,a){delete n.isNewInput[t.id],13===e.which&&(e.preventDefault(),"row"==a?n.addNewRow():n.addNewCol())},1===angular.version.major&&angular.version.minor<5&&this.$onInit()}],link:function(e,t,n,a){e.ctrl}}})),angular.module("mwFormBuilder").directive("mwQuestionDivisionBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormQuestionBuilder",scope:{question:"=",readOnly:"=?",options:"=?"},templateUrl:"mw-question-division-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["mwFormUuid",function(e){var t=this;t.$onInit=function(){t.isNewItem={},t.question.divisionList||(t.question.divisionList=[],t.addNewItem()),t.question.divisionList.sort((function(e,t){return e.orderNo-t.orderNo})),t.itemsSortableConfig={disabled:t.readOnly,ghostClass:"beingDragged",handle:".drag-handle",onEnd:function(e,n){!function(e){if(e)for(var t=0;t<e.length;t++){e[t].orderNo=t+1}}(t.question.divisionList)}}},t.addNewItem=function(n){var a={id:e.get(),orderNo:t.question.divisionList.length+1,value:null};n||(t.isNewItem[a.id]=!0),t.question.divisionList.push(a)},t.removeItem=function(e){var n=t.question.divisionList.indexOf(e);-1!=n&&t.question.divisionList.splice(n,1)},t.keyPressedOnInput=function(e,n){delete t.isNewItem[n.id],13===e.which&&(e.preventDefault(),t.addNewItem())},1===angular.version.major&&angular.version.minor<5&&t.$onInit()}],link:function(e,t,n,a){e.ctrl}}})),angular.module("mwFormBuilder").directive("mwLabel",(function(){return{replace:!0,restrict:"AE",scope:{labelKey:"@?",labelText:"@?",labelFor:"@",labelClass:"@",labelTranslateValues:"="},templateUrl:"mw-label.html",controllerAs:"ctrl",bindToController:!0,controller:["mwFormUuid",function(e){}],link:function(e,t,n){}}})),angular.module("mwFormBuilder").factory("FormQuestionBuilderId",(function(){var e=0;return{next:function(){return++e}}})).directive("mwFormQuestionBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormPageElementBuilder",scope:{question:"=",formObject:"=",onReady:"&",isPreview:"=?",readOnly:"=?"},templateUrl:"mw-form-question-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["$timeout","FormQuestionBuilderId","mwFormBuilderOptions",function(e,t,n){var a=this;a.$onInit=function(){a.id=t.next(),a.questionTypes=n.questionTypes,a.formSubmitted=!1,a.question.offeredAnswers&&a.question.offeredAnswers.sort((function(e,t){return e.orderNo-t.orderNo})),a.offeredAnswersSortableConfig={disabled:a.readOnly,ghostClass:"beingDragged",handle:".drag-handle",onEnd:function(e,t){!function(){if(a.question.offeredAnswers)for(var e=0;e<a.question.offeredAnswers.length;e++)a.question.offeredAnswers[e].orderNo=e+1}()}}},a.save=function(){a.formSubmitted=!0,a.form.$valid&&a.onReady()};var o=["radio","checkbox","select"];function r(){a.question.offeredAnswers&&a.question.offeredAnswers.forEach((function(e){a.question.pageFlowModifier?e.pageFlow=a.possiblePageFlow[0]:delete e.pageFlow}))}a.questionTypeChanged=function(){-1!==o.indexOf(a.question.type)&&(a.question.offeredAnswers||(a.question.offeredAnswers=[])),"radio"!=a.question.type&&(r(),e((function(){a.question.pageFlowModifier=!1}))),-1===o.indexOf(a.question.type)&&delete a.question.offeredAnswers,"grid"!=a.question.type&&delete a.question.grid,"priority"!=a.question.type&&delete a.question.priorityList},a.pageFlowModifierChanged=function(){r()},1===angular.version.major&&angular.version.minor<5&&a.$onInit()}],link:function(e,t,n,a){var o=e.ctrl;o.possiblePageFlow=a.possiblePageFlow,o.options=a.options}}})),angular.module("mwFormBuilder").factory("FormParagraphBuilderId",(function(){var e=0;return{next:function(){return++e}}})).directive("mwFormParagraphBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormPageElementBuilder",scope:{paragraph:"=",formObject:"=",onReady:"&",isPreview:"=?",readOnly:"=?"},templateUrl:"mw-form-paragraph-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["$timeout","FormParagraphBuilderId",function(e,t){var n=this;n.$onInit=function(){n.id=t.next(),n.formSubmitted=!1},n.save=function(){n.formSubmitted=!0,n.form.$valid&&n.onReady()},1===angular.version.major&&angular.version.minor<5&&n.$onInit()}],link:function(e,t,n,a){e.ctrl}}})),angular.module("mwFormBuilder").directive("mwFormPageElementBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormPageBuilder",scope:{pageElement:"=",formObject:"=",isActive:"=",isFirst:"=",isLast:"=",onReady:"&",readOnly:"=?"},templateUrl:"mw-form-page-element-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["mwFormUuid",function(e){var t=this;t.$onInit=function(){"question"==t.pageElement.type?t.pageElement.question||(t.pageElement.question={id:e.get(),text:null,type:null,required:!0}):"image"==t.pageElement.type?t.pageElement.image||(t.pageElement.image={id:e.get(),align:"left"}):"paragraph"==t.pageElement.type&&(t.pageElement.paragraph||(t.pageElement.paragraph={id:e.get(),html:""}))},t.callback=function(e,n){e.preventDefault(),e.stopPropagation(),n.callback&&"function"==typeof n.callback&&n.callback(t.pageElement)},t.filter=function(e){return!(!e.showInOpen&&t.isActive)&&(!(!e.showInPreview&&!t.isActive)&&(!e.filter||"function"!=typeof e.filter||e.filter(t.pageElement)))},1===angular.version.major&&angular.version.minor<5&&t.$onInit()}],link:function(e,t,n,a){var o=e.ctrl;o.possiblePageFlow=a.possiblePageFlow,o.hoverIn=function(){o.isHovered=!0},o.hoverOut=function(){o.isHovered=!1},o.editElement=function(){a.selectElement(o.pageElement)},o.cloneElement=function(e){e.preventDefault(),e.stopPropagation(),a.cloneElement(o.pageElement)},o.removeElement=function(){a.removeElement(o.pageElement)},o.moveDown=function(){a.moveDownElement(o.pageElement),e.$emit("mwForm.questionUpdate")},o.moveUp=function(){a.moveUpElement(o.pageElement),e.$emit("mwForm.questionUpdate")},o.options=a.options,o.onImageSelection=a.onImageSelection}}})),angular.module("mwFormBuilder").directive("mwFormPageBuilder",["$rootScope",function(e){return{replace:!0,restrict:"AE",require:"^mwFormBuilder",scope:{formPage:"=",formObject:"=",isFirst:"=",isLast:"=",readOnly:"=?"},templateUrl:"mw-form-page-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["$scope","$timeout","mwFormUuid","mwFormClone","mwFormBuilderOptions",function(t,n,a,o,r){var i=this;function s(){for(var e=0;e<i.formPage.elements.length;e++)i.formPage.elements[e].orderNo=e+1}function l(e,t,n){var a=e[t];e.splice(t,1),e.splice(n,0,a)}i.$onInit=function(){i.hoverEdit=!1,i.formPage.namedPage=!!i.formPage.name,i.isFolded=!1,i.formPage.elements.sort((function(e,t){return e.orderNo-t.orderNo})),i.sortableConfig={disabled:i.readOnly,ghostClass:"beingDragged",group:"survey",handle:".inactive",chosenClass:".page-element-list",onEnd:function(e,n){s(),t.$emit("mwForm.questionUpdate")}},i.activeElement=null},i.unfold=function(){i.isFolded=!1},i.fold=function(){i.isFolded=!0},i.pageNameChanged=function(){e.$broadcast("mwForm.pageEvents.pageNameChanged",{page:i.formPage})},i.addElement=function(e){e||(e=r.elementTypes[0]);var t=function(e,t){return{id:a.get(),orderNo:t,type:e}}(e,i.formPage.elements.length+1);i.activeElement=t,i.formPage.elements.push(t)},i.cloneElement=function(e,t){var n=i.formPage.elements.indexOf(e),a=o.cloneElement(e);t&&(i.activeElement=a),i.formPage.elements.splice(n,0,a)},i.removeElement=function(e){var t=i.formPage.elements.indexOf(e);i.formPage.elements.splice(t,1)},i.moveDownElement=function(e){var t=i.formPage.elements.indexOf(e),n=t+1;n<i.formPage.elements.length&&l(i.formPage.elements,t,n),s()},i.moveUpElement=function(e){var t=i.formPage.elements.indexOf(e),n=t-1;n>=0&&l(i.formPage.elements,t,n),s()},i.isElementTypeEnabled=function(e){return-1!==r.elementTypes.indexOf(e)},i.addQuestion=function(){i.addElement("question")},i.addImage=function(){i.addElement("image")},i.addParagraph=function(){i.addElement("paragraph")},i.isElementActive=function(e){return i.activeElement==e},i.selectElement=function(e){i.activeElement=e},i.onElementReady=function(){n((function(){i.activeElement=null}))},i.hoverIn=function(){i.hoverEdit=!0},i.hoverOut=function(){i.hoverEdit=!1},i.updateElementsOrderNo=s,1===angular.version.major&&angular.version.minor<5&&i.$onInit()}],link:function(e,t,n,a){var o=e.ctrl;o.possiblePageFlow=a.possiblePageFlow,o.moveDown=function(){a.moveDownPage(o.formPage)},o.moveUp=function(){a.moveUpPage(o.formPage)},o.removePage=function(){a.removePage(o.formPage)},o.addPage=function(){a.addPageAfter(o.formPage)},e.$watch("ctrl.formPage.elements.length",(function(t,n){t!=n&&(o.updateElementsOrderNo(),e.$emit("mwForm.questionUpdate"))})),o.options=a.options,o.onImageSelection=a.onImageSelection}}}]),angular.module("mwFormBuilder").factory("FormImageBuilderId",(function(){var e=0;return{next:function(){return++e}}})).directive("mwFormImageBuilder",(function(){return{replace:!0,restrict:"AE",require:"^mwFormPageElementBuilder",scope:{image:"=",formObject:"=",onReady:"&",isPreview:"=?",readOnly:"=?",onImageSelection:"&"},templateUrl:"mw-form-image-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["$timeout","FormImageBuilderId","mwFormUuid",function(e,t,n){var a=this;a.id=t.next(),a.formSubmitted=!1,a.save=function(){a.formSubmitted=!0,a.form.$valid&&a.onReady()},a.selectImageButtonClicked=function(){a.onImageSelection().then((function(e){a.image.src=e})).catch((function(){}))},a.setAlign=function(e){a.image.align=e}}],link:function(e,t,n,a){e.ctrl}}})),angular.module("mwFormBuilder").directive("mwFormConfirmationPageBuilder",(function(){return{replace:!0,restrict:"AE",scope:{formObject:"=",readOnly:"=?",defaultMessage:"=?"},templateUrl:"mw-form-confirmation-page-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["$timeout",function(e){var t=this;t.hoverEdit=!1,t.hoverIn=function(){t.hoverEdit=!0},t.hoverOut=function(){t.hoverEdit=!1}}],link:function(e,t,n){}}})),angular.module("mwFormBuilder").directive("mwFormBuilder",["$rootScope",function(e){return{replace:!0,restrict:"AE",scope:{formData:"=",readOnly:"=?",options:"=?",formStatus:"=?",onImageSelection:"&",api:"=?"},templateUrl:"mw-form-builder.html",controllerAs:"ctrl",bindToController:!0,controller:["$scope","mwFormUuid","MW_QUESTION_TYPES","mwFormBuilderOptions",function(t,n,a,o){var r=this;function i(e){var t=null;return r.possiblePageFlow&&(t=r.possiblePageFlow[0]),{id:n.get(),number:e,name:null,description:null,pageFlow:t,elements:[]}}function s(){var e=1;void 0!==r.formData.pages&&r.formData.pages.forEach((function(t){void 0!==t.elements&&t.elements.forEach((function(t){"question"==t.type&&void 0!==t.question&&(t.question.number=e++)}))}))}function l(){for(var e=0;e<r.formData.pages.length;e++)r.formData.pages[e].number=e+1;r.updatePageFlow()}function c(e,t,n){var a=e[t];e.splice(t,1),e.splice(n,0,a)}r.$onInit=function(){r.currentPage=0,r.formData.pages&&r.formData.pages.length||(r.formData.pages=[],r.formData.pages.push(i(1))),r.options=o.$init(r.options),r.api&&(r.api.reset=function(){for(var e in r.formData)r.formData.hasOwnProperty(e)&&"pages"!=e&&delete r.formData[e];r.formData.pages.length=0,r.formData.pages.push(i(1))}),setTimeout((function(){s()}),0),t.$watch("ctrl.formData",(function(e,t){s()}))},r.numberOfPages=function(){return Math.ceil(r.formData.pages.length/r.options.pageSize)},r.lastPage=function(){r.currentPage=Math.ceil(r.formData.pages.length/r.options.pageSize-1)},r.addPage=function(){r.formData.pages.push(i(r.formData.pages.length+1)),r.lastPage(),e.$broadcast("mwForm.pageEvents.pageAdded")},r.onChangePageSize=function(){r.currentPage>Math.ceil(r.formData.pages.length/r.options.pageSize-1)&&(r.currentPage=Math.ceil(r.formData.pages.length/r.options.pageSize-1))},t.$on("mwForm.questionUpdate",(function(){setTimeout((function(){s()}),0)})),r.addPageAfter=function(t){var n=r.formData.pages.indexOf(t)+1,a=i(t.number+1);n<r.formData.pages.length?r.formData.pages.splice(n,0,a):r.formData.pages.push(a),l(),s(),e.$broadcast("mwForm.pageEvents.pageAdded")},r.moveDownPage=function(t){var n=r.formData.pages.indexOf(t),a=n+1;a<r.formData.pages.length&&c(r.formData.pages,n,a),l(),s(),e.$broadcast("mwForm.pageEvents.pageMoved")},r.moveUpPage=function(t){var n=r.formData.pages.indexOf(t),a=n-1;a>=0&&c(r.formData.pages,n,a),l(),s(),e.$broadcast("mwForm.pageEvents.pageMoved")},r.removePage=function(t){var n=r.formData.pages.indexOf(t);r.formData.pages.splice(n,1),l(),s(),e.$broadcast("mwForm.pageEvents.pageRemoved"),r.onChangePageSize()},1===angular.version.major&&angular.version.minor<5&&r.$onInit()}],link:function(t,n,a){var o=t.ctrl;o.formStatus&&(o.formStatus.form=o.form),o.possiblePageFlow=[];var r={nextPage:!0,label:"mwForm.pageFlow.goToNextPage"};o.possiblePageFlow.push(r),o.isSamePageFlow=function(e,t){return e.page&&t.page&&e.page.id==t.page.id||e.formSubmit&&t.formSubmit||e.nextPage&&t.nextPage},o.updatePageFlow=function(){o.possiblePageFlow.length=1,o.formData.pages.forEach((function(e){o.possiblePageFlow.push({page:{id:e.id,number:e.number},label:"mwForm.pageFlow.goToPage"})})),o.possiblePageFlow.push({formSubmit:!0,label:"mwForm.pageFlow.submitForm"}),o.formData.pages.forEach((function(e){o.possiblePageFlow.forEach((function(t){e.pageFlow?o.isSamePageFlow(t,e.pageFlow)&&(e.pageFlow=t):e.pageFlow=r,e.elements.forEach((function(e){var n=e.question;n&&n.pageFlowModifier&&n.offeredAnswers.forEach((function(e){e.pageFlow&&o.isSamePageFlow(t,e.pageFlow)&&(e.pageFlow=t)}))}))}))}))},t.$watch("ctrl.formData.pages.length",(function(e,t){o.updatePageFlow()})),t.$watch("ctrl.currentPage",(function(t,n){e.$broadcast("mwForm.pageEvents.pageCurrentChanged",{index:o.currentPage})})),t.$on("mwForm.pageEvents.changePage",(function(e,t){void 0!==t.page&&t.page<o.numberOfPages()&&(o.currentPage=t.page)})),t.$on("mwForm.pageEvents.addPage",(function(e,t){o.addPage()}))}}}]),angular.module("mwFormBuilder").filter("mwStartFrom",(function(){return function(e,t){return t=+t,e.slice(t)}})),angular.module("mwFormBuilder").constant("MW_QUESTION_TYPES",["text","textarea","radio","checkbox","select","grid","priority","division","number","date","time","email","range","url","star"]).constant("MW_ELEMENT_TYPES",["question","image","paragraph"]).constant("MW_GRID_CELL_INPUT_TYPES",["radio","checkbox","text","number","date","time"]).factory("mwFormBuilderOptions",["MW_ELEMENT_TYPES","MW_QUESTION_TYPES",function(e,t){var n={title:null,icon:null,text:null,callback:null,filter:null,showInOpen:!1,showInPreview:!0,cssClass:""},a={key:null,label:null,selects:[],required:!0},o={elementTypes:e,questionTypes:t,elementButtons:[],pagesSize:[10,25,50,100],pageSize:10,customQuestionSelects:[],customElements:[]};function r(e,t){return e?e.map((function(e){return angular.extend({},t,e)})):[]}var i={$init:function(e){return angular.extend(i,o,e),i.customQuestionSelects=r(i.customQuestionSelects,a),i.elementButtons=r(i.elementButtons,n),i}};return i}]),angular.module("mwFormBuilder").directive("wdFocusMe",["$timeout","$parse",function(e,t){return{link:function(n,a,o){var r=t(o.wdFocusMe);n.$watch(r,(function(t){!0===t&&e((function(){a[0].focus()}))})),a.bind("blur",(function(){e((function(){n.$apply(r.assign(n,!1))}))}))}}}]).factory("focus",["$timeout","$window",function(e,t){return function(n){e((function(){var e=t.document.getElementById(n);e&&e.focus()}))}}]),angular.module("mwFormBuilder").directive("mwConfirmClick",["$window",function(e){return{restrict:"A",link:function(t,n,a){var o=a.wdConfirmClick||"Are you sure?";n.bind("click",(function(n){e.confirm(o)&&t.$apply(a.confirmedAction)}))}}}])},"./node_modules/@xenialab/insight-surveys/dist/form-utils.js":()=>{angular.module("mwFormUtils",["mwFormUtils.responseUtils"]),angular.module("mwFormUtils.responseUtils",[]).factory("mwFormResponseUtils",(function(){var e={},t=["text","textarea","number","date","time","email","range","url","star"];return e.$getObjectByIdMap=function(e,t){var n={};return e?(e.forEach((function(e){var a=e;t&&(a=t(e)),n[e.id]=a})),n):n},e.$getOfferedAnswerByIdMap=function(t){return e.$getObjectByIdMap(t.offeredAnswers,(function(e){return{id:e.id,value:e.value}}))},e.$extractResponseForQuestionWithOfferedAnswers=function(t,n){var a=e.$getOfferedAnswerByIdMap(t),o={};return n.selectedAnswers?(o.selectedAnswers=[],n.selectedAnswers.forEach((function(e){o.selectedAnswers.push(a[e])}))):n.selectedAnswer&&(o.selectedAnswer=a[n.selectedAnswer]),n.other&&(o.other=n.other),o},e.$extractResponseForPriorityQuestion=function(t,n){var a=[];if(!n.priorityList)return a;var o=e.$getObjectByIdMap(t.priorityList);return n.priorityList.forEach((function(e){var t=o[e.id];a.push({id:t.id,value:t.value,priority:e.priority})})),a},e.$extractResponseForDivisionQuestion=function(t,n){var a=[],o=e.$getObjectByIdMap(t.divisionList);return Object.getOwnPropertyNames(n).forEach((function(e){var t=n[e],r=o[e];r&&a.push({id:r.id,label:r.value,value:t})})),a},e.$extractResponseForGridQuestion=function(t,n){if(!t.grid||!t.grid.rows)return a;if("radio"==t.grid.cellInputType)return e.$extractResponseForRadioGridQuestion(t,n);var a=[];return t.grid.rows.forEach((function(e){t.grid.cols.forEach((function(o){var r={row:{id:e.id,label:e.label},col:{id:o.id,label:o.label},value:null};if(n.hasOwnProperty(e.id)&&n[e.id].hasOwnProperty(o.id)){var i=n[e.id][o.id];"date"==t.grid.cellInputType&&i instanceof Date?r.value=i.toLocaleDateString():"time"==t.grid.cellInputType&&i instanceof Date?r.value=i.toLocaleTimeString():r.value=i}a.push(r)}))})),a},e.$extractResponseForRadioGridQuestion=function(t,n){var a=[],o=e.$getObjectByIdMap(t.grid.cols);return t.grid.rows.forEach((function(e){var t=n[e.id],r=null;t&&(r=o[t]);var i={row:{id:e.id,label:e.label},col:null};r&&(i.col={id:r.id,label:r.label}),a.push(i)})),a},e.extractResponse=function(n,a){return-1!==t.indexOf(n.type)?a.answer:"radio"==n.type||"checkbox"==n.type||"select"==n.type?e.$extractResponseForQuestionWithOfferedAnswers(n,a):"grid"==n.type?e.$extractResponseForGridQuestion(n,a):"priority"==n.type?e.$extractResponseForPriorityQuestion(n,a):"division"==n.type?e.$extractResponseForDivisionQuestion(n,a):null},e.mergeFormWithResponse=function(t,n){var a={};return angular.copy(t,a),a.pages.forEach((function(t){t.elements.forEach((function(t){var a=t.question;if(a){var o=n[a.id];o&&(a.response=e.extractResponse(a,o))}}))})),a},e.getQuestionList=function(e,t){var n=[];return e.pages.forEach((function(e){e.elements.forEach((function(e){if(e.question){var a=e.question;t&&(a={},angular.copy(e.question,a)),n.push(a)}}))})),n},e.getQuestionWithResponseList=function(t,n){var a=[];return e.getQuestionList(t,!0).forEach((function(t){var o=n[t.id];t.response=o?e.extractResponse(t,o):null,a.push(t)})),a},e.$$getHeader=function(e,t,n,a,o){var r="";return o&&((e||0===e)&&(r+=e+"."),null!=n&&(Array.isArray(n)||(n=[n]),n.forEach((function(e){r+=e+"."}))),r.length&&(r+=" ")),r+=t,null==a||(Array.isArray(a)||(a=[a]),a.forEach((function(e){r+=" ["+e+"]"}))),r},e.getResponseSheetHeaders=function(t,n){var a=["grid","priority","division"],o=[],r=0;return e.getQuestionList(t).forEach((function(t){r++;var i=1;if(-1===a.indexOf(t.type))o.push(e.$$getHeader(r,t.text,null,null,n));else if("grid"==t.type){if(!t.grid)return;"radio"==t.grid.cellInputType?t.grid.rows.forEach((function(a){o.push(e.$$getHeader(r,t.text,i,a.label,n)),i++})):t.grid.rows.forEach((function(a,s){t.grid.cols.forEach((function(l,c){o.push(e.$$getHeader(r,t.text,[s+1,c+1],[a.label,l.label],n)),i++}))}))}else if("priority"==t.type){if(!t.priorityList)return;t.priorityList.forEach((function(a){o.push(e.$$getHeader(r,t.text,i,a.value,n)),i++}))}else if("division"==t.type){if(!t.divisionList)return;t.divisionList.forEach((function(a){o.push(e.$$getHeader(r,t.text,i,a.value,n)),i++}))}})),o},e.getResponseSheetRow=function(t,n){var a="; ",o=[];if(!n)return o;for(var r=e.getQuestionWithResponseList(t,n),i=["radio","checkbox","select","grid","priority","division"],s=0;s<r.length;s++){var l=r[s],c=l.response;if(-1!==i.indexOf(l.type)){if("radio"==l.type||"select"==l.type){if(!c){o.push("");continue}var u="";c.selectedAnswer&&(u=c.selectedAnswer.value),c.other&&(u&&(u+=a),u+=c.other),o.push(u)}else if("checkbox"==l.type){if(!c||!c.selectedAnswers){o.push("");continue}u="";c.selectedAnswers.forEach((function(e){u&&(u+=a),u+=e.value})),c.other&&(u&&(u+=a),u+=c.other),o.push(u)}else if("grid"==l.type){if(!l.grid)continue;if(!c){"radio"==l.grid.cellInputType?l.grid.rows.forEach((function(){o.push("")})):l.grid.rows.forEach((function(){l.grid.cols.forEach((function(){o.push("")}))}));continue}"radio"==l.grid.cellInputType?c.forEach((function(e){o.push(e.col?e.col.label:"")})):c.forEach((function(e){o.push(e.value)}))}else if("priority"==l.type){if(!l.priorityList)continue;var d=e.$getObjectByIdMap(c);l.priorityList.forEach((function(e){var t=d[e.id];t?o.push(t.priority):o.push("")}))}else if("division"==l.type){if(!l.divisionList)continue;var f=e.$getObjectByIdMap(c);l.divisionList.forEach((function(e){var t=f[e.id];t?o.push(t.value):o.push("")}))}}else o.push(c||"")}return o},e.getResponseSheetRows=function(t,n){return n.map((function(n){return e.getResponseSheetRow(t,n)}))},e.getResponseSheet=function(t,n,a){var o=[],r=e.getResponseSheetHeaders(t,a);return o.push(r),n?(n instanceof Array?n.forEach((function(n){o.push(e.getResponseSheetRow(t,n))})):o.push(e.getResponseSheetRow(t,n)),o):o},e}))},"./node_modules/@xenialab/insight-surveys/dist/form-viewer-material-tpls.min.js":()=>{angular.module("mwFormViewer").run(["$templateCache",function(e){e.put("mw-form-confirmation-page.html","<div class=mw-form-confirmation-page><div class=mw-confirmation-message ng-if=\"ctrl.submitStatus=='SUCCESS'\"><span ng-if=ctrl.confirmationMessage>{{::ctrl.print(ctrl.confirmationMessage)}}</span> <span ng-if=!ctrl.confirmationMessage translate=mwForm.confirmationPage.defaultMessage>Twoja odpowiedź została zapisana</span></div><div class=mw-error-message ng-if=\"ctrl.submitStatus=='ERROR'\"><span translate=mwForm.confirmationPage.errorMessage>Bład. Twoja odpowiedź nie została zapisana.</span></div><div class=mw-pending-message ng-if=\"ctrl.submitStatus=='IN_PROGRESS'\"><span translate=mwForm.confirmationPage.pendingMessage>Zapisywanie odpowiedzi w trakcie.</span></div></div>"),e.put("mw-form-question.html",'<div class=mw-form-question><div class=mw-question-text>{{::ctrl.print(ctrl.question.text)}} <span ng-if=ctrl.question.required>*</span></div><div class=mw-question-answers ng-switch=ctrl.question.type><div ng-switch-when=text><md-input-container class=md-block md-no-float><input class=form-control type=text ng-model=ctrl.questionResponse.answer placeholder="{{\'mwForm.question.preview.text\'|translate}}" ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></md-input-container></div><div ng-switch-when=textarea><md-input-container class=md-block md-no-float><textarea msd-elastic class=form-control ng-model=ctrl.questionResponse.answer placeholder="{{\'mwForm.question.preview.textarea\'|translate}}" ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></textarea></md-input-container></div><div ng-switch-when=radio><md-radio-group ng-model=ctrl.questionResponse.selectedAnswer ng-required="ctrl.question.required &&!ctrl.isOtherAnswer" ng-disabled=ctrl.readOnly ng-change=ctrl.selectedAnswerChanged()><md-radio-button ng-repeat="answer in ctrl.question.offeredAnswers" aria-label="{{ answer.value }}" ng-value=answer.id name=answer-for-question-{{ctrl.question.id}} ng-readonly=ctrl.readOnly>{{::ctrl.print(answer.value)}}</md-radio-button></md-radio-group><md-radio-group ng-model=ctrl.isOtherAnswer ng-change=ctrl.otherAnswerRadioChanged() ng-disabled=ctrl.readOnly ng-readonly=ctrl.readOnly><div layout=row layout-align="start center" class=mw-question-other-answer ng-if=ctrl.question.otherAnswer><div><md-radio-button ng-model=ctrl.isOtherAnswer ng-value=true name=other-answer-for-question-{{ctrl.question.id}} ng-disabled=ctrl.readOnly ng-readonly=ctrl.readOnly><span translate=mwForm.question.preview.otherAnswer>Inna</span>:</md-radio-button></div><div><md-input-container><input type=text name=other-answer-for-question-{{ctrl.question.id}} ng-model=ctrl.questionResponse.other class=form-control ng-disabled="!ctrl.isOtherAnswer || ctrl.readOnly" ng-required=ctrl.isOtherAnswer></md-input-container></div></div></md-radio-group></div><div ng-switch-when=checkbox><div class=checkbox ng-repeat="answer in ::ctrl.question.offeredAnswers" ng-disabled=ctrl.readOnly ng-readonly=ctrl.readOnly><md-checkbox name=answer-for-question-{{ctrl.question.id}} ng-checked="ctrl.questionResponse.selectedAnswers.indexOf(answer.id) != -1" ng-click=ctrl.toggleSelectedAnswer(answer) ng-disabled=ctrl.readOnly ng-readonly=ctrl.readOnly>{{::ctrl.print(answer.value)}}</md-checkbox></div><div layout=row layout-align="start center" class=mw-question-other-answer ng-if=ctrl.question.otherAnswer><md-checkbox name=answer-for-question-{{ctrl.question.id}} ng-model=ctrl.isOtherAnswer ng-change=ctrl.otherAnswerCheckboxChanged() ng-readonly=ctrl.readOnly ng-disabled=ctrl.readOnly><span translate=mwForm.question.preview.otherAnswer>Inna</span>:</md-checkbox><div><md-input-container><input type=text ng-model=ctrl.questionResponse.other name=other-answer-for-question-{{ctrl.question.id}} class=form-control ng-disabled="!ctrl.isOtherAnswer || ctrl.readOnly" ng-required=ctrl.isOtherAnswer></md-input-container></div></div><input type=hidden ng-model=ctrl.selectedAnswer ng-required="ctrl.question.required &&!ctrl.isOtherAnswer"></div><div ng-switch-when=select><md-input-container><md-select ng-disabled=ctrl.readOnly ng-required=ctrl.question.required ng-model=ctrl.questionResponse.selectedAnswer><md-option ng-repeat="answer in ctrl.question.offeredAnswers" ng-value=answer.id>{{::ctrl.print(answer.value)}}</md-option></md-select></md-input-container></div><div ng-switch-when=grid><div><table class="mw-data-table mw-no-border" border=0 cellpadding=5 cellspacing=0><thead><tr><td></td><td ng-repeat="col in ::ctrl.question.grid.cols"><label>{{::ctrl.print(col.label)}}</label></td></tr></thead><tbody><tr ng-repeat="row in ::ctrl.question.grid.rows"><td>{{::ctrl.print(row.label)}}</td><td ng-repeat="col in ctrl.question.grid.cols" ng-switch=ctrl.question.grid.cellInputType><md-radio-group ng-switch-when=radio ng-model=ctrl.questionResponse[row.id] ng-required=ctrl.question.required ng-disabled=ctrl.readOnly><md-radio-button ng-value=col.id name=answer-for-question-{{row.id}} ng-disabled=ctrl.readOnly></md-radio-button></md-radio-group><div ng-switch-when=checkbox><md-checkbox ng-model=ctrl.questionResponse[row.id][col.id] name=answer-for-question-{{row.id}}-{{col.id}} ng-required=ctrl.question.required ng-disabled=ctrl.readOnly></md-checkbox></div><md-input-container ng-switch-default><input ng-attr-type={{ctrl.question.grid.cellInputType}} ng-model=ctrl.questionResponse[row.id][col.id] name=answer-for-question-{{row.id}}-{{col.id}} ng-required=ctrl.question.required ng-disabled=ctrl.readOnly></md-input-container></td></tr></tbody></table></div></div><div ng-switch-when=division class=mw-division-list ng-form=ctrl.divisionForm><div class=form-inline style="margin-bottom: 5px" ng-repeat="item in ctrl.question.divisionList"><div class=form-group><label>{{::ctrl.print(item.value)}}</label><md-input-container md-no-float><input type=number class=form-control ng-model=ctrl.questionResponse[item.id] min=0 max={{ctrl.question.quantity}} required style="width: 80px" ng-change=ctrl.computeDivisionSum() ng-readonly=ctrl.readOnly></md-input-container><span>{{::ctrl.print(ctrl.question.unit)}}</span></div></div><div class=form-inline style="margin-bottom: 5px"><div class=form-group><label translate=mwForm.question.division.assignedSumLabel>Przydzielono</label><md-input-container md-no-float><input type=number class="form-control strict-validation" ng-model=ctrl.divisionSum min={{ctrl.question.quantity}} max={{ctrl.question.quantity}} style="width: 80px" readonly></md-input-container><span>{{ctrl.question.unit}} <span translate=mwForm.question.division.fromRequiredLabel>z wymaganych</span> <strong>{{ctrl.question.quantity}}</strong> {{ctrl.question.unit}} <i ng-show=ctrl.divisionForm.$valid class="fa fa-check" style=color:#008000;></i></span></div></div></div><mw-priority-list ng-switch-when=priority question-response=ctrl.questionResponse question=ctrl.question read-only=ctrl.readOnly></mw-priority-list><div ng-switch-when=number class=form-inline><md-input-container><input class=form-control min={{ctrl.question.min}} max={{ctrl.question.max}} type=number ng-model=ctrl.questionResponse.answer ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></md-input-container></div><div ng-switch-when=date class=form-inline><md-input-container><input class=form-control type=date ng-model=ctrl.questionResponse.answer ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></md-input-container></div><div ng-switch-when=datetime class=form-inline><md-input-container><input class=form-control type=datetime ng-model=ctrl.questionResponse.answer ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></md-input-container></div><div ng-switch-when=time class=form-inline><md-input-container><input class=form-control type=time ng-model=ctrl.questionResponse.answer ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></md-input-container></div><div ng-switch-when=email class=form-inline><md-input-container><input class=form-control type=email ng-model=ctrl.questionResponse.answer ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></md-input-container></div><div ng-switch-when=range class=mw-range><md-slider min={{ctrl.question.min}} max={{ctrl.question.max}} type=range ng-model=ctrl.questionResponse.answer ng-required=ctrl.question.required ng-disabled=ctrl.readOnly></md-slider><strong class=mw-range-value-label>{{ctrl.questionResponse.answer}}</strong></div><div ng-switch-when=url class=form-inline><md-input-container><input class=form-control type=url ng-model=ctrl.questionResponse.answer ng-required=ctrl.question.required ng-readonly=ctrl.readOnly></md-input-container></div><div ng-switch-when=star class=stars><input ng-repeat-start="n in [].constructor(ctrl.question.noStars) track by $index" type=radio id="{{\'star\' + (ctrl.question.noStars - $index)}}" ng-model=ctrl.questionResponse.answer ng-value="{{ctrl.question.noStars - $index}}" ng-required=ctrl.question.required> <label for="{{\'star\' + (ctrl.question.noStars - $index)}}" ng-show=!ctrl.readOnly class=star><i class="fa fa-star"></i></label> <span ng-show=ctrl.readOnly class=star><i class="fa fa-star"></i></span> <span ng-repeat-end class=stars-end></span></div></div></div>'),e.put("mw-form-viewer-content.html",'<div class=mw-form-viewer-content><h1 class=form-title>{{ctrl.formData.name}}</h1><div class=mw-title-page ng-if="!ctrl.currentPage && !ctrl.formSubmitted"><div class=mw-form-description>{{ctrl.formData.description}}</div><md-button type=button class="md-raised begin-response-button" ng-click=ctrl.beginResponse() translate=mwForm.buttons.begin>Rozpocznij</md-button></div><div class=mw-form-page ng-if=ctrl.currentPage><h2 class=mw-page-title ng-if="ctrl.currentPage.namedPage && ctrl.currentPage.name">{{ctrl.currentPage.name}}</h2><div class=mw-form-page-element-list><div class=mw-page-element ng-repeat="pageElement in ctrl.currentPage.elements" ng-switch=pageElement.type><mw-form-question ng-switch-when=question question=pageElement.question question-response=ctrl.responseData[pageElement.question.id] read-only=ctrl.readOnly on-response-changed=ctrl.onResponseChanged(pageElement)></mw-form-question><div class=image-element ng-switch-when=image><figure ng-class="\'align-\'+pageElement.image.align"><img ng-src={{pageElement.image.src}} ng-attr-alt=pageElement.image.caption><figcaption ng-if=pageElement.image.caption>{{pageElement.image.caption}}</figcaption></figure></div><div ng-switch-when=paragraph><p ng-bind-html=::ctrl.print(pageElement.paragraph.html)></p></div></div></div></div><mw-form-confirmation-page ng-if=ctrl.formSubmitted confirmation-message=ctrl.formData.confirmationMessage submit-status=ctrl.submitStatus></mw-form-confirmation-page><div class=mw-form-action-list><md-button type=button ng-if=ctrl.buttons.prevPage.visible class="md-raised prev-page-button" ng-click=ctrl.goToPrevPage()><i class="fa fa-chevron-left"></i> <span translate=mwForm.buttons.back>Wstecz</span></md-button><md-button type=button ng-disabled=ctrl.form.$invalid ng-if=ctrl.buttons.nextPage.visible class="md-raised next-page-button" ng-click=ctrl.goToNextPage()><span translate=mwForm.buttons.next>Dalej</span> <i class="fa fa-chevron-right"></i></md-button><md-button type=submit ng-disabled="ctrl.options.disableSubmit || ctrl.form.$invalid" ng-if="ctrl.buttons.submitForm.visible && !ctrl.readOnly" class="md-raised next-page-button" ng-click=ctrl.submitForm()><span translate=mwForm.buttons.submit>Submit</span></md-button></div></div>'),e.put("mw-form-viewer.html","<div class=mw-form-viewer><form ng-if=!ctrl.options.nestedForm name=ctrl.form role=form novalidate ng-include=\"'mw-form-viewer-content.html'\"></form><div ng-if=ctrl.options.nestedForm ng-form=ctrl.form ng-include=\"'mw-form-viewer-content.html'\"></div></div>"),e.put("mw-priority-list.html",'<div class=mw-priority-list><table><thead><tr><th translate=mwForm.question.priority.sorted>Sorted</th><th translate=mwForm.question.priority.available>Available</th></tr></thead><tbody><tr><td class=mw-ordered-items ng-sortable=ctrl.orderedConfig ng-model=ctrl.questionResponse.priorityList><div class=mw-item ng-repeat="item in ctrl.questionResponse.priorityList"><strong>{{$index+1}}.</strong> {{::ctrl.print(ctrl.idToItem[item.id].value)}}</div></td><td class=mw-available-items ng-sortable=ctrl.availableConfig ng-model=ctrl.availableItems><div class=mw-item ng-repeat="item in ctrl.availableItems">{{::ctrl.print(ctrl.idToItem[item.id].value)}}</div></td></tr></tbody></table><input type=hidden ng-model=ctrl.allItemsOrdered ng-required=ctrl.question.required></div>')}])},"./node_modules/@xenialab/insight-surveys/dist/form-viewer.js":()=>{angular.module("mwFormViewer",["ngSanitize","ui.bootstrap","ng-sortable","pascalprecht.translate"]),angular.module("mwFormViewer").directive("mwPriorityList",(function(){return{replace:!0,restrict:"AE",require:"^mwFormQuestion",scope:{question:"=",questionResponse:"=",readOnly:"=?",options:"=?"},templateUrl:"mw-priority-list.html",controllerAs:"ctrl",bindToController:!0,controller:function(){var e=this;function t(e){if(e)for(var t=0;t<e.length;t++){e[t].priority=t+1}}this.$onInit=function(){e.questionResponse.priorityList||(e.questionResponse.priorityList=[]),e.idToItem={},e.questionResponse.priorityList.sort((function(e,t){return e.priority-t.priority})),e.availableItems=[],e.question.priorityList.forEach((function(t){e.idToItem[t.id]=t,e.questionResponse.priorityList.some((function(e){return t.id==e.id}))||e.availableItems.push({priority:null,id:t.id})})),e.allItemsOrdered=0==e.availableItems.length||null;var n={disabled:e.readOnly,ghostClass:"beingDragged"};e.orderedConfig=angular.extend({},n,{group:{name:"A",pull:!1,put:["B"]},onEnd:function(n,a){t(e.questionResponse.priorityList)}}),e.availableConfig=angular.extend({},n,{sort:!1,group:{name:"B",pull:["A"],put:!1},onEnd:function(n,a){t(e.questionResponse.priorityList),e.allItemsOrdered=0==e.availableItems.length||null}})},1===angular.version.major&&angular.version.minor<5&&this.$onInit()},link:function(e,t,n,a){e.ctrl.print=a.print}}})),angular.module("mwFormViewer").directive("mwFormViewer",["$rootScope",function(e){return{replace:!0,restrict:"AE",scope:{formData:"=",responseData:"=",templateData:"=?",readOnly:"=?",options:"=?",formStatus:"=?",onSubmit:"&",api:"=?"},templateUrl:"mw-form-viewer.html",controllerAs:"ctrl",bindToController:!0,controller:["$scope","$timeout","$interpolate",function(t,n,a){var o=this;function r(){var e=1;void 0!==o.formData.pages&&o.formData.pages.forEach((function(t){void 0!==t.elements&&t.elements.forEach((function(t){"question"==t.type&&void 0!==t.question&&(t.question.number=e++)}))}))}o.$onInit=function(){o.defaultOptions={nestedForm:!1,autoStart:!1,disableSubmit:!1},o.options=angular.extend({},o.defaultOptions,o.options),o.submitStatus="NOT_SUBMITTED",o.formSubmitted=!1,o.formData.pages.sort((function(e,t){return e.number-t.number})),o.pageIdToPage={},o.formData.pages.forEach((function(e){o.pageIdToPage[e.id]=e})),o.buttons={prevPage:{visible:!1,disabled:!1},nextPage:{visible:!1,disabled:!1},submitForm:{visible:!1,disabled:!1}},o.resetPages(),o.api&&(o.api.reset=function(){for(var e in o.responseData)o.responseData.hasOwnProperty(e)&&delete o.responseData[e];o.buttons.submitForm.visible=!1,o.buttons.prevPage.visible=!1,o.buttons.nextPage.visible=!1,o.currentPage=null,n(o.resetPages,0)}),setTimeout((function(){r()}),0),t.$watch("ctrl.formData",(function(e,t){r()}))},o.submitForm=function(){o.formSubmitted=!0,o.submitStatus="IN_PROGRESS",o.setCurrentPage(null),o.onSubmit().then((function(){o.submitStatus="SUCCESS"})).catch((function(){o.submitStatus="ERROR"}))},o.setCurrentPage=function(e){if(o.currentPage=e,!e)return o.buttons.submitForm.visible=!1,o.buttons.prevPage.visible=!1,void(o.buttons.nextPage.visible=!1);o.setDefaultNextPage(),o.initResponsesForCurrentPage()},o.setDefaultNextPage=function(){var e=o.formData.pages.indexOf(o.currentPage);if(o.currentPage.isFirst=0==e,o.currentPage.isLast=e==o.formData.pages.length-1,o.buttons.submitForm.visible=o.currentPage.isLast,o.buttons.prevPage.visible=!o.currentPage.isFirst,o.buttons.nextPage.visible=!o.currentPage.isLast,o.currentPage.isLast?o.nextPage=null:o.nextPage=o.formData.pages[e+1],o.currentPage.pageFlow){var t=!1;o.currentPage.pageFlow.formSubmit?(o.nextPage=null,t=!0):o.currentPage.pageFlow.page?(o.nextPage=o.pageIdToPage[o.currentPage.pageFlow.page.id],o.buttons.nextPage.visible=!0):o.currentPage.isLast&&(o.nextPage=null,t=!0),o.buttons.submitForm.visible=t,o.buttons.nextPage.visible=!t}},o.initResponsesForCurrentPage=function(){o.currentPage.elements.forEach((function(e){var t=e.question;t&&!o.responseData[t.id]&&(o.responseData[t.id]={})}))},o.beginResponse=function(){o.formData.pages.length>0&&(o.setCurrentPage(o.formData.pages[0]),e.$broadcast("mwForm.pageEvents.pageCurrentChanged",{currentPage:o.currentPage}))},o.resetPages=function(){o.prevPages=[],o.currentPage=null,o.nextPage=null,o.formSubmitted=!1,o.options.autoStart&&o.beginResponse()},o.goToPrevPage=function(){var t=o.prevPages.pop();o.setCurrentPage(t),o.updateNextPageBasedOnAllAnswers(),e.$broadcast("mwForm.pageEvents.pageCurrentChanged",{currentPage:o.currentPage})},o.goToNextPage=function(){o.prevPages.push(o.currentPage),o.updateNextPageBasedOnAllAnswers(),o.setCurrentPage(o.nextPage),e.$broadcast("mwForm.pageEvents.pageCurrentChanged",{currentPage:o.currentPage})},o.updateNextPageBasedOnAllAnswers=function(){o.currentPage.elements.forEach((function(e){o.updateNextPageBasedOnPageElementAnswers(e)})),o.buttons.submitForm.visible=!o.nextPage,o.buttons.nextPage.visible=!!o.nextPage},o.updateNextPageBasedOnPageElementAnswers=function(e){var t=e.question;t&&t.pageFlowModifier&&t.offeredAnswers.forEach((function(e){e.pageFlow&&o.responseData[t.id].selectedAnswer==e.id&&(e.pageFlow.formSubmit?o.nextPage=null:e.pageFlow.page&&(o.nextPage=o.pageIdToPage[e.pageFlow.page.id]))}))},o.onResponseChanged=function(e){o.setDefaultNextPage(),o.updateNextPageBasedOnAllAnswers()},o.print=function(e){return e&&o.templateData?a(e)(o.templateData):e},1===angular.version.major&&angular.version.minor<5&&o.$onInit()}],link:function(t,n,a){var o=t.ctrl;o.formStatus&&(o.formStatus.form=o.form),t.$on("mwForm.pageEvents.changePage",(function(t,n){if(void 0!==n.page&&n.page<o.formData.pages.length){o.resetPages();for(var a=0;a<n.page;a++)o.prevPages.push(o.formData.pages[a]);var r=o.formData.pages[n.page];o.setCurrentPage(r),e.$broadcast("mwForm.pageEvents.pageCurrentChanged",{currentPage:r}),o.updateNextPageBasedOnAllAnswers()}}))}}}]),angular.module("mwFormViewer").factory("FormQuestionId",(function(){var e=0;return{next:function(){return++e}}})).directive("mwFormQuestion",(function(){return{replace:!0,restrict:"AE",require:"^mwFormViewer",scope:{question:"=",questionResponse:"=",readOnly:"=?",options:"=?",onResponseChanged:"&?"},templateUrl:"mw-form-question.html",controllerAs:"ctrl",bindToController:!0,controller:["$timeout","FormQuestionId",function(e,t){var n=this;this.$onInit=function(){n.id=t.next(),"radio"==n.question.type?(n.questionResponse.selectedAnswer||(n.questionResponse.selectedAnswer=null),n.questionResponse.other&&(n.isOtherAnswer=!0)):"checkbox"==n.question.type?(n.questionResponse.selectedAnswers&&n.questionResponse.selectedAnswers.length?n.selectedAnswer=!0:n.questionResponse.selectedAnswers=[],n.questionResponse.other&&(n.isOtherAnswer=!0)):"grid"==n.question.type?n.question.grid.cellInputType||(n.question.grid.cellInputType="radio"):"division"==n.question.type?(n.computeDivisionSum=function(){n.divisionSum=0,n.question.divisionList.forEach((function(e){0==n.questionResponse[e.id]||n.questionResponse[e.id]?n.divisionSum+=n.questionResponse[e.id]:(n.questionResponse[e.id]=null,n.divisionSum+=0)}))},n.computeDivisionSum()):"date"!=n.question.type&&"datetime"!=n.question.type&&"time"!=n.question.type||n.questionResponse.answer&&(n.questionResponse.answer=new Date(n.questionResponse.answer)),n.isAnswerSelected=!1,n.initialized=!0},n.selectedAnswerChanged=function(){delete n.questionResponse.other,n.isOtherAnswer=!1,n.answerChanged()},n.otherAnswerRadioChanged=function(){console.log("otherAnswerRadioChanged"),n.isOtherAnswer&&(n.questionResponse.selectedAnswer=null),n.answerChanged()},n.otherAnswerCheckboxChanged=function(){n.isOtherAnswer||delete n.questionResponse.other,n.selectedAnswer=!(!n.questionResponse.selectedAnswers.length&&!n.isOtherAnswer)||null,n.answerChanged()},n.toggleSelectedAnswer=function(e){-1===n.questionResponse.selectedAnswers.indexOf(e.id)?n.questionResponse.selectedAnswers.push(e.id):n.questionResponse.selectedAnswers.splice(n.questionResponse.selectedAnswers.indexOf(e.id),1),n.selectedAnswer=!(!n.questionResponse.selectedAnswers.length&&!n.isOtherAnswer)||null,n.answerChanged()},n.answerChanged=function(){n.onResponseChanged&&n.onResponseChanged()},1===angular.version.major&&angular.version.minor<5&&this.$onInit()}],link:function(e,t,n,a){e.ctrl.print=a.print}}})),angular.module("mwFormViewer").directive("mwFormConfirmationPage",(function(){return{replace:!0,restrict:"AE",require:"^mwFormViewer",scope:{submitStatus:"=",confirmationMessage:"=",readOnly:"=?"},templateUrl:"mw-form-confirmation-page.html",controllerAs:"ctrl",bindToController:!0,controller:function(){},link:function(e,t,n,a){e.ctrl.print=a.print}}}))},"./node_modules/@xenialab/md-color-picker/dist/mdColorPicker.min.js":(e,t,n)=>{var a,o,r,i=n("./node_modules/tinycolor2/dist/tinycolor-min.js");a=angular,o=window,r=i,function(e,t,n){"use strict";function a(e,n){this.type=e,this.restrictX=n,this.offset={x:null,y:null},this.height=255,this.$scope=null,this.$element=null,this.get=t.bind(this,(function(e,n,a){this.$scope=e,this.$element=n,this.canvas=this.$element.children()[0],this.marker=this.$element.children()[1],this.context=this.canvas.getContext("2d"),this.currentColor=this.$scope.color.toRgb(),this.currentHue=this.$scope.color.toHsv().h,this.$element.on("touchstart mousedown",t.bind(this,this.onMouseDown)),this.$scope.$on("mdColorPicker:colorSet",t.bind(this,this.onColorSet)),this.extra&&this.extra(),this.draw()}))}var o={hue:{getColorByPoint:function(e,t){var n=this.getImageData(e,t);return this.setMarkerCenter(t),new r({r:n[0],g:n[1],b:n[2]}).toHsl().h},draw:function(){this.$element.css({height:this.height+"px"}),this.canvas.height=this.height,this.canvas.width=this.height;var e=this.context.createLinearGradient(90,0,90,this.height);e.addColorStop(.01,"rgba(255, 0, 0, 1.000)"),e.addColorStop(.167,"rgba(255, 0, 255, 1.000)"),e.addColorStop(.333,"rgba(0, 0, 255, 1.000)"),e.addColorStop(.5,"rgba(0, 255, 255, 1.000)"),e.addColorStop(.666,"rgba(0, 255, 0, 1.000)"),e.addColorStop(.828,"rgba(255, 255, 0, 1.000)"),e.addColorStop(.999,"rgba(255, 0, 0, 1.000)"),this.context.fillStyle=e,this.context.fillRect(0,0,this.canvas.width,this.height)}},alpha:{getColorByPoint:function(e,t){var n=this.getImageData(e,t);return this.setMarkerCenter(t),n[3]/255},draw:function(){this.$element.css({height:this.height+"px"}),this.canvas.height=this.height,this.canvas.width=this.height;var e=this.context.createLinearGradient(90,0,90,this.height);e.addColorStop(.01,"rgba("+this.currentColor.r+","+this.currentColor.g+","+this.currentColor.b+", 1.000)"),e.addColorStop(.99,"rgba("+this.currentColor.r+","+this.currentColor.g+","+this.currentColor.b+", 0.000)"),this.context.fillStyle=e,this.context.fillRect(-1,-1,this.canvas.width+2,this.height+2)},extra:function(){this.$scope.$on("mdColorPicker:spectrumColorChange",t.bind(this,(function(e,t){this.currentColor=t.color,this.draw()})))}},spectrum:{getColorByPoint:function(e,t){var n=this.getImageData(e,t);return this.setMarkerCenter(e,t),{r:n[0],g:n[1],b:n[2]}},draw:function(){this.canvas.height=this.height,this.canvas.width=this.height,this.context.clearRect(0,0,this.canvas.width,this.canvas.height);var e=this.context.createLinearGradient(0,0,this.canvas.width,0);e.addColorStop(.01,"rgba(255, 255, 255, 1.000)"),e.addColorStop(.99,"rgba(255, 255, 255, 0.000)");var t=this.context.createLinearGradient(0,0,0,this.canvas.height);t.addColorStop(.01,"rgba(0, 0, 0, 0.000)"),t.addColorStop(.99,"rgba(0, 0, 0, 1.000)"),this.context.fillStyle="hsl( "+this.currentHue+", 100%, 50%)",this.context.fillRect(0,0,this.canvas.width,this.canvas.height),this.context.fillStyle=e,this.context.fillRect(-1,-1,this.canvas.width+2,this.canvas.height+2),this.context.fillStyle=t,this.context.fillRect(-1,-1,this.canvas.width+2,this.canvas.height+2)},extra:function(){this.$scope.$on("mdColorPicker:spectrumHueChange",t.bind(this,(function(e,t){this.currentHue=t.hue,this.draw();var n=this.getMarkerCenter(),a=this.getColorByPoint(n.x,n.y);this.setColor(a)})))}}};a.prototype.$window=t.element(e),a.prototype.getColorByMouse=function(e){var t=e.touches&&e.touches[0],n=t&&t.pageX||e.pageX,a=t&&t.pageY||e.pageY,o=Math.round(n-this.offset.x),r=Math.round(a-this.offset.y);return this.getColorByPoint(o,r)},a.prototype.setMarkerCenter=function(e,a){var o,r,i,s,l=-1*this.marker.offsetWidth/2,c=-1*this.marker.offsetHeight/2;a===n?(i=e+c,s=Math.round(Math.max(Math.min(this.height-1+c,i),c)),r=0):(o=e+l,i=a+c,r=Math.floor(Math.max(Math.min(this.height+l,o),l)),s=Math.floor(Math.max(Math.min(this.height+c,i),c))),t.element(this.marker).css({left:r+"px"}),t.element(this.marker).css({top:s+"px"})},a.prototype.getMarkerCenter=function(){return{x:this.marker.offsetLeft+Math.floor(this.marker.offsetWidth/2),y:this.marker.offsetTop+Math.floor(this.marker.offsetHeight/2)}},a.prototype.getImageData=function(e,t){return e=Math.max(0,Math.min(e,this.canvas.width-1)),t=Math.max(0,Math.min(t,this.canvas.height-1)),this.context.getImageData(e,t,1,1).data},a.prototype.onMouseDown=function(e){e.preventDefault(),e.stopImmediatePropagation(),this.$scope.previewUnfocus(),this.$element.css({cursor:"none"}),this.offset.x=this.canvas.getBoundingClientRect().left,this.offset.y=this.canvas.getBoundingClientRect().top;var n=t.bind(this,(function(e){switch(this.type){case"hue":var t=this.getColorByMouse(e);this.$scope.$broadcast("mdColorPicker:spectrumHueChange",{hue:t});break;case"alpha":var n=this.getColorByMouse(e);this.$scope.color.setAlpha(n),this.$scope.alpha=n,this.$scope.$apply();break;case"spectrum":var a=this.getColorByMouse(e);this.setColor(a)}}));this.$window.on("touchmove mousemove",n),this.$window.one("touchend mouseup",t.bind(this,(function(e){this.$window.off("touchmove mousemove",n),this.$element.css({cursor:"crosshair"})}))),n(e)},a.prototype.setColor=function(e){this.$scope.color._r=e.r,this.$scope.color._g=e.g,this.$scope.color._b=e.b,this.$scope.$apply(),this.$scope.$broadcast("mdColorPicker:spectrumColorChange",{color:e})},a.prototype.onColorSet=function(e,t){switch(this.type){case"hue":var n=this.$scope.color.toHsv();this.setMarkerCenter(this.canvas.height-this.canvas.height*(n.h/360));break;case"alpha":this.currentColor=t.color.toRgb(),this.draw();var a=t.color.getAlpha(),o=this.canvas.height-this.canvas.height*a;this.setMarkerCenter(o);break;case"spectrum":n=t.color.toHsv(),this.currentHue=n.h,this.draw();var r=this.canvas.width*n.s,i=this.canvas.height-this.canvas.height*n.v;this.setMarkerCenter(r,i)}},t.module("mdColorPicker",[]).run(["$templateCache",function(e){var t={clear:'<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>',gradient:'<path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14v6z"/>',tune:'<path d="M13 21v-2h8v-2h-8v-2h-2v6h2zM3 17v2h6v-2H3z"/><path d="M21 13v-2H11v2h10zM7 9v2H3v2h4v2h2V9H7z"/><path d="M15 9h2V7h4V5h-4V3h-2v6zM3 5v2h10V5H3z"/>',view_module:'<path d="M4 11h5V5H4v6z"/><path d="M4 18h5v-6H4v6z"/><path d="M10 18h5v-6h-5v6z"/><path d="M16 18h5v-6h-5v6z"/><path d="M10 11h5V5h-5v6z"/><path d="M16 5v6h5V5h-5z"/>',view_headline:'<path d="M4 15h17v-2H4v2z"/><path d="M4 19h17v-2H4v2z"/><path d="M4 11h17V9H4v2z"/><path d="M4 5v2h17V5H4z"/>',history:'<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"/><path d="M12 8v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>',clear_all:'<path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/>'};for(var n in t)t.hasOwnProperty(n)&&e.put([n,"svg"].join("."),['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">',t[n],"</svg>"].join(""))}]).factory("mdColorGradientCanvas",(function(){return function(e){var n=new a(e,"spectrum"!=e);return{template:'<canvas width="100%" height="100%"></canvas><div class="md-color-picker-marker"></div>',link:(n=t.merge(n,o[e])).get,controller:function(){}}}})).factory("mdColorPickerHistory",["$injector",function(e){var t=[],n=[],a=!1;try{a=e.get("$cookies")}catch(e){}if(a)for(var o=a.getObject("mdColorPickerHistory")||[],i=0;i<o.length;i++)t.push(r(o[i])),n.push(o[i]);var s=40;return{length:function(){return arguments[0]?void(s=arguments[0]):t.length},add:function(e){for(var o=0;o<t.length;o++)t[o].toRgbString()===e.toRgbString()&&(t.splice(o,1),n.splice(o,1));t.unshift(e),n.unshift(e.toRgbString()),t.length>s&&(t.pop(),n.pop()),a&&a.putObject("mdColorPickerHistory",n)},get:function(){return t},reset:function(){t=[],n=[],a&&a.putObject("mdColorPickerHistory",n)}}}]).directive("mdColorPicker",["$timeout","mdColorPickerHistory",function(e,t){return{templateUrl:"mdColorPicker.tpl.html",require:"^ngModel",scope:{options:"=mdColorPicker",type:"@",label:"@?",icon:"@?",random:"@?",default:"@?",openOnInput:"=?",hasBackdrop:"=?",clickOutsideToClose:"=?",skipHide:"=?",preserveScope:"=?",mdColorClearButton:"=?",mdColorPreview:"=?",mdColorAlphaChannel:"=?",mdColorSpectrum:"=?",mdColorSliders:"=?",mdColorGenericPalette:"=?",mdColorMaterialPalette:"=?",mdColorHistory:"=?",mdColorHex:"=?",mdColorRgb:"=?",mdColorHsl:"=?",mdColorDefaultTab:"=?"},controller:["$scope","$element","$attrs","$mdDialog","$mdColorPicker",function(e,t,a,o,r){if(e.options!==n)for(var i in e.options)if(e.options.hasOwnProperty(i)){var s;s=i,e.hasOwnProperty("mdColor"+i.slice(0,1).toUpperCase()+i.slice(1))&&(s="mdColor"+i.slice(0,1).toUpperCase()+i.slice(1)),!s||e[s]!==n&&""!==e[s]||(e[s]=e.options[i])}var l=t.controller("ngModel"),c=function(t){e.value=t||l.$viewValue||""};e.mdColorClearButton=e.mdColorClearButton===n||e.mdColorClearButton,e.mdColorPreview=e.mdColorPreview===n||e.mdColorPreview,e.mdColorAlphaChannel=e.mdColorAlphaChannel===n||e.mdColorAlphaChannel,e.mdColorSpectrum=e.mdColorSpectrum===n||e.mdColorSpectrum,e.mdColorSliders=e.mdColorSliders===n||e.mdColorSliders,e.mdColorGenericPalette=e.mdColorGenericPalette===n||e.mdColorGenericPalette,e.mdColorMaterialPalette=e.mdColorMaterialPalette===n||e.mdColorMaterialPalette,e.mdColorHistory=e.mdColorHistory===n||e.mdColorHistory,e.mdColorHex=e.mdColorHex===n||e.mdColorHex,e.mdColorRgb=e.mdColorRgb===n||e.mdColorRgb,e.mdColorHsl=e.mdColorHsl===n||e.mdColorHsl,c(),e.$watch((function(){return l.$modelValue}),(function(e){c(e)})),e.$watch("value",(function(e,t){""!==e&&void 0!==e&&e&&e!==t&&l.$setViewValue(e)})),e.clearValue=function(){l.$setViewValue("")},e.showColorPicker=function(t){r.show({value:e.value,defaultValue:e.default,random:e.random,clickOutsideToClose:e.clickOutsideToClose,hasBackdrop:e.hasBackdrop,skipHide:e.skipHide,preserveScope:e.preserveScope,mdColorAlphaChannel:e.mdColorAlphaChannel,mdColorSpectrum:e.mdColorSpectrum,mdColorSliders:e.mdColorSliders,mdColorGenericPalette:e.mdColorGenericPalette,mdColorMaterialPalette:e.mdColorMaterialPalette,mdColorHistory:e.mdColorHistory,mdColorHex:e.mdColorHex,mdColorRgb:e.mdColorRgb,mdColorHsl:e.mdColorHsl,mdColorDefaultTab:e.mdColorDefaultTab,$event:t}).then((function(t){e.value=t}))}}],compile:function(e,t){t.type=t.type!==n?t.type:0}}}]).directive("mdColorPickerContainer",["$compile","$timeout","$mdColorPalette","mdColorPickerHistory",function(e,n,a,o){return{templateUrl:"mdColorPickerContainer.tpl.html",scope:{value:"=?",default:"@",random:"@",ok:"=?",mdColorAlphaChannel:"=",mdColorSpectrum:"=",mdColorSliders:"=",mdColorGenericPalette:"=",mdColorMaterialPalette:"=",mdColorHistory:"=",mdColorHex:"=",mdColorRgb:"=",mdColorHsl:"=",mdColorDefaultTab:"="},controller:["$scope","$element","$attrs",function(e,i,s){var l=t.element(i[0].querySelector(".md-color-picker-container")),c=(t.element(l[0].querySelector(".md-color-picker-result")),t.element(i[0].querySelector(".md-color-picker-preview-input"))),u=["toHexString","toRgbString","toHslString"];e.default=e.default?e.default:e.random?r.random():"rgb(255,255,255)",e.value.search("#")>=0?e.type=0:e.value.search("rgb")>=0?e.type=1:e.value.search("hsl")>=0&&(e.type=2),e.color=new r(e.value||e.default),e.alpha=e.color.getAlpha(),e.history=o,e.materialFamily=[],e.whichPane=function(t){var n=0;if(t&&"string"==typeof t){for(var a="mdColor"+t.slice(0,1).toUpperCase()+t.slice(1),o=["mdColorSpectrum","mdColorSliders","mdColorGenericPalette","mdColorMaterialPalette","mdColorHistory"],r=0;r<o.length;r++)if(o[r]==a&&e[a]){n=r;break}}else t&&"number"==typeof t&&(n=t);return n}(e.mdColorDefaultTab),e.inputFocus=!1,Math.PI,e.palette=[["rgb(255, 204, 204)","rgb(255, 230, 204)","rgb(255, 255, 204)","rgb(204, 255, 204)","rgb(204, 255, 230)","rgb(204, 255, 255)","rgb(204, 230, 255)","rgb(204, 204, 255)","rgb(230, 204, 255)","rgb(255, 204, 255)"],["rgb(255, 153, 153)","rgb(255, 204, 153)","rgb(255, 255, 153)","rgb(153, 255, 153)","rgb(153, 255, 204)","rgb(153, 255, 255)","rgb(153, 204, 255)","rgb(153, 153, 255)","rgb(204, 153, 255)","rgb(255, 153, 255)"],["rgb(255, 102, 102)","rgb(255, 179, 102)","rgb(255, 255, 102)","rgb(102, 255, 102)","rgb(102, 255, 179)","rgb(102, 255, 255)","rgb(102, 179, 255)","rgb(102, 102, 255)","rgb(179, 102, 255)","rgb(255, 102, 255)"],["rgb(255, 51, 51)","rgb(255, 153, 51)","rgb(255, 255, 51)","rgb(51, 255, 51)","rgb(51, 255, 153)","rgb(51, 255, 255)","rgb(51, 153, 255)","rgb(51, 51, 255)","rgb(153, 51, 255)","rgb(255, 51, 255)"],["rgb(255, 0, 0)","rgb(255, 128, 0)","rgb(255, 255, 0)","rgb(0, 255, 0)","rgb(0, 255, 128)","rgb(0, 255, 255)","rgb(0, 128, 255)","rgb(0, 0, 255)","rgb(128, 0, 255)","rgb(255, 0, 255)"],["rgb(245, 0, 0)","rgb(245, 123, 0)","rgb(245, 245, 0)","rgb(0, 245, 0)","rgb(0, 245, 123)","rgb(0, 245, 245)","rgb(0, 123, 245)","rgb(0, 0, 245)","rgb(123, 0, 245)","rgb(245, 0, 245)"],["rgb(214, 0, 0)","rgb(214, 108, 0)","rgb(214, 214, 0)","rgb(0, 214, 0)","rgb(0, 214, 108)","rgb(0, 214, 214)","rgb(0, 108, 214)","rgb(0, 0, 214)","rgb(108, 0, 214)","rgb(214, 0, 214)"],["rgb(163, 0, 0)","rgb(163, 82, 0)","rgb(163, 163, 0)","rgb(0, 163, 0)","rgb(0, 163, 82)","rgb(0, 163, 163)","rgb(0, 82, 163)","rgb(0, 0, 163)","rgb(82, 0, 163)","rgb(163, 0, 163)"],["rgb(92, 0, 0)","rgb(92, 46, 0)","rgb(92, 92, 0)","rgb(0, 92, 0)","rgb(0, 92, 46)","rgb(0, 92, 92)","rgb(0, 46, 92)","rgb(0, 0, 92)","rgb(46, 0, 92)","rgb(92, 0, 92)"],["rgb(255, 255, 255)","rgb(205, 205, 205)","rgb(178, 178, 178)","rgb(153, 153, 153)","rgb(127, 127, 127)","rgb(102, 102, 102)","rgb(76, 76, 76)","rgb(51, 51, 51)","rgb(25, 25, 25)","rgb(0, 0, 0)"]],e.materialPalette=a,e.isDark=function(e){return t.isArray(e)?r({r:e[0],g:e[1],b:e[2]}).isDark():r(e).isDark()},e.previewFocus=function(){e.inputFocus=!0,n((function(){c[0].setSelectionRange(0,c[0].value.length)}))},e.previewUnfocus=function(){e.inputFocus=!1,c[0].blur()},e.previewBlur=function(){e.inputFocus=!1,e.setValue()},e.previewKeyDown=function(t){13==t.keyCode&&e.ok&&e.ok()},e.setPaletteColor=function(t){n((function(){e.color=r(t.target.style.backgroundColor)}))},e.setValue=function(){e.color&&e.color&&u[e.type]&&"rgba(0, 0, 0, 0)"!==e.color.toRgbString()&&(e.value=e.color[u[e.type]]())},e.changeValue=function(){e.color=r(e.value),e.$broadcast("mdColorPicker:colorSet",{color:e.color})},e.$watch("color._a",(function(t){e.color.setAlpha(t)}),!0),e.$watch("whichPane",(function(t){e.$broadcast("mdColorPicker:colorSet",{color:e.color})})),e.$watch("type",(function(){c.removeClass("switch"),n((function(){c.addClass("switch")}))})),e.$watchGroup(["color.toRgbString()","type"],(function(t){e.inputFocus||e.setValue()})),n((function(){e.$broadcast("mdColorPicker:colorSet",{color:e.color}),c.focus(),e.previewFocus()}))}],link:function(e,a,o){a[0].getElementsByTagName("md-tab"),n((function(){!function(){var n=t.element(a[0].querySelector(".md-color-picker-palette")),o=t.element(a[0].querySelector(".md-color-picker-material-palette")),r=t.element('<div class="flex-15 layout-fill layout-row layout-align-space-between" layout-align="space-between" layout="row" layout-fill"></div>'),i=t.element('<div class="flex-10"></div>'),s=t.element('<div class="md-color-picker-material-title"></div>'),l=t.element('<div class="md-color-picker-with-label"></div>');t.forEach(e.palette,(function(a,o){var s=r.clone();t.forEach(a,(function(t){var n=i.clone();n.css({height:"25.5px",backgroundColor:t}),n.bind("click",e.setPaletteColor),s.append(n)})),n.append(s)})),t.forEach(e.materialPalette,(function(n,a){var r=s.clone();r.html("<span>"+a.replace("-"," ")+"</span>"),r.css({height:"75px",backgroundColor:"rgb("+n[500].value[0]+","+n[500].value[1]+","+n[500].value[2]+")"}),e.isDark(n[500].value)&&r.addClass("dark"),o.append(r),t.forEach(n,(function(t,n){var a=l.clone();a.css({height:"33px",backgroundColor:"rgb("+t.value[0]+","+t.value[1]+","+t.value[2]+")"}),e.isDark(t.value)&&a.addClass("dark"),a.html("<span>"+n+"</span>"),a.bind("click",e.setPaletteColor),o.append(a)}))}))}()}))}}}]).directive("mdColorPickerHue",["mdColorGradientCanvas",function(e){return new e("hue")}]).directive("mdColorPickerAlpha",["mdColorGradientCanvas",function(e){return new e("alpha")}]).directive("mdColorPickerSpectrum",["mdColorGradientCanvas",function(e){return new e("spectrum")}]).factory("$mdColorPicker",["$q","$mdDialog","mdColorPickerHistory",function(e,t,a){var o;return{show:function(e){return e===n&&(e={}),e.hasBackdrop=e.hasBackdrop===n||e.hasBackdrop,e.clickOutsideToClose=e.clickOutsideToClose===n||e.clickOutsideToClose,e.defaultValue=e.defaultValue===n?"#FFFFFF":e.defaultValue,e.focusOnOpen=e.focusOnOpen!==n&&e.focusOnOpen,e.preserveScope=e.preserveScope===n||e.preserveScope,e.skipHide=e.skipHide===n||e.skipHide,e.mdColorAlphaChannel=e.mdColorAlphaChannel!==n&&e.mdColorAlphaChannel,e.mdColorSpectrum=e.mdColorSpectrum===n||e.mdColorSpectrum,e.mdColorSliders=e.mdColorSliders===n||e.mdColorSliders,e.mdColorGenericPalette=e.mdColorGenericPalette===n||e.mdColorGenericPalette,e.mdColorMaterialPalette=e.mdColorMaterialPalette===n||e.mdColorMaterialPalette,e.mdColorHistory=e.mdColorHistory===n||e.mdColorHistory,e.mdColorRgb=e.mdColorRgb===n||e.mdColorRgb,e.mdColorHsl=e.mdColorHsl===n||e.mdColorHsl,e.mdColorHex=e.mdColorHex===n||!e.mdColorRgb&&!e.mdColorHsl||e.mdColorHex,e.mdColorAlphaChannel=!(!e.mdColorRgb&&!e.mdColorHsl)&&e.mdColorAlphaChannel,(o=t.show({templateUrl:"mdColorPickerDialog.tpl.html",hasBackdrop:e.hasBackdrop,multiple:!0,clickOutsideToClose:e.clickOutsideToClose,controller:["$scope","options",function(e,n){e.close=function(){t.cancel()},e.ok=function(){t.hide(e.value)},e.hide=e.ok,e.value=n.value,e.default=n.defaultValue,e.random=n.random,e.mdColorAlphaChannel=n.mdColorAlphaChannel,e.mdColorSpectrum=n.mdColorSpectrum,e.mdColorSliders=n.mdColorSliders,e.mdColorGenericPalette=n.mdColorGenericPalette,e.mdColorMaterialPalette=n.mdColorMaterialPalette,e.mdColorHistory=n.mdColorHistory,e.mdColorHex=n.mdColorHex,e.mdColorRgb=n.mdColorRgb,e.mdColorHsl=n.mdColorHsl,e.mdColorDefaultTab=n.mdColorDefaultTab}],locals:{options:e},preserveScope:e.preserveScope,skipHide:e.skipHide,targetEvent:e.$event,focusOnOpen:e.focusOnOpen,autoWrap:!1,onShowing:function(){},onComplete:function(){}})).then((function(e){a.add(new r(e))}),(function(){})),o},hide:function(){return o.hide()},cancel:function(){return o.cancel()}}}])}(o,o.angular),a.module("mdColorPicker").run(["$templateCache",function(e){e.put("mdColorPicker.tpl.html",'<div class="md-color-picker-input-container" layout="row">\n\t<div class="md-color-picker-preview md-color-picker-checkered-bg" ng-click="showColorPicker($event)" ng-if="mdColorPreview">\n\t\t<div class="md-color-picker-result" ng-style="{background: value}"></div>\n\t</div>\n\t<md-input-container flex>\n\t\t<label><md-icon ng-if="icon">{{icon}}</md-icon>{{label}}</label>\n\t\t<input type="input" ng-model="value" class=\'md-color-picker-input\'  ng-mousedown="(openOnInput || !mdColorPreview) && showColorPicker($event)"/>\n\t</md-input-container>\n\t<md-button class="md-icon-button md-color-picker-clear" ng-if="mdColorClearButton && value" ng-click="clearValue();" aria-label="Clear Color">\n\t\t<md-icon md-svg-icon="clear.svg"></md-icon>\n\t</md-button>\n</div>\n'),e.put("mdColorPickerContainer.tpl.html",'<div class="md-color-picker-container in" layout="column">\n\t<div class="md-color-picker-arrow" ng-style="{\'border-bottom-color\': color.toRgbString() }"></div>\n\n\t<div class="md-color-picker-preview md-color-picker-checkered-bg" ng-class="{\'dark\': !color.isDark() || color.getAlpha() < .45}" flex="1" layout="column">\n\n\t\t<div class="md-color-picker-result" ng-style="{\'background\': color.toRgbString()}" flex="100" layout="column" layout-fill layout-align="center center" ng-click="focusPreviewInput( $event )">\n\t\t\t\x3c!--<span flex  layout="column" layout-align="center center">{{value}}</span>--\x3e\n\t\t\t<div flex  layout="row" layout-align="center center">\n\t\t\t\t<input class="md-color-picker-preview-input" type="text" ng-model="value" ng-focus="previewFocus($event);" ng-blur="previewBlur()" ng-change="changeValue()" ng-keypress="previewKeyDown($event)" layout-fill />\n\t\t\t</div>\n\t\t\t<div class="md-color-picker-tabs" style="width: 100%">\n\t\t\t\t<md-tabs md-selected="type" md-stretch-tabs="always" md-no-bar md-no-ink md-no-pagination="true" >\n\t\t\t\t\t<md-tab ng-if="mdColorHex" label="Hex" ng-disabled="color.getAlpha() !== 1" md-ink-ripple="#ffffff"></md-tab>\n\t\t\t\t\t<md-tab ng-if="mdColorRgb" label="RGB"></md-tab>\n\t\t\t\t\t<md-tab ng-if="mdColorHsl" label="HSL"></md-tab>\n\t\t\t\t\t\x3c!--<md-tab label="HSV"></md-tab>\n\t\t\t\t\t<md-tab label="VEC"></md-tab>--\x3e\n\t\t\t\t</md-tabs>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<div class="md-color-picker-tabs md-color-picker-colors">\n\t\t<md-tabs md-stretch-tabs="always" md-align-tabs="bottom"  md-selected="whichPane" md-no-pagination>\n\t\t\t<md-tab ng-if="mdColorSpectrum">\n\t\t\t\t<md-tab-label>\n\t\t\t\t\t<md-icon md-svg-icon="gradient.svg"></md-icon>\n\t\t\t\t</md-tab-label>\n\t\t\t\t<md-tab-body>\n\t\t\t\t\t<div layout="row" layout-align="space-between" style="height: 255px">\n\t\t\t\t\t\t<div md-color-picker-spectrum></div>\n\t\t\t\t\t\t<div md-color-picker-hue ng-class="{\'md-color-picker-wide\': !mdColorAlphaChannel}"></div>\n\t\t\t\t\t\t<div md-color-picker-alpha class="md-color-picker-checkered-bg" ng-if="mdColorAlphaChannel"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</md-tab-body>\n\t\t\t</md-tab>\n\t\t\t<md-tab ng-if="mdColorSliders">\n\t\t\t\t<md-tab-label>\n\t\t\t\t\t<md-icon md-svg-icon="tune.svg"></md-icon>\n\t\t\t\t</md-tab-label>\n\t\t\t\t<md-tab-body>\n\t\t\t\t\t<div layout="column" flex="100" layout-fill layout-align="space-between start center" class="md-color-picker-sliders">\n\t\t\t\t\t\t<div layout="row" layout-align="start center" layout-wrap flex layout-fill>\n\t\t\t\t\t\t\t<div flex="10" layout layout-align="center center">\n\t\t\t\t\t\t\t\t<span class="md-body-1">R</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<md-slider flex="65" min="0" max="255" ng-model="color._r" aria-label="red" class="red-slider"></md-slider>\n\t\t\t\t\t\t\t<span flex></span>\n\t\t\t\t\t\t\t<div flex="20" layout layout-align="center center">\n\t\t\t\t\t\t\t\t<input style="width: 100%;" min="0" max="255" type="number" ng-model="color._r" aria-label="red" aria-controls="red-slider">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div layout="row" layout-align="start center" layout-wrap flex layout-fill>\n\t\t\t\t\t\t\t<div flex="10" layout layout-align="center center">\n\t\t\t\t\t\t\t\t<span class="md-body-1">G</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<md-slider flex="65" min="0" max="255" ng-model="color._g" aria-label="green" class="green-slider"></md-slider>\n\t\t\t\t\t\t\t<span flex></span>\n\t\t\t\t\t\t\t<div flex="20" layout layout-align="center center">\n\t\t\t\t\t\t\t\t<input style="width: 100%;" min="0" max="255" type="number" ng-model="color._g" aria-label="green" aria-controls="green-slider">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div layout="row" layout-align="start center" layout-wrap flex layout-fill>\n\t\t\t\t\t\t\t<div flex="10" layout layout-align="center center">\n\t\t\t\t\t\t\t\t<span class="md-body-1">B</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<md-slider flex="65" min="0" max="255" ng-model="color._b" aria-label="blue" class="blue-slider"></md-slider>\n\t\t\t\t\t\t\t<span flex></span>\n\t\t\t\t\t\t\t<div flex="20" layout layout-align="center center" >\n\t\t\t\t\t\t\t\t<input style="width: 100%;" min="0" max="255" type="number" ng-model="color._b" aria-label="blue" aria-controls="blue-slider">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div layout="row" layout-align="start center" layout-wrap flex layout-fill ng-if="!mdColorAlphaChannel">\n\t\t\t\t\t\t\t<div flex="10" layout layout-align="center center">\n\t\t\t\t\t\t\t\t<span class="md-body-1">A</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<md-slider flex="65" min="0" max="1" step=".01" ng-model="color._a" aria-label="alpha" class="md-primary"></md-slider>\n\t\t\t\t\t\t\t<span flex></span>\n\t\t\t\t\t\t\t<div flex="20" layout layout-align="center center" >\n\t\t\t\t\t\t\t\t<input style="width: 100%;" min="0" max="1" step=".01" type="number" ng-model="color._a" aria-label="alpha" aria-controls="alpha-slider">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</md-tab-body>\n\t\t\t</md-tab>\n\t\t\t<md-tab ng-if="mdColorGenericPalette">\n\t\t\t\t<md-tab-label>\n\t\t\t\t\t<md-icon md-svg-icon="view_module.svg"></md-icon>\n\t\t\t\t</md-tab-label>\n\t\t\t\t<md-tab-body>\n\t\t\t\t\t<div layout="column" layout-align="space-between start center" flex class="md-color-picker-palette">\n\n\t\t\t\t\t</div>\n\t\t\t\t</md-tab-body>\n\t\t\t</md-tab>\n\t\t\t<md-tab  ng-if="mdColorMaterialPalette">\n\t\t\t\t<md-tab-label>\n\t\t\t\t\t<md-icon md-svg-icon="view_headline.svg"></md-icon>\n\t\t\t\t</md-tab-label>\n\t\t\t\t<md-tab-body>\n\t\t\t\t\t<div layout="column" layout-fill flex class="md-color-picker-material-palette">\n\n\t\t\t\t\t</div>\n\t\t\t\t</md-tab-body>\n\t\t\t</md-tab>\n\t\t\t<md-tab ng-if="mdColorHistory">\n\t\t\t\t<md-tab-label>\n\t\t\t\t\t<md-icon md-svg-icon="history.svg"></md-icon>\n\t\t\t\t</md-tab-label>\n\t\t\t\t<md-tab-body layout="row" layout-fill>\n\t\t\t\t\t<div layout="column" flex layout-align="space-between start" layout-wrap layout-fill class="md-color-picker-history">\n\t\t\t\t\t\t<div layout="row" flex="80" layout-align="space-between start start" layout-wrap  layout-fill>\n\t\t\t\t\t\t\t<div flex="10" ng-repeat="historyColor in history.get() track by $index">\n\t\t\t\t\t\t\t\t<div  ng-style="{\'background\': historyColor.toRgbString()}" ng-click="setPaletteColor($event)"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\n\t\t\t\t\t\t<md-button flex-end ng-click="history.reset()" class="md-mini" aria-label="Clear History">\n\t\t\t\t\t\t\t<md-icon md-svg-icon="clear_all.svg"></md-icon>\n\t\t\t\t\t\t</md-button>\n\t\t\t\t\t</div>\n\t\t\t\t</md-tab-body>\n\t\t\t</md-tab>\n\t\t</md-tabs>\n\t</div>\n\n</div>\n'),e.put("mdColorPickerDialog.tpl.html",'<md-dialog class="md-color-picker-dialog">\n\t<div md-color-picker-container\n\t\tvalue="value"\n\t\tdefault="{{defaultValue}}"\n\t\trandom="{{random}}"\n\t\tok="ok"\n\t\tmd-color-alpha-channel="mdColorAlphaChannel"\n\t\tmd-color-spectrum="mdColorSpectrum"\n\t\tmd-color-sliders="mdColorSliders"\n\t\tmd-color-generic-palette="mdColorGenericPalette"\n\t\tmd-color-material-palette="mdColorMaterialPalette"\n\t\tmd-color-history="mdColorHistory"\n\t\tmd-color-hex="mdColorHex"\n\t\tmd-color-rgb="mdColorRgb"\n\t\tmd-color-hsl="mdColorHsl"\n\t\tmd-color-default-tab="mdColorDefaultTab"\n\t></div>\n\t<md-actions layout="row">\n\t\t<md-button class="md-mini" ng-click="close()" style="width: 50%;">Cancel</md-button>\n\t\t<md-button class="md-mini" ng-click="ok()" style="width: 50%;">Select</md-button>\n\t</md-actions>\n</md-dialog>\n')}])},"./node_modules/@xenialab/md-pickers/dist/mdPickers.js":(e,t,n)=>{var a=n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js");!function(){"use strict";var e=angular.module("mdPickers",["ngMaterial","ngAnimate","ngAria"]);function t(e,t,n,o,r,i){var s=this;this.date=a(r),this.minDate=i.minDate&&a(i.minDate).isValid()?a(i.minDate):null,this.maxDate=i.maxDate&&a(i.maxDate).isValid()?a(i.maxDate):null,this.displayFormat=i.displayFormat||"ddd, MMM DD",this.dateFilter=angular.isFunction(i.dateFilter)?i.dateFilter:null,this.selectingYear=!1,this.minDate&&this.maxDate&&this.maxDate.isBefore(this.minDate)&&(this.maxDate=a(this.minDate).add(1,"days")),this.date&&(this.minDate&&this.date.isBefore(this.minDate)&&(this.date=a(this.minDate)),this.maxDate&&this.date.isAfter(this.maxDate)&&(this.date=a(this.maxDate))),this.yearItems={currentIndex_:0,PAGE_SIZE:5,START:s.minDate?s.minDate.year():1900,END:s.maxDate?s.maxDate.year():0,getItemAtIndex:function(e){return this.currentIndex_<e&&(this.currentIndex_=e),this.START+e},getLength:function(){return Math.min(this.currentIndex_+Math.floor(this.PAGE_SIZE/2),Math.abs(this.START-this.END)+1)}},e.$mdMedia=n,e.year=this.date.year(),this.selectYear=function(t){s.date.year(t),e.year=t,s.selectingYear=!1,s.animate()},this.showYear=function(){s.yearTopIndex=s.date.year()-s.yearItems.START+Math.floor(s.yearItems.PAGE_SIZE/2),s.yearItems.currentIndex_=s.date.year()-s.yearItems.START+1,s.selectingYear=!0},this.showCalendar=function(){s.selectingYear=!1},this.cancel=function(){t.cancel()},this.confirm=function(){var e=this.date;this.minDate&&this.date.isBefore(this.minDate)&&(e=a(this.minDate)),this.maxDate&&this.date.isAfter(this.maxDate)&&(e=a(this.maxDate)),t.hide(e.toDate())},this.animate=function(){s.animating=!0,o(angular.noop).then((function(){s.animating=!1}))}}function n(e){var t=this;this.$onInit=function(){t.daysInMonth=[],t.dow=a.localeData().firstDayOfWeek(),t.weekDays=[].concat(a.weekdaysMin().slice(t.dow),a.weekdaysMin().slice(0,t.dow)),e.$watch((function(){return t.date.unix()}),(function(e,n){e&&e!==n&&t.updateDaysInMonth()})),t.updateDaysInMonth()},this.getDaysInMonth=function(){var e=t.date.daysInMonth(),n=a(t.date).date(1).day()-this.dow;n<0&&(n=this.weekDays.length-1);for(var o=[],r=1;r<=n+e;r++){var i=null;r>n&&(i={value:r-n,enabled:t.isDayEnabled(a(t.date).date(r-n).toDate())}),o.push(i)}return o},this.isDayEnabled=function(e){return!(this.minDate&&!(this.minDate<=e)||this.maxDate&&!(this.maxDate>=e)||t.dateFilter&&t.dateFilter(e))},this.selectDate=function(e){t.date.date(e)},this.nextMonth=function(){t.date.add(1,"months")},this.prevMonth=function(){t.date.subtract(1,"months")},this.updateDaysInMonth=function(){t.daysInMonth=t.getDaysInMonth()},e.$watch((function(){return t.date.unix()}),(function(e,n){e&&e!==n&&t.updateDaysInMonth()}))}function o(e,t){return!e||angular.isDate(e)||a(e,t,!0).isValid()}function r(e,t,n,o){angular.isDate(n)&&(n=a(n).format(t)),n=a(n,t,!0);var r=angular.isDate(e)?a(e):a(e,t,!0);return!e||angular.isDate(e)||!n.isValid()||o(r,n)}function i(e,t,n){return r(e,t,n,(function(e,t){return e.isSameOrAfter(t)}))}function s(e,t,n){return r(e,t,n,(function(e,t){return e.isSameOrBefore(t)}))}function l(e,t,n){var o=angular.isDate(e)?a(e):a(e,t,!0);return!e||angular.isDate(e)||!angular.isFunction(n)||!n(o.toDate())}function c(e,t,n,o,r,i){var s=this;this.VIEW_HOURS=1,this.VIEW_MINUTES=2,this.currentView=this.VIEW_HOURS,this.time=a(n),this.autoSwitch=!!o,this.ampm=!!r,this.hoursFormat=s.ampm?"h":"H",this.minutesFormat="mm",this.clockHours=parseInt(this.time.format(this.hoursFormat)),this.clockMinutes=parseInt(this.time.format(this.minutesFormat)),e.$mdMedia=i,this.switchView=function(){s.currentView=s.currentView==s.VIEW_HOURS?s.VIEW_MINUTES:s.VIEW_HOURS},this.setAM=function(){s.time.hours()>=12&&s.time.hour(s.time.hour()-12)},this.setPM=function(){s.time.hours()<12&&s.time.hour(s.time.hour()+12)},this.cancel=function(){t.cancel()},this.confirm=function(){t.hide(this.time.toDate())}}function u(e){var t=this,n="hours",a="minutes";this.$onInit=function(){switch(t.STEP_DEG=30,t.steps=[],this.CLOCK_TYPES={hours:{range:t.ampm?12:24},minutes:{range:60}},t.type=t.type||"hours",t.type){case n:for(var e=t.ampm?1:2,o=t.ampm?12:23,r=e;r<=o;r+=e)t.steps.push(r);t.ampm||t.steps.push(0),t.selected=t.time.hours()||0,t.ampm&&t.selected>12&&(t.selected-=12);break;case a:for(r=5;r<=55;r+=5)t.steps.push(r);t.steps.push(0),t.selected=t.time.minutes()||0}},this.getPointerStyle=function(){var e=1;switch(t.type){case n:e=t.ampm?12:24;break;case a:e=60}var o=Math.round(t.selected*(360/e))-180;return{"-webkit-transform":"rotate("+o+"deg)","-ms-transform":"rotate("+o+"deg)",transform:"rotate("+o+"deg)"}},this.setTimeByDeg=function(e){e=e>=360?0:e;var o=0;switch(t.type){case n:o=t.ampm?12:24;break;case a:o=60}t.setTime(Math.round(o/360*e))},this.setTime=function(e,o){switch(this.selected=e,t.type){case n:t.ampm&&"PM"==t.time.format("A")&&(e+=12),this.time.hours(e);break;case a:e>59&&(e-=60),this.time.minutes(e)}}}function d(e,t,n,o){angular.isDate(n)&&(n=a(n).format(t)),n=a(n,t,!0);var r=angular.isDate(e)?a(e):a(e,t,!0);return!e||angular.isDate(e)||!n.isValid()||o(r,n)}e.config(["$mdIconProvider","mdpIconsRegistry",function(e,t){angular.forEach(t,(function(t,n){e.icon(t.id,t.url)}))}]),e.run(["$templateCache","mdpIconsRegistry",function(e,t){angular.forEach(t,(function(t,n){e.put(t.url,t.svg)}))}]),e.constant("mdpIconsRegistry",[{id:"mdp-chevron-left",url:"mdp-chevron-left.svg",svg:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'},{id:"mdp-chevron-right",url:"mdp-chevron-right.svg",svg:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'},{id:"mdp-access-time",url:"mdp-access-time.svg",svg:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/><path d="M0 0h24v24H0z" fill="none"/><path d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>'},{id:"mdp-event",url:"mdp-event.svg",svg:'<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'}]),e.factory("$mdpLocale",[function(){return{time:{minTime:null,maxTime:null,okLabel:"OK",cancelLabel:"Cancel",timeFormat:"HH:mm",noFloat:!1,openOnClick:!1,autoSwitch:!1,ampm:!0,clearOnCancel:!1},date:{minDate:null,maxDate:null,okLabel:"OK",cancelLabel:"Cancel",dateFilter:null,dateFormat:"YYYY-MM-DD",displayFormat:"ddd, MMM DD",noFloat:!1,openOnClick:!1,clearOnCancel:!1}}}]),e.directive("ngMessage",["$mdUtil",function(e){return{restrict:"EA",priority:101,compile:function(t){if(e.getClosest(t,"mdp-time-picker",!0)||e.getClosest(t,"mdp-date-picker",!0))return t.toggleClass("md-input-message-animation",!0),{}}}}]),e.provider("$mdpDatePicker",(function(){var e="OK",n="Cancel",a="ddd, MMM DD",o=function(){};this.setDisplayFormat=function(e){a=e},this.setOKButtonLabel=function(t){e=t},this.setCancelButtonLabel=function(e){n=e},this.setDialogParentGetter=function(e){o=e},this.$get=["$mdDialog","$mdpLocale",function(r,i){return function(s,l){angular.isDate(s)||(s=Date.now()),angular.isObject(l)||(l={}),l.displayFormat=l.displayFormat||i.date.displayFormat||a;var c=l.okLabel||i.date.okLabel||e,u=l.cancelLabel||i.date.cancelLabel||n;return r.show({controller:["$scope","$mdDialog","$mdMedia","$timeout","currentDate","options",t],controllerAs:"datepicker",clickOutsideToClose:!0,skipHide:!0,multiple:!0,template:'<md-dialog aria-label="" class="mdp-datepicker" ng-class="{ \'portrait\': !$mdMedia(\'gt-xs\') }"><md-dialog-content layout="row" layout-wrap><div layout="column" layout-align="start center"><md-toolbar layout-align="start start" flex class="mdp-datepicker-date-wrapper md-hue-1 md-primary" layout="column"><span class="mdp-datepicker-year" ng-click="datepicker.showYear()" ng-class="{ \'active\': datepicker.selectingYear }">{{ datepicker.date.format(\'YYYY\') }}</span><span class="mdp-datepicker-date" ng-click="datepicker.showCalendar()" ng-class="{ \'active\': !datepicker.selectingYear }">{{ datepicker.date.format(datepicker.displayFormat) }}</span> </md-toolbar></div><div><div class="mdp-datepicker-select-year mdp-animation-zoom" layout="column" layout-align="center start" ng-if="datepicker.selectingYear"><md-virtual-repeat-container md-auto-shrink md-top-index="datepicker.yearTopIndex"><div flex md-virtual-repeat="item in datepicker.yearItems" md-on-demand class="repeated-year"><span class="md-button" ng-click="datepicker.selectYear(item)" md-ink-ripple ng-class="{ \'md-primary current\': item == year }">{{ item }}</span></div></md-virtual-repeat-container></div><mdp-calendar ng-if="!datepicker.selectingYear" class="mdp-animation-zoom" date="datepicker.date" min-date="datepicker.minDate" date-filter="datepicker.dateFilter" max-date="datepicker.maxDate"></mdp-calendar><md-dialog-actions layout="row"><span flex></span><md-button ng-click="datepicker.cancel()" aria-label="'+u+'">'+u+'</md-button><md-button ng-click="datepicker.confirm()" class="md-primary" aria-label="'+c+'">'+c+"</md-button></md-dialog-actions></div></md-dialog-content></md-dialog>",targetEvent:l.targetEvent,locals:{currentDate:s,options:l},parent:o()})}}]})),e.directive("mdpCalendar",["$animate",function(e){return{restrict:"E",bindToController:{date:"=",minDate:"=",maxDate:"=",dateFilter:"="},template:'<div class="mdp-calendar"><div layout="row" layout-align="space-between center"><md-button aria-label="previous month" class="md-icon-button" ng-click="calendar.prevMonth()"><md-icon md-svg-icon="mdp-chevron-left"></md-icon></md-button><div class="mdp-calendar-monthyear" ng-show="!calendar.animating">{{ calendar.date.format("MMMM YYYY") }}</div><md-button aria-label="next month" class="md-icon-button" ng-click="calendar.nextMonth()"><md-icon md-svg-icon="mdp-chevron-right"></md-icon></md-button></div><div layout="row" layout-align="space-around center" class="mdp-calendar-week-days" ng-show="!calendar.animating"><div layout layout-align="center center" ng-repeat="d in calendar.weekDays track by $index">{{ d }}</div></div><div layout="row" layout-align="start center" layout-wrap class="mdp-calendar-days" ng-class="{ \'mdp-animate-next\': calendar.animating }" ng-show="!calendar.animating" md-swipe-left="calendar.nextMonth()" md-swipe-right="calendar.prevMonth()"><div layout layout-align="center center" ng-repeat-start="day in calendar.daysInMonth track by $index" ng-class="{ \'mdp-day-placeholder\': !day }"><md-button class="md-icon-button" aria-label="Select day" ng-mouseenter="raised = true" ng-mouseleave="raised = false" ng-if="day" ng-class="{ \'md-accent\': calendar.date.date() == day.value, \'md-raised\': raised || calendar.date.date() == day.value }" ng-click="calendar.selectDate(day.value)" ng-disabled="!day.enabled">{{ day.value }}</md-button></div><div flex="100" ng-if="($index + 1) % 7 == 0" ng-repeat-end></div></div></div>',controller:["$scope",n],controllerAs:"calendar",link:function(t,n,a,o){var r=[n[0].querySelector(".mdp-calendar-week-days"),n[0].querySelector(".mdp-calendar-days"),n[0].querySelector(".mdp-calendar-monthyear")].map((function(e){return angular.element(e)}));t.raised=!1,t.$watch((function(){return o.date.format("YYYYMM")}),(function(t,n){var a=null;if(t>n?a="mdp-animate-next":t<n&&(a="mdp-animate-prev"),a)for(var o in r)r[o].addClass(a),e.removeClass(r[o],a)}))}}}]),e.directive("mdpDatePicker",["$mdpDatePicker","$timeout","$mdpLocale",function(e,t,n){return{restrict:"E",require:["ngModel","^^?form"],transclude:!0,template:function(e,t){var a=angular.isDefined(t.mdpNoFloat)||n.date.noFloat,o=angular.isDefined(t.mdpOpenOnClick)||n.date.openOnClick;return'<div layout layout-align="start start"><md-button'+(angular.isDefined(t.mdpDisabled)?' ng-disabled="disabled"':"")+' class="md-icon-button" ng-click="showPicker($event)"><md-icon md-svg-icon="mdp-event"></md-icon></md-button><md-input-container'+(a?" md-no-float":"")+' md-is-error="isError()"><input name="{{ inputName }}" ng-model="model.$viewValue" ng-required="required()" type="{{ ::type }}"'+(angular.isDefined(t.mdpDisabled)?' ng-disabled="disabled"':"")+' aria-label="{{placeholder}}" placeholder="{{placeholder}}"'+(o?' ng-click="showPicker($event)" ':"")+" /></md-input-container></div>"},scope:{minDate:"=mdpMinDate",maxDate:"=mdpMaxDate",okLabel:"@?mdpOkLabel",cancelLabel:"@?mdpCancelLabel",dateFilter:"=mdpDateFilter",dateFormat:"@mdpFormat",placeholder:"@mdpPlaceholder",noFloat:"=mdpNoFloat",openOnClick:"=mdpOpenOnClick",disabled:"=?mdpDisabled",inputName:"@?mdpInputName",clearOnCancel:"=?mdpClearOnCancel"},link:{pre:function(e,t,n,a,o){},post:function(t,r,c,u,d){var f=u[0],m=u[1],p={get minDate(){return t.minDate||n.date.minDate},get maxDate(){return t.maxDate||n.date.maxDate},get dateFilter(){return t.dateFilter||n.date.dateFilter},get clearOnCancel(){return angular.isDefined(t.clearOnCancel)?t.clearOnCancel:n.date.clearOnCancel}},g=angular.element(r[0].querySelector("input")),h=angular.element(r[0].querySelector("md-input-container")),_=h.controller("mdInputContainer");d((function(e){h.append(e)}));var b=angular.element(h[0].querySelector("[ng-messages]"));function y(e){g[0].value=e,_.setHasValue(!f.$isEmpty(e))}function v(e){var n=a(e,angular.isDate(e)?null:t.dateFormat,!0),o=n.format(t.dateFormat);n.isValid()?(y(o),f.$setViewValue(o)):(y(e),f.$setViewValue(e)),!f.$pristine&&b.hasClass("md-auto-hide")&&h.hasClass("md-input-invalid")&&b.removeClass("md-auto-hide"),f.$render()}function A(e){e.target.value!==f.$viewVaue&&v(e.target.value)}t.type=t.dateFormat||n.date.dateFormat?"text":"date",t.dateFormat=t.dateFormat||n.date.dateFormat||"YYYY-MM-DD",t.model=f,t.isError=function(){return!!f.$invalid&&(!f.$pristine||null!=m&&m.$submitted)},t.required=function(){return!!c.required},f.$formatters.unshift((function(e){var n=angular.isDate(e)&&a(e);if(n&&n.isValid()){var o=n.format(t.dateFormat);return y(o),o}return y(null),null})),f.$validators.format=function(e,n){return o(n,t.dateFormat)},f.$validators.minDate=function(e,n){return i(n,t.dateFormat,p.minDate)},f.$validators.maxDate=function(e,n){return s(n,t.dateFormat,p.maxDate)},f.$validators.filter=function(e,n){return l(n,t.dateFormat,p.dateFilter)},f.$validators.required=function(e,t){return angular.isUndefined(c.required)||!1===c.required||!f.$isEmpty(e)||!f.$isEmpty(t)},f.$parsers.unshift((function(e){var n=a(e,t.dateFormat,!0);if(n.isValid()){if(angular.isDate(f.$modelValue)){var o=a(f.$modelValue);o.year(n.year()),o.month(n.month()),o.date(n.date()),n=o}return n.toDate()}return null})),t.showPicker=function(n){e(f.$modelValue,{minDate:p.minDate,maxDate:p.maxDate,dateFilter:p.dateFilter,okLabel:t.okLabel,cancelLabel:t.cancelLabel,targetEvent:n}).then((function(e){v(e)}),(function(e){p.clearOnCancel&&v(null)}))},g.on("reset input blur",A),t.$on("$destroy",(function(){g.off("reset input blur",A)})),t.$watch("minDate + maxDate",(function(){f.$validate()}))}}}}]),e.directive("mdpDatePicker",["$mdpDatePicker","$timeout",function(e,t){return{restrict:"A",require:"ngModel",scope:{minDate:"@min",maxDate:"@max",okLabel:"@?mdpOkLabel",cancelLabel:"@?mdpCancelLabel",dateFilter:"=mdpDateFilter",dateFormat:"@mdpFormat"},link:function(t,n,r,c,u){function d(n){e(c.$modelValue,{minDate:t.minDate,maxDate:t.maxDate,dateFilter:t.dateFilter,okLabel:t.okLabel,cancelLabel:t.cancelLabel,targetEvent:n}).then((function(e){c.$setViewValue(a(e).format(t.format)),c.$render()}))}t.dateFormat=t.dateFormat||"YYYY-MM-DD",c.$validators.format=function(e,n){return o(n,t.format)},c.$validators.minDate=function(e,n){return i(n,t.format,t.minDate)},c.$validators.maxDate=function(e,n){return s(n,t.format,t.maxDate)},c.$validators.filter=function(e,n){return l(n,t.format,t.dateFilter)},n.on("click",d),t.$on("$destroy",(function(){n.off("click",d)}))}}}]),e.directive("mdpClock",["$animate","$timeout",function(e,t){return{restrict:"E",bindToController:{type:"@?",time:"=",autoSwitch:"=?",ampm:"=?"},replace:!0,template:'<md-card class="mdp-clock"><div class="mdp-clock-container"><md-toolbar class="mdp-clock-center md-primary"></md-toolbar><md-toolbar ng-style="clock.getPointerStyle()" class="mdp-pointer md-primary"><span class="mdp-clock-selected md-button md-raised md-primary"></span></md-toolbar><md-button ng-class="{ \'md-primary\': clock.selected == step, \'md-raised\': raised || clock.selected == step  }" ng-mouseenter="raised = true" ng-mouseleave="raised = false" class="md-icon-button mdp-clock-deg{{ ::(clock.STEP_DEG * ($index + 1)) }}" ng-repeat="step in clock.steps" ng-click="clock.setTime(step)">{{ step }}</md-button></div></md-card>',controller:["$scope",u],controllerAs:"clock",link:function(e,n,a,o){angular.element(n[0].querySelector(".mdp-pointer"));var r=e.$parent.timepicker;e.raised=!1;var i=function(e){var n=e.currentTarget.getClientRects()[0],a=e.currentTarget.offsetWidth/2-(e.pageX-n.left),i=e.pageY-n.top-e.currentTarget.offsetHeight/2,s=Math.round(Math.atan2(a,i)*(180/Math.PI));t((function(){o.setTimeByDeg(s+180),o.autoSwitch&&-1!==["mouseup","click"].indexOf(e.type)&&r&&r.switchView()}))};n.on("mousedown",(function(){n.on("mousemove",i)})),n.on("mouseup",(function(e){n.off("mousemove")})),n.on("click",i),e.$on("$destroy",(function(){n.off("click",i),n.off("mousemove",i)}))}}}]),e.provider("$mdpTimePicker",(function(){var e="OK",t="Cancel",n=function(){};this.setOKButtonLabel=function(t){e=t},this.setCancelButtonLabel=function(e){t=e},this.setDialogParentGetter=function(e){n=e},this.$get=["$mdDialog","$mdpLocale",function(a,o){return function(r,i){angular.isDate(r)||(r=Date.now()),angular.isObject(i)||(i={});var s=i.okLabel||o.time.okLabel||e,l=i.cancelLabel||o.time.cancelLabel||t;return a.show({controller:["$scope","$mdDialog","time","autoSwitch","ampm","$mdMedia",c],controllerAs:"timepicker",clickOutsideToClose:!0,skipHide:!0,multiple:!0,template:'<md-dialog aria-label="" class="mdp-timepicker" ng-class="{ \'portrait\': !$mdMedia(\'gt-xs\') }"><md-dialog-content layout-gt-xs="row" layout-wrap><md-toolbar layout-gt-xs="column" layout-xs="row" layout-align="center center" flex class="mdp-timepicker-time md-hue-1 md-primary"><div class="mdp-timepicker-selected-time"><span ng-class="{ \'active\': timepicker.currentView == timepicker.VIEW_HOURS }" ng-click="timepicker.currentView = timepicker.VIEW_HOURS">{{ timepicker.time.format(timepicker.hoursFormat) }}</span>:<span ng-class="{ \'active\': timepicker.currentView == timepicker.VIEW_MINUTES }" ng-click="timepicker.currentView = timepicker.VIEW_MINUTES">{{ timepicker.time.format(timepicker.minutesFormat) }}</span></div><div layout="column" ng-show="timepicker.ampm" class="mdp-timepicker-selected-ampm"><span ng-click="timepicker.setAM()" ng-class="{ \'active\': timepicker.time.hours() < 12 }">AM</span><span ng-click="timepicker.setPM()" ng-class="{ \'active\': timepicker.time.hours() >= 12 }">PM</span></div></md-toolbar><md-content><div class="mdp-clock-switch-container" ng-switch="timepicker.currentView" layout layout-align="center center"><mdp-clock class="mdp-animation-zoom" ampm="timepicker.ampm" auto-switch="timepicker.autoSwitch" time="timepicker.time" type="hours" ng-switch-when="1"></mdp-clock><mdp-clock class="mdp-animation-zoom" ampm="timepicker.ampm" auto-switch="timepicker.autoSwitch" time="timepicker.time" type="minutes" ng-switch-when="2"></mdp-clock></div><md-dialog-actions layout="row"><span flex></span><md-button ng-click="timepicker.cancel()" aria-label="'+l+'">'+l+'</md-button><md-button ng-click="timepicker.confirm()" class="md-primary" aria-label="'+s+'">'+s+"</md-button></md-dialog-actions></md-content></md-dialog-content></md-dialog>",targetEvent:i.targetEvent,locals:{time:r,autoSwitch:i.autoSwitch,ampm:angular.isDefined(i.ampm)?i.ampm:o.time.ampm},parent:n()})}}]})),e.directive("mdpTimePicker",["$mdpTimePicker","$timeout","$mdpLocale",function(e,t,n){return{restrict:"E",require:["ngModel","^^?form"],transclude:!0,template:function(e,t){var a=angular.isDefined(t.mdpNoFloat)||n.time.noFloat,o=angular.isDefined(t.mdpOpenOnClick)||n.time.openOnClick;return'<div layout layout-align="start start"><md-button class="md-icon-button" ng-click="showPicker($event)"'+(angular.isDefined(t.mdpDisabled)?' ng-disabled="disabled"':"")+'><md-icon md-svg-icon="mdp-access-time"></md-icon></md-button><md-input-container'+(a?" md-no-float":"")+' md-is-error="isError()"><input name="{{ inputName }}" ng-model="model.$viewValue" ng-required="required()" type="{{ ::type }}"'+(angular.isDefined(t.mdpDisabled)?' ng-disabled="disabled"':"")+' aria-label="{{placeholder}}" placeholder="{{placeholder}}"'+(o?' ng-click="showPicker($event)" ':"")+" /></md-input-container></div>"},scope:{minTime:"=?mdpMinTime",maxTime:"=?mdpMaxTime",timeFormat:"@mdpFormat",okLabel:"@?mdpOkLabel",cancelLabel:"@?mdpCancelLabel",placeholder:"@mdpPlaceholder",autoSwitch:"=?mdpAutoSwitch",disabled:"=?mdpDisabled",ampm:"=?mdpAmpm",inputName:"@?mdpInputName",clearOnCancel:"=?mdpClearOnCancel"},link:function(t,o,r,i,s){var l=i[0],c=i[1],u={get minTime(){return t.minTime||n.time.minTime},get maxTime(){return t.maxTime||n.time.maxTime},get clearOnCancel(){return angular.isDefined(t.clearOnCancel)?t.clearOnCancel:n.time.clearOnCancel}},f=angular.element(o[0].querySelector("input")),m=angular.element(o[0].querySelector("md-input-container")),p=m.controller("mdInputContainer");s((function(e){m.append(e)}));var g=angular.element(m[0].querySelector("[ng-messages]"));function h(e){f[0].value=e,p.setHasValue(!l.$isEmpty(e))}function _(e){var n=a(e,angular.isDate(e)?null:t.timeFormat,!0),o=n.format(t.timeFormat);n.isValid()?(h(o),l.$setViewValue(o)):(h(e),l.$setViewValue(e)),!l.$pristine&&g.hasClass("md-auto-hide")&&m.hasClass("md-input-invalid")&&g.removeClass("md-auto-hide"),l.$render()}function b(e){e.target.value!==l.$viewVaue&&_(e.target.value)}t.type=t.timeFormat||n.time.timeFormat?"text":"time",t.timeFormat=t.timeFormat||n.time.timeFormat||"HH:mm",t.autoSwitch=void 0===t.autoSwitch?n.time.autoSwitch:t.autoSwitch,t.model=l,t.isError=function(){return!!l.$invalid&&(!l.$pristine||null!=c&&c.$submitted)},t.required=function(){return!!r.required},t.$watch((function(){return l.$error}),(function(e,t){p.setInvalid(!l.$pristine&&!!Object.keys(l.$error).length)}),!0),l.$formatters.unshift((function(e){var n=angular.isDate(e)&&a(e);if(n&&n.isValid()){var o=n.format(t.timeFormat);return h(o),o}return h(null),null})),l.$validators.format=function(e,n){return!n||angular.isDate(n)||a(n,t.timeFormat,!0).isValid()},l.$validators.required=function(e,t){return angular.isUndefined(r.required)||!1===r.required||!l.$isEmpty(e)||!l.$isEmpty(t)},l.$validators.minTime=function(e,n){return a=n,o=t.timeFormat,r=u.minTime,d(a,o,r,(function(e,t){return e.isSameOrAfter(t)}));var a,o,r},l.$validators.maxTime=function(e,n){return a=n,o=t.timeFormat,r=u.maxTime,d(a,o,r,(function(e,t){return e.isSameOrBefore(t)}));var a,o,r},l.$parsers.unshift((function(e){var n=a(e,t.timeFormat,!0);if(n.isValid()){if(angular.isDate(l.$modelValue)){var o=a(l.$modelValue);o.minutes(n.minutes()),o.hours(n.hours()),o.seconds(n.seconds()),n=o}return n.toDate()}return null})),t.showPicker=function(n){e(l.$modelValue,{targetEvent:n,okLabel:t.okLabel,cancelLabel:t.cancelLabel,autoSwitch:t.autoSwitch,ampm:t.ampm}).then((function(e){_(e)}),(function(e){u.clearOnCancel&&_(null)}))},f.on("reset input blur",b),t.$on("$destroy",(function(){f.off("reset input blur",b)})),t.$watch("minTime + maxTime",(function(){l.$validate()}))}}}]),e.directive("mdpTimePicker",["$mdpTimePicker","$timeout",function(e,t){return{restrict:"A",require:"ngModel",scope:{timeFormat:"@mdpFormat",okLabel:"@?mdpOkLabel",cancelLabel:"@?mdpCancelLabel",autoSwitch:"=?mdpAutoSwitch",ampm:"=?mdpAmpm"},link:function(t,n,o,r,i){function s(n){e(r.$modelValue,{targetEvent:n,autoSwitch:t.autoSwitch,okLabel:t.okLabel,cancelLabel:t.cancelLabel,ampm:t.ampm}).then((function(e){r.$setViewValue(a(e).format(t.format)),r.$render()}))}t.format=t.format||"HH:mm",n.on("click",s),t.$on("$destroy",(function(){n.off("click",s)}))}}}])}()},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},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:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-ma.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-sa.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-tn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,n,r,i){var s=a(t),l=o[e][a(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},i=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\200fM/\200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/az.js":function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".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:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,a=e%100-n,o=e>=100?100:null;return e+(t[n]||t[a]||t[o])},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/be.js":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":e+" "+t({mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[a],+e)}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".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:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bg.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bn.js":function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,isPM:function(e){return/^(দুপুর|বিকাল|রাত)$/.test(e)},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bo.js":function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(e){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(e)},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/br.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+o({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(a(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function a(e){return e>9?a(e%10):e}function o(e,t){return 2===t?r(e):e}function r(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bs.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cs.js":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?r+(a(e)?"dny":"dní"):r+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?r+(a(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?r+(a(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,a=[];for(n=0;n<12;n++)a[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return a}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cy.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_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:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/da.js":function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".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.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/de-at.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/de.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/dv.js":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return""===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/el.js":function(e,t,n){!function(e){"use strict";function t(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,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"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var a=this._calendarEl[e],o=n&&n.hours();return t(a)&&(a=a.apply(n)),a.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-au.js":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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-ca.js":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:"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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-gb.js":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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-ie.js":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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-nz.js":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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/eo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/es.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return/-MMM-/.test(a)?n[e.month()]:t[e.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/et.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:a?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/eu.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fa.js":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک\200cشنبه_دوشنبه_سه\200cشنبه_چهارشنبه_پنج\200cشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک\200cشنبه_دوشنبه_سه\200cشنبه_چهارشنبه_پنج\200cشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".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"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fi.js":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function a(e,t,n,a){var r="";switch(n){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"m":return a?"minuutin":"minuutti";case"mm":r=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":r=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":r=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":r=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":r=a?"vuoden":"vuotta"}return r=o(e,a)+" "+r}function o(e,a){return e<10?a?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".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:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr-ch.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_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:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_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:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fy.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,a){return/-MMM-/.test(a)?n[e.month()]:t[e.month()]},weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".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:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/gd.js":function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],a=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],o=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],r=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:a,weekdaysShort:o,weekdaysMin:r,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:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/gl.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/he.js":function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".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",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hi.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hr.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hu.js":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,a){var o=e;switch(n){case"s":return a||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(a||t?" perc":" perce");case"mm":return o+(a||t?" perc":" perce");case"h":return"egy"+(a||t?" óra":" órája");case"hh":return o+(a||t?" óra":" órája");case"d":return"egy"+(a||t?" nap":" napja");case"dd":return o+(a||t?" nap":" napja");case"M":return"egy"+(a||t?" hónap":" hónapja");case"MM":return o+(a||t?" hónap":" hónapja");case"y":return"egy"+(a||t?" év":" éve");case"yy":return o+(a||t?" év":" éve")}return""}function a(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return a.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return a.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hy-am.js":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".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:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/id.js":function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/is.js":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,a,o){var r=e+" ";switch(a){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||o?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||o?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(o?"daga":"dögum"):n?r+"dagur":r+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(o?"mánuði":"mánuðum"):n?r+"mánuður":r+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?r+(n||o?"ár":"árum"):r+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/it.js":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",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"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ja.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/jv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ka.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".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:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/kk.js":function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"Қаңтар_Ақпан_Наурыз_Сәуір_Мамыр_Маусым_Шілде_Тамыз_Қыркүйек_Қазан_Қараша_Желтоқсан".split("_"),monthsShort:"Қаң_Ақп_Нау_Сәу_Мам_Мау_Шіл_Там_Қыр_Қаз_Қар_Жел".split("_"),weekdays:"Жексенбі_Дүйсенбі_Сейсенбі_Сәрсенбі_Бейсенбі_Жұма_Сенбі".split("_"),weekdaysShort:"Жек_Дүй_Сей_Сәр_Бей_Жұм_Сен".split("_"),weekdaysMin:"Жк_Дй_Сй_Ср_Бй_Жм_Сн".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:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/km.js":function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".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:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ko.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lb.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){return o(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function a(e){return o(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function o(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return o(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return o(e)}return o(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:a,s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".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"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lt.js":function(e,t,n){!function(e){"use strict";var t={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,a){return t?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function a(e,t,n,a){return t?r(n)[0]:a?r(n)[1]:r(n)[2]}function o(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function i(e,t,n,i){var s=e+" ";return 1===e?s+a(e,t,n[0],i):t?s+(o(e)?r(n)[1]:r(n)[0]):i?s+r(n)[1]:s+(o(e)?r(n)[1]:r(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_")},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,m:a,mm:i,h:a,hh:i,d:a,dd:i,M:a,MM:i,y:a,yy:i},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lv.js":function(e,t,n){!function(e){"use strict";var t={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&11!==t?e[2]:e[3]:t%10==1&&11!==t?e[0]:e[1]}function a(e,a,o){return e+" "+n(t[o],e,a)}function o(e,a,o){return n(t[o],e,a)}function r(e,t){return t?"dažas sekundes":"dažām sekundēm"}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:r,m:o,mm:a,h:o,hh:a,d:o,dd:a,M:o,MM:a,y:o,yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/me.js":function(e,t,n){!function(e){"use strict";var t={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var o=t.words[a];return 1===a.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sri.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/mk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ml.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(e){return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(e)},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/mr.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function a(e,t,n,a){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ms-my.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ms.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/my.js":function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".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:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ne.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nl.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return/-MMM-/.test(a)?n[e.month()]:t[e.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pl.js":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return o+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(a(e)?"godziny":"godzin");case"MM":return o+(a(e)?"miesiące":"miesięcy");case"yy":return o+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,a){return""===a?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(a)?n[e.month()]:t[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".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:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pt-br.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ro.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=" ";return(e%100>=20||e>=100&&e%100==0)&&(a=" de "),e+a+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ru.js":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"минута":"минуту":e+" "+t({mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[a],+e)}var a=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря".split("_"),standalone:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_")},monthsShort:{format:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_"),standalone:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_")},weekdays:{standalone:"Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота".split("_"),format:"Воскресенье_Понедельник_Вторник_Среду_Четверг_Пятницу_Субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),weekdaysMin:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,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:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/se.js":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/si.js":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්\200dරේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්\200dරහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්\200dරහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්\200dර_සි_සෙ".split("_"),longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sk.js":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function a(e){return e>1&&e<5}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?r+(a(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(a(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?r+(a(e)?"dni":"dní"):r+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?r+(a(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?r+(a(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o=e+" ";switch(n){case"s":return t||a?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||a?"minuti":"minutama":e<5?t||a?"minute":"minutami":t||a?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||a?"uri":"urama":e<5?t||a?"ure":"urami":t||a?"ur":"urami";case"d":return t||a?"en dan":"enim dnem";case"dd":return o+=1===e?t||a?"dan":"dnem":2===e?t||a?"dni":"dnevoma":t||a?"dni":"dnevi";case"M":return t||a?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||a?"mesec":"mesecem":2===e?t||a?"meseca":"mesecema":e<5?t||a?"mesece":"meseci":t||a?"mesecev":"meseci";case"y":return t||a?"eno leto":"enim letom";case"yy":return o+=1===e?t||a?"leto":"letom":2===e?t||a?"leti":"letoma":e<5?t||a?"leta":"leti":t||a?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sq.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},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:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sr-cyrl.js":function(e,t,n){!function(e){"use strict";var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var o=t.words[a];return 1===a.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sr.js":function(e,t,n){!function(e){"use strict";var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var o=t.words[a];return 1===a.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".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:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ta.js":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".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:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/te.js":function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/th.js":function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"H นาฬิกา m นาที s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H นาฬิกา m นาที",LLLL:"วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tl-ph.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tlh.js":function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function a(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function o(e,t,n,a){var o=r(e);switch(n){case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}function r(e){var n=Math.floor(e%1e3/100),a=Math.floor(e%100/10),o=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),a>0&&(r+=(""!==r?" ":"")+t[a]+"maH"),o>0&&(r+=(""!==r?" ":"")+t[o]),""===r?"pagh":r}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".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:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:a,s:"puS lup",m:"wa’ tup",mm:o,h:"wa’ rep",hh:o,d:"wa’ jaj",dd:o,M:"wa’ jar",MM:o,y:"wa’ DIS",yy:o},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tr.js":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".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:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,a=e%100-n,o=e>=100?100:null;return e+(t[n]||t[a]||t[o])},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return a||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzm-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".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:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".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:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/uk.js":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t({mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[a],+e)}function a(e,t){return{nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]}function o(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:a,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".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:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/uz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/vi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/zh-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()-t.unix()>=604800?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()<t.unix()?"[上]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/zh-tw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})}(n("./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js"))},"./node_modules/@xenialab/md-pickers/node_modules/moment/locale sync recursive ^\\.\\/.*$":(e,t,n)=>{var a={"./af":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/af.js","./af.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/af.js","./ar":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar.js","./ar-ma":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ar.js","./az":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/az.js","./az.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/az.js","./be":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/be.js","./be.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/be.js","./bg":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bg.js","./bg.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bg.js","./bn":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bn.js","./bn.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bn.js","./bo":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bo.js","./bo.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bo.js","./br":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/br.js","./br.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/br.js","./bs":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bs.js","./bs.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/bs.js","./ca":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ca.js","./ca.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ca.js","./cs":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cs.js","./cs.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cs.js","./cv":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cv.js","./cv.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cv.js","./cy":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cy.js","./cy.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/cy.js","./da":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/da.js","./da.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/da.js","./de":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/de.js","./de-at":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/de-at.js","./de.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/de.js","./dv":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/dv.js","./dv.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/dv.js","./el":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/el.js","./el.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/el.js","./en-au":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-ie.js","./en-nz":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/en-nz.js","./eo":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/eo.js","./eo.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/eo.js","./es":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/es.js","./es.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/es.js","./et":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/et.js","./et.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/et.js","./eu":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/eu.js","./eu.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/eu.js","./fa":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fa.js","./fa.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fa.js","./fi":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fi.js","./fi.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fi.js","./fo":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fo.js","./fo.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fo.js","./fr":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fr.js","./fy":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fy.js","./fy.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/fy.js","./gd":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/gd.js","./gd.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/gd.js","./gl":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/gl.js","./gl.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/gl.js","./he":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/he.js","./he.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/he.js","./hi":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hi.js","./hi.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hi.js","./hr":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hr.js","./hr.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hr.js","./hu":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hu.js","./hu.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hu.js","./hy-am":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/hy-am.js","./id":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/id.js","./id.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/id.js","./is":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/is.js","./is.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/is.js","./it":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/it.js","./it.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/it.js","./ja":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ja.js","./ja.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ja.js","./jv":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/jv.js","./jv.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/jv.js","./ka":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ka.js","./ka.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ka.js","./kk":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/kk.js","./kk.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/kk.js","./km":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/km.js","./km.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/km.js","./ko":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ko.js","./ko.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ko.js","./lb":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lb.js","./lb.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lb.js","./lo":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lo.js","./lo.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lo.js","./lt":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lt.js","./lt.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lt.js","./lv":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lv.js","./lv.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/lv.js","./me":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/me.js","./me.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/me.js","./mk":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/mk.js","./mk.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/mk.js","./ml":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ml.js","./ml.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ml.js","./mr":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/mr.js","./mr.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/mr.js","./ms":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ms.js","./ms-my":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ms.js","./my":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/my.js","./my.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/my.js","./nb":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nb.js","./nb.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nb.js","./ne":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ne.js","./ne.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ne.js","./nl":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nl.js","./nl.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nl.js","./nn":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nn.js","./nn.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/nn.js","./pl":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pl.js","./pl.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pl.js","./pt":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pt.js","./pt-br":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/pt.js","./ro":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ro.js","./ro.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ro.js","./ru":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ru.js","./ru.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ru.js","./se":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/se.js","./se.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/se.js","./si":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/si.js","./si.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/si.js","./sk":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sk.js","./sk.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sk.js","./sl":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sl.js","./sl.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sl.js","./sq":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sq.js","./sq.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sq.js","./sr":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sr.js","./sv":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sv.js","./sv.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sv.js","./sw":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sw.js","./sw.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/sw.js","./ta":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ta.js","./ta.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/ta.js","./te":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/te.js","./te.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/te.js","./th":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/th.js","./th.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/th.js","./tl-ph":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tlh.js","./tr":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tr.js","./tr.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tr.js","./tzl":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzl.js","./tzm":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/tzm.js","./uk":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/uk.js","./uk.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/uk.js","./uz":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/uz.js","./uz.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/uz.js","./vi":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/vi.js","./vi.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/vi.js","./zh-cn":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/zh-cn.js","./zh-tw":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/@xenialab/md-pickers/node_modules/moment/locale/zh-tw.js"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="./node_modules/@xenialab/md-pickers/node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/@xenialab/md-pickers/node_modules/moment/moment.js":function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t;function a(){return t.apply(null,arguments)}function o(e){t=e}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,a){return kt(e,t,n,a,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function f(e){return null==e._pf&&(e._pf=d()),e._pf}function m(e){if(null==e._isValid){var t=f(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function p(e){var t=u(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}function g(e){return void 0===e}var h=a.momentProperties=[];function _(e,t){var n,a,o;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=f(t)),g(t._locale)||(e._locale=t._locale),h.length>0)for(n in h)g(o=t[a=h[n]])||(e[a]=o);return e}var b=!1;function y(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===b&&(b=!0,a.updateOffset(this),b=!1)}function v(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function A(e){return e<0?Math.ceil(e):Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=A(t)),n}function w(e,t,n){var a,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(a=0;a<o;a++)(n&&e[a]!==t[a]||!n&&S(e[a])!==S(t[a]))&&i++;return i+r}function E(){}var C,T={};function I(e){return e?e.toLowerCase().replace("_","-"):e}function k(e){for(var t,n,a,o,r=0;r<e.length;){for(t=(o=I(e[r]).split("-")).length,n=(n=I(e[r+1]))?n.split("-"):null;t>0;){if(a=D(o.slice(0,t).join("-")))return a;if(n&&n.length>=t&&w(o,n,!0)>=t-1)break;t--}r++}return null}function D(t){var a=null;if(!T[t]&&e&&e.exports)try{a=C._abbr,n("./node_modules/@xenialab/md-pickers/node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+t),x(a)}catch(e){}return T[t]}function x(e,t){var n;return e&&(n=g(t)?P(e):M(e,t))&&(C=n),C._abbr}function M(e,t){return null!==t?(t.abbr=e,T[e]=T[e]||new E,T[e].set(t),x(e),T[e]):(delete T[e],null)}function P(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return C;if(!r(e)){if(t=D(e))return t;e=[e]}return k(e)}var O={};function R(e,t){var n=e.toLowerCase();O[n]=O[n+"s"]=O[t]=e}function N(e){return"string"==typeof e?O[e]||O[e.toLowerCase()]:void 0}function L(e){var t,n,a={};for(n in e)l(e,n)&&(t=N(n))&&(a[t]=e[n]);return a}function $(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function U(e,t){return function(n){return null!=n?(F(this,e,n),a.updateOffset(this,t),this):j(this,e)}}function j(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function F(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function q(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if($(this[e=N(e)]))return this[e](t);return this}function Y(e,t,n){var a=""+Math.abs(e),o=t-a.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+a}var H=/(\[[^\[]*\])|(\\)?([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?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},V={};function W(e,t,n,a){var o=a;"string"==typeof a&&(o=function(){return this[a]()}),e&&(V[e]=o),t&&(V[t[0]]=function(){return Y(o.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,n,a=e.match(H);for(t=0,n=a.length;t<n;t++)V[a[t]]?a[t]=V[a[t]]:a[t]=Q(a[t]);return function(o){var r="";for(t=0;t<n;t++)r+=a[t]instanceof Function?a[t].call(o,e):a[t];return r}}function K(e,t){return e.isValid()?(t=J(t,e.localeData()),G[t]=G[t]||z(t),G[t](e)):e.localeData().invalidDate()}function J(e,t){var n=5;function a(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;n>=0&&B.test(e);)e=e.replace(B,a),B.lastIndex=0,n-=1;return e}var X=/\d/,Z=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ae=/\d\d?/,oe=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[+-]?\d+(\.\d{1,3})?/,pe=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ge={};function he(e,t,n){ge[e]=$(t)?t:function(e,a){return e&&n?n:t}}function _e(e,t){return l(ge,e)?ge[e](t._strict,t._locale):new RegExp(be(e))}function be(e){return ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,o){return t||n||a||o})))}function ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ve={};function Ae(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(a=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)ve[e[n]]=a}function Se(e,t){Ae(e,(function(e,n,a,o){a._w=a._w||{},t(e,a._w,a,o)}))}function we(e,t,n){null!=t&&l(ve,e)&&ve[e](t,n._a,n,e)}var Ee=0,Ce=1,Te=2,Ie=3,ke=4,De=5,xe=6,Me=7,Pe=8;function Oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}W("M",["MM",2],"Mo",(function(){return this.month()+1})),W("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),W("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),R("month","M"),he("M",ae),he("MM",ae,Z),he("MMM",(function(e,t){return t.monthsShortRegex(e)})),he("MMMM",(function(e,t){return t.monthsRegex(e)})),Ae(["M","MM"],(function(e,t){t[Ce]=S(e)-1})),Ae(["MMM","MMMM"],(function(e,t,n,a){var o=n._locale.monthsParse(e,a,n._strict);null!=o?t[Ce]=o:f(n).invalidMonth=e}));var Re=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function Le(e,t){return r(this._months)?this._months[e.month()]:this._months[Re.test(t)?"format":"standalone"][e.month()]}var $e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ue(e,t){return r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]}function je(e,t,n){var a,o,r;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(o=u([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}}function Fe(e,t){var n;return e.isValid()?("string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))||(n=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)),e):e}function qe(e){return null!=e?(Fe(this,e),a.updateOffset(this,!0),this):j(this,"Month")}function Ye(){return Oe(this.year(),this.month())}var He=pe;function Be(e){return this._monthsParseExact?(l(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}var Ge=pe;function Ve(e){return this._monthsParseExact?(l(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}function We(){function e(e,t){return t.length-e.length}var t,n,a=[],o=[],r=[];for(t=0;t<12;t++)n=u([2e3,t]),a.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(a.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)a[t]=ye(a[t]),o[t]=ye(o[t]),r[t]=ye(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")$","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")$","i")}function Qe(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[Ce]<0||n[Ce]>11?Ce:n[Te]<1||n[Te]>Oe(n[Ee],n[Ce])?Te:n[Ie]<0||n[Ie]>24||24===n[Ie]&&(0!==n[ke]||0!==n[De]||0!==n[xe])?Ie:n[ke]<0||n[ke]>59?ke:n[De]<0||n[De]>59?De:n[xe]<0||n[xe]>999?xe:-1,f(e)._overflowDayOfYear&&(t<Ee||t>Te)&&(t=Te),f(e)._overflowWeeks&&-1===t&&(t=Me),f(e)._overflowWeekday&&-1===t&&(t=Pe),f(e).overflow=t),e}function ze(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function Ke(e,t){var n=!0;return c((function(){return n&&(ze(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)}),t)}var Je={};function Xe(e,t){Je[e]||(ze(t),Je[e]=!0)}a.suppressDeprecationWarnings=!1;var Ze=/^\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)?)?/,et=/^\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)?)?/,tt=/Z|[+-]\d\d(?::?\d\d)?/,nt=[["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}/]],at=[["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/]],ot=/^\/?Date\((\-?\d+)/i;function rt(e){var t,n,a,o,r,i,s=e._i,l=Ze.exec(s)||et.exec(s);if(l){for(f(e).iso=!0,t=0,n=nt.length;t<n;t++)if(nt[t][1].exec(l[1])){o=nt[t][0],a=!1!==nt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=at.length;t<n;t++)if(at[t][1].exec(l[3])){r=(l[2]||" ")+at[t][0];break}if(null==r)return void(e._isValid=!1)}if(!a&&null!=r)return void(e._isValid=!1);if(l[4]){if(!tt.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=o+(r||"")+(i||""),At(e)}else e._isValid=!1}function it(e){var t=ot.exec(e._i);null===t?(rt(e),!1===e._isValid&&(delete e._isValid,a.createFromInputFallback(e))):e._d=new Date(+t[1])}function st(e,t,n,a,o,r,i){var s=new Date(e,t,n,a,o,r,i);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function lt(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ct(e){return ut(e)?366:365}function ut(e){return e%4==0&&e%100!=0||e%400==0}a.createFromInputFallback=Ke("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),W("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),W(0,["YY",2],0,(function(){return this.year()%100})),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),R("year","y"),he("Y",ue),he("YY",ae,Z),he("YYYY",se,te),he("YYYYY",le,ne),he("YYYYYY",le,ne),Ae(["YYYYY","YYYYYY"],Ee),Ae("YYYY",(function(e,t){t[Ee]=2===e.length?a.parseTwoDigitYear(e):S(e)})),Ae("YY",(function(e,t){t[Ee]=a.parseTwoDigitYear(e)})),Ae("Y",(function(e,t){t[Ee]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var dt=U("FullYear",!1);function ft(){return ut(this.year())}function mt(e,t,n){var a=7+t-n;return-(7+lt(e,0,a).getUTCDay()-t)%7+a-1}function pt(e,t,n,a,o){var r,i,s=1+7*(t-1)+(7+n-a)%7+mt(e,a,o);return s<=0?i=ct(r=e-1)+s:s>ct(e)?(r=e+1,i=s-ct(e)):(r=e,i=s),{year:r,dayOfYear:i}}function gt(e,t,n){var a,o,r=mt(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?a=i+ht(o=e.year()-1,t,n):i>ht(e.year(),t,n)?(a=i-ht(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function ht(e,t,n){var a=mt(e,t,n),o=mt(e+1,t,n);return(ct(e)-a+o)/7}function _t(e,t,n){return null!=e?e:null!=t?t:n}function bt(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function yt(e){var t,n,a,o,r=[];if(!e._d){for(a=bt(e),e._w&&null==e._a[Te]&&null==e._a[Ce]&&vt(e),e._dayOfYear&&(o=_t(e._a[Ee],a[Ee]),e._dayOfYear>ct(o)&&(f(e)._overflowDayOfYear=!0),n=lt(o,0,e._dayOfYear),e._a[Ce]=n.getUTCMonth(),e._a[Te]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ie]&&0===e._a[ke]&&0===e._a[De]&&0===e._a[xe]&&(e._nextDay=!0,e._a[Ie]=0),e._d=(e._useUTC?lt:st).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ie]=24)}}function vt(e){var t,n,a,o,r,i,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,i=4,n=_t(t.GG,e._a[Ee],gt(Dt(),1,4).year),a=_t(t.W,1),((o=_t(t.E,1))<1||o>7)&&(l=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,n=_t(t.gg,e._a[Ee],gt(Dt(),r,i).year),a=_t(t.w,1),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(l=!0)):o=r),a<1||a>ht(n,r,i)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=pt(n,a,o,r,i),e._a[Ee]=s.year,e._dayOfYear=s.dayOfYear)}function At(e){if(e._f!==a.ISO_8601){e._a=[],f(e).empty=!0;var t,n,o,r,i,s=""+e._i,l=s.length,c=0;for(o=J(e._f,e._locale).match(H)||[],t=0;t<o.length;t++)r=o[t],(n=(s.match(_e(r,e))||[])[0])&&((i=s.substr(0,s.indexOf(n))).length>0&&f(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),c+=n.length),V[r]?(n?f(e).empty=!1:f(e).unusedTokens.push(r),we(r,n,e)):e._strict&&!n&&f(e).unusedTokens.push(r);f(e).charsLeftOver=l-c,s.length>0&&f(e).unusedInput.push(s),!0===f(e).bigHour&&e._a[Ie]<=12&&e._a[Ie]>0&&(f(e).bigHour=void 0),e._a[Ie]=St(e._locale,e._a[Ie],e._meridiem),yt(e),Qe(e)}else rt(e)}function St(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}function wt(e){var t,n,a,o,r;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)r=0,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],At(t),m(t)&&(r+=f(t).charsLeftOver,r+=10*f(t).unusedTokens.length,f(t).score=r,(null==a||r<a)&&(a=r,n=t));c(e,n||t)}function Et(e){if(!e._d){var t=L(e._i);e._a=s([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),yt(e)}}function Ct(e){var t=new y(Qe(Tt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||P(e._l),null===t||void 0===n&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new y(Qe(t)):(r(n)?wt(e):n?At(e):i(t)?e._d=t:It(e),m(e)||(e._d=null),e))}function It(e){var t=e._i;void 0===t?e._d=new Date(a.now()):i(t)?e._d=new Date(+t):"string"==typeof t?it(e):r(t)?(e._a=s(t.slice(0),(function(e){return parseInt(e,10)})),yt(e)):"object"==typeof t?Et(e):"number"==typeof t?e._d=new Date(t):a.createFromInputFallback(e)}function kt(e,t,n,a,o){var r={};return"boolean"==typeof n&&(a=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=n,r._i=e,r._f=t,r._strict=a,Ct(r)}function Dt(e,t,n,a){return kt(e,t,n,a,!1)}a.ISO_8601=function(){};var xt=Ke("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()})),Mt=Ke("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}));function Pt(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function Ot(){return Pt("isBefore",[].slice.call(arguments,0))}function Rt(){return Pt("isAfter",[].slice.call(arguments,0))}var Nt=function(){return Date.now?Date.now():+new Date};function Lt(e){var t=L(e),n=t.year||0,a=t.quarter||0,o=t.month||0,r=t.week||0,i=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*c+6e4*l+36e5*s,this._days=+i+7*r,this._months=+o+3*a+12*n,this._data={},this._locale=P(),this._bubble()}function $t(e){return e instanceof Lt}function Ut(e,t){W(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}Ut("Z",":"),Ut("ZZ",""),he("Z",fe),he("ZZ",fe),Ae(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ft(fe,e)}));var jt=/([\+\-]|\d\d)/gi;function Ft(e,t){var n=(t||"").match(e)||[],a=((n[n.length-1]||[])+"").match(jt)||["-",0,0],o=60*a[1]+S(a[2]);return"+"===a[0]?o:-o}function qt(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(v(e)||i(e)?+e:+Dt(e))-+n,n._d.setTime(+n._d+o),a.updateOffset(n,!1),n):Dt(e).local()}function Yt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(e,t){var n,o=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Ft(fe,e):Math.abs(e)<16&&(e*=60),!this._isUTC&&t&&(n=Yt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==e&&(!t||this._changeInProgress?ln(this,nn(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?o:Yt(this):null!=e?this:NaN}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Gt(e){return this.utcOffset(0,e)}function Vt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this}function Wt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ft(de,this._i)),this}function Qt(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function zt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kt(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(_(e,this),(e=Tt(e))._a){var t=e._isUTC?u(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Jt(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var en=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,tn=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;function nn(e,t){var n,a,o,r=e,i=null;return $t(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(r={},t?r[t]=e:r.milliseconds=e):(i=en.exec(e))?(n="-"===i[1]?-1:1,r={y:0,d:S(i[Te])*n,h:S(i[Ie])*n,m:S(i[ke])*n,s:S(i[De])*n,ms:S(i[xe])*n}):(i=tn.exec(e))?(n="-"===i[1]?-1:1,r={y:an(i[2],n),M:an(i[3],n),d:an(i[4],n),h:an(i[5],n),m:an(i[6],n),s:an(i[7],n),w:an(i[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=rn(Dt(r.from),Dt(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),a=new Lt(r),$t(e)&&l(e,"_locale")&&(a._locale=e._locale),a}function an(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function on(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 rn(e,t){var n;return e.isValid()&&t.isValid()?(t=qt(t,e),e.isBefore(t)?n=on(e,t):((n=on(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function sn(e,t){return function(n,a){var o;return null===a||isNaN(+a)||(Xe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),o=n,n=a,a=o),ln(this,nn(n="string"==typeof n?+n:n,a),e),this}}function ln(e,t,n,o){var r=t._milliseconds,i=t._days,s=t._months;e.isValid()&&(o=null==o||o,r&&e._d.setTime(+e._d+r*n),i&&F(e,"Date",j(e,"Date")+i*n),s&&Fe(e,j(e,"Month")+s*n),o&&a.updateOffset(e,i||s))}nn.fn=Lt.prototype;var cn=sn(1,"add"),un=sn(-1,"subtract");function dn(e,t){var n=e||Dt(),a=qt(n,this).startOf("day"),o=this.diff(a,"days",!0),r=o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse",i=t&&($(t[r])?t[r]():t[r]);return this.format(i||this.localeData().calendar(r,this,Dt(n)))}function fn(){return new y(this)}function mn(e,t){var n=v(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(g(t)?"millisecond":t))?+this>+n:+n<+this.clone().startOf(t))}function pn(e,t){var n=v(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(g(t)?"millisecond":t))?+this<+n:+this.clone().endOf(t)<+n)}function gn(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)}function hn(e,t){var n,a=v(e)?e:Dt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=N(t||"millisecond"))?+this==+a:(n=+a,+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t)))}function _n(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function bn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function yn(e,t,n){var a,o,r,i;return this.isValid()&&(a=qt(e,this)).isValid()?(o=6e4*(a.utcOffset()-this.utcOffset()),"year"===(t=N(t))||"month"===t||"quarter"===t?(i=vn(this,a),"quarter"===t?i/=3:"year"===t&&(i/=12)):(r=this-a,i="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-o)/864e5:"week"===t?(r-o)/6048e5:r),n?i:A(i)):NaN}function vn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a)))}function An(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Sn(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?$(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function wn(e){var t=K(this,e||a.defaultFormat);return this.localeData().postformat(t)}function En(e,t){return this.isValid()&&(v(e)&&e.isValid()||Dt(e).isValid())?nn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Cn(e){return this.from(Dt(),e)}function Tn(e,t){return this.isValid()&&(v(e)&&e.isValid()||Dt(e).isValid())?nn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function In(e){return this.to(Dt(),e)}function kn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=P(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Dn=Ke("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 xn(){return this._locale}function Mn(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":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}function Pn(e){return void 0===(e=N(e))||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")}function On(){return+this._d-6e4*(this._offset||0)}function Rn(){return Math.floor(+this/1e3)}function Nn(){return this._offset?new Date(+this):this._d}function Ln(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function $n(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Un(){return this.isValid()?this.toISOString():"null"}function jn(){return m(this)}function Fn(){return c({},f(this))}function qn(){return f(this).overflow}function Yn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Hn(e,t){W(0,[e,e.length],0,t)}function Bn(e){return Qn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gn(e){return Qn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vn(){return ht(this.year(),1,4)}function Wn(){var e=this.localeData()._week;return ht(this.year(),e.dow,e.doy)}function Qn(e,t,n,a,o){var r;return null==e?gt(this,a,o).year:(t>(r=ht(e,a,o))&&(t=r),zn.call(this,e,t,n,a,o))}function zn(e,t,n,a,o){var r=pt(e,t,n,a,o),i=lt(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Kn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Jn(e){return gt(e,this._week.dow,this._week.doy).week}W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hn("gggg","weekYear"),Hn("ggggg","weekYear"),Hn("GGGG","isoWeekYear"),Hn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),he("G",ue),he("g",ue),he("GG",ae,Z),he("gg",ae,Z),he("GGGG",se,te),he("gggg",se,te),he("GGGGG",le,ne),he("ggggg",le,ne),Se(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=S(e)})),Se(["gg","GG"],(function(e,t,n,o){t[o]=a.parseTwoDigitYear(e)})),W("Q",0,"Qo","quarter"),R("quarter","Q"),he("Q",X),Ae("Q",(function(e,t){t[Ce]=3*(S(e)-1)})),W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),he("w",ae),he("ww",ae,Z),he("W",ae),he("WW",ae,Z),Se(["w","ww","W","WW"],(function(e,t,n,a){t[a.substr(0,1)]=S(e)}));var Xn={dow:0,doy:6};function Zn(){return this._week.dow}function ea(){return this._week.doy}function ta(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function na(e){var t=gt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}W("D",["DD",2],"Do","date"),R("date","D"),he("D",ae),he("DD",ae,Z),he("Do",(function(e,t){return e?t._ordinalParse:t._ordinalParseLenient})),Ae(["D","DD"],Te),Ae("Do",(function(e,t){t[Te]=S(e.match(ae)[0],10)}));var aa=U("Date",!0);function oa(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}W("d",0,"do","day"),W("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),W("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),W("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),he("d",ae),he("e",ae),he("E",ae),he("dd",pe),he("ddd",pe),he("dddd",pe),Se(["dd","ddd","dddd"],(function(e,t,n,a){var o=n._locale.weekdaysParse(e,a,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e})),Se(["d","e","E"],(function(e,t,n,a){t[a]=S(e)}));var ra="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function ia(e,t){return r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}var sa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function la(e){return this._weekdaysShort[e.day()]}var ca="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ua(e){return this._weekdaysMin[e.day()]}function da(e,t,n){var a,o,r;for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(o=Dt([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}}function fa(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=oa(e,this.localeData()),this.add(e-t,"d")):t}function ma(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function pa(e){return this.isValid()?null==e?this.day()||7:this.day(this.day()%7?e:e-7):null!=e?this:NaN}function ga(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function ha(){return this.hours()%12||12}function _a(e,t){W(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ba(e,t){return t._meridiemParse}function ya(e){return"p"===(e+"").toLowerCase().charAt(0)}W("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),he("DDD",ie),he("DDDD",ee),Ae(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=S(e)})),W("H",["HH",2],0,"hour"),W("h",["hh",2],0,ha),W("hmm",0,0,(function(){return""+ha.apply(this)+Y(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+ha.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),_a("a",!0),_a("A",!1),R("hour","h"),he("a",ba),he("A",ba),he("H",ae),he("h",ae),he("HH",ae,Z),he("hh",ae,Z),he("hmm",oe),he("hmmss",re),he("Hmm",oe),he("Hmmss",re),Ae(["H","HH"],Ie),Ae(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ae(["h","hh"],(function(e,t,n){t[Ie]=S(e),f(n).bigHour=!0})),Ae("hmm",(function(e,t,n){var a=e.length-2;t[Ie]=S(e.substr(0,a)),t[ke]=S(e.substr(a)),f(n).bigHour=!0})),Ae("hmmss",(function(e,t,n){var a=e.length-4,o=e.length-2;t[Ie]=S(e.substr(0,a)),t[ke]=S(e.substr(a,2)),t[De]=S(e.substr(o)),f(n).bigHour=!0})),Ae("Hmm",(function(e,t,n){var a=e.length-2;t[Ie]=S(e.substr(0,a)),t[ke]=S(e.substr(a))})),Ae("Hmmss",(function(e,t,n){var a=e.length-4,o=e.length-2;t[Ie]=S(e.substr(0,a)),t[ke]=S(e.substr(a,2)),t[De]=S(e.substr(o))}));var va=/[ap]\.?m?\.?/i;function Aa(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Sa=U("Hours",!0);W("m",["mm",2],0,"minute"),R("minute","m"),he("m",ae),he("mm",ae,Z),Ae(["m","mm"],ke);var wa=U("Minutes",!1);W("s",["ss",2],0,"second"),R("second","s"),he("s",ae),he("ss",ae,Z),Ae(["s","ss"],De);var Ea,Ca=U("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),he("S",ie,X),he("SS",ie,Z),he("SSS",ie,ee),Ea="SSSS";Ea.length<=9;Ea+="S")he(Ea,ce);function Ta(e,t){t[xe]=S(1e3*("0."+e))}for(Ea="S";Ea.length<=9;Ea+="S")Ae(Ea,Ta);var Ia=U("Milliseconds",!1);function ka(){return this._isUTC?"UTC":""}function Da(){return this._isUTC?"Coordinated Universal Time":""}W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var xa=y.prototype;xa.add=cn,xa.calendar=dn,xa.clone=fn,xa.diff=yn,xa.endOf=Pn,xa.format=wn,xa.from=En,xa.fromNow=Cn,xa.to=Tn,xa.toNow=In,xa.get=q,xa.invalidAt=qn,xa.isAfter=mn,xa.isBefore=pn,xa.isBetween=gn,xa.isSame=hn,xa.isSameOrAfter=_n,xa.isSameOrBefore=bn,xa.isValid=jn,xa.lang=Dn,xa.locale=kn,xa.localeData=xn,xa.max=Mt,xa.min=xt,xa.parsingFlags=Fn,xa.set=q,xa.startOf=Mn,xa.subtract=un,xa.toArray=Ln,xa.toObject=$n,xa.toDate=Nn,xa.toISOString=Sn,xa.toJSON=Un,xa.toString=An,xa.unix=Rn,xa.valueOf=On,xa.creationData=Yn,xa.year=dt,xa.isLeapYear=ft,xa.weekYear=Bn,xa.isoWeekYear=Gn,xa.quarter=xa.quarters=Kn,xa.month=qe,xa.daysInMonth=Ye,xa.week=xa.weeks=ta,xa.isoWeek=xa.isoWeeks=na,xa.weeksInYear=Wn,xa.isoWeeksInYear=Vn,xa.date=aa,xa.day=xa.days=fa,xa.weekday=ma,xa.isoWeekday=pa,xa.dayOfYear=ga,xa.hour=xa.hours=Sa,xa.minute=xa.minutes=wa,xa.second=xa.seconds=Ca,xa.millisecond=xa.milliseconds=Ia,xa.utcOffset=Ht,xa.utc=Gt,xa.local=Vt,xa.parseZone=Wt,xa.hasAlignedHourOffset=Qt,xa.isDST=zt,xa.isDSTShifted=Kt,xa.isLocal=Jt,xa.isUtcOffset=Xt,xa.isUtc=Zt,xa.isUTC=Zt,xa.zoneAbbr=ka,xa.zoneName=Da,xa.dates=Ke("dates accessor is deprecated. Use date instead.",aa),xa.months=Ke("months accessor is deprecated. Use month instead",qe),xa.years=Ke("years accessor is deprecated. Use year instead",dt),xa.zone=Ke("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Bt);var Ma=xa;function Pa(e){return Dt(1e3*e)}function Oa(){return Dt.apply(null,arguments).parseZone()}var Ra={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Na(e,t,n){var a=this._calendar[e];return $(a)?a.call(t,n):a}var La={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"};function $a(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])}var Ua="Invalid date";function ja(){return this._invalidDate}var Fa="%d",qa=/\d{1,2}/;function Ya(e){return this._ordinal.replace("%d",e)}function Ha(e){return e}var Ba={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"};function Ga(e,t,n,a){var o=this._relativeTime[n];return $(o)?o(e,t,n,a):o.replace(/%d/i,e)}function Va(e,t){var n=this._relativeTime[e>0?"future":"past"];return $(n)?n(t):n.replace(/%s/i,t)}function Wa(e){var t,n;for(n in e)$(t=e[n])?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}var Qa=E.prototype;function za(e,t,n,a){var o=P(),r=u().set(a,t);return o[n](r,e)}function Ka(e,t,n,a,o){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return za(e,t,n,o);var r,i=[];for(r=0;r<a;r++)i[r]=za(e,r,n,o);return i}function Ja(e,t){return Ka(e,t,"months",12,"month")}function Xa(e,t){return Ka(e,t,"monthsShort",12,"month")}function Za(e,t){return Ka(e,t,"weekdays",7,"day")}function eo(e,t){return Ka(e,t,"weekdaysShort",7,"day")}function to(e,t){return Ka(e,t,"weekdaysMin",7,"day")}Qa._calendar=Ra,Qa.calendar=Na,Qa._longDateFormat=La,Qa.longDateFormat=$a,Qa._invalidDate=Ua,Qa.invalidDate=ja,Qa._ordinal=Fa,Qa.ordinal=Ya,Qa._ordinalParse=qa,Qa.preparse=Ha,Qa.postformat=Ha,Qa._relativeTime=Ba,Qa.relativeTime=Ga,Qa.pastFuture=Va,Qa.set=Wa,Qa.months=Le,Qa._months=Ne,Qa.monthsShort=Ue,Qa._monthsShort=$e,Qa.monthsParse=je,Qa._monthsRegex=Ge,Qa.monthsRegex=Ve,Qa._monthsShortRegex=He,Qa.monthsShortRegex=Be,Qa.week=Jn,Qa._week=Xn,Qa.firstDayOfYear=ea,Qa.firstDayOfWeek=Zn,Qa.weekdays=ia,Qa._weekdays=ra,Qa.weekdaysMin=ua,Qa._weekdaysMin=ca,Qa.weekdaysShort=la,Qa._weekdaysShort=sa,Qa.weekdaysParse=da,Qa.isPM=ya,Qa._meridiemParse=va,Qa.meridiem=Aa,x("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=Ke("moment.lang is deprecated. Use moment.locale instead.",x),a.langData=Ke("moment.langData is deprecated. Use moment.localeData instead.",P);var no=Math.abs;function ao(){var e=this._data;return this._milliseconds=no(this._milliseconds),this._days=no(this._days),this._months=no(this._months),e.milliseconds=no(e.milliseconds),e.seconds=no(e.seconds),e.minutes=no(e.minutes),e.hours=no(e.hours),e.months=no(e.months),e.years=no(e.years),this}function oo(e,t,n,a){var o=nn(t,n);return e._milliseconds+=a*o._milliseconds,e._days+=a*o._days,e._months+=a*o._months,e._bubble()}function ro(e,t){return oo(this,e,t,1)}function io(e,t){return oo(this,e,t,-1)}function so(e){return e<0?Math.floor(e):Math.ceil(e)}function lo(){var e,t,n,a,o,r=this._milliseconds,i=this._days,s=this._months,l=this._data;return r>=0&&i>=0&&s>=0||r<=0&&i<=0&&s<=0||(r+=864e5*so(uo(s)+i),i=0,s=0),l.milliseconds=r%1e3,e=A(r/1e3),l.seconds=e%60,t=A(e/60),l.minutes=t%60,n=A(t/60),l.hours=n%24,i+=A(n/24),s+=o=A(co(i)),i-=so(uo(o)),a=A(s/12),s%=12,l.days=i,l.months=s,l.years=a,this}function co(e){return 4800*e/146097}function uo(e){return 146097*e/4800}function fo(e){var t,n,a=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+a/864e5,n=this._months+co(t),"month"===e?n:n/12;switch(t=this._days+Math.round(uo(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}}function mo(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12)}function po(e){return function(){return this.as(e)}}var go=po("ms"),ho=po("s"),_o=po("m"),bo=po("h"),yo=po("d"),vo=po("w"),Ao=po("M"),So=po("y");function wo(e){return this[(e=N(e))+"s"]()}function Eo(e){return function(){return this._data[e]}}var Co=Eo("milliseconds"),To=Eo("seconds"),Io=Eo("minutes"),ko=Eo("hours"),Do=Eo("days"),xo=Eo("months"),Mo=Eo("years");function Po(){return A(this.days()/7)}var Oo=Math.round,Ro={s:45,m:45,h:22,d:26,M:11};function No(e,t,n,a,o){return o.relativeTime(t||1,!!n,e,a)}function Lo(e,t,n){var a=nn(e).abs(),o=Oo(a.as("s")),r=Oo(a.as("m")),i=Oo(a.as("h")),s=Oo(a.as("d")),l=Oo(a.as("M")),c=Oo(a.as("y")),u=o<Ro.s&&["s",o]||r<=1&&["m"]||r<Ro.m&&["mm",r]||i<=1&&["h"]||i<Ro.h&&["hh",i]||s<=1&&["d"]||s<Ro.d&&["dd",s]||l<=1&&["M"]||l<Ro.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,No.apply(null,u)}function $o(e,t){return void 0!==Ro[e]&&(void 0===t?Ro[e]:(Ro[e]=t,!0))}function Uo(e){var t=this.localeData(),n=Lo(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}var jo=Math.abs;function Fo(){var e,t,n=jo(this._milliseconds)/1e3,a=jo(this._days),o=jo(this._months);e=A(n/60),t=A(e/60),n%=60,e%=60;var r=A(o/12),i=o%=12,s=a,l=t,c=e,u=n,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(r?r+"Y":"")+(i?i+"M":"")+(s?s+"D":"")+(l||c||u?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(u?u+"S":""):"P0D"}var qo=Lt.prototype;return qo.abs=ao,qo.add=ro,qo.subtract=io,qo.as=fo,qo.asMilliseconds=go,qo.asSeconds=ho,qo.asMinutes=_o,qo.asHours=bo,qo.asDays=yo,qo.asWeeks=vo,qo.asMonths=Ao,qo.asYears=So,qo.valueOf=mo,qo._bubble=lo,qo.get=wo,qo.milliseconds=Co,qo.seconds=To,qo.minutes=Io,qo.hours=ko,qo.days=Do,qo.weeks=Po,qo.months=xo,qo.years=Mo,qo.humanize=Uo,qo.toISOString=Fo,qo.toString=Fo,qo.toJSON=Fo,qo.locale=kn,qo.localeData=xn,qo.toIsoString=Ke("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fo),qo.lang=Dn,W("X",0,0,"unix"),W("x",0,0,"valueOf"),he("x",ue),he("X",me),Ae("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),Ae("x",(function(e,t,n){n._d=new Date(S(e))})),a.version="2.11.2",o(Dt),a.fn=Ma,a.min=Ot,a.max=Rt,a.now=Nt,a.utc=u,a.unix=Pa,a.months=Ja,a.isDate=i,a.locale=x,a.invalid=p,a.duration=nn,a.isMoment=v,a.weekdays=Za,a.parseZone=Oa,a.localeData=P,a.isDuration=$t,a.monthsShort=Xa,a.weekdaysMin=to,a.defineLocale=M,a.weekdaysShort=eo,a.normalizeUnits=N,a.relativeTimeThreshold=$o,a.prototype=Ma,a}()},"./node_modules/angucomplete-alt/angucomplete-alt.js":(e,t,n)=>{var a,o,r;!function(i,s){"use strict";e.exports?e.exports=s(n("./node_modules/angular/index-exposed.js")):(o=[n("./node_modules/angular/index-exposed.js")],void 0===(r="function"==typeof(a=s)?a.apply(t,o):a)||(e.exports=r))}(window,(function(e){"use strict";e.module("angucomplete-alt",[]).directive("angucompleteAlt",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate",function(e,t,n,a,o,r,i){var s="/angucomplete-alt/index.html";function l(t,r,i,s){var l,c,u,d,f,m,p=r.find("input"),g=3,h=null,_="autocomplete-required",b=null,y=null,v=!1,A=r[0].querySelector(".angucomplete-dropdown"),S=!1,w=null;function E(e,n){e&&("object"==typeof e?(t.searchStr=k(e),I({originalObject:e})):"string"==typeof e&&e.length>0?t.searchStr=e:console&&console.error&&console.error("Tried to set "+(n?"initial":"")+" value of angucomplete to",e,"which is an invalid value"),M(!0))}function C(e){w=null,t.hideResults(e),document.body.removeEventListener("click",C)}function T(e){return e.which?e.which:e.keyCode}function I(e){"function"==typeof t.selectedObject?t.selectedObject(e,t.selectedObjectData):t.selectedObject=e,M(!!e)}function k(e){return t.titleField.split(",").map((function(t){return D(e,t)})).join(" ")}function D(e,t){var n,a;if(t){n=t.split("."),a=e;for(var o=0;o<n.length;o++)a=a[n[o]]}else a=e;return a}function x(e,n){var o,r,i;if(i=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),e)return e.match&&e.replace||(e=e.toString()),o=(r=e.match(i))?e.replace(i,'<span class="'+t.matchClass+'">'+r[0]+"</span>"):e,a.trustAsHtml(o)}function M(e){t.notEmpty=e,b=t.searchStr,t.fieldRequired&&s&&t.inputName&&s[t.inputName].$setValidity(_,e)}function P(e){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.searchStr||(e&&e.preventDefault(),o.cancel(h),U(),I({originalObject:t.searchStr}),t.clearSelected&&(t.searchStr=null),q())}function O(){return r[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function R(e){A.scrollTop=A.scrollTop+e}function N(){var e=t.results[t.currentIndex];t.matchClass?p.val(k(e.originalObject)):p.val(e.title)}function L(e){return function(n,a,o,r){a||o||r||!n.data||(n=n.data),t.searching=!1,B(D(c(n),t.remoteUrlDataField),e)}}function $(e,n,a,o){t.searching=v,n||a||o||(n=e.status),0!==n&&-1!==n&&(t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(e,n,a,o):console&&console.error&&console.error("http error"))}function U(){y&&y.resolve()}function j(a){var o={},r=t.remoteUrl+encodeURIComponent(a);t.remoteUrlRequestFormatter&&(o={params:t.remoteUrlRequestFormatter(a)},r=t.remoteUrl),t.remoteUrlRequestWithCredentials&&(o.withCredentials=!0),U(),y=e.defer(),o.timeout=y.promise,v=!0,n.get(r,o).then(L(a)).catch($).finally((function(){v=!1}))}function F(n){U(),y=e.defer(),t.remoteApiHandler(n,y.promise).then(L(n)).catch($)}function q(){t.showDropdown=!1,t.results=[],A&&(A.scrollTop=0)}function Y(){t.showDropdown=d,t.currentIndex=t.focusFirst?0:-1,t.results=[]}function H(e){!e||e.length<g||(t.localData?t.$apply((function(){var n;n=void 0!==t.localSearch()?t.localSearch()(e,t.localData):function(e){var n,a,o,r,i=t.searchFields.split(","),s=[];for(void 0!==t.parseInput()&&(e=t.parseInput()(e)),n=0;n<t.localData.length;n++){for(a=!1,o=0;o<i.length;o++)r=D(t.localData[n],i[o])||"",a=a||r.toString().toLowerCase().indexOf(e.toString().toLowerCase())>=0;a&&(s[s.length]=t.localData[n])}return s}(e),t.searching=!1,B(n,e)})):t.remoteApiHandler?F(e):j(e))}function B(e,n){var a,o,r,i,s,l;if(e&&e.length>0)for(t.results=[],a=0;a<e.length;a++)t.titleField&&""!==t.titleField&&(i=s=k(e[a])),o="",t.descriptionField&&(o=l=D(e[a],t.descriptionField)),r="",t.imageField&&(r=D(e[a],t.imageField)),t.matchClass&&(s=x(i,n),l=x(o,n)),t.results[t.results.length]={title:s,description:l,image:r,originalObject:e[a]};else t.results=[];t.autoMatch&&1===t.results.length&&function(e,n,a){if(!a)return!1;for(var o in n)if(n[o].toLowerCase()===a.toLowerCase())return t.selectResult(e),!0;return!1}(t.results[0],{title:i,desc:o||""},t.searchStr)?t.showDropdown=!1:0!==t.results.length||f?t.showDropdown=!0:t.showDropdown=!1}function G(){t.localData?(t.searching=!1,B(t.localData,"")):t.remoteApiHandler?(t.searching=!0,F("")):(t.searching=!0,j(""))}r.on("mousedown",(function(e){e.target.id?(w=e.target.id)===t.id+"_dropdown"&&document.body.addEventListener("click",C):w=e.target.className})),t.currentIndex=t.focusFirst?0:null,t.searching=!1,u=t.$watch("initialValue",(function(e){e&&(u(),E(e,!0))})),t.$watch("fieldRequired",(function(e,n){e!==n&&(e?b&&-1!==t.currentIndex?M(!0):M(!1):s[t.inputName].$setValidity(_,!0))})),t.$on("angucomplete-alt:clearInput",(function(e,n){n&&n!==t.id||(t.searchStr=null,I(),M(!1),q())})),t.$on("angucomplete-alt:changeInput",(function(e,n,a){n&&n===t.id&&E(a)})),t.onFocusHandler=function(){t.focusIn&&t.focusIn(),0!==g||t.searchStr&&0!==t.searchStr.length||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,G())},t.hideResults=function(){w&&(w===t.id+"_dropdown"||w.indexOf("angucomplete")>=0)?w=null:(l=o((function(){q(),t.$apply((function(){t.searchStr&&t.searchStr.length>0&&p.val(t.searchStr)}))}),200),U(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.searchStr&&t.searchStr.length>0&&-1===t.currentIndex&&P())},t.resetHideResults=function(){l&&o.cancel(l)},t.hoverRow=function(e){t.currentIndex=e},t.selectResult=function(e){t.matchClass&&(e.title=k(e.originalObject),e.description=D(e.originalObject,t.descriptionField)),t.clearSelected?t.searchStr=null:t.searchStr=e.title,I(e),q()},t.inputChangeHandler=function(e){return e.length<g?(U(),q()):0===e.length&&0===g&&G(),t.inputChanged&&(e=t.inputChanged(e)),e},t.fieldRequiredClass&&""!==t.fieldRequiredClass&&(_=t.fieldRequiredClass),t.minlength&&""!==t.minlength&&(g=parseInt(t.minlength,10)),t.pause||(t.pause=500),t.clearSelected||(t.clearSelected=!1),t.overrideSuggestions||(t.overrideSuggestions=!1),t.fieldRequired&&s&&(t.initialValue?M(!0):M(!1)),t.inputType=i.type?i.type:"text",t.textSearching=i.textSearching?i.textSearching:"Searching...",t.textNoResults=i.textNoResults?i.textNoResults:"No results found",d="false"!==t.textSearching,f="false"!==t.textNoResults,t.maxlength=i.maxlength?i.maxlength:524288,p.on("keydown",(function(e){var n=T(e),a=null,o=null;13===n&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(e.preventDefault(),t.selectResult(t.results[t.currentIndex])):(P(e),q()),t.$apply()):40===n&&t.results?(e.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply((function(){t.currentIndex++,N()})),S&&(a=O(),A.getBoundingClientRect().top+parseInt(getComputedStyle(A).maxHeight,10)<a.getBoundingClientRect().bottom&&R(function(e){var t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(a))))):38===n&&t.results?(e.preventDefault(),t.currentIndex>=1?(t.$apply((function(){t.currentIndex--,N()})),S&&(o=O().getBoundingClientRect().top-(A.getBoundingClientRect().top+parseInt(getComputedStyle(A).paddingTop,10)))<0&&R(o-1)):0===t.currentIndex&&t.$apply((function(){t.currentIndex=-1,p.val(t.searchStr)}))):9===n?t.results&&t.results.length>0&&t.showDropdown?-1===t.currentIndex&&t.overrideSuggestions?P():(-1===t.currentIndex&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.searchStr&&t.searchStr.length>0&&P():27===n&&e.preventDefault()})),p.on("keyup compositionend",(function(e){var n=T(e);if(37!==n&&39!==n)if(38===n||13===n)e.preventDefault();else if(40===n)e.preventDefault(),!t.showDropdown&&t.searchStr&&t.searchStr.length>=g&&(Y(),t.searching=!0,H(t.searchStr));else if(27===n)q(),t.$apply((function(){p.val(t.searchStr)}));else{if(0===g&&!t.searchStr)return;t.searchStr&&""!==t.searchStr?t.searchStr.length>=g&&(Y(),h&&o.cancel(h),t.searching=!0,h=o((function(){H(t.searchStr)}),t.pause)):t.showDropdown=!1,b&&b!==t.searchStr&&!t.clearSelected&&t.$apply((function(){I()}))}})),m="remoteUrlResponseFormatter",c=function(e){return t[m]?t[m](e):e},o((function(){var e=getComputedStyle(A);S=e.maxHeight&&"auto"===e.overflowY}))}return r.put(s,'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}">  <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/>  <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown">    <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div>    <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div>    <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}">      <div ng-if="imageField" class="angucomplete-image-holder">        <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/>        <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"></div>      </div>      <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"></div>      <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}</div>      <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"></div>      <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}</div>    </div>  </div></div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",selectedObjectData:"=",disableInput:"=",initialValue:"=",localData:"=",localSearch:"&",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",textSearching:"@",textNoResults:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",fieldTabindex:"@",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(e,t){return t.templateUrl||s},compile:function(e){var t=i.startSymbol(),n=i.endSymbol();if("{{"!==t||"}}"!==n){var a=e.html().replace(/\{\{/g,t).replace(/\}\}/g,n);e.html(a)}return l}}}])}))},"./node_modules/angular-animate/angular-animate.js":()=>{!function(e,t){"use strict";var n,a,o,r,i="-add",s="-remove",l="ng-animate",c="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",n="WebkitTransition",a="webkitTransitionEnd transitionend"):(n="transition",a="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",o="WebkitAnimation",r="webkitAnimationEnd animationend"):(o="animation",r="animationend");var u="Duration",d="Property",f="Delay",m="TimingFunction",p=o+f,g=o+u,h=n+f,_=n+u,b=t.$$minErr("ng");function y(e,t,n){if(!e)throw b("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function v(e,t){return e||t?e?t?(Q(e)&&(e=e.join(" ")),Q(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function A(e,t,n){var a="";return e=Q(e)?e:e&&Z(e)&&e.length?e.split(/\s+/):[],W(e,(function(e,o){e&&e.length>0&&(a+=o>0?" ":"",a+=n?t+e:e+t)})),a}function S(e){if(e instanceof te)switch(e.length){case 0:return e;case 1:if(1===e[0].nodeType)return e;break;default:return te(w(e))}if(1===e.nodeType)return te(e)}function w(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 E(e){return function(t,n){n.addClass&&(!function(e,t,n){W(t,(function(t){e.addClass(t,n)}))}(e,t,n.addClass),n.addClass=null),n.removeClass&&(!function(e,t,n){W(t,(function(t){e.removeClass(t,n)}))}(e,t,n.removeClass),n.removeClass=null)}}function C(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||ne;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=ne},e.$$prepared=!0}return e}function T(e,t){I(e,t),k(e,t)}function I(e,t){t.from&&(e.css(t.from),t.from=null)}function k(e,t){t.to&&(e.css(t.to),t.to=null)}function D(e,t,n){var a=t.options||{},o=n.options||{},r=(a.addClass||"")+" "+(o.addClass||""),l=(a.removeClass||"")+" "+(o.removeClass||""),c=function(e,t,n){var a=1,o=-1,r={};e=c(e),t=c(t),W(t,(function(e,t){r[t]=a})),n=c(n),W(n,(function(e,t){r[t]=r[t]===a?null:o}));var l={addClass:"",removeClass:""};function c(e){Z(e)&&(e=e.split(" "));var t={};return W(e,(function(e){e.length&&(t[e]=!0)})),t}return W(r,(function(t,n){var r,c;t===a?(r="addClass",c=!e[n]||e[n+s]):t===o&&(r="removeClass",c=e[n]||e[n+i]),c&&(l[r].length&&(l[r]+=" "),l[r]+=n)})),l}(e.attr("class"),r,l);o.preparationClasses&&(a.preparationClasses=O(o.preparationClasses,a.preparationClasses),delete o.preparationClasses);var u=a.domOperation!==ne?a.domOperation:null;return V(a,o),u&&(a.domOperation=u),c.addClass?a.addClass=c.addClass:a.addClass=null,c.removeClass?a.removeClass=c.removeClass:a.removeClass=null,t.addClass=a.addClass,t.removeClass=a.removeClass,a}function x(e){return e instanceof te?e[0]:e}function M(e,t){var n=t?"paused":"",a=o+"PlayState";return P(e,[a,n]),[a,n]}function P(e,t){var n=t[0],a=t[1];e.style[n]=a}function O(e,t){return e?t?e+" "+t:e:t}var R=function(e,t){var n=t?"-"+t+"s":"";return P(e,[h,n]),[h,n]},N=["$interpolate",function(e){return{link:function(t,n,a){var o=a.ngAnimateChildren;function r(e){e="on"===e||"true"===e,n.data(c,e)}Z(o)&&0===o.length?n.data(c,!0):(r(e(o)(t)),a.$observe("ngAnimateChildren",r))}}}],L="$$animateCss",$=1e3,U={transitionDuration:_,transitionDelay:h,transitionProperty:n+d,animationDuration:g,animationDelay:p,animationIterationCount:o+"IterationCount"},j={transitionDuration:_,transitionDelay:h,animationDuration:g,animationDelay:p};function F(e,t){return[t?p:h,e+"s"]}function q(e,t,n){var a=Object.create(null),o=e.getComputedStyle(t)||{};return W(n,(function(e,t){var n,r,i=o[e];if(i){var s=i.charAt(0);("-"===s||"+"===s||s>=0)&&(n=0,r=i.split(/\s*,\s*/),W(r,(function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,n=n?Math.max(e,n):e})),i=n),0===i&&(i=null),a[t]=i}})),a}function Y(e){return 0===e||null!=e}function H(e,t){var a=n,o=e+"s";return t?a+=u:o+=" linear all",[a,o]}function B(e,t,n){W(n,(function(n){e[n]=z(e[n])?e[n]:t.style.getPropertyValue(n)}))}var G,V,W,Q,z,K,J,X,Z,ee,te,ne,ae=["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,t,l,c,u,f,p,h,_){var b=E(t);var y=[];function v(e){y.push(e),h.waitUntilQuiet((function(){u.flush();for(var e=f(),t=0;t<y.length;t++)y[t](e);y.length=0}))}function S(t,n,a,o){var r=function(t,n,a,o,r){var i=u.get(a);i||"infinite"===(i=q(e,t,r)).animationIterationCount&&(i.animationIterationCount=1);var s=o||i.transitionDuration>0||i.animationDuration>0;return u.put(a,i,s),i}(t,0,a,o,U),i=r.animationDelay,s=r.transitionDelay;return r.maxDelay=i&&s?Math.max(i,s):i||s,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}return function(f,h){var y=h||{};y.$$prepared||(y=C(G(y)));var w={},E=x(f);if(!E||!E.parentNode||!_.enabled())return ke();var D,O,N,U,V,z,K,J,X,Z,ee=[],te=(f.attr("class"),function(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}(y)),ae=[];if(0===y.duration||!p.animations&&!p.transitions)return ke();var oe=y.event&&Q(y.event)?y.event.join(" "):y.event,re=oe&&y.structural,ie="",se="";re?ie=A(oe,"ng-",!0):oe&&(ie=oe),y.addClass&&(se+=A(y.addClass,i)),y.removeClass&&(se.length&&(se+=" "),se+=A(y.removeClass,s)),y.applyClassesEarly&&se.length&&b(f,y);var le=[ie,se].join(" ").trim(),ce=te.to&&Object.keys(te.to).length>0;if(!((y.keyframeStyle||"").length>0)&&!ce&&!le)return ke();var ue,de,fe=u.cacheKey(E,oe,y.addClass,y.removeClass);if(u.containsCachedAnimationWithoutDuration(fe))return le=null,ke();if(y.stagger>0){var me=parseFloat(y.stagger);ue={transitionDelay:me,animationDelay:me,transitionDuration:0,animationDuration:0}}else ue=function(n,a,o,r){var i,s="stagger-"+o;if(u.count(o)>0&&!(i=u.get(s))){var l=A(a,"-stagger");t.addClass(n,l),(i=q(e,n,r)).animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),t.removeClass(n,l),u.put(s,i,!0)}return i||{}}(E,le,fe,j);if(y.$$skipPreparationClasses||t.addClass(f,le),y.transitionStyle){var pe=[n,y.transitionStyle];P(E,pe),ee.push(pe)}if(y.duration>=0){de=E.style[n].length>0;var ge=H(y.duration,de);P(E,ge),ee.push(ge)}if(y.keyframeStyle){var he=[o,y.keyframeStyle];P(E,he),ee.push(he)}var _e=ue?y.staggerIndex>=0?y.staggerIndex:u.count(fe):0,be=0===_e;be&&!y.skipBlocking&&R(E,9999);var ye=S(E,0,fe,!re),ve=ye.maxDelay;z=Math.max(ve,0),J=ye.maxDuration;var Ae={};if(Ae.hasTransitions=ye.transitionDuration>0,Ae.hasAnimations=ye.animationDuration>0,Ae.hasTransitionAll=Ae.hasTransitions&&"all"===ye.transitionProperty,Ae.applyTransitionDuration=ce&&(Ae.hasTransitions&&!Ae.hasTransitionAll||Ae.hasAnimations&&!Ae.hasTransitions),Ae.applyAnimationDuration=y.duration&&Ae.hasAnimations,Ae.applyTransitionDelay=Y(y.delay)&&(Ae.applyTransitionDuration||Ae.hasTransitions),Ae.applyAnimationDelay=Y(y.delay)&&Ae.hasAnimations,Ae.recalculateTimingStyles=se.length>0,(Ae.applyTransitionDuration||Ae.applyAnimationDuration)&&(J=y.duration?parseFloat(y.duration):J,Ae.applyTransitionDuration&&(Ae.hasTransitions=!0,ye.transitionDuration=J,de=E.style[n+d].length>0,ee.push(H(J,de))),Ae.applyAnimationDuration&&(Ae.hasAnimations=!0,ye.animationDuration=J,ee.push([g,J+"s"]))),0===J&&!Ae.recalculateTimingStyles)return ke();var Se,we=A(le,"-active");null!=y.delay&&("boolean"!=typeof y.delay&&(Se=parseFloat(y.delay),z=Math.max(Se,0)),Ae.applyTransitionDelay&&ee.push(F(Se)),Ae.applyAnimationDelay&&ee.push(F(Se,!0)));return null==y.duration&&ye.transitionDuration>0&&(Ae.recalculateTimingStyles=Ae.recalculateTimingStyles||be),K=z*$,X=J*$,y.skipBlocking||(Ae.blockTransition=ye.transitionDuration>0,Ae.blockKeyframeAnimation=ye.animationDuration>0&&ue.animationDelay>0&&0===ue.animationDuration),y.from&&(y.cleanupStyles&&B(w,E,Object.keys(y.from)),I(f,y)),Ae.blockTransition||Ae.blockKeyframeAnimation?Ie(J):y.skipBlocking||R(E,!1),{$$willAnimate:!0,end:Ee,start:function(){if(!D)return U=new l(V={end:Ee,cancel:Ce,resume:null,pause:null}),v(xe),U}};function Ee(){Te()}function Ce(){Te(!0)}function Te(e){if(!(D||N&&O)){D=!0,O=!1,le&&!y.$$skipPreparationClasses&&t.removeClass(f,le),we&&t.removeClass(f,we),M(E,!1),R(E,!1),W(ee,(function(e){E.style[e[0]]=""})),b(f,y),T(f,y),Object.keys(w).length&&W(w,(function(e,t){e?E.style.setProperty(t,e):E.style.removeProperty(t)})),y.onDone&&y.onDone(),ae&&ae.length&&f.off(ae.join(" "),De);var n=f.data(L);n&&(c.cancel(n[0].timer),f.removeData(L)),U&&U.complete(!e)}}function Ie(e){Ae.blockTransition&&R(E,e),Ae.blockKeyframeAnimation&&M(E,!!e)}function ke(){return U=new l({end:Ee,cancel:Ce}),v(ne),Te(),{$$willAnimate:!1,start:function(){return U},end:Ee}}function De(e){e.stopPropagation();var t=e.originalEvent||e;if(t.target===E){var n=t.$manualTimeStamp||Date.now(),a=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-Z,0)>=K&&a>=J&&(N=!0,Te())}}function xe(){if(!D)if(E.parentNode){var e=function(e){if(N)O&&e&&(O=!1,Te());else if(O=!e,ye.animationDuration){var t=M(E,O);O?ee.push(t):(a=t,o=(n=ee).indexOf(a),a>=0&&n.splice(o,1))}var n,a,o},i=_e>0&&(ye.transitionDuration&&0===ue.transitionDuration||ye.animationDuration&&0===ue.animationDuration)&&Math.max(ue.animationDelay,ue.transitionDelay);i?c(s,Math.floor(i*_e*$),!1):s(),V.resume=function(){e(!0)},V.pause=function(){e(!1)}}else Te();function s(){if(!D){if(Ie(!1),W(ee,(function(e){var t=e[0],n=e[1];E.style[t]=n})),b(f,y),t.addClass(f,we),Ae.recalculateTimingStyles){if(E.getAttribute("class")+" "+le,fe=u.cacheKey(E,oe,y.addClass,y.removeClass),ye=S(E,0,fe,!1),ve=ye.maxDelay,z=Math.max(ve,0),0===(J=ye.maxDuration))return void Te();Ae.hasTransitions=ye.transitionDuration>0,Ae.hasAnimations=ye.animationDuration>0}if(Ae.applyAnimationDelay&&(ve="boolean"!=typeof y.delay&&Y(y.delay)?parseFloat(y.delay):ve,z=Math.max(ve,0),ye.animationDelay=ve,Se=F(ve,!0),ee.push(Se),E.style[Se[0]]=Se[1]),K=z*$,X=J*$,y.easing){var e,i=y.easing;Ae.hasTransitions&&(e=n+m,ee.push([e,i]),E.style[e]=i),Ae.hasAnimations&&(e=o+m,ee.push([e,i]),E.style[e]=i)}ye.transitionDuration&&ae.push(a),ye.animationDuration&&ae.push(r),Z=Date.now();var s=K+1.5*X,d=Z+s,p=f.data(L)||[],g=!0;if(p.length){var h=p[0];(g=d>h.expectedEndTime)?c.cancel(h.timer):p.push(Te)}if(g){var _=c(l,s,!1);p[0]={timer:_,expectedEndTime:d},p.push(Te),f.data(L,p)}ae.length&&f.on(ae.join(" "),De),y.to&&(y.cleanupStyles&&B(w,E,Object.keys(y.to)),k(f,y))}}function l(){var e=f.data(L);if(e){for(var t=1;t<e.length;t++)e[t]();f.removeData(L)}}}}}]}],oe=["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver");var t="ng-animate-shim",n="ng-anchor",a="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,o,r,i,s,l,c){if(!s.animations&&!s.transitions)return ne;var u,d=c[0].body,f=x(i),m=te((u=f).parentNode&&11===u.parentNode.nodeType||d.contains(f)?f:d);return function(o){return o.from&&o.to?function(o,i,s,l){var c=h(o),u=h(i),f=[];if(W(l,(function(o){var i=function(o,i,s){var l=te(x(i).cloneNode(!0)),c=p(y(l));i.addClass(t),s.addClass(t),l.addClass(n),m.append(l);var u,f=b();if(!f&&!(u=v()))return A();var h=f||u;return{start:function(){var e,t=h.start();return t.done((function(){if(t=null,!u&&(u=v()))return(t=u.start()).done((function(){t=null,A(),e.complete()})),t;A(),e.complete()})),e=new r({end:n,cancel:n});function n(){t&&t.end()}}};function _(e){var t={},n=x(e).getBoundingClientRect();return W(["width","height","top","left"],(function(e){var a=n[e];switch(e){case"top":a+=d.scrollTop;break;case"left":a+=d.scrollLeft}t[e]=Math.floor(a)+"px"})),t}function b(){var t=e(l,{addClass:a,delay:!0,from:_(i)});return t.$$willAnimate?t:null}function y(e){return e.attr("class")||""}function v(){var t=p(y(s)),n=g(t,c),a=g(c,t),o=e(l,{to:_(s),addClass:"ng-anchor-in "+n,removeClass:"ng-anchor-out "+a,delay:!0});return o.$$willAnimate?o:null}function A(){l.remove(),i.removeClass(t),s.removeClass(t)}}(0,o.out,o.in);i&&f.push(i)})),!c&&!u&&0===f.length)return;return{start:function(){var e=[];c&&e.push(c.start()),u&&e.push(u.start()),W(f,(function(t){e.push(t.start())}));var t=new r({end:n,cancel:n});return r.all(e,(function(e){t.complete(e)})),t;function n(){W(e,(function(e){e.end()}))}}}}(o.from,o.to,o.classes,o.anchors):h(o)};function p(e){return e.replace(/\bng-\S+\b/g,"")}function g(e,t){return Z(e)&&(e=e.split(" ")),Z(t)&&(t=t.split(" ")),e.filter((function(e){return-1===t.indexOf(e)})).join(" ")}function h(t){var n=t.element,a=t.options||{};t.structural&&(a.event=t.event,a.structural=!0,a.applyClassesEarly=!0,"leave"===t.event&&(a.onDone=a.domOperation)),a.preparationClasses&&(a.event=O(a.event,a.preparationClasses));var o=e(n,a);return o.$$willAnimate?o:null}}]}],re=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,a){var o=E(a);return function(e,t,a,i){var s=!1;3===arguments.length&&X(a)&&(i=a,a=null),i=C(i),a||(a=e.attr("class")||"",i.addClass&&(a+=" "+i.addClass),i.removeClass&&(a+=" "+i.removeClass));var l,c,u,d,f,m=i.addClass,p=i.removeClass,g=r(a);g.length&&("leave"===t?(d="leave",u="afterLeave"):(d="before"+t.charAt(0).toUpperCase()+t.substr(1),u=t),"enter"!==t&&"move"!==t&&(l=v(e,t,i,g,d)),c=v(e,t,i,g,u));if(l||c)return{$$willAnimate:!0,end:function(){return f?f.end():(_(),(f=new n).complete(!0)),f},start:function(){if(f)return f;var e;f=new n;var t=[];return l&&t.push((function(t){e=l(t)})),t.length?t.push((function(e){h(),e(!0)})):h(),c&&t.push((function(t){e=c(t)})),f.setHost({end:function(){o()},cancel:function(){o(!0)}}),n.chain(t,a),f;function a(e){_(),f.complete(e)}function o(t){s||((e||ne)(t),a(t))}}};function h(){i.domOperation(),o(e,i)}function _(){s=!0,h(),T(e,i)}function b(e,t,a,o,r){var i;switch(a){case"animate":i=[t,o.from,o.to,r];break;case"setClass":i=[t,m,p,r];break;case"addClass":i=[t,m,r];break;case"removeClass":i=[t,p,r];break;default:i=[t,r]}i.push(o);var s=e.apply(e,i);if(s)if(J(s.start)&&(s=s.start()),s instanceof n)s.done(r);else if(J(s))return s;return ne}function y(e,t,a,o,r){var i=[];return W(o,(function(o){var s=o[r];s&&i.push((function(){var o,r,i=!1,l=function(e){i||(i=!0,(r||ne)(e),o.complete(!e))};return o=new n({end:function(){l()},cancel:function(){l(!0)}}),r=b(s,e,t,a,(function(e){l(!1===e)})),o}))})),i}function v(e,t,a,o,r){var i,s,l=y(e,t,a,o,r);0===l.length&&("beforeSetClass"===r?(i=y(e,"removeClass",a,o,"beforeRemoveClass"),s=y(e,"addClass",a,o,"beforeAddClass")):"setClass"===r&&(i=y(e,"removeClass",a,o,"removeClass"),s=y(e,"addClass",a,o,"addClass")),i&&(l=l.concat(i)),s&&(l=l.concat(s)));if(0!==l.length)return function(e){var t=[];return l.length&&W(l,(function(e){t.push(e())})),t.length?n.all(t,e):e(),function(e){W(t,(function(t){e?t.cancel():t.end()}))}}}};function r(n){n=Q(n)?n:n.split(" ");for(var a=[],o={},r=0;r<n.length;r++){var i=n[r],s=e.$$registeredAnimations[i];s&&!o[i]&&(a.push(t.get(s)),o[i]=!0)}return a}}]}],ie=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){return function(e){if(e.from&&e.to){var a=n(e.from),o=n(e.to);if(!a&&!o)return;return{start:function(){var e=[];a&&e.push(a.start()),o&&e.push(o.start()),t.all(e,(function(e){n.complete(e)}));var n=new t({end:r(),cancel:r()});return n;function r(){return function(){W(e,(function(e){e.end()}))}}}}}return n(e)};function n(t){var n=t.element,a=t.event,o=t.options,r=t.classes;return e(n,a,r,o)}}]}],se="data-ng-animate",le="$ngAnimatePin",ce=["$animateProvider",function(t){var n=this.rules={skip:[],cancel:[],join:[]};function a(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function o(e,t){if(e&&t){var n=function(e){if(!e)return null;var t=e.split(" "),n=Object.create(null);return W(t,(function(e){n[e]=!0})),n}(t);return e.split(" ").some((function(e){return n[e]}))}}function r(e,t,a){return n[e].some((function(e){return e(t,a)}))}function l(e,t){var n=(e.addClass||"").length>0,a=(e.removeClass||"").length>0;return t?n&&a:n||a}n.join.push((function(e,t){return!e.structural&&l(e)})),n.skip.push((function(e,t){return!e.structural&&!l(e)})),n.skip.push((function(e,t){return"leave"===t.event&&e.structural})),n.skip.push((function(e,t){return t.structural&&2===t.state&&!e.structural})),n.cancel.push((function(e,t){return t.structural&&e.structural})),n.cancel.push((function(e,t){return 2===t.state&&e.structural})),n.cancel.push((function(e,t){if(t.structural)return!1;var n=e.addClass,a=e.removeClass,r=t.addClass,i=t.removeClass;return!(ee(n)&&ee(a)||ee(r)&&ee(i))&&(o(n,i)||o(a,r))})),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(n,o,u,d,f,m,p,g,h,_,b){var v=new f,I=new f,k=null;function M(e){I.delete(e.target)}var P=o.$watch((function(){return 0===g.totalPendingRequests}),(function(e){e&&(P(),o.$$postDigest((function(){o.$$postDigest((function(){null===k&&(k=!0)}))})))})),R=Object.create(null),N=t.customFilter(),L=t.classNameFilter(),$=function(){return!0},U=N||$,j=L?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return L.test(n)}:$,F=E(h);function q(e,t){return D(e,t,{})}var Y=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))};function H(e,t,n){var a=w(t);return e.filter((function(e){return!(e.node===a&&(!n||e.callback===n))}))}function B(e,t){"close"!==e||t.parentNode||J.off(t)}var J={on:function(e,t,n){var a=w(t);R[e]=R[e]||[],R[e].push({node:a,callback:n}),te(t).on("$destroy",(function(){v.get(a)||J.off(e,t,n)}))},off:function(e,t,n){if(1!==arguments.length||Z(arguments[0])){var a=R[e];a&&(R[e]=1===arguments.length?null:H(a,t,n))}else for(var o in t=arguments[0],R)R[o]=H(R[o],t)},pin:function(e,t){y(K(e),"element","not an element"),y(K(t),"parentElement","not an element"),e.data(le,t)},push:function(e,t,f,g){return(f=f||{}).domOperation=g,function(e,t,f){var g=G(f),h=S(e),_=x(h),y=_&&_.parentNode;g=C(g);var w=new p,E=(M=!1,function(e){M?e():o.$$postDigest((function(){M=!0,e()}))});var M;Q(g.addClass)&&(g.addClass=g.addClass.join(" "));g.addClass&&!Z(g.addClass)&&(g.addClass=null);Q(g.removeClass)&&(g.removeClass=g.removeClass.join(" "));g.removeClass&&!Z(g.removeClass)&&(g.removeClass=null);g.from&&!X(g.from)&&(g.from=null);g.to&&!X(g.to)&&(g.to=null);if(!(k&&_&&U(_,t,f)&&j(_,g)))return re(),w;var P=["enter","move","leave"].indexOf(t)>=0,N=b(),L=N||I.get(_),$=!L&&v.get(_)||{},H=!!$.state;L||H&&1===$.state||(L=!function(e,t,n){var a,o=d[0].body,r=x(u),i=e===o||"HTML"===e.nodeName,s=e===r,l=!1,f=I.get(e),m=te.data(e,le);m&&(t=x(m));for(;t&&(s||(s=t===r),1===t.nodeType);){var p=v.get(t)||{};if(!l){var g=I.get(t);if(!0===g&&!1!==f){f=!0;break}!1===g&&(f=!1),l=p.structural}if(ee(a)||!0===a){var h=te.data(t,c);z(h)&&(a=h)}if(l&&!1===a)break;if(i||(i=t===o),i&&s)break;t=s||!(m=te.data(t,le))?t.parentNode:x(m)}return(!l||a)&&!0!==f&&s&&i}(_,y));if(L)return N&&oe(w,t,"start",a(g)),re(),N&&oe(w,t,"close",a(g)),w;P&&function(e){var t=e.querySelectorAll("[data-ng-animate]");W(t,(function(e){var t=parseInt(e.getAttribute(se),10),n=v.get(e);if(n)switch(t){case 2:n.runner.end();case 1:v.delete(e)}}))}(_);var V={structural:P,element:h,event:t,addClass:g.addClass,removeClass:g.removeClass,close:re,options:g,runner:w};if(H){if(r("skip",V,$))return 2===$.state?(re(),w):(D(h,$,V),$.runner);if(r("cancel",V,$))if(2===$.state)$.runner.end();else{if(!$.structural)return D(h,$,V),$.runner;$.close()}else if(r("join",V,$)){if(2!==$.state)return function(e,t,n,a){var o="";n&&(o=A(n,"ng-",!0)),a.addClass&&(o=O(o,A(a.addClass,i))),a.removeClass&&(o=O(o,A(a.removeClass,s))),o.length&&(a.preparationClasses=o,t.addClass(o))}(0,h,P?t:null,g),t=V.event=$.event,g=D(h,$,V),$.runner;q(h,V)}}else q(h,V);var K=V.structural;K||(K="animate"===V.event&&Object.keys(V.options.to||{}).length>0||l(V));if(!K)return re(),ne(_),w;var J=($.counter||0)+1;return V.counter=J,ae(_,1,V),o.$$postDigest((function(){h=S(e);var n=v.get(_),o=!n;n=n||{};var r=(h.parent()||[]).length>0&&("animate"===n.event||n.structural||l(n));if(o||n.counter!==J||!r)return o&&(F(h,g),T(h,g)),(o||P&&n.event!==t)&&(g.domOperation(),w.end()),void(r||ne(_));t=!n.structural&&l(n,!0)?"setClass":n.event,ae(_,2);var i=m(h,t,n.options);w.setHost(i),oe(w,t,"start",a(g)),i.done((function(e){re(!e);var n=v.get(_);n&&n.counter===J&&ne(_),oe(w,t,"close",a(g))}))})),w;function oe(e,t,a,o){E((function(){var e=function(e,t,n){var a=[],o=R[n];return o&&W(o,(function(o){(Y.call(o.node,t)||"leave"===n&&Y.call(o.node,e))&&a.push(o.callback)})),a}(y,_,t);e.length?n((function(){W(e,(function(e){e(h,a,o)})),B(a,_)})):B(a,_)})),e.progress(t,a,o)}function re(e){!function(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}(h,g),F(h,g),T(h,g),g.domOperation(),w.complete(!e)}}(e,t,f)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!k;else{var a=K(e);if(a){var o=x(e);1===n?t=!I.get(o):(I.has(o)||te(e).on("$destroy",M),I.set(o,!t))}else t=k=!!e}return t}};return J;function ne(e){e.removeAttribute(se),v.delete(e)}function ae(e,t,n){(n=n||{}).state=t,e.setAttribute(se,t);var a=v.get(e),o=a?V(a,n):n;v.set(e,o)}}]}],ue=["$animateProvider",function(e){var t="ng-animate-ref",n=this.drivers=[],a="$$animationRunner",o="$$animatePrepareClasses";function r(e){return e.data(a)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(e,i,s,c,u,d,f){var m=[],p=E(e);return function(g,h,_){_=C(_);var b=["enter","move","leave"].indexOf(h)>=0,y=new c({end:function(){I()},cancel:function(){I(!0)}});if(!n.length)return I(),y;var A=v(g.attr("class"),v(_.addClass,_.removeClass)),S=_.tempClasses;return S&&(A+=" "+S,_.tempClasses=null),b&&g.data(o,"ng-"+h+"-prepare"),function(e,t){e.data(a,t)}(g,y),m.push({element:g,classes:A,event:h,structural:b,options:_,beforeStart:function(){S=(S?S+" ":"")+l,e.addClass(g,S);var t=g.data(o);t&&(e.removeClass(g,t),t=null)},close:I}),g.on("$destroy",E),m.length>1||i.$$postDigest((function(){var a=[];W(m,(function(e){r(e.element)?a.push(e):e.close()})),m.length=0;var i=function(e){var n=[],a={};W(e,(function(e,o){var r=x(e.element),i=e.event,s=["enter","move"].indexOf(i)>=0,l=e.structural?function(e){var n="[ng-animate-ref]",a=e.hasAttribute(t)?[e]:e.querySelectorAll(n),o=[];return W(a,(function(e){var n=e.getAttribute(t);n&&n.length&&o.push(e)})),o}(r):[];if(l.length){var c=s?"to":"from";W(l,(function(e){var n=e.getAttribute(t);a[n]=a[n]||{},a[n][c]={animationID:o,element:te(e)}}))}else n.push(e)}));var o={},r={};return W(a,(function(t,a){var i=t.from,s=t.to;if(i&&s){var l=e[i.animationID],c=e[s.animationID],u=i.animationID.toString();if(!r[u]){var d=r[u]={structural:!0,beforeStart:function(){l.beforeStart(),c.beforeStart()},close:function(){l.close(),c.close()},classes:w(l.classes,c.classes),from:l,to:c,anchors:[]};d.classes.length?n.push(d):(n.push(l),n.push(c))}r[u].anchors.push({out:i.element,in:s.element})}else{var f=i?i.animationID:s.animationID,m=f.toString();o[m]||(o[m]=!0,n.push(e[f]))}})),n}(a),c=[];W(i,(function(e){var t=e.from?e.from.element:e.element,a=_.addClass;a=(a?a+" ":"")+l;var o=f.cacheKey(t[0],e.event,a,_.removeClass);c.push({element:t,domNode:x(t),fn:function(){var t,a=e.close;if(f.containsCachedAnimationWithoutDuration(o))a();else{if(e.beforeStart(),r(e.anchors?e.from.element||e.to.element:e.element)){var i=function(e){for(var t=n.length-1;t>=0;t--){var a=n[t],o=s.get(a)(e);if(o)return o}}(e);i&&(t=i.start)}if(t){var l=t();l.done((function(e){a(!e)})),function(e,t){e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element);function n(e){var n=r(e);n&&n.setHost(t)}}(e,l)}else a()}}})}));for(var p=function(e){var t,n={children:[]},a=new u;for(t=0;t<e.length;t++){var o=e[t];a.set(o.domNode,e[t]={domNode:o.domNode,element:o.element,fn:o.fn,children:[]})}for(t=0;t<e.length;t++)r(e[t]);return function(e){var t,n=[],a=[];for(t=0;t<e.children.length;t++)a.push(e.children[t]);var o=a.length,r=0,i=[];for(t=0;t<a.length;t++){var s=a[t];o<=0&&(o=r,r=0,n.push(i),i=[]),i.push(s),s.children.forEach((function(e){r++,a.push(e)})),o--}return i.length&&n.push(i),n}(n);function r(e){if(e.processed)return e;e.processed=!0;var t,o=e.domNode,i=o.parentNode;for(a.set(o,e);i;){if(t=a.get(i)){t.processed||(t=r(t));break}i=i.parentNode}return(t||n).children.push(e),e}}(c),g=0;g<p.length;g++)for(var h=p[g],b=0;b<h.length;b++){var y=h[b],v=y.element;if(p[g][b]=y.fn,0!==g){var A=v.data(o);A&&e.addClass(v,A)}else v.removeData(o)}d(p)})),y;function w(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],a=0;a<e.length;a++){var o=e[a];if("ng-"!==o.substring(0,3))for(var r=0;r<t.length;r++)if(o===t[r]){n.push(o);break}}return n.join(" ")}function E(){var e=r(g);!e||"leave"===h&&_.$$domOperationFired||e.end()}function I(t){g.off("$destroy",E),function(e){e.removeData(a)}(g),p(g,_),T(g,_),_.domOperation(),S&&e.removeClass(g,S),y.complete(!t)}}}]}];t.module("ngAnimate",[],(function(){ne=t.noop,G=t.copy,V=t.extend,te=t.element,W=t.forEach,Q=t.isArray,Z=t.isString,X=t.isObject,ee=t.isUndefined,z=t.isDefined,J=t.isFunction,K=t.isElement})).info({angularVersion:"1.8.2"}).directive("ngAnimateSwap",["$animate",function(e){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(t,n,a,o,r){var i,s;t.$watchCollection(a.ngAnimateSwap||a.for,(function(t){i&&e.leave(i),s&&(s.$destroy(),s=null),(t||0===t)&&r((function(t,a){i=t,s=a,e.enter(t,null,n)}))}))}}}]).directive("ngAnimateChildren",N).factory("$$rAFScheduler",["$$rAF",function(e){var t,n;function a(e){t=t.concat(e),o()}return t=a.queue=[],a.waitUntilQuiet=function(t){n&&n(),n=e((function(){n=null,t(),o()}))},a;function o(){if(t.length){for(var a=t.shift(),r=0;r<a.length;r++)a[r]();n||e((function(){n||o()}))}}}]).provider("$$animateQueue",ce).provider("$$animateCache",(function(){var e="$$ngAnimateParentKey",t=0,n=Object.create(null);this.$get=[function(){return{cacheKey:function(n,a,o,r){var i=n.parentNode,s=[i[e]||(i[e]=++t),a,n.getAttribute("class")];return o&&s.push(o),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration:function(e){var t=n[e];return t&&!t.isValid||!1},flush:function(){n=Object.create(null)},count:function(e){var t=n[e];return t?t.total:0},get:function(e){var t=n[e];return t&&t.value},put:function(e,t,a){n[e]?(n[e].total++,n[e].value=t):n[e]={total:1,value:t,isValid:a}}}}]})).provider("$$animation",ue).provider("$animateCss",ae).provider("$$animateCssDriver",oe).provider("$$animateJs",re).provider("$$animateJsDriver",ie)}(window,window.angular)},"./node_modules/angular-animate/index.js":(e,t,n)=>{n("./node_modules/angular-animate/angular-animate.js"),e.exports="ngAnimate"},"./node_modules/angular-aria/angular-aria.js":()=>{!function(e,t){"use strict";var n="ngAriaDisable",a=t.module("ngAria",["ng"]).info({angularVersion:"1.8.2"}).provider("$aria",(function(){var e={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function a(t,a,o,i){return function(s,l,c){if(!c.hasOwnProperty(n)){var u=c.$normalize(a);!e[u]||r(l,o)||c[u]||s.$watch(c[t],(function(e){e=i?!e:!!e,l.attr(a,e)}))}}}this.config=function(n){e=t.extend(e,n)},this.$get=function(){return{config:function(t){return e[t]},$$watchExpr:a}}})),o=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],r=function(e,t){if(-1!==t.indexOf(e[0].nodeName))return!0};a.directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",o,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",o,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",o,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",o,!1)}]).directive("ngModel",["$aria",function(e){function t(t,n,a,i){return e.config(n)&&!a.attr(t)&&(i||!r(a,o))&&("hidden"!==a.attr("type")||"INPUT"!==a[0].nodeName)}function a(e,t){return!t.attr("role")&&t.attr("type")===e&&!r(t,o)}return{restrict:"A",require:"ngModel",priority:200,compile:function(o,r){if(!r.hasOwnProperty(n)){var i=function(e,t){var n=e.type,a=e.role;return"checkbox"===(n||a)||"menuitemcheckbox"===a?"checkbox":"radio"===(n||a)||"menuitemradio"===a?"radio":"range"===n||"progressbar"===a||"slider"===a?"range":""}(r);return{post:function(n,o,r,s){var l=t("tabindex","tabindex",o,!1);function c(){return s.$modelValue}switch(i){case"radio":case"checkbox":a(i,o)&&o.attr("role",i),t("aria-checked","ariaChecked",o,!1)&&n.$watch(c,"radio"===i?function(e){var t=r.value==s.$viewValue;o.attr("aria-checked",t)}:function(){o.attr("aria-checked",!s.$isEmpty(s.$viewValue))}),l&&o.attr("tabindex",0);break;case"range":if(a(i,o)&&o.attr("role","slider"),e.config("ariaValue")){var u=!o.attr("aria-valuemin")&&(r.hasOwnProperty("min")||r.hasOwnProperty("ngMin")),d=!o.attr("aria-valuemax")&&(r.hasOwnProperty("max")||r.hasOwnProperty("ngMax")),f=!o.attr("aria-valuenow");u&&r.$observe("min",(function(e){o.attr("aria-valuemin",e)})),d&&r.$observe("max",(function(e){o.attr("aria-valuemax",e)})),f&&n.$watch(c,(function(e){o.attr("aria-valuenow",e)}))}l&&o.attr("tabindex",0)}!r.hasOwnProperty("ngRequired")&&s.$validators.required&&t("aria-required","ariaRequired",o,!1)&&r.$observe("required",(function(){o.attr("aria-required",!!r.required)})),t("aria-invalid","ariaInvalid",o,!0)&&n.$watch((function(){return s.$invalid}),(function(e){o.attr("aria-invalid",!!e)}))}}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",o,!1)}]).directive("ngMessages",(function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,a,o){a.hasOwnProperty(n)||t.attr("aria-live")||t.attr("aria-live","assertive")}}})).directive("ngClick",["$aria","$parse",function(e,t){return{restrict:"A",compile:function(a,i){if(!i.hasOwnProperty(n)){var s=t(i.ngClick);return function(t,n,a){r(n,o)||(e.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),e.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!e.config("bindKeydown")||a.ngKeydown||a.ngKeypress||a.ngKeyup||n.on("keydown",(function(e){var n=e.which||e.keyCode;13!==n&&32!==n||(-1!==o.indexOf(e.target.nodeName)||e.target.isContentEditable||e.preventDefault(),t.$apply((function(){s(t,{$event:e})})))})))}}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,a,i){i.hasOwnProperty(n)||!e.config("tabindex")||a.attr("tabindex")||r(a,o)||a.attr("tabindex",0)}}])}(window,window.angular)},"./node_modules/angular-aria/index.js":(e,t,n)=>{n("./node_modules/angular-aria/angular-aria.js"),e.exports="ngAria"},"./node_modules/angular-chart.js/dist/angular-chart.js":(e,t,n)=>{!function(t){"use strict";e.exports=function(e,t){t.defaults.global.multiTooltipTemplate="<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%= value %>",t.defaults.global.tooltips.mode="label",t.defaults.global.elements.line.borderWidth=2,t.defaults.global.elements.rectangle.borderWidth=2,t.defaults.global.legend.display=!1,t.defaults.global.colors=["#97BBCD","#DCDCDC","#F7464A","#46BFBD","#FDB45C","#949FB1","#4D5360"];var n="object"==typeof window.G_vmlCanvasManager&&null!==window.G_vmlCanvasManager&&"function"==typeof window.G_vmlCanvasManager.initElement;n&&(t.defaults.global.animation=!1);return e.module("chart.js",[]).provider("ChartJs",a).factory("ChartJsFactory",["ChartJs","$timeout",o]).directive("chartBase",["ChartJsFactory",function(e){return new e}]).directive("chartLine",["ChartJsFactory",function(e){return new e("line")}]).directive("chartBar",["ChartJsFactory",function(e){return new e("bar")}]).directive("chartHorizontalBar",["ChartJsFactory",function(e){return new e("horizontalBar")}]).directive("chartRadar",["ChartJsFactory",function(e){return new e("radar")}]).directive("chartDoughnut",["ChartJsFactory",function(e){return new e("doughnut")}]).directive("chartPie",["ChartJsFactory",function(e){return new e("pie")}]).directive("chartPolarArea",["ChartJsFactory",function(e){return new e("polarArea")}]).directive("chartBubble",["ChartJsFactory",function(e){return new e("bubble")}]).name;function a(){var n={responsive:!0},a={Chart:t,getOptions:function(t){var a=t&&n[t]||{};return e.extend({},n,a)}};this.setOptions=function(t,o){o?n[t]=e.merge(n[t]||{},o):(o=t,n=e.merge(n,o)),e.merge(a.Chart.defaults,n)},this.$get=function(){return a}}function o(a,o){return function(t){return{restrict:"CA",scope:{chartGetColor:"=?",chartType:"=",chartData:"=?",chartLabels:"=?",chartOptions:"=?",chartSeries:"=?",chartColors:"=?",chartClick:"=?",chartHover:"=?",chartDatasetOverride:"=?"},link:function(a,o){function s(e,n){if(e&&e.length&&(!Array.isArray(e[0])||e[0].length)){var s=t||a.chartType;if(s)return a.chart&&i(e,n)?E(e,a):void r(s,a,o)}else I(a)}function l(n,i){if(!C(n)&&!e.equals(n,i)){var s=t||a.chartType;s&&r(s,a,o)}}function c(t,n){C(t)||e.equals(t,n)||r(t,a,o)}n&&window.G_vmlCanvasManager.initElement(o[0]),a.$watch("chartData",s,!0),a.$watch("chartSeries",l,!0),a.$watch("chartLabels",l,!0),a.$watch("chartOptions",l,!0),a.$watch("chartColors",l,!0),a.$watch("chartDatasetOverride",l,!0),a.$watch("chartType",c,!1),a.$on("$destroy",(function(){I(a)})),a.$on("$resize",(function(){a.chart&&a.chart.resize()}))}}};function r(e,t,n){var o=S(e,t);if(_(t)&&T(e,t,n,o)){var r=n[0],i=r.getContext("2d");t.chartGetColor=b(t);var s=y(e,t);I(t),t.chart=new a.Chart(i,{type:e,data:s,options:o}),t.$emit("chart-create",t.chart),w(r,t)}}function i(e,t){return!!(e&&t&&e.length&&t.length)&&(Array.isArray(e[0])?e.length===t.length&&e.every((function(e,n){return e.length===t[n].length})):t.reduce(s,0)>0&&e.length===t.length)}function s(e,t){return e+t}function l(t,n,a){var o={point:void 0,points:void 0};return function(r){var i=t.chart.getElementAtEvent||t.chart.getPointAtEvent,s=t.chart.getElementsAtEvent||t.chart.getPointsAtEvent;if(s){var l=s.call(t.chart,r),c=i?i.call(t.chart,r)[0]:void 0;!1!==a&&(e.equals(o.points,l)||e.equals(o.point,c))||(o.point=c,o.points=l,t[n](l,r,c))}}}function c(n,o){for(var r=e.copy(o.chartColors||a.getOptions(n).chartColors||t.defaults.global.colors),i=r.length<o.chartData.length;r.length<o.chartData.length;)r.push(o.chartGetColor());return i&&(o.chartColors=r),r.map(u)}function u(e){return"string"==typeof e&&"r"===e[0]?f(h(e)):"string"==typeof e&&"#"===e[0]?f(g(e.substr(1))):"object"==typeof e&&null!==e?e:d()}function d(){return f([m(0,255),m(0,255),m(0,255)])}function f(e){var t=e[3]||1;return{backgroundColor:p(e=e.slice(0,3),.2),pointBackgroundColor:p(e,t),pointHoverBackgroundColor:p(e,.8),borderColor:p(e,t),pointBorderColor:"#fff",pointHoverBorderColor:p(e,t)}}function m(e,t){return Math.floor(Math.random()*(t-e+1))+e}function p(e,t){return n?"rgb("+e.join(",")+")":"rgba("+e.concat(t).join(",")+")"}function g(e){var t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]}function h(e){var t=e.match(/^rgba?\(([\d,.]+)\)$/);if(!t)throw new Error("Cannot parse rgb value");return(e=t[1].split(",")).map(Number)}function _(e){return e.chartData&&e.chartData.length}function b(e){return"function"==typeof e.chartGetColor?e.chartGetColor:d}function y(e,t){var n=c(e,t);return Array.isArray(t.chartData[0])?v(t.chartLabels,t.chartData,t.chartSeries||[],n,t.chartDatasetOverride):A(t.chartLabels,t.chartData,n,t.chartDatasetOverride)}function v(t,n,a,o,r){return{labels:t,datasets:n.map((function(t,n){var i=e.extend({},o[n],{label:a[n],data:t});return r&&r.length>=n&&e.merge(i,r[n]),i}))}}function A(t,n,a,o){var r={labels:t,datasets:[{data:n,backgroundColor:a.map((function(e){return e.pointBackgroundColor})),hoverBackgroundColor:a.map((function(e){return e.backgroundColor}))}]};return o&&e.merge(r.datasets[0],o),r}function S(t,n){return e.extend({},a.getOptions(t),n.chartOptions)}function w(t,n){t.onclick=n.chartClick?l(n,"chartClick",!1):e.noop,t.onmousemove=n.chartHover?l(n,"chartHover",!0):e.noop}function E(e,t){Array.isArray(t.chartData[0])?t.chart.data.datasets.forEach((function(t,n){t.data=e[n]})):t.chart.data.datasets[0].data=e,t.chart.update(),t.$emit("chart-update",t.chart)}function C(e){return!e||Array.isArray(e)&&!e.length||"object"==typeof e&&!Object.keys(e).length}function T(e,t,n,a){return!a.responsive||0!==n[0].clientHeight||(o((function(){r(e,t,n)}),50,!1),!1)}function I(e){e.chart&&(e.chart.destroy(),e.$emit("chart-destroy",e.chart))}}}("undefined"!=typeof angular?angular:n("./node_modules/angular/index-exposed.js"),"undefined"!=typeof Chart?Chart:n("./node_modules/chart.js/src/chart.js"))}()},"./node_modules/angular-ckeditor-legacy/angular-ckeditor.js":function(e,t,n){var a,o,r;o=[n("./node_modules/angular/index-exposed.js")],void 0===(r="function"==typeof(a=function(e){e.module("ckeditor",[]).directive("ckeditor",["$parse",n]);var t=window&&window.setImmediate?window.setImmediate:function(e){setTimeout(e,0)};function n(e){return{restrict:"A",require:["ckeditor","ngModel"],controller:["$scope","$element","$attrs","$parse","$q",a],link:function(n,a,o,r){var i=r[0],s=r[1];i.ready().then((function(){["dataReady","change","blur","saveSnapshot"].forEach((function(e){i.onCKEvent(e,(function(){s.$setViewValue(i.instance.getData()||"")}))})),i.instance.setReadOnly(!!o.readonly),o.$observe("readonly",(function(e){i.instance.setReadOnly(!!e)})),t((function(){e(o.ready)(n)}))})),s.$render=function(){i.ready().then((function(){i.instance.setData(s.$viewValue||"",{noSnapshot:!0,callback:function(){i.instance.fire("updateSnapshot")}})}))}}}}function a(e,n,a,o,r){var i,s=o(a.ckeditor)(e)||{},l=n[0],c=r.defer();i=l.hasAttribute("contenteditable")&&"true"==l.getAttribute("contenteditable").toLowerCase()?this.instance=CKEDITOR.inline(l,s):this.instance=CKEDITOR.replace(l,s),this.onCKEvent=function(n,a){function o(){var e=arguments;t((function(){r.apply(null,e)}))}function r(){var t=arguments;e.$apply((function(){a.apply(null,t)}))}return i.on(n,o),function(){i.removeListener(n,r)}},this.onCKEvent("instanceReady",(function(){c.resolve(!0)})),this.ready=function(){return c.promise},e.$on("$destroy",(function(){c.promise.then((function(){i.destroy(!1)}))}))}})?a.apply(t,o):a)||(e.exports=r)},"./node_modules/angular-cookies/angular-cookies.js":()=>{!function(e,t){"use strict";function n(e,n,a){var o=a.baseHref(),r=e[0];return function(e,a,i){r.cookie=function(e,a,r){var i,s;s=(r=r||{}).expires,i=t.isDefined(r.path)?r.path:o,t.isUndefined(a)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",a=""),t.isString(s)&&(s=new Date(s));var l=encodeURIComponent(e)+"="+encodeURIComponent(a);l+=i?";path="+i:"",l+=r.domain?";domain="+r.domain:"",l+=s?";expires="+s.toUTCString():"",l+=r.secure?";secure":"";var c=(l+=r.samesite?";samesite="+r.samesite:"").length+1;return c>4096&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+c+" > 4096 bytes)!"),l}(e,a,i)}}t.module("ngCookies",["ng"]).info({angularVersion:"1.8.2"}).provider("$cookies",[function(){var e=this.defaults={};function n(n){return n?t.extend({},e,n):e}this.$get=["$$cookieReader","$$cookieWriter",function(e,a){return{get:function(t){return e()[t]},getObject:function(e){var n=this.get(e);return n?t.fromJson(n):n},getAll:function(){return e()},put:function(e,t,o){a(e,t,n(o))},putObject:function(e,n,a){this.put(e,t.toJson(n),a)},remove:function(e,t){a(e,void 0,n(t))}}}]}]),n.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",(function(){this.$get=n}))}(window,window.angular)},"./node_modules/angular-cookies/index.js":(e,t,n)=>{n("./node_modules/angular-cookies/angular-cookies.js"),e.exports="ngCookies"},"./node_modules/angular-cron-jobs/dist/angular-cron-jobs.min.js":()=>{angular.module("templates-angularcronjobs",["cronselection.html"]),angular.module("cronselection.html",[]).run(["$templateCache",function(e){e.put("cronselection.html",'<div class="cron-wrap">\n    <span>Every: </span>\n    <div class="cron-select-wrap">\n        <select class="cron-select" ng-model="myFrequency.base" ng-options="item.value as item.label for item in frequency"></select>\n    </div>\n    <div class="select-options">\n        <span ng-show="myFrequency.base == 4">on </span>\n        <div ng-show="myFrequency.base == 4" class="cron-select-wrap">\n            \x3c!-- If Multiple is Enabled --\x3e\n            <select class="cron-select day-value"\n                    ng-model="myFrequency.dayValues"\n                    ng-if="allowMultiple" multiple\n                    ng-options="value as (value | cronDayName: cronStyle) for value in dayValues">\n            </select>\n            \x3c!-- If Multiple is not Enabled --\x3e\n            <select class="cron-select day-value"\n                    ng-model="myFrequency.dayValues"\n                    ng-if="!allowMultiple"\n                    ng-options="value as (value | cronDayName: cronStyle) for value in dayValues">\n            </select>\n        </div>\n        <span ng-show="myFrequency.base >= 5">on the </span>\n        <div ng-show="myFrequency.base >= 5" class="cron-select-wrap">\n            \x3c!-- If Multiple is Enabled --\x3e\n            <select class="cron-select day-of-month-value"\n                    ng-model="myFrequency.dayOfMonthValues"\n                    ng-if="allowMultiple" multiple\n                    ng-options="value as (value | cronNumeral) for value in dayOfMonthValues">\n            </select>\n            \x3c!-- If Multiple is not Enabled --\x3e\n            <select class="cron-select day-of-month-value"\n                    ng-model="myFrequency.dayOfMonthValues"\n                    ng-if="!allowMultiple"\n                    ng-options="value as (value | cronNumeral) for value in dayOfMonthValues">\n            </select>\n        </div>\n        <span ng-show="myFrequency.base == 6">of </span>\n        \x3c!-- If Multiple is Enabled --\x3e\n        <div ng-show="myFrequency.base == 6" class="cron-select-wrap">\n            <select class="cron-select month-value"\n                    ng-model="myFrequency.monthValues"\n                    ng-if="allowMultiple" multiple\n                    ng-options="value as (value | cronMonthName) for value in monthValues">\n            </select>\n            \x3c!-- If Multiple is not Enabled --\x3e\n            <select class="cron-select month-value"\n                    ng-model="myFrequency.monthValues"\n                    ng-if="!allowMultiple"\n                    ng-options="value as (value | cronMonthName) for value in monthValues">\n            </select>\n        </div>\n        <span ng-show="myFrequency.base >= 2">at </span>\n        \x3c!-- If Multiple is Enabled --\x3e\n        <div ng-show="myFrequency.base >= 3" class="cron-select-wrap">\n            <select class="cron-select hour-value"\n                    ng-model="myFrequency.hourValues"\n                    ng-if="allowMultiple" multiple\n                    ng-options="value as value for value in hourValues">\n            </select>\n            \x3c!-- If Multiple is not Enabled --\x3e\n            <select class="cron-select hour-value"\n                    ng-model="myFrequency.hourValues"\n                    ng-if="!allowMultiple"\n                    ng-options="value as value for value in hourValues">\n            </select>\n        </div>\n        <span ng-show="myFrequency.base >= 3"> : </span>\n        \x3c!-- If Multiple is Enabled --\x3e\n        <div ng-show="myFrequency.base >= 2" class="cron-select-wrap">\n            <select class="cron-select minute-value"\n                    ng-model="myFrequency.minuteValues"\n                    ng-if="allowMultiple" multiple\n                    ng-options="value as value for value in minuteValues">\n            </select>\n            \x3c!-- If Multiple is not Enabled --\x3e\n            <select class="cron-select minute-value"\n                    ng-model="myFrequency.minuteValues"\n                    ng-if="!allowMultiple"\n                    ng-options="value as value for value in minuteValues">\n            </select>\n        </div>\n        <span ng-show="myFrequency.base == 2"> past the hour</span>\n    </div>\n</div>')}]),angular.module("angular-cron-jobs",["templates-angularcronjobs"]),angular.module("angular-cron-jobs").directive("cronSelection",["cronService","baseFrequency",function(e,t){return{restrict:"EA",replace:!0,transclude:!0,require:"ngModel",scope:{ngModel:"=",config:"=",myFrequency:"=?frequency"},templateUrl:function(e,t){return t.template||"cronselection.html"},link:function(n,a,o,r){function i(e){e.base=parseInt(e.base),e.base>=t.hour&&(e.minuteValues=n.minuteValues[0]),e.base>=t.day&&(e.hourValues=n.hourValues[0]),e.base===t.week&&(e.dayValues=n.dayValues[0]),e.base>=t.month&&(e.dayOfMonthValues=n.dayOfMonthValues[0]),e.base===t.year&&(e.monthValues=n.monthValues[0])}var s=!1;if(n.baseFrequency=t,n.frequency=[{value:1,label:"Minute"},{value:2,label:"Hour"},{value:3,label:"Day"},{value:4,label:"Week"},{value:5,label:"Month"},{value:6,label:"Year"}],n.$watch("ngModel",(function(t){angular.isDefined(t)&&t?(s=!0,n.myFrequency=e.fromCron(t,n.allowMultiple,n.cronStyle)):""===t&&(n.myFrequency=void 0)})),"object"==typeof n.config&&!n.config.length){if("object"==typeof n.config.options){var l=Object.keys(n.config.options);for(var c in l){var u=l[c].replace(/^allow/,""),d=l[c];if(!n.config.options[d])for(var f in n.frequency)n.frequency[f].label===u&&n.frequency.splice(f,1)}}angular.isDefined(n.config.allowMultiple)?n.allowMultiple=n.config.allowMultiple:n.allowMultiple=!1,angular.isDefined(n.config.quartz)&&n.config.quartz?n.cronStyle="quartz":n.cronStyle="default"}n.minuteValues=[0,5,10,15,20,25,30,35,40,45,50,55],n.hourValues=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],n.dayOfMonthValues=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],n.dayValues=[0,1,2,3,4,5,6],n.monthValues=[1,2,3,4,5,6,7,8,9,10,11,12],"quartz"===n.cronStyle&&(n.dayValues=[1,2,3,4,5,6,7]),n.$watch("myFrequency",(function(t,a){if(void 0!==t){!t||!t.base||a&&t.base===a.base||s?t&&t.base&&a&&a.base&&(s=!1):i(t);var o=e.setCron(t,n.cronStyle);r.$setViewValue(o)}}),!0)}}}]).filter("cronNumeral",(function(){return function(e){switch(e){case 1:return"1st";case 2:return"2nd";case 3:return"3rd";case 21:return"21st";case 22:return"22nd";case 23:return"23rd";case 31:return"31st";case null:return null;default:return e+"th"}}})).filter("cronMonthName",(function(){return function(e){var t={1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"};return null!==e&&angular.isDefined(t[e])?t[e]:null}})).filter("cronDayName",(function(){return function(e,t){var n;return n="quartz"===t?{1:"Sunday",2:"Monday",3:"Tuesday",4:"Wednesday",5:"Thursday",6:"Friday",7:"Saturday"}:{0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},null!==e&&angular.isDefined(n[e])?n[e]:null}})).directive("ngMultiple",(function(){return{restrict:"A",scope:{ngMultiple:"="},link:function(e,t){e.$watch("ngMultiple",(function(e){e?t.attr("multiple","multiple"):t.removeAttr("multiple")}))}}})),angular.module("angular-cron-jobs").value("baseFrequency",{minute:1,hour:2,day:3,week:4,month:5,year:6}).factory("cronService",["baseFrequency",function(e){var t={setCron:function(e,t){return"quartz"===t?this.setQuartzCron(e):this.setDefaultCron(e)},setQuartzCron:function(t){var n=["0","*","*","*","*","?"];return t&&t.base&&t.base>=e.hour&&(n[1]=void 0!==t.minuteValues?t.minuteValues:"0"),t&&t.base&&t.base>=e.day&&(n[2]=void 0!==t.hourValues?t.hourValues:"*"),t&&t.base&&t.base===e.week&&(n[3]="?",n[5]=t.dayValues),t&&t.base&&t.base>=e.month&&(n[3]=void 0!==t.dayOfMonthValues?t.dayOfMonthValues:"?"),t&&t.base&&t.base===e.year&&(n[4]=void 0!==t.monthValues?t.monthValues:"*"),n.join(" ")},setDefaultCron:function(t){var n=["*","*","*","*","*"];return t&&t.base&&t.base>=e.hour&&(n[0]=void 0!==t.minuteValues?t.minuteValues:"*"),t&&t.base&&t.base>=e.day&&(n[1]=void 0!==t.hourValues?t.hourValues:"*"),t&&t.base&&t.base===e.week&&(n[4]=t.dayValues),t&&t.base&&t.base>=e.month&&(n[2]=void 0!==t.dayOfMonthValues?t.dayOfMonthValues:"*"),t&&t.base&&t.base===e.year&&(n[3]=void 0!==t.monthValues?t.monthValues:"*"),n.join(" ")},fromCron:function(e,t,n){return"quartz"===n?this.fromQuartzCron(e,t):this.fromDefaultCron(e,t)},fromDefaultCron:function(t,n){var a=t.replace(/\s+/g," ").split(" "),o={base:"1"},r=[];if("*"===a[0]&&"*"===a[1]&&"*"===a[2]&&"*"===a[3]&&"*"===a[4]?o.base=e.minute:"*"===a[1]&&"*"===a[2]&&"*"===a[3]&&"*"===a[4]?o.base=e.hour:"*"===a[2]&&"*"===a[3]&&"*"===a[4]?o.base=e.day:"*"===a[2]&&"*"===a[3]?o.base=e.week:"*"===a[3]&&"*"===a[4]?o.base=e.month:"*"===a[4]&&(o.base=e.year),"*"!==a[0])if(n){r=a[0].split(",");for(var i=0;i<r.length;i++)r[i]=+r[i];o.minuteValues=r}else o.minuteValues=parseInt(a[0]);if("*"!==a[1])if(n){r=a[1].split(",");for(i=0;i<r.length;i++)r[i]=+r[i];o.hourValues=r}else o.hourValues=parseInt(a[1]);if("*"!==a[2])if(n){r=a[2].split(",");for(i=0;i<r.length;i++)r[i]=+r[i];o.dayOfMonthValues=r}else o.dayOfMonthValues=parseInt(a[2]);if("*"!==a[3])if(n){r=a[3].split(",");for(i=0;i<r.length;i++)r[i]=+r[i];o.monthValues=r}else o.monthValues=parseInt(a[3]);if("*"!==a[4])if(n){r=a[4].split(",");for(i=0;i<r.length;i++)r[i]=+r[i];o.dayValues=r}else o.dayValues=parseInt(a[4]);return o},fromQuartzCron:function(e,t){var n=e.replace(/\s+/g," ").split(" "),a={base:"1"},o=[];if("*"===n[1]&&"*"===n[2]&&"*"===n[3]&&"*"===n[4]&&"?"===n[5]?a.base=1:"*"===n[2]&&"*"===n[3]&&"*"===n[4]&&"?"===n[5]?a.base=2:"*"===n[3]&&"*"===n[4]&&"?"===n[5]?a.base=3:"?"===n[3]?a.base=4:"*"===n[4]&&"?"===n[5]?a.base=5:"?"===n[5]&&(a.base=6),"*"!==n[1])if(t){o=n[1].split(",");for(var r=0;r<o.length;r++)o[r]=+o[r];a.minuteValues=o}else a.minuteValues=parseInt(n[1]);if("*"!==n[2])if(t){o=n[2].split(",");for(r=0;r<o.length;r++)o[r]=+o[r];a.hourValues=o}else a.hourValues=parseInt(n[2]);if("*"!==n[3]&&"?"!==n[3])if(t){o=n[3].split(",");for(r=0;r<o.length;r++)o[r]=+o[r];a.dayOfMonthValues=o}else a.dayOfMonthValues=parseInt(n[3]);if("*"!==n[4])if(t){o=n[4].split(",");for(r=0;r<o.length;r++)o[r]=+o[r];a.monthValues=o}else a.monthValues=parseInt(n[4]);if("*"!==n[5]&&"?"!==n[5])if(t){o=n[5].split(",");for(r=0;r<o.length;r++)o[r]=+o[r];a.dayValues=o}else a.dayValues=parseInt(n[5]);return a}};return t}])},"./node_modules/angular-filter/dist/angular-filter.js":()=>{!function(e,t,n){"use strict";var a=t.isDefined,o=t.isUndefined,r=t.isFunction,i=t.isString,s=t.isNumber,l=t.isObject,c=t.isArray,u=t.forEach,d=t.extend,f=t.copy,m=t.equals;function p(e){return c(e)?e:Object.keys(e).map((function(t){return e[t]}))}function g(e){return null===e}function h(e,t){return-1==Object.keys(e).map((function(a){return t[a]!==n&&t[a]==e[a]})).indexOf(!1)}function _(e,t){function n(e,t,n){for(var a=0;t+a<=e.length;){if(e.charAt(t+a)==n)return a;a++}return-1}for(var a=0,o=0;o<=t.length;o++){var r=n(e,a,t.charAt(o));if(-1==r)return!1;a+=r+1}return!0}function b(e,t,n){var o=0;return e.filter((function(e){var r=a(n)?o<t&&n(e):o<t;return o=r?o+1:o,r}))}function y(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}function v(e,t,n){return t=t||[],Object.keys(e).forEach((function(a){if(l(e[a])&&!c(e[a])){var o=n?n+"."+a:n;v(e[a],t,o||a)}else{var r=n?n+"."+a:a;t.push(r)}})),t}function A(e){return e&&e.$evalAsync&&e.$watch}function S(){return function(e,t){return e>t}}function w(){return function(e,t){return e>=t}}function E(){return function(e,t){return e<t}}function C(){return function(e,t){return e<=t}}function T(){return function(e,t){return e==t}}function I(){return function(e,t){return e!=t}}function k(){return function(e,t){return e===t}}function D(){return function(e,t){return e!==t}}function x(e){return function(t,n){return t=l(t)?p(t):t,!(!c(t)||o(n))&&t.some((function(t){return i(n)&&l(t)||r(n)?e(n)(t):t===n}))}}function M(e,t){return(t=t||0)>=e.length?e:c(e[t])?M(e.slice(0,t).concat(e[t],e.slice(t+1)),t):M(e,t+1)}function P(e){return function(t,n){if(t=l(t)?p(t):t,!c(t))return t;var a=[],r=e(n);return o(n)?t.filter((function(e,t,n){return n.indexOf(e)===t})):t.filter((function(e){var t=r(e);return!function(e,t){if(o(t))return!1;return e.some((function(e){return m(e,t)}))}(a,t)&&(a.push(t),!0)}))}}function O(e,t,n){return t?e+n+O(e,--t,n):e}function R(){return function(e){return i(e)?e.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "):e}}String.prototype.contains||(String.prototype.contains=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),t.module("a8m.angular",[]).filter("isUndefined",(function(){return function(e){return t.isUndefined(e)}})).filter("isDefined",(function(){return function(e){return t.isDefined(e)}})).filter("isFunction",(function(){return function(e){return t.isFunction(e)}})).filter("isString",(function(){return function(e){return t.isString(e)}})).filter("isNumber",(function(){return function(e){return t.isNumber(e)}})).filter("isArray",(function(){return function(e){return t.isArray(e)}})).filter("isObject",(function(){return function(e){return t.isObject(e)}})).filter("isEqual",(function(){return function(e,n){return t.equals(e,n)}})),t.module("a8m.conditions",[]).filter({isGreaterThan:S,">":S,isGreaterThanOrEqualTo:w,">=":w,isLessThan:E,"<":E,isLessThanOrEqualTo:C,"<=":C,isEqualTo:T,"==":T,isNotEqualTo:I,"!=":I,isIdenticalTo:k,"===":k,isNotIdenticalTo:D,"!==":D}),t.module("a8m.is-null",[]).filter("isNull",(function(){return function(e){return g(e)}})),t.module("a8m.after-where",[]).filter("afterWhere",(function(){return function(e,t){if(e=l(e)?p(e):e,!c(e)||o(t))return e;var n=e.map((function(e){return h(t,e)})).indexOf(!0);return e.slice(-1===n?0:n)}})),t.module("a8m.after",[]).filter("after",(function(){return function(e,t){return e=l(e)?p(e):e,c(e)?e.slice(t):e}})),t.module("a8m.before-where",[]).filter("beforeWhere",(function(){return function(e,t){if(e=l(e)?p(e):e,!c(e)||o(t))return e;var n=e.map((function(e){return h(t,e)})).indexOf(!0);return e.slice(0,-1===n?e.length:++n)}})),t.module("a8m.before",[]).filter("before",(function(){return function(e,t){return e=l(e)?p(e):e,c(e)?e.slice(0,t?--t:t):e}})),t.module("a8m.chunk-by",["a8m.filter-watcher"]).filter("chunkBy",["filterWatcher",function(e){return function(t,n,a){return e.isMemoized("chunkBy",arguments)||e.memoize("chunkBy",arguments,this,i(t,n,a));function r(e,t){for(var n=[];e--;)n[e]=t;return n}function i(e,t,n){return c(e)?e.map((function(e,a,i){return a*=t,e=i.slice(a,a+t),!o(n)&&e.length<t?e.concat(r(t-e.length,n)):e})).slice(0,Math.ceil(e.length/t)):e}}}]),t.module("a8m.concat",[]).filter("concat",[function(){return function(e,t){if(o(t))return e;if(c(e))return l(t)?e.concat(p(t)):e.concat(t);if(l(e)){var n=p(e);return l(t)?n.concat(p(t)):n.concat(t)}return e}}]),t.module("a8m.contains",[]).filter({contains:["$parse",x],some:["$parse",x]}),t.module("a8m.count-by",[]).filter("countBy",["$parse",function(e){return function(t,n){var a,r={},i=e(n);return t=l(t)?p(t):t,!c(t)||o(n)?t:(t.forEach((function(e){a=i(e),r[a]||(r[a]=0),r[a]++})),r)}}]),t.module("a8m.defaults",[]).filter("defaults",["$parse",function(e){return function(t,n){if(t=l(t)?p(t):t,!c(t)||!l(n))return t;var a=v(n);return t.forEach((function(t){a.forEach((function(a){var r=e(a),i=r.assign;o(r(t))&&i(t,r(n))}))})),t}}]),t.module("a8m.every",[]).filter("every",["$parse",function(e){return function(t,n){return t=l(t)?p(t):t,!(c(t)&&!o(n))||t.every((function(t){return l(t)||r(n)?e(n)(t):t===n}))}}]),t.module("a8m.filter-by",[]).filter("filterBy",["$parse",function(e){return function(t,a,r,u){var d;return r=i(r)||s(r)?String(r).toLowerCase():n,t=l(t)?p(t):t,!c(t)||o(r)?t:t.filter((function(t){return a.some((function(n){if(~n.indexOf("+")){var a=n.replace(/\s+/g,"").split("+");d=a.map((function(n){return e(n)(t)})).join(" ")}else d=e(n)(t);return!(!i(d)&&!s(d))&&(d=String(d).toLowerCase(),u?d===r:d.contains(r))}))}))}}]),t.module("a8m.first",[]).filter("first",["$parse",function(e){return function(t){var a,o,r;return t=l(t)?p(t):t,c(t)?(r=Array.prototype.slice.call(arguments,1),a=s(r[0])?r[0]:1,o=s(r[0])?s(r[1])?n:r[1]:r[0],r.length?b(t,a,o?e(o):o):t[0]):t}}]),t.module("a8m.flatten",[]).filter("flatten",(function(){return function(e,t){return t=t||!1,e=l(e)?p(e):e,c(e)?t?[].concat.apply([],e):M(e,0):e}})),t.module("a8m.fuzzy-by",[]).filter("fuzzyBy",["$parse",function(e){return function(t,n,a,r){var s,u,d=r||!1;return t=l(t)?p(t):t,!c(t)||o(n)||o(a)?t:(u=e(n),t.filter((function(e){return s=u(e),!!i(s)&&(s=d?s:s.toLowerCase(),a=d?a:a.toLowerCase(),!1!==_(s,a))})))}}]),t.module("a8m.fuzzy",[]).filter("fuzzy",(function(){return function(e,t,n){var a=n||!1;return e=l(e)?p(e):e,!c(e)||o(t)?e:(t=a?t:t.toLowerCase(),e.filter((function(e){return i(e)?!1!==_(e=a?e:e.toLowerCase(),t):!!l(e)&&function(e,t){var n,o;return 0<Object.keys(e).filter((function(r){return n=e[r],!!o||!!i(n)&&(n=a?n:n.toLowerCase(),o=!1!==_(n,t))})).length}(e,t)})))}})),t.module("a8m.group-by",["a8m.filter-watcher"]).filter("groupBy",["$parse","filterWatcher",function(e,t){return function(n,a){return!l(n)||o(a)?n:t.isMemoized("groupBy",arguments)||t.memoize("groupBy",arguments,this,r(n,e(a)));function r(e,t){var n,a={};return u(e,(function(e){n=t(e),a[n]||(a[n]=[]),a[n].push(e)})),a}}}]),t.module("a8m.is-empty",[]).filter("isEmpty",(function(){return function(e){return l(e)?!p(e).length:!e.length}})),t.module("a8m.join",[]).filter("join",(function(){return function(e,t){return o(e)||!c(e)?e:(o(t)&&(t=" "),e.join(t))}})),t.module("a8m.last",[]).filter("last",["$parse",function(e){return function(t){var a,o,r,i=f(t);return i=l(i)?p(i):i,c(i)?(r=Array.prototype.slice.call(arguments,1),a=s(r[0])?r[0]:1,o=s(r[0])?s(r[1])?n:r[1]:r[0],r.length?b(i.reverse(),a,o?e(o):o).reverse():i[i.length-1]):i}}]),t.module("a8m.map",[]).filter("map",["$parse",function(e){return function(t,n){return t=l(t)?p(t):t,!c(t)||o(n)?t:t.map((function(t){return e(n)(t)}))}}]),t.module("a8m.omit",[]).filter("omit",["$parse",function(e){return function(t,n){return t=l(t)?p(t):t,!c(t)||o(n)?t:t.filter((function(t){return!e(n)(t)}))}}]),t.module("a8m.pick",[]).filter("pick",["$parse",function(e){return function(t,n){return t=l(t)?p(t):t,!c(t)||o(n)?t:t.filter((function(t){return e(n)(t)}))}}]),t.module("a8m.range",[]).filter("range",(function(){return function(e,t,n,a,o){n=n||0,a=a||1;for(var i=0;i<parseInt(t);i++){var s=n+i*a;e.push(r(o)?o(s):s)}return e}})),t.module("a8m.remove-with",[]).filter("removeWith",(function(){return function(e,t){return o(t)?e:(e=l(e)?p(e):e).filter((function(e){return!h(t,e)}))}})),t.module("a8m.remove",[]).filter("remove",(function(){return function(e){e=l(e)?p(e):e;var t=Array.prototype.slice.call(arguments,1);return c(e)?e.filter((function(e){return!t.some((function(t){return m(t,e)}))})):e}})),t.module("a8m.reverse",[]).filter("reverse",[function(){return function(e){return e=l(e)?p(e):e,i(e)?e.split("").reverse().join(""):c(e)?e.slice().reverse():e}}]),t.module("a8m.search-field",[]).filter("searchField",["$parse",function(e){return function(t){var n;t=l(t)?p(t):t;var a=Array.prototype.slice.call(arguments,1);return c(t)&&a.length?t.map((function(t){return n=a.map((function(n){return e(n)(t)})).join(" "),d(t,{searchField:n})})):t}}]),t.module("a8m.to-array",[]).filter("toArray",(function(){return function(e,t){return l(e)?t?Object.keys(e).map((function(t){return d(e[t],{$key:t})})):p(e):e}})),t.module("a8m.unique",[]).filter({unique:["$parse",P],uniq:["$parse",P]}),t.module("a8m.where",[]).filter("where",(function(){return function(e,t){return o(t)?e:(e=l(e)?p(e):e).filter((function(e){return h(t,e)}))}})),t.module("a8m.xor",[]).filter("xor",["$parse",function(e){return function(t,n,a){return a=a||!1,t=l(t)?p(t):t,n=l(n)?p(n):n,c(t)&&c(n)?t.concat(n).filter((function(e){return!(o(e,t)&&o(e,n))})):t;function o(t,n){var o=e(a);return n.some((function(e){return a?m(o(e),o(t)):m(e,t)}))}}}]),t.module("a8m.math.abs",[]).filter("abs",(function(){return function(e){return Math.abs(e)}})),t.module("a8m.math.byteFmt",[]).filter("byteFmt",(function(){var e=[{str:"B",val:1024}];return["KB","MB","GB","TB","PB","EB","ZB","YB"].forEach((function(t,n){e.push({str:t,val:1024*e[n].val})})),function(t,n){if(s(n)&&isFinite(n)&&n%1==0&&n>=0&&s(t)&&isFinite(t)){for(var a=0;a<e.length-1&&t>=e[a].val;)a++;return y(t/=a>0?e[a-1].val:1,n)+" "+e[a].str}return"NaN"}})),t.module("a8m.math.degrees",[]).filter("degrees",(function(){return function(e,t){if(s(t)&&isFinite(t)&&t%1==0&&t>=0&&s(e)&&isFinite(e)){var n=180*e/Math.PI;return Math.round(n*Math.pow(10,t))/Math.pow(10,t)}return"NaN"}})),t.module("a8m.math.kbFmt",[]).filter("kbFmt",(function(){var e=[{str:"KB",val:1024}];return["MB","GB","TB","PB","EB","ZB","YB"].forEach((function(t,n){e.push({str:t,val:1024*e[n].val})})),function(t,n){if(s(n)&&isFinite(n)&&n%1==0&&n>=0&&s(t)&&isFinite(t)){for(var a=0;a<e.length-1&&t>=e[a].val;)a++;return y(t/=a>0?e[a-1].val:1,n)+" "+e[a].str}return"NaN"}})),t.module("a8m.math.max",[]).filter("max",["$parse",function(e){return function(t,n){return c(t)?o(n)?Math.max.apply(Math,t):t[(a=t,r=n,i=a.map((function(t){return e(r)(t)})),i.indexOf(Math.max.apply(Math,i)))]:t;var a,r,i}}]),t.module("a8m.math.min",[]).filter("min",["$parse",function(e){return function(t,n){return c(t)?o(n)?Math.min.apply(Math,t):t[(a=t,r=n,i=a.map((function(t){return e(r)(t)})),i.indexOf(Math.min.apply(Math,i)))]:t;var a,r,i}}]),t.module("a8m.math.percent",[]).filter("percent",(function(){return function(e,t,n){var a=i(e)?Number(e):e;return t=t||100,n=n||!1,!s(a)||isNaN(a)?e:n?Math.round(a/t*100):a/t*100}})),t.module("a8m.math.radians",[]).filter("radians",(function(){return function(e,t){if(s(t)&&isFinite(t)&&t%1==0&&t>=0&&s(e)&&isFinite(e)){var n=3.14159265359*e/180;return Math.round(n*Math.pow(10,t))/Math.pow(10,t)}return"NaN"}})),t.module("a8m.math.radix",[]).filter("radix",(function(){return function(e,t){return s(e)&&/^[2-9]$|^[1-2]\d$|^3[0-6]$/.test(t)?e.toString(t).toUpperCase():e}})),t.module("a8m.math.shortFmt",[]).filter("shortFmt",(function(){return function(e,t){return s(t)&&isFinite(t)&&t%1==0&&t>=0&&s(e)&&isFinite(e)?e<1e3?""+e:e<1e6?y(e/1e3,t)+" K":e<1e9?y(e/1e6,t)+" M":y(e/1e9,t)+" B":"NaN"}})),t.module("a8m.math.sum",[]).filter("sum",(function(){return function(e,t){return c(e)?e.reduce((function(e,t){return e+t}),t||0):e}})),t.module("a8m.ends-with",[]).filter("endsWith",(function(){return function(e,t,n){var a,r=n||!1;return!i(e)||o(t)?e:(a=(e=r?e:e.toLowerCase()).length-t.length,-1!==e.indexOf(r?t:t.toLowerCase(),a))}})),t.module("a8m.latinize",[]).filter("latinize",[function(){for(var e=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"\8cŒ"},{base:"oe",letters:"\9cœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],t={},n=0;n<e.length;n++)for(var a=e[n].letters.split(""),o=0;o<a.length;o++)t[a[o]]=e[n].base;return function(e){return i(e)?e.replace(/[^\u0000-\u007E]/g,(function(e){return t[e]||e})):e}}]),t.module("a8m.ltrim",[]).filter("ltrim",(function(){return function(e,t){var n=t||"\\s";return i(e)?e.replace(new RegExp("^"+n+"+"),""):e}})),t.module("a8m.match",[]).filter("match",(function(){return function(e,t,n){var a=new RegExp(t,n);return i(e)?e.match(a):null}})),t.module("a8m.phoneUS",[]).filter("phoneUS",(function(){return function(e){return"("+(e+="").slice(0,3)+") "+e.slice(3,6)+"-"+e.slice(6)}})),t.module("a8m.repeat",[]).filter("repeat",[function(){return function(e,t,n){var a=~~t;return i(e)&&a?O(e,--t,n||""):e}}]),t.module("a8m.rtrim",[]).filter("rtrim",(function(){return function(e,t){var n=t||"\\s";return i(e)?e.replace(new RegExp(n+"+$"),""):e}})),t.module("a8m.slugify",[]).filter("slugify",[function(){return function(e,t){var n=o(t)?"-":t;return i(e)?e.toLowerCase().replace(/\s+/g,n):e}}]),t.module("a8m.split",[]).filter("split",(function(){return function(e,t,n){var a,r,s,l;return o(e)||!i(e)?null:(o(t)&&(t=""),isNaN(n)&&(n=0),a=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"g"),g(r=e.match(a))||n>=r.length?[e]:0===n?e.split(t):(l=(s=e.split(t)).splice(0,n+1),s.unshift(l.join(t)),s))}})),t.module("a8m.starts-with",[]).filter("startsWith",(function(){return function(e,t,n){var a=n||!1;return!i(e)||o(t)?e:!(e=a?e:e.toLowerCase()).indexOf(a?t:t.toLowerCase())}})),t.module("a8m.stringular",[]).filter("stringular",(function(){return function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return o(t[n])?e:t[n]}))}})),t.module("a8m.strip-tags",[]).filter("stripTags",(function(){return function(e){return i(e)?e.replace(/<\S[^><]*>/g,""):e}})),t.module("a8m.test",[]).filter("test",(function(){return function(e,t,n){var a=new RegExp(t,n);return i(e)?a.test(e):e}})),t.module("a8m.trim",[]).filter("trim",(function(){return function(e,t){var n=t||"\\s";return i(e)?e.replace(new RegExp("^"+n+"+|"+n+"+$","g"),""):e}})),t.module("a8m.truncate",[]).filter("truncate",(function(){return function(e,t,n,a){return t=o(t)?e.length:t,a=a||!1,n=n||"",!i(e)||e.length<=t?e:e.substring(0,a?-1===e.indexOf(" ",t)?e.length:e.indexOf(" ",t):t)+n}})),t.module("a8m.ucfirst",[]).filter({ucfirst:R,titleize:R}),t.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(e){return function(t){return i(t)?e.encodeURIComponent(t):t}}]),t.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(e){return function(t){return i(t)?e.encodeURI(t):t}}]),t.module("a8m.wrap",[]).filter("wrap",(function(){return function(e,t,n){return i(e)&&a(t)?[t,e,n||t].join(""):e}})),t.module("a8m.filter-watcher",[]).provider("filterWatcher",(function(){this.$get=["$window","$rootScope",function(e,t){var n={},a={},r=e.setTimeout;function i(t,n){return[t,JSON.stringify(n,(a=[],function(t,n){if(l(n)&&!g(n)){if(~a.indexOf(n))return"[Circular]";a.push(n)}return e==n?"$WINDOW":e.document==n?"$DOCUMENT":A(n)?"$SCOPE":n}))].join("#").replace(/"/g,"");var a}function s(e){var t=e.targetScope.$id;u(a[t],(function(e){delete n[e]})),delete a[t]}return{isMemoized:function(e,t){var a=i(e,t);return n[a]},memoize:function(e,l,c,u){var d=i(e,l);return n[d]=u,A(c)?function(e,t){var n=e.$id;o(a[n])&&(e.$on("$destroy",s),a[n]=[]),a[n].push(t)}(c,d):r((function(){t.$$phase||(n={})}),2e3),u}}}]})),t.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.test","a8m.match","a8m.split","a8m.phoneUS","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.chunk-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.range","a8m.math.max","a8m.math.min","a8m.math.abs","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}(window,window.angular)},"./node_modules/angular-filter/index.js":(e,t,n)=>{n("./node_modules/angular-filter/dist/angular-filter.js"),e.exports="angular.filter"},"./node_modules/angular-legacy-sortablejs-maintained/angular-legacy-sortable.js":(e,t,n)=>{var a,o,r;!function(i){"use strict";o=[n("./node_modules/angular/index-exposed.js"),n("./node_modules/sortablejs/Sortable.js")],void 0===(r="function"==typeof(a=function(e,t){var n="Sortable:ng-sortable";e.module("ng-sortable",[]).constant("ngSortableVersion","0.4.1").constant("ngSortableConfig",{}).directive("ngSortable",["$parse","ngSortableConfig",function(a,o){var r,i;function s(e){return e.getAttribute("ng-repeat")||e.getAttribute("data-ng-repeat")||e.getAttribute("x-ng-repeat")||e.getAttribute("dir-paginate")}return{restrict:"AC",scope:{ngSortable:"=?"},priority:1001,compile:function(l,c){var u=[].filter.call(l[0].childNodes,(function(e){return e.nodeType===Node.ELEMENT_NODE&&s(e)}))[0];if(u){var d=s(u).match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(d){var f=d[2];return function(s,l){var c,u,d=a(f),m=function(){return d(s.$parent)||[]},p=l[0],g=e.extend(s.ngSortable||{},o),h=[];function _(e,t){var n="on"+e.type.charAt(0).toUpperCase()+e.type.substr(1),a=m();g[n]&&g[n]({model:t||a[e.newIndex],models:a,oldIndex:e.oldIndex,newIndex:e.newIndex,originalEvent:e})}function b(a){var o=m();if(o){var l=a.oldIndex,c=a.newIndex;if(p!==a.from){var d=a.from[n]();r=d[l],t.active&&"clone"===t.active.lastPullMode?(r=e.copy(r),d.splice(t.utils.index(a.clone,u.options.draggable),0,d.splice(l,1)[0]),a.from.contains(a.clone)&&a.from.removeChild(a.clone)):d.splice(l,1),o.splice(c,0,r),a.from.insertBefore(a.item,i)}else o.splice(c,0,o.splice(l,1)[0]),i.nodeType===Node.COMMENT_NODE&&a.from.insertBefore(i,a.item.nextSibling);s.$apply()}}function y(){c(),e.forEach(h,(function(e){e()})),u.destroy(),p[n]=null,p=null,h=null,u=null,i=null}p[n]=m,u=t.create(p,Object.keys(g).reduce((function(e,t){return e[t]=e[t]||g[t],e}),{onStart:function(e){i=e.from===e.item.parentNode?e.item.nextSibling:e.clone.nextSibling,_(e),s.$apply()},onEnd:function(e){_(e,r),s.$apply()},onAdd:function(e){b(e),_(e,r),s.$apply()},onUpdate:function(e){b(e),_(e)},onRemove:function(e){_(e,r)},onSort:function(e){_(e)}})),e.forEach(["sort","disabled","draggable","handle","animation","group","ghostClass","filter","onStart","onEnd","onAdd","onUpdate","onRemove","onSort","onMove","onClone","setData","delay","animation","forceFallback"],(function(e){h.push(s.$watch("ngSortable."+e,(function(t){void 0!==t&&(g[e]=t,/^on[A-Z]/.test(e)||u.option(e,t))})))})),c=s.$on("$destroy",y)}}}}}}])})?a.apply(t,o):a)||(e.exports=r)}()},"./node_modules/angular-material-data-table/dist/md-data-table.js":()=>{!function(e,t,n){"use strict";function a(e,n){function a(a,o,r,i){var s=i.shift(),l=i.shift();function c(){Array.prototype.some.call(o.find("md-icon"),(function(e){return e.classList.contains("md-sort-icon")&&o[0].removeChild(e)})),o.removeClass("md-sort").off("click",p)}function u(){var n;n=t.element('<md-icon md-svg-icon="arrow-up.svg">'),e(n.addClass("md-sort-icon").attr("ng-class","getDirection()"))(a),o.hasClass("md-numeric")?o.prepend(n):o.append(n),o.addClass("md-sort").on("click",p)}function d(){return Array.prototype.indexOf.call(o.parent().children(),o[0])}function f(){return a.orderBy&&(s.order===a.orderBy||s.order==="-"+a.orderBy)}function m(){return""===r.mdNumeric||a.numeric}function p(){a.$applyAsync((function(){f()?s.order="md-asc"===a.getDirection()?"-"+a.orderBy:a.orderBy:s.order="md-asc"===a.getDirection()?a.orderBy:"-"+a.orderBy,t.isFunction(s.onReorder)&&n.nextTick((function(){s.onReorder(s.order)}))}))}function g(e,t){l.$$columns[e]=t,t.numeric?o.addClass("md-numeric"):o.removeClass("md-numeric")}a.getDirection=function(){return f()?"-"===s.order.charAt(0)?"md-desc":"md-asc":""===r.mdDesc||a.$eval(r.mdDesc)?"md-desc":"md-asc"},a.$watch(f,(function(e){e?o.addClass("md-active"):o.removeClass("md-active")})),a.$watch(d,(function(e){g(e,{numeric:m()})})),a.$watch(m,(function(e){g(d(),{numeric:e})})),a.$watch("orderBy",(function(e){e?o.hasClass("md-sort")||u():o.hasClass("md-sort")&&c()}))}return{compile:function(e){return e.addClass("md-column"),a},require:["^^mdHead","^^mdTable"],restrict:"A",scope:{numeric:"=?mdNumeric",orderBy:"@?mdOrderBy"}}}function o(e){return function(n,a,o,r){if(o&&"object"==typeof o){var i=e(n,a,!0,r);return t.extend(i.instance,o),i()}return e(n,a,o,r)}}function r(e,n,a,o,r,i,s,l,c){var u=!1,d=t.element(a.prop("body")),f={clickOutsideToClose:!0,disableScroll:!0,escToClose:!0,focusOnOpen:!0};function m(a,r){var s,l=i.$new(),f=e(a)(l),m=o.createBackdrop(l,"md-edit-dialog-backdrop");return r.controller?s=function(e,a,o){if(!e.controller)return;e.resolve&&t.extend(o,e.resolve);e.locals&&t.extend(o,e.locals);e.controllerAs?(a[e.controllerAs]={},e.bindToController?t.extend(a[e.controllerAs],e.scope):t.extend(a,e.scope)):t.extend(a,e.scope);return e.bindToController?n(e.controller,o,a[e.controllerAs]):n(e.controller,o)}(r,l,{$element:f,$scope:l}):t.extend(l,r.scope),r.disableScroll&&function(e){var t=o.disableScrollAround(e,d);e.on("$destroy",(function(){t()}))}(f),d.prepend(m).append(f.addClass("md-whiteframe-1dp")),function(e,n){var a=t.element(n).controller("mdCell").getTable(),o=function(){return e.prop("clientHeight")},r=function(){return{width:l(),height:o()}},s=function(){var e=a.parent();return"MD-TABLE-CONTAINER"===e.prop("tagName")?e[0].getBoundingClientRect():a[0].getBoundingClientRect()},l=function(){return e.prop("clientWidth")},u=function(){var t=r(),a=n.getBoundingClientRect(),o=s();t.width>o.right-a.left?e.css("left",o.right-t.width+"px"):e.css("left",a.left+"px"),t.height>o.bottom-a.top?e.css("top",o.bottom-t.height+"px"):e.css("top",a.top+1+"px"),e.css("minWidth",a.width+"px")},d=i.$watch(l,u),f=i.$watch(o,u);c.addEventListener("resize",u),e.on("$destroy",(function(){d(),f(),c.removeEventListener("resize",u)}))}(f,r.target),r.focusOnOpen&&function(e){o.nextTick((function(){var t=o.findFocusTarget(e);t&&t.focus()}),!1)}(f),r.clickOutsideToClose&&m.on("click",(function(){f.remove()})),r.escToClose&&function(e){var t=function(t){27===t.keyCode&&e.remove()};d.on("keyup",t),e.on("$destroy",(function(){d.off("keyup",t)}))}(f),f.on("$destroy",(function(){u=!1,m.remove()})),s}function p(e){u=!1,console.error(e)}function g(e,n){return{controller:["$element","$q","save","$scope",function(e,n,a,o){this.dismiss=function(){e.remove()},this.getInput=function(){return o.editDialog.input},o.dismiss=this.dismiss,o.submit=function(){(o.editDialog.$invalid?n.reject():t.isFunction(a)?n.when(a(o.editDialog.input)):n.resolve()).then((function(){o.dismiss()}))}}],locals:{save:n.save},scope:{cancel:n.cancel||"Cancel",messages:n.messages,model:n.modelValue,ok:n.ok||"Save",placeholder:n.placeholder,title:n.title,size:e},template:'<md-edit-dialog><div layout="column" class="md-content"><div ng-if="size === \'large\'" class="md-title">{{title || \'Edit\'}}</div><form name="editDialog" layout="column" ng-submit="submit(model)"><md-input-container md-no-float><input name="input" ng-model="model" md-autofocus placeholder="{{placeholder}} "'+function(){var e='type="'+(n.type||"text")+'"';for(var t in n.validators)e+=" "+t+'="'+n.validators[t]+'"';return e}()+'><div ng-messages="editDialog.input.$error"><div ng-repeat="(key, message) in messages" ng-message="{{key}}">{{message}}</div></div></md-input-container></form></div><div ng-if="size === \'large\'" layout="row" layout-align="end" class="md-actions"><md-button class="md-primary" ng-click="dismiss()">{{cancel}}</md-button><md-button class="md-primary" ng-click="submit()">{{ok}}</md-button></div></md-edit-dialog>'}}return this.show=function(e){if(u)return r.reject();if(u=!0,!(e=t.extend({},f,e)).targetEvent)return p("options.targetEvent is required to align the dialog with the table cell.");if(!e.targetEvent.currentTarget.classList.contains("md-cell"))return p("The event target must be a table cell.");if(e.bindToController&&!e.controllerAs)return p("You must define options.controllerAs when options.bindToController is true.");e.target=e.targetEvent.currentTarget;var n=function(e){return r((function(n,a){var o=e.template;return o?t.isString(o)?n(o):void a("Unexpected template value. Expected a string; received a "+typeof o+"."):e.templateUrl?(o=s.get(e.templateUrl))?n(o):l(e.templateUrl).then((function(e){return n(e)}),(function(){return a("Error retrieving template from URL.")})):void a("Template not provided.")}))}(e),a=[n];for(var o in e.resolve)n=e.resolve[o],a.push(r.when(t.isFunction(n)?n():n));return(n=r.all(a)).catch(p),n.then((function(t){var n=t.shift();for(var a in e.resolve)e.resolve[a]=t.shift();return m(n,e)}))},this.small=function(e){return this.show(t.extend({},e,g("small",e)))}.bind(this),this.large=function(e){return this.show(t.extend({},e,g("large",e)))}.bind(this),this}function i(e){function n(n,a,o,r){var i=new Array(2);function s(){a.prop("lastElementChild").firstElementChild.appendChild(e(t.element("<md-checkbox>").attr({"aria-label":"Select All","ng-click":"toggleAll()","ng-checked":"allSelected()","ng-disabled":"!getSelectableRows().length"}))(n)[0])}function l(e){return t.element(e).controller("mdSelect")}n.allSelected=function(){var e=n.getSelectableRows();return e.length&&e.every((function(e){return e.isSelected()}))},n.getSelectableRows=function(){return r.getBodyRows().map(l).filter((function(e){return e&&!e.disabled}))},n.selectAll=function(){r.getBodyRows().map(l).forEach((function(e){e&&!e.isSelected()&&e.select()}))},n.toggleAll=function(){return n.allSelected()?n.unSelectAll():n.selectAll()},n.unSelectAll=function(){r.getBodyRows().map(l).forEach((function(e){e&&e.isSelected()&&e.deselect()}))},n.$watchGroup([function(){return r.$$rowSelect},r.enableMultiSelect],(function(e){var n;e[0]!==i[0]?e[0]?(a.children().prepend('<th class="md-column md-checkbox-column">'),e[1]&&s()):Array.prototype.some.call(a.find("th"),(function(e){return e.classList.contains("md-checkbox-column")&&e.remove()})):e[0]&&e[1]!==i[1]&&(e[1]?s():(n=a.prop("lastElementChild").firstElementChild).classList.contains("md-checkbox-column")&&t.element(n).empty()),t.copy(e,i)}))}return{bindToController:!0,compile:function(e){return e.addClass("md-head"),n},controller:function(){},controllerAs:"$mdHead",require:"^^mdTable",restrict:"A",scope:{order:"=?mdOrder",onReorder:"=?mdOnReorder"}}}function s(e,n){return{bindToController:!0,controller:function(){},controllerAs:"$mdSelect",link:function(a,o,r,i){var s=i.shift(),l=i.shift(),c=n(r.mdSelectId);if(s.id=c(s.model),l.$$rowSelect&&s.id)if(l.$$hash.has(s.id)){var u=l.selected.indexOf(l.$$hash.get(s.id));-1===u?l.$$hash.purge(s.id):l.$$hash.equals(s.id,s.model)||(l.$$hash.update(s.id,s.model),l.selected.splice(u,1,s.model))}else l.selected.some((function(e,t){if(c(e)===s.id)return l.$$hash.update(s.id,s.model),l.selected.splice(t,1,s.model),!0}));function d(){return""===r.mdAutoSelect||s.autoSelect}function f(){var n;o.prepend((n=t.element("<md-checkbox>").attr({"aria-label":"Select Row","ng-click":"$mdSelect.toggle($event)","ng-checked":"$mdSelect.isSelected()","ng-disabled":"$mdSelect.disabled"}),t.element('<td class="md-cell md-checkbox-cell">').append(e(n)(a)))),d()&&o.on("click",p)}function m(e){s.id&&(l.$$hash.has(s.id)?-1===e.indexOf(l.$$hash.get(s.id))&&l.$$hash.purge(s.id):-1!==e.indexOf(s.model)&&l.$$hash.update(s.id,s.model))}function p(e){a.$applyAsync((function(){s.toggle(e)}))}s.isSelected=function(){return!!l.$$rowSelect&&(s.id?l.$$hash.has(s.id):-1!==l.selected.indexOf(s.model))},s.select=function(){s.disabled||(l.enableMultiSelect()?l.selected.push(s.model):l.selected.splice(0,l.selected.length,s.model),t.isFunction(s.onSelect)&&s.onSelect(s.model))},s.deselect=function(){s.disabled||(l.selected.splice(l.selected.indexOf(s.model),1),t.isFunction(s.onDeselect)&&s.onDeselect(s.model))},s.toggle=function(e){return e&&e.stopPropagation&&e.stopPropagation(),s.isSelected()?s.deselect():s.select()},a.$watch((function(){return l.$$rowSelect}),(function(e){e?f():(Array.prototype.some.call(o.children(),(function(e){return e.classList.contains("md-checkbox-cell")&&o[0].removeChild(e)})),d()&&o.off("click",p))})),a.$watch(d,(function(e,t){e!==t&&(l.$$rowSelect&&e?o.on("click",p):o.off("click",p))})),a.$watch(s.isSelected,(function(e){return e?o.addClass("md-selected"):o.removeClass("md-selected")})),a.$watch(l.enableMultiSelect,(function(e){l.$$rowSelect&&!e&&l.selected.splice(1)})),l.registerModelChangeListener(m),o.on("$destroy",(function(){l.removeModelChangeListener(m)}))},require:["mdSelect","^^mdTable"],restrict:"A",scope:{model:"=mdSelect",disabled:"=ngDisabled",onSelect:"=?mdOnSelect",onDeselect:"=?mdOnDeselect",autoSelect:"=mdAutoSelect"}}}function l(){var e={};this.equals=function(t,n){return e[t]===n},this.get=function(t){return e[t]},this.has=function(t){return e.hasOwnProperty(t)},this.purge=function(t){delete e[t]},this.update=function(t,n){e[t]=n}}t.module("md.table.templates",["md-table-pagination.html","md-table-progress.html","arrow-up.svg","navigate-before.svg","navigate-first.svg","navigate-last.svg","navigate-next.svg"]),t.module("md-table-pagination.html",[]).run(["$templateCache",function(e){e.put("md-table-pagination.html",'<div class="page-select" ng-if="$pagination.showPageSelect()">\n  <div class="label">{{$pagination.label.page}}</div>\n\n  <md-select virtual-page-select total="{{$pagination.pages()}}" class="md-table-select" ng-model="$pagination.page" md-container-class="md-pagination-select" ng-change="$pagination.onPaginationChange()" ng-disabled="$pagination.disabled" aria-label="Page">\n    <md-content>\n      <md-option ng-repeat="page in $pageSelect.pages" ng-value="page">{{page}}</md-option>\n    </md-content>\n  </md-select>\n</div>\n\n<div class="limit-select" ng-if="$pagination.limitOptions">\n  <div class="label">{{$pagination.label.rowsPerPage}}</div>\n\n  <md-select class="md-table-select" ng-model="$pagination.limit" md-container-class="md-pagination-select" ng-disabled="$pagination.disabled" aria-label="Rows" placeholder="{{ $pagination.limitOptions[0] }}">\n    <md-option ng-repeat="option in $pagination.limitOptions" ng-value="option.value ? $pagination.eval(option.value) : option">{{::option.label ? option.label : option}}</md-option>\n  </md-select>\n</div>\n\n<div class="buttons">\n  <div class="label">{{$pagination.min()}} - {{$pagination.max()}} {{$pagination.label.of}} {{$pagination.total}}</div>\n\n  <md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.first()" ng-disabled="$pagination.disabled || !$pagination.hasPrevious()" aria-label="First">\n    <md-icon md-svg-icon="navigate-first.svg"></md-icon>\n  </md-button>\n\n  <md-button class="md-icon-button" type="button" ng-click="$pagination.previous()" ng-disabled="$pagination.disabled || !$pagination.hasPrevious()" aria-label="Previous">\n    <md-icon md-svg-icon="navigate-before.svg"></md-icon>\n  </md-button>\n\n  <md-button class="md-icon-button" type="button" ng-click="$pagination.next()" ng-disabled="$pagination.disabled || !$pagination.hasNext()" aria-label="Next">\n    <md-icon md-svg-icon="navigate-next.svg"></md-icon>\n  </md-button>\n\n  <md-button class="md-icon-button" type="button" ng-if="$pagination.showBoundaryLinks()" ng-click="$pagination.last()" ng-disabled="$pagination.disabled || !$pagination.hasNext()" aria-label="Last">\n    <md-icon md-svg-icon="navigate-last.svg"></md-icon>\n  </md-button>\n</div>')}]),t.module("md-table-progress.html",[]).run(["$templateCache",function(e){e.put("md-table-progress.html",'<tr>\n  <th colspan="{{columnCount()}}">\n    <md-progress-linear ng-show="deferred()" md-mode="indeterminate"></md-progress-linear>\n  </th>\n</tr>')}]),t.module("arrow-up.svg",[]).run(["$templateCache",function(e){e.put("arrow-up.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>')}]),t.module("navigate-before.svg",[]).run(["$templateCache",function(e){e.put("navigate-before.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>')}]),t.module("navigate-first.svg",[]).run(["$templateCache",function(e){e.put("navigate-first.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 6 v12 h2 v-12 h-2z M17.41 7.41L16 6l-6 6 6 6 1.41-1.41L12.83 12z"/></svg>')}]),t.module("navigate-last.svg",[]).run(["$templateCache",function(e){e.put("navigate-last.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 6 v12 h2 v-12 h-2z M8 6L6.59 7.41 11.17 12l-4.58 4.59L8 18l6-6z"/></svg>')}]),t.module("navigate-next.svg",[]).run(["$templateCache",function(e){e.put("navigate-next.svg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>')}]),t.module("md.data.table",["md.table.templates"]),t.module("md.data.table").directive("mdBody",(function(){return{compile:function(e){e.addClass("md-body")},restrict:"A"}})),t.module("md.data.table").directive("mdCell",(function(){function e(e,t,n,a){var o=t.find("md-select"),r=a.shift(),i=a.shift();n.ngClick&&t.addClass("md-clickable"),o.length&&(o.on("click",(function(e){e.stopPropagation()})),t.addClass("md-clickable").on("click",(function(e){e.stopPropagation(),o[0].click()}))),r.getTable=i.getElement,e.$watch((function(){return i.$$columns[Array.prototype.indexOf.call(t.parent().children(),t[0])]}),(function(e){e&&(e.numeric?t.addClass("md-numeric"):t.removeClass("md-numeric"))}))}return{controller:function(){},compile:function(t){var n=t.find("md-select");return n.length&&n.addClass("md-table-select").attr("md-container-class","md-table-select"),t.addClass("md-cell"),e},require:["mdCell","^^mdTable"],restrict:"A"}})),t.module("md.data.table").directive("mdColumn",a),a.$inject=["$compile","$mdUtil"],t.module("md.data.table").decorator("$controller",o).factory("$mdEditDialog",r),o.$inject=["$delegate"],r.$inject=["$compile","$controller","$document","$mdUtil","$q","$rootScope","$templateCache","$templateRequest","$window"],t.module("md.data.table").directive("mdFoot",(function(){return{compile:function(e){e.addClass("md-foot")},restrict:"A"}})),t.module("md.data.table").directive("mdHead",i),i.$inject=["$compile"],t.module("md.data.table").directive("mdRow",(function(){function e(e,n,a,o){function r(e){return n[0].contains(e[0])}if(-1!==o.getBodyRows().indexOf(n[0])){var i=t.element('<td class="md-cell">');e.$watch((function(){return o.$$rowSelect}),(function(e){!e||a.mdSelect?r(i)&&i.remove():r(i)||n.prepend(i)}))}}return{compile:function(t){return t.addClass("md-row"),e},require:"^^mdTable",restrict:"A"}})),t.module("md.data.table").directive("mdSelect",s),s.$inject=["$compile","$parse"],t.module("md.data.table").directive("mdTable",(function(){function e(e,n,a,o){var r,i=this,s=[],c=[];function u(){if(!s.length)return o.$applyAsync();s[0].finally((function(){s.shift(),u()}))}i.$$hash=new l,i.$$columns={},i.columnCount=function(){return i.getRows(n[0]).reduce((function(e,t){return t.cells.length>e?t.cells.length:e}),0)},i.getRows=function(e){return Array.prototype.filter.call(e.rows,(function(e){return!e.classList.contains("ng-leave")}))},i.getBodyRows=function(){return Array.prototype.reduce.call(n.prop("tBodies"),(function(e,t){return e.concat(i.getRows(t))}),[])},i.getElement=function(){return n},i.getHeaderRows=function(){return i.getRows(n.prop("tHead"))},i.enableMultiSelect=function(){return""===e.multiple||o.$eval(e.multiple)},i.waitingOnPromise=function(){return!!s.length},i.queuePromise=function(e){e&&1===s.push(t.isArray(e)?a.all(e):a.when(e))&&u()},i.registerModelChangeListener=function(e){c.push(e)},i.removeModelChangeListener=function(e){var t=c.indexOf(e);-1!==t&&c.splice(t,1)},e.hasOwnProperty("mdProgress")&&o.$watch("$mdTable.progress",i.queuePromise),o.$watch((function(){return""===e.mdRowSelect||i.rowSelect}),(function(e){e&&(i.selected?t.isArray(i.selected)||console.error("Row selection: Expected an array. Recived "+typeof i.selected+"."):console.error("Row selection: ngModel is not defined."))?(i.$$rowSelect=!0,r=o.$watchCollection("$mdTable.selected",(function(e){c.forEach((function(t){t(e)}))})),n.addClass("md-row-select")):(i.$$rowSelect=!1,t.isFunction(r)&&r(),n.removeClass("md-row-select"))}))}return e.$inject=["$attrs","$element","$q","$scope"],{bindToController:!0,compile:function(e,n){if(e.addClass("md-table"),n.hasOwnProperty("mdProgress")){var a=e.find("tbody")[0],o=t.element('<thead class="md-table-progress" md-table-progress>');a&&e[0].insertBefore(o[0],a)}},controller:e,controllerAs:"$mdTable",restrict:"A",scope:{progress:"=?mdProgress",selected:"=ngModel",rowSelect:"=mdRowSelect"}}})),t.module("md.data.table").directive("mdTablePagination",(function(){function e(e,n,a){var o=this,r={page:"Page:",rowsPerPage:"Rows per page:",of:"of"};function i(e){return parseInt(e,10)>0}o.label=t.copy(r),o.eval=function(e){return a.$eval(e)},o.first=function(){o.page=1,o.onPaginationChange()},o.hasNext=function(){return o.page*o.limit<o.total},o.hasPrevious=function(){return o.page>1},o.last=function(){o.page=o.pages(),o.onPaginationChange()},o.max=function(){return o.hasNext()?o.page*o.limit:o.total},o.min=function(){return i(o.total)?o.page*o.limit-o.limit+1:0},o.next=function(){o.page++,o.onPaginationChange()},o.onPaginationChange=function(){t.isFunction(o.onPaginate)&&n.nextTick((function(){o.onPaginate(o.page,o.limit)}))},o.pages=function(){return i(o.total)?Math.ceil(o.total/(i(o.limit)?o.limit:1)):1},o.previous=function(){o.page--,o.onPaginationChange()},o.showBoundaryLinks=function(){return""===e.mdBoundaryLinks||o.boundaryLinks},o.showPageSelect=function(){return""===e.mdPageSelect||o.pageSelect},a.$watch("$pagination.limit",(function(e,t){isNaN(e)||isNaN(t)||e===t||(o.page=Math.floor((o.page*t-t+e)/(i(e)?e:1)),o.onPaginationChange())})),e.$observe("mdLabel",(function(e){t.extend(o.label,r,a.$eval(e))})),a.$watch("$pagination.total",(function(e,t){isNaN(e)||e===t||o.page>o.pages()&&o.last()}))}return e.$inject=["$attrs","$mdUtil","$scope"],{bindToController:{boundaryLinks:"=?mdBoundaryLinks",disabled:"=ngDisabled",limit:"=mdLimit",page:"=mdPage",pageSelect:"=?mdPageSelect",onPaginate:"=?mdOnPaginate",limitOptions:"=?mdLimitOptions",total:"@mdTotal"},compile:function(e){e.addClass("md-table-pagination")},controller:e,controllerAs:"$pagination",restrict:"E",scope:{},templateUrl:"md-table-pagination.html"}})),t.module("md.data.table").directive("mdTableProgress",(function(){return{link:function(e,t,n,a){e.columnCount=a.columnCount,e.deferred=a.waitingOnPromise},require:"^^mdTable",restrict:"A",scope:{},templateUrl:"md-table-progress.html"}})),t.module("md.data.table").directive("virtualPageSelect",(function(){function e(e,t){var n=this,a=e.find("md-content");function o(e,t){return Math.min(e,isFinite(t)&&t>0?t:1)}function r(e){if(n.pages.length>e)return n.pages.splice(e);for(var t=n.pages.length;t<e;t++)n.pages.push(t+1)}n.pages=[],a.on("scroll",(function(){a.prop("clientHeight")+a.prop("scrollTop")>=a.prop("scrollHeight")&&t.$applyAsync((function(){r(o(n.pages.length+10,n.total))}))})),t.$watch("$pageSelect.total",(function(e){r(o(Math.max(n.pages.length,10),e))})),t.$watch("$pagination.page",(function(e){for(var t=n.pages.length;t<e;t++)n.pages.push(t+1)}))}return e.$inject=["$element","$scope"],{bindToController:{total:"@"},controller:e,controllerAs:"$pageSelect"}}))}(window,angular)},"./node_modules/angular-material-data-table/index.js":(e,t,n)=>{n("./node_modules/angular-material/index.js"),n("./node_modules/angular-material-data-table/dist/md-data-table.js"),e.exports="md.data.table"},"./node_modules/angular-material-expansion-panel/dist/md-expansion-panel.js":()=>{!function(){"use strict";angular.module("material.components.expansionPanels",["material.core"])}(),function(){"use strict";angular.module("material.components.expansionPanels").run(["$templateCache",function(e){e.put("icons/ic_keyboard_arrow_right_black_24px.svg",'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/>\n    <path d="M0-.25h24v24H0z" fill="none"/>\n</svg>')}])}(),function(){"use strict";angular.module("material.components.expansionPanels").directive("mdExpansionPanel",(function(){return{restrict:"E",require:["mdExpansionPanel","?^^mdExpansionPanelGroup"],scope:!0,compile:function(e,t){var n="Invalid HTML for md-expansion-panel: ";if(e.attr("tabindex",t.tabindex||"0"),null===e[0].querySelector("md-expansion-panel-collapsed"))throw Error(n+"Expected a child element of `md-epxansion-panel-collapsed`");if(null===e[0].querySelector("md-expansion-panel-expanded"))throw Error(n+"Expected a child element of `md-epxansion-panel-expanded`");return function(e,t,n,a){var o=a[0],r=a[1];o.epxansionPanelGroupCtrl=r||void 0,o.init()}},controller:["$scope","$element","$attrs","$window","$$rAF","$mdConstant","$mdUtil","$mdComponentRegistry","$timeout","$q","$animate","$parse",function(t,n,a,o,r,i,s,l,c,u,d,f){var m,p,g,h,_,b,y,v,A,S,w,E=this,C=!1,T=!1,I=!1,k=!1,D=r.throttle(G),x=r.throttle(V);E.registerCollapsed=function(e){m=e},E.registerExpanded=function(e){p=e},E.registerHeader=function(e){g=e},E.registerFooter=function(e){h=e},void 0===a.mdComponentId?(a.$set("mdComponentId","_expansion_panel_id_"+s.nextUid()),O()):a.$observe("mdComponentId",(function(){O()}));E.$element=n,E.expand=N,E.collapse=L,E.remove=$,E.destroy=F,E.onRemove=U,E.init=P,void 0!==a.ngDisabled?t.$watch(a.ngDisabled,(function(e){k=e,n.attr("tabindex",k?-1:0)})):void 0!==a.disabled&&(k=void 0!==a.disabled&&"false"!==a.disabled&&!1!==a.disabled,n.attr("tabindex",k?-1:0));function M(e){var t=i.KEY_CODE;switch(e.keyCode){case t.ENTER:N();break;case t.ESCAPE:L()}}function P(){C=!0,!0===T&&O()}function O(){!1!==C?("function"==typeof _&&(_(),_=void 0),E.componentId&&E.epxansionPanelGroupCtrl&&E.epxansionPanelGroupCtrl.removePanel(E.componentId),void 0===a.mdComponentId&&a.$set("mdComponentId","_expansion_panel_id_"+s.nextUid()),E.componentId=a.mdComponentId,_=l.register({expand:N,collapse:L,remove:$,onRemove:U,isOpen:R,addClickCatcher:W,removeClickCatcher:Q,componentId:a.mdComponentId},a.mdComponentId),E.epxansionPanelGroupCtrl&&E.epxansionPanelGroupCtrl.addPanel(E.componentId,{expand:N,collapse:L,remove:$,onRemove:U,destroy:F,isOpen:R})):T=!0}function R(){return I}function N(t){if(!0!==I&&!0!==k){I=!0,t=t||{};var a=u.defer();return E.epxansionPanelGroupCtrl&&E.epxansionPanelGroupCtrl.expandPanel(E.componentId),n.removeClass("md-close"),n.addClass("md-open"),!1===t.animation?n.addClass("md-no-animation"):n.removeClass("md-no-animation"),q(),m.hide(t),p.show(t),g&&g.show(t),h&&h.show(t),c((function(){a.resolve()}),!1===t.animation?0:e),a.promise}}function L(t){if(!1!==I){I=!1,t=t||{};var a=u.defer();return n.addClass("md-close"),n.removeClass("md-open"),!1===t.animation?n.addClass("md-no-animation"):n.removeClass("md-no-animation"),Y(),m.show(t),p.hide(t),g&&g.hide(t),h&&h.hide(t),c((function(){a.resolve()}),!1===t.animation?0:e),a.promise}}function $(a){a=a||{};var o=u.defer();return E.epxansionPanelGroupCtrl&&E.epxansionPanelGroupCtrl.removePanel(E.componentId),"function"==typeof _&&(_(),_=void 0),!1===a.animation||!1===I?(t.$destroy(),n.remove(),o.resolve(),j()):(L(),c((function(){t.$destroy(),n.remove(),o.resolve(),j()}),e)),o.promise}function U(e){A=e}function j(){"function"==typeof A&&(A(),A=void 0)}function F(){t.$destroy()}function q(){(h&&!0!==h.noSticky||g&&!0!==g.noSticky)&&(y=t.$watch((function(){return n[0].offsetTop}),D,!0),v=t.$watch((function(){return n[0].offsetWidth}),x,!0),"MD-CONTENT"===(b=s.getNearestContentElement(n)).nodeName?(S=H(b),angular.element(b).on("scroll",D)):S=void 0,!0===p.setHeight&&p.$element.on("scroll",D),angular.element(o).on("scroll",D).on("resize",D).on("resize",x))}function Y(){"function"==typeof y&&(y(),y=void 0),"function"==typeof v&&(v(),v=void 0),b&&"MD-CONTENT"===b.nodeName&&angular.element(b).off("scroll",D),!0===p.setHeight&&p.$element.off("scroll",D),angular.element(o).off("scroll",D).off("resize",D).off("resize",x)}function H(e){for(var t=e.parentNode;t&&t!==document;){if(B(t,"transform"))return t;t=t.parentNode}}function B(e,t){var n=!1;if(e){var a=o.getComputedStyle(e);n=void 0!==a[t]&&"none"!==a[t]}return n}function G(e){var t,n,a;a=!0===p.setHeight?p.$element[0].getBoundingClientRect():b.getBoundingClientRect();var o=S?S.getBoundingClientRect().top:0;n=(t=Math.max(a.top,0))+a.height,h&&!1===h.noSticky&&h.onScroll(t,n,o),g&&!1===g.noSticky&&g.onScroll(t,n,o)}function V(){var e=n[0].offsetWidth;h&&!1===h.noSticky&&h.onResize(e),g&&!1===g.noSticky&&g.onResize(e)}function W(e){(w=s.createBackdrop(t))[0].tabIndex=-1,"function"==typeof e&&w.on("click",e),d.enter(w,n.parent(),null,{duration:0}),n.css("z-index",60)}function Q(){w&&(w.remove(),w.off("click"),w=void 0,n.css("z-index",""))}n.on("focus",(function(e){n.on("keydown",M)})).on("blur",(function(e){n.off("keydown",M)})),t.$panel={collapse:L,expand:N,remove:$,isOpen:R},t.$on("$destroy",(function(){Q(),"function"==typeof _&&(_(),_=void 0),Y()}))}]}}));var e=180}(),function(){"use strict";function e(e,t,n){var a={find:o,waitFor:function(t){return e.when(t).catch(n.error)}};return function(e){return void 0===e?a:o(e)};function o(a){var o=e.get(a);if(o)return o;n.error(t.supplant("ExpansionPanel '{0}' is not available! Did you use md-component-id='{0}'?",[a||""]))}}angular.module("material.components.expansionPanels").factory("$mdExpansionPanel",e),e.$inject=["$mdComponentRegistry","$mdUtil","$log"]}(),function(){"use strict";function e(e,t){return{restrict:"E",require:"^^mdExpansionPanel",link:function(n,a,o,r){r.registerCollapsed({show:function(n){a.css("display",""),a.css("width",a[0].parentNode.offsetWidth+"px");var o={addClass:"md-show",from:{opacity:0},to:{opacity:1}};!1===n.animation&&(o.duration=0),e(a,o).start().then((function(){r.$element.css("transition","none"),a.removeClass("md-absolute md-show"),a.css("width",""),r.$element.css("min-height",""),t((function(){r.$element.css("transition","")}),0)}))},hide:function(t){a.css("width",a[0].offsetWidth+"px"),r.$element.css("min-height",a[0].offsetHeight+"px");var n={addClass:"md-absolute md-hide",from:{opacity:1},to:{opacity:0}};!1===t.animation&&(n.duration=0),e(a,n).start().then((function(){a.removeClass("md-hide"),a.css("display","none")}))}}),a.on("click",(function(){r.expand()}))}}}angular.module("material.components.expansionPanels").directive("mdExpansionPanelCollapsed",e),e.$inject=["$animateCss","$timeout"]}(),function(){"use strict";function e(e,t){return{restrict:"E",require:"^^mdExpansionPanel",link:function(n,a,o,r){var i=o.height||void 0;void 0!==i&&(i=i.replace("px","")+"px");r.registerExpanded({show:function(n){a.css("display",""),a.addClass("md-show md-overflow");var o={from:{"max-height":"48px",opacity:0},to:{"max-height":i||a[0].scrollHeight+"px",opacity:1}};!1===n.animation&&(o.duration=0),e(a,o).start().then((function(){void 0!==i?a.addClass("md-scroll-y"):(a.css("transition","none"),a.css("max-height","none"),t((function(){a.css("transition","")}),0)),a.removeClass("md-overflow")}))},hide:function(t){var n=i||a[0].scrollHeight+"px";a.addClass("md-hide md-overflow"),a.removeClass("md-show md-scroll-y");var o={from:{"max-height":n,opacity:1},to:{"max-height":"48px",opacity:0}};!1===t.animation&&(o.duration=0),e(a,o).start().then((function(){a.css("display","none"),a.removeClass("md-hide")}))},setHeight:void 0!==i,$element:a})}}}angular.module("material.components.expansionPanels").directive("mdExpansionPanelExpanded",e),e.$inject=["$animateCss","$timeout"]}(),function(){"use strict";angular.module("material.components.expansionPanels").directive("mdExpansionPanelFooter",(function(){return{restrict:"E",transclude:!0,template:'<div class="md-expansion-panel-footer-container" ng-transclude></div>',require:"^^mdExpansionPanel",link:function(e,t,n,a){var o=!1,r=void 0!==n.mdNoSticky,i=angular.element(t[0].querySelector(".md-expansion-panel-footer-container"));function s(){}function l(){d()}function c(e,n,r){var s,l;t[0].getBoundingClientRect().bottom>n?((l=n-(s=i[0].offsetHeight)-r)<t[0].parentNode.getBoundingClientRect().top&&(l=t[0].parentNode.getBoundingClientRect().top),i.css("width",a.$element[0].offsetWidth+"px"),t.css("height",s+"px"),i.css("top",l+"px"),t.addClass("md-stick"),o=!0):!0===o&&d()}function u(e){!1!==o&&i.css("width",e+"px")}function d(){o=!1,i.css("width",""),i.css("top",""),t.css("height",""),t.removeClass("md-stick")}a.registerFooter({show:s,hide:l,onScroll:c,onResize:u,noSticky:r})}}}))}(),function(){"use strict";angular.module("material.components.expansionPanels").directive("mdExpansionPanelGroup",(function(){return{restrict:"E",controller:["$scope","$attrs","$element","$mdComponentRegistry",function(e,t,n,a){var o,r=this,i={},s={},l=[],c=void 0!==t.mdMultiple||void 0!==t.multiple,u=void 0!==t.mdAutoExpand||void 0!==t.autoExpand;function d(e){return l.push(e),function(){l.splice(l.indexOf(e),1)}}function f(){var e=b();l.forEach((function(t){t(e)}))}function m(e,t){s[e]=t,!0===u&&(t.expand(),y(e)),f()}function p(e){y(e)}function g(e,t){return s[e].remove(t)}function h(e){Object.keys(s).forEach((function(t){s[t].remove(e)}))}function _(e){delete s[e],f()}function b(){return Object.keys(s).length}function y(e){!1===c&&Object.keys(s).forEach((function(t){t!==e&&s[t].collapse()}))}function v(e,t){if(void 0!==i[e])throw Error('$mdExpansionPanelGroup.register() The name "'+e+'" has already been registered');i[e]=t}function A(e){if(void 0===i[e])throw Error('$mdExpansionPanelGroup.addPanel() Cannot find Panel with name of "'+e+'"');return i[e]}function S(){return Object.keys(s).map((function(e){return s[e]}))}function w(){return Object.keys(s).map((function(e){return s[e]})).filter((function(e){return e.isOpen()}))}function E(e){var t=!0!==e;Object.keys(s).forEach((function(e){s[e].collapse({animation:t})}))}o=a.register({$element:n,register:v,getRegistered:A,getAll:S,getOpen:w,remove:g,removeAll:h,collapseAll:E,onChange:d,count:b},t.mdComponentId),r.addPanel=m,r.expandPanel=p,r.removePanel=_,e.$on("$destroy",(function(){"function"==typeof o&&(o(),o=void 0),Object.keys(s).forEach((function(e){s[e].destroy()}))}))}]}}))}(),function(){"use strict";function e(e,t,n,a,o,r,i,s,l){var c={find:u,waitFor:function(t){var n=s.defer();return e.when(t).then((function(e){n.resolve(d(e))})).catch((function(e){n.reject(),l.error(e)})),n.promise}};return function(e){return void 0===e?c:u(e)};function u(n){var a=e.get(n);if(a)return d(a);l.error(t.supplant("ExpansionPanelGroup '{0}' is not available! Did you use md-component-id='{0}'?",[n||""]))}function d(e){return{add:function a(u,d){if(d=d||{},"string"==typeof u)return a(e.getRegistered(u),d);if(l(u),u.componentId&&e.isPanelActive(u.componentId))return s.reject('panel with componentId "'+u.componentId+'" is currently active');var f=s.defer(),m=o.$new();return angular.extend(m,u.scope),c(u,(function(a){var o=angular.element(a),s=u.componentId||o.attr("md-component-id")||"_panelComponentId_"+t.nextUid(),l=n().waitFor(s);o.attr("md-component-id",s);var c=r(o);if(u.controller){angular.extend(d,u.locals||{}),d.$scope=m,d.$panel=l;var p=i(u.controller,d,!0)();o.data("$ngControllerController",p),o.children().data("$ngControllerController",p),u.controllerAs&&(m[u.controllerAs]=p)}e.$element.append(o),c(m),l.then((function(e){f.resolve(e)}))})),f.promise},register:function(t,n){if("string"!=typeof t)throw Error("$mdExpansionPanelGroup.register() Expects name to be a string");l(n),e.register(t,n)},getAll:function(){return e.getAll()},getOpen:function(){return e.getOpen()},remove:function(t,n){return e.remove(t,n)},removeAll:function(t){e.removeAll(t)},collapseAll:function(t){e.collapseAll(t)},onChange:function(t){return e.onChange(t)},count:function(){return e.count()}};function l(e){if("object"!=typeof e||null===e)throw Error("$mdExapnsionPanelGroup.add()/.register() : Requires an options object to be passed in");if(!e.template&&!e.templateUrl)throw Error("$mdExapnsionPanelGroup.add()/.register() : Is missing required paramters to create. Required One of the following: template, templateUrl")}function c(e,t){void 0!==e.templateUrl?a(e.templateUrl).then((function(e){t(e)})):t(e.template)}}}angular.module("material.components.expansionPanels").factory("$mdExpansionPanelGroup",e),e.$inject=["$mdComponentRegistry","$mdUtil","$mdExpansionPanel","$templateRequest","$rootScope","$compile","$controller","$q","$log"]}(),function(){"use strict";function e(){return{restrict:"E",transclude:!0,template:'<div class="md-expansion-panel-header-container" ng-transclude></div>',require:"^^mdExpansionPanel",link:function(e,t,n,a){var o=!1,r=void 0!==n.mdNoSticky,i=angular.element(t[0].querySelector(".md-expansion-panel-header-container"));function s(){o=!1,i.css("width",""),t.css("height",""),t.css("top",""),t.removeClass("md-stick"),t.addClass("md-no-stick")}a.registerHeader({show:function(){},hide:function(){s()},noSticky:r,onScroll:function(e,n,a){var r,l,c=t[0].getBoundingClientRect();c.top<e?(r=e-a,(l=t[0].parentNode.getBoundingClientRect().bottom-e-c.height)<0&&(r+=l),i.css("width",t[0].offsetWidth+"px"),i.css("top",r+"px"),t.css("height",i[0].offsetHeight+"px"),t.removeClass("md-no-stick"),t.addClass("md-stick"),o=!0):!0===o&&s()},onResize:function(e){!1!==o&&i.css("width",e+"px")}})}}}angular.module("material.components.expansionPanels").directive("mdExpansionPanelHeader",e),e.$inject=[]}(),function(){"use strict";angular.module("material.components.expansionPanels").directive("mdExpansionPanelIcon",(function(){return{restrict:"E",template:'<md-icon class="md-expansion-panel-icon" md-svg-icon="icons/ic_keyboard_arrow_right_black_24px.svg"></md-icon>',replace:!0}}))}()},"./node_modules/angular-material-expansion-panel/index.js":(e,t,n)=>{n("./node_modules/angular-material-expansion-panel/dist/md-expansion-panel.js")},"./node_modules/angular-material/angular-material.js":(e,t,n)=>{var a=n("./node_modules/jquery/dist/jquery.js");!function(e,t,n){"use strict";t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.animate","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.navBar","material.components.panel","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.showHide","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"]),function(){function e(e,t){if(t.has("$swipe")){e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function n(e,t){e.decorator("$$rAF",["$delegate",a]),e.decorator("$q",["$delegate",o]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function a(e){return e.throttle=function(t){var n,a,o,r;return function(){n=arguments,r=this,o=t,a||(a=!0,e((function(){o.apply(r,Array.prototype.slice.call(n)),a=!1})))}},e}function o(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],a.$inject=["$delegate"],o.$inject=["$delegate"],t.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(n).run(e)}(),function(){function e(e){return{restrict:"A",link:{pre:function(n,a,o){var r=o.mdAutoFocus||o.mdAutofocus||o.mdSidenavFocus;i(e(r)(n)),r&&n.$watch(r,i);function i(e){t.isUndefined(e)&&(e=!0),a.toggleClass("md-autofocus",!!e)}}}}}e.$inject=["$parse"],t.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),t.module("material.core").factory("$mdColorUtil",(function(){return{rgbaToHex:function(e){return((e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,a=t.substr(0,n),o=t.substr(n,n),r=t.substr(2*n);return 1===n&&(a+=a,o+=o,r+=r),"rgba("+parseInt(a,16)+","+parseInt(o,16)+","+parseInt(r,16)+",0.1)"},rgbToRgba:function(e){return e.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(e){return e?e.replace("rgba","rgb").replace(/,[^),]+\)/,")"):"rgb(0,0,0)"}}})),t.module("material.core").factory("$mdConstant",(function(){var e=document.createElement("div"),n=function(e){var t,n,a=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=a.exec(t))return n[0]}(e),a=/webkit/i.test(n),o=/([:\-_]+(.))/g;function r(t){var a=(n+"-"+t).replace(o,(function(e,t,n,a){return a?n.toUpperCase():n})),r=a.charAt(0).toLowerCase()+a.substring(1);return i(e,t)?t:i(e,a)?a:i(e,r)?r:t}function i(e,n){return t.isDefined(e.style[n])}var s={isInputKey:function(e){return e.keyCode>=31&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&e.keyCode>=97&&e.keyCode<=105},isMetaKey:function(e){return e.keyCode>=91&&e.keyCode<=93},isFnLockKey:function(e){return e.keyCode>=112&&e.keyCode<=145},isNavigationKey:function(e){var t=s.KEY_CODE;return-1!=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW].indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(a?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(a?" webkitAnimationEnd":""),TRANSFORM:r("transform"),TRANSFORM_ORIGIN:r("transformOrigin"),TRANSITION:r("transition"),TRANSITION_DURATION:r("transitionDuration"),ANIMATION_PLAY_STATE:r("animationPlayState"),ANIMATION_DURATION:r("animationDuration"),ANIMATION_NAME:r("animationName"),ANIMATION_TIMING:r("animationTimingFunction"),ANIMATION_DIRECTION:r("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return s})),function(){function e(e,n){var a=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),n=!!n;var o=e||[];return{items:function(){return[].concat(o)},count:function(){return o.length},inRange:r,contains:s,indexOf:i,itemAt:function(e){return r(e)?o[e]:null},findBy:function(e,t){return o.filter((function(n){return n[e]===t}))},add:function(e,n){if(!e)return-1;t.isNumber(n)||(n=o.length);return o.splice(n,0,e),i(e)},remove:function(e){s(e)&&o.splice(i(e),1)},first:l,last:c,next:t.bind(null,u,!1),previous:t.bind(null,u,!0),hasPrevious:function(e){return!!e&&r(i(e)-1)},hasNext:function(e){return!!e&&r(i(e)+1)}};function r(e){return o.length&&e>-1&&e<o.length}function i(e){return o.indexOf(e)}function s(e){return e&&i(e)>-1}function l(){return o.length?o[0]:null}function c(){return o.length?o[o.length-1]:null}function u(e,s,u,d){u=u||a;for(var f=i(s);;){if(!r(f))return null;var m=f+(e?-1:1),p=null;if(r(m)?p=o[m]:n&&(m=i(p=e?c():l())),null===p||m===d)return null;if(u(p))return p;t.isUndefined(d)&&(d=m),f=m}}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,a){var o={},r={},i={},s={};return l.getResponsiveAttribute=function(t,n){for(var a=0;a<e.MEDIA_PRIORITY.length;a++){var i=e.MEDIA_PRIORITY[a];if(r[o[i]].matches){var s=u(t,n+"-"+i);if(t[s])return t[s]}}return t[u(t,n)]},l.getQuery=function(e){return r[e]},l.watchResponsiveAttributes=function(n,a,o){var r=[];return n.forEach((function(n){var i=u(a,n);for(var s in t.isDefined(a[i])&&r.push(a.$observe(i,t.bind(void 0,o,null))),e.MEDIA)i=u(a,n+"-"+s),t.isDefined(a[i])&&r.push(a.$observe(i,t.bind(void 0,o,s)))})),function(){r.forEach((function(e){e()}))}},l;function l(n){var s=o[n];t.isUndefined(s)&&(s=o[n]=function(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}(n));var l=i[s];return t.isUndefined(l)&&(l=function(e){var t=r[e];t||(t=r[e]=a.matchMedia(e));return t.addListener(c),i[t.media]=!!t.matches}(s)),l}function c(e){n.$evalAsync((function(){i[e.media]=!!e.matches}))}function u(e,t){return s[t]||(s[t]=e.$normalize(t))}}e.$inject=["$mdConstant","$rootScope","$window"],t.module("material.core").factory("$mdMedia",e)}(),function(){function e(e,n){var a=["data","x"];return e?n?r(e):o(e):{buildList:o,buildSelector:r,hasAttribute:function(e,t){if(!(e=i(e)))return!1;for(var n=o(t),a=0;a<n.length;a++)if(e.hasAttribute(n[a]))return!0;return!1},removeAttribute:function(e,t){if(!(e=i(e)))return;o(t).forEach((function(t){e.removeAttribute(t)}))}};function o(e){return(e=t.isArray(e)?e:[e]).forEach((function(t){a.forEach((function(n){e.push(n+"-"+t)}))})),e}function r(e){return o(e=t.isArray(e)?e:[e]).map((function(e){return"["+e+"]"})).join(",")}function i(e){if((e=e[0]||e).nodeType)return e}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.prefixer=e,t}])}])}(),function(){s.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var a,o,r=0;if(e.navigator){var i=e.navigator.userAgent||e.navigator.vendor||e.opera;a=i.match(/ipad|iphone|ipod/i),o=i.match(/android/i)}function s(i,s,l,c,u,d,f,m,p,g){var h=d.startSymbol(),_=d.endSymbol(),b="{{"===h&&"}}"===_;document.contains||(document.contains=function(e){return document.body.contains(e)});var y=function(e,n,a){var o=!1;if(e&&e.length){var r=p.getComputedStyle(e[0]);o=t.isDefined(r[n])&&(!a||r[n]==a)}return o};function v(e){return e?function(e){return String(e).indexOf("px")>-1}(e)||function(e){return String(e).indexOf("%")>-1}(e)?e:e+"px":"0"}var A={dom:{},isIos:a,isAndroid:o,now:e.performance&&e.performance.now?t.bind(e.performance,e.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},isRtl:function(e){switch(t.isDefined(e)&&e.hasOwnProperty("dir")&&e.dir){case"ltr":return!1;case"rtl":return!0}return"rtl"===i[0].dir||"rtl"===i[0].body.dir},bidi:function(e,n,a,o){var r=!this.isRtl();if(0==arguments.length)return r?"ltr":"rtl";var i=t.element(e);r&&t.isDefined(a)?i.css(n,v(a)):!r&&t.isDefined(o)&&i.css(n,v(o))},bidiProperty:function(e,n,a,o){var r=!this.isRtl(),i=t.element(e);r&&t.isDefined(n)?(i.css(n,v(o)),i.css(a,"")):!r&&t.isDefined(a)&&(i.css(a,v(o)),i.css(n,""))},clientRect:function(e,t,n){var a=S(e);t=S(t||a.offsetParent||document.body);var o=a.getBoundingClientRect(),r=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:o.left-r.left,top:o.top-r.top,width:o.width,height:o.height}},offsetRect:function(e,t){return A.clientRect(e,t,!0)},nodesToArray:function(e){var t,n=[];for(e=e||[],t=0;t<e.length;++t)n.push(e.item(t));return n},getViewportTop:function(){return A.disableScrollAround._count&&A.disableScrollAround._viewPortTop?A.disableScrollAround._viewPortTop:p.scrollY||p.pageYOffset||0},findFocusTarget:function(e,n){var a,o=this.prefixer("md-autofocus",!0);return(a=r(e,n||o))||n==o||(a=r(e,this.prefixer("md-auto-focus",!0)))||(a=r(e,o)),a;function r(e,n){var a,o=e[0].querySelectorAll(n);return o&&o.length&&o.length&&t.forEach(o,(function(e){(e=t.element(e)).hasClass("md-autofocus")&&(a=e)})),a}},disableScrollAround:function(e,n,a){if(a=a||{},A.disableScrollAround._count=Math.max(0,A.disableScrollAround._count||0),A.disableScrollAround._count++,A.disableScrollAround._restoreScroll)return A.disableScrollAround._restoreScroll;var o=i[0].body,r=function(){var e=i[0].documentElement,n=e.style.cssText||"",a=o.style.cssText||"",r=A.getViewportTop();A.disableScrollAround._viewPortTop=r;var s=o.clientWidth,l=o.scrollHeight>o.clientHeight+1,c=e.scrollTop>0?e:o;l&&t.element(o).css({position:"fixed",width:"100%",top:-r+"px"});o.clientWidth<s&&(o.style.overflow="hidden");return function(){o.style.cssText=a,e.style.cssText=n,c.scrollTop=r}}(),s=function(e,n){var a,r=t.element(e||o);n.disableScrollMask?a=r:(a=t.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),r.append(a));function i(e){e.preventDefault()}return a.on("wheel touchmove",i),function(){a.off("wheel touchmove",i),!n.disableScrollMask&&a[0].parentNode&&a[0].parentNode.removeChild(a[0])}}(n,a);return A.disableScrollAround._restoreScroll=function(){--A.disableScrollAround._count<=0&&(delete A.disableScrollAround._viewPortTop,r(),s(),delete A.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var e=t.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),i[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(t){var n=t[0]||t;document.addEventListener("click",(function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))}),!0);var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),a.$material=!0,a.$focus=!0,n.dispatchEvent(a)},createBackdrop:function(e,t){return l(A.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^{}]*)\}/g,e.replace(n,(function(e,n){var a=n.split("."),o=t;try{for(var r in a)a.hasOwnProperty(r)&&(o=o[a[r]])}catch(t){o=e}return"string"==typeof o||"number"==typeof o?o:e}))},fakeNgModel:function(){return{$fake:!0,$setTouched:t.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach((function(e){e()}))},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:t.noop}},debounce:function(e,t,a,o){var r;return function(){var i=a,l=Array.prototype.slice.call(arguments);s.cancel(r),r=s((function(){r=n,e.apply(i,l)}),t||10,o)}},throttle:function(e,t){var n;return function(){var a=this,o=arguments,r=A.now();(!n||r-n>t)&&(e.apply(a,o),n=r)}},time:function(e){var t=A.now();return e(),A.now()-t},valueOnUse:function(e,t,n){var a=null,o=Array.prototype.slice.call(arguments),r=o.length>3?o.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===a&&(a=n.apply(e,r)),a}})},nextUid:function(){return""+r++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getSiblings:function(e,n){var a=n.toUpperCase();return e instanceof t.element&&(e=e[0]),Array.prototype.filter.call(e.parentNode.children,(function(t){return e!==t&&t.tagName.toUpperCase()===a})).map((function(e){return t.element(e)}))},getClosest:function(e,n,a){if(t.isString(n)){var o=n.toUpperCase();n=function(e){return e.nodeName.toUpperCase()===o}}if(e instanceof t.element&&(e=e[0]),a&&(e=e.parentNode),!e)return null;do{if(n(e))return e}while(e=e.parentNode);return null},elementContains:function(n,a){return(e.Node&&e.Node.prototype&&Node.prototype.contains?t.bind(n,n.contains):t.bind(n,(function(e){return n===a||!!(16&this.compareDocumentPosition(e))})))(a)},extractElementByName:function(e,n,a,o){var r=i(e);return!r&&o&&f.warn(A.supplant("Unable to find node '{0}' in element '{1}'.",[n,e[0].outerHTML])),t.element(r||e);function i(e){return function(e){if(e)for(var t=0,a=e.length;t<a;t++)if(e[t].nodeName.toLowerCase()===n)return e[t];return null}(e)||(a?function(e){var t;if(e)for(var n=0,a=e.length;n<a;n++){var o=e[n];if(!t)for(var r=0,s=o.childNodes.length;r<s;r++)t=t||i([o.childNodes[r]])}return t}(e):null)}},initOptionalProperties:function(e,n,a){a=a||{},t.forEach(e.$$isolateBindings,(function(o,r){if(o.optional&&t.isUndefined(e[r])){var i=t.isDefined(n[o.attrName]);e[r]=t.isDefined(a[r])?a[r]:i}}))},nextTick:function(e,t,n){var a=A.nextTick,o=a.timeout,r=a.queue||[];return r.push({scope:n,callback:e}),null==t&&(t=!0),a.digest=a.digest||t,a.queue=r,o||(a.timeout=s((function(){var e=a.queue,t=a.digest;a.queue=[],a.timeout=null,a.digest=!1,e.forEach((function(e){e.scope&&e.scope.$$destroyed||e.callback()})),t&&c.$digest()}),0,!1))},processTemplate:function(e){return b?e:e&&t.isString(e)?e.replace(/\{\{/g,h).replace(/}}/g,_):e},getParentWithPointerEvents:function(e){for(var t=e.parent();y(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==m[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,n=t.element("<div>");i[0].body.appendChild(n[0]);for(var a=["sticky","-webkit-sticky"],o=0;o<a.length;++o)if(n.css({position:a[o],top:0,"z-index":2}),n.css("position")==a[o]){e=a[o];break}return n.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:y,isParentFormSubmitted:function(e){var n=A.getClosest(e,"form"),a=n?t.element(n).controller("form"):null;return!!a&&a.$submitted},animateScrollTo:function(e,t,n){var a=e.scrollTop,o=t-a,r=a<t,i=A.now();g((function s(){var l=(c=n||1e3,function(e,t,n,a){if(e>a)return t+n;var o=(e/=a)*e;return t+n*(o*e*-2+3*o)}(A.now()-i,a,o,c));var c;e.scrollTop=l,(r?l<t:l>t)&&g(s)}))},uniq:function(e){if(e)return e.filter((function(e,t,n){return n.indexOf(e)===t}))},getInnerHTML:function(e){var t=new XMLSerializer;return Array.prototype.map.call(e.childNodes,(function(e){return t.serializeToString(e)})).join("")},getOuterHTML:function(e){return(new XMLSerializer).serializeToString(e)},msie:e.document.documentMode,getTouchAction:function(){for(var e=document.createElement("div"),n=["","webkit","Moz","MS","ms","o"],a=0;a<n.length;a++){var o=n[a],r=o?o+"TouchAction":"touchAction";if(t.isDefined(e.style[r]))return r}},getEventPath:function(t){for(var n=[],a=t.target;a;)n.push(a),a=a.parentElement;return-1===n.indexOf(e)&&-1===n.indexOf(document)&&n.push(document),-1===n.indexOf(e)&&n.push(e),n},sanitize:function(e){return e?e.replace(/[\\^$*+?.()|{}[]/g,"\\$&"):e}};return A.dom.animator=u(A),A;function S(e){return e[0]||e}}t.module("material.core").factory("$mdUtil",s),t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&&this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),t.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(n,a,o,r){return function(i){return function(n,a,o,r,i){var s;return s={translate3d:function(e,t,n,a){return i(e,{from:t,to:n,addClass:a.transitionInClass,removeClass:a.transitionOutClass,duration:a.duration}).start().then((function(){return o}));function o(n){return i(e,{to:n||t,addClass:a.transitionOutClass,removeClass:a.transitionInClass,duration:a.duration}).start()}},waitTransitionEnd:function(t,n){var i=3e3;return a((function(a,s){u((n=n||{}).cachedTransitionStyles)&&(i=0);var l=o(c,n.timeout||i);function c(e){e&&e.target!==t[0]||(e&&o.cancel(l),t.off(r.CSS.TRANSITIONEND,c),a())}function u(n){return"0s"==(n=n||e.getComputedStyle(t[0])).transitionDuration||!n.transition&&!n.transitionProperty}t.on(r.CSS.TRANSITIONEND,c)}))},calculateTransformValues:function(e,t){var n=t.element,a=t.bounds;if(n||a){var o=n?s.clientRect(n)||c():s.copyRect(a),r=s.copyRect(e[0].getBoundingClientRect()),i=s.centerPointFor(r),l=s.centerPointFor(o);return{centerX:l.x-i.x,centerY:l.y-i.y,scaleX:Math.round(100*Math.min(.5,o.width/r.width))/100,scaleY:Math.round(100*Math.min(.5,o.height/r.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5};function c(){var t=e?e.parent():null,n=t?t.parent():null;return n?s.clientRect(n):null}},calculateZoomToOrigin:function(e,a){var o="translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )";return t.bind(null,n.supplant,o)(s.calculateTransformValues(e,a))},calculateSlideToOrigin:function(e,a){var o="translate3d( {centerX}px, {centerY}px, 0 )";return t.bind(null,n.supplant,o)(s.calculateTransformValues(e,a))},toCss:function(e){var n={},a="left top right bottom width height x y min-width min-height max-width max-height";return t.forEach(e,(function(e,i){if(!t.isUndefined(e))if(a.indexOf(i)>=0)n[i]=e+"px";else switch(i){case"transition":o(i,r.CSS.TRANSITION,e);break;case"transform":o(i,r.CSS.TRANSFORM,e);break;case"transformOrigin":o(i,r.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":n["font-size"]=e}})),n;function o(e,a,o){t.forEach(a.split(" "),(function(e){n[e]=o}))}},toTransformCss:function(e,n,a){var o={};return t.forEach(r.CSS.TRANSFORM.split(" "),(function(t){o[t]=e})),n&&(a=a||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",o.transition=a),o},copyRect:function(e,n){return e?(n=n||{},t.forEach("left top right bottom width height".split(" "),(function(t){n[t]=Math.round(e[t])})),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var n,a=t.element(e)[0].getBoundingClientRect();return(n=a)&&n.width>0&&n.height>0?s.copyRect(a):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}}}(i,n,a,o,r)}}]),t.version.minor>=4?t.module("material.core.animate",[]):function(){var e=t.forEach,n=t.isDefined(document.documentElement.style.WebkitAppearance),a=n?"-webkit-":"",o=(n?"webkitTransitionEnd ":"")+"transitionend",r=(n?"webkitAnimationEnd ":"")+"animationend",i=["$q","$$rAFMutex",function(n,a){function o(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=a(),this._state=0}return o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:t.noop,getPromise:function(){if(!this.promise){var e=this;this.promise=n((function(t,n){e.done((function(e){!1===e?n():t()}))}))}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._runInAnimationFrame((function(){t._resolve(e)})))},_resolve:function(t){2!==this._state&&(e(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},o.all=function(t,n){var a=0,o=!0;function r(e){o=o&&e,++a===t.length&&n(o)}e(t,(function(e){e.done(r)}))},o}];function s(e){return e.replace(/-[a-z]/g,(function(e){return e.charAt(1).toUpperCase()}))}t.module("material.core.animate",[]).factory("$$forceReflow",["$document",function(e){return function(){return e[0].body.clientWidth+1}}]).factory("$$AnimateRunner",i).factory("$$rAFMutex",["$$rAF",function(e){return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(t,i,l,c,u,d,f){function m(e,t){t.addClass&&(u.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(u.removeClass(e,t.removeClass),t.removeClass=null)}function p(t){var n=0,a=(t||"").split(/\s*,\s*/);return e(a,(function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,n=n?Math.max(e,n):e})),n}var g,h=[];function _(e,t){t.from&&(e.css(t.from),t.from=null)}function b(e,t){t.to&&(e.css(t.to),t.to=null)}function y(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function v(e,t){var n=y(e),o=s(a+"transition-delay");n.style[o]=t?"-9999s":""}return function(u,A){var S=[],w=y(u),E=w&&f.enabled(),C=!1,T=!1;E&&(A.transitionStyle&&S.push([a+"transition",A.transitionStyle]),A.keyframeStyle&&S.push([a+"animation",A.keyframeStyle]),A.delay&&S.push([a+"transition-delay",A.delay+"s"]),A.duration&&S.push([a+"transition-duration",A.duration+"s"]),C=A.keyframeStyle||A.to&&(A.duration>0||A.transitionStyle),T=!!A.addClass||!!A.removeClass,v(u,!0));var I=E&&(C||T);_(u,A);var k,D,x=!1;return{close:t.close,start:function(){var f,E=new l;return f=function(){if(v(u,!1),!I)return C();e(S,(function(e){var t=e[0],n=e[1];w.style[s(t)]=n})),m(u,A);var i=function(e){var a=y(e),o=t.getComputedStyle(a),r=p(o[d("transitionDuration")]),i=p(o[d("animationDuration")]),s=p(o[d("transitionDelay")]),l=p(o[d("animationDelay")]);i*=parseInt(o[d("animationIterationCount")],10)||1;var c=Math.max(i,r),u=Math.max(l,s);return{duration:c,delay:u,animationDuration:i,transitionDuration:r,animationDelay:l,transitionDelay:s};function d(e){return n?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(u);if(0===i.duration)return C();var l=[];A.easing&&(i.transitionDuration&&l.push([a+"transition-timing-function",A.easing]),i.animationDuration&&l.push([a+"animation-timing-function",A.easing])),A.delay&&i.animationDelay&&l.push([a+"animation-delay",A.delay+"s"]),A.duration&&i.animationDuration&&l.push([a+"animation-duration",A.duration+"s"]),e(l,(function(e){var t=e[0],n=e[1];w.style[s(t)]=n,S.push(e)}));var c=1e3*i.delay,f=i.duration,g=1e3*f,h=Date.now();k=[],i.transitionDuration&&k.push(o),i.animationDuration&&k.push(r),k=k.join(" "),D=function(e){e.stopPropagation();var t=e.originalEvent||e,n=t.timeStamp||Date.now(),a=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-h,0)>=c&&a>=f&&C()},u.on(k,D),b(u,A),d(C,c+1.5*g,!1)},g&&g(),h.push(f),g=i((function(){g=null;for(var e=c(),t=0;t<h.length;t++)h[t](e);h.length=0})),E;function C(){if(!x)return x=!0,k&&D&&u.off(k,D),m(u,A),function(e,t){_(e,t),b(e,t)}(u,A),e(S,(function(e){w.style[s(e[0])]=""})),E.complete(!0),E}}}}}])}(),function(){function e(e,n,a,o){var r=this.showWarnings;return{expect:i,expectAsync:s,expectWithText:function(e,t){var n=l(e)||"";n.indexOf(o.startSymbol())>-1?s(e,t,(function(){return l(e)})):i(e,t,n)},expectWithoutText:function(e,t){var n=l(e);n.indexOf(o.startSymbol())>-1||n||i(e,t,n)},getText:l,hasAriaLabel:c,parentHasAriaLabel:function e(n,a){a=a||1;var o=t.element(n)[0]||n;if(!o.parentNode)return!1;if(function(e){if(!c(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(e.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}(o.parentNode))return!0;if(--a)return e(o.parentNode,a);return!1}};function i(e,o,i){var s=t.element(e)[0]||e;!s||s.hasAttribute(o)&&0!==s.getAttribute(o).length||function(e,t){var n=e.hasChildNodes(),o=!1;function r(e){return"none"===(e.currentStyle?e.currentStyle:a.getComputedStyle(e)).display}if(n)for(var i=e.childNodes,s=0;s<i.length;s++){var l=i[s];1===l.nodeType&&l.hasAttribute(t)&&(r(l)||(o=!0))}return o}(s,o)||((i=t.isString(i)?i.trim():"").length?e.attr(o,i):r&&n.warn('ARIA: Attribute "',o,'", required for accessibility, is missing on node:',s))}function s(t,n,a){e((function(){i(t,n,a())}))}function l(e){e=e[0]||e;for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),a="";t=n.nextNode();)o(t)||(a+=t.textContent);return a.trim()||"";function o(t){for(;t.parentNode&&(t=t.parentNode)!==e;)if(t.getAttribute&&"true"===t.getAttribute("aria-hidden"))return!0}}function c(e){var n=t.element(e)[0]||e;return!!n.hasAttribute&&(n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.hasAttribute("aria-describedby"))}}e.$inject=["$$rAF","$log","$window","$interpolate"],t.module("material.core").provider("$mdAria",(function(){var t={showWarnings:!0};return{disableWarnings:function(){t.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(n,a,o,r){return e.apply(t,arguments)}]}}))}(),function(){function e(e){var n=!1;function a(e,t,n,a,o){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=a,this.$controller=o}this.respectPreAssignBindingsEnabled=function(e){return t.isDefined(e)?(n=e,this):n},this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,o,r){return new a(e,t,n,o,r)}],a.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},a.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},a.prototype._compileTemplate=function(e){var n=this,a=e.templateUrl,o=e.template||"",r=t.extend({},e.resolve),i=t.extend({},e.locals),s=e.transformTemplate||t.identity;return t.forEach(r,(function(e,a){t.isString(e)?r[a]=n.$injector.get(e):r[a]=n.$injector.invoke(e)})),t.extend(r,i),r.$$ngTemplate=a?this.$templateRequest(a):this.$q.when(o),this.$q.all(r).then((function(a){var o=s(a.$$ngTemplate,e),r=e.element||t.element("<div>").html(o.trim()).contents();return n._compileElement(a,r,e)}))},a.prototype._compileElement=function(e,n,a){var o=this,r=this.$compile(n),i={element:n,cleanup:n.remove.bind(n),locals:e,link:function(s){if(e.$scope=s,a.controller){var l=t.extend({},e,{$element:n}),c=o._createController(a,l,e);t.isFunction(c.$onDestroy)&&s.$on("$destroy",(function(){t.isFunction(c.$onDestroy)&&c.$onDestroy()})),n.data("$ngControllerController",c),n.children().data("$ngControllerController",c),i.controller=c}return r(s)}};return i},a.prototype._createController=function(a,o,r){var i;if(!n||("function"==typeof e.preAssignBindingsEnabled?e.preAssignBindingsEnabled():1===t.version.major&&t.version.minor<6)){var s=this.$controller(a.controller,o,!0);a.bindToController&&t.extend(s.instance,r),i=s()}else i=this.$controller(a.controller,o),a.bindToController&&t.extend(i,r);return a.controllerAs&&(o.$scope[a.controllerAs]=i),t.isFunction(i.$onInit)&&i.$onInit(),i},a.prototype._fetchContentElement=function(e){var n=e.contentElement,a=null;return t.isString(n)?a=o(n=document.querySelector(n)):(n=n[0]||n,a=document.contains(n)?o(n):function(){n.parentNode&&n.parentNode.removeChild(n)}),{element:t.element(n),restore:a};function o(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}t.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){f.$inject=["$$MdGestureHandler","$$rAF","$timeout","$mdUtil"],p.$inject=["$mdGesture","$$MdGestureHandler","$mdUtil"];var n,o,r={},i=6,s=!1,l=!1,c=null,u=!1;function d(){}function f(e,n,o,l){var c=l.getTouchAction(),u=void 0!==a&&t.element===a,d={handler:function(n,a){var o=new e(n);return t.extend(o,a),r[n]=o,d},register:function(e,t,n){var a=r[t.replace(/^\$md./,"")];if(!a)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(r).join(", "));return a.registerElement(e,n)},isAndroid:l.isAndroid,isIos:l.isIos,isHijackingClicks:(l.isIos||l.isAndroid)&&!u&&!s};function f(e){return function(t,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(t,e,n)}}return d.isHijackingClicks&&(d.handler("click",{options:{maxDistance:i},onEnd:f("click")}),d.handler("focus",{options:{maxDistance:i},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&v(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),d.handler("mouseup",{options:{maxDistance:i},onEnd:f("mouseup")}),d.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),d.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){o.cancel(this.state.timeout)},onStart:function(e,n){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:n.x,y:n.y},this.state.timeout=o(t.bind(this,(function(){this.dispatchEvent(e,"$md.hold"),this.cancel()})),this.state.options.delay,!1)},onMove:function(e,t){c||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,a=this.state.pos.y-t.y;Math.sqrt(n*n+a*a)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){c&&(this.oldTouchAction=e[0].style[c],e[0].style[c]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction?e[0].style[c]=this.oldTouchAction:e[0].style[c]=null},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,a;c||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,a=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,a=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=g(e),b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):a&&this.cancel())},dispatchDragMove:n.throttle((function(e){this.state.isRunning&&(b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))})),onEnd:function(e,t){this.state.dragPointer&&(b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function m(e){this.name=e,this.state={}}function p(e,a,i){if(!l){!u&&e.isHijackingClicks&&(document.addEventListener("click",(function(e){var n;n=i.isIos?t.isDefined(e.webkitForce)&&0===e.webkitForce:0===e.clientX&&0===e.clientY;n||e.$material||e.isIonicTap||_(e)?(c=null,"label"===e.target.tagName.toLowerCase()&&(c={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),c=null)}),!0),document.addEventListener("mouseup",s,!0),document.addEventListener("mousedown",s,!0),document.addEventListener("focus",s,!0),u=!0);t.element(document).on("mousedown touchstart pointerdown",(function(e){if(n)return;var t=+Date.now();if(o&&!h(e,o)&&t-o.endTime<1500)return;n=g(e),d("start",e)})).on("mousemove touchmove pointermove",(function(e){if(!n||!h(e,n))return;b(e,n),d("move",e)})).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",(function(e){if(!n||!h(e,n))return;b(e,n),n.endTime=+Date.now(),"pointercancel"!==e.type&&d("end",e);o=n,n=null})).on("$$mdGestureReset",(function(){o=n=null}))}function s(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||_(e)||"mousedown"===e.type&&(v(e.target)||v(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function d(e,t){var o;for(var i in r)(o=r[i])instanceof a&&("start"===e&&o.cancel(),o[e](t,n))}}function g(e){var t=y(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function h(e,t){return e&&t&&e.type.charAt(0)===t.type}function _(e){return c&&c.x===e.x&&c.y===e.y}function b(e,t){var n=y(e),a=t.x=n.pageX,o=t.y=n.pageY;t.distanceX=a-t.startX,t.distanceY=o-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function y(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function v(e){return!!e&&"-1"!==e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!==["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName))}t.module("material.core.gestures",[]).provider("$mdGesture",d).factory("$$MdGestureHandler",(function(){var o=void 0!==a&&t.element===a;return m.prototype={options:{},dispatchEvent:o?function(e,a,o){o=o||n;var r=new t.element.Event(a);r.$material=!0,r.pointer=o,r.srcEvent=e,t.extend(r,{clientX:o.x,clientY:o.y,screenX:o.x,screenY:o.y,pageX:o.x,pageY:o.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(o.target).trigger(r)}:function(t,a,o){var r;o=o||n,"click"===a||"mouseup"===a||"mousedown"===a?"function"==typeof e.MouseEvent?r=new MouseEvent(a,{bubbles:!0,cancelable:!0,screenX:Number(t.screenX),screenY:Number(t.screenY),clientX:Number(o.x),clientY:Number(o.y),ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons,relatedTarget:t.relatedTarget||null}):(r=document.createEvent("MouseEvents")).initMouseEvent(a,!0,!0,e,t.detail,o.x,o.y,o.x,o.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null):"function"==typeof e.CustomEvent?r=new CustomEvent(a,{bubbles:!0,cancelable:!0,detail:{}}):(r=document.createEvent("CustomEvent")).initCustomEvent(a,!0,!0,{});r.$material=!0,r.pointer=o,r.srcEvent=t,o.target.dispatchEvent(r)},onSetup:t.noop,onCleanup:t.noop,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,n){if(!this.state.isRunning){var a=this.getNearestParent(e.target),o=a&&a.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,o),registeredParent:a},this.onStart(e,n)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.state.isRunning=!1,this.onEnd(e,t))},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){var n=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",a),n.onSetup(e,t||{}),a;function a(){delete e[0].$mdGesture[n.name],e.off("$destroy",a),n.onCleanup(e,t||{})}}},m})).run(p),d.prototype={disableAll:function(){l=!0},skipClickHijack:function(){return s=!0},setMaxClickDistance:function(e){i=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout","$mdUtil",function(e,t,n,a){return new f(e,t,n,a)}]}}(),function(){function n(n,a,o){this.$timeout=n,this.$mdUtil=a,this.$rootScope=o,this.pointerEvent="MSPointerEvent"in e?"MSPointerDown":"PointerEvent"in e?"pointerdown":null,this.bodyElement=t.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputHandler=this.onInputEvent.bind(this),this.bufferedInputHandler=this.onBufferInputEvent.bind(this),this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents(),this.$rootScope.$on("$destroy",this.deregister.bind(this))}n.$inject=["$timeout","$mdUtil","$rootScope"],t.module("material.core.interaction",[]).service("$mdInteraction",n),n.prototype.deregister=function(){this.bodyElement.off("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.off("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.off(this.pointerEvent,this.inputHandler)},n.prototype.initializeEvents=function(){this.bodyElement.on("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.on(this.pointerEvent,this.inputHandler)},n.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},n.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},n.prototype.getLastInteractionType=function(){return this.lastInteractionType},n.prototype.isUserInvoked=function(e){var n=t.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-n}}(),t.module("material.core").provider("$$interimElement",(function(){return a.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=a,e;function e(e){i.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],a={},o={presets:{}},r={setDefaults:function(e){return o.optionsFactory=e.options,o.methods=(e.methods||[]).concat(n),r},addPreset:function(t,a){if((a=a||{}).methods=a.methods||[],a.options=a.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(a.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return o.presets[t]={methods:a.methods.concat(n),optionsFactory:a.options,argOption:a.argOption},r},addMethod:function(e,t){return a[e]=t,r},$get:i};return r.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),r;function i(n,r){var i,s,l=n(),c={hide:l.hide,cancel:l.cancel,show:function(e){return(e=e||{})._options&&(e=e._options),l.show(t.extend({},s,e))},destroy:function(e){return l.destroy(e)}};return i=o.methods||[],s=u(o.optionsFactory,{}),t.forEach(a,(function(e,t){c[t]=e})),t.forEach(o.presets,(function(e,n){var a=u(e.optionsFactory,{}),o=(e.methods||[]).concat(i);function r(e){this._options=t.extend({},a,e)}if(t.extend(a,{$type:n}),t.forEach(o,(function(e){r.prototype[e]=function(t){return this._options[e]=t,this}})),e.argOption){var s="show"+n.charAt(0).toUpperCase()+n.slice(1);c[s]=function(e){var t=c[n](e);return c.show(t)}}c[n]=function(n){return arguments.length&&e.argOption&&!t.isObject(n)&&!t.isArray(n)?(new r)[e.argOption](n):new r(n)}})),c;function u(t,n){var a={};return a[e]=c,r.invoke(t||function(){return n},{},a)}}}function a(e,a,o,r,i,s,l,c,u,d,f){return function(){var m,p=[],g=[],h=[];return m={show:function(e){var t=new b((e=e||{})||{}),n=e.multiple?a.resolve():a.all(p);e.multiple||(n=n.then((function(){var e=g.concat(h.map(m.cancel));return a.all(e)})));var o=n.then((function(){return t.show().then((function(){h.push(t)})).catch((function(e){return e})).finally((function(){p.splice(p.indexOf(o),1)}))}));return p.push(o),t.deferred.promise.catch((function(e){return e instanceof Error&&f(e),e})),t.deferred.promise},hide:_((function(e,t){return(t=t||{}).closeAll?a.all(h.slice().reverse().map(o)):t.closeTo!==n?a.all(h.slice(t.closeTo).map(o)):o(h[h.length-1]);function o(n){if(!n)return a.when(e);var o=n.remove(e,!1,t||{}).catch((function(e){return e})).finally((function(){g.splice(g.indexOf(o),1)}));return h.splice(h.indexOf(n),1),g.push(o),n.deferred.promise}})),cancel:_((function(e,n){var o=h.pop();if(!o)return a.when(e);var r=o.remove(e,!0,n||{}).catch((function(e){return e})).finally((function(){g.splice(g.indexOf(r),1)}));return g.push(r),o.deferred.promise.catch(t.noop)})),destroy:function(e){var n=e?null:h.shift(),o=t.element(e).length&&t.element(e)[0].parentNode;if(o){var r=h.filter((function(e){return e.options.element[0]===o}));r.length&&(n=r[0],h.splice(h.indexOf(n),1))}return n?n.remove(!1,!1,{$destroy:!0}):a.when(!1)},$injector_:d};function _(e){return function(){var t=arguments;return h.length?e.apply(m,t):p.length?p[0].finally((function(){return e.apply(m,t)})):a.when("No interim elements currently showing up.")}}function b(d){var f,p,g=a.when(!0);return d=function(e){return(e=e||{}).template&&(e.template=l.processTemplate(e.template)),t.extend({preserveScope:!1,cancelAutoHide:t.noop,scope:e.scope||o.$new(e.isolateScope),onShow:function(e,t,n){return s.enter(t,n.parent)},onRemove:function(e,t){return t&&s.leave(t)||a.when()}},e)}(d),f={options:d,deferred:a.defer(),show:function(){return a((function(n,o){function r(e){f.deferred.reject(e),o(e)}d.onCompiling&&d.onCompiling(d),function(e){return(e.skipCompile?null:c.compile(e))||a((function(t){t({locals:{},link:function(){return e.element}})}))}(d).then((function(o){p=function(n,a){t.extend(n.locals,a);var o=n.link(a.scope);return a.element=o,a.parent=function(n,a){var o,r=a.parent;return((r=t.isFunction(r)?r(a.scope,n,a):t.isString(r)?t.element(e[0].querySelector(r)):t.element(r))||{}).length?r:(i[0]&&i[0].querySelector&&(o=i[0].querySelector(":not(svg) > body")),o||(o=i[0]),"#comment"==o.nodeName&&(o=e[0].body),t.element(o))}(o,a),a.themable&&u(o),o}(o,d),d.cleanupElement=o.cleanup,g=function(e,n,o){var r=n.onShowing||t.noop,i=n.onComplete||t.noop;try{r(n.scope,e,n,o)}catch(e){return a.reject(e)}return a((function(t,r){try{a.when(n.onShow(n.scope,e,n,o)).then((function(){i(n.scope,e,n),h(),t(e)}),r)}catch(e){r(e.message)}}))}(p,d,o.controller).then(n,r)})).catch(r)}))},remove:function(e,n,o){return p?((d=t.extend(d||{},o||{})).cancelAutoHide&&d.cancelAutoHide(),d.element.triggerHandler("$mdInterimElementRemove"),!0===d.$destroy?_(d.element,d).then((function(){n&&i(e)||r(e)})):(a.when(g).finally((function(){_(d.element,d).then((function(){n?i(e):r(e)}),i)})),f.deferred.promise)):a.when(!1);function r(e){f.deferred.resolve(e)}function i(e){f.deferred.reject(e)}}};function h(){var e,a=t.noop;d.hideDelay&&(e=r(m.hide,d.hideDelay),a=function(){r.cancel(e)}),d.cancelAutoHide=function(){a(),d.cancelAutoHide=n}}function _(e,n){var o=n.onRemoving||t.noop;return a((function(t,r){try{var i=a.when(n.onRemove(n.scope,e,n)||!0);o(e,i),n.$destroy?(t(e),!n.preserveScope&&n.scope&&i.then((function(){n.scope.$destroy()}))):i.then((function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),t(e)}),r)}catch(e){r(e.message)}}))}}}}})),function(){var e,n,a,o=/(-gt)?-(sm|md|lg|print)/g,r=/\s+/g,i=["grow","initial","auto","none","noshrink","nogrow"],s=["row","column"],l=["","start","center","end","stretch","space-around","space-between"],c=["","start","center","end","stretch"],u={enabled:!0,breakpoints:[]};function d(){var e=!!document.querySelector("[md-layouts-disabled]");u.enabled=!e}function f(){return u.enabled=!1,{restrict:"A",priority:"900"}}function m(o){return["$mdUtil","$interpolate","$log",function(i,s,l){return e=i,n=s,a=l,{restrict:"A",compile:function(e,n){var a;return u.enabled&&(h(o,y(o,n,""),_(0,o,n)),r(0,e),a=r),a||t.noop}}}];function r(e,t){t.addClass(o)}}function p(e){var n=e.split("-");return["$log",function(a){return a.warn(e+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),t.noop}]}function g(t,n,a,r){var i,s=a[0].nodeName.toLowerCase();switch(t.replace(o,"")){case"flex":"md-button"!=s&&"fieldset"!=s||(i="<"+s+" "+t+"></"+s+">",r.warn(e.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",[i,"https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"])))}}function h(n,a,u){var d=a;if(!b(a)){switch(n.replace(o,"")){case"layout":v(a,s)||(a=s[0]);break;case"flex":v(a,i)||isNaN(a)&&(a="");break;case"flex-offset":case"flex-order":a&&!isNaN(+a)||(a="0");break;case"layout-align":var f=function(e){var t,n={main:"start",cross:"stretch"};return 0!==(e=e||"").indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e),(t=e.toLowerCase().trim().replace(r,"-").split("-")).length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]),t.length>0&&(n.main=t[0]||n.main),t.length>1&&(n.cross=t[1]||n.cross),l.indexOf(n.main)<0&&(n.main="start"),c.indexOf(n.cross)<0&&(n.cross="stretch"),n}(a);a=e.supplant("{main}-{cross}",f);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":a=""}a!=d&&(u||t.noop)(a)}return a?a.trim():""}function _(e,t,n){return function(e){b(e)||(n[n.$normalize(t)]=e)}}function b(e){return(e||"").indexOf(n.startSymbol())>-1}function y(e,t,n){var a=t.$normalize(e);return t[a]?t[a].trim().replace(r,"-"):n||null}function v(e,t,n){e=n&&e?e.replace(r,n):e;var a=!1;return e&&t.forEach((function(t){t=n?t.replace(r,n):t,a=a||t===e})),a}!function(o){var i,s=/^((?:x|data)[:\-_])/i,l=/([:\-_]+(.))/g,c=["layout","flex","flex-order","flex-offset","layout-align"],b=["show","hide","layout-padding","layout-margin"];function v(e){return e.replace(s,"").replace(l,(function(e,t,n,a){return a?n.toUpperCase():n}))}t.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],(function(i){t.forEach(c,(function(s){var l=i?s+"-"+i:s;o.directive(v(l),function(o){return["$mdUtil","$interpolate","$log",function(r,s,l){return e=r,n=s,a=l,{restrict:"A",compile:function(e,n){var r;return u.enabled&&(g(o,0,e,a),h(o,y(o,n,""),_(0,o,n)),r=i),r||t.noop}}}];function i(e,n,a){var i=function(e,n){var a;return function(o){var i=h(n,o||"");t.isDefined(i)&&(a&&e.removeClass(a),a=i?n+"-"+i.trim().replace(r,"-"):n,e.addClass(a))}}(n,o),s=a.$observe(a.$normalize(o),i);i(y(o,a,"")),e.$on("$destroy",(function(){s()}))}}(l))})),t.forEach(b,(function(e){var t=i?e+"-"+i:e;o.directive(v(t),m(t))}))})),o.provider("$$mdLayout",(function(){return{$get:t.noop,validateAttributeValue:h,validateAttributeUsage:g,disableLayouts:function(e){u.enabled=!0!==e}}})).directive("mdLayoutCss",f).directive("ngCloak",(i="ng-cloak",["$timeout",function(e){return{restrict:"A",priority:-10,compile:function(n){return u.enabled?(n.addClass(i),function(t,n){e((function(){n.removeClass(i)}),10,!1)}):t.noop}}}])).directive("layoutWrap",m("layout-wrap")).directive("layoutNowrap",m("layout-nowrap")).directive("layoutNoWrap",m("layout-no-wrap")).directive("layoutFill",m("layout-fill")).directive("layoutLtMd",p("layout-lt-md")).directive("layoutLtLg",p("layout-lt-lg")).directive("flexLtMd",p("flex-lt-md")).directive("flexLtLg",p("flex-lt-lg")).directive("layoutAlignLtMd",p("layout-align-lt-md")).directive("layoutAlignLtLg",p("layout-align-lt-lg")).directive("flexOrderLtMd",p("flex-order-lt-md")).directive("flexOrderLtLg",p("flex-order-lt-lg")).directive("offsetLtMd",p("flex-offset-lt-md")).directive("offsetLtLg",p("flex-offset-lt-lg")).directive("hideLtMd",p("hide-lt-md")).directive("hideLtLg",p("hide-lt-lg")).directive("showLtMd",p("show-lt-md")).directive("showLtLg",p("show-lt-lg")).config(d)}(t.module("material.core.layout",["ng"]))}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],t.module("material.core").service("$mdLiveAnnouncer",e),e.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout((function(){n._liveElement.textContent=e}),n._announceTimeout,!1)},e.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e}}(),t.module("material.core.meta",[]).provider("$$mdMeta",(function(){var e=t.element(document.head),n={};function a(e){if(n[e])return!0;var a=document.getElementsByName(e)[0];return!!a&&(n[e]=t.element(a),!0)}var o={setMeta:function(o,r){if(a(o),n[o])n[o].attr("content",r);else{var i=t.element('<meta name="'+o+'" content="'+r+'"/>');e.append(i),n[o]=i}return function(){n[o].attr("content",""),n[o].remove(),delete n[o]}},getMeta:function(e){if(!a(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return n[e].attr("content")}};return t.extend({},o,{$get:function(){return o}})})),function(){function e(e,a){var o,r=[],i={};return o={notFoundError:function(t,n){e.error((n||"")+"No instance found for handle",t)},getInstances:function(){return r},get:function(e){if(!s(e))return null;var t,n,a;for(t=0,n=r.length;t<n;t++)if((a=r[t]).$$mdHandle===e)return a;return null},register:function(e,n){return n?(e.$$mdHandle=n,r.push(e),(a=i[n])&&(a.forEach((function(t){t.resolve(e)})),delete i[n]),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}):t.noop;var a},when:function(e){if(s(e)){var t=a.defer(),r=o.get(e);return r?t.resolve(r):(i[e]===n&&(i[e]=[]),i[e].push(t)),t.promise}return a.reject("Invalid `md-component-id` value.")}};function s(e){return e&&""!==e}}e.$inject=["$log","$q"],t.module("material.core").factory("$mdComponentRegistry",e)}(),function(){function e(e){return{attach:function(n,a,o){return o=t.extend(function(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}(a),o),e.attach(n,a,o)}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdButtonInkRipple",e)}(),function(){function e(e){return{attach:function(n,a,o){return e.attach(n,a,t.extend({center:!0,dimBackground:!1,fitRipple:!0},o))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdCheckboxInkRipple",e)}(),function(){function e(e){return{attach:function(n,a,o){return e.attach(n,a,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},o))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdListInkRipple",e)}(),function(){n.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],t.module("material.core").provider("$mdInkRipple",(function(){var e=!1;return{disableInkRipple:function(){e=!0},$get:["$injector",function(a){return{attach:function(o,r,i){return e||r.controller("mdNoInk")?t.noop:a.instantiate(n,{$scope:o,$element:r,rippleOptions:i})}}}]}})).directive("mdInkRipple",e).directive("mdNoInk",o).directive("mdNoBar",o).directive("mdNoStretch",o);function e(e,n){return{controller:t.noop,link:function(t,a,o){o.hasOwnProperty("mdInkRippleCheckbox")?n.attach(t,a):e.attach(t,a)}}}function n(e,n,a,o,r,i,s){this.$window=o,this.$timeout=r,this.$mdUtil=i,this.$mdColorUtil=s,this.$scope=e,this.$element=n,this.options=a,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,i.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(n.controller("mdInkRipple")||{}).createRipple=t.bind(this,this.createRipple),(n.controller("mdInkRipple")||{}).setColor=t.bind(this,this.color),this.bindEvents()}function a(e,n){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(t.bind(e,n),!1))}function o(){return{controller:t.noop}}n.prototype.color=function(e){var n,a,o=this;return t.isDefined(e)&&(o._color=o._parseColor(e)),o._color||o._parseColor(o.inkRipple())||o._parseColor((n=o.options&&o.options.colorElement?o.options.colorElement:[],(a=n.length?n[0]:o.$element[0])?o.$window.getComputedStyle(a).color:"rgb(0,0,0)"))},n.prototype.calculateColor=function(){return this.color()},n.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},n.prototype.bindEvents=function(){this.$element.on("mousedown",t.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",t.bind(this,this.handleMouseup)),this.$element.on("mouseleave",t.bind(this,this.handleMouseup)),this.$element.on("touchmove",t.bind(this,this.handleTouchmove))},n.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,a=e.clientY-t.top;this.createRipple(n,a)}else this.createRipple(e.offsetX,e.offsetY)},n.prototype.handleMouseup=function(){this.$timeout(function(){a(this,this.clearRipples)}.bind(this))},n.prototype.handleTouchmove=function(){a(this,this.deleteRipples)},n.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},n.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},n.prototype.createContainer=function(){var e=t.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},n.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},n.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&t.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},n.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},n.prototype.createRipple=function(e,n){if(this.isRippleAllowed()){var a=this,o=a.$mdColorUtil,r=t.element('<div class="md-ripple"></div>'),i=this.$element.prop("clientWidth"),s=this.$element.prop("clientHeight"),l=2*Math.max(Math.abs(i-e),e),c=2*Math.max(Math.abs(s-n),n),u=function(e,t,n){return e?Math.max(t,n):Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}(this.options.fitRipple,l,c),d=this.calculateColor();r.css({left:e+"px",top:n+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:o.rgbaToRgb(d),borderColor:o.rgbaToRgb(d)}),this.lastRipple=r,this.clearTimeout(),this.timeout=this.$timeout((function(){a.clearTimeout(),a.mousedown||a.fadeInComplete(r)}),157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:d}),this.container.append(r),this.ripples.push(r),r.addClass("md-ripple-placed"),this.$mdUtil.nextTick((function(){r.addClass("md-ripple-scaled md-ripple-active"),a.$timeout((function(){a.clearRipples()}),450,!1)}),!1)}},n.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},n.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout((function(){t.fadeOutComplete(e)}),450,!1))},n.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){function e(e){return{attach:function(n,a,o){return e.attach(n,a,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},o))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdTabInkRipple",e)}(),t.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100 A200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A200 A400 A700"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 700"}}),function(e){function t(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}t.$inject=["$mdThemingProvider"],_.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],b.$inject=["$mdTheming"],h.$inject=["$mdColorPalette","$$mdMetaProvider"],A.$inject=["$injector","$mdTheming"],e.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",_).directive("mdThemable",b).directive("mdThemesDisabled",(function(){return g.disableTheming=!0,{restrict:"A",priority:"900"}})).provider("$mdTheming",h).config(t).run(A);var a,o={},r={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},i={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},s="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",l=w("rgba(0,0,0,0.87)"),c=w("rgba(255,255,255,0.87)"),u=w("rgb(255,255,255)"),d=["primary","accent","warn","background"],f={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},m={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};d.forEach((function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};f[e]||(f[e]=t),m[e]||(m[e]=t)}));var p=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],g={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function h(t,o){w.$inject=["$rootScope","$mdUtil","$q","$log"],a={};var l,c={},u=!1,h="default";e.extend(a,t);var _=function(t){var n=(t=e.isObject(t)?t:{}).theme||"default",r=t.hue||"800",i=a[t.palette]||a[c[n].colors[t.palette||"primary"].name],s=e.isObject(i[r])?i[r].hex:i[r];return"#"!==s.substr(0,1)&&(s="#"+s),function(e){var t=o.setMeta("theme-color",e),n=o.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}}(s)};return l={definePalette:function(e,t){return t=t||{},a[e]=b(e,t),l},extendPalette:function(t,n){return b(t,e.extend({},a[t]||{},n))},theme:v,configuration:function(){return e.extend({},g,{defaultTheme:h,alwaysWatchTheme:u,registeredStyles:[].concat(g.registeredStyles)})},disableTheming:function(t){g.disableTheming=e.isUndefined(t)||!!t},registerStyles:function(e){g.registeredStyles.push(e)},setNonce:function(e){g.nonce=e},generateThemesOnDemand:function(e){g.generateOnDemand=e},setDefaultTheme:function(e){h=e},alwaysWatchTheme:function(e){u=e},enableBrowserColor:_,$get:w,_LIGHT_DEFAULT_HUES:f,_DARK_DEFAULT_HUES:m,_PALETTES:a,_THEMES:c,_parseRules:y,_rgba:E};function b(e,t){var n=p.filter((function(e){return!t[e]}));if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function v(t,n){if(c[t])return c[t];var a="string"==typeof(n=n||"default")?c[n]:n,o=new A(t);return a&&e.forEach(a.colors,(function(t,n){o.colors[n]={name:t.name,hues:e.extend({},t.hues)}})),c[t]=o,o}function A(t){var n=this;function a(t){if((t=0===arguments.length||!!t)!==n.isDark){n.isDark=t,n.foregroundPalette=n.isDark?i:r,n.foregroundShadow=n.isDark?s:"";var a=n.isDark?m:f,o=n.isDark?f:m;return e.forEach(a,(function(e,t){var a=n.colors[t],r=o[t];if(a)for(var i in a.hues)a.hues[i]===r[i]&&(a.hues[i]=e[i])})),n}}n.name=t,n.colors={},n.dark=a,a(!1),d.forEach((function(t){var a=(n.isDark?m:f)[t];n[t+"Palette"]=function(o,r){var i=n.colors[t]={name:o,hues:e.extend({},a,r)};return Object.keys(i.hues).forEach((function(e){if(!a[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",n.name).replace("%3",o).replace("%4",Object.keys(a).join(", ")))})),Object.keys(i.hues).map((function(e){return i.hues[e]})).forEach((function(e){if(-1==p.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",n.name).replace("%3",t).replace("%4",o).replace("%5",p.join(", ")))})),n},n[t+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+t+"Color() has been deprecated. Use $mdThemingProviderTheme."+t+"Palette() instead."),n[t+"Palette"].apply(n,e)}}))}function w(t,o,r,i){var s=function(e,a){a===n&&(a=e,e=n),e===n&&(e=t),s.inherit(a,a)};return Object.defineProperty(s,"THEMES",{get:function(){return e.extend({},c)}}),Object.defineProperty(s,"PALETTES",{get:function(){return e.extend({},a)}}),Object.defineProperty(s,"ALWAYS_WATCH",{get:function(){return u}}),s.inherit=function(e,t){var a=t.controller("mdTheme")||e.data("$mdThemeController"),r=e.scope();if(f(a&&a.$mdTheme||("default"===h?"":h)),a){var s=u||a.$shouldWatch||o.parseAttributeBoolean(e.attr("md-theme-watch"));if(s||a.isAsyncTheme){var c=function(){d&&(d(),d=n)},d=a.registerChanges((function(e){f(e),s||c()}));r?r.$on("$destroy",c):e.on("$destroy",c)}}function f(t){if(t){l(t)||i.warn("Attempted to use unregistered theme '"+t+"'. Register it with $mdThemingProvider.theme().");var n=e.data("$mdThemeName");n&&e.removeClass("md-"+n+"-theme"),e.addClass("md-"+t+"-theme"),e.data("$mdThemeName",t),a&&e.data("$mdThemeController",a)}}},s.registered=l,s.defaultTheme=function(){return h},s.generateTheme=function(e){S(c[e],e,g.nonce)},s.defineTheme=function(e,t){t=t||{};var n=v(e);return t.primary&&n.primaryPalette(t.primary,t.primaryHues),t.accent&&n.accentPalette(t.accent,t.accentHues),t.warn&&n.warnPalette(t.warn,t.warnHues),t.background&&n.backgroundPalette(t.background,t.backgroundHues),t.dark&&n.dark(),this.generateTheme(e),r.resolve(e)},s.setBrowserColor=_,s;function l(e){return e===n||""===e||s.THEMES[e]!==n}}}function _(t,n,a,o,r,i){return{priority:101,link:{pre:function(s,l,c){var u=[],d=n.startSymbol(),f=n.endSymbol(),m=c.mdTheme.trim(),p=m.substr(0,d.length)===d&&m.lastIndexOf(f)===m.length-f.length,g="::"===c.mdTheme.split(d).join("").split(f).join("").trim().substr(0,"::".length),h=function(){var e=n(c.mdTheme)(s);return a(e)(s)||e},_={isAsyncTheme:e.isFunction(h())||e.isFunction(h().then),registerChanges:function(t,n){return n&&(t=e.bind(n,t)),u.push(t),function(){var e=u.indexOf(t);e>-1&&u.splice(e,1)}},$setTheme:function(e){t.registered(e)||i.warn("attempted to use unregistered theme '"+e+"'"),_.$mdTheme=e;for(var n=u.length;n--;)u[n](e)},$shouldWatch:o.parseAttributeBoolean(l.attr("md-theme-watch"))||t.ALWAYS_WATCH||p&&!g};l.data("$mdThemeController",_);var b=function(t){if("string"==typeof t)return _.$setTheme(t);r.when(e.isFunction(t)?t():t).then((function(e){_.$setTheme(e)}))};b(h());var y=s.$watch(h,(function(e){e&&(b(e),_.$shouldWatch||y())}))}}}}function b(e){return e}function y(t,n,o){!function(e,t){if(!a[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(a).join(", ")))}(t,n),o=o.replace(/THEME_NAME/g,t.name);var r=new RegExp("\\.md-"+t.name+"-theme","g");o=o.replace(/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,(function(e,n,o,r,i){return"foreground"===n?"shadow"==o?t.foregroundShadow:t.foregroundPalette[o]||t.foregroundPalette[1]:(0!==o.indexOf("hue")&&"default"!==o||(o=t.colors[n].hues[o]),E((a[t.colors[n].name][o]||"")[i?"contrast":"value"],r))}));var i=new RegExp("('|\")?{{\\s*([a-zA-Z]+)-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),s=[];return e.forEach(["default","hue-1","hue-2","hue-3"],(function(e){var n=o.replace(i,(function(n,o,r,i,s){var l=t.colors[r];return E(a[l.name][l.hues[e]]["color"===i?"value":"contrast"],s)}));"default"!==e&&(n=n.replace(r,".md-"+t.name+"-theme.md-"+e)),"default"==t.name&&(n=n.replace(/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g,(function(e,t,n){return e+", "+t+n}))),s.push(n)})),s}var v={};function A(t,n){var r=document.head,i=r?r.firstElementChild:null,s=!g.disableTheming&&t.has("$MD_THEME_CSS")?t.get("$MD_THEME_CSS"):"";if(s+=g.registeredStyles.join(""),i&&0!==s.length){e.forEach(a,(function(t,n){var a=t.contrastDefaultColor,o=t.contrastLightColors||[],r=t.contrastStrongLightColors||[],i=t.contrastDarkColors||[];"string"==typeof o&&(o=o.split(" ")),"string"==typeof r&&(r=r.split(" ")),"string"==typeof i&&(i=i.split(" ")),delete t.contrastDefaultColor,delete t.contrastLightColors,delete t.contrastStrongLightColors,delete t.contrastDarkColors,e.forEach(t,(function(n,s){if(!e.isObject(n)){var d=w(n);if(!d)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",n).replace("%2",t.name).replace("%3",s));t[s]={hex:t[s],value:d,contrast:"light"===a?i.indexOf(s)>-1?l:r.indexOf(s)>-1?u:c:o.indexOf(s)>-1?r.indexOf(s)>-1?u:c:l}}}))}));var f=s.split(/\}(?!(\}|'|"|;))/).filter((function(e){return e&&e.trim().length})).map((function(e){return e.trim()+"}"}));d.forEach((function(e){v[e]=""})),f.forEach((function(e){for(var t,n=0;t=d[n];n++)if(e.indexOf(".md-"+t)>-1)return v[t]+=e;for(n=0;t=d[n];n++)if(e.indexOf(t)>-1)return v[t]+=e;return v.primary+=e})),g.generateOnDemand||e.forEach(n.THEMES,(function(e){o[e.name]||"default"!==n.defaultTheme()&&"default"===e.name||S(e,e.name,g.nonce)}))}}function S(e,t,n){var a=document.head,r=a?a.firstElementChild:null;o[t]||(d.forEach((function(t){for(var o=y(e,t,v[t]);o.length;){var i=o.shift();if(i){var s=document.createElement("style");s.setAttribute("md-theme-style",""),n&&s.setAttribute("nonce",n),s.appendChild(document.createTextNode(i)),a.insertBefore(s,r)}}})),o[e.name]=!0)}function w(t){if(e.isArray(t)&&3==t.length)return t;if(/^rgb/.test(t))return t.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map((function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)}));if("#"==t.charAt(0)&&(t=t.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(t)){var n=t.length/3,a=t.substr(0,n),o=t.substr(n,n),r=t.substr(2*n);return 1===n&&(a+=a,o+=o,r+=r),[parseInt(a,16),parseInt(o,16),parseInt(r,16)]}}function E(t,n){return t?(4==t.length&&(t=e.copy(t),n?t.pop():n=t.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+t.join(",")+","+n+")":"rgb("+t.join(",")+")"):"rgb('0,0,0')"}}(e.angular),t.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){o.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],t.module("material.components.autocomplete").controller("MdAutocompleteCtrl",o);var e="standard",a="virtual";function o(o,r,i,s,l,c,u,d,f,m,p,g){var h,_,b,y=this,v=o.itemsExpr.split(/ in /i),A=v[1],S=null,w={},E=!1,C=[],T=!1,I=0,k=null,D=null,x=i.debounce((function(){y.hidden||L()})),M=a;y.documentElement=t.element(document.documentElement),h="hidden",_=function(e,n){var a,o,r;S&&(a=t.element(S.scrollContainer)),!e&&n?(L(),le(!0,O|R),S&&(i.disableScrollAround(S.scrollContainer),o=S.wrap,(r=t.element(o)).on("wheel touchmove",F),k=function(){r.off("wheel touchmove",F)},i.isIos&&(y.documentElement.on("touchend",Y),a&&a.on("touchstart touchmove touchend",q)),y.index=K(),i.nextTick((function(){U(),ce()})))):e&&!n&&(i.isIos&&(y.documentElement.off("touchend",Y),a&&a.off("touchstart touchmove touchend",q)),i.enableScrolling(),k&&(k(),k=null))},b=!0,Object.defineProperty(y,h,{get:function(){return b},set:function(e){var t=b;b=e,_(e,t)}}),y.scope=o,y.parent=o.$parent,y.itemName=v[0],y.matches=[],y.loading=!1,y.hidden=!0,y.index=-1,y.activeOption=null,y.id=i.nextUid(),y.isDisabled=null,y.isRequired=null,y.isReadonly=null,y.hasNotFound=!1,y.selectedMessage=o.selectedMessage||"selected",y.keydown=function(e){switch(e.keyCode){case s.KEY_CODE.DOWN_ARROW:if(y.loading||ne())return;e.stopPropagation(),e.preventDefault(),y.index=y.index+1>y.matches.length-1?0:Math.min(y.index+1,y.matches.length-1),i.nextTick(U),ce();break;case s.KEY_CODE.UP_ARROW:if(y.loading||ne())return;e.stopPropagation(),e.preventDefault(),y.index=y.index-1<0?y.matches.length-1:Math.max(0,y.index-1),i.nextTick(U),ce();break;case s.KEY_CODE.TAB:if(H(),y.hidden||y.loading||y.index<0||y.matches.length<1)return;re(y.index);break;case s.KEY_CODE.ENTER:if(y.hidden||y.loading||y.index<0||y.matches.length<1)return;if(ne())return;e.stopImmediatePropagation(),e.preventDefault(),re(y.index);break;case s.KEY_CODE.ESCAPE:if(e.preventDefault(),!(ee("blur")||!y.hidden||y.loading||ee("clear")&&o.searchText))return;e.stopPropagation(),ie(),o.searchText&&ee("clear")&&se(),y.hidden=!0,ee("blur")&&V(!0)}},y.blur=function(e){T=!1,E||(y.hidden=X(),pe("ngBlur",{$event:e}))},y.focus=function(e){T=!0,Z()&&oe()&&fe();y.hidden=X(),pe("ngFocus",{$event:e})},y.clear=function(e){e&&e.stopPropagation();ie(),se()},y.select=re,y.listEnter=function(){E=!0},y.listLeave=H,y.focusInput=$,y.getCurrentDisplayValue=ae,y.registerSelectedItemWatcher=function(e){-1===C.indexOf(e)&&C.push(e)},y.unregisterSelectedItemWatcher=function(e){var t=C.indexOf(e);-1!==t&&C.splice(t,1)},y.notFoundVisible=de,y.loadingIsVisible=function(){return y.loading&&!ne()},y.positionDropdown=L;var P,O=1,R=2;return i.initOptionalProperties(o,f,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),l(r),P=parseInt(o.delay,10)||0,f.$observe("disabled",(function(e){y.isDisabled=i.parseAttributeBoolean(e,!1)})),f.$observe("required",(function(e){y.isRequired=i.parseAttributeBoolean(e,!1)})),f.$observe("readonly",(function(e){y.isReadonly=i.parseAttributeBoolean(e,!1)})),o.$watch("searchText",P?i.debounce(G,P):G),o.$watch("selectedItem",B),t.element(c).on("resize",x),o.$on("$destroy",j),void i.nextTick((function(){var n;n=function(){var e,n;for(e=r;e.length&&(n=e.attr("md-autocomplete-snap"),!t.isDefined(n));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===n.toLowerCase()?e[0]:r.find("md-autocomplete-wrap")[0]};var a=r.find("md-autocomplete-wrap")[0];return{snap:a,wrap:a}}(),(S={main:r[0],scrollContainer:r[0].querySelector(".md-virtual-repeat-container, .md-standard-list-container"),scroller:r[0].querySelector(".md-virtual-repeat-scroller, .md-standard-list-scroller"),ul:r.find("ul")[0],input:r.find("input")[0],wrap:n.wrap,snap:n.snap,root:document.body}).li=S.ul.getElementsByTagName("li"),S.$=function(e){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=t.element(e[a]));return n}(S),M=S.scrollContainer.classList.contains("md-standard-list-container")?e:a,D=S.$.input.controller("ngModel"),S.$.root.length&&(l(S.$.scrollContainer),S.$.scrollContainer.detach(),S.$.root.append(S.$.scrollContainer),u.pin&&u.pin(S.$.scrollContainer,d)),r.on("touchstart",$),o.autofocus&&r.on("focus",$),o.inputAriaDescribedBy&&S.input.setAttribute("aria-describedby",o.inputAriaDescribedBy),o.floatingLabel||(o.inputAriaLabel?S.input.setAttribute("aria-label",o.inputAriaLabel):o.inputAriaLabelledBy?S.input.setAttribute("aria-labelledby",o.inputAriaLabelledBy):o.placeholder&&S.input.setAttribute("aria-label",o.placeholder))}));function N(){o.requireMatch&&D&&D.$setValidity("md-require-match",!!o.selectedItem||!o.searchText)}function L(){if(!S)return i.nextTick(L,!1,o);var e,t=48*(o.dropdownItems||5),n=S.wrap.getBoundingClientRect(),a=S.snap.getBoundingClientRect(),s=S.root.getBoundingClientRect(),l=a.bottom-s.top,c=s.bottom-a.top,u=n.left-s.left,d=n.width,m=function(){var e=0,t=r.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),p=o.dropdownPosition,g=s.bottom-a.bottom-8+i.getViewportTop(),h=a.top-8;p||(p=g>t?"bottom":h>t||h>g?"top":"bottom"),f.mdFloatingLabel&&(u+=2,d-=4),e={left:u+"px",minWidth:d+"px",maxWidth:Math.max(n.right-s.left,s.right-n.left)-8+"px"},"top"===p?(e.top="auto",e.bottom=c+"px",e.maxHeight=Math.min(t,h)+"px"):(g=s.bottom-n.bottom-8+i.getViewportTop(),e.top=l-m+"px",e.bottom="auto",e.maxHeight=Math.min(t,g)+"px"),S.$.scrollContainer.css(e),i.nextTick((function(){var e=S.scrollContainer.getBoundingClientRect(),t={};e.right>s.right&&(t.left=n.right-e.width+"px");S.$.scrollContainer.css(t)}),!1,o)}function $(){S.input.focus()}function U(){var e=S.scroller.querySelector(".selected");y.activeOption=e?e.id:null}function j(){if(y.hidden||i.enableScrolling(),t.element(c).off("resize",x),S){t.forEach(["ul","scroller","scrollContainer","input"],(function(e){S.$[e].remove()}))}}function F(e){e.preventDefault()}function q(e){e.stopPropagation()}function Y(e){y.hidden=!0,V(!0)}function H(){T||y.hidden||S.input.focus(),E=!1,y.hidden=X()}function B(e,n){N(),e?Q(e).then((function(t){o.searchText=t,function(e,t){C.forEach((function(n){n(e,t)}))}(e,n)})):n&&o.searchText&&Q(n).then((function(e){t.isString(o.searchText)&&e.toString().toLowerCase()===o.searchText.toLowerCase()&&(o.searchText="")})),e!==n&&t.isFunction(o.itemChange)&&o.itemChange(z(o.selectedItem))}function G(e,n){y.index=K(),e!==n&&(N(),Q(o.selectedItem).then((function(a){e!==a&&(o.selectedItem=null,e!==n&&t.isFunction(o.textChange)&&o.textChange(),oe()?fe():(y.matches=[],J(!1),le(!0,O)))})))}function V(e){e&&(E=!1,T=!1),S.input.blur()}function W(){return t.isNumber(o.minLength)?o.minLength:1}function Q(e){return m.when(function(e){return e&&o.itemText?o.itemText(z(e)):null}(e)||e).then((function(e){return e&&!t.isString(e)&&p.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e}))}function z(e){if(!e)return n;var t={};return y.itemName&&(t[y.itemName]=e),t}function K(){return o.autoselect?0:-1}function J(e){y.loading!==e&&(y.loading=e),y.hidden=X()}function X(){return!function(){if(y.isReadonly)return!1;if(!Z())return!1;return oe()&&te()||de()}()}function Z(){return!(y.loading&&!te())&&(!ne()&&!!T)}function ee(e){return!o.escapeOptions||-1!==o.escapeOptions.toLowerCase().indexOf(e)}function te(){return!!y.matches.length}function ne(){return!!y.scope.selectedItem}function ae(){return Q(y.matches[y.index])}function oe(){return(o.searchText||"").length>=W()}function re(e){i.nextTick((function(){Q(y.matches[e]).then((function(e){var t=S.$.input.controller("ngModel");g.announce(e+" "+y.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()})).finally((function(){o.selectedItem=y.matches[e],J(!1)}))}),!1)}function ie(){y.index=-1,i.nextTick(U),y.matches=[]}function se(){J(!0),o.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),S.input.dispatchEvent(e),S.input.blur(),o.searchText="",S.input.focus()}function le(e,t){var n=e?"polite":"assertive",a=[];t&R&&-1!==y.index&&a.push(ae()),t&O&&a.push(m.resolve(function(){switch(y.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+y.matches.length+" matches available."}}())),m.all(a).then((function(e){g.announce(e.join(" "),n)}))}function ce(){var t,n,a,o,r;S.li[0]&&(M===e?(t=S.li[Math.max(0,y.index)],n=S.scrollContainer.offsetHeight,a=t&&t.offsetTop||0,o=a+t.clientHeight,r=S.scrollContainer.scrollTop,a<r?ue(a):o>r+n&&ue(o-n)):function(){var e=S.li[0].offsetHeight,t=e*Math.max(0,y.index),n=t+e,a=S.scroller.clientHeight,o=S.scroller.scrollTop;t<o?ue(t):n>o+a&&ue(n-a)}())}function ue(t){M===e?S.scrollContainer.scrollTop=t:S.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(t)}function de(){var e=(y.scope.searchText||"").length;return y.hasNotFound&&!te()&&(!y.loading||0!==I)&&e>=W()&&(T||E)&&!ne()}function fe(){var e=o.searchText||"",n=e.toLowerCase();!o.noCache&&w[n]?me(w[n]):function(e){var n=o.$parent.$eval(A),a=e.toLowerCase(),r=t.isArray(n),s=!!n.then;function l(t){w[a]=t,(e||"")===(o.searchText||"")&&me(t)}r?l(n):s&&function(e){e&&(e=m.when(e),I++,J(!0),i.nextTick((function(){e.then(l).finally((function(){0==--I&&J(!1)}))}),!0,o))}(n)}(e),y.hidden=X()}function me(e){var t,n,a;y.matches=e,y.hidden=X(),y.loading&&J(!1),o.selectOnMatch&&(t=o.searchText,n=y.matches,a=n[0],1===n.length&&Q(a).then((function(e){var n=t===e;o.matchInsensitive&&!n&&(n=t.toLowerCase()===e.toLowerCase()),n&&re(0)}))),L(),le(!0,O)}function pe(e,t){f[e]&&o.$parent.$eval(f[e],t||{})}}}(),function(){function e(e){var n="virtual",a=["standard",n];function o(e){return e?(e=e.toLowerCase(),a.indexOf(e)>-1?e:n):n}return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?inputAriaLabel",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",menuContainerClass:"@?mdMenuContainerClass",inputClass:"@?mdInputClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton",selectedMessage:"@?mdSelectedMessage",mdMode:"=?mdMode"},compile:function(e,n){var a=e.find("input");return["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"].forEach((function(e){var t=n[n.$normalize(e)];null!==t&&a.attr(e,t)})),function(e,n,a,r){r.hasNotFound=!!n.attr("md-has-not-found"),t.isDefined(a.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=o(a.mdMode),n.on("click touchstart touchend",(function(e){e.stopPropagation()}))}},template:function(t,a){var r,i,s=(r=t.find("md-not-found").detach(),(i=r.length?r.html():"")?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" class="md-autocomplete-suggestion"                         md-autocomplete-parent-scope>'+i+"</li>":""),l=function(){var e=t.find("md-item-template").detach(),n=e.length?e.html():t.html();e.length||t.empty();return"<md-autocomplete-parent-scope md-autocomplete-replace>"+n+"</md-autocomplete-parent-scope>"}(),c=t.html(),u=a.tabindex;return s&&t.attr("md-has-not-found",!0),t.attr("tabindex","-1"),"        <md-autocomplete-wrap            ng-class=\"{ 'md-whiteframe-z1': !floatingLabel,                         'md-menu-showing': !$mdAutocompleteCtrl.hidden,                         'md-show-clear-button': !!clearButton }\">          "+(a.mdFloatingLabel?'            <md-input-container ng-if="floatingLabel">              <label>{{floatingLabel}}</label>              <input type="text"                '+(null!=u?'tabindex="'+u+'"':"")+'                id="{{inputId || \'fl-input-\' + $mdAutocompleteCtrl.id}}"                name="{{inputName || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                ng-class="::inputClass"                autocomplete="off"                ng-required="$mdAutocompleteCtrl.isRequired"                ng-readonly="$mdAutocompleteCtrl.isReadonly"                ng-minlength="inputMinlength"                ng-maxlength="inputMaxlength"                ng-disabled="$mdAutocompleteCtrl.isDisabled"                ng-model="$mdAutocompleteCtrl.scope.searchText"                ng-model-options="{ allowInvalid: true }"                ng-mousedown="$mdAutocompleteCtrl.focusInput()"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur($event)"                ng-focus="$mdAutocompleteCtrl.focus($event)"                aria-label="{{floatingLabel}}"                ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}"                ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}"                aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}"                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"                ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}"                ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">              <div md-autocomplete-parent-scope md-autocomplete-replace>'+c+"</div>            </md-input-container>":'            <input type="text"              '+(null!=u?'tabindex="'+u+'"':"")+'              id="{{inputId || \'input-\' + $mdAutocompleteCtrl.id}}"              name="{{inputName || \'input-\' + $mdAutocompleteCtrl.id }}"              ng-class="::inputClass"              ng-if="!floatingLabel"              autocomplete="off"              ng-required="$mdAutocompleteCtrl.isRequired"              ng-disabled="$mdAutocompleteCtrl.isDisabled"              ng-readonly="$mdAutocompleteCtrl.isReadonly"              ng-minlength="inputMinlength"              ng-maxlength="inputMaxlength"              ng-model="$mdAutocompleteCtrl.scope.searchText"              ng-mousedown="$mdAutocompleteCtrl.focusInput()"              ng-keydown="$mdAutocompleteCtrl.keydown($event)"              ng-blur="$mdAutocompleteCtrl.blur($event)"              ng-focus="$mdAutocompleteCtrl.focus($event)"              placeholder="{{placeholder}}"              aria-label="{{placeholder}}"              ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}"              ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}"              aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}"              aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"              ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}"              ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">')+'          <button type="button" aria-label="Clear Input" tabindex="0" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+e.mdClose+'"></md-icon></button>          <md-progress-linear              class="'+(a.mdFloatingLabel?"md-inline":"")+'"              ng-if="$mdAutocompleteCtrl.loadingIsVisible()"              md-mode="indeterminate"></md-progress-linear>          '+function(e,t){if(e=e?" "+e:"",d(t))return'            <div                 ng-hide="$mdAutocompleteCtrl.hidden"                class="md-standard-list-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'"                ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"                ng-mouseenter="$mdAutocompleteCtrl.listEnter()"                ng-mouseleave="$mdAutocompleteCtrl.listLeave()"                role="presentation">              <div class="md-standard-list-scroller" role="presentation">';return'          <md-virtual-repeat-container              md-auto-shrink              md-auto-shrink-min="1"              ng-hide="$mdAutocompleteCtrl.hidden"              class="md-virtual-repeat-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'"              ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"              ng-mouseenter="$mdAutocompleteCtrl.listEnter()"              ng-mouseleave="$mdAutocompleteCtrl.listLeave()"              role="presentation">'}(a.mdMenuContainerClass,a.mdMode)+'            <ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}"                ng-mouseup="$mdAutocompleteCtrl.focusInput()"                role="listbox">              <li class="md-autocomplete-suggestion" '+((d(a.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-attr-id="{{\'md-option-\' + $mdAutocompleteCtrl.id + \'-\' + $index}}"                  ng-click="$mdAutocompleteCtrl.select($index)"                  role="option"                  aria-setsize="{{$mdAutocompleteCtrl.matches.length}}"                  aria-posinset="{{$index+1}}"                  aria-selected="{{$index === $mdAutocompleteCtrl.index ? true : false}}"                   md-extra-name="$mdAutocompleteCtrl.itemName">                  ')+l+"                  </li>"+s+"            </ul>          "+function(e){return d(e)?"   </div>              </div>            </div>":"</md-virtual-repeat-container>"}(a.mdMode)+"        </md-autocomplete-wrap>";function d(e){return o(e)!==n}}}}e.$inject=["$$mdSvgRegistry"],t.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,t){return{restrict:"AE",compile:function(e,n,a){return function(e,n,o){var r,i,s=e.$mdAutocompleteCtrl,l=s.parent.$new(),c=s.itemName;function u(n,a){l[a]=e[n],e.$watch(n,(function(e){t.nextTick((function(){l[a]=e}))}))}u("$index","$index"),u("item",c),r=!1,i=!1,e.$watch((function(){i||r||(r=!0,e.$$postDigest((function(){i||l.$digest(),r=i=!1})))})),l.$watch((function(){i=!0})),a(l,(function(e){n.after(e)}))}},terminal:!0,transclude:"element"}}e.$inject=["$compile","$mdUtil"],t.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e)}(),function(){function e(e,t,n,a){this.$scope=e,this.$element=t,this.$attrs=n,this.$mdUtil=a,this.regex=null}e.$inject=["$scope","$element","$attrs","$mdUtil"],t.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.prototype.init=function(e,t){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(n){return{term:e(n),contentText:t(n)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},e.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},e.prototype.applyRegex=function(e){var n=this.resolveTokens(e);this.$element.empty(),n.forEach(function(e){if(e.isMatch){var n=t.element('<span class="highlight">').text(e.text);this.$element.append(n)}else this.$element.append(document.createTextNode(e))}.bind(this))},e.prototype.resolveTokens=function(e){var t=[],n=0;return e.replace(this.regex,(function(e,o){a(n,o),t.push({text:e,isMatch:!0}),n=o+e.length})),a(n),t;function a(n,a){var o=e.slice(n,a);o&&t.push(o)}},e.prototype.createRegex=function(e,t){var n="",a="",o=this.$mdUtil.sanitize(e);return t.indexOf("^")>=0&&(n="^"),t.indexOf("$")>=0&&(a="$"),new RegExp(n+o+a,t.replace(/[$^]/g,""))}}(),function(){function e(e,t){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(n,a){var o=t(a.mdHighlightText),r=e(n.html());return function(e,t,n,a){a.init(o,r)}}}}e.$inject=["$interpolate","$parse"],t.module("material.components.autocomplete").directive("mdHighlightText",e)}(),t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(e,n,a,o,r,i,s,l){return{restrict:"E",link:function(c,u,d){var f;function m(){var e=parseInt(f.height,10)+Math.abs(parseInt(f.top,10));u.css("height",e+"px")}a.pin&&a.pin(u,o),s((function(){if("fixed"===(f=r.getComputedStyle(l[0].body)).position){var a=n.debounce((function(){f=r.getComputedStyle(l[0].body),m()}),60,null,!1);m(),t.element(r).on("resize",a),c.$on("$destroy",(function(){t.element(r).off("resize",a)}))}var o=u.parent();o.length&&("BODY"===o[0].nodeName&&u.css("position","fixed"),"static"===r.getComputedStyle(o[0]).position&&i.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),e.inherit(u,o))}))}}}]),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",(function(){e.destroy()}))}}}function n(e){n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:n});function n(e,n,a,o,r,i,s,l){var c;return{themable:!0,onShow:function(u,d,f,m){if((d=a.extractElementByName(d,"md-bottom-sheet")).attr("tabindex","-1"),d.hasClass("ng-cloak")){l.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak>` will affect the bottom-sheet opening animations.",d[0])}f.isLockedOpen?(f.clickOutsideToClose=!1,f.escapeToClose=!1):f.cleanupGestures=function(e,t){var o=s.register(t,"drag",{horizontal:!1});return t.on("$md.dragstart",i).on("$md.drag",l).on("$md.dragend",c),function(){o(),t.off("$md.dragstart",i),t.off("$md.drag",l),t.off("$md.dragend",c)};function i(){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function l(t){var a=t.pointer.distanceY;a<5&&(a=Math.max(-80,a/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(80+a)+"px,0)")}function c(t){if(t.pointer.distanceY>0&&(t.pointer.distanceY>20||Math.abs(t.pointer.velocityY)>.5)){var o=e.prop("offsetHeight")-t.pointer.distanceY,i=Math.min(o/t.pointer.velocityY*.75,500);e.css(n.CSS.TRANSITION_DURATION,i+"ms"),a.nextTick(r.cancel,!0)}else e.css(n.CSS.TRANSITION_DURATION,""),e.css(n.CSS.TRANSFORM,"")}}(d,f.parent);f.disableBackdrop||((c=a.createBackdrop(u,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,f.clickOutsideToClose&&c.on("click",(function(){a.nextTick(r.cancel,!0)})),o.inherit(c,f.parent),e.enter(c,f.parent,null));o.inherit(d,f.parent),f.disableParentScroll&&(f.restoreScroll=a.disableScrollAround(d,f.parent));return e.enter(d,f.parent,c).then((function(){var e=a.findFocusTarget(d)||t.element(d[0].querySelector("button")||d[0].querySelector("a")||d[0].querySelector(a.prefixer("ng-click",!0)))||c;f.escapeToClose&&(f.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&&a.nextTick(r.cancel,!0)},i.on("keyup",f.rootElementKeyupCallback),e&&e.focus())}))},onRemove:function(t,n,a){a.disableBackdrop||e.leave(c);return e.leave(n).then((function(){a.disableParentScroll&&(a.restoreScroll(),delete a.restoreScroll),a.cleanupGestures&&a.cleanupGestures()}))},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0,isLockedOpen:!1}}}e.$inject=["$mdBottomSheet"],n.$inject=["$$interimElementProvider"],t.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",n)}(),function(){function e(e){return{restrict:"E",link:function(t,n){e(n)}}}function n(e,n,a,o){return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){return r(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===t.type?"button":t.type)+'" ng-transclude></button>'},link:function(i,s,l){n(s),e.attach(i,s),a.expectWithoutText(s,"aria-label"),r(l)&&t.isDefined(l.ngDisabled)&&!s.hasClass("_md-nav-button")&&i.$watch(l.ngDisabled,(function(e){s.attr("tabindex",e?-1:0)}));s.on("click",(function(e){!0===l.disabled&&(e.preventDefault(),e.stopImmediatePropagation())})),s.hasClass("md-no-focus")||(s.on("focus",(function(){o.isUserInvoked()&&"keyboard"!==o.getLastInteractionType()||s.addClass("md-focused")})),s.on("blur",(function(){s.removeClass("md-focused")})))}};function r(e){return t.isDefined(e.href)||t.isDefined(e.ngHref)||t.isDefined(e.ngLink)||t.isDefined(e.uiSref)}}n.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],t.module("material.components.button",["material.core"]).directive("mdButton",n).directive("a",e)}(),function(){function e(e){return{restrict:"E",link:function(t,n,a){n.addClass("_md"),e(n)}}}e.$inject=["$mdTheming"],t.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(e,n,a,o,r,i){return e=e[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:a.BEFORE_NG_ARIA,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:function(s,l){return l.$set("tabindex",l.tabindex||"0"),l.$set("type","checkbox"),l.$set("role",l.type),{pre:function(e,t){t.on("click",(function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()}))},post:function(s,l,c,u){var d,f=u[0],m=u[1]||r.fakeNgModel(),p=u[2];if(f){var g=f.isErrorGetter||function(){return m.$invalid&&(m.$touched||p&&p.$submitted)};f.input=l,s.$watch(g,f.setInvalid)}o(l),l.children().on("focus",(function(){l.focus()})),r.parseAttributeBoolean(c.mdIndeterminate)&&(v(),s.$watch(c.mdIndeterminate,v));c.ngChecked&&s.$watch(s.$eval.bind(s,c.ngChecked),(function(e){m.$setViewValue(e),m.$render()}));function h(e,t,n){c[e]&&s.$watch(c[e],(function(e){n[e]&&l.attr(t,n[e])}))}function _(e){var t,n,o=e.which||e.keyCode;switch(e.preventDefault(),o){case a.KEY_CODE.SPACE:l.addClass("md-focused"),b(e);break;case a.KEY_CODE.ENTER:(n=r.getClosest(e.target,"form"))&&(t=n.querySelector('button[type="submit"]:enabled, input[type="submit"]:enabled'))&&t.click()}}function b(e){l[0].hasAttribute("disabled")||s.skipToggle||s.$apply((function(){var t=c.ngChecked&&c.ngClick?c.checked:!m.$viewValue;m.$setViewValue(t,e&&e.type),m.$render()}))}function y(){l.toggleClass("md-checked",!!m.$viewValue&&!d)}function v(e){(d=!1!==e)&&l.attr("aria-checked","mixed"),l.toggleClass("md-indeterminate",d)}h("ngDisabled","tabindex",{true:"-1",false:c.tabindex}),n.expectWithText(l,"aria-label"),e.link.pre(s,{on:t.noop,0:{}},c,[m]),l.on("click",b).on("keypress",_).on("focus",(function(){"keyboard"===i.getLastInteractionType()&&l.addClass("md-focused")})).on("blur",(function(){l.removeClass("md-focused")})),m.$render=y}}}}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],t.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),t.module("material.components.chips",["material.core","material.components.autocomplete"]),function(){function a(e,t,a,o,r){this.$scope=e,this.$element=t,this.$mdConstant=a,this.$timeout=o,this.$mdUtil=r,this.isEditing=!1,this.parentController=n,this.enableChipEdit=!1}a.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],t.module("material.components.chips").controller("MdChipCtrl",a),a.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("dblclick",this.chipMouseDoubleClick.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},a.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return t.element(e[0])},a.prototype.getContentElement=function(){var e=t.element(this.getChipContent().children()[0]);return e&&0!==e.length||(e=t.element(this.getChipContent().contents()[0])),e},a.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},a.prototype.goOutOfEditMode=function(){if(this.isEditing){this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex(),t=this.getContentElement().text();t?(this.parentController.updateChipContents(e,t),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},a.prototype.selectNodeContents=function(t){var n,a;document.body.createTextRange?((n=document.body.createTextRange()).moveToElementText(t),n.select()):e.getSelection&&(a=e.getSelection(),(n=document.createRange()).selectNodeContents(t),a.removeAllRanges(),a.addRange(n))},a.prototype.goInEditMode=function(){this.isEditing=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},a.prototype.chipKeyDown=function(e){this.isEditing||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditing&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},a.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()}}(),function(){function e(e,n,a,o){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(n,a,r,i){var s=i.shift(),l=i.shift(),c=t.element(a[0].querySelector(".md-chip-content"));e(a),s&&(l.init(s),c.on("blur",(function(){s.resetSelectedChip(),s.$scope.$applyAsync()})));o((function(){s&&s.shouldFocusLastChip&&s.focusLastChipThenInput()}))},controller:"MdChipCtrl"}}e.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],t.module("material.components.chips").directive("mdChip",e)}(),function(){function e(e){return{restrict:"A",require:"^mdChips",scope:!1,link:function(t,n,a,o){n.on("click",(function(e){t.$apply((function(){o.removeChip(t.$$replacedScope.$index)}))})),e((function(){n.attr({tabindex:"-1","aria-hidden":"true"}),n.find("button").attr("tabindex","-1")}))}}}e.$inject=["$timeout"],t.module("material.components.chips").directive("mdChipRemove",e)}(),function(){function e(e){return{restrict:"EA",terminal:!0,link:function(t,n,a){var o=t.$parent.$mdChipsCtrl,r=o.parent.$new(!1,o.parent);r.$$replacedScope=t,r.$chip=t.$chip,r.$index=t.$index,r.$mdChipsCtrl=o;var i=o.$scope.$eval(a.mdChipTransclude);n.html(i),e(n.contents())(r)},scope:!1}}e.$inject=["$compile"],t.module("material.components.chips").directive("mdChipTransclude",e)}(),function(){e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];function e(e,t,n,a,o,r,i,s,l){this.$timeout=r,this.$mdConstant=n,this.$scope=e,this.parent=e.$parent,this.$mdUtil=i,this.$log=a,this.$mdLiveAnnouncer=s,this.$exceptionHandler=l,this.$element=o,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=i.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=i.parseAttributeBoolean(t.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.containerEmptyHint="Chips container. Enter the text area, then type text, and press enter to add a chip.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=300,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}t.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var e=this;this.wrapperId="_md-chips-wrapper-"+this.$mdUtil.nextUid(),this.$element.attr("ng-model")||this.setupStaticChips(),this.deRegister.push(this.$scope.$watchCollection("$mdChipsCtrl.items",(function(){e.setupInputAria(),e.setupWrapperAria()}))),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",(function(t){e.chipAppendDelay=parseInt(t)||300})))},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0),this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy?(e.attr("aria-labelledby",this.inputAriaLabelledBy),e.removeAttr("aria-label")):e.attr("aria-label",this.inputAriaLabel))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map((function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()})),t.attr("aria-owns",this.contentIds.join(" ")),t.attr("aria-label",this.containerHint)):(t.removeAttr("role"),t.removeAttr("aria-owns"),t.attr("aria-label",this.containerEmptyHint))},e.prototype.setupStaticChips=function(){var e,t,n=this,a=this.$element.find("md-chips-wrap");this.$timeout((function(){for(a.attr("role","list"),t=a[0].children,e=0;e<t.length;e++)t[e].setAttribute("role","listitem"),t[e].setAttribute("aria-setsize",t.length);n.inputAriaDescribedBy&&a.attr("aria-describedby",n.inputAriaDescribedBy),n.inputAriaLabelledBy?(a.attr("aria-labelledby",n.inputAriaLabelledBy),a.removeAttr("aria-label")):a.attr("aria-label",n.inputAriaLabel)}),10)},e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.autocompleteCtrl&&e.isDefaultPrevented&&e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(e.target))return;return e.preventDefault(),e.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(e.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!t)return;if(e.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(t.trim()),this.resetChipBuffer(),!1}}},e.prototype.getCursorPosition=function(e){try{if(e.selectionStart===e.selectionEnd)return e.selectionStart}catch(t){if(!e.value)return 0}},e.prototype.updateChipContents=function(e,t){e>=0&&e<this.items.length&&(this.items[e]=t,this.updateNgModel(!0))},e.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},e.prototype._isChipObject=function(e){return t.isObject(e)},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!t.isDefined(this.removable)||this.removable)},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer()&&!this.isEditingChip())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(e.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip,e);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),(this.selectedChip<0||this.readonly&&0===this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""===this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},e.prototype.removeAndSelectAdjacentChip=function(e,t){var n=this,a=n.getAdjacentChipIndex(e);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+e+'"]');n.removeChip(e,t),n.$timeout((function(){n.$timeout((function(){n.selectAndFocusChipSafe(a)}))}))},e.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0===t?-1:e===t?e-1:e},e.prototype.appendChip=function(e){if(this.shouldFocusLastChip=!this.addOnBlur,this.useTransformChip&&this.transformChip){var n=this.transformChip({$chip:e});t.isDefined(n)&&(e=n)}if(t.isObject(e)&&this.items.some((function(n){return t.equals(e,n)})))return;if(!(null==e||this.items.indexOf(e)+1)){var a=this.items.push(e)-1;this.updateNgModel();var o=t.isObject(e)?"":e;this.$mdLiveAnnouncer.announce(o+" "+this.addedMessage,"assertive"),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:e,$index:a})}},e.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},e.prototype.useOnAddExpression=function(){this.useOnAdd=!0},e.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},e.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},e.prototype.getChipBuffer=function(){var e=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return t.isString(e)?e:""},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.hasMaxChipsReached=function(){return t.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),this.maxChips>0&&this.items.length>=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},e.prototype.updateNgModel=function(e){e||this.validateModel(),t.forEach(this.ngModelCtrl.$viewChangeListeners,(function(e){try{e()}catch(e){this.$exceptionHandler(e)}}))},e.prototype.removeChip=function(e,n){var a=this.items.splice(e,1);this.updateNgModel(),this.ngModelCtrl.$setDirty();var o=t.isObject(a[0])?"":a[0];this.$mdLiveAnnouncer.announce(o+" "+this.removedMessage,"assertive"),a&&a.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:a[0],$index:e,$event:n})},e.prototype.removeChipAndFocusInput=function(e,t){this.removeChip(e,t),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout((function(){e.focusInput()}),e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){e>=-1&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!==e&&this.focusChip(e)},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$isEmpty=function(e){return!e||0===e.length},e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureInput=function(e){var t=e.controller("ngModel"),n=this;t&&(this.deRegister.push(this.$scope.$watch((function(){return t.$touched}),(function(e){e&&n.ngModelCtrl.$setTouched()}))),this.deRegister.push(this.$scope.$watch((function(){return t.$dirty}),(function(e){e&&n.ngModelCtrl.$setDirty()}))))},e.prototype.configureUserInput=function(e){this.userInputElement=e;var n=e.controller("ngModel");n!==this.ngModelCtrl&&(this.userInputNgModelCtrl=n);var a=this.$scope,o=this,r=function(e,n){a.$evalAsync(t.bind(o,n,e))};e.attr({tabindex:0}).on("keydown",(function(e){r(e,o.inputKeydown)})).on("focus",(function(e){r(e,o.onInputFocus)})).on("blur",(function(e){r(e,o.onInputBlur)}))},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,this.$element.attr("container-empty-hint")||(this.containerEmptyHint="Chips container with autocompletion. Enter the text area, type text to search, and then use the up and down arrow keys to select an option. Press enter to add the selected option as a chip.",this.setupWrapperAria()),e.registerSelectedItemWatcher(t.bind(this,(function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}}))),this.$element.find("input").on("focus",t.bind(this,this.onInputFocus)).on("blur",t.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$isEmpty(this.ngModelCtrl.$modelValue)||this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){e.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],t.module("material.components.chips").directive("mdChips",e);function e(e,t,n,a,o,r){var i={chips:t.processTemplate('      <md-chips-wrap          id="{{$mdChipsCtrl.wrapperId}}"          tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}"          ng-keydown="$mdChipsCtrl.chipKeydown($event)"          ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(),                       \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly,                      \'md-removable\': $mdChipsCtrl.isRemovable() }"          class="md-chips">        <md-chip ng-repeat="$chip in $mdChipsCtrl.items"            index="{{$index}}"             ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}">          <div class="md-chip-content"              tabindex="{{$mdChipsCtrl.ariaTabIndex === $index ? 0 : -1}}"              id="{{$mdChipsCtrl.contentIdFor($index)}}"              role="option"              aria-selected="{{$mdChipsCtrl.selectedChip === $index}}"              aria-setsize="{{$mdChipsCtrl.items.length}}"              aria-posinset="{{$index+1}}"              ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)"              aria-label="{{$mdChipsCtrl._isChipObject($chip) ? \'\' : $chip + \'. \'}}{{$mdChipsCtrl.isRemovable() ? \'\' + $mdChipsCtrl.deleteHint : \'\'}}"               ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"              md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>          <div ng-if="$mdChipsCtrl.isRemovable()"               class="md-chip-remove-container"               tabindex="-1"               md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>        </md-chip>        <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl">          <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>        </div>      </md-chips-wrap>'),input:t.processTemplate('        <input            class="md-input"            tabindex="0"            aria-label="{{$mdChipsCtrl.inputAriaLabel}}"            placeholder="{{$mdChipsCtrl.getPlaceholder()}}"            ng-model="$mdChipsCtrl.chipBuffer"            ng-focus="$mdChipsCtrl.onInputFocus()"            ng-blur="$mdChipsCtrl.onInputBlur()"            ng-keydown="$mdChipsCtrl.inputKeydown($event)">'),default:t.processTemplate("      <span>{{$chip}}</span>"),remove:t.processTemplate('      <button          class="md-chip-remove"          ng-if="$mdChipsCtrl.isRemovable()"          ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index, $event)"          type="button"          tabindex="-1"          aria-label="{{$mdChipsCtrl.deleteButtonLabel}}{{$mdChipsCtrl._isChipObject($chip) ? \'\' : \' \' + $chip}}">        <md-icon md-svg-src="{{$mdChipsCtrl.mdCloseIcon}}" aria-hidden="true"></md-icon>      </button>')};return{template:function(e,t){return t.$mdUserTemplate=e.clone(),i.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(s,l){var c=l.$mdUserTemplate;l.$mdUserTemplate=null;var u=g("md-chips>md-chip-template"),d=g(t.prefixer().buildList("md-chip-remove").map((function(e){return"md-chips>*["+e+"]"})).join(","))||i.remove,f=u||i.default,m=g("md-chips>md-autocomplete")||g("md-chips>input")||i.input,p=c.find("md-chip");c[0].querySelector("md-chip-template>*[md-chip-remove]")&&a.warn("invalid placement of md-chip-remove within md-chip-template.");function g(e){if(l.ngModel){var t=c[0].querySelector(e);return t&&t.outerHTML}}return function(a,s,c,g){t.initOptionalProperties(a,l),e(s);var h=g[0];if(u&&(h.enableChipEdit=!1),h.chipContentsTemplate=f,h.chipRemoveTemplate=d,h.chipInputTemplate=m,h.mdCloseIcon=r.mdClose,s.attr({tabindex:-1}).on("focus",(function(){h.onFocus()})).on("click",(function(){h.readonly||-1!==h.selectedChip||h.onFocus()})),l.ngModel&&(h.configureNgModel(s.controller("ngModel")),c.mdTransformChip&&h.useTransformChipExpression(),c.mdOnAppend&&h.useOnAppendExpression(),c.mdOnAdd&&h.useOnAddExpression(),c.mdOnRemove&&h.useOnRemoveExpression(),c.mdOnSelect&&h.useOnSelectExpression(),m!==i.input&&a.$watch("$mdChipsCtrl.readonly",(function(e){e||t.nextTick((function(){if(0===m.indexOf("<md-autocomplete")){var e=s.find("md-autocomplete");h.configureAutocomplete(e.controller("mdAutocomplete"))}h.configureUserInput(s.find("input"))}))})),t.nextTick((function(){var e=s.find("input");e&&(h.configureInput(e),e.toggleClass("md-input",!0))}))),p.length>0){var _=n(p.clone())(a.$parent);o((function(){s.find("md-chips-wrap").prepend(_)}))}}},scope:{readonly:"=?readonly",removable:"=?mdRemovable",placeholder:"@?",secondaryPlaceholder:"@?",maxChips:"@?mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&?mdOnAppend",onAdd:"&?mdOnAdd",onRemove:"&?mdOnRemove",addedMessage:"@?mdAddedMessage",removedMessage:"@?mdRemovedMessage",onSelect:"&?mdOnSelect",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?",deleteButtonLabel:"@?",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay",ngChange:"&?"}}}}(),function(){function e(e,t,n){this.$element=t,this.$attrs=e,this.$timeout=n,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}e.$inject=["$attrs","$element","$timeout"],t.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.init=function(){var e=this,t=this.deRegister,n=this.$element;this.$timeout((function(){t.push(n.find("md-chips").controller("mdChips").$scope.$watchCollection("$mdChipsCtrl.items",(function(){e.setupChipsAria(),e.setupAutocompleteAria()})))}))},e.prototype.setupChipsAria=function(){var e=this.$element.find("md-chips"),t=e.controller("mdChips");this.removedMessage&&(t.removedMessage=this.removedMessage),this.containerHint&&(t.containerHint=this.containerHint),this.containerEmptyHint&&(e.attr("container-empty-hint",this.containerEmptyHint),t.containerEmptyHint=this.containerEmptyHint),this.deleteHint&&(t.deleteHint=this.deleteHint),this.inputAriaLabel&&(t.inputAriaLabel=this.inputAriaLabel)},e.prototype.setupAutocompleteAria=function(){var e=this.$element.find("md-chips-wrap").find("md-autocomplete").find("input");this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy&&(e.removeAttr("aria-label"),e.attr("aria-labelledby",this.inputAriaLabelledBy))},e.prototype.queryContact=function(e){return this.contactQuery({$query:e})},e.prototype.inputKeydown=function(e){if(this.separatorKeys&&!(this.separatorKeys.indexOf(e.keyCode)<0)){e.stopPropagation(),e.preventDefault();var n=t.element(e.target).controller("mdAutocomplete");n.select(n.index)}},e.prototype.itemName=function(e){return e[this.contactName]},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)}}(),function(){e.$inject=["$mdTheming","$mdUtil"],t.module("material.components.chips").directive("mdContactChips",e);function e(e,t){return{template:function(e,t){return'      <md-chips class="md-contact-chips"          ng-model="$mdContactChipsCtrl.contacts"          ng-change="$mdContactChipsCtrl.ngChange($mdContactChipsCtrl.contacts)"          md-require-match="$mdContactChipsCtrl.requireMatch"          md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}"          md-separator-keys="$mdContactChipsCtrl.separatorKeys"          md-autocomplete-snap>          <md-autocomplete              md-menu-class="md-contact-chips-suggestions"              md-selected-item="$mdContactChipsCtrl.selectedItem"              md-search-text="$mdContactChipsCtrl.searchText"              md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"              md-item-text="$mdContactChipsCtrl.itemName(item)"              md-no-cache="true"              md-min-length="$mdContactChipsCtrl.minLength"              md-autoselect              ng-keydown="$mdContactChipsCtrl.inputKeydown($event)"              placeholder="{{$mdContactChipsCtrl.contacts.length === 0 ?                  $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">            <div class="md-contact-suggestion">              <img                   ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"                  alt="{{item[$mdContactChipsCtrl.contactName]}}"                  ng-if="item[$mdContactChipsCtrl.contactImage]" />              <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"                    md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}">                {{item[$mdContactChipsCtrl.contactName]}}              </span>              <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>            </div>          </md-autocomplete>          <md-chip-template>            <div class="md-contact-avatar">              <img                   ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"                  alt="{{$chip[$mdContactChipsCtrl.contactName]}}"                  ng-if="$chip[$mdContactChipsCtrl.contactImage]" />            </div>            <div class="md-contact-name">              {{$chip[$mdContactChipsCtrl.contactName]}}            </div>          </md-chip-template>      </md-chips>'},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(n,a){return function(n,o,r,i){var s=i;t.initOptionalProperties(n,a),e(o),o.attr("tabindex","-1"),r.$observe("mdChipAppendDelay",(function(e){s.chipAppendDelay=e}))}},scope:{contactQuery:"&mdContacts",placeholder:"@?",secondaryPlaceholder:"@?",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",ngChange:"&?",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay",separatorKeys:"=?mdSeparatorKeys",removedMessage:"@?mdRemovedMessage",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?"}}}}(),function(){o.$inject=["$mdColors","$mdUtil","$log","$parse"],a.$inject=["$mdTheming","$mdUtil","$log"];var e=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,n=null;function a(e,a,o){return n=n||Object.keys(e.PALETTES),{applyThemeColors:function(e,n){try{n&&e.css((s={},l=(a=n).hasOwnProperty("color"),t.forEach(a,(function(e,t){var n=i(e),a=t.indexOf("background")>-1;s[t]=r(n),a&&!l&&(s.color=r(n,!0))})),s))}catch(e){o.error(e.message)}var a,s,l},getThemeColor:function(e){return r(i(e))},hasTheme:function(n){return t.isDefined(e.THEMES[n.split("-")[0]])}};function r(t,n){n=n||!1;var o=e.PALETTES[t.palette][t.hue];return o=n?o.contrast:o.value,a.supplant("rgba({0}, {1}, {2}, {3})",[o[0],o[1],o[2],o[3]||t.opacity])}function i(n){var a=n.split("-"),o=t.isDefined(e.THEMES[a[0]])?a.splice(0,1)[0]:e.defaultTheme();return{theme:o,palette:s(a,o),hue:l(a,o),opacity:a[2]||1}}function s(t,o){var r=t.length>1&&-1!==n.indexOf(t[1]),i=t[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(r&&(i=t[0]+"-"+t.splice(1,1)),-1===n.indexOf(i)){var s=e.THEMES[o].colors[i];if(!s)throw new Error(a.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:i}));i=s.name}return i}function l(t,n){var o=e.THEMES[n].colors;if("hue"===t[1]){var r=parseInt(t.splice(2,1)[0],10);if(r<1||r>3)throw new Error(a.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:r}));if(t[1]="hue-"+r,!(t[0]in o))throw new Error(a.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(o).join(", "),usedTheme:t[0]}));return o[t[0]].hues[t[1]]}return t[1]||o[t[0]in o?t[0]:"primary"].hues.default}}function o(n,a,o,r){return{restrict:"A",require:["^?mdTheme"],compile:function(i,s){var l=function(){var n=s.mdColors,o=n.indexOf("::")>-1,r=!!o||e.test(s.mdColors);s.mdColors=n.replace("::","");var i=t.isDefined(s.mdColorsWatch);return!o&&!r&&(!i||a.parseAttributeBoolean(s.mdColorsWatch))}();return function(e,a,i,s){var c=s[0],u={},d=function(t){"string"!=typeof t&&(t=""),i.mdColors||(i.mdColors="{}");var a=r(i.mdColors)(e);return c&&Object.keys(a).forEach((function(e){var o=a[e];n.hasTheme(o)||(a[e]=(t||c.$mdTheme)+"-"+o)})),f(a),a},f=function(e){if(!t.equals(e,u)){var n=Object.keys(u);u.background&&!n.color&&n.push("color"),n.forEach((function(e){a.css(e,"")}))}u=e},m=t.noop;c&&(m=c.registerChanges((function(e){n.applyThemeColors(a,d(e))}))),e.$on("$destroy",(function(){m()}));try{l?e.$watch(d,t.bind(this,n.applyThemeColors,a),!0):n.applyThemeColors(a,d())}catch(e){o.error(e.message)}}}}}t.module("material.components.colors",["material.core"]).directive("mdColors",o).service("$mdColors",a)}(),function(){function e(e){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(n,a){var o;a.addClass("_md"),e(a),n.$broadcast("$mdContentLoaded",a),o=a[0],t.element(o).on("$md.pressdown",(function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===o.scrollTop?o.scrollTop=1:o.scrollHeight===o.scrollTop+o.offsetHeight&&(o.scrollTop-=1)))}))}}}e.$inject=["$mdTheming"],t.module("material.components.content",["material.core"]).directive("mdContent",e)}(),t.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){function e(e){return{template:function(e,t){return'<div ng-switch="calendarCtrl.currentView" '+(t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",monthFilter:"=mdMonthFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:r,controllerAs:"calendarCtrl",bindToController:!0,link:function(t,n,a,o){var r=o[0];o[1].configureNgModel(r,e)}}}r.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale","$filter"],e.$inject=["inputDirective"],t.module("material.components.datepicker").directive("mdCalendar",e);var a=0,o={day:"month",month:"year"};function r(e,o,r,i,s,l,c,u,d,f){l(e),this.$element=e,this.$scope=o,this.$attrs=u,this.dateUtil=r,this.$mdUtil=i,this.keyCode=s.KEY_CODE,this.$$rAF=c,this.$mdDateLocale=d,this.ngDateFilter=f("date"),this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=n,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=a++,this.displayDate=null,this.mode=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,u.tabindex||e.attr("tabindex","-1");var m,p=t.bind(this,this.handleKeyEvent);(m=e.parent().hasClass("md-datepicker-calendar")?t.element(document.body):e).on("keydown",p),o.$on("$destroy",(function(){m.off("keydown",p)})),1===t.version.major&&t.version.minor<=4&&this.$onInit()}r.prototype.$onInit=function(){this._mode&&o.hasOwnProperty(this._mode)?(this.currentView=o[this._mode],this.mode=this._mode):(this.currentView=this._currentView||"month",this.mode=null),this.minDate&&this.minDate>this.$mdDateLocale.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=this.$mdDateLocale.firstRenderableDate,this.maxDate&&this.maxDate<this.$mdDateLocale.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=this.$mdDateLocale.lastRenderableDate},r.prototype.configureNgModel=function(e,n){var a=this;a.ngModelCtrl=e,this.$attrs.$set("type","date"),n[0].link.pre(this.$scope,{on:t.noop,val:t.noop,0:{}},this.$attrs,[e]),e.$render=function(){var e,t=this.$viewValue;a.dateUtil.isValidDate(t)||(e=a.dateUtil.removeLocalTzAndReparseDate(new Date(t)),a.dateUtil.isValidDate(e)&&(t=e)),a.$scope.$broadcast("md-calendar-parent-changed",t),a.selectedDate||(a.selectedDate=t),a.displayDate||(a.displayDate=a.selectedDate||a.today)},a.$mdUtil.nextTick((function(){a.isInitialized=!0}))},r.prototype.setNgModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone"),n=this.dateUtil.createDateAtMidnight(e);return this.focusDate(n),this.$scope.$emit("md-calendar-change",n),null==t||n.getTimezoneOffset()<0?this.ngModelCtrl.$setViewValue(this.ngDateFilter(n,"yyyy-MM-dd"),"default"):this.ngModelCtrl.$setViewValue(this.ngDateFilter(n,"yyyy-MM-dd",t),"default"),this.ngModelCtrl.$render(),n},r.prototype.setCurrentView=function(e,n){var a=this;a.$mdUtil.nextTick((function(){a.currentView=e,n&&(a.displayDate=t.isDate(n)?n:new Date(n))}))},r.prototype.focusDate=function(e){if(this.dateUtil.isValidDate(e)){var t=this.$element[0].querySelector("."+this.FOCUSED_DATE_CLASS);t&&t.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(e,this.currentView),a=document.getElementById(n);a&&(a.classList.add(this.FOCUSED_DATE_CLASS),a.focus(),this.displayDate=e)}else{var o=this.$element[0].querySelector("[ng-switch]");o&&o.focus()}},r.prototype.changeSelectedDate=function(e){var t=this.SELECTED_DATE_CLASS,n=this.$element[0].querySelector("."+t);if(n&&(n.classList.remove(t),n.setAttribute("aria-selected","false")),e){var a=document.getElementById(this.getDateId(e,this.currentView));a&&(a.classList.add(t),a.setAttribute("aria-selected","true"))}this.selectedDate=e},r.prototype.getActionFromKeyEvent=function(e){var t=this.keyCode;switch(e.which){case t.ENTER:return"select";case t.RIGHT_ARROW:return"move-right";case t.LEFT_ARROW:return"move-left";case t.DOWN_ARROW:return e.metaKey?"move-page-down":"move-row-down";case t.UP_ARROW:return e.metaKey?"move-page-up":"move-row-up";case t.PAGE_DOWN:return"move-page-down";case t.PAGE_UP:return"move-page-up";case t.HOME:return"start";case t.END:return"end";default:return null}},r.prototype.handleKeyEvent=function(e){var t=this;this.$scope.$apply((function(){if(e.which===t.keyCode.ESCAPE||e.which===t.keyCode.TAB)return t.$scope.$emit("md-calendar-close"),void(e.which===t.keyCode.TAB&&e.preventDefault());var n=t.getActionFromKeyEvent(e);n&&(e.preventDefault(),e.stopPropagation(),t.$scope.$broadcast("md-calendar-parent-action",n))}))},r.prototype.hideVerticalScrollbar=function(e){var t=this,n=e.$element[0],a=n.querySelector(".md-calendar-scroll-mask");function o(){var n=t.width||340,o=t.scrollbarWidth,r=e.calendarScroller;a.style.width=n+"px",r.style.width=n+o+"px",r.style.paddingRight=o+"px"}t.width>0?o():t.$$rAF((function(){var a=e.calendarScroller;t.scrollbarWidth=a.offsetWidth-a.clientWidth,t.width=n.querySelector("table").offsetWidth,o()}))},r.prototype.getDateId=function(e,t){if(!t)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,t,e.getFullYear(),e.getMonth(),e.getDate()].join("-")},r.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",(function(){e.$$phase||e.$apply(),t()}))}}(),function(){n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonth",(function(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="-220"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="265"><tr aria-hidden="true" md-force-height="\'265px\'"></tr></tbody></table></md-virtual-repeat-container></div>',require:["^^mdCalendar","mdCalendarMonth"],controller:n,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,a){var o=a[0];a[1].initialize(o)}}}));var e=265;function n(e,t,n,a,o,r){this.$element=e,this.$scope=t,this.$animate=n,this.$q=a,this.dateUtil=o,this.dateLocale=r,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var i=this;this.cellClickHandler=function(){var e=o.getTimestampFromNode(this);i.$scope.$apply((function(){i.calendarCtrl.setNgModelValue(new Date(e))}))},this.headerClickHandler=function(){i.calendarCtrl.setCurrentView("year",o.getTimestampFromNode(this))}}n.prototype.initialize=function(e){this.items={length:this.dateUtil.getMonthDistance(e.firstRenderableDate,e.lastRenderableDate)+2},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},n.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},n.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.calendarCtrl.displayDate=e;var n=this;return t.then((function(){n.isMonthTransitionInProgress=!1})),t},n.prototype.animateDateChange=function(t){if(this.dateUtil.isValidDate(t)){var n=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,t);this.calendarScroller.scrollTop=n*e}return this.$q.when()},n.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),a=0;a<7;a++){var o=document.createElement("th");o.textContent=t[(a+e)%7],n.appendChild(o)}this.$element.find("thead").append(n)},n.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",(function(t,n){e.calendarCtrl.changeSelectedDate(n),e.changeDisplayDate(n)})),e.$scope.$on("md-calendar-parent-action",t.bind(this,this.handleKeyEvent))},n.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,a=n.displayDate;if("select"===t)n.setNgModelValue(a);else{var o=null,r=this.dateUtil;switch(t){case"move-right":o=r.incrementDays(a,1);break;case"move-left":o=r.incrementDays(a,-1);break;case"move-page-down":o=r.incrementMonths(a,1);break;case"move-page-up":o=r.incrementMonths(a,-1);break;case"move-row-down":o=r.incrementDays(a,7);break;case"move-row-up":o=r.incrementDays(a,-7);break;case"start":o=r.getFirstDateOfMonth(a);break;case"end":o=r.getLastDateOfMonth(a)}o&&(o=this.dateUtil.clampDate(o,n.minDate,n.maxDate),this.changeDisplayDate(o).then((function(){n.focusDate(o)})))}}}(),function(){function e(e,a){var o=e('<md-icon md-svg-src="'+a.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,n,a,r){var i=r[0],s=r[1],l=r[2];l.calendarCtrl=i,l.monthCtrl=s,l.arrowIcon=o.cloneNode(!0),e.$watch((function(){return l.offset}),(function(e){t.isNumber(e)&&l.generateContent()}))}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$compile","$$mdSvgRegistry"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonthBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(e){var t=this.monthCtrl,n=this.calendarCtrl,a=document.createElement("td");if(a.tabIndex=-1,a.classList.add("md-calendar-date"),a.setAttribute("role","gridcell"),e){a.setAttribute("tabindex","-1"),a.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),a.id=n.getDateId(e,"month"),a.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,n.today)&&a.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(e,n.selectedDate)&&(a.classList.add(n.SELECTED_DATE_CLASS),a.setAttribute("aria-selected","true"));var o=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var r=document.createElement("span");r.classList.add("md-calendar-date-selection-indicator"),r.textContent=o,a.appendChild(r),a.addEventListener("click",t.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(e,n.displayDate)&&(this.focusAfterAppend=a)}else a.classList.add("md-calendar-date-disabled"),a.textContent=o}return a},n.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!t.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},n.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},n.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),a=this.getLocaleDay_(n),o=this.dateUtil.getNumberOfDaysInMonth(t),r=document.createDocumentFragment(),i=1,s=this.buildDateRow(i);r.appendChild(s);var l=this.offset===this.monthCtrl.items.length-1,c=0,u=document.createElement("td"),d=document.createElement("span"),f=this.calendarCtrl;if(d.textContent=this.dateLocale.monthHeaderFormatter(t),u.appendChild(d),u.classList.add("md-calendar-month-label"),f.maxDate&&n>f.maxDate?u.classList.add("md-calendar-month-label-disabled"):f.mode||(u.addEventListener("click",this.monthCtrl.headerClickHandler),u.setAttribute("data-timestamp",n.getTime()),u.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),u.classList.add("md-calendar-label-clickable"),u.appendChild(this.arrowIcon.cloneNode(!0))),a<=2){u.setAttribute("colspan","7");var m=this.buildDateRow();if(m.appendChild(u),r.insertBefore(m,s),l)return r}else c=3,u.setAttribute("colspan","3"),s.appendChild(u);for(var p=c;p<a;p++)s.appendChild(this.buildDateCell());for(var g=a,h=n,_=1;_<=o;_++){if(7===g){if(l)return r;g=0,i++,s=this.buildDateRow(i),r.appendChild(s)}h.setDate(_);var b=this.buildDateCell(h);s.appendChild(b),g++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;r.childNodes.length<6;){for(var y=this.buildDateRow(),v=0;v<7;v++)y.appendChild(this.buildDateCell());r.appendChild(y)}return r},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){function e(e,t,n,a,o,r){this.$element=e,this.$scope=t,this.$animate=n,this.$q=a,this.dateUtil=o,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=r;var i=this;this.cellClickHandler=function(){i.onTimestampSelected(o.getTimestampFromNode(this))}}e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],t.module("material.components.datepicker").directive("mdCalendarYear",(function(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="88"><tr aria-hidden="true" md-force-height="\'88px\'"></tr></tbody></table></md-virtual-repeat-container></div>',require:["^^mdCalendar","mdCalendarYear"],controller:e,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,n,a){var o=a[0];a[1].initialize(o)}}})),e.prototype.initialize=function(e){this.items={length:this.dateUtil.getYearDistance(e.firstRenderableDate,e.lastRenderableDate)+1},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},e.prototype.getFocusedYearIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getYearDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},e.prototype.changeDate=function(e){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(e)&&!this.isMonthTransitionInProgress){var t=this,n=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,n.then((function(){t.isMonthTransitionInProgress=!1}))}},e.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=88*t}return this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var n=this,a=n.calendarCtrl,o=a.displayDate;if("select"===t)n.changeDate(o).then((function(){n.onTimestampSelected(o)}));else{var r=null,i=n.dateUtil;switch(t){case"move-right":r=i.incrementMonths(o,1);break;case"move-left":r=i.incrementMonths(o,-1);break;case"move-row-down":r=i.incrementMonths(o,6);break;case"move-row-up":r=i.incrementMonths(o,-6)}if(r){var s=a.minDate?i.getFirstDateOfMonth(a.minDate):null,l=a.maxDate?i.getFirstDateOfMonth(a.maxDate):null;r=i.getFirstDateOfMonth(n.dateUtil.clampDate(r,s,l)),n.changeDate(r).then((function(){a.focusDate(r)}))}}},e.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",(function(t,n){e.calendarCtrl.changeSelectedDate(n?e.dateUtil.getFirstDateOfMonth(n):n),e.changeDate(n)})),e.$scope.$on("md-calendar-parent-action",t.bind(e,e.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick((function(){t.setNgModelValue(new Date(e))})):t.setCurrentView("month",e)}}(),function(){function e(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarYearBody",(function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:e,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,n,a,o){var r=o[0],i=o[1],s=o[2];s.calendarCtrl=r,s.yearCtrl=i,e.$watch((function(){return s.offset}),(function(e){t.isNumber(e)&&s.generateContent()}))}}})),e.prototype.generateContent=function(){var e=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend=null)},e.prototype.buildMonthCell=function(e,n){var a=this.calendarCtrl,o=this.yearCtrl,r=this.buildBlankCell(),i=new Date(e,n,1);r.setAttribute("aria-label",this.dateLocale.monthFormatter(i)),r.id=a.getDateId(i,"year"),r.setAttribute("data-timestamp",String(i.getTime())),this.dateUtil.isSameMonthAndYear(i,a.today)&&r.classList.add(a.TODAY_CLASS),this.dateUtil.isValidDate(a.selectedDate)&&this.dateUtil.isSameMonthAndYear(i,a.selectedDate)&&(r.classList.add(a.SELECTED_DATE_CLASS),r.setAttribute("aria-selected","true"));var s=this.dateLocale.shortMonths[n];if(!this.dateUtil.isMonthWithinRange(i,a.minDate,a.maxDate)||t.isFunction(a.monthFilter)&&!a.monthFilter(i))r.classList.add("md-calendar-date-disabled"),r.textContent=s;else{var l=document.createElement("span");l.classList.add("md-calendar-date-selection-indicator"),l.textContent=s,r.appendChild(l),r.addEventListener("click",o.cellClickHandler),a.displayDate&&this.dateUtil.isSameMonthAndYear(i,a.displayDate)&&(this.focusAfterAppend=r)}return r},e.prototype.buildBlankCell=function(){var e=document.createElement("td");return e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell"),e.setAttribute("tabindex","-1"),e},e.prototype.buildCalendarForYear=function(e){var t,n=e.getFullYear(),a=document.createDocumentFragment(),o=document.createElement("tr"),r=document.createElement("td");for(r.className="md-calendar-month-label",r.textContent=String(n),o.appendChild(r),t=0;t<6;t++)o.appendChild(this.buildMonthCell(n,t));a.appendChild(o);var i=document.createElement("tr");for(i.appendChild(this.buildBlankCell()),t=6;t<12;t++)i.appendChild(this.buildMonthCell(n,t));return a.appendChild(i),a}}(),t.module("material.components.datepicker").config(["$provide",function(e){function t(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.isDateComplete=null,this.msgCalendar="",this.msgOpenCalendar=""}t.prototype.$get=function(e,t){for(var n=e.DATETIME_FORMATS.SHORTDAY.map((function(e){return e.substring(0,1)})),a=Array(32),o=1;o<=31;o++)a[o]=o;var r=new Date(1880,0,1),i=new Date(r.getFullYear()+250,0,1),s={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||n,dates:this.dates||a,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(e,n){if(!e)return"";var a=e.toLocaleTimeString(),o=e;return 0!==e.getHours()||-1===a.indexOf("11:")&&-1===a.indexOf("23:")||(o=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),t("date")(o,"M/d/yyyy",n)},parseDate:this.parseDate||function(e){return new Date(e)},isDateComplete:this.isDateComplete||function(e){return e=e.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ .,]+|[/-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(e)},monthHeaderFormatter:this.monthHeaderFormatter||function(e){return s.shortMonths[e.getMonth()]+" "+e.getFullYear()},monthFormatter:this.monthFormatter||function(e){return s.months[e.getMonth()]+" "+e.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(e){return"Week "+e},longDateFormatter:this.longDateFormatter||function(e){return[s.days[e.getDay()],s.months[e.getMonth()],s.dates[e.getDate()],e.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||r,lastRenderableDate:this.lastRenderableDate||i};return s},t.prototype.$get.$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}]),t.module("material.components.datepicker").factory("$$mdDateUtil",["$mdDateLocale",function(e){return{getFirstDateOfMonth:n,getNumberOfDaysInMonth:a,getDateInNextMonth:o,getDateInPreviousMonth:r,isInNextMonth:function(e,t){return i(o(e),t)},isInPreviousMonth:function(e,t){var n=r(e);return i(t,n)},getDateMidpoint:function(e,t){return u((e.getTime()+t.getTime())/2)},isSameMonthAndYear:i,getWeekOfMonth:function(e){var t=n(e);return Math.floor((t.getDay()+e.getDate()-1)/7)},incrementDays:function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},incrementMonths:s,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),a(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&i(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:l,setDateTimeToMidnight:c,createDateAtMidnight:u,isDateWithinRange:function(e,t,n){var a=u(e),o=l(t)?u(t):null,r=l(n)?u(n):null;return(!o||o<=a)&&(!r||r>=a)},incrementYears:function(e,t){return s(e,12*t)},getYearDistance:function(e,t){return t.getFullYear()-e.getFullYear()},clampDate:function(e,t,n){var a=e;return t&&e<t&&(a=new Date(t.getTime())),n&&e>n&&(a=new Date(n.getTime())),a},getTimestampFromNode:function(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))},isMonthWithinRange:function(e,t,n){var a=e.getMonth(),o=e.getFullYear();return(!t||t.getFullYear()<o||t.getMonth()<=a)&&(!n||n.getFullYear()>o||n.getMonth()>=a)},removeLocalTzAndReparseDate:function(t){var n,a;return n=new Date(t.getTime()+6e4*t.getTimezoneOffset()),a=e.formatDate(n),e.parseDate(a)}};function n(e){return new Date(e.getFullYear(),e.getMonth(),1)}function a(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function o(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function r(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function i(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function s(e,t){var n=new Date(e.getFullYear(),e.getMonth()+t,1),o=a(n);return o<e.getDate()?n.setDate(o):n.setDate(e.getDate()),n}function l(e){return e&&e.getTime&&!isNaN(e.getTime())}function c(e){l(e)&&e.setHours(0,0,0,0)}function u(e){var n;return c(n=t.isDate(e)?e:t.isNumber(e)?new Date(e):new Date),n}}]),function(){function a(e,n,a,o){return{template:function(t,n){var a=n.mdHideIcons,o=n.ariaLabel||n.mdPlaceholder,r=n.ngModelOptions,i="all"===a||"calendar"===a?"":'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+e.mdCalendar+'"></md-icon></md-button>',s="";return"all"!==a&&"triangle"!==a&&(s='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',t.addClass(l)),i+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(o?'aria-label="'+o+'" ':"")+'class="md-datepicker-input" aria-haspopup="dialog" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+s+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}" md-mode="{{::ctrl.mode}}" md-min-date="ctrl.minDate" md-max-date="ctrl.maxDate" md-date-filter="ctrl.dateFilter" md-month-filter="ctrl.monthFilter" '+(r?'ng-model-options="'+r+'" ':"")+'ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:["ngModel","mdDatepicker","?^mdInputContainer","?^form"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",currentView:"@mdCurrentView",mode:"@mdMode",dateFilter:"=mdDateFilter",monthFilter:"=mdMonthFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:d,controllerAs:"ctrl",bindToController:!0,link:function(e,r,l,c){var u=c[0],d=c[1],f=c[2],m=c[3],p=n.parseAttributeBoolean(l.mdNoAsterisk);if(d.configureNgModel(u,f,o),f){var g=r[0].querySelector(".md-errors-spacer");g&&r.after(t.element("<div>").append(g)),f.setHasPlaceholder(l.mdPlaceholder),f.input=r,f.element.addClass(i).toggleClass(s,"calendar"!==l.mdHideIcons&&"all"!==l.mdHideIcons),f.label?p||l.$observe("required",(function(e){f.label.toggleClass("md-required",!!e)})):a.expect(r,"aria-label",l.mdPlaceholder),e.$watch(f.isErrorGetter||function(){return u.$invalid&&(u.$touched||m&&m.$submitted)},f.setInvalid)}else if(m)var h=e.$watch((function(){return m.$submitted}),(function(e){e&&(d.updateErrorState(),h())}))}}}d.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter","$timeout"],a.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],t.module("material.components.datepicker").directive("mdDatepicker",a);var o="md-datepicker-invalid",r="md-datepicker-open",i="_md-datepicker-floating-label",s="_md-datepicker-has-calendar-icon",l="_md-datepicker-has-triangle-icon",c=360,u=/ipad|iphone|ipod|android/i;function d(a,o,r,i,s,l,c,d,f,m,p,g){this.$window=i,this.dateUtil=f,this.$mdConstant=s,this.$mdUtil=c,this.$$rAF=m,this.$mdDateLocale=d,this.$timeout=g,this.documentElement=t.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=o[0].querySelector("input"),this.ngInputElement=t.element(this.inputElement),this.inputContainer=o[0].querySelector(".md-datepicker-input-container"),this.calendarPane=o[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=o[0].querySelector(".md-datepicker-button"),this.inputMask=t.element(o[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=o,this.$attrs=r,this.$scope=a,this.date=null,this.isFocused=!1,this.isDisabled=n,this.setDisabled(o[0].disabled||t.isString(r.disabled)),this.isCalendarOpen=!1,this.openOnFocus=r.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+c.nextUid(),this.bodyClickHandler=t.bind(this,this.handleBodyClick),this.windowEventName=u.test(navigator.userAgent||navigator.vendor||e.opera)?"orientationchange":"resize",this.windowEventHandler=c.debounce(t.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=t.bind(this,this.handleWindowBlur),this.ngDateFilter=p("date"),this.leftMargin=20,this.topMargin=null,r.tabindex?(this.ngInputElement.attr("tabindex",r.tabindex),r.$set("tabindex",null)):r.$set("tabindex","-1"),r.$set("aria-owns",this.calendarPaneId),l(o),l(t.element(this.calendarPane));var h=this;a.$on("$destroy",(function(){h.detachCalendarPane()})),r.mdIsOpen&&a.$watch("ctrl.isOpen",(function(e){e?h.openCalendarPane({target:h.inputElement}):h.closeCalendarPane()})),1===t.version.major&&t.version.minor<=4&&this.$onInit()}d.prototype.$onInit=function(){this.locale=this.dateLocale?t.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},d.prototype.configureNgModel=function(e,n,a){this.ngModelCtrl=e,this.mdInputContainer=n,this.$attrs.$set("type","date"),a[0].link.pre(this.$scope,{on:t.noop,val:t.noop,0:{}},this.$attrs,[e]);var o=this;o.ngModelCtrl.$formatters.push((function(e){var n=t.isDefined(e)?e:null;if(!(e instanceof Date)&&(n=Date.parse(e),!isNaN(n)&&t.isNumber(n)&&(e=new Date(n)),e&&!(e instanceof Date)))throw Error("The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: "+typeof e);return o.onExternalChange(e),e})),e.$viewChangeListeners.unshift(t.bind(this,this.updateErrorState));var r=o.$mdUtil.getModelOption(e,"updateOn");r&&this.ngInputElement.on(r,t.bind(this.$element,this.$element.triggerHandler,r))},d.prototype.attachChangeListeners=function(){var e=this;e.$scope.$on("md-calendar-change",(function(t,n){e.setModelValue(n),e.onExternalChange(n),e.closeCalendarPane()})),e.ngInputElement.on("input",t.bind(e,e.resizeInputElement));var n=t.isDefined(this.debounceInterval)?this.debounceInterval:500;e.ngInputElement.on("input",e.$mdUtil.debounce(e.handleInputEvent,n,e))},d.prototype.attachInteractionListeners=function(){var e=this,n=this.$scope,a=this.$mdConstant.KEY_CODE;e.ngInputElement.on("keydown",(function(t){t.altKey&&t.keyCode===a.DOWN_ARROW&&(e.openCalendarPane(t),n.$digest())})),e.openOnFocus&&(e.ngInputElement.on("focus",t.bind(e,e.openCalendarPane)),e.ngInputElement.on("click",(function(e){e.stopPropagation()})),e.ngInputElement.on("pointerdown",(function(e){e.target&&e.target.setPointerCapture&&e.target.setPointerCapture(e.pointerId)})),t.element(e.$window).on("blur",e.windowBlurHandler),n.$on("$destroy",(function(){t.element(e.$window).off("blur",e.windowBlurHandler)}))),n.$on("md-calendar-close",(function(){e.closeCalendarPane()}))},d.prototype.installPropertyInterceptors=function(){var e=this;if(this.$attrs.ngDisabled){var t=this.$scope.$parent;t&&t.$watch(this.$attrs.ngDisabled,(function(t){e.setDisabled(t)}))}Object.defineProperty(this,"placeholder",{get:function(){return e.inputElement.placeholder},set:function(t){e.inputElement.placeholder=t||""}})},d.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton&&(this.calendarButton.disabled=e)},d.prototype.updateErrorState=function(e){var n=e||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(n)){if(n=this.dateUtil.createDateAtMidnight(n),this.dateUtil.isValidDate(this.minDate)){var a=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n>=a)}if(this.dateUtil.isValidDate(this.maxDate)){var r=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",n<=r)}t.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(n)),t.isFunction(this.monthFilter)&&this.ngModelCtrl.$setValidity("filtered",this.monthFilter(n))}else this.ngModelCtrl.$setValidity("valid",null==n);var i=this.inputElement.value,s=this.locale.parseDate(i);!this.isInputValid(i,s)&&this.ngModelCtrl.$valid&&this.ngModelCtrl.$setValidity("valid",null==n),t.element(this.inputContainer).toggleClass(o,this.ngModelCtrl.$invalid&&(this.ngModelCtrl.$touched||this.ngModelCtrl.$submitted))},d.prototype.isInputValid=function(e,t){return""===e||this.dateUtil.isValidDate(t)&&this.locale.isDateComplete(e)&&this.isDateEnabled(t)},d.prototype.clearErrorState=function(){this.inputContainer.classList.remove(o),["mindate","maxdate","filtered","valid"].forEach((function(e){this.ngModelCtrl.$setValidity(e,!0)}),this)},d.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},d.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.locale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t),this.isInputValid(e,t)&&(this.setModelValue(t),this.date=t),this.updateErrorState(t)},d.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&&(!t.isFunction(this.dateFilter)||this.dateFilter(e))&&(!t.isFunction(this.monthFilter)||this.monthFilter(e))},d.prototype.attachCalendarPane=function(){var e=this.calendarPane,n=document.body;e.style.transform="",this.$element.addClass(r),this.mdInputContainer&&this.mdInputContainer.element.addClass(r),t.element(n).addClass("md-datepicker-is-showing");var a=this.inputContainer.getBoundingClientRect(),o=n.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var i=a.top-o.top-this.topMargin,s=a.left-o.left-this.leftMargin,l=o.top<0&&0===document.body.scrollTop?-o.top:document.body.scrollTop,u=o.left<0&&0===document.body.scrollLeft?-o.left:document.body.scrollLeft,d=l+this.$window.innerHeight,f=u+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:a.width-1+"px",height:a.height-2+"px"}),s+c>f){if(f-c>0)s=f-c;else{s=u;var m=this.$window.innerWidth/c;e.style.transform="scale("+m+")"}e.classList.add("md-datepicker-pos-adjusted")}i+368>d&&d-368>l&&(i=d-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=s+"px",e.style.top=i+"px",document.body.appendChild(e),this.$$rAF((function(){e.classList.add("md-pane-open")}))},d.prototype.detachCalendarPane=function(){this.$element.removeClass(r),this.mdInputContainer&&this.mdInputContainer.element.removeClass(r),t.element(document.body).removeClass("md-datepicker-is-showing"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},d.prototype.openCalendarPane=function(t){if(this.isCalendarOpen||this.isDisabled||this.inputFocusedOnWindowBlur)this.inputFocusedOnWindowBlur&&this.resetInputFocused();else{this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=t.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus");var n=this;this.$mdUtil.nextTick((function(){n.documentElement.on("click touchstart",n.bodyClickHandler)}),!1),e.addEventListener(this.windowEventName,this.windowEventHandler)}},d.prototype.closeCalendarPane=function(){if(this.isCalendarOpen){var t=this;t.detachCalendarPane(),t.ngModelCtrl.$setTouched(),t.evalAttr("ngBlur"),t.documentElement.off("click touchstart",t.bodyClickHandler),e.removeEventListener(t.windowEventName,t.windowEventHandler),t.calendarPaneOpenedFrom.focus(),t.calendarPaneOpenedFrom=null,t.openOnFocus?t.$timeout(n):n()}function n(){t.isCalendarOpen=t.isOpen=!1}},d.prototype.getCalendarCtrl=function(){return t.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},d.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick((function(){e.getCalendarCtrl().focusDate()}),!1)},d.prototype.setFocused=function(e){e||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(e?"ngFocus":"ngBlur"),this.isFocused=e},d.prototype.handleBodyClick=function(e){this.isCalendarOpen&&(this.$mdUtil.getClosest(e.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest())},d.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},d.prototype.resetInputFocused=function(){this.inputFocusedOnWindowBlur=!1},d.prototype.evalAttr=function(e){this.$attrs[e]&&this.$scope.$parent.$eval(this.$attrs[e])},d.prototype.setModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");null==t||e.getTimezoneOffset()<0?this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd"),"default"):this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t),"default")},d.prototype.onExternalChange=function(e){var t=this,n=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.dateUtil.isValidDate(e)&&null!=n&&e.getTimezoneOffset()>=0?this.date=this.dateUtil.removeLocalTzAndReparseDate(e):this.date=e,null==n||e.getTimezoneOffset()<0?this.inputElement.value=this.locale.formatDate(e):this.inputElement.value=this.locale.formatDate(e,n),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.$mdUtil.nextTick((function(){t.updateErrorState()}),!1,t.$scope)}}(),function(){function e(e,n,a){return{restrict:"E",link:function(o,r){r.addClass("_md"),n(r),e((function(){var e,n=r[0].querySelector("md-dialog-content");function i(){r.toggleClass("md-content-overflow",n.scrollHeight>n.clientHeight)}n&&(e=n.getElementsByTagName("img"),i(),t.element(e).on("load",i)),o.$on("$destroy",(function(){a.destroy(r)}))}))}}}function a(e){var a,o;return i.$inject=["$mdDialog","$mdConstant"],s.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:s}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:r}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:r}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:r});function r(){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">','  <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">','    <h2 class="md-title">{{ dialog.title }}</h2>','    <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ','        ng-bind-html="::dialog.mdHtmlContent"></div>','    <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">',"      <p>{{::dialog.mdTextContent}}</p>","    </div>",'    <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">','      <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result"              placeholder="{{::dialog.placeholder}}" ng-required="dialog.required">',"    </md-input-container>","  </md-dialog-content>","  <md-dialog-actions>",'    <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'"               ng-click="dialog.abort()" class="md-primary md-cancel-button">',"      {{ dialog.cancel }}","    </md-button>",'    <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'"               ng-disabled="dialog.required && !dialog.result">',"      {{ dialog.ok }}","    </md-button>","  </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:i,controllerAs:"dialog",bindToController:!0}}function i(e,n){this.$onInit=function(){var a="prompt"==this.$type;a&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){e.hide(!a||this.result)},this.abort=function(){e.cancel()},this.keypress=function(o){var r=a&&this.required&&!t.isDefined(this.result);o.keyCode!==n.KEY_CODE.ENTER||r||e.hide(this.result)}}}function s(e,r,i,s,l,c,u,d,f,m,p,g,h){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=p.defaultTheme(),function(e){var n;e.targetEvent&&e.targetEvent.target&&(n=t.element(e.targetEvent.target));var a=n&&n.controller("mdTheme");if(e.hasTheme=!!a,!e.hasTheme)return;e.themeWatch=a.$shouldWatch;var o=e.theme||a.$mdTheme;o&&(e.scope.theme=o);var r=a.registerChanges((function(t){e.scope.theme=t,e.themeWatch||r()}))}(e)},onShow:function(e,n,a,o){t.element(c[0].body).addClass("md-dialog-is-showing");var r=n.find("md-dialog");if(r.hasClass("ng-cloak")){f.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",n[0])}return _(a),v(r,a),y(e,n,a),b(n,a),S(n,a).then((function(){!function(e,t){var n=!0;function a(e){for(var t=[];e.parentNode;){if(e===document.body)return t;for(var n=e.parentNode.children,a=0;a<n.length;a++)e===n[a]||w(n[a],["SCRIPT","STYLE"])||n[a].hasAttribute("aria-live")||t.push(n[a]);e=e.parentNode}return t}function o(e){for(var t=a(e),o=0;o<t.length;o++)t[o].setAttribute("aria-hidden",n)}o(e[0]),t.unlockScreenReader=function(){n=!1,o(e[0]),t.unlockScreenReader=null}}(n,a),n[0].querySelector(".md-actions")&&f.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>."),function(){if(a.focusOnOpen){(i.findFocusTarget(n)||e()||r).focus()}function e(){return n[0].querySelector(".dialog-close, md-dialog-actions button:last-child")}}()}))},onShowing:function(e,t,n,a){if(a){var o=a.htmlContent||n.htmlContent||"",r=a.textContent||n.textContent||a.content||n.content||"";if(o&&!m.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(o&&r)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");a.mdHtmlContent=o,a.mdTextContent=r}},onRemove:function(e,n,r){r.deactivateListeners(),r.unlockScreenReader(),r.hideBackdrop(r.$destroy),a&&a.parentNode&&a.parentNode.removeChild(a);o&&o.parentNode&&o.parentNode.removeChild(o);return r.$destroy?i():function(e,t){return t.reverseAnimate().then((function(){t.contentElement&&t.clearAnimate()}))}(0,r).then(i);function i(){t.element(c[0].body).removeClass("md-dialog-is-showing"),r.contentElement&&r.reverseContainerStretch(),r.cleanupElement(),r.$destroy||"keyboard"!==r.originInteraction||r.origin.focus()}},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n=g.startSymbol(),a=g.endSymbol(),o=n+(t.themeWatch?"":"::")+"theme"+a;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+o+'"':"")+">"+function(e){return t.autoWrap&&!/<\/md-dialog>/g.test(e)?"<md-dialog>"+(e||"")+"</md-dialog>":e||""}(e)+"</div>"}};function _(e){function a(e,a){var o=t.element(e||{});if(o&&o.length){var r=t.isFunction(o[0].getBoundingClientRect);return t.extend(a||{},{element:r?o:n,bounds:r?o[0].getBoundingClientRect():t.extend({},{top:0,left:0,height:0,width:0},o[0]),focus:t.bind(o,o.focus)})}}function o(e,n){return t.isString(e)&&(e=c[0].querySelector(e)),t.element(e||n)}e.origin=t.extend({element:null,bounds:null,focus:t.noop},e.origin||{}),e.parent=o(e.parent,d),e.closeTo=a(o(e.closeTo)),e.openFrom=a(o(e.openFrom)),e.targetEvent&&(e.origin=a(e.targetEvent.target,e.origin),e.originInteraction=h.getLastInteractionType())}function b(n,a){var o=t.element(u),r=i.debounce((function(){A(n,a)}),60),l=[],c=function(){var t="alert"==a.$type?e.hide:e.cancel;i.nextTick(t,!0)};if(a.escapeToClose){var d=a.parent,f=function(e){e.keyCode===s.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),c())};n.on("keydown",f),d.on("keydown",f),l.push((function(){n.off("keydown",f),d.off("keydown",f)}))}if(o.on("resize",r),l.push((function(){o.off("resize",r)})),a.clickOutsideToClose){var m,p=n,g=function(e){m=e.target},h=function(e){m===p[0]&&e.target===p[0]&&(e.stopPropagation(),e.preventDefault(),c())};p.on("mousedown",g),p.on("mouseup",h),l.push((function(){p.off("mousedown",g),p.off("mouseup",h)}))}a.deactivateListeners=function(){l.forEach((function(e){e()})),a.deactivateListeners=null}}function y(e,t,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(t,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(e,"md-dialog-backdrop md-opaque"),l.enter(n.backdrop,n.parent)),n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():l.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function v(e,t){var n="alert"===t.$type?"alertdialog":"dialog",s=e.find("md-dialog-content"),l=e.attr("id"),c="dialogContent_"+(l||i.nextUid());e.attr({role:n,tabIndex:"-1"}),0===s.length&&(s=e,l&&(c=l)),s.attr("id",c),e.attr("aria-describedby",c),t.ariaLabel?r.expect(e,"aria-label",t.ariaLabel):r.expectAsync(e,"aria-label",(function(){if(t.title)return t.title;var e=s.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")})),(a=document.createElement("div")).classList.add("md-dialog-focus-trap"),a.tabIndex=0,o=a.cloneNode(!1);var u=function(){e.focus()};a.addEventListener("focus",u),o.addEventListener("focus",u),e[0].parentNode.insertBefore(a,e[0]),e.after(o)}function A(e,t){var n="fixed"==u.getComputedStyle(c[0].body).position,a=t.backdrop?u.getComputedStyle(t.backdrop[0]):null,o=a?Math.min(c[0].body.clientHeight,Math.ceil(Math.abs(parseInt(a.height,10)))):0,r={top:e.css("top"),height:e.css("height")},i=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?i:0)+"px",height:o?o+"px":"100%"}),function(){e.css(r)}}function S(e,t){t.parent.append(e),t.reverseContainerStretch=A(e,t);var n=e.find("md-dialog"),a=i.dom.animator,o=a.calculateZoomToOrigin,r={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},s=a.toTransformCss(o(n,t.openFrom||t.origin)),l=a.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),a.translate3d(n,s,l,r).then((function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(r={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},s=l,l=a.toTransformCss(o(n,t.closeTo)),a.translate3d(n,s,l,r)):e(l=a.toTransformCss(o(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([r.transitionOutClass,r.transitionInClass].join(" ")),a.translate3d(n,l,a.toTransformCss(""),{})},!0}))}function w(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}e.$inject=["$$rAF","$mdTheming","$mdDialog"],a.$inject=["$$interimElementProvider"],t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",a)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],t.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){function e(e){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(t,n){var a=t.children();e.prefixer().hasAttribute(a,"ng-repeat")?a.addClass("md-fab-action-item"):a.wrap('<div class="md-fab-action-item">')}}}e.$inject=["$mdUtil"],t.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}(),function(){function e(e,n,a,o,r,i){var s,l=this,c=0;function u(e){"click"==e.type&&function(e){var t;t=e.target,o.getClosest(t,"md-fab-trigger")&&l.toggle(),function(e){return o.getClosest(e,"md-fab-actions")}(e.target)&&l.close()}(e),"focusout"!=e.type||s||(s=i((function(){l.close()}),100,!1)),"focusin"==e.type&&s&&(i.cancel(s),s=null)}function d(){l.currentActionIndex=-1}function f(){n[0].scrollHeight>0?a.addClass(n,"_md-animations-ready").then((function(){n.removeClass("md-animations-waiting")})):c<10&&(i(f,100),c+=1)}function m(){n.off("keydown",g),t.element(document).off("click touchend",p)}function p(e){if(e.target){var t=o.getClosest(e.target,"md-fab-trigger"),n=o.getClosest(e.target,"md-fab-actions");t||n||l.close()}}function g(e){switch(e.which){case r.KEY_CODE.ESCAPE:return l.close(),e.preventDefault(),!1;case r.KEY_CODE.LEFT_ARROW:return function(e){"left"===l.direction?_(e):h(e)}(e),!1;case r.KEY_CODE.UP_ARROW:return function(e){"down"===l.direction?h(e):_(e)}(e),!1;case r.KEY_CODE.RIGHT_ARROW:return function(e){"left"===l.direction?h(e):_(e)}(e),!1;case r.KEY_CODE.DOWN_ARROW:return function(e){"up"===l.direction?h(e):_(e)}(e),!1}}function h(e){b(e,-1)}function _(e){b(e,1)}function b(e,n){var a=function(){var e=y()[0].querySelectorAll(".md-fab-action-item");return t.forEach(e,(function(e){t.element(t.element(e).children()[0]).attr("tabindex",-1)})),e}();l.currentActionIndex=l.currentActionIndex+n,l.currentActionIndex=Math.min(a.length-1,l.currentActionIndex),l.currentActionIndex=Math.max(0,l.currentActionIndex);var o=t.element(a[l.currentActionIndex]).children()[0];t.element(o).attr("tabindex",0),o.focus(),e.preventDefault(),e.stopImmediatePropagation()}function y(){return n.find("md-fab-actions")}l.open=function(){e.$evalAsync("vm.isOpen = true")},l.close=function(){e.$evalAsync("vm.isOpen = false"),n.find("md-fab-trigger")[0].focus()},l.toggle=function(){e.$evalAsync("vm.isOpen = !vm.isOpen")},l.$onInit=function(){var r,i,s;l.direction=l.direction||"down",l.isOpen=l.isOpen||!1,d(),n.addClass("md-animations-waiting"),r=["click","focusin","focusout"],t.forEach(r,(function(e){n.on(e,u)})),e.$on("$destroy",(function(){t.forEach(r,(function(e){n.off(e,u)})),m()})),e.$watch("vm.direction",(function(e,t){a.removeClass(n,"md-"+t),a.addClass(n,"md-"+e),d()})),e.$watch("vm.isOpen",(function(e){d(),i&&s||(i=n.find("md-fab-trigger"),s=y()),e?(n.on("keydown",g),o.nextTick((function(){t.element(document).on("click touchend",p)}))):m();var r=e?"md-is-open":"",l=e?"":"md-is-open";i.attr("aria-haspopup",!0),i.attr("aria-expanded",e),s.attr("aria-hidden",!e),a.setClass(n,r,l)})),f()},1===t.version.major&&t.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],t.module("material.components.fabShared",["material.core"]).controller("MdFabController",e)}(),function(){function n(n){function a(e){n(e,300,!1)}function o(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var a=n[0],o=n.controller("mdFabSpeedDial"),r=a.querySelectorAll(".md-fab-action-item"),i=a.querySelector("md-fab-trigger"),s=a.querySelector("._md-css-variables"),l=parseInt(e.getComputedStyle(s).zIndex);t.forEach(r,(function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=r.length-t+l})),i.style.zIndex=l+r.length+1,o.isOpen||t.forEach(r,(function(e,t){var n,a,r=e.style,s=(i.clientHeight-e.clientHeight)/2,l=(i.clientWidth-e.clientWidth)/2;switch(o.direction){case"up":n=e.scrollHeight*(t+1)+s,a="Y";break;case"down":n=-(e.scrollHeight*(t+1)+s),a="Y";break;case"left":n=e.scrollWidth*(t+1)+l,a="X";break;case"right":n=-(e.scrollWidth*(t+1)+l),a="X"}var c="translate"+a+"("+n+"px)";r.transform=r.webkitTransform=c}))}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(o(e),a(n)):n()},removeClass:function(e,t,n){o(e),a(n)}}}function a(n){function a(e){n(e,300,!1)}function o(n){var a=n[0],o=n.controller("mdFabSpeedDial"),r=a.querySelectorAll(".md-fab-action-item"),i=a.querySelector("._md-css-variables"),s=parseInt(e.getComputedStyle(i).zIndex);t.forEach(r,(function(e,t){var n=e.style,a=65*t;n.opacity=o.isOpen?1:0,n.transform=n.webkitTransform=o.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(o.isOpen?a:r.length-a)+"ms",n.zIndex=r.length-t+s}))}return{addClass:function(e,t,n){o(e),a(n)},removeClass:function(e,t,n){o(e),a(n)}}}n.$inject=["$timeout"],a.$inject=["$timeout"],t.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",(function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t){t.prepend('<div class="_md-css-variables"></div>')}}})).animation(".md-fling",n).animation(".md-scale",a).service("mdFabSpeedDialFlingAnimation",n).service("mdFabSpeedDialScaleAnimation",a)}(),function(){function n(){function n(n,a,o){if(a){var r=n[0],i=n.controller("mdFabToolbar"),s=r.querySelector(".md-fab-toolbar-background"),l=r.querySelector("md-fab-trigger button"),c=r.querySelector("md-toolbar"),u=r.querySelector("md-fab-trigger button md-icon"),d=n.find("md-fab-actions").children();if(l&&s){var f=e.getComputedStyle(l).getPropertyValue("background-color"),m=r.offsetWidth,p=(r.offsetHeight,m/l.offsetWidth*2);s.style.backgroundColor=f,s.style.borderRadius=m+"px",i.isOpen?(c.style.pointerEvents="inherit",s.style.width=l.offsetWidth+"px",s.style.height=l.offsetHeight+"px",s.style.transform="scale("+p+")",s.style.transitionDelay="0ms",u&&(u.style.transitionDelay=".3s"),t.forEach(d,(function(e,t){e.style.transitionDelay=25*(d.length-t)+"ms"}))):(c.style.pointerEvents="none",s.style.transform="scale(1)",s.style.top="0",n.hasClass("md-right")&&(s.style.left="0",s.style.right=null),n.hasClass("md-left")&&(s.style.right="0",s.style.left=null),s.style.transitionDelay="200ms",u&&(u.style.transitionDelay="0ms"),t.forEach(d,(function(e,t){e.style.transitionDelay=200+25*t+"ms"})))}}}return{addClass:function(e,t,a){n(e,t),a()},removeClass:function(e,t,a){n(e,t),a()}}}t.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",(function(){return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper">  <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}})).animation(".md-fab-toolbar",n).service("mdFabToolbarAnimation",n)}(),function(){function e(e,a,o,r,i){return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:function(n,s,l,c){s.addClass("_md"),s.attr("role","list"),c.layoutDelegate=function(e){var a=[].filter.call(s.children(),(function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed})),r={tileSpans:S(a),colCount:w(),rowMode:T(),rowHeight:C(),gutter:E()};if(!e&&t.equals(r,u))return;var i=o(r.colCount,r.tileSpans,a).map((function(e,n){return{grid:{element:s,style:A(r.colCount,n,r.gutter,r.rowMode,r.rowHeight)},tiles:e.map((function(e,o){return{element:t.element(a[o]),style:v(e.position,e.spans,r.colCount,n,r.gutter,r.rowMode,r.rowHeight)}}))}})).reflow().performance();n.mdOnLayout({$event:{performance:i}}),u=r};var u,d=t.bind(c,c.invalidateLayout),f=function(){for(var e in a.MEDIA)r(e),r.getQuery(a.MEDIA[e]).addListener(d);return r.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],l,m)}();function m(e){(null==e||r(e))&&c.invalidateLayout()}n.$on("$destroy",(function(){for(var e in c.layoutDelegate=t.noop,f(),a.MEDIA)r.getQuery(a.MEDIA[e]).removeListener(d)}));var p=e.startSymbol(),g=e.endSymbol();function h(e){return p+e+g}var _=e(h("share")+"% - ("+h("gutter")+" * "+h("gutterShare")+")"),b=e("calc(("+h("unit")+" + "+h("gutter")+") * "+h("offset")+")"),y=e("calc(("+h("unit")+") * "+h("span")+" + ("+h("span")+" - 1) * "+h("gutter")+")");function v(e,t,n,a,o,r,s){var c=1/n*100,u=(n-1)/n,d=_({share:c,gutterShare:u,gutter:o}),f=i.isRtl(l)?{right:b({unit:d,offset:e.col,gutter:o}),width:y({unit:d,span:t.col,gutter:o}),paddingTop:"",marginTop:"",top:"",height:""}:{left:b({unit:d,offset:e.col,gutter:o}),width:y({unit:d,span:t.col,gutter:o}),paddingTop:"",marginTop:"",top:"",height:""};switch(r){case"fixed":f.top=b({unit:s,offset:e.row,gutter:o}),f.height=y({unit:s,span:t.row,gutter:o});break;case"ratio":var m=c/s,p=_({share:m,gutterShare:u,gutter:o});f.paddingTop=y({unit:p,span:t.row,gutter:o}),f.marginTop=b({unit:p,offset:e.row,gutter:o});break;case"fit":p=_({share:m=1/a*100,gutterShare:(a-1)/a,gutter:o}),f.top=b({unit:p,offset:e.row,gutter:o}),f.height=y({unit:p,span:t.row,gutter:o})}return f}function A(e,t,n,a,o){var r={};switch(a){case"fixed":r.height=y({unit:o,span:t,gutter:n}),r.paddingBottom="";break;case"ratio":var i=_({share:1/e*100*(1/o),gutterShare:1===e?0:(e-1)/e,gutter:n});r.height="",r.paddingBottom=y({unit:i,span:t,gutter:n})}return r}function S(e){return[].map.call(e,(function(e){var n=t.element(e).controller("mdGridTile");return{row:parseInt(r.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(r.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}}))}function w(){var e=parseInt(r.getResponsiveAttribute(l,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}function E(){return I(r.getResponsiveAttribute(l,"md-gutter")||1)}function C(){var e=r.getResponsiveAttribute(l,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(T()){case"fixed":return I(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}function T(){var e=r.getResponsiveAttribute(l,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function I(e){return/\D$/.test(e)?e:e+"px"}}}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function a(e){var n=o;return a.animateWith=function(e){n=t.isFunction(e)?e:o},a;function a(t,a){var o,r,i,s,l,c;return s=e.time((function(){r=function(e,t){var n=0,a=0,o=c();return{positioning:t.map((function(e,t){return{spans:e,position:r(e,t)}})),rowCount:a+Math.max.apply(Math,o)};function r(t,r){if(t.col>e)throw"md-grid-list: Tile at position "+r+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var c=0,u=0;u-c<t.col;)n>=e?i():-1!==(c=o.indexOf(0,n))&&-1!==(u=l(c+1))?n=u+1:(c=u=0,i());return s(c,t.col,t.row),n=c+t.col,{col:c,row:a}}function i(){n=0,a++,s(0,e,-1)}function s(e,t,n){for(var a=e;a<e+t;a++)o[a]=Math.max(o[a]+n,0)}function l(e){var t;for(t=e;t<o.length;t++)if(0!==o[t])return t;if(t===o.length)return t}function c(){for(var t=[],n=0;n<e;n++)t.push(0);return t}}(t,a)})),o={layoutInfo:function(){return r},map:function(t){return l=e.time((function(){var e=o.layoutInfo();i=t(e.positioning,e.rowCount)})),o},reflow:function(t){return c=e.time((function(){(t||n)(i.grid,i.tiles)})),o},performance:function(){return{tileCount:a.length,layoutTime:s,mapTime:l,reflowTime:c,totalTime:s+l+c}}}}function o(e,t){e.element.css(e.style),t.forEach((function(e){e.element.css(e.style)}))}}function o(e){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:function(n,a,o,r){a.attr("role","listitem");var i=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],o,t.bind(r,r.invalidateLayout));r.invalidateTiles(),n.$on("$destroy",(function(){a[0].$$mdDestroyed=!0,i(),r.invalidateLayout()})),t.isDefined(n.$parent.$index)&&n.$watch((function(){return n.$parent.$index}),(function(e,t){e!==t&&r.invalidateTiles()}))}}}function r(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}n.$inject=["$mdUtil"],a.$inject=["$mdUtil"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia","$mdUtil"],o.$inject=["$mdMedia"],t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",o).directive("mdGridTileFooter",r).directive("mdGridTileHeader",r).factory("$mdGridLayout",a),n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),t.module("material.components.icon",["material.core"]),t.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(e,t,n,a){return{restrict:"E",link:function(a,o,r){t(o);var i=r.mdFontIcon,s=e.fontSet(r.mdFontSet);u(),r.$observe("mdFontIcon",d),r.$observe("mdFontSet",d),o[0].getAttribute(r.$attr.mdSvgSrc);var l,c=r.$normalize(r.$attr.mdSvgIcon||r.$attr.mdSvgSrc||"");function u(){r.mdSvgIcon||r.mdSvgSrc||(r.mdFontIcon&&o.addClass("md-font "+r.mdFontIcon),o.addClass(s))}function d(){if(!r.mdSvgIcon&&!r.mdSvgSrc){r.mdFontIcon&&(o.removeClass(i),o.addClass(r.mdFontIcon),i=r.mdFontIcon);var t=e.fontSet(r.mdFontSet);s!==t&&(o.removeClass(s),o.addClass(t),s=t)}}r.role||(n.expect(o,"role","img"),r.role="img"),"img"!==r.role||r.ariaHidden||n.hasAriaLabel(o)||(r.alt?n.expect(o,"aria-label",r.alt):n.parentHasAriaLabel(o,2)?n.expect(o,"aria-hidden","true"):(l=r.mdFontIcon||r.mdSvgIcon||o.text())?n.expect(o,"aria-label",l):n.expect(o,"aria-hidden","true")),c&&r.$observe(c,(function(t){o.empty(),t&&e(t).then((function(e){o.empty(),o.append(e)}))}))}}}]),function(){i.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],t.module("material.components.icon").constant("$$mdSvgRegistry",{mdTabsArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=",mdClose:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=",mdCancel:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==",mdMenu:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+",mdToggleArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==",mdCalendar:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==",mdChecked:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+"}).provider("$mdIcon",o);var a={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};function o(){}function r(e,t){this.url=e,this.viewBoxSize=t||a.defaultViewBoxSize}function i(a,o,r,i,s,l){var c={},u={},d=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,f=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return v.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:a.defaultViewBoxSize;t.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e,focusable:!1},(function(e,t){this.element.setAttribute(t,e)}),this)}},m.fontSet=function(e){if(t.isUndefined(e)||!e||!e.length)return a.defaultFontSet;var n=e;return t.forEach(a.fontSets,(function(t){t.alias===e&&(n=t.fontSet||n)})),n},m;function m(e){return e=e||"",t.isString(e)||(e=l.getTrustedUrl(e)),c[e]?r.when(p(c[e])):d.test(e)||f.test(e)?y(e).then(h(e)):(-1===e.indexOf(":")&&(e="$default:"+e),(a[e]?_:b)(e).then(h(e)))}function p(e){var a,o,r,i,l=e.clone(),c=s.nextUid(),u=["clip-path","color-profile","cursor","fill","filter","href","marker-start","marker-mid","marker-end","mask","stroke","style","vector-effect"],d=l.innerHTML===n;if(!isFinite(Number(c)))throw new Error("Unsafe and unexpected non-number result from $mdUtil.nextUid().");return a="_cache"+c,l.id&&(l.id+=a),t.forEach(l.querySelectorAll("[id]"),(function(e){for(o="",r=0;r<u.length;r++)o+="["+u[r]+'="url(#'+e.id+')"]',r+1<u.length&&(o+=", ");t.forEach(l.querySelectorAll(o),(function(t){g(e,t,d,c)})),t.forEach(l.querySelectorAll("style"),(function(t){g(e,t,d,c)})),t.forEach(l.querySelectorAll("[*|href]:not([href])"),(function(t){(i=t.getAttribute("xlink:href"))&&(i=i.replace("#"+e.id,"#"+e.id+a),t.setAttribute("xlink:href",i))})),e.id+=a})),l}function g(e,n,a,o){var r,i;if(!isFinite(Number(o)))throw new Error("Unsafe and unexpected non-number result for newUid.");i="_cache"+o,a?(r=(r=s.getOuterHTML(n)).replace("url(#"+e.id+")","url(#"+e.id+i+")"),n.textContent=t.element(r)[0].innerHTML):n.outerHTML=n.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+i+")")}function h(e){return function(n){var o;return c[e]=(o=n,t.isDefined(o.element)&&t.isDefined(o.config)?n:new v(n,a[e])),p(c[e])}}function _(e){var t=a[e];return y(t.url).then((function(e){return new v(e,t)}))}function b(e){var t=e.substring(0,e.lastIndexOf(":"))||"$default",n=a[t];return n?y(n.url).then((function(t){var a=e.slice(e.lastIndexOf(":")+1),r=t.querySelector("#"+a);return r?new v(r,n):o(e)})):o(e);function o(e){var t="icon "+e+" not found";return i.warn(t),r.reject(t||e)}}function y(n){return f.test(n)?function(n){var a=f.exec(n),o=/base64/i.test(n)?e.atob(a[2]):a[2];return r.when(t.element(o)[0])}(n):function(e){return r((function(n,a){o(e,!0).then((function(a){u[e]||(u[e]=t.element("<div>").append(a)[0].querySelector("svg")),n(u[e])}),(function(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;i.warn(n),a(e)}))}))}(n)}function v(e,n){if(e&&"symbol"===e.tagName.toLowerCase()){var a=e.getAttribute("viewBox");e=e.innerHTML?t.element('<svg xmlns="http://www.w3.org/2000/svg">').html(e.innerHTML)[0]:t.element('<svg xmlns="http://www.w3.org/2000/svg">').append(s.getInnerHTML(e))[0],a&&e.setAttribute("viewBox",a)}e&&"svg"!==e.tagName.toLowerCase()&&(e=t.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e.cloneNode(!0))[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=n,this.prepare()}}o.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),a[e]=new r(t,n),this},iconSet:function(e,t,n){return a[e]=new r(t,n),this},defaultIconSet:function(e,t){return a.$default||(a.$default=new r(e,t)),a.$default.viewBoxSize=t||a.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return a.defaultViewBoxSize=e,this},fontSet:function(e,t){return a.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return a.defaultFontSet=e||"",this},defaultIconSize:function(e){return a.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,o,r){return i(a,e,t,n,o,r)}]}}(),function(){o.$inject=["$mdTheming","$parse","$$rAF"],r.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],i.$inject=["$animate","$mdUtil"],s.$inject=["$compile"],m.$inject=["$mdUtil"],l.$inject=["$document","$timeout"],p.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],g.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],h.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var a=t.module("material.components.input",["material.core"]).directive("mdInputContainer",o).directive("label",(function(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,a){!a||n.mdNoFloat||t.hasClass("md-container-ignore")||(a.label=t,e.$on("$destroy",(function(){a.label=null})))}}})).directive("input",r).directive("textarea",r).directive("mdMaxlength",i).directive("placeholder",s).directive("ngMessages",(function(){return{restrict:"EA",link:function(t,n,a,o){if(!o)return;n.toggleClass("md-input-messages-animation",!0),n.toggleClass("md-auto-hide",!0),("false"==a.mdAutoHide||e(a))&&n.toggleClass("md-auto-hide",!1)},require:"^^?mdInputContainer"};function e(e){return f.some((function(t){return e[t]}))}})).directive("ngMessage",m).directive("ngMessageExp",m).directive("mdSelectOnFocus",l).animation(".md-input-invalid",p).animation(".md-input-messages-animation",g).animation(".md-input-message-animation",h);function o(e,t,n){i.$inject=["$scope","$element","$attrs","$animate"];var a=["INPUT","TEXTAREA","SELECT","MD-SELECT"],o=a.reduce((function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])}),[]).join(","),r=a.reduce((function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])}),[]).join(",");return{restrict:"E",compile:function(t){var a=t[0].querySelector(o),i=t[0].querySelector(r);return function(t,o){e(o),(a||i)&&n((function(){var e=o[0].querySelector("md-icon")||o[0].querySelector(".md-icon");a&&e&&o.addClass("md-icon-left"),i&&e&&o.addClass("md-icon-right")}))}},controller:i};function i(e,n,a,o){var r=this;r.isErrorGetter=a.mdIsError&&t(a.mdIsError),r.delegateClick=function(){r.input.focus()},r.element=n,r.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},r.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},r.setHasPlaceholder=function(e){n.toggleClass("md-input-has-placeholder",!!e)},r.setInvalid=function(e){e?o.addClass(n,"md-input-invalid"):o.removeClass(n,"md-input-invalid")},e.$watch((function(){return r.label&&r.input}),(function(e){e&&!r.label.attr("for")&&r.label.attr("for",r.input.attr("id"))}))}}function r(e,n,a,o,r){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(i,s,l,c){var u=c[0],d=!!c[1],f=c[1]||e.fakeNgModel(),m=c[2],p=t.isDefined(l.readonly),g=e.parseAttributeBoolean(l.mdNoAsterisk),h=s[0].tagName.toLowerCase();if(!u)return;if("hidden"===l.type)return void s.attr("aria-hidden","true");if(u.input){if(u.input[0].contains(s[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}u.input=s,u.label&&l.$observe("required",(function(e){u.label.toggleClass("md-required",e&&!g)}));var _=t.element('<div class="md-errors-spacer">');s.after(_);var b=t.isString(l.placeholder)?l.placeholder.trim():"";u.label||b.length||a.expect(s,"aria-label");s.addClass("md-input"),s.attr("id")||s.attr("id","input_"+e.nextUid());"input"===h&&"number"===l.type&&l.min&&l.max&&!l.step?s.attr("step","any"):"textarea"===h&&function(){var a=!l.hasOwnProperty("mdNoAutogrow");if(A(),!a)return;var c=l.hasOwnProperty("rows")?parseInt(l.rows):NaN,m=l.hasOwnProperty("maxRows")?parseInt(l.maxRows):NaN,p=i.$on("md-resize-textarea",_),g=null,h=s[0];o((function(){e.nextTick(_)}),10,!1),s.on("input",_),d&&f.$formatters.push(y);c||s.attr("rows",1);function _(){s.attr("rows",1).css("height","auto").addClass("md-no-flex");var e=b();if(!g){var t=s[0].style.padding||"";g=s.css("padding",0).prop("offsetHeight"),s[0].style.padding=t}if(c&&g&&(e=Math.max(e,g*c)),m&&g){var n=g*m;n<e?(s.attr("md-no-autogrow",""),e=n):s.removeAttr("md-no-autogrow")}g&&s.attr("rows",Math.round(e/g)),s.css("height",e+"px").removeClass("md-no-flex")}function b(){var e=h.offsetHeight,t=h.scrollHeight-e;return e+Math.max(t,0)}function y(t){return e.nextTick(_),t}function v(){if(a&&(a=!1,t.element(n).off("resize",_),p&&p(),s.attr("md-no-autogrow","").off("input",_),d)){var e=f.$formatters.indexOf(y);e>-1&&f.$formatters.splice(e,1)}}function A(){if(!l.hasOwnProperty("mdNoResize")){var e=t.element('<div class="md-resize-handle"></div>'),n=!1,a=0,o=u.element,c=r.register(e,"drag",{horizontal:!1});s.wrap('<div class="md-resize-wrapper">').after(e),e.on("mousedown",d),o.on("$md.dragstart",f).on("$md.drag",m).on("$md.dragend",p),i.$on("$destroy",(function(){e.off("mousedown",d).remove(),o.off("$md.dragstart",f).off("$md.drag",m).off("$md.dragend",p),c(),e=null,o=null,c=null}))}function d(e){e.preventDefault(),n=!0,e.clientY,a=parseFloat(s.css("height"))||s.prop("offsetHeight")}function f(e){n&&(e.preventDefault(),v(),o.addClass("md-input-resized"))}function m(e){n&&s.css("height",a+e.pointer.distanceY+"px")}function p(e){n&&(n=!1,o.removeClass("md-input-resized"))}}if(t.element(n).on("resize",_),i.$on("$destroy",v),l.hasOwnProperty("mdDetectHidden")){var S=(w=!1,function(){var e=0===h.offsetHeight;!1===e&&!0===w&&_(),w=e});i.$watch((function(){return e.nextTick(S,!1),!0}))}var w}();d||A();var y=u.isErrorGetter||function(){return f.$invalid&&(f.$touched||m&&m.$submitted)};i.$watch(y,u.setInvalid),l.ngValue&&l.$observe("value",A);f.$parsers.push(v),f.$formatters.push(v),s.on("input",A),p||s.on("focus",(function(t){e.nextTick((function(){u.setFocused(!0)}))})).on("blur",(function(t){e.nextTick((function(){u.setFocused(!1),A()}))}));function v(e){return u.setHasValue(!f.$isEmpty(e)),e}function A(){u.setHasValue(s.val().length>0||(s[0].validity||{}).badInput)}i.$on("$destroy",(function(){u.setFocused(!1),u.setHasValue(!1),u.input=null}))}}}function i(e,a){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(o,r,i,s){var l=parseInt(i.mdMaxlength);isNaN(l)&&(l=-1);var c,u,d=s[0],f=s[1],m=!t.isDefined(i.ngTrim)||a.parseAttributeBoolean(i.ngTrim),p="password"===i.type;function g(e){return(e=m&&!p&&t.isString(e)?e.trim():e)!==n&&null!==e||(e=""),String(e).length}function h(){c&&c.parent()&&c.text(g(r.val())+" / "+l)}o.$watch(i.mdMaxlength,(function(e){l=e})),d.$validators["md-maxlength"]=function(e,a){if(!t.isNumber(l)||l<0)return!0;h();var o=r.val()||a;return o!==n&&null!==o||(o=""),o=m&&!p&&t.isString(o)?o.trim():o,String(o).length<=l},d.$isEmpty=function(e){return 0===g(e)},a.nextTick((function(){u=t.element(f.element[0].querySelector(".md-errors-spacer")),c=t.element('<div class="md-char-counter">'),u.append(c),i.$observe("ngTrim",(function(e){m=!t.isDefined(e)||a.parseAttributeBoolean(e)})),o.$watch(i.mdMaxlength,(function(n){t.isNumber(n)&&n>0?(c.parent().length||e.enter(c,u),h()):e.leave(c)}))}))}}}function s(e){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(n,a,o,r){if(!r)return;var i=r.element.find("label"),s=r.element.attr("md-no-float");if(i&&i.length||""===s||n.$eval(s))return void r.setHasPlaceholder(!0);if("MD-SELECT"!==a[0].nodeName){var l=t.element('<label ng-click="delegateClick()" tabindex="-1" aria-hidden="true">'+o.placeholder+"</label>");o.$set("placeholder",null),r.element.addClass("md-icon-float").prepend(l),e(l)(n)}}}}}function l(e,t){return{restrict:"A",link:function(n,a,o){if("INPUT"!==a[0].nodeName&&"TEXTAREA"!==a[0].nodeName)return;var r=!1;function i(){r=!0,t((function(){e[0].activeElement===a[0]&&a[0].select(),r=!1}),1,!1)}function s(e){r&&e.preventDefault()}a.on("focus",i).on("mouseup",s),n.$on("$destroy",(function(){a.off("focus",i).off("mouseup",s)}))}}}e._mdMocksIncluded&&a.service("$$mdInput",(function(){return{messages:{getElement:A}}})).service("mdInputInvalidAnimation",p).service("mdInputMessagesAnimation",g).service("mdInputMessageAnimation",h);var c,u,d,f=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];function m(e){return{restrict:"EA",compile:function(t){if(n(t))a(t);else if(function(){var e=t[0];for(;e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,o){n(o)&&a(t)};function n(t){return!!e.getClosest(t,"md-input-container")}function a(e){e.toggleClass("md-input-message-animation",!0)}},priority:100}}function p(e,t,n){return S(e,t,n),{addClass:function(e,t,n){_(e,n)}}}function g(e,t,n){return S(e,t,n),{enter:function(e,t){_(e,t)},leave:function(e,t){b(e,t)},addClass:function(e,t,n){"ng-hide"==t?b(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?_(e,n):n()}}}function h(e,t,n,a){return S(e,t,n),{enter:function(e,t){y(e).start().done(t)},leave:function(e,t){v(e).start().done(t)}}}function _(e,n){var a,o=[],r=A(e),i=r.children();0!=r.length&&0!=i.length?(t.forEach(i,(function(e){a=y(t.element(e)),o.push(a.start())})),c.all(o,n)):n()}function b(e,n){var a,o=[],r=A(e),i=r.children();0!=r.length&&0!=i.length?(t.forEach(i,(function(e){a=v(t.element(e)),o.push(a.start())})),c.all(o,n)):n()}function y(t){var n=parseInt(e.getComputedStyle(t[0]).height),a=parseInt(e.getComputedStyle(t[0]).marginTop),o=A(t),r=function(e){return e.controller("mdInputContainer").element}(t);return a>-n||o.hasClass("md-auto-hide")&&!r.hasClass("md-input-invalid")?u(t,{}):u(t,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-n+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function v(t){var n=t[0].offsetHeight,a=e.getComputedStyle(t[0]);return 0===parseInt(a.opacity)?u(t,{}):u(t,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-n+"px"},duration:.3})}function A(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?t.element(d.getClosest(e,(function(e){return e.classList.contains("md-input-messages-animation")}))):t.element(e[0].querySelector(".md-input-messages-animation"))}function S(e,t,n){c=e,u=t,d=n}}(),function(){function e(e){return{restrict:"E",compile:function(t){return t[0].setAttribute("role","list"),e}}}function n(e,n,a,o){var r=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(i,s){var l,c,u,d=i[0].querySelectorAll(".md-secondary"),f=i;if(i[0].setAttribute("role","listitem"),s.ngClick||s.ngDblclick||s.ngHref||s.href||s.uiSref||s.ngAttrUiSref)p("button");else if(!i.hasClass("md-no-proxy")){for(var m=0;m<r.length;++m)if(null!==(c=i[0].querySelector(r[m]))){l=!0;break}l?p("div"):i.addClass("md-no-proxy")}function p(n){if("div"===n)(f=t.element('<div class="md-no-style md-list-item-inner">')).append(i.contents()),i.addClass("md-proxy-focus");else{f=t.element('<div class="md-button md-no-style">   <div class="md-list-item-inner"></div></div>');var a=t.element('<md-button class="md-no-style"></md-button>');g(i[0],a[0]),a.attr("aria-label")||a.attr("aria-label",e.getText(i)),i.hasClass("md-no-focus")&&a.addClass("md-no-focus"),f.prepend(a),f.children().eq(1).append(i.contents()),i.addClass("_md-button-wrap")}i[0].setAttribute("tabindex","-1"),i.append(f)}function g(e,n,o){var r=a.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","rel","target","ng-attr-ui-sref","ui-sref-opts","download"]);o&&(r=r.concat(a.prefixer(o))),t.forEach(r,(function(t){e.hasAttribute(t)&&(n.setAttribute(t,e.getAttribute(t)),e.removeAttribute(t))}))}function h(e){for(var t=e.attributes,n=0;n<t.length;n++)if("ngClick"===s.$normalize(t[n].name))return!0;return!1}return u=t.element('<div class="md-secondary-container">'),t.forEach(d,(function(n){!function(n,a){if(n&&("MD-BUTTON"!==(l=n.nodeName.toUpperCase())&&"BUTTON"!==l)&&n.hasAttribute("ng-click")){e.expect(n,"aria-label");var o=t.element('<md-button class="md-secondary md-icon-button">');g(n,o[0],["ng-if","ng-hide","ng-show"]),n.setAttribute("tabindex","-1"),o.append(n),n=o[0]}var l;n&&(!h(n)||!s.ngClick&&function(e){return-1!==r.indexOf(e.nodeName.toLowerCase())}(n))&&t.element(n).removeClass("md-secondary"),i.addClass("md-with-secondary"),a.append(n)}(n,u)})),f.append(u),function(){for(var e,t=["md-switch","md-checkbox"],n=0;n<t.length;++n)if((e=i.find(t[n])[0])&&!e.hasAttribute("aria-label")){var a=i.find("p")[0];if(a||(a=i.find("span")[0]),!a)return;e.setAttribute("aria-label","Toggle "+a.textContent)}}(),l&&"MD-MENU"===c.nodeName&&function(){var e=t.element(c),n=e.parent().hasClass("md-secondary-container")||c.parentNode.firstElementChild!==c,a="left";n&&(a="right");e.attr("md-position-mode")||e.attr("md-position-mode",a+" target");var o=e.children().eq(0);h(o[0])||o.attr("ng-click","$mdMenu.open($event)");o.attr("aria-label")||o.attr("aria-label","Open List Menu")}(),function(e,i,s,l){i.addClass("_md");var c=[],u=i[0].firstElementChild,d=i.hasClass("_md-button-wrap")?u.firstElementChild:u,f=d&&h(d),m=i.hasClass("md-no-proxy");void(u&&u.children&&!f&&!m&&t.forEach(r,(function(e){t.forEach(u.querySelectorAll(e+":not(.md-secondary)"),(function(e){c.push(e)}))}))),void((1===c.length||f)&&(i.addClass("md-clickable"),f||l.attachRipple(e,t.element(i[0].querySelector(".md-no-style"))))),c.length&&t.forEach(c,(function(n){n=t.element(n),e.mouseActive=!1,n.on("mousedown",(function(){e.mouseActive=!0,o((function(){e.mouseActive=!1}),100)})).on("focus",(function(){!1===e.mouseActive&&i.addClass("md-focused"),n.on("blur",(function e(){i.removeClass("md-focused"),n.off("blur",e)}))}))}));var p=function(e){"INPUT"===e.target.nodeName||"TEXTAREA"===e.target.nodeName||e.target.isContentEditable||(e.which||e.keyCode)===n.KEY_CODE.SPACE&&d&&(d.click(),e.preventDefault(),e.stopPropagation())};f||c.length||d&&d.addEventListener("keypress",p);i.off("click"),i.off("keypress"),i.off("keydown"),1===c.length&&d&&i.children().eq(0).on("click",(function(e){(function(e){var t=["md-slider"],n=a.getEventPath(e);if(!n||0===n.length)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var o=n.indexOf(i.children()[0]),r=0;r<o;r++)if(-1!==t.indexOf(n[r].tagName.toLowerCase()))return!0;return!1})(e)||!a.getClosest(e.target,"BUTTON")&&d.contains(e.target)&&t.forEach(c,(function(n){e.target===n||n.contains(e.target)||("MD-MENU"===n.nodeName&&(n=n.children[0]),t.element(n).triggerHandler("click"))}))}));e.$on("$destroy",(function(){d&&d.removeEventListener("keypress",p)}))}}}}function a(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}a.$inject=["$scope","$element","$mdListInkRipple"],e.$inject=["$mdTheming"],n.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],t.module("material.components.list",["material.core"]).controller("MdListController",a).directive("mdList",e).directive("mdListItem",n)}(),t.module("material.components.menu",["material.core","material.components.backdrop"]),function(){function e(e,a,o,r,i,s,l,c,u){var d,f,m=i.prefixer(),p=this;this.nestLevel=parseInt(a.mdNestLevel,10)||0,this.init=function(n,a){a=a||{},d=n,(f=o[0].querySelector(m.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=a.isInMenuBar,this.mdMenuBarCtrl=a.mdMenuBarCtrl,this.nestedMenus=i.nodesToArray(d[0].querySelectorAll(".md-nested-menu")),d.on("$mdInterimElementRemove",(function(){p.isOpen=!1,i.nextTick((function(){p.onIsOpenChanged(p.isOpen)}))})),i.nextTick((function(){p.onIsOpenChanged(p.isOpen)}));var s="menu_container_"+i.nextUid();d.attr("id",s),t.element(f).attr({"aria-owns":s,"aria-haspopup":"true"}),r.$on("$destroy",t.bind(this,(function(){this.disableHoverListener(),e.destroy()}))),d.on("$destroy",(function(){e.destroy()}))};var g,h,_=[];this.enableHoverListener=function(){_.push(l.$on("$mdMenuOpen",(function(e,t){d[0].contains(t[0])&&(p.currentlyOpenMenu=t.controller("mdMenu"),p.isAlreadyOpening=!1,p.currentlyOpenMenu.registerContainerProxy(p.triggerContainerProxy.bind(p)))}))),_.push(l.$on("$mdMenuClose",(function(e,t){d[0].contains(t[0])&&(p.currentlyOpenMenu=n)}))),(h=t.element(i.nodesToArray(d[0].children[0].children))).on("mouseenter",p.handleMenuItemHover),h.on("mouseleave",p.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;_.length;)_.shift()();h&&h.off("mouseenter",p.handleMenuItemHover),h&&h.off("mouseleave",p.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!p.isAlreadyOpening){var n=e.target.querySelector("md-menu")||i.getClosest(e.target,"MD-MENU");g=s((function(){if(n&&(n=t.element(n).controller("mdMenu")),p.currentlyOpenMenu&&p.currentlyOpenMenu!=n){var e=p.nestLevel+1;p.currentlyOpenMenu.close(!0,{closeTo:e}),p.isAlreadyOpening=!!n,n&&n.open()}else n&&!n.isOpen&&n.open&&(p.isAlreadyOpening=!!n,n&&n.open())}),n?100:250);var a=e.currentTarget.querySelector(".md-button:not([disabled])");a&&a.focus()}},this.handleMenuItemMouseLeave=function(){g&&(s.cancel(g),g=n)},this.open=function(t){t&&t.stopPropagation(),t&&t.preventDefault(),p.isOpen||(p.enableHoverListener(),p.isOpen=!0,i.nextTick((function(){p.onIsOpenChanged(p.isOpen)})),(f=f||(t?t.target:o[0])).setAttribute("aria-expanded","true"),r.$emit("$mdMenuOpen",o),e.show({scope:r,mdMenuCtrl:p,nestLevel:p.nestLevel,element:d,target:f,preserveElement:!0,parent:"body"}).finally((function(){f.setAttribute("aria-expanded","false"),p.disableHoverListener()})))},this.onIsOpenChanged=function(e){e?(d.attr("aria-hidden","false"),o[0].classList.add("md-open"),t.forEach(p.nestedMenus,(function(e){e.classList.remove("md-open")}))):(d.attr("aria-hidden","true"),o[0].classList.remove("md-open")),r.$mdMenuIsOpen=p.isOpen},this.focusMenuContainer=function(){var e=d[0].querySelector(m.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=d[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return p.isOpen?e.destroy():c.when(!1)},this.close=function(n,a){if(p.isOpen){p.isOpen=!1,i.nextTick((function(){p.onIsOpenChanged(p.isOpen)}));var s=t.extend({},a,{skipFocus:n});if(r.$emit("$mdMenuClose",o,s),e.hide(null,a),!n){var l=p.restoreFocusTo||o.find("button")[0];l instanceof t.element&&(l=l[0]),l&&l.focus()}}},this.positionMode=function(){var e=(a.mdPositionMode||"target").split(" ");return 1===e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(a.mdOffset||"0 0").split(" ").map(parseFloat);if(2===e.length)return{left:e[0],top:e[1]};if(1===e.length)return{top:e[0],left:e[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},r.$mdMenu={open:this.open,close:this.close},r.$mdOpenMenu=t.bind(this,(function(){return u.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)}))}e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],t.module("material.components.menu").controller("mdMenuCtrl",e)}(),function(){function e(e){var n="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:function(o){o.addClass("md-menu");var r=o.children()[0],i=e.prefixer();i.hasAttribute(r,"ng-click")||(r=r.querySelector(i.buildSelector(["ng-click","ng-mouseenter"]))||r);var s="MD-BUTTON"===r.nodeName||"BUTTON"===r.nodeName;r&&s&&!r.hasAttribute("type")&&r.setAttribute("type","button");if(!r)throw Error(n+"Expected the menu to have a trigger element.");if(2!==o.children().length)throw Error(n+"Expected two children elements. The second element must have a `md-menu-content` element.");r&&r.setAttribute("aria-haspopup","true");var l=o[0].querySelectorAll("md-menu"),c=parseInt(o[0].getAttribute("md-nest-level"),10)||0;l&&t.forEach(e.nodesToArray(l),(function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",c+1)}));return a}};function a(e,n,a,o){var r=o[0],i=!!o[1],s=o[1],l=t.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),c=n.children()[1];n.addClass("_md"),c.hasAttribute("role")||c.setAttribute("role","menu"),l.append(c),n.on("$destroy",(function(){l.remove()})),n.append(l),l[0].style.display="none",r.init(l,{isInMenuBar:i,mdMenuBarCtrl:s})}}e.$inject=["$mdUtil"],t.module("material.components.menu").directive("mdMenu",e)}(),function(){function e(e){a.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];return e("$mdMenu").setDefaults({methods:["target"],options:a});function a(e,a,r,i,s,l,c,u,d,f){var m=e.prefixer(),p=e.dom.animator;return{parent:"body",onShow:function(n,o,i){(function(){if(!i.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");t.extend(i,{alreadyOpen:!1,isRemoved:!1,target:t.element(i.target),parent:t.element(i.parent),menuContentEl:t.element(o[0].querySelector("md-menu-content"))})})(),i.menuContentEl[0]?a.inherit(i.menuContentEl,i.target):f.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",o);return i.cleanupResizing=function(){var e=(t=o,n=i,c.throttle((function(){if(!i.isRemoved){var e=b(t,n);t.css(p.toCss(e))}})));var t,n;return s.addEventListener("resize",e),s.addEventListener("orientationchange",e),function(){s.removeEventListener("resize",e),s.removeEventListener("orientationchange",e)}}(),i.hideBackdrop=g(n,o,i),function(){return i.parent.append(o),o[0].style.display="",l((function(e){var t=b(o,i);o.removeClass("md-leave"),u(o,{addClass:"md-active",from:p.toCss(t),to:p.toCss({transform:""})}).start().then(e)}))}().then((function(a){return i.alreadyOpen=!0,i.cleanupInteraction=function(){if(!i.menuContentEl[0])return t.noop;i.menuContentEl.on("keydown",c),i.menuContentEl[0].addEventListener("click",u,!0);var a=i.menuContentEl[0].querySelector(m.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!a)for(var o=i.menuContentEl[0].children.length,s=0;s<o;s++){var l=i.menuContentEl[0].children[s];if(a=l.querySelector(".md-button:not([disabled])"))break;if(l.firstElementChild&&!l.firstElementChild.disabled){a=l.firstElementChild;break}}return a&&a.focus(),function(){i.menuContentEl.off("keydown",c),i.menuContentEl[0].removeEventListener("click",u,!0)};function c(t){var n;switch(t.keyCode){case r.KEY_CODE.ESCAPE:i.nestLevel?i.mdMenuCtrl.close():i.mdMenuCtrl.close(!1,{closeAll:!0}),n=!0;break;case r.KEY_CODE.TAB:i.mdMenuCtrl.close(!1,{closeAll:!0}),n=!1;break;case r.KEY_CODE.UP_ARROW:h(t,i.menuContentEl,i,-1)||i.nestLevel||i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case r.KEY_CODE.DOWN_ARROW:h(t,i.menuContentEl,i,1)||i.nestLevel||i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case r.KEY_CODE.LEFT_ARROW:i.nestLevel?i.mdMenuCtrl.close():i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case r.KEY_CODE.RIGHT_ARROW:var a=e.getClosest(t.target,"MD-MENU");a&&a!=i.parent[0]?t.target.click():i.mdMenuCtrl.triggerContainerProxy(t),n=!0}n&&(t.preventDefault(),t.stopImmediatePropagation())}function u(t){var a=t.target;do{if(a==i.menuContentEl[0])return;if((s(a,["ng-click","ng-href","ui-sref"])||"BUTTON"==a.nodeName||"MD-BUTTON"==a.nodeName)&&!s(a,["md-prevent-menu-close"])){var o=e.getClosest(a,"MD-MENU");a.hasAttribute("disabled")||o&&o!=i.parent[0]||r();break}}while(a=a.parentNode);function r(){n.$apply((function(){i.mdMenuCtrl.close(!0,{closeAll:!0})}))}function s(e,t){if(!e)return!1;for(var n,a=0;n=t[a];++a)if(m.hasAttribute(e,n))return!0;return!1}}}(),i.cleanupBackdrop=i.backdrop?(i.backdrop.on("click",d),function(){i.backdrop.off("click",d)}):t.noop,o.addClass("md-clickable"),a}));function d(e){e.preventDefault(),e.stopPropagation(),n.$apply((function(){i.mdMenuCtrl.close(!0,{closeAll:!0})}))}},onRemove:function(e,t,n){return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),t.removeClass("md-clickable"),!0===n.$destroy?a():function(){return u(t,{addClass:"md-leave"}).start()}().then(a);function a(){t.removeClass("md-active"),function(e,t){t.preserveElement?o(e).style.display="none":o(e).parentNode===o(t.parent)&&o(t.parent).removeChild(o(e))}(t,n),n.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function g(n,a,o){return o.nestLevel?t.noop:(o.disableParentScroll&&!e.getClosest(o.target,"MD-DIALOG")?o.restoreScroll=e.disableScrollAround(o.element,o.parent):o.disableParentScroll=!1,o.hasBackdrop&&(o.backdrop=e.createBackdrop(n,"md-menu-backdrop md-click-catcher"),d.enter(o.backdrop,i[0].body)),function(){o.backdrop&&o.backdrop.remove(),o.disableParentScroll&&o.restoreScroll()})}function h(t,n,a,o){for(var r,i=e.getClosest(t.target,"MD-MENU-ITEM"),s=e.nodesToArray(n[0].children),l=s.indexOf(i)+o;l>=0&&l<s.length;l+=o){if(r=_(s[l].querySelector(".md-button")))break}return r}function _(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),i[0].activeElement==e}function b(t,a){var o,r=t[0],l=t[0].firstElementChild,c=l.getBoundingClientRect(),u=i[0].body.getBoundingClientRect(),d=s.getComputedStyle(l),f=a.target[0].querySelector(m.buildSelector("md-menu-origin"))||a.target[0],p=f.getBoundingClientRect(),g={left:u.left+8,top:Math.max(u.top,0)+8,bottom:Math.max(u.bottom,Math.max(u.top,0)+u.height)-8,right:u.right-8},h={top:0,left:0,right:0,bottom:0},_={top:0,left:0,right:0,bottom:0},b=a.mdMenuCtrl.positionMode();"target"!==b.top&&"target"!==b.left&&"target-right"!==b.left||(o=function(){for(var e=0;e<l.children.length;++e)if("none"!=s.getComputedStyle(l.children[e]).display)return l.children[e]}())&&(h=(o=(o=o.firstElementChild||o).querySelector(m.buildSelector("md-menu-align-target"))||o).getBoundingClientRect(),_={top:parseFloat(r.style.top||0),left:parseFloat(r.style.left||0)});var y={},v="top ";switch(b.top){case"target":y.top=_.top+p.top-h.top;break;case"cascade":y.top=p.top-parseFloat(d.paddingTop)-f.style.top;break;case"bottom":y.top=p.top+p.height;break;default:throw new Error('Invalid target mode "'+b.top+'" specified for md-menu on Y axis.')}var A=e.isRtl(t);switch(b.left){case"target":y.left=_.left+p.left-h.left,v+=A?"right":"left";break;case"target-left":y.left=p.left,v+="left";break;case"target-right":y.left=p.right-c.width+(c.right-h.right),v+="right";break;case"cascade":var S=A?p.left-c.width<g.left:p.right+c.width<g.right;y.left=S?p.right-f.style.left:p.left-f.style.left-c.width,v+=S?"left":"right";break;case"right":A?(y.left=p.right-p.width,v+="left"):(y.left=p.right-c.width,v+="right");break;case"left":A?(y.left=p.right-c.width,v+="right"):(y.left=p.left,v+="left");break;default:throw new Error('Invalid target mode "'+b.left+'" specified for md-menu on X axis.')}var w,E=a.mdMenuCtrl.offsets();y.top+=E.top,y.left+=E.left,(w=y).top=Math.max(Math.min(w.top,g.bottom-r.offsetHeight),g.top),w.left=Math.max(Math.min(w.left,g.right-r.offsetWidth),g.left);var C=Math.round(100*Math.min(p.width/r.offsetWidth,1))/100,T=Math.round(100*Math.min(p.height/r.offsetHeight,1))/100;return{top:Math.round(y.top),left:Math.round(y.left),transform:a.alreadyOpen?n:e.supplant("scale({0},{1})",[C,T]),transformOrigin:v}}}function o(e){return e instanceof t.element&&(e=e[0]),e}}e.$inject=["$$interimElementProvider"],t.module("material.components.menu").provider("$mdMenu",e)}(),t.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){a.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],t.module("material.components.menuBar").controller("MenuBarController",a);var e=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];function a(n,a,o,r,i,s,l,c){this.$element=o,this.$attrs=r,this.$mdConstant=i,this.$mdUtil=l,this.$document=s,this.$scope=n,this.$rootScope=a,this.$timeout=c;var u=this;t.forEach(e,(function(e){u[e]=t.bind(u,u[e])}))}a.prototype.init=function(){var e=this.$element,a=this.$mdUtil,o=this.$scope,r=this,i=[];e.on("keydown",this.handleKeyDown),this.parentToolbar=a.getClosest(e,"MD-TOOLBAR"),i.push(this.$rootScope.$on("$mdMenuOpen",(function(t,n){-1!=r.getMenus().indexOf(n[0])&&(e[0].classList.add("md-open"),n[0].classList.add("md-open"),r.currentlyOpenMenu=n.controller("mdMenu"),r.currentlyOpenMenu.registerContainerProxy(r.handleKeyDown),r.enableOpenOnHover())}))),i.push(this.$rootScope.$on("$mdMenuClose",(function(o,i,s){var l=r.getMenus();-1!=l.indexOf(i[0])&&(e[0].classList.remove("md-open"),i[0].classList.remove("md-open"));var c=t.element(i[0]).controller("mdMenu");if(c.isInMenuBar&&c.mdMenuBarCtrl===r){for(var u=i[0];u&&-1==l.indexOf(u);)u=a.getClosest(u,"MD-MENU",!0);u&&(s.skipFocus||u.querySelector("button:not([disabled])").focus(),r.currentlyOpenMenu=n),r.disableOpenOnHover(),r.setKeyboardMode(!0)}}))),o.$on("$destroy",(function(){for(r.disableOpenOnHover();i.length;)i.shift()()})),this.setKeyboardMode(!0)},a.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},a.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick((function(){t.element(e.parentToolbar).on("click",e.handleParentClick)}),!1)),t.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},a.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},a.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),t.element(this.parentToolbar).off("click",this.handleParentClick)),t.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},a.prototype.scheduleOpenHoveredMenu=function(e){var n=t.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(n)},a.prototype.scheduleOpenMenu=function(e){var t=this,a=this.$timeout;e!=t.currentlyOpenMenu&&(a.cancel(t.pendingMenuOpen),t.pendingMenuOpen=a((function(){t.pendingMenuOpen=n,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()}),200,!1))},a.prototype.handleKeyDown=function(e){var n,a,o,r=this.$mdConstant.KEY_CODE,i=this.currentlyOpenMenu,s=i&&i.isOpen;switch(this.setKeyboardMode(!0),e.keyCode){case r.DOWN_ARROW:i?i.focusMenuContainer():this.openFocusedMenu(),n=!0;break;case r.UP_ARROW:i&&i.close(),n=!0;break;case r.LEFT_ARROW:a=this.focusMenu(-1),s&&(o=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(o)),n=!0;break;case r.RIGHT_ARROW:a=this.focusMenu(1),s&&(o=t.element(a).controller("mdMenu"),this.scheduleOpenMenu(o)),n=!0}n&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},a.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var a=!1;if(-1==n?(n=0,a=!0):(e<0&&n>0||e>0&&n<t.length-e)&&(n+=e,a=!0),a)return t[n].querySelector("button").focus(),t[n]},a.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&t.element(e).controller("mdMenu").open()},a.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter((function(e){return"MD-MENU"==e.nodeName}))},a.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},a.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return e?this.getMenus().indexOf(e):-1},a.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t<e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1},a.prototype.handleParentClick=function(e){var n=this.querySelector("md-menu.md-open");n&&!n.contains(e.target)&&t.element(n).controller("mdMenu").close(!0,{closeAll:!0})}}(),function(){function e(e,n){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(a,o){return o.ariaRole||a[0].setAttribute("role","menubar"),t.forEach(a[0].children,(function(n){if("MD-MENU"==n.nodeName){n.hasAttribute("md-position-mode")||(n.setAttribute("md-position-mode","left bottom"),n.querySelector("button, a, md-button").setAttribute("role","menuitem"));var a=e.nodesToArray(n.querySelectorAll("md-menu-content"));t.forEach(a,(function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)}))}})),a.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,a,o){t.addClass("_md"),n(e,t),o.init()}}}}e.$inject=["$mdUtil","$mdTheming"],t.module("material.components.menuBar").directive("mdMenuBar",e)}(),t.module("material.components.menuBar").directive("mdMenuDivider",(function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}})),function(){function e(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}e.$inject=["$scope","$element","$attrs"],t.module("material.components.menuBar").controller("MenuItemController",e),e.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&&this.initClickListeners())},e.prototype.clearNgAria=function(){var e=this.$element[0];t.forEach(["role","tabindex","aria-invalid","aria-checked"],(function(t){e.removeAttribute(t)}))},e.prototype.initClickListeners=function(){var e=this,n=this.ngModel,a=this.$scope,o=this.$attrs,r=(this.$element,this.mode);this.handleClick=t.bind(this,this.handleClick);var i=this.iconEl,s=t.element(this.buttonEl),l=this.handleClick;function c(e){e?s.off("click",l):s.on("click",l)}o.$observe("disabled",c),c(o.disabled),n.$render=function(){e.clearNgAria(),!function(){if("radio"==r){var e=o.ngValue?a.$eval(o.ngValue):o.value;return n.$modelValue==e}return n.$modelValue}()?(i.style.display="none",s.attr("aria-checked","false")):(i.style.display="",s.attr("aria-checked","true"))},a.$$postDigest(n.$render)},e.prototype.handleClick=function(e){var t,n=this.mode,a=this.ngModel,o=this.$attrs;"checkbox"==n?t=!a.$modelValue:"radio"==n&&(t=o.ngValue?this.$scope.$eval(o.ngValue):o.value),a.$setViewValue(t),a.$render()}}(),function(){function e(e,n,a){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:n.BEFORE_NG_ARIA,compile:function(n,o){var r,i,s=o.type,l="md-in-menu-bar";if("checkbox"!==s&&"radio"!==s||!n.hasClass(l))f("role","menuitem",n[0].querySelector("md-button, button, a"));else{var c=n[0].textContent,u=t.element('<md-button type="button"></md-button>'),d='<md-icon md-svg-src="'+a.mdChecked+'"></md-icon>';u.html(c),u.attr("tabindex","0"),t.isDefined(o.mdPreventMenuClose)&&u.attr("md-prevent-menu-close",o.mdPreventMenuClose),n.html(""),n.append(t.element(d)),n.append(u),n.addClass("md-indent").removeClass(l),f("role","checkbox"===s?"menuitemcheckbox":"menuitemradio",u),r="ng-disabled",i=e.prefixer(r),t.forEach(i,(function(e){if(n[0].hasAttribute(e)){var t=n[0].getAttribute(e);u[0].setAttribute(e,t),n[0].removeAttribute(e)}}))}return function(e,t,n,a){var o=a[0],r=a[1];o.init(r)};function f(e,a,o){(o=o||n)instanceof t.element&&(o=o[0]),o.hasAttribute(e)||o.setAttribute(e,a)}}}}e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],t.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(e,n,o,r){return{restrict:"E",transclude:!0,controller:a,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",navBarAriaLabel:"@?"},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="tablist" ng-focus="ctrl.onFocus()" aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(a,i,s,l){function c(){l.width!==o.innerWidth&&(l.updateSelectedTabInkBar(),l.width=o.innerWidth,a.$digest())}l.width=o.innerWidth,t.element(o).on("resize",r.debounce(c,300)),a.$on("$destroy",(function(){t.element(o).off("resize",c)})),n(i),l.navBarAriaLabel||e.expectAsync(i,"aria-label",t.noop)}}}function a(e,t,n,a){this._$timeout=n,this._$scope=t,this._$mdConstant=a,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var o=this,r=this._$scope.$watch((function(){return o._navBarEl.querySelectorAll("._md-nav-button").length}),(function(e){e>0&&(o._initTabs(),r())}))}function o(e,a,o,i){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:r,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var a,o,r=t.mdNavClick,i=t.mdNavHref,s=t.mdNavSref,l=t.srefOpts;if((r?1:0)+(i?1:0)+(s?1:0)>1)throw Error("Please do not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");if(r!==n&&null!==r)a='ng-click="ctrl.mdNavClick()"';else if(i!==n&&null!==i)a='ng-href="{{ctrl.mdNavHref}}"';else{if(s===n||null===s)throw Error("Please specify at least one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");a='ui-sref="{{ctrl.mdNavSref}}"'}return a&&(o='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" ng-disabled="ctrl.disabled" tabindex="-1" role="tab" ng-attr-aria-label="{{ctrl.navItemAriaLabel ? ctrl.navItemAriaLabel : undefined}}" aria-selected="{{ctrl.isSelected()}}" '+(l?'ui-sref-opts="{{ctrl.srefOpts}}" ':"")+a+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="presentation">'+(o||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(n,r,s,l){var c,u,d,f;a((function(){if(u=l[0],d=l[1],f=t.element(r[0].querySelector("._md-nav-button")),u.name||(u.name=t.element(r[0].querySelector("._md-nav-button-text")).text().trim()),f.on("keydown",(function(e){d.onKeydown(e)})),f.on("focus",(function(){u._focused=!0})),f.on("click",(function(){d.mdSelectedNavItem=u.name,n.$apply()})),u.disabled=o.parseAttributeBoolean(s.disabled,!1),"MutationObserver"in i){var a=r[0],m=new MutationObserver((function(e){o.nextTick((function(){u.disabled=o.parseAttributeBoolean(s[e[0].attributeName],!1)}))}));m.observe(a,{attributes:!0,attributeFilter:["disabled"]}),c=m.disconnect.bind(m)}else s.$observe("disabled",(function(e){u.disabled=o.parseAttributeBoolean(e,!1)}));u.navItemAriaLabel||e.expectWithText(f,"aria-label")})),n.$on("destroy",(function(){f.off("keydown"),f.off("focus"),f.off("click"),c()}))}}}function r(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this._focused=!1}e.$inject=["$mdAria","$mdTheming","$window","$mdUtil"],a.$inject=["$element","$scope","$timeout","$mdConstant"],o.$inject=["$mdAria","$$rAF","$mdUtil","$window"],r.$inject=["$element"],t.module("material.components.navBar",["material.core"]).controller("MdNavBarController",a).directive("mdNavBar",e).controller("MdNavItemController",r).directive("mdNavItem",o),a.prototype._initTabs=function(){this._inkbar=t.element(this._navBarEl.querySelector("md-nav-ink-bar"));var e=this;this._$timeout((function(){e._updateTabs(e.mdSelectedNavItem,null)})),this._$scope.$watch("ctrl.mdSelectedNavItem",(function(t,n){e._$timeout((function(){e._updateTabs(t,n)}))}))},a.prototype._updateTabs=function(e,t){var n=this,a=this._getTabs(),o=e===t;if(a){var r=-1,i=-1,s=this._getTabByName(e),l=this._getTabByName(t);l&&(l.setSelected(!1),r=a.indexOf(l)),s&&(s.setSelected(!0),i=a.indexOf(s)),this._$timeout((function(){n._updateInkBarStyles(s,i,r),s&&l&&!o&&n._moveFocus(l,s)}))}},a.prototype._updateInkBarStyles=function(e,t){if(this._inkbar.css({display:t<0?"none":""}),e){var n=e.getButtonEl(),a=n.offsetLeft,o=n.offsetWidth,r=this._navBarEl.getBoundingClientRect().width,i=o/r,s=a/r*100;this._inkbar.css({transform:"translateX("+s+"%) scaleX("+i+")"})}},a.prototype.updateSelectedTabInkBar=function(){this._updateInkBarStyles(this._getSelectedTab())},a.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map((function(e){return t.element(e).controller("mdNavItem")}));return e.indexOf(n)?e:null},a.prototype._getTabByName=function(e){return this._findTab((function(t){return t.getName()===e}))},a.prototype._getSelectedTab=function(){return this._findTab((function(e){return e.isSelected()}))},a.prototype.getFocusedTab=function(){return this._findTab((function(e){return e.hasFocus()}))},a.prototype._findTab=function(e,t){var a=this._getTabs();t!==n&&null!==t||(t=0);for(var o=t;o<a.length;o++)if(e(a[o]))return a[o];return null},a.prototype._findTabReverse=function(e,t){var a=this._getTabs();t!==n&&null!==t||(t=a.length-1);for(var o=t;o>=0;o--)if(e(a[o]))return a[o];return null},a.prototype.onFocus=function(){var e=this._getSelectedTab();e&&!e._focused&&e.setFocused(!0)},a.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},a.prototype._focusFirstTab=function(){if(this._getTabs()){var e=this._findTab((function(e){return e._isEnabled()}));e&&this._moveFocus(this.getFocusedTab(),e)}},a.prototype._focusLastTab=function(){if(this._getTabs()){var e=this._findTabReverse((function(e){return e._isEnabled()}));e&&this._moveFocus(this.getFocusedTab(),e)}},a.prototype._focusNextTab=function(e){if(this._getTabs()){var t=this._findTab((function(e){return e._isEnabled()}),e+1);t?this._moveFocus(this.getFocusedTab(),t):this._focusFirstTab()}},a.prototype._focusPreviousTab=function(e){if(this._getTabs()){var t=this._findTabReverse((function(e){return e._isEnabled()}),e-1);t?this._moveFocus(this.getFocusedTab(),t):this._focusLastTab()}},a.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),a=this.getFocusedTab();if(a&&n){var o=n.indexOf(a);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:e.preventDefault(),this._focusPreviousTab(o);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:e.preventDefault(),this._focusNextTab(o);break;case t.SPACE:case t.ENTER:this._$timeout((function(){a.getButtonEl().click()}));break;case t.HOME:e.preventDefault(),this._focusFirstTab();break;case t.END:e.preventDefault(),this._focusLastTab()}}},r.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},r.prototype.getName=function(){return this.name},r.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},r.prototype.setSelected=function(e){this._selected=e,e?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},r.prototype.isSelected=function(){return this._selected},r.prototype.setFocused=function(e){this._focused=e,e&&this.getButtonEl().focus()},r.prototype.hasFocus=function(){return this._focused},r.prototype._isEnabled=function(){return!this._$element.attr("disabled")}}(),function(){l.$inject=["presets","$rootElement","$rootScope","$injector","$window"],t.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",(function(){return{definePreset:r,getAllPresets:i,clearPresets:s,$get:["$rootElement","$rootScope","$injector","$window",function(e,t,n,a){return new l(o,e,t,n,a)}]}}));var e="_md-panel-hidden",a=t.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),o={};function r(e,t){if(!e||!t)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(o.hasOwnProperty(e))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete t.id,delete t.position,delete t.animation,o[e]=t}function i(){return t.copy(o)}function s(){o={}}function l(e,n,a,o,r){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:t.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:80},this._config={},this._presets=e,this._$rootElement=n,this._$rootScope=a,this._$injector=o,this._$window=r,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=d.animation,this.xPosition=u.xPosition,this.yPosition=u.yPosition,this.interceptorTypes=c.interceptorTypes,this.closeReasons=c.closeReasons,this.absPosition=u.absPosition}function c(e,t){this._$q=t.get("$q"),this._$mdCompiler=t.get("$mdCompiler"),this._$mdConstant=t.get("$mdConstant"),this._$mdUtil=t.get("$mdUtil"),this._$mdTheming=t.get("$mdTheming"),this._$rootScope=t.get("$rootScope"),this._$animate=t.get("$animate"),this._$mdPanel=t.get("$mdPanel"),this._$log=t.get("$log"),this._$window=t.get("$window"),this._$$rAF=t.get("$$rAF"),this.id=e.id,this.config=e,this.panelContainer=n,this.panelEl=n,this.innerWrapper=n,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap=n,this._bottomFocusTrap=n,this._backdropRef=n,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function u(e){this._$window=e.get("$window"),this._isRTL=e.get("$mdUtil").isRtl(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl=n,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition=n}function d(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function f(e){var n=t.isString(e)?document.querySelector(e):e;return t.element(n)}function m(e,n){if(null!==n&&!t.isUndefined(n)){for(var a,o=Object.keys(e),r=[],i=0;a=o[i];i++){var s=e[a];if(r.push(s),s===n)return}throw new Error("Panel position only accepts the following values:\n"+r.join(" | "))}}function p(e){return t.isNumber(e)?e+"px":e}l.prototype.create=function(e,n){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!t.isUndefined(n)&&n||(n=e,e={}),e=e||{},n=n||{},t.isDefined(n.id)&&this._trackedPanels[n.id]){var a=this._trackedPanels[n.id];return t.extend(a.config,n),a}this._config=t.extend({id:n.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,n,e);var o=new c(this._config,this._$injector);return this._trackedPanels[this._config.id]=o,this._config.groupName&&(t.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),t.forEach(this._config.groupName,(function(e){o.addToGroup(e)}))),this._config.scope.$on("$destroy",t.bind(o,o.detach)),o},l.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then((function(){return n}))},l.prototype._getPresetByName=function(e){if(!this._presets[e])throw new Error("mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.");return this._presets[e]},l.prototype.newPanelPosition=function(){return new u(this._$injector)},l.prototype.newPanelAnimation=function(){return new d(this._$injector)},l.prototype.newPanelGroup=function(e,t){if(!this._groups[e]){var n={panels:[],openPanels:[],maxOpen:(t=t||{}).maxOpen>0?t.maxOpen:1/0};this._groups[e]=n}return this._groups[e]},l.prototype.setGroupMaxOpen=function(e,t){if(!this._groups[e])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[e].maxOpen=t},l.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return t.maxOpen>0&&t.openPanels.length>t.maxOpen}return!1},l.prototype._closeFirstOpenedPanel=function(e){this._groups[e].openPanels[0].close()},l.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper"><div class="md-panel-inner-wrapper _md-panel-offscreen"><div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div></div>"},l.prototype._wrapContentElement=function(e){var n=t.element('<div class="md-panel-outer-wrapper"><div class="md-panel-inner-wrapper _md-panel-offscreen"></div></div>');return e.addClass("md-panel _md-panel-offscreen"),n.children().eq(0).append(e),n},c.interceptorTypes={CLOSE:"onClose"},c.prototype.open=function(){var e=this;return this._$q((function(n,a){var o=e._done(n,e),r=e._simpleBind(e.show,e);e.attach().then(r).then((function(){e.config.groupName&&t.forEach(e.config.groupName,(function(t){e._$mdPanel._openCountExceedsMaxOpen(t)&&e._$mdPanel._closeFirstOpenedPanel(t)}))})).then(o).catch(a)}))},c.prototype.close=function(e){var n=this;return this._$q((function(a,o){n._callInterceptors(c.interceptorTypes.CLOSE).then((function(){var r=n._done(a,n),i=n._simpleBind(n.detach,n),s=n.config.onCloseSuccess||t.noop;s=t.bind(n,s,n,e),n.hide().then(i).then(r).then(s).catch(o)}),o)}))},c.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var e=this;return this._$q((function(n,a){var o=e._done(n,e),r=e.config.onDomAdded||t.noop;e._$q.all([e._createBackdrop(),e._createPanel().then((function(t){return e.isAttached=!0,e._addEventListeners(),t})).catch(a)]).then(r).then(o).catch(a)}))},c.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var e=this,n=e.config.onDomRemoved||t.noop;return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q((function(t,a){var o=e._done(t,e);e._$q.all([(e._removeEventListeners(),e._topFocusTrap&&e._topFocusTrap.parentNode&&e._topFocusTrap.parentNode.removeChild(e._topFocusTrap),e._bottomFocusTrap&&e._bottomFocusTrap.parentNode&&e._bottomFocusTrap.parentNode.removeChild(e._bottomFocusTrap),e._restoreCache.classes&&(e.panelEl[0].className=e._restoreCache.classes),e.panelEl[0].style.cssText=e._restoreCache.styles||"",e._compilerCleanup(),e.panelContainer.remove(),e.isAttached=!1,e._$q.when(e)),!e._backdropRef||e._backdropRef.detach()]).then(n).then(o).catch(a)}))},c.prototype.destroy=function(){var e=this;this.config.groupName&&t.forEach(this.config.groupName,(function(t){e.removeFromGroup(t)})),this.config.scope.$destroy(),this.config.locals=null,this.config.onDomAdded=null,this.config.onDomRemoved=null,this.config.onRemoving=null,this.config.onOpenComplete=null,this._interceptors=n},c.prototype.show=function(){if(!this.panelContainer)return this._$q((function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")}));if(!this.panelContainer.hasClass(e))return this._$q.when(this);var n=this;return this._$q((function(a,o){var r=n._done(a,n),i=n.config.onOpenComplete||t.noop;n._$q.all([n._backdropRef?n._backdropRef.show():n,(n.panelContainer.removeClass(e),n._animateOpen()).then((function(){n._focusOnOpen()}),o)]).then(i).then((function(){n.config.groupName&&t.forEach(n.config.groupName,(function(e){n._$mdPanel._groups[e].openPanels.push(n)}))})).then(r).catch(o)}))},c.prototype.hide=function(){if(!this.panelContainer)return this._$q((function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")}));if(this.panelContainer.hasClass(e))return this._$q.when(this);var n=this;return this._$q((function(a,o){var r=n._done(a,n),i=n.config.onRemoving||t.noop;n._$q.all([n._backdropRef?n._backdropRef.hide():n,n._animateClose().then(i).then((function(){n.panelContainer.addClass(e)})).then((function(){var e;n.config.groupName&&t.forEach(n.config.groupName,(function(t){t=n._$mdPanel._groups[t],(e=t.openPanels.indexOf(n))>-1&&t.openPanels.splice(e,1)}))})).then((function(){var e=n.config.origin;e&&f(e).focus()})).catch(o)]).then(r,o)}))},c.prototype.addClass=function(e,t){if(this._$log.warn("mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t||this.panelContainer.hasClass(e)?t&&!this.panelEl.hasClass(e)&&this.panelEl.addClass(e):this.panelContainer.addClass(e)},c.prototype.removeClass=function(e,t){if(this._$log.warn("mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");!t&&this.panelContainer.hasClass(e)?this.panelContainer.removeClass(e):t&&this.panelEl.hasClass(e)&&this.panelEl.removeClass(e)},c.prototype.toggleClass=function(e,t){if(this._$log.warn("mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t?this.panelEl.toggleClass(e):this.panelContainer.toggleClass(e)},c.prototype._compile=function(){var e=this;return e._$mdCompiler.compile(e.config).then((function(n){var a=e.config;if(a.contentElement){var o=n.element;e._restoreCache.styles=o[0].style.cssText,e._restoreCache.classes=o[0].className,e.panelContainer=e._$mdPanel._wrapContentElement(o),e.panelEl=o}else e.panelContainer=n.link(a.scope),e.panelEl=t.element(e.panelContainer[0].querySelector(".md-panel"));return e.innerWrapper=t.element(e.panelContainer[0].querySelector(".md-panel-inner-wrapper")),e._compilerCleanup=n.cleanup,f(e.config.attachTo).append(e.panelContainer),e}))},c.prototype._createPanel=function(){var e=this;return this._$q((function(t,n){e.config.locals||(e.config.locals={}),e.config.locals.mdPanelRef=e,e._compile().then((function(){e.config.disableParentScroll&&(e._restoreScroll=e._$mdUtil.disableScrollAround(null,e.panelContainer,{disableScrollMask:!0})),e.config.panelClass&&e.panelEl.addClass(e.config.panelClass),e.config.propagateContainerEvents&&(e.panelContainer.css("pointer-events","none"),e.panelEl.css("pointer-events","all")),e._$animate.pin&&e._$animate.pin(e.panelContainer,f(e.config.attachTo)),e._configureTrapFocus(),e._addStyles().then((function(){t(e)}),n)}),n)}))},c.prototype._addStyles=function(){var t=this;return this._$q((function(n){t.panelContainer.css("z-index",t.config.zIndex),t.innerWrapper.css("z-index",t.config.zIndex+1);var a=function(){t._setTheming(),t.panelEl.removeClass("_md-panel-offscreen"),t.innerWrapper.removeClass("_md-panel-offscreen"),t.panelContainer.addClass(e),n(t)};if(t.config.fullscreen)return t.panelEl.addClass("_md-panel-fullscreen"),void a();t.config.position?t._$rootScope.$$postDigest((function(){t._updatePosition(!0),t._setTheming(),n(t)})):a()}))},c.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},c.prototype.updatePosition=function(e){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=e,this._updatePosition()},c.prototype._updatePosition=function(t){var n=this.config.position;n&&(n._setPanelPosition(this.innerWrapper),t&&(this.panelEl.removeClass("_md-panel-offscreen"),this.innerWrapper.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(e)),this.innerWrapper.css(u.absPosition.TOP,n.getTop()),this.innerWrapper.css(u.absPosition.BOTTOM,n.getBottom()),this.innerWrapper.css(u.absPosition.LEFT,n.getLeft()),this.innerWrapper.css(u.absPosition.RIGHT,n.getRight()))},c.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest((function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()}))}},c.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var e=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&e.duration(this.config.animation._rawDuration);var t={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(t)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},c.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},c.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach((function(e){e()})),this._removeListeners=[]},c.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=f(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(c.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push((function(){t.panelContainer.off("keydown",n),e.off("keydown",n)}))}},c.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var e,n=this.config.propagateContainerEvents?t.element(document.body):this.panelContainer,a=function(t){e=t.target},o=this,r=function(t){o.config.propagateContainerEvents?e===o.panelEl[0]||o.panelEl[0].contains(e)||o.close():e===n[0]&&t.target===n[0]&&(t.stopPropagation(),t.preventDefault(),o.close(c.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",a),n.on("mouseup",r),this._removeListeners.push((function(){n.off("mousedown",a),n.off("mouseup",r)}))}},c.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=t.bind(this,this._updatePosition),n=this._$$rAF.throttle(e),a=this,o=function(){n()};this._$window.addEventListener("scroll",o,!0),this._removeListeners.push((function(){a._$window.removeEventListener("scroll",o,!0)}))}},c.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var e=this.panelEl;this._topFocusTrap=a.clone()[0],this._bottomFocusTrap=a.clone()[0];var t=function(){e.focus()};this._topFocusTrap.addEventListener("focus",t),this._bottomFocusTrap.addEventListener("focus",t),this._removeListeners.push(this._simpleBind((function(){this._topFocusTrap.removeEventListener("focus",t),this._bottomFocusTrap.removeEventListener("focus",t)}),this)),e[0].parentNode.insertBefore(this._topFocusTrap,e[0]),e.after(this._bottomFocusTrap)}},c.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},c.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var e=this.config.animation;if(!e)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var t=this;return this._$q((function(n){var a=t._done(n,t);e.animateOpen(t.panelEl).then(a,(function(){t._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),a()}))}))},c.prototype._animateClose=function(){var e=this,t=this.config.animation;return t?this._$q((function(n){var a=function(){e.panelContainer.removeClass("md-panel-is-showing"),e.panelEl.css("transform",""),n(e)};t.animateClose(e.panelEl).then(a,(function(){e._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),a()}))})):(this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this))},c.prototype.registerInterceptor=function(e,n){var a=null;if(t.isString(e)?t.isFunction(n)||(a="Interceptor callback must be a function, instead got "+typeof n):a="Interceptor type must be a string, instead got "+typeof e,a)throw new Error("MdPanel: "+a);var o=this._interceptors[e]=this._interceptors[e]||[];return-1===o.indexOf(n)&&o.push(n),this},c.prototype.removeInterceptor=function(e,t){var n=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return n>-1&&this._interceptors[e].splice(n,1),this},c.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},c.prototype._callInterceptors=function(e){var n=this,a=n._$q;return(n._interceptors&&n._interceptors[e]||[]).reduceRight((function(e,o){var r=o&&t.isFunction(o.then)?o:null;return e.then((function(){if(!r)try{r=o(n)}catch(e){r=a.reject(e)}return r}))}),a.resolve(n))},c.prototype._simpleBind=function(e,t){return function(n){return e.apply(t,n)}},c.prototype._done=function(e,t){return function(){e(t)}},c.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);var t=this._$mdPanel._groups[e];t.panels.indexOf(this)<0&&t.panels.push(this)},c.prototype.removeFromGroup=function(e){if(!this._$mdPanel._groups[e])throw new Error("mdPanel: The group "+e+" does not exist.");var t=this._$mdPanel._groups[e],n=t.panels.indexOf(this);n>-1&&t.panels.splice(n,1)},c.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},u.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},u.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},u.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},u.viewportMargin=8,u.prototype.absolute=function(){return this._absolute=!0,this},u.prototype._setPosition=function(e,n){if(e===u.absPosition.RIGHT||e===u.absPosition.LEFT)this._left=this._right="";else{if(e!==u.absPosition.BOTTOM&&e!==u.absPosition.TOP){var a=Object.keys(u.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+a+".")}this._top=this._bottom=""}return this["_"+e]=t.isString(n)?n:"0",this},u.prototype.top=function(e){return this._setPosition(u.absPosition.TOP,e)},u.prototype.bottom=function(e){return this._setPosition(u.absPosition.BOTTOM,e)},u.prototype.start=function(e){var t=this._isRTL?u.absPosition.RIGHT:u.absPosition.LEFT;return this._setPosition(t,e)},u.prototype.end=function(e){var t=this._isRTL?u.absPosition.LEFT:u.absPosition.RIGHT;return this._setPosition(t,e)},u.prototype.left=function(e){return this._setPosition(u.absPosition.LEFT,e)},u.prototype.right=function(e){return this._setPosition(u.absPosition.RIGHT,e)},u.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},u.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},u.prototype.center=function(){return this.centerHorizontally().centerVertically()},u.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=f(e),this},u.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return m(u.xPosition,e),m(u.yPosition,t),this._positions.push({x:e,y:t}),this},u.prototype.withOffsetX=function(e){return this._translateX.push(p(e)),this},u.prototype.withOffsetY=function(e){return this._translateY.push(p(e)),this},u.prototype.getTop=function(){return this._top},u.prototype.getBottom=function(){return this._bottom},u.prototype.getLeft=function(){return this._left},u.prototype.getRight=function(){return this._right},u.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},u.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},u.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var a=function(e,t){var n=getComputedStyle(e[0]||e)[t],a=n.indexOf("("),o=n.lastIndexOf(")"),r={x:0,y:0};if(a>-1&&o>-1){var i=n.substring(a+1,o).split(", ").slice(-2);r.x=parseInt(i[0]),r.y=parseInt(i[1])}return r}(e,this._$mdConstant.CSS.TRANSFORM);t+=a.x,n+=a.y}var o=t+e[0].offsetWidth,r=n+e[0].offsetHeight;return t>=0&&n>=0&&r<=this._$window.innerHeight&&o<=this._$window.innerWidth},u.prototype.getActualPosition=function(){return this._actualPosition},u.prototype._reduceTranslateValues=function(e,n){return n.map((function(n){var a=t.isFunction(n)?p(n(this)):n;return e+"("+a+")"}),this).join(" ")},u.prototype._setPanelPosition=function(e){if(e.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(e);else{if(this._actualPosition)return this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),void this._constrainToViewport(e);for(var t=0;t<this._positions.length;t++)if(this._actualPosition=this._positions[t],this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),this._isOnscreen(e))return;this._constrainToViewport(e)}},u.prototype._constrainToViewport=function(e){var t=u.viewportMargin,n=this._top,a=this._left;if(this.getTop()){var o=parseInt(this.getTop()),r=e[0].offsetHeight+o,i=this._$window.innerHeight;o<t?this._top=t+"px":r>i&&(this._top=o-(r-i+t)+"px")}if(this.getLeft()){var s=parseInt(this.getLeft()),l=e[0].offsetWidth+s,c=this._$window.innerWidth;s<t?this._left=t+"px":l>c&&(this._left=s-(l-c+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==a)},u.prototype._reverseXPosition=function(e){if(e===u.xPosition.CENTER)return e;var t="start";return e.indexOf(t)>-1?e.replace(t,"end"):e.replace("end",t)},u.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},u.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),a=Math.max(n.width,e[0].clientWidth),o=Math.max(n.height,e[0].clientHeight),r=this._relativeToEl[0].getBoundingClientRect(),i=r.left,s=r.right,l=r.width;switch(this._bidi(t.x)){case u.xPosition.OFFSET_START:this._left=i-a+"px";break;case u.xPosition.ALIGN_END:this._left=s-a+"px";break;case u.xPosition.CENTER:var c=i+.5*l-.5*a;this._left=c+"px";break;case u.xPosition.ALIGN_START:this._left=i+"px";break;case u.xPosition.OFFSET_END:this._left=s+"px"}var d=r.top,f=r.bottom,m=r.height;switch(t.y){case u.yPosition.ABOVE:this._top=d-o+"px";break;case u.yPosition.ALIGN_BOTTOMS:this._top=f-o+"px";break;case u.yPosition.CENTER:var p=d+.5*m-.5*o;this._top=p+"px";break;case u.yPosition.ALIGN_TOPS:this._top=d+"px";break;case u.yPosition.BELOW:this._top=f+"px"}},d.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},d.prototype.openFrom=function(e){return e=e.target?e.target:e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},d.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},d.prototype.duration=function(e){return e&&(t.isNumber(e)?this._openDuration=this._closeDuration=n(e):t.isObject(e)&&(this._openDuration=n(e.open),this._closeDuration=n(e.close))),this._rawDuration=e,this;function n(e){if(t.isNumber(e))return e/1e3}},d.prototype._getPanelAnimationTarget=function(e){return t.isDefined(e.top)||t.isDefined(e.left)?{element:n,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(f(e))},d.prototype.withAnimation=function(e){return this._animationClass=e,this},d.prototype.animateOpen=function(e){var n=this._$mdUtil.dom.animator;this._fixBounds(e);var a={},o=e[0].style.transform||"",r=n.toTransformCss(o),i=n.toTransformCss(o);switch(this._animationClass){case d.animation.SLIDE:e.css("opacity","1"),a={transitionInClass:"_md-panel-animate-enter",transitionOutClass:"_md-panel-animate-leave"};var s=n.calculateSlideToOrigin(e,this._openFrom)||"";r=n.toTransformCss(s+" "+o);break;case d.animation.SCALE:a={transitionInClass:"_md-panel-animate-enter"};var l=n.calculateZoomToOrigin(e,this._openFrom)||"";r=n.toTransformCss(o+" "+l);break;case d.animation.FADE:a={transitionInClass:"_md-panel-animate-enter"};break;default:a=t.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return a.duration=this._openDuration,n.translate3d(e,r,i,a)},d.prototype.animateClose=function(e){var n=this._$mdUtil.dom.animator,a={},o=e[0].style.transform||"",r=n.toTransformCss(o),i=n.toTransformCss(o);switch(this._animationClass){case d.animation.SLIDE:e.css("opacity","1"),a={transitionInClass:"_md-panel-animate-leave",transitionOutClass:"_md-panel-animate-enter _md-panel-animate-leave"};var s=n.calculateSlideToOrigin(e,this._closeTo)||"";i=n.toTransformCss(s+" "+o);break;case d.animation.SCALE:a={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave",transitionOutClass:"_md-panel-animate-scale-out _md-panel-animate-enter _md-panel-animate-leave"};var l=n.calculateZoomToOrigin(e,this._closeTo)||"";i=n.toTransformCss(o+" "+l);break;case d.animation.FADE:a={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave",transitionOutClass:"_md-panel-animate-fade-out _md-panel-animate-enter _md-panel-animate-leave"};break;default:a=t.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return a.duration=this._closeDuration,n.translate3d(e,r,i,a)},d.prototype._fixBounds=function(e){var t=e[0].offsetWidth,n=e[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},d.prototype._getBoundingClientRect=function(e){if(e instanceof t.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),t.module("material.components.progressCircular",["material.core"]),function(){function e(e,n,a,o,r,i){var s=e.requestAnimationFrame||e.webkitRequestAnimationFrame||t.noop,l=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame||t.noop,c="determinate",u="indeterminate",d="_md-progress-circular-disabled",f="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(e,n){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),t.isUndefined(n.mdMode)){var a=n.hasOwnProperty("value")?c:u;n.$set("mdMode",a)}else n.$set("mdMode",n.mdMode.trim());return m}};function m(i,m,v){var A,S,w=m[0],E=t.element(w.querySelector("svg")),C=t.element(w.querySelector("path")),T=n.startIndeterminate,I=n.endIndeterminate,k=0,D=0;function x(t,a,r,l,c,u){var d=++D,f=o.now(),m=a-t,p=_(i.mdDiameter),h=b(p),y=r||n.easeFn,v=l||n.duration,S=-90*(c||0),w=u||100;function E(e){C.attr("stroke-dashoffset",g(p,h,e,w)),C.attr("transform","rotate("+S+" "+p/2+" "+p/2+")")}a===t?E(a):A=s((function n(){var a=e.Math.max(0,e.Math.min(o.now()-f,v));E(y(a,t,m,v)),d===D&&a<v&&(A=s(n))}))}function M(){x(T,I,n.easeFnIndeterminate,n.durationIndeterminate,k,75),k=++k%4}function P(){S||(S=r(M,n.durationIndeterminate,0,!1),M(),m.addClass(f).removeAttr("aria-valuenow"))}function O(){S&&(r.cancel(S),S=null,m.removeClass(f))}a(m),m.toggleClass(d,v.hasOwnProperty("disabled")),i.mdMode===u&&P(),i.$on("$destroy",(function(){O(),A&&l(A)})),i.$watchGroup(["value","mdMode",function(){var e=w.disabled;return!0===e||!1===e?e:t.isDefined(m.attr("disabled"))}],(function(e,t){var n=e[1],a=e[2],o=0,r=0;if(a!==t[2]&&m.toggleClass(d,!!a),a)O();else if(n!==c&&n!==u&&(n=u,v.$set("mdMode",n)),n===u)t[1]===c&&(r=b(o=_(i.mdDiameter)),C.attr("d",p(o,r,!0)),C.attr("stroke-dasharray",y(o,r,75))),P();else{var s=h(e[0]),l=h(t[0]);O(),t[1]===u&&(r=b(o=_(i.mdDiameter)),C.attr("d",p(o,r,!1)),C.attr("stroke-dasharray",y(o,r,100))),m.attr("aria-valuenow",s),x(l,s)}})),i.$watch("mdDiameter",(function(e){var t=_(e),n=b(t),a=h(i.value),o=t/2+"px",r={width:t+"px",height:t+"px"};E[0].setAttribute("viewBox","0 0 "+t+" "+t),E.css(r).css("transform-origin",o+" "+o+" "+o),m.css(r),C.attr("stroke-width",n),C.attr("stroke-linecap","square"),i.mdMode==u?(C.attr("d",p(t,n,!0)),C.attr("stroke-dasharray",y(t,n,75)),C.attr("stroke-dashoffset",g(t,n,1,75))):(C.attr("d",p(t,n,!1)),C.attr("stroke-dasharray",y(t,n,100)),C.attr("stroke-dashoffset",g(t,n,0,100)),x(a,a))}))}function p(e,t,n){var a=e/2,o=t/2,r=a+","+o,i=a-o;return"M"+r+"A"+i+","+i+" 0 1 1 "+(o+","+a)+(n?"":"A"+i+","+i+" 0 0 1 "+r)}function g(e,t,n,a){return v(e,t)*((a-n)/100)}function h(t){return e.Math.max(0,e.Math.min(t||0,100))}function _(e){var t=n.progressSize;if(e){var a=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(a=a/100*t),a}return t}function b(e){return n.strokeWidth/100*e}function y(e,t,n){return v(e,t)*(n/100)}function v(t,n){return(t-n)*e.Math.PI}}e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],t.module("material.components.progressCircular").directive("mdProgressCircular",e)}(),t.module("material.components.progressCircular").provider("$mdProgressCircular",(function(){var e={progressSize:50,strokeWidth:10,duration:100,easeFn:n,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:a,easingPresets:{linearEase:n,materialEase:a}};return{configure:function(n){return e=t.extend(e,n||{})},$get:function(){return e}};function n(e,t,n,a){return n*e/a+t}function a(e,t,n,a){var o=(e/=a)*e,r=o*e;return t+n*(6*r*o+-15*o*o+10*r)}})),function(){function e(e,n,a){var o="determinate",r="indeterminate",i="buffer",s="query",l="_md-progress-linear-disabled";return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:function(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),c}};function c(a,c,d){var f;e(c);var m=d.hasOwnProperty("disabled"),p=n.dom.animator.toCss,g=t.element(c[0].querySelector(".md-bar1")),h=t.element(c[0].querySelector(".md-bar2")),_=t.element(c[0].querySelector(".md-container"));function b(){var e=(d.mdMode||"").trim();if(e)switch(e){case o:case r:case i:case s:break;default:e=r}return e}function y(e,a){if(!m&&b()){var o=n.supplant("translateX({0}%) scale({1},1)",[(a-100)/2,a/100]),r=p({transform:o});t.element(e).css(r)}}c.attr("md-mode",b()).toggleClass(l,m),function(){if(t.isUndefined(d.mdMode)){var e=t.isDefined(d.value)?o:r;c.attr("md-mode",e),d.mdMode=e}}(),d.$observe("value",(function(e){var t=u(e);c.attr("aria-valuenow",t),b()!=s&&y(h,t)})),d.$observe("mdBufferValue",(function(e){y(g,u(e))})),d.$observe("disabled",(function(e){m=!0===e||!1===e?!!e:t.isDefined(e),c.toggleClass(l,m),_.toggleClass(f,!m)})),d.$observe("mdMode",(function(e){switch(f&&_.removeClass(f),e){case s:case i:case o:case r:_.addClass(f="md-mode-"+e);break;default:_.addClass(f="md-mode-indeterminate")}}))}function u(e){return Math.max(0,Math.min(e||0,100))}}e.$inject=["$mdTheming","$mdUtil","$log"],t.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e)}(),function(){function e(e,n,a,o){return r.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=t.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach((function(e){e()}))},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return i(this.$element,1)},selectPrevious:function(){return i(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}},{restrict:"E",controller:["$element",r],require:["mdRadioGroup","?ngModel"],link:{pre:function(r,i,s,l){i.addClass("_md"),a(i);var c=l[0],u=l[1]||e.fakeNgModel();function d(){i.hasClass("md-focused")||i.addClass("md-focused")}c.init(u),r.mouseActive=!1,i.attr({role:"radiogroup",tabIndex:i.attr("tabindex")||"0"}).on("keydown",(function(a){var o=a.which||a.keyCode;if(o===n.KEY_CODE.ENTER||a.currentTarget===a.target)switch(o){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:a.preventDefault(),c.selectPrevious(),d();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:a.preventDefault(),c.selectNext(),d();break;case n.KEY_CODE.ENTER:var r=t.element(e.getClosest(i[0],"form"));r.length>0&&r.triggerHandler("submit")}})).on("mousedown",(function(e){r.mouseActive=!0,o((function(){r.mouseActive=!1}),100)})).on("focus",(function(){!1===r.mouseActive&&c.$element.addClass("md-focused")})).on("blur",(function(){c.$element.removeClass("md-focused")}))}}};function r(e){this._radioButtonRenderFns=[],this.$element=e}function i(n,a){var o=e.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(o.count()){var r=n[0].querySelector("md-radio-button.md-checked"),i=o[a<0?"previous":"next"](r,(function(e){return!t.element(e).attr("disabled")}))||o.first();t.element(i).triggerHandler("click")}}}function n(e,t,n){var a="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:function(o,r,i,s){var l;n(r),function(n,a){n.attr({id:i.id||"radio_"+t.nextUid(),role:"radio","aria-checked":"false"}),e.expectWithText(n,"aria-label")}(r),i.ngValue?t.nextTick(c,!1):c();function c(){if(!s)throw"RadioButton: No RadioGroupController could be found.";s.add(d),i.$observe("value",d),r.on("click",u).on("$destroy",(function(){s.remove(d)}))}function u(e){r[0].hasAttribute("disabled")||s.isDisabled()||o.$apply((function(){s.setViewValue(i.value,e&&e.type)}))}function d(){var e=s.getViewValue()==i.value;e!==l&&("md-radio-group"!==r[0].parentNode.nodeName.toLowerCase()&&r.parent().toggleClass(a,e),e&&s.setActiveDescendant(r.attr("id")),l=e,r.attr("aria-checked",e).toggleClass(a,e))}}}}e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],n.$inject=["$mdAria","$mdUtil","$mdTheming"],t.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",n)}(),function(){r.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],i.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],s.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],c.$inject=["$$interimElementProvider"],l.$inject=["$element"];var a=0,o=t.element('<div class="md-container"><div class="md-icon"></div></div>');function r(e,a,o,r,i,s,l,c){return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(c,d){var f=a.parseAttributeBoolean(d.multiple),m=t.element("<md-select-value><span></span></md-select-value>");m.append('<span class="md-select-icon" aria-hidden="true"></span>'),m.addClass("md-select-value"),m[0].hasAttribute("id")||m.attr("id","select_value_label_"+a.nextUid());var p=c.find("md-content");p.length||(c.append(t.element("<md-content>").append(c.contents())),p=c.find("md-content"));p.attr("role","listbox"),p.attr("tabindex","-1"),f?p.attr("aria-multiselectable","true"):p.attr("aria-multiselectable","false");d.mdOnOpen&&(c.find("md-content").prepend(t.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),c.find("md-option").attr("ng-show","$$loadingAsyncDone"));if(d.name){var g=t.element('<select class="md-visually-hidden"></select>');g.attr({name:d.name,"aria-hidden":"true",tabindex:"-1"});var h=c.find("md-option");t.forEach(h,(function(e){var n=t.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&n.attr("value",e.getAttribute("value")),g.append(n)})),g.append('<option ng-value="'+d.ngModel+'" selected></option>'),c.parent().append(g)}var _=f?"multiple":"",b=d.ngModelOptions?a.supplant('ng-model-options="{0}"',[d.ngModelOptions]):"",y='<div class="md-select-menu-container" aria-hidden="true" role="presentation">  <md-select-menu role="presentation" {0} {1}>{2}</md-select-menu></div>';y=a.supplant(y,[_,b,c.html()]),c.empty().append(m),c.append(y),d.tabindex||d.$set("tabindex",0);return function(c,d,f,m){var p,g,h,_,b,y=!0,v=m[0],A=m[1],S=m[2],w=m[3],E=d.find("md-select-value"),C=t.isDefined(f.readonly),T=a.parseAttributeBoolean(f.mdNoAsterisk),I=t.isDefined(f.ariaLabelledby),k=d.find("md-content");if(T&&d.addClass("md-no-asterisk"),v){var D=v.isErrorGetter||function(){return S.$invalid&&(S.$touched||w&&w.$submitted)};if(v.input&&d.find("md-select-header").find("input")[0]!==v.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");if(v.input=d,v.label)v.label.attr("aria-hidden","true"),k.attr("aria-label",v.label.text());else{i.expect(d,"aria-label",d.attr("placeholder"));var x=d.attr("aria-label");x||(x=d.attr("placeholder")),k.attr("aria-label",x)}var M=c.$watch(D,v.setInvalid)}h=function(){var e=t.element(d[0].querySelector(".md-select-menu-container"));return _=c,f.mdContainerClass&&e.addClass(f.mdContainerClass),(b=e.find("md-select-menu").controller("mdSelectMenu")).init(S,f),d.on("$destroy",(function(){e.remove()})),e}(),r(d);var P=S.$render;S.$render=function(){P(),L(),Y()};var O=f.$observe("placeholder",S.$render),R=f.$observe("required",(function(e){v&&v.label&&v.label.toggleClass("md-required",e&&!T),d.removeAttr("aria-required"),e?k.attr("aria-required","true"):k.removeAttr("aria-required")}));if(A.setSelectValueText=function(e){var t=e===n||""===e,a=!1;if(A.setIsPlaceholder(!e),f.mdSelectedText&&f.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(f.mdSelectedText||f.mdSelectedHtml)e=s(f.mdSelectedText||f.mdSelectedHtml)(c),a=!0;else if(t){e=f.placeholder||(v&&v.label?v.label.text():"")||"",a=!0}var o=E.children().eq(0);f.mdSelectedHtml?o.html(l.getTrustedHtml(e)):a?o.text(e):o.html(e),t?(E.attr("aria-hidden","true"),I||d.removeAttr("aria-labelledby")):(E.removeAttr("aria-hidden"),I||d.attr("aria-labelledby",d[0].id+" "+E[0].id))},A.setIsPlaceholder=function(e){e?(E.addClass("md-select-placeholder"),v&&v.label&&v.label.addClass("md-placeholder")):(E.removeClass("md-select-placeholder"),v&&v.label&&v.label.removeClass("md-placeholder"))},!C){d.on("focus",(function(e){v&&v.setFocused(!0)})),d.on("blur",(function(e){y&&(y=!1,_._mdSelectIsOpen&&e.stopImmediatePropagation()),v&&v.setFocused(!1),Y()}))}A.triggerClose=function(){s(f.mdOnClose)(c)},c.$$postDigest((function(){!function(){var e=d.attr("aria-label")||d.attr("placeholder");!e&&v&&v.label&&(e=v.label.text());i.expect(d,"aria-label",e)}(),L()}));var N=c.$watch((function(){return b.getSelectedLabels()}),L);function L(){b=b||h.find("md-select-menu").controller("mdSelectMenu"),A.setSelectValueText(b.getSelectedLabels())}var $=f.$observe("ngMultiple",(function(e){g&&g();var t=s(e);g=c.$watch((function(){return t(c)}),(function(e,t){var a=h.find("md-select-menu");if(e!==n||t!==n){if(e){var o={multiple:"multiple"};d.attr(o),a.attr(o)}else d.removeAttr("multiple"),a.removeAttr("multiple");d.find("md-content").attr("aria-multiselectable",e?"true":"false"),h&&(b.setMultiple(Boolean(e)),P=S.$render,S.$render=function(){P(),L(),Y()},S.$render())}}))})),U=f.$observe("disabled",(function(e){t.isString(e)&&(e=!0),p!==n&&p===e||(p=e,e?d.attr({"aria-disabled":"true"}).removeAttr("tabindex").removeAttr("aria-expanded").removeAttr("aria-haspopup").off("click",B).off("keydown",H):d.attr({tabindex:f.tabindex,"aria-haspopup":"listbox"}).removeAttr("aria-disabled").on("click",B).on("keydown",H))}));f.hasOwnProperty("disabled")||f.hasOwnProperty("ngDisabled")||(d.attr({"aria-disabled":"false"}),d.on("click",B),d.on("keydown",H));var j={role:"button","aria-haspopup":"listbox"};d[0].hasAttribute("id")||(j.id="select_"+a.nextUid());var F="select_container_"+a.nextUid();h.attr("id",F);var q="select_listbox_"+a.nextUid();function Y(){a.nextTick((function(){v&&v.setHasValue(b.getSelectedLabels().length>0||(d[0].validity||{}).badInput)}))}function H(e){if(o.isNavigationKey(e))e.preventDefault(),B();else if(u(e,o)){e.preventDefault();var n=b.optNodeForKeyboardSearch(e);if(!n||n.hasAttribute("disabled"))return;var a=t.element(n).controller("mdOption");b.isMultiple||t.forEach(Object.keys(b.selected),(function(e){b.deselect(e)})),b.select(a.hashKey,a.value),b.refreshViewValue()}}function B(){_._mdSelectIsOpen=!0,d.attr("aria-expanded","true"),e.show({scope:_,preserveScope:!0,skipCompile:!0,element:h,target:d[0],selectCtrl:A,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!f.mdOnOpen&&(c.$eval(f.mdOnOpen)||!0)}).finally((function(){_._mdSelectIsOpen=!1,d.removeAttr("aria-expanded"),d.removeAttr("aria-activedescendant"),S.$setTouched()}))}h.find("md-content").attr("id",q),d.find("md-select-menu").length||(j["aria-owns"]=q),d.attr(j),c.$on("$destroy",(function(){R&&R(),U&&U(),g&&g(),$&&$(),N&&N(),O&&O(),M&&M(),d.off("focus"),d.off("blur"),e.destroy().finally((function(){v&&(v.setFocused(!1),v.setHasValue(!1),v.input=null),S.$setTouched()}))}))}},controller:function(){}}}function i(e,o,r,i){return s.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:s,link:{pre:function(e,n,a,r){var s=r[0];function l(n){var a=o.getClosest(n.target,"md-option"),r=a&&t.element(a).data("$mdOptionController");if(a&&r)if(a.hasAttribute("disabled"))n.stopImmediatePropagation();else{var i=s.hashGetter(r.value),l=t.isDefined(s.selected[i]);e.$apply((function(){s.isMultiple?l?s.deselect(i):s.select(i,r.value):l||(t.forEach(Object.keys(s.selected),(function(e){s.deselect(e)})),s.select(i,r.value)),s.refreshViewValue()}))}else n.target&&n.target.parentNode&&"MD-SELECT-HEADER"===n.target.parentNode.tagName&&n.stopImmediatePropagation()}n.addClass("_md"),i(n),n.on("click",l),n.on("keypress",(function(e){13!==e.keyCode&&32!==e.keyCode||l(e)}))}}};function s(r,i,s){var l,c,u,d,f=this,m="";function p(){var e=f.ngModel.$modelValue||f.ngModel.$viewValue||[];if(t.isArray(e)){var n=Object.keys(f.selected),a=e.map(f.hashGetter);n.filter((function(e){return-1===a.indexOf(e)})).forEach(f.deselect),a.forEach((function(t,n){f.select(t,e[n])}))}}function g(){var e=f.ngModel.$viewValue||f.ngModel.$modelValue;Object.keys(f.selected).forEach(f.deselect),f.select(f.hashGetter(e),e)}f.isMultiple=t.isDefined(i.multiple),f.selected={},f.options={},r.$watchCollection((function(){return f.options}),(function(){f.ngModel.$render(),function(){var e,t;if(!s.find("md-optgroup").length)return;for(t=s.find("md-option"),e=0;e<t.length;e++)t[e].setAttribute("aria-setsize",t.length),t[e].setAttribute("aria-posinset",e+1)}()})),f.setMultiple=function(e){var n=f.ngModel;if(l=l||n.$isEmpty,f.isMultiple=e,f.isMultiple){var a=!1,i=function(e){a?p():o.nextTick((function(){p(),a=!0}))};n.$validators["md-multiple"]=s,n.$render=i,r.$watchCollection(f.modelBinding,(function(e){s(e)&&i()})),n.$isEmpty=function(e){return!e||0===e.length}}else delete n.$validators["md-multiple"],n.$render=g;function s(e,n){return t.isArray(e||n||[])}},f.optNodeForKeyboardSearch=function(e){var a,r;for(c&&clearTimeout(c),c=setTimeout((function(){c=n,m="",d=n,u=n}),300),m+=e.key,a=new RegExp("^"+o.sanitize(m),"i"),u||(u=s.find("md-option"),d=new Array(u.length),t.forEach(u,(function(e,t){d[t]=e.textContent.trim()}))),r=0;r<d.length;++r)if(a.test(d[r]))return u[r]},f.init=function(n,s){function l(e){return t.isObject(e)&&!t.isArray(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++a)):e+""}f.ngModel=n,f.modelBinding=s.ngModel,f.ngModel.$isEmpty=function(e){return!f.options[f.hashGetter(e)]},i.ngModelOptions?f.hashGetter=function(n){var a=e(i.ngModelOptions)(r),o=a&&a.trackBy;return o?e(o)(r,{$value:n}):t.isObject(n)?l(n):n}:f.hashGetter=l,f.setMultiple(f.isMultiple),s.hasOwnProperty("mdSelectOnlyOption")&&o.nextTick((function(){var e=Object.keys(f.options);if(1===e.length){var t=f.options[e[0]];f.deselect(Object.keys(f.selected)[0]),f.select(f.hashGetter(t.value),t.value),f.refreshViewValue(),f.ngModel.$setPristine()}}),!1)},f.setActiveDescendant=function(e){t.isDefined(e)?s.find("md-content").attr("aria-activedescendant",e):s.find("md-content").removeAttr("aria-activedescendant")},f.getSelectedLabels=function(e){var t,n=(e=e||{}).mode||"html",a=o.nodesToArray(s[0].querySelectorAll("md-option[selected]"));return a.length?("html"===n?t=function(e){if(e.hasAttribute("md-option-empty"))return"";var t=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));var a=e.querySelector(".md-container");return a&&(t=t.replace(a.outerHTML,"")),t}:"aria"===n&&(t=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),o.uniq(a.map(t)).join(", ")):""},f.select=function(e,t){var n=f.options[e];n&&n.setSelected(!0,f.isMultiple),f.selected[e]=t},f.deselect=function(e){var t=f.options[e];t&&t.setSelected(!1,f.isMultiple),delete f.selected[e]},f.addOption=function(e,n){if(t.isDefined(f.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');f.options[e]=n,t.isDefined(f.selected[e])&&(f.select(e,n.value),t.isDefined(f.ngModel.$$rawModelValue)&&f.hashGetter(f.ngModel.$$rawModelValue)===e&&f.ngModel.$validate(),f.refreshViewValue())},f.removeOption=function(e){delete f.options[e]},f.refreshViewValue=function(){var e,n=[];for(var a in f.selected)(e=f.options[a])?n.push(e.value):n.push(f.selected[a]);var o=f.isMultiple?n:n[0];(function(e,n){if(f.isMultiple){if(t.isArray(e)){if(e.length!==n.length)return!1;var a=e.map((function(e){return f.hashGetter(e)}));return n.every((function(e){var t=f.hashGetter(e);return a.some((function(e){return e===t}))}))}return!1}return f.hashGetter(e)===f.hashGetter(n)})(f.ngModel.$modelValue,o)||(f.ngModel.$setViewValue(o),f.ngModel.$render())}}}function s(e,n,a){return{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:l,compile:function(e,n){e.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),r(n)||e.attr("md-option-empty","");return i}};function r(e){var t=e.value,n=e.ngValue;return t||n}function i(r,i,s,l){var c=l[0],u=l[1];function d(e,t,n){if(u.hashGetter){var a=u.hashGetter(t,r),o=u.hashGetter(e,r);c.hashKey=o,c.value=e,u.removeOption(a,c),u.addOption(o,c)}else n||r.$$postDigest((function(){d(e,t,!0)}))}a(i),u.isMultiple&&(i.addClass("md-checkbox-enabled"),i.prepend(o.clone())),t.isDefined(s.ngValue)?r.$watch(s.ngValue,(function(e,t){d(e,t),i.removeAttr("aria-checked")})):t.isDefined(s.value)?d(s.value):r.$watch((function(){return i.text().trim()}),d),s.$observe("disabled",(function(e){e?i.attr("tabindex","-1"):i.attr("tabindex","0")})),r.$$postDigest((function(){s.$observe("selected",(function(e){t.isDefined(e)&&("string"==typeof e&&(e=!0),e?(u.isMultiple||u.deselect(Object.keys(u.selected)[0]),u.select(c.hashKey,c.value)):u.deselect(c.hashKey),u.refreshViewValue())}))})),e.attach(r,i),function(){var e={role:"option"};u.isMultiple&&(e["aria-selected"]="false");i[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid());i.attr(e)}(),r.$on("$destroy",(function(){u.removeOption(c.hashKey,c)}))}}function l(e){this.setSelected=function(t,n){t?e.attr({selected:"true","aria-selected":"true"}):t||(e.removeAttr("selected"),n?e.attr("aria-selected","false"):e.removeAttr("aria-selected"))}}function c(n){return a.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],n("$mdSelect").setDefaults({methods:["target"],options:a});function a(n,a,r,i,s,l,c,d,f){var m="$mdSelect.show() expected a target element in options.target but got '{0}'!",p=r.dom.animator,g=a.KEY_CODE;return{parent:"body",themable:!0,onShow:function(e,o,_){return function(){_.loadingAsync&&!_.isRemoved&&(e.$$loadingAsyncDone=!1,s.when(_.loadingAsync).then((function(){e.$$loadingAsyncDone=!0,delete _.loadingAsync})).then((function(){l(b)})))}(),function(e,n){var a=o.find("md-select-menu");if(!n.target)throw new Error(r.supplant(m,[n.target]));t.extend(n,{isRemoved:!1,target:t.element(n.target),parent:t.element(n.parent),selectEl:a,contentEl:o.find("md-content"),optionNodes:a[0].getElementsByTagName("md-option")})}(0,_),_.hideBackdrop=function(e,t,n){n.disableParentScroll&&!r.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=r.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1;n.hasBackdrop&&(n.backdrop=r.createBackdrop(e,"md-select-backdrop md-click-catcher"),d.enter(n.backdrop,f[0].body,null,{duration:0}));return function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(e,0,_),function(e,t,n){n.parent!==t.parent()&&t.parent().attr("aria-owns",t.find("md-content").attr("id"));return n.parent.append(t),s((function(e,n){try{c(t,{removeClass:"md-leave",duration:0}).start().then(b).then(e)}catch(e){n(e)}}))}(0,o,_).then((function(s){return o.attr("aria-hidden","false"),_.alreadyOpen=!0,_.cleanupInteraction=function(){if(_.isRemoved)return;var e=_.selectEl,t=e.controller("mdSelectMenu")||{};_.contentEl;return o.addClass("md-clickable"),_.backdrop&&_.backdrop.on("click",i),e.on("keydown",s),e.on("click",f),function(){_.backdrop&&_.backdrop.off("click",i),e.off("keydown",s),e.off("click",f),o.removeClass("md-clickable"),_.isRemoved=!0};function i(e){e.preventDefault(),e.stopPropagation(),_.restoreFocus=!1,r.nextTick(n.hide,!0)}function s(o){switch(o.preventDefault(),o.stopPropagation(),o.keyCode){case g.UP_ARROW:return d();case g.DOWN_ARROW:return c();case g.SPACE:case g.ENTER:_.focusedNode&&(e.triggerHandler({type:"click",target:_.focusedNode}),o.preventDefault()),f(o);break;case g.TAB:case g.ESCAPE:o.stopPropagation(),o.preventDefault(),_.restoreFocus=!0,r.nextTick(n.hide,!0);break;default:if(u(o,a)){var i=t.optNodeForKeyboardSearch(o);i&&!i.hasAttribute("disabled")&&y(_.focusedNode,i,t)}}}function l(e){var n,a=r.nodesToArray(_.optionNodes),o=a.indexOf(_.focusedNode),i=a[o];do{-1===o?o=0:"next"===e&&o<a.length-1?o++:"prev"===e&&o>0&&o--,(n=a[o]).hasAttribute("disabled")&&(n=null)}while(!n&&o<a.length-1&&o>0);y(i,n,t)}function c(){l("next")}function d(){l("prev")}function f(a){function o(){var e=!1;if(a&&a.currentTarget.children.length>0){var t=a.currentTarget.children[0];if(t.scrollHeight>t.clientHeight&&t.children.length>0)a.pageX-a.currentTarget.getBoundingClientRect().left>t.querySelector("md-option").offsetWidth&&(e=!0)}return e}a&&"click"===a.type&&a.currentTarget!==e[0]||o()||_.focusedNode&&_.focusedNode.hasAttribute&&!_.focusedNode.hasAttribute("disabled")&&(a.preventDefault(),a.stopPropagation(),t.isMultiple||(_.restoreFocus=!0,r.nextTick((function(){n.hide(t.ngModel.$viewValue),_.focusedNode.classList.remove("md-focused")}),!0)))}}(),_.cleanupResizing=function(){var n=function(e,t,n){return function(){if(!n.isRemoved){var a=h(e,t,n),o=a.container,r=a.dropDown;o.element.css(p.toCss(o.styles)),r.element.css(p.toCss(r.styles))}}}(e,o,_),a=t.element(i);return a.on("resize",n),a.on("orientationchange",n),function(){a.off("resize",n),a.off("orientationchange",n)}}(),_.contentEl[0].focus(),s}),_.hideBackdrop);function b(){return s((function(t){if(_.isRemoved)return s.reject(!1);var n=h(e,o,_);n.container.element.css(p.toCss(n.container.styles)),n.dropDown.element.css(p.toCss(n.dropDown.styles)),l((function(){var e;o.addClass("md-active"),n.dropDown.element.css(p.toCss({transform:""})),(e=_.focusedNode)&&!e.hasAttribute("disabled")&&y(null,e,_.selectEl.controller("mdSelectMenu")),t()}))}))}function y(e,t,n){var a=_.contentEl[0];if(t){if(e&&e.classList.remove("md-focused"),t.classList.add("md-focused"),n&&n.setActiveDescendant&&n.setActiveDescendant(t.id),a.scrollHeight>a.clientHeight){var o=a.clientHeight+a.scrollTop,r=t.offsetTop+t.offsetHeight;r>o?a.scrollTop=r-a.clientHeight:t.offsetTop<a.scrollTop&&(a.scrollTop=t.offsetTop)}_.focusedNode=t,n&&n.refreshViewValue&&n.refreshViewValue()}}},onRemove:function(e,t,n){var a=null,o=e.$on("$destroy",(function(){a.end()}));return(n=n||{}).cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?i():function(){return(a=c(t,{addClass:"md-leave"})).start()}().then(i);function i(){o(),t.removeClass("md-active").attr("aria-hidden","true").css({display:"none",top:"",right:"",bottom:"",left:"","font-size":"","min-width":""}),function(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setSelectValueText(n?n.getSelectedLabels():""),t.triggerClose()}}(n),n.$destroy||(n.restoreFocus?n.target.focus():r.nextTick((function(){n.target.triggerHandler("blur")}),!0))}},hasBackdrop:!0,disableParentScroll:!0};function h(n,a,s){var l,c,u=a[0],d=s.target[0].children[0],m=f[0].body,p=s.selectEl[0],g=s.contentEl[0],h=m.getBoundingClientRect(),_=d.getBoundingClientRect(),b={left:h.left+8,top:8,bottom:h.height-8,right:h.width-8-(r.floatingScrollbars()?16:0)},y=_.top-b.top,v=(_.left,_.left,_.width,b.bottom-(_.top+_.height)),A=h.width-16,S=p.querySelector("md-option[selected]"),w=p.getElementsByTagName("md-option"),E=p.getElementsByTagName("md-optgroup"),C=function(e,t){var n=!1;try{var a=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=a}finally{}return n}(a,g);l=(c=s.loadingAsync)&&t.isFunction(c.then)?g.firstElementChild||g:S||(E.length?E[0]:w.length?w[0]:g.firstElementChild||g),g.offsetWidth>A?g.style["max-width"]=A+"px":g.style.maxWidth=null,C&&p.classList.add("md-overflow");var T=l;"MD-OPTGROUP"===(T.tagName||"").toUpperCase()&&(l=T=w[0]||g.firstElementChild||g),s.focusedNode=T,u.style.display="block";var I,k,D,x,M,P,O=p.getBoundingClientRect(),R=(I=l)?{left:I.offsetLeft,top:I.offsetTop,width:I.offsetWidth,height:I.offsetHeight}:{left:0,top:0,width:0,height:0};if(l){var N=i.getComputedStyle(l);R.paddingLeft=parseInt(N.paddingLeft,10)||0,R.paddingRight=parseInt(N.paddingRight,10)||0}if(C){var L=g.offsetHeight/2;g.scrollTop=R.top+R.height/2-L,y<L?g.scrollTop=Math.min(R.top,g.scrollTop+L-y):v<L&&(g.scrollTop=Math.max(R.top+R.height-O.height,g.scrollTop-L+v))}k=_.left+R.left-R.paddingLeft+2,D=Math.floor(_.top+_.height/2-R.height/2-R.top+g.scrollTop)+2,x=R.left+_.width/2+"px "+(R.top+R.height/2-g.scrollTop)+"px 0px",M=Math.min(_.width+R.paddingLeft+R.paddingRight,A),P=e.getComputedStyle(d)["font-size"];var $=u.getBoundingClientRect(),U=Math.round(100*Math.min(_.width/O.width,1))/100,j=Math.round(100*Math.min(_.height/O.height,1))/100;return{container:{element:t.element(u),styles:{left:Math.floor(o(b.left,k,b.right-M)),top:Math.floor(o(b.top,D,b.bottom-$.height)),"min-width":M,"font-size":P}},dropDown:{element:t.element(p),styles:{transformOrigin:x,transform:s.alreadyOpen?"":r.supplant("scale({0},{1})",[U,j])}}}}}function o(e,t,n){return Math.max(e,Math.min(t,n))}}function u(e,t){var n=String.fromCharCode(e.keyCode),a=e.keyCode<=31;return n&&n.length&&!a&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",r).directive("mdSelectMenu",i).directive("mdOption",s).directive("mdOptgroup",(function(){return{restrict:"E",compile:function(e,n){a()||o();function a(){return e.parent().find("md-select-header").length}function o(){var a=e.find("label");a.length||(a=t.element("<label>"),e.prepend(a)),a.addClass("md-container-ignore"),a.attr("aria-hidden","true"),n.label&&a.text(n.label),e.attr("aria-label",a.text())}e.attr("role","group")}}})).directive("mdSelectHeader",(function(){return{restrict:"E"}})).provider("$mdSelect",c)}(),function(){function e(e,t){return["$mdUtil","$window",function(n,a){return{restrict:"A",multiElement:!0,link:function(o,r,i){var s=o.$on("$md-resize-enable",(function(){s();var l=r[0],c=l.nodeType===a.Node.ELEMENT_NODE?a.getComputedStyle(l):{};o.$watch(i[e],(function(e){if(!!e===t){n.nextTick((function(){o.$broadcast("$md-resize")}));var a={cachedTransitionStyles:c};n.dom.animator.waitTransitionEnd(r,a).then((function(){o.$broadcast("$md-resize")}))}}))}))}}}]}t.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function e(e,a,o,r){var i="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",s={find:function(t,o){var s=e.get(t);if(!s&&!o)return r.error(a.supplant(i,[t||""])),n;return s},waitFor:l};return function(e,n){if(t.isUndefined(e))return s;var r=!0===n,c=s.find(e,r);return!c&&r?s.waitFor(e):!c&&t.isUndefined(n)?function(e,n){var r=function(){return!1},s=function(){return o.when(a.supplant(i,[n||""]))};return t.extend({isLockedOpen:r,isOpen:r,toggle:s,open:s,close:s,onClose:t.noop,then:function(e){return l(n).then(e||t.noop)}},e)}(s,e):c};function l(t){return e.when(t).catch(r.error)}}function a(e,a,o,r,i,s,l,c,u,d,f,m,p){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),g}};function g(l,g,h,_){var b,y,v,A,S,w=null,E=null,C=d.when(!0),T=c(h.mdIsLockedOpen),I=t.element(m);function k(e){return e.keyCode===o.KEY_CODE.ESCAPE?D(e):d.when(!0)}function D(e){return e.preventDefault(),_.close()}h.mdDisableScrollTarget&&((w=f[0].querySelector(h.mdDisableScrollTarget))?w=t.element(w):u.warn(a.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:h.mdDisableScrollTarget}))),w||(w=g.parent()),h.hasOwnProperty("mdDisableBackdrop")||(y=a.createBackdrop(l,"md-sidenav-backdrop md-opaque ng-enter")),h.hasOwnProperty("mdDisableCloseEvents")&&(v=!0),g.addClass("_md"),r(g),y&&r.inherit(y,g),g.on("$destroy",(function(){y&&y.remove(),_.destroy()})),l.$on("$destroy",(function(){y&&y.remove()})),l.$watch((function(){return T(l.$parent,{$media:function(t){return u.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),e(t)},$mdMedia:e})}),(function(e,t){l.isLockedOpen=e,e===t?g.toggleClass("md-locked-open",!!e):s[e?"addClass":"removeClass"](g,"md-locked-open");y&&y.toggleClass("md-locked-open",!!e)})),l.$watch("isOpen",(function(e){var o,r=a.findFocusTarget(g)||a.findFocusTarget(g,"[md-sidenav-focus]")||g,c=g.parent();v||(c[e?"on":"off"]("keydown",k),y&&y[e?"on":"off"]("click",D));o=function(e,t){var n=g[0],a=e[0].scrollTop;if(t&&a){S={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var o={top:a+"px",bottom:"auto",height:e[0].clientHeight+"px"};g.css(o),y.css(o)}if(!t&&S)return function(){n.style.top=S.top,n.style.bottom=S.bottom,n.style.height=S.height,y[0].style.top=null,y[0].style.bottom=null,y[0].style.height=null,S=null}}(c,e),e&&(E=f[0].activeElement,A=i.getLastInteractionType());return function(e){e&&!b?(b=w.css("overflow"),w.css("overflow","hidden")):t.isDefined(b)&&(w.css("overflow",b),b=n)}(e),C=d.all([e&&y?s.enter(y,c):y?s.leave(y):d.when(!0),s[e?"removeClass":"addClass"](g,"md-closed")]).then((function(){l.isOpen&&(p((function(){I.triggerHandler("resize")})),r&&r.focus()),o&&o()}))})),_.$toggleOpen=function(e){return l.isOpen===e?d.when(!0):(l.isOpen&&_.onCloseCb&&_.onCloseCb(),d((function(t){l.isOpen=e,a.nextTick((function(){C.then((function(e){!l.isOpen&&E&&"keyboard"===A&&(E.focus(),E=null),t(e)}))}))})))}}}function o(e,t,n,a,o){var r=this;r.isOpen=function(){return!!e.isOpen},r.isLockedOpen=function(){return!!e.isLockedOpen},r.onClose=function(e){return r.onCloseCb=e,r},r.open=function(){return r.$toggleOpen(!0)},r.close=function(){return r.$toggleOpen(!1)},r.toggle=function(){return r.$toggleOpen(!e.isOpen)},r.$toggleOpen=function(t){return a.when(e.isOpen=t)};var i=t.mdComponentId,s=i&&i.indexOf(o.startSymbol())>-1,l=s?o(i)(e.$parent):i;r.destroy=n.register(r,l),s&&t.$observe("mdComponentId",(function(e){e&&e!==r.$$mdHandle&&(r.destroy(),r.destroy=n.register(r,e))}))}e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],a.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],o.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",a).directive("mdSidenavFocus",(function(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,a){}}})).controller("$mdSidenavController",o)}(),function(){e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],t.module("material.components.slider",["material.core"]).directive("mdSlider",e).directive("mdSliderContainer",(function(){return{controller:function(){},compile:function(e){var a=e.find("md-slider");if(a)return a.attr("md-vertical")!==n&&e.attr("md-vertical",""),a.attr("flex")||a.attr("flex",""),function(e,n,a,o){function r(e){n.children().attr("disabled",e),n.find("input").attr("disabled",e)}n.addClass("_md");var i,s=t.noop;a.disabled?r(!0):a.ngDisabled&&(s=e.$watch(a.ngDisabled,(function(e){r(e)}))),e.$on("$destroy",(function(){s()})),o.fitInputWidthToTextLength=function(e){var t=n[0].querySelector("md-input-container");if(t){var a=getComputedStyle(t),o=parseInt(a.minWidth),r=parseInt(a.paddingLeft)+parseInt(a.paddingRight);i=i||parseInt(a.maxWidth);var s=Math.max(i,o+r+o/2*e);t.style.maxWidth=s+"px"}}}}}}));function e(e,n,a,o,r,i,s,l,c,u){return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',compile:function(e,n){var o=t.element(e[0].getElementsByClassName("md-slider-wrapper")),r=n.tabindex||0;o.attr("tabindex",r),(n.disabled||n.ngDisabled)&&o.attr("tabindex",-1);return o.attr("role","slider"),a.expect(e,"aria-label"),d}};function d(a,d,f,m){i(d);var p=m[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach((function(e){e()}))},$parsers:[],$formatters:[],$viewChangeListeners:[]},g=m[1],h=(t.element(o.getClosest(d,"_md-slider-container",!0)),f.ngDisabled?t.bind(null,l(f.ngDisabled),a.$parent):function(){return d[0].hasAttribute("disabled")}),_=t.element(d[0].querySelector(".md-thumb")),b=t.element(d[0].querySelector(".md-thumb-text")),y=_.parent(),v=t.element(d[0].querySelector(".md-track-container")),A=t.element(d[0].querySelector(".md-track-fill")),S=t.element(d[0].querySelector(".md-track-ticks")),w=t.element(d[0].getElementsByClassName("md-slider-wrapper")),E=(t.element(d[0].getElementsByClassName("md-slider-content")),o.throttle(q,5e3)),C=t.isDefined(f.mdVertical),T=t.isDefined(f.mdDiscrete),I=t.isDefined(f.mdInvert);t.isDefined(f.min)?f.$observe("min",L):L(0),t.isDefined(f.max)?f.$observe("max",$):$(100),t.isDefined(f.step)?f.$observe("step",U):U(1),t.isDefined(f.round)?f.$observe("round",j):j(3);t.noop;function k(){q(),G()}f.ngDisabled&&a.$parent.$watch(f.ngDisabled,(function(){d.attr("aria-disabled",!!h())})),s.register(w,"drag",{horizontal:!C}),a.mouseActive=!1,w.on("keydown",(function(e){if(h())return;var t,n=r.KEY_CODE;switch(e.keyCode){case n.DOWN_ARROW:case n.LEFT_ARROW:e.preventDefault(),t=-M;break;case n.UP_ARROW:case n.RIGHT_ARROW:e.preventDefault(),t=M;break;case n.PAGE_DOWN:e.preventDefault(),t=10*-M;break;case n.PAGE_UP:e.preventDefault(),t=10*M;break;case n.HOME:e.preventDefault(),e.stopPropagation(),H(D);break;case n.END:e.preventDefault(),e.stopPropagation(),H(x)}t&&(t=I?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),H(p.$viewValue+t))})).on("mousedown",(function(){(function(){if(!T||h())return;if(t.isUndefined(M))return;if(M<=0){var e="Slider step value must be greater than zero when in discrete mode";throw c.error(e),new Error(e)}var a=Math.floor((x-D)/M);O||(O=t.element("<canvas>").css("position","absolute"),S.append(O),R=O[0].getContext("2d"));var o,r=Y();!r||r.height||r.width||(q(),r=F);O[0].width=r.width,O[0].height=r.height;for(var i=0;i<=a;i++){var s=n.getComputedStyle(S[0]);R.fillStyle=s.color||"black",o=Math.floor((C?r.height:r.width)*(i/a)),R.fillRect(C?0:o-1,C?o-1:0,C?r.width:2,C?2:r.height)}})(),a.mouseActive=!0,w.removeClass("md-focused"),u((function(){a.mouseActive=!1}),100)})).on("focus",(function(){!1===a.mouseActive&&w.addClass("md-focused")})).on("blur",(function(){w.removeClass("md-focused"),d.removeClass("md-active"),function(){if(O&&R){var e=Y();R.clearRect(0,0,e.width,e.height)}}()})).on("$md.pressdown",(function(e){if(h())return;d.addClass("md-active"),d[0].focus(),q();var t=V(W(X(J(C?e.srcEvent.clientY:e.srcEvent.clientX))));a.$apply((function(){B(t),Q(Z(t))}))})).on("$md.pressup",(function(e){if(h())return;d.removeClass("md-dragging");var t=V(W(X(J(C?e.srcEvent.clientY:e.srcEvent.clientX))));a.$apply((function(){B(t),G()}))})).on("$md.dragstart",(function(e){if(h())return;z=!0,e.stopPropagation(),d.addClass("md-dragging"),K(e)})).on("$md.drag",(function(e){if(!z)return;e.stopPropagation(),K(e)})).on("$md.dragend",(function(e){if(!z)return;e.stopPropagation(),z=!1})),setTimeout(k,0);var D,x,M,P,O,R,N=e.throttle(k);function L(e){D=parseFloat(e),p.$viewValue=V(p.$modelValue,D,x),w.attr("aria-valuemin",e),k()}function $(e){x=parseFloat(e),p.$viewValue=V(p.$modelValue,D,x),w.attr("aria-valuemax",e),k()}function U(e){M=parseFloat(e)}function j(e){P=V(parseInt(e),0,6)}t.element(n).on("resize",N),a.$on("$destroy",(function(){t.element(n).off("resize",N)})),p.$render=G,p.$viewChangeListeners.push(G),p.$formatters.push(V),p.$formatters.push(W);var F={};function q(){F=v[0].getBoundingClientRect()}function Y(){return E(),F}function H(e){a.$evalAsync((function(){B(e)}))}function B(e){p.$setViewValue(V(W(e)))}function G(){isNaN(p.$viewValue)&&(p.$viewValue=p.$modelValue),p.$viewValue=V(p.$viewValue);var e=Z(p.$viewValue);a.modelValue=p.$viewValue,w.attr("aria-valuenow",p.$viewValue),Q(e),b.text(p.$viewValue)}function V(e,n,a){if(t.isNumber(e))return n=t.isNumber(n)?n:D,a=t.isNumber(a)?a:x,Math.max(n,Math.min(a,e))}function W(e){if(t.isNumber(e)){var n=Math.round((e-D)/M)*M+D;return n=Math.round(n*Math.pow(10,P))/Math.pow(10,P),g&&g.fitInputWidthToTextLength&&o.debounce((function(){g.fitInputWidthToTextLength(n.toString().length)}),100)(),n}}function Q(e){var t;t=e;var n=100*(e=Math.max(0,Math.min(t||0,1)))+"%",a=I?100*(1-e)+"%":n;C?y.css("bottom",n):o.bidiProperty(y,"left","right",n),A.css(C?"height":"width",a),d.toggleClass(I?"md-max":"md-min",0===e),d.toggleClass(I?"md-min":"md-max",1===e)}q();var z=!1;function K(e){var t,n;T?(t=C?e.srcEvent.clientY:e.srcEvent.clientX,n=V(W(X(J(t)))),Q(J(t)),b.text(n)):function(e){a.$evalAsync((function(){B(X(J(e)))}))}(C?e.srcEvent.clientY:e.srcEvent.clientX)}function J(e){var t=(e-(C?F.top:F.left))/(C?F.height:F.width);return!C&&o.isRtl(f)&&(t=1-t),Math.max(0,Math.min(1,C?1-t:t))}function X(e){return D+(I?1-e:e)*(x-D)}function Z(e){var t=(e-D)/(x-D);return I?1-t:t}}}}(),function(){function e(e,t,a,o){var r=a.checkStickySupport();return function(i,s,l){var c=s.controller("mdContent");if(c)if(r)s.css({position:r,top:0,"z-index":2});else{var u=c.$element.data("$$sticky");u||(u=function(o){var r,i=o.$element,s=t.throttle(c);return function(e){var n,o,r=200;function i(){+a.now()-o>r?(n=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),t.throttle(i))}e.on("scroll touchmove",(function(){n||(n=!0,t.throttle(i),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),o=+a.now()}))}(i),i.on("$scrollstart",s),i.on("$scroll",d),r={prev:null,current:null,next:null,items:[],add:l,refreshElements:c};function l(e,t){t.addClass("md-sticky-clone");var n={element:e,clone:t};return r.items.push(n),a.nextTick((function(){i.prepend(n.clone)})),s(),function(){r.items.forEach((function(t,n){t.element[0]===e[0]&&(r.items.splice(n,1),t.clone.remove())})),s()}}function c(){var e;r.items.forEach(u),r.items=r.items.sort((function(e,t){return e.top<t.top?-1:1}));for(var t=i.prop("scrollTop"),n=r.items.length-1;n>=0;n--)if(t>r.items[n].top){e=r.items[n];break}f(e)}function u(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==i[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var o=a.floatingScrollbars()?"0":n;a.bidi(e.clone,"margin-left",e.left,o),a.bidi(e.clone,"margin-right",o,e.right)}function d(){var e=i.prop("scrollTop"),t=e>(d.prevScrollTop||0);if(d.prevScrollTop=e,0!==e){if(t){if(r.next&&r.next.top<=e)return void f(r.next);if(r.current&&r.next&&r.next.top-e<=r.next.height)return void p(r.current,e+(r.next.top-r.next.height-e))}if(!t){if(r.current&&r.prev&&e<r.current.top)return void f(r.prev);if(r.next&&r.current&&e>=r.next.top-r.current.height)return void p(r.current,e+(r.next.top-e-r.current.height))}r.current&&p(r.current,e)}else f(null)}function f(e){if(r.current!==e){r.current&&(p(r.current,null),m(r.current,null)),e&&m(e,"active"),r.current=e;var t=r.items.indexOf(e);r.next=r.items[t+1],r.prev=r.items[t-1],m(r.next,"next"),m(r.prev,"prev")}}function m(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function p(t,o){t&&(null===o||o===n?t.translateY&&(t.translateY=null,t.clone.css(e.CSS.TRANSFORM,"")):(t.translateY=o,a.bidi(t.clone,e.CSS.TRANSFORM,"translate3d("+t.left+"px,"+o+"px,0)","translateY("+o+"px)")))}}(c),c.$element.data("$$sticky",u));var d=l||o(s.clone())(i),f=u.add(s,d);i.$on("$destroy",f)}}}e.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],t.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e)}(),function(){function e(e,n,a,o,r){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md">  <div class="md-subheader-inner">    <div class="md-subheader-content"></div>  </div></div>',link:function(i,s,l,c,u){a(s),s.addClass("_md"),o.prefixer().removeAttribute(s,"ng-repeat");var d=s[0].outerHTML;function f(e){return t.element(e[0].querySelector(".md-subheader-content"))}l.$set("role","heading"),r.expect(s,"aria-level","2"),u(i,(function(e){f(s).append(e)})),s.hasClass("md-no-sticky")||u(i,(function(t){var a=n('<div class="md-subheader-wrapper" aria-hidden="true">'+d+"</div>")(i);o.nextTick((function(){f(a).append(t)})),e(i,s,a)}))}}}e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],t.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e)}(),function(){function e(e){a.$inject=["$parse"];var t="md"+e,n="$md."+e.toLowerCase();return a;function a(e){return{restrict:"A",link:function(a,o,r){var i=e(r[t]);o.on(n,(function(e){var t=e.currentTarget;a.$applyAsync((function(){i(a,{$event:e,$target:{current:t}})}))}))}}}}t.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight")).directive("mdSwipeUp",e("SwipeUp")).directive("mdSwipeDown",e("SwipeDown"))}(),function(){function e(e,n,a,o,r,i,s){var l=e[0];return{restrict:"E",priority:a.BEFORE_NG_ARIA,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:["^?mdInputContainer","?ngModel","?^form"],compile:function(e,c){var u=l.compile(e,c).post;return e.addClass("md-dragging"),function(e,l,c,d){d[0];var f=d[1]||n.fakeNgModel(),m=(d[2],null);null!=c.disabled?m=function(){return!0}:c.ngDisabled&&(m=o(c.ngDisabled));var p,g=t.element(l[0].querySelector(".md-thumb-container")),h=t.element(l[0].querySelector(".md-container")),_=t.element(l[0].querySelector(".md-label"));r((function(){l.removeClass("md-dragging")})),u(e,l,c,d),m&&e.$watch(m,(function(e){l.attr("tabindex",e?-1:0)})),c.$observe("mdInvert",(function(e){var t=n.parseAttributeBoolean(e);t?l.prepend(_):l.prepend(h),l.toggleClass("md-inverted",t)})),i.register(h,"drag"),h.on("$md.dragstart",(function(t){if(m&&m(e))return;t.stopPropagation(),l.addClass("md-dragging"),p={width:g.prop("offsetWidth")}})).on("$md.drag",(function(e){if(!p)return;e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/p.width,n=f.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),g.css(a.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),p.translate=n})).on("$md.dragend",(function(t){if(!p)return;t.stopPropagation(),l.removeClass("md-dragging"),g.css(a.CSS.TRANSFORM,""),(f.$viewValue?p.translate<.5:p.translate>.5)&&(n=!f.$viewValue,e.$apply((function(){f.$setViewValue(n),f.$render()})));var n;p=null,e.skipToggle=!0,s((function(){e.skipToggle=!1}),1)}))}}}}e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],t.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e)}(),t.module("material.components.tabs",["material.core","material.components.icon"]),t.module("material.components.tabs").service("MdTabsPaginationService",(function(){return{decreasePageOffset:function(t,n){var a,o,r=t.canvas,i=e(t);for(a=0;a<i.length;a++)if(i[a]>=n){o=i[a];break}return Math.max(0,o-r.clientWidth)},increasePageOffset:function(n,a){var o,r,i=n.canvas,s=t(n)-i.clientWidth,l=e(n);for(o=0;l.length,l[o]<=a+i.clientWidth;o++)r=l[o];return Math.min(s,r)},getTabOffsets:e,getTotalTabsWidth:t};function e(e){var t,n,a=0,o=[];for(t=0;t<e.tabs.length;t++)n=e.tabs[t],o.push(a),a+=n.offsetWidth;return o}function t(e){var t,n=0;for(t=0;t<e.tabs.length;t++)n+=e.tabs[t].offsetWidth;return n}})),t.module("material.components.tabs").directive("mdTab",(function(){return{require:"^?mdTabs",terminal:!0,compile:function(a,o){var r=n(a,"md-tab-label"),i=n(a,"md-tab-body");if(0===r.length&&(r=t.element("<md-tab-label></md-tab-label>"),o.label?r.text(o.label):r.append(a.contents()),0===i.length)){var s=a.contents().detach();(i=t.element("<md-tab-body></md-tab-body>")).append(s)}return a.append(r),i.html()&&a.append(i),e},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect",tabClass:"@mdTabClass"}};function e(e,a,o,r){if(r){var i=r.getTabElementIndex(a),s=n(a,"md-tab-body").remove(),l=n(a,"md-tab-label").remove(),c=r.insertTab({scope:e,parent:e.$parent,index:i,element:a,template:s.html(),label:l.html()},i);e.select=e.select||t.noop,e.deselect=e.deselect||t.noop,e.$watch("active",(function(e){e&&r.select(c.getIndex(),!0)})),e.$watch("disabled",(function(){r.refreshIndex()})),e.$watch((function(){return r.getTabElementIndex(a)}),(function(e){c.index=e,r.updateTabOrder()})),e.$on("$destroy",(function(){r.removeTab(c)}))}}function n(e,n){for(var a=e[0].children,o=0,r=a.length;o<r;o++){var i=a[o];if(i.tagName===n.toUpperCase())return t.element(i)}return t.element()}})),t.module("material.components.tabs").directive("mdTabItem",(function(){return{require:"^?mdTabs",link:function(e,t,n,a){a&&a.attachRipple(e,t)}}})),t.module("material.components.tabs").directive("mdTabLabel",(function(){return{terminal:!0}})),function(){function e(e){return{restrict:"A",compile:function(t,n){var a=e(n.mdTabScroll,null,!0);return function(e,t){t.on("wheel",(function(t){e.$apply((function(){a(e,{$event:t})}))}))}}}}e.$inject=["$parse"],t.module("material.components.tabs").directive("mdTabScroll",e)}(),function(){function e(e,a,o,r,i,s,l,c,u,d,f,m,p){var g=this,h=!1,_=[],b=!1,y=!1;function v(e,t){var a=c.$normalize("md-"+e);function o(t){g[e]="false"!==t}t&&U(e,t,n),c.hasOwnProperty(a)&&o(c[a]),c.$observe(a,o)}function A(){b=!0,t.element(o).off("resize",P)}function S(){var e=N();t.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(g.stretchTabs){case"always":return!0;case"never":return!1;default:return!g.shouldPaginate&&o.matchMedia("(max-width: 600px)").matches}}()),W()}function w(){g.shouldCenterTabs=L()}function E(e,n){if(e!==n){var a=N();t.forEach(a.tabs,(function(t){t.style.maxWidth=e+"px"})),t.forEach(a.dummies,(function(t){t.style.maxWidth=e+"px"})),s.nextTick(g.updateInkBarStyles)}}function C(e,t){e!==t&&(g.maxTabWidth=q(),g.shouldCenterTabs=L(),s.nextTick((function(){g.maxTabWidth=q(),B(g.selectedIndex)})))}function T(e){a[e?"removeClass":"addClass"]("md-no-tab-content")}function I(n){var a=(g.shouldCenterTabs||z()?"":"-")+n+"px";a=a.replace("--",""),t.element(N().paging).css(r.CSS.TRANSFORM,"translate("+a+", 0)"),e.$broadcast("$mdTabsPaginationChanged")}function k(e,t){e!==t&&N().tabs[e]&&(B(),H())}function D(t,n){t!==n&&(g.selectedIndex=$(t),g.lastSelectedIndex=n,g.updateInkBarStyles(),V(),B(t),e.$broadcast("$mdTabsChanged"),g.tabs[n]&&g.tabs[n].scope.deselect(),g.tabs[t]&&g.tabs[t].scope.select())}function x(){x.watcher||(x.watcher=e.$watch((function(){s.nextTick((function(){x.watcher&&a.prop("offsetParent")&&(x.watcher(),x.watcher=null,P())}),!1)})))}function M(e,t){h||(g.focusIndex=g.selectedIndex=e),t&&g.noSelectClick||s.nextTick((function(){g.tabs[e].element.triggerHandler("click")}),!1)}function P(){g.lastSelectedIndex=g.selectedIndex,g.offsetLeft=Q(g.offsetLeft),s.nextTick((function(){g.updateInkBarStyles(),j()}))}function O(e){t.element(N().inkBar).toggleClass("ng-hide",e)}function R(e){a.toggleClass("md-dynamic-height",e)}function N(){var e={},t=a[0];return e.wrapper=t.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.nextButton=t.querySelector("md-next-button"),e.prevButton=t.querySelector("md-prev-button"),e.contents=t.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function L(){return g.centerTabs&&!g.shouldPaginate}function $(e){if(-1===e)return-1;var t,n,a=Math.max(g.tabs.length-e,e);for(t=0;t<=a;t++){if((n=g.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=g.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function U(e,t,n){Object.defineProperty(g,e,{get:function(){return n},set:function(e){var a=n;n=e,t&&t(e,a)}})}function j(){g.maxTabWidth=q(),g.shouldPaginate=function(){var e;if(g.noPagination||!y)return!1;var o=a.prop("clientWidth");return t.forEach(N().tabs,(function(e){o-=e.offsetWidth})),e=o<0,s.msie&&(N().paging.style.width=e?"999999px":n),e}()}function F(e){var n=0;return t.forEach(e,(function(e){n+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)})),Math.ceil(n)}function q(){var e=N().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function Y(e,t){var n,a=t?"focusIndex":"selectedIndex",o=g[a];for(n=o+e;g.tabs[n]&&g.tabs[n].scope.disabled;n+=e);n=(o+e+g.tabs.length)%g.tabs.length,g.tabs[n]&&(g[a]=n)}function H(){g.styleTabItemFocus="keyboard"===f.getLastInteractionType();var e=N().tabs[g.focusIndex];e&&e.focus()}function B(e){var n=N();if(t.isNumber(e)||(e=g.focusIndex),n.tabs[e]&&!g.shouldCenterTabs){var a=n.tabs[e],o=a.offsetLeft,r=a.offsetWidth+o;if(0!==e)if(z()){var i=F(Array.prototype.slice.call(n.tabs,0,e)),s=F(Array.prototype.slice.call(n.tabs,0,e+1));g.offsetLeft=Math.min(g.offsetLeft,Q(i)),g.offsetLeft=Math.max(g.offsetLeft,Q(s-n.canvas.clientWidth))}else g.offsetLeft=Math.max(g.offsetLeft,Q(r-n.canvas.clientWidth+32)),g.offsetLeft=Math.min(g.offsetLeft,Q(o));else g.offsetLeft=0}}function G(){g.selectedIndex=$(g.selectedIndex),g.focusIndex=$(g.focusIndex)}function V(){if(!g.dynamicHeight)return a.css("height","");if(!g.tabs.length)return _.push(V);var e=N(),t=e.contents[g.selectedIndex],o=t?t.offsetHeight:0,r=e.wrapper.offsetHeight,i=o+r,c=a.prop("clientHeight");if(c!==i){"bottom"===a.attr("md-align-tabs")&&(c-=r,i-=r,a.attr("md-border-bottom")!==n&&++c),h=!0;var u={height:c+"px"},d={height:i+"px"};a.css(u),l(a,{from:u,to:d,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done((function(){a.css({transition:"none",height:""}),s.nextTick((function(){a.css("transition","")})),h=!1}))}}function W(e,n){if(!g.noInkBar){var o=N();if(o.tabs[g.selectedIndex])if(g.tabs.length)if(a.prop("offsetParent")){var r=g.selectedIndex,i=o.paging.offsetWidth,s=o.tabs[r],l=s.offsetLeft,c=i-l-s.offsetWidth;if(g.shouldCenterTabs){var u=F(o.tabs);i>u&&e!==i&&n!==u&&m(W,0,!0,i,u)}!function(){var e=N(),n=g.selectedIndex,a=g.lastSelectedIndex,o=t.element(e.inkBar);if(!t.isNumber(a))return;o.toggleClass("md-left",n<a).toggleClass("md-right",n>a)}(),t.element(o.inkBar).css({left:l+"px",right:c+"px"})}else x();else _.push(g.updateInkBarStyles);else t.element(o.inkBar).css({left:"auto",right:"auto"})}}function Q(e){var t=N();if(!t.tabs.length||!g.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],a=n.offsetLeft+n.offsetWidth;return z()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),e=Math.max(0,e)):(e=Math.max(0,e),e=Math.min(a-t.canvas.clientWidth,e)),e}function z(){return s.isRtl(c)}g.$onInit=function(){(function(e,t){var n=c.$normalize("md-"+e);t&&U(e,t);c.$observe(n,(function(t){g[e]=t}))})("stretchTabs",S),U("focusIndex",k,g.selectedIndex||0),U("offsetLeft",I,0),U("hasContent",T,!1),U("maxTabWidth",E,q()),U("shouldPaginate",C,!1),v("noInkBar",O),v("dynamicHeight",R),v("noPagination"),v("swipeContent"),v("noDisconnect"),v("autoselect"),v("noSelectClick"),v("centerTabs",w),v("enableDisconnect"),g.scope=e,g.parent=e.$parent,g.tabs=[],g.lastSelectedIndex=null,g.hasFocus=!1,g.styleTabItemFocus=!1,g.shouldCenterTabs=L(),g.tabContentPrefix="tab-content-",g.navigationHint="Use the left and right arrow keys to navigate between tabs",g.selectedIndex=g.selectedIndex||0,n=c.$mdTabsTemplate,r=t.element(a[0].querySelector("md-tab-data")),r.html(n),u(r.contents())(g.parent),delete c.$mdTabsTemplate,e.$watch("$mdTabsCtrl.selectedIndex",D),t.element(o).on("resize",P),e.$on("$destroy",A),d(a),s.nextTick((function(){V(),B(),W(),g.tabs[g.selectedIndex]&&g.tabs[g.selectedIndex].scope.select(),y=!0,j()}));var n,r},g.updatePagination=s.debounce(j,100),g.redirectFocus=H,g.attachRipple=function(e,n){var a=N(),o={colorElement:t.element(a.inkBar)};i.attach(e,n,o)},g.insertTab=function(e,n){var o=y,r={getIndex:function(){return g.tabs.indexOf(i)},isActive:function(){return this.getIndex()===g.selectedIndex},isLeft:function(){return this.getIndex()<g.selectedIndex},isRight:function(){return this.getIndex()>g.selectedIndex},shouldRender:function(){return!g.noDisconnect||this.isActive()},hasFocus:function(){return g.styleTabItemFocus&&g.hasFocus&&this.getIndex()===g.focusIndex},id:s.nextUid(),hasContent:!(!e.template||!e.template.trim())},i=t.extend(r,e);t.isDefined(n)?g.tabs.splice(n,0,i):g.tabs.push(i);return function(){_.forEach((function(e){s.nextTick(e)})),_=[]}(),function(){var e,t=!1;for(e=0;e<g.tabs.length;e++)if(g.tabs[e].hasContent){t=!0;break}g.hasContent=t}(),s.nextTick((function(){j(),function(e){if(e.hasContent){var n=a[0].querySelectorAll('[md-tab-id="'+e.id+'"]');t.element(n).attr("aria-controls",g.tabContentPrefix+e.id)}}(i),o&&g.autoselect&&s.nextTick((function(){s.nextTick((function(){M(g.tabs.indexOf(i))}))}))})),i},g.removeTab=function(e){if(b)return;var t=g.selectedIndex,n=g.tabs.splice(e.getIndex(),1)[0];G(),g.selectedIndex===t&&(n.scope.deselect(),g.tabs[g.selectedIndex]&&g.tabs[g.selectedIndex].scope.select());s.nextTick((function(){j(),g.offsetLeft=Q(g.offsetLeft)}))},g.select=M,g.scroll=function(e){if(!g.shouldPaginate)return;e.preventDefault(),e.deltaY?g.offsetLeft=Q(g.offsetLeft+e.deltaY):e.deltaX&&(g.offsetLeft=Q(g.offsetLeft+e.deltaX))},g.nextPage=function(){if(!g.canPageForward())return;var e=p.increasePageOffset(N(),g.offsetLeft);g.offsetLeft=Q(e)},g.previousPage=function(){if(!g.canPageBack())return;var e=p.decreasePageOffset(N(),g.offsetLeft);g.offsetLeft=Q(e)},g.keydown=function(e){switch(e.keyCode){case r.KEY_CODE.LEFT_ARROW:e.preventDefault(),Y(-1,!0);break;case r.KEY_CODE.RIGHT_ARROW:e.preventDefault(),Y(1,!0);break;case r.KEY_CODE.SPACE:case r.KEY_CODE.ENTER:e.preventDefault(),h||M(g.focusIndex);break;case r.KEY_CODE.TAB:g.focusIndex!==g.selectedIndex&&(g.focusIndex=g.selectedIndex)}},g.canPageForward=function(){var e=N(),t=e.tabs[e.tabs.length-1];if(z())return g.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+g.offsetLeft},g.canPageBack=function(){return g.offsetLeft>0},g.refreshIndex=G,g.incrementIndex=Y,g.getTabElementIndex=function(e){var t=a[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},g.updateInkBarStyles=s.debounce(W,100),g.updateTabOrder=s.debounce((function(){var e=g.tabs[g.selectedIndex],t=g.tabs[g.focusIndex];g.tabs=g.tabs.sort((function(e,t){return e.index-t.index})),g.selectedIndex=g.tabs.indexOf(e),g.focusIndex=g.tabs.indexOf(t)}),100),g.getFocusedTabId=function(){var e=g.tabs[g.focusIndex];if(!e||!e.id)return null;return"tab-item-"+e.id},1===t.version.major&&t.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],t.module("material.components.tabs").controller("MdTabsController",e)}(),function(){function e(e){return{scope:{navigationHint:"@?mdNavigationHint",selectedIndex:"=?mdSelected"},template:function(t,n){return n.$mdTabsTemplate=t.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)" role="tablist" aria-label="{{::$mdTabsCtrl.navigationHint}}"><md-tab-item tabindex="{{ tab.isActive() ? 0 : -1 }}" class="md-tab {{::tab.scope.tabClass}}" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-class="{ \'md-active\':    tab.isActive(), \'md-focused\':   tab.hasFocus(), \'md-disabled\':  tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper aria-hidden="true" class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\':        tab.isActive(), \'md-left\':          tab.isLeft(), \'md-right\':         tab.isRight(), \'md-no-scroll\':     $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}e.$inject=["$$mdSvgRegistry"],t.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(e,t){return{require:"^?mdTabs",link:function(n,a,o,r){if(r){var i,s,l=function(){r.updatePagination(),r.updateInkBarStyles()};if("MutationObserver"in t){(i=new MutationObserver(l)).observe(a[0],{childList:!0,subtree:!0,characterData:!0}),s=i.disconnect.bind(i)}else{var c=e.debounce(l,15,null,!1);a.on("DOMSubtreeModified",c),s=a.off.bind(a,"DOMSubtreeModified",c)}n.$on("$destroy",(function(){s()}))}}}}e.$inject=["$mdUtil","$window"],t.module("material.components.tabs").directive("mdTabsDummyWrapper",e)}(),function(){function e(e,t){return{restrict:"A",link:function(n,a,o,r){if(!r)return;var i=r.enableDisconnect?n.compileScope.$new():n.compileScope;return a.html(n.template),e(a.contents())(i),t.nextTick((function(){n.$watch("connected",(function(e){!1===e?s():l()})),n.$on("$destroy",l)}));function s(){r.enableDisconnect&&t.disconnectScope(i)}function l(){r.enableDisconnect&&t.reconnectScope(i)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}e.$inject=["$compile","$mdUtil"],t.module("material.components.tabs").directive("mdTabsTemplate",e)}(),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",(function(){e.destroy()}))}}}function a(e){r.$inject=["$mdToast","$scope","$log"],i.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document","$q"];var a;function o(e){a=e}return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:i}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","actionKey","actionHint","highlightAction","highlightClass","theme","parent","dismissHint"],options:["$mdToast","$mdTheming",function(e,t){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">  <div class="md-toast-content" aria-live="polite" aria-relevant="all">    <span class="md-toast-text">      {{ toast.content }}    </span>    <span class="md-visually-hidden">{{ toast.dismissHint }}</span>    <span class="md-visually-hidden" ng-if="toast.action && toast.actionKey">      {{ toast.actionHint }}    </span>    <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()"                ng-class="highlightClasses">      {{ toast.action }}    </md-button>  </div></md-toast>',controller:r,theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",o).addMethod("updateContent",o);function r(e,t,n){this.$onInit=function(){var o=this;o.highlightAction&&(t.highlightClasses=["md-highlight",o.highlightClass]),o.action&&!o.actionKey&&n.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),o.actionKey&&!o.actionHint&&(o.actionHint='Press Control-"'+o.actionKey+'" to '),o.dismissHint||(o.dismissHint="Press Escape to dismiss."),t.$watch((function(){return a}),(function(){o.content=a})),this.resolve=function(){e.hide("ok")}}}function i(e,o,r,i,s,l){var c="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(t,s,l){a=l.textContent||l.content;var f=!i("gt-sm");s=r.extractElementByName(s,"md-toast",!0),l.element=s,l.onSwipe=function(e,t){var n=e.type.replace("$md.",""),a=n.replace("swipe","");"down"===a&&-1!==l.position.indexOf("top")&&!f||"up"===a&&(-1!==l.position.indexOf("bottom")||f)||("left"!==a&&"right"!==a||!f)&&(s.addClass("md-"+n),r.nextTick(o.cancel))},l.openClass=u(l.position),s.addClass(l.toastClass),l.parent.addClass(l.openClass),r.hasComputedStyle(l.parent,"position","static")&&l.parent.css("position","relative");d(t.toast&&t.toast.actionKey?t.toast.actionKey:n),s.on(c,l.onSwipe),s.addClass(f?"md-bottom":l.position.split(" ").map((function(e){return"md-"+e})).join(" ")),l.parent&&l.parent.addClass("md-toast-animating");return e.enter(s,l.parent).then((function(){l.parent&&l.parent.removeClass("md-toast-animating")}))},onRemove:function(t,n,a){t.toast&&t.toast.actionKey&&s.off("keydown");n.off(c,a.onSwipe),a.parent&&a.parent.addClass("md-toast-animating");a.openClass&&a.parent.removeClass(a.openClass);return(!0===a.$destroy?l.when(n.remove()):e.leave(n)).then((function(){a.parent&&a.parent.removeClass("md-toast-animating"),r.hasComputedStyle(a.parent,"position","static")&&a.parent.css("position","")}))},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(e,n){if(n.autoWrap&&e&&!/md-toast-content/g.test(e)){var a=document.createElement("md-template");a.innerHTML=e;for(var o=0;o<a.children.length;o++)if("MD-TOAST"===a.children[o].nodeName){var r=t.element('<div class="md-toast-content">');r.append(t.element(a.children[o].childNodes)),a.children[o].appendChild(r[0])}return a.innerHTML}return e||""}};function u(e){return i("gt-xs")?"md-toast-open-"+(e.indexOf("top")>-1?"top":"bottom"):"md-toast-open-bottom"}function d(e){s.on("keydown",(function(t){"Escape"===t.key&&o.hide(!1),e&&t.key===e&&t.ctrlKey&&o.hide("ok")}))}}}e.$inject=["$mdToast"],a.$inject=["$$interimElementProvider"],t.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",a)}(),function(){function e(e,n,a,o,r,i){var s=t.bind(null,a.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(l,c,u){c.addClass("_md"),o(c),a.nextTick((function(){c.addClass("_md-toolbar-transitions")}),!1),t.isDefined(u.mdScrollShrink)&&function(){var o,d,f=t.noop,m=0,p=0,g=u.mdShrinkSpeedFactor||.5,h=e.throttle(v),_=a.debounce(S,5e3);l.$on("$mdContentLoaded",y),u.$observe("mdScrollShrink",b),u.ngShow&&l.$watch(u.ngShow,S);u.ngHide&&l.$watch(u.ngHide,S);function b(e){var t=a.getSiblings(c,"md-content");!d&&t.length&&y(null,t[0]),!1===(e=l.$eval(e))?f():f=A()}function y(e,t){t&&c.parent()[0]===t.parent()[0]&&(d&&d.off("scroll",h),d=t,f=A())}function v(e){var t=e?e.target.scrollTop:p;_(),m=Math.min(o/g,Math.max(0,m+t-p)),c.css(n.CSS.TRANSFORM,s([-m*g])),d.css(n.CSS.TRANSFORM,s([(o-m)*g])),p=t,a.nextTick((function(){var e=c.hasClass("md-whiteframe-z1");e&&!m?r.removeClass(c,"md-whiteframe-z1"):!e&&m&&r.addClass(c,"md-whiteframe-z1")}))}function A(){return d?(d.on("scroll",h),d.attr("scroll-shrink","true"),i(S),function(){d.off("scroll",h),d.attr("scroll-shrink","false"),S()}):t.noop}function S(){var e=-(o=c.prop("offsetHeight"))*g+"px";d.css({"margin-top":e,"margin-bottom":e}),v()}l.$on("$destroy",f)}()}}}e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate","$timeout"],t.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e)}(),function(){function n(e,n,a,o,r,i,s,l){var c="focus touchstart mouseenter",u="blur touchcancel mouseleave",d={top:{x:s.xPosition.CENTER,y:s.yPosition.ABOVE},right:{x:s.xPosition.OFFSET_END,y:s.yPosition.CENTER},bottom:{x:s.xPosition.CENTER,y:s.yPosition.BELOW},left:{x:s.xPosition.OFFSET_START,y:s.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(f,m,p){var g,h,_,b,y,v="md-tooltip-"+i.nextUid(),A=i.getParentWithPointerEvents(m),S=a.throttle(I),w=!1,E=null;function C(){f.mdZIndex=f.mdZIndex||100,f.mdDelay=f.mdDelay||0,d[f.mdDirection]||(f.mdDirection="bottom")}function T(e){var t=e||r(m.text().trim())(f.$parent);(!A.attr("aria-label")&&!A.attr("aria-labelledby")||A.attr("md-labeled-by-tooltip"))&&(A.attr("aria-label",t),A.attr("md-labeled-by-tooltip")||A.attr("md-labeled-by-tooltip",v))}function I(){C(),b&&b.panelEl&&b.panelEl.removeClass(g),g="md-origin-"+f.mdDirection,h=d[f.mdDirection],_=s.newPanelPosition().relativeTo(A).addPanelPosition(h.x,h.y),b&&b.panelEl&&(b.panelEl.addClass(g),b.updatePosition(_))}function k(t){k.queued&&k.value===!!t||!k.queued&&f.mdVisible===!!t||(k.value=!!t,k.queued||(t?(k.queued=!0,y=e((function(){f.mdVisible=k.value,k.queued=!1,y=null,f.visibleWatcher||D(f.mdVisible)}),f.mdDelay)):i.nextTick((function(){f.mdVisible=!1,f.visibleWatcher||D(!1)}))))}function D(e){e?function(){if(!m[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!b){var e=t.element(document.body),n=s.newPanelAnimation().openFrom(A).closeTo(A).withAnimation({open:"md-show",close:"md-hide"}),a={id:v,attachTo:e,contentElement:m,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:n,position:_,zIndex:f.mdZIndex,focusOnOpen:!1,onDomAdded:function(){b.panelEl.addClass(g)}};b=s.create(a)}b.open().then((function(){b.panelEl.attr("role","tooltip")}))}():b&&b.close()}C(),T(),m.detach(),I(),function(){if(A[0]&&"MutationObserver"in n){var t=new MutationObserver((function(e){(function(e){return e.some((function(e){return"disabled"===e.attributeName&&A[0].disabled})),!1})(e)&&i.nextTick((function(){k(!1)}))}));t.observe(A[0],{attributes:!0})}function a(){k(!1)}function r(){E=document.activeElement===A[0]}function s(e){"focus"===e.type&&E?E=!1:f.mdVisible||(A.on(u,d),k(!0),"touchstart"===e.type&&A.one("touchend",(function(){i.nextTick((function(){o.one("touchend",d)}),!1)})))}function d(){((f.hasOwnProperty("mdAutohide")?f.mdAutohide:p.hasOwnProperty("mdAutohide"))||w||o[0].activeElement!==A[0])&&(y&&(e.cancel(y),k.queued=!1,y=null),A.off(u,d),A.triggerHandler("blur"),k(!1)),w=!1}function m(){w=!0}E=!1,l.register("scroll",a,!0),l.register("blur",r),l.register("resize",S),f.$on("$destroy",(function(){l.deregister("scroll",a,!0),l.deregister("blur",r),l.deregister("resize",S),A.off(c,s).off(u,d).off("mousedown",m),d(),t&&t.disconnect()})),A.on("mousedown",m),A.on(c,s)}(),function(){if(m[0]&&"MutationObserver"in n){var e=new MutationObserver((function(e){e.forEach((function(e){"md-visible"!==e.attributeName||f.visibleWatcher||(f.visibleWatcher=f.$watch("mdVisible",D))}))}));e.observe(m[0],{attributes:!0}),p.hasOwnProperty("mdVisible")&&(f.visibleWatcher=f.$watch("mdVisible",D))}else f.visibleWatcher=f.$watch("mdVisible",D);function t(){f.$destroy()}f.$watch("mdDirection",I),m.one("$destroy",t),A.one("$destroy",t),f.$on("$destroy",(function(){k(!1),b&&b.destroy(),e&&e.disconnect(),m.remove()})),m.text().indexOf(r.startSymbol())>-1&&f.$watch((function(){return m.text().trim()}),T)}()}}}n.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],t.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",n).service("$$mdTooltipRegistry",(function(){var n={},a=t.element(e);return{register:function(t,r,i){var s=n[t]=n[t]||[];s.length||(i?e.addEventListener(t,o,!0):a.on(t,o));-1===s.indexOf(r)&&s.push(r)},deregister:function(t,r,i){var s=n[t],l=s?s.indexOf(r):-1;l>-1&&(s.splice(l,1),0===s.length&&(i?e.removeEventListener(t,o,!0):a.off(t,o)))}};function o(e){n[e.type]&&n[e.type].forEach((function(t){t.call(this,e)}),this)}}))}(),function(){function e(e){e.addClass("md-truncate")}e.$inject=["$element"],t.module("material.components.truncate",["material.core"]).directive("mdTruncate",(function(){return{restrict:"AE",controller:e}}))}(),function(){function e(e){return'<div class="md-virtual-repeat-scroller" role="presentation"><div class="md-virtual-repeat-sizer" role="presentation"></div><div class="md-virtual-repeat-offsetter" role="presentation">'+e[0].innerHTML+"</div></div>"}n.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],o.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],a.$inject=["$parse"],t.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",(function(){return{controller:n,template:e,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}})).directive("mdVirtualRepeat",a).directive("mdForceHeight",i);function n(e,n,a,o,r,i,s,l,c){this.$rootScope=r,this.$scope=s,this.$element=l,this.$attrs=c,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=a.ELEMENT_MAX_PIXELS,this.ltr=!n.isRtl(this.$attrs),this.$attrs.mdTopIndex?(this.bindTopIndex=o(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),t.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,t.bind(this,(function(e){e!==this.topIndex&&this.scrollToIndex(e)})))):this.topIndex=0,this.scroller=l[0].querySelector(".md-virtual-repeat-scroller"),this.sizer=this.scroller.querySelector(".md-virtual-repeat-sizer"),this.offsetter=this.scroller.querySelector(".md-virtual-repeat-offsetter");var u=t.bind(this,this.updateSize);e(t.bind(this,(function(){u();var e=n.debounce(u,10,null,!1),a=t.element(i);this.size||e(),a.on("resize",e),s.$on("$destroy",(function(){a.off("resize",e)})),s.$emit("$md-resize-enable"),s.$on("$md-resize",u)})))}function a(e){return{controller:o,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(t,n){var a=n.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),o=a[1],r=e(a[2]),i=n.mdExtraName&&e(n.mdExtraName);return function(e,t,n,a,s){a[0].link_(a[1],s,o,r,i)}}}}function o(e,n,a,o,r,i,s,l){this.$scope=e,this.$element=n,this.$attrs=a,this.$browser=o,this.$document=r,this.$mdUtil=l,this.$rootScope=i,this.$$rAF=s,this.onDemand=l.parseAttributeBoolean(a.mdOnDemand),this.browserCheckUrlChange=o.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(a.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=t.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",t.bind(this,this.cleanupBlocks_))}function r(e){if(!t.isFunction(e.getItemAtIndex)||!t.isFunction(e.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength().");this.model=e}function i(e){return{restrict:"A",link:function(e,t,n){var a=e.$eval(n.mdForceHeight)||null;a&&t&&(t[0].style.height=a)}}}n.prototype.register=function(e){this.repeater=e,t.element(this.scroller).on("scroll wheel touchmove touchend",t.bind(this,this.handleScroll_))},n.prototype.isHorizontal=function(){return this.horizontal},n.prototype.getSize=function(){return this.size},n.prototype.setSize_=function(e){var t=this.getDimensionName_();this.size=e,this.$element[0].style[t]=e+"px"},n.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},n.prototype.updateSize=function(){if(!this.originalSize){var e=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight;e&&(this.size=e),this.handleScroll_(),this.repeater&&this.repeater.containerUpdated()}},n.prototype.getScrollSize=function(){return this.scrollSize},n.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},n.prototype.sizeScroller_=function(e){var t=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",e<this.maxElementPixels)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var a=Math.floor(e/this.maxElementPixels),o=document.createElement("div");o.style[t]=this.maxElementPixels+"px",o.style[n]="1px";for(var r=0;r<a;r++)this.sizer.appendChild(o.cloneNode(!1));o.style[t]=e-a*this.maxElementPixels+"px",this.sizer.appendChild(o)}},n.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&t!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||t<n)this.originalSize||(this.originalSize=this.size),this.setSize_(t);else if(null!==this.originalSize){this.unsetSize_();var a=this.originalSize;this.originalSize=null,a||this.updateSize(),this.setSize_(a||this.size)}this.repeater.containerUpdated()}},n.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&&(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},n.prototype.getScrollOffset=function(){return this.scrollOffset},n.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},n.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;e>n&&(e=n-1),this.scrollTo(t*e)},n.prototype.resetScroll=function(){this.scrollTo(0)},n.prototype.handleScroll_=function(){this.ltr||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?this.ltr?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(this.scrollSize<this.size)&&(e>this.scrollSize-this.size&&(e=this.scrollSize-this.size),e!==this.scrollOffset)){var t=this.repeater.getItemSize();if(t){var n=Math.max(0,Math.floor(e/t)-3),a=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||this.ltr?n*t:-n*t)+"px)";if(this.scrollOffset=e,this.offsetter.style.webkitTransform=a,this.offsetter.style.transform=a,this.bindTopIndex){var o=Math.floor(e/t);o!==this.topIndex&&o<this.repeater.getItemCount()&&(this.topIndex=o,this.bindTopIndex.assign(this.$scope,o),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},o.Block,o.prototype.link_=function(e,n,a,o,r){this.container=e,this.transclude=n,this.repeatName=a,this.rawRepeatListExpression=o,this.extraName=r,this.sized=!1,this.repeatListExpression=t.bind(this,this.repeatListExpression_),this.container.register(this)},o.prototype.cleanupBlocks_=function(){t.forEach(this.pooledBlocks,(function(e){e.element.remove()}))},o.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var e=this.getBlock_(0);e.element[0].parentNode||this.parentNode.appendChild(e.element[0]),this.itemSize=e.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=e,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},o.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){var n=new r(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},o.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==t.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,(function(e){e&&e.length&&this.readItemSize_()}))),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,(function(e,t){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(e,t)})))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof r&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},o.prototype.getItemSize=function(){return this.itemSize},o.prototype.getItemCount=function(){return this.itemsLength},o.prototype.virtualRepeatUpdate_=function(e,n){this.isVirtualRepeatUpdating_=!0;var a=e&&e.length||0,o=!1;if(this.items&&a<this.items.length&&0!==this.container.getScrollOffset()){this.items=e;var r=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(r)}a!==this.itemsLength&&(o=!0,this.itemsLength=a),this.items=e,(e!==n||o)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,o&&this.container.setScrollSize(a*this.itemSize),Object.keys(this.blocks).forEach((function(e){var t=parseInt(e,10);(t<this.newStartIndex||t>=this.newEndIndex)&&this.poolBlock_(t)}),this),this.$browser.$$checkUrlChange=t.noop;var i,s,l=[],c=[];for(i=this.newStartIndex;i<this.newEndIndex&&null==this.blocks[i];i++)s=this.getBlock_(i),this.updateBlock_(s,i),l.push(s);for(;null!=this.blocks[i];i++)this.updateBlock_(this.blocks[i],i);for(var u=i-1;i<this.newEndIndex;i++)s=this.getBlock_(i),this.updateBlock_(s,i),c.push(s);if(l.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(l),this.$element[0].nextSibling),c.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(c),this.blocks[u]&&this.blocks[u].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var d=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(d)}.bind(this))}this.isVirtualRepeatUpdating_=!1},o.prototype.getBlock_=function(e){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(t.bind(this,(function(t,a){n={element:t,new:!0,scope:a},this.updateScope_(a,e),this.parentNode.appendChild(t[0])}))),n);var n},o.prototype.updateBlock_=function(e,t){this.blocks[t]=e,(e.new||e.scope.$index!==t||e.scope[this.repeatName]!==this.items[t])&&(e.new=!1,this.updateScope_(e.scope,t),this.$rootScope.$$phase||e.scope.$digest())},o.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&&this.items[t],this.extraName&&(e[this.extraName(this.$scope)]=this.items[t])},o.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},o.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach((function(e){t.appendChild(e.element[0])})),t},o.prototype.updateIndexes_=function(){var e=this.items?this.items.length:0,t=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(e-t,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+t+3,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},r.prototype.$$includeIndexes=function(e,t){for(var n=e;n<t;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()},i.$inject=["$mdUtil"]}(),function(){function e(e){return{link:function(t,n,a){var o="";a.$observe("mdWhiteframe",(function(t){-1!=(t=parseInt(t,10)||4)&&(t>24||t<1)&&(e.warn("md-whiteframe attribute value is invalid. It should be a number between 1 and 24",n[0]),t=4);var r=-1==t?"":"md-whiteframe-"+t+"dp";a.$updateClass(r,o),o=r}))}}}e.$inject=["$log"],t.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",e)}(),t.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-hue-1}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-hue-2}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}md-autocomplete.md-THEME_NAME-theme input{color:"{{foreground-1}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused .md-input{border-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused md-icon{color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-container{background-color:"{{accent-100}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-bar{background-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused .md-input{border-color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused md-icon{color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-container{background-color:"{{warn-100}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-bar{background-color:"{{warn-color}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme,.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-hue-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion{color:"{{foreground-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover{background:"{{background-500-0.18}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-color}}";border-top-color:"{{background-hue-3}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-color}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-THEME_NAME-theme .md-calendar{background:"{{background-hue-1}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar tr:last-child td{border-bottom-color:"{{background-hue-2}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-500-0.32}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-500-0.32}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-calendar-month-label md-icon,.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input::placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-2}}";opacity:1}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}";opacity:1}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-hue-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{foreground-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{foreground-3}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{foreground-4}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-1}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu>button{color:"{{foreground-1}}"}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.18}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button[disabled]{color:"{{foreground-3}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-bar1{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-dashed:before{background:radial-gradient("{{primary-100}}" 0,"{{primary-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused.ng-empty>md-radio-button:first-child .md-container:before{background-color:"{{foreground-3-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value{border-color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value span{color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value{border-color:"{{warn-A700}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value span{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{foreground-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{foreground-3}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]).md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background-color:"{{background-500-0.18}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent.md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{foreground-1}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-focused:not(.md-checked) .md-thumb:before,md-switch.md-THEME_NAME-theme.md-focused[disabled] .md-thumb:before{background-color:"{{foreground-4}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}(window,window.angular),window.ngMaterial={version:{full:"1.1.26"}}},"./node_modules/angular-material/index.js":(e,t,n)=>{n("./node_modules/angular/index-exposed.js"),n("./node_modules/angular-animate/index.js"),n("./node_modules/angular-aria/index.js"),n("./node_modules/angular-material/angular-material.js"),e.exports="ngMaterial"},"./node_modules/angular-messages/angular-messages.js":()=>{!function(e,t){"use strict";var n,a,o,r;function i(e){return["$animate",function(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(n,o,r,i,s){var l,c,u,d,f,m;if(!e){l=o[0],u=r.ngMessage||r.when;var p=function(e){c=e?a(e)?e:e.split(/[\s,]+/):null,i.reRender()};(d=r.ngMessageExp||r.whenExp)?(p(n.$eval(d)),n.$watchCollection(d,p)):p(u)}i.register(l,m={test:function(e){return function(e,t){if(e)return a(e)?e.indexOf(t)>=0:e.hasOwnProperty(t)}(c,e)},attach:function(){f||s((function(n,a){t.enter(n,null,o);var r=(f=n).$$attachId=i.getAttachId();f.on("$destroy",(function(){f&&f.$$attachId===r&&(i.deregister(l,e),m.detach()),a.$destroy()}))}))},detach:function(){if(f){var e=f;f=null,t.leave(e)}}},e),n.$on("$destroy",(function(){i.deregister(l,e)}))}}}]}t.module("ngMessages",[],(function(){n=t.forEach,a=t.isArray,o=t.isString,r=t.element})).info({angularVersion:"1.8.2"}).directive("ngMessages",["$animate",function(e){var t="ng-active",a="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(o,s,l){var c=this,u=0,d=0;this.getAttachId=function(){return d++};var f,m,p=this.messages={};function g(e,t){for(var n=t,a=[];n&&n!==e;){var o=n.$$ngMessageNode;if(o&&o.length)return p[o];n.childNodes.length&&-1===a.indexOf(n)?(a.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,a.push(n))}}this.render=function(u){f=!1,m=u=u||{};for(var d=r(s,l.ngMessagesMultiple)||r(s,l.multiple),p=[],g={},h=0,_=c.head,b=!1,y=0;null!=_;){y++;var v=_.message,A=!1;b||n(u,(function(e,t){if(i(e)&&!A&&(h++,v.test(t))){if(g[t])return;g[t]=!0,A=!0,v.attach()}})),A?b=!d:p.push(v),_=_.next}n(p,(function(e){e.detach()}));var S=p.length!==y,w=c.default&&!S&&h>0;w?c.default.attach():c.default&&c.default.detach(),S||w?e.setClass(o,t,a):e.setClass(o,a,t)},s.$watchCollection(l.ngMessages||l.for,c.render),this.reRender=function(){f||(f=!0,s.$evalAsync((function(){f&&m&&c.render(m)})))},this.register=function(e,t,n){if(n)c.default=t;else{var a=u.toString();p[a]={message:t},function(e,t,n){var a=p[n];if(c.head){var o=g(e,t);o?(a.next=o.next,o.next=a):(a.next=c.head,c.head=a)}else c.head=a}(o[0],e,a),e.$$ngMessageNode=a,u++}c.reRender()},this.deregister=function(e,t){if(t)delete c.default;else{var n=e.$$ngMessageNode;delete e.$$ngMessageNode,function(e,t,n){var a=p[n];if(!a)return;var o=g(e,t);o?o.next=a.next:c.head=a.next}(o[0],e,n),delete p[n]}c.reRender()}}]};function r(e,t){return o(t)&&0===t.length||i(e.$eval(t))}function i(e){return o(e)?e.length:!!e}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(e,t,n){return{restrict:"AE",require:"^^ngMessages",link:function(t,r,i){var s=i.ngMessagesInclude||i.src;e(s).then((function(e){t.$$destroyed||(o(e)&&!e.trim()?a(r,s):n(e)(t,(function(e){r.after(e),a(r,s)})))}))}};function a(e,a){var o=n.$$createComment?n.$$createComment("ngMessagesInclude",a):t[0].createComment(" ngMessagesInclude: "+a+" "),i=r(o);e.after(i),e.remove()}}]).directive("ngMessage",i()).directive("ngMessageExp",i()).directive("ngMessageDefault",i(!0))}(window,window.angular)},"./node_modules/angular-messages/index.js":(e,t,n)=>{n("./node_modules/angular-messages/angular-messages.js"),e.exports="ngMessages"},"./node_modules/angular-password/angular-password.js":()=>{!function(){"use strict";angular.module("ngPassword",[]).directive("matchPassword",(function(){return{restrict:"A",require:["^ngModel","^form"],link:function(e,t,n,a){var o=a[1],r=a[0],i=o[n.matchPassword];e.$watch((function(){return i.$viewValue}),(function(){r.$$parseAndValidate()})),r.$validators?r.$validators.passwordMatch=function(e){return!e&&!i.$modelValue||e===i.$modelValue}:r.$parsers.push((function(e){return r.$setValidity("passwordMatch",!e&&!i.$viewValue||e===i.$viewValue),e})),i.$parsers.push((function(e){return r.$setValidity("passwordMatch",!e&&!r.$viewValue||e===r.$viewValue),e}))}}})),angular.module("angular.password",["ngPassword"]),angular.module("angular-password",["ngPassword"])}()},"./node_modules/angular-resource/angular-resource.js":()=>{!function(e,t){"use strict";var n=t.$$minErr("$resource"),a=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;function o(e,o){if(!function(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&a.test("."+e)}(o))throw n("badmember",'Dotted member path "@{0}" is invalid.',o);for(var r=o.split("."),i=0,s=r.length;i<s&&t.isDefined(e);i++){var l=r[i];e=null!==e?e[l]:void 0}return e}function r(e,n){for(var a in n=n||{},t.forEach(n,(function(e,t){delete n[t]})),e)!e.hasOwnProperty(a)||"$"===a.charAt(0)&&"$"===a.charAt(1)||(n[a]=e[a]);return n}t.module("ngResource",["ng"]).info({angularVersion:"1.8.2"}).provider("$resource",(function(){var e=/^https?:\/\/\[[^\]]*][^/]*/,a=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(i,s,l,c){var u=t.noop,d=t.forEach,f=t.extend,m=t.copy,p=t.isArray,g=t.isDefined,h=t.isFunction,_=t.isNumber,b=t.$$encodeUriQuery,y=t.$$encodeUriSegment;function v(e,t){this.template=e,this.defaults=f({},a.defaults,t),this.urlParams={}}return v.prototype={setUrlParams:function(t,a,o){var r,i,s=this,l=o||s.template,c="",u=s.urlParams=Object.create(null);d(l.split(/\W/),(function(e){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(l)&&(u[e]={isQueryParamValue:new RegExp("\\?.*=:"+e+"(?:\\W|$)").test(l)})})),l=(l=l.replace(/\\:/g,":")).replace(e,(function(e){return c=e,""})),a=a||{},d(s.urlParams,(function(e,t){r=a.hasOwnProperty(t)?a[t]:s.defaults[t],g(r)&&null!==r?(i=e.isQueryParamValue?b(r,!0):y(r),l=l.replace(new RegExp(":"+t+"(\\W|$)","g"),(function(e,t){return i+t}))):l=l.replace(new RegExp("(/?):"+t+"(\\W|$)","g"),(function(e,t,n){return"/"===n.charAt(0)?n:t+n}))})),s.defaults.stripTrailingSlashes&&(l=l.replace(/\/+$/,"")||"/"),l=l.replace(/\/\.(?=\w+($|\?))/,"."),t.url=c+l.replace(/\/(\\|%5C)\./,"/."),d(a,(function(e,n){s.urlParams[n]||(t.params=t.params||{},t.params[n]=e)}))}},function(e,t,b,y){var A=new v(e,y);function S(e,n){var a={};return n=f({},t,n),d(n,(function(t,n){h(t)&&(t=t(e)),a[n]=t&&t.charAt&&"@"===t.charAt(0)?o(e,t.substr(1)):t})),a}function w(e){return e.resource}function E(e){r(e||{},this)}return b=f({},a.defaults.actions,b),E.prototype.toJSON=function(){var e=f({},this);return delete e.$promise,delete e.$resolved,delete e.$cancelRequest,e},d(b,(function(e,t){var a=!0===e.hasBody||!1!==e.hasBody&&/^(POST|PUT|PATCH)$/i.test(e.method),o=e.timeout,b=g(e.cancellable)?e.cancellable:A.defaults.cancellable;o&&!_(o)&&(s.debug("ngResource:\n  Only numeric values are allowed as `timeout`.\n  Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete e.timeout,o=null),E[t]=function(s,g,_,y){var v,C,T,I={};switch(arguments.length){case 4:T=y,C=_;case 3:case 2:if(!h(g)){I=s,v=g,C=_;break}if(h(s)){C=s,T=g;break}C=g,T=_;case 1:h(s)?C=s:a?v=s:I=s;break;case 0:break;default:throw n("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var k,D,x,M=this instanceof E,P=M?v:e.isArray?[]:new E(v),O={},R=e.interceptor&&e.interceptor.request||void 0,N=e.interceptor&&e.interceptor.requestError||void 0,L=e.interceptor&&e.interceptor.response||w,$=e.interceptor&&e.interceptor.responseError||l.reject,U=C?function(e){C(e,x.headers,x.status,x.statusText)}:void 0,j=T||void 0;d(e,(function(e,t){switch(t){default:O[t]=m(e);break;case"params":case"isArray":case"interceptor":case"cancellable":}})),!M&&b&&(k=l.defer(),O.timeout=k.promise,o&&(D=c(k.resolve,o))),a&&(O.data=v),A.setUrlParams(O,f({},S(v,e.params||{}),I),e.url);var F=l.resolve(O).then(R).catch(N).then(i);return(F=(F=F.then((function(a){var o=a.data;if(o){if(p(o)!==!!e.isArray)throw n("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",t,e.isArray?"array":"object",p(o)?"array":"object",O.method,O.url);if(e.isArray)P.length=0,d(o,(function(e){"object"==typeof e?P.push(new E(e)):P.push(e)}));else{var i=P.$promise;r(o,P),P.$promise=i}}return a.resource=P,x=a,L(a)}),(function(e){return e.resource=P,x=e,$(e)}))).finally((function(){P.$resolved=!0,!M&&b&&(P.$cancelRequest=u,c.cancel(D),k=D=O.timeout=null)}))).then(U,j),M?F:(P.$promise=F,P.$resolved=!1,b&&(P.$cancelRequest=q),P);function q(e){F.catch(u),null!==k&&k.resolve(e)}},E.prototype["$"+t]=function(e,n,a){h(e)&&(a=n,n=e,e={});var o=E[t].call(this,e,this,n,a);return o.$promise||o}})),E}}]}))}(window,window.angular)},"./node_modules/angular-resource/index.js":(e,t,n)=>{n("./node_modules/angular-resource/angular-resource.js"),e.exports="ngResource"},"./node_modules/angular-sanitize/angular-sanitize.js":()=>{!function(e,t){"use strict";var n,a,o,r,i,s,l,c,u,d,f=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",(function(){var m=!1,p=!1;this.$get=["$$sanitizeUri",function(e){return m=!0,p&&a(C,w),function(t){var n=[];return u(t,d(n,(function(t,n){return!/^unsafe:/.test(e(t,n))}))),n.join("")}}],this.enableSvg=function(e){return i(e)?(p=e,this):p},this.addValidElements=function(e){return m||(r(e)&&(e={htmlElements:e}),P(w,e.svgElements),P(_,e.htmlVoidElements),P(C,e.htmlVoidElements),P(C,e.htmlElements)),this},this.addValidAttrs=function(e){return m||a(D,M(e,!0)),this},n=t.bind,a=t.extend,o=t.forEach,r=t.isArray,i=t.isDefined,s=t.$$lowercase,l=t.noop,u=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=O(e);if(!n)return"";var a=5;do{if(0===a)throw f("uinput","Failed to sanitize html because the input is unstable");a--,e=n.innerHTML,n=O(e)}while(e!==n.innerHTML);var o=n.firstChild;for(;o;){switch(o.nodeType){case 1:t.start(o.nodeName.toLowerCase(),R(o.attributes));break;case 3:t.chars(o.textContent)}var r;if(!((r=o.firstChild)||(1===o.nodeType&&t.end(o.nodeName.toLowerCase()),r=$("nextSibling",o))))for(;null==r&&(o=$("parentNode",o))!==n;)r=$("nextSibling",o),1===o.nodeType&&t.end(o.nodeName.toLowerCase());o=r}for(;o=n.firstChild;)n.removeChild(o)},d=function(e,t){var a=!1,r=n(e,e.push);return{start:function(e,n){e=s(e),!a&&E[e]&&(a=e),a||!0!==C[e]||(r("<"),r(e),o(n,(function(n,a){var o=s(a),i="img"===e&&"src"===o||"background"===o;!0!==D[o]||!0===T[o]&&!t(n,i)||(r(" "),r(a),r('="'),r(N(n)),r('"'))})),r(">"))},end:function(e){e=s(e),a||!0!==C[e]||!0===_[e]||(r("</"),r(e),r(">")),e==a&&(a=!1)},chars:function(e){a||r(N(e))}}},c=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=/([^#-~ |!])/g,_=x("area,br,col,hr,img,wbr"),b=x("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y=x("rp,rt"),v=a({},y,b),A=a({},b,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,section,table,ul")),S=a({},y,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("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"),E=x("script,style"),C=a({},_,A,S,v),T=x("background,cite,href,longdesc,src,xlink:href,xml:base"),I=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,tabindex,target,title,type,valign,value,vspace,width"),k=x("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),D=a({},T,k,I);function x(e,t){return M(e.split(","),t)}function M(e,t){var n,a={};for(n=0;n<e.length;n++)a[t?s(e[n]):e[n]]=!0;return a}function P(e,t){t&&t.length&&a(e,M(t))}var O=function(e,t){if(function(){try{return!!o("")}catch(e){return!1}}())return o;if(!t||!t.implementation)throw f("noinert","Can't create an inert html document");var n=t.implementation.createHTMLDocument("inert"),a=(n.documentElement||n.getDocumentElement()).querySelector("body");return function(e){a.innerHTML=e,t.documentMode&&L(a);return a};function o(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}}(e,e.document);function R(e){for(var t={},n=0,a=e.length;n<a;n++){var o=e[n];t[o.name]=o.value}return t}function N(e){return e.replace(/&/g,"&amp;").replace(g,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(h,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function L(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,a=0,o=n.length;a<o;a++){var r=n[a],i=r.name.toLowerCase();"xmlns:ns1"!==i&&0!==i.lastIndexOf("ns1:",0)||(t.removeAttributeNode(r),a--,o--)}var s=t.firstChild;s&&L(s),t=$("nextSibling",t)}}function $(e,t){var n=t[e];if(n&&c.call(t,n))throw f("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}})).info({angularVersion:"1.8.2"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,a=/^mailto:/i,o=t.$$minErr("linky"),r=t.isDefined,i=t.isFunction,s=t.isObject,c=t.isString;return function(t,u,f){if(null==t||""===t)return t;if(!c(t))throw o("notstring","Expected string but received: {0}",t);for(var m,p,g,h=i(f)?f:s(f)?function(){return f}:function(){return{}},_=t,b=[];m=_.match(n);)p=m[0],m[2]||m[4]||(p=(m[3]?"http://":"mailto:")+p),g=m.index,y(_.substr(0,g)),v(p,m[0].replace(a,"")),_=_.substring(g+m[0].length);return y(_),e(b.join(""));function y(e){var t,n;e&&b.push((t=e,d(n=[],l).chars(t),n.join("")))}function v(e,t){var n,a=h(e);for(n in b.push("<a "),a)b.push(n+'="'+a[n]+'" ');r(u)&&!("target"in a)&&b.push('target="',u,'" '),b.push('href="',e.replace(/"/g,"&quot;"),'">'),y(t),b.push("</a>")}}}])}(window,window.angular)},"./node_modules/angular-sanitize/index.js":(e,t,n)=>{n("./node_modules/angular-sanitize/angular-sanitize.js"),e.exports="ngSanitize"},"./node_modules/angular-sortable-view/src/angular-sortable-view.js":()=>{!function(e,t){"use strict";var n=t.module("angular-sortable-view",[]);function a(e){if(!("clientX"in e)&&!("clientY"in e)){var t=e.touches||e.originalEvent.touches;t&&t.length&&(e.clientX=t[0].clientX,e.clientY=t[0].clientY),e.preventDefault()}}n.directive("svRoot",[function(){function e(e,t,n){return n?e.x-t.x<0:e.y-t.y<0}function n(e){return s[e]}function a(e){return[{x:e.left,y:e.top},{x:e.left+e.width,y:e.top},{x:e.left,y:e.top+e.height},{x:e.left+e.width,y:e.top+e.height},{x:e.left+e.width/2,y:e.top+e.height/2}]}function o(e,t){return e.x>=t[0].x&&e.x<=t[1].x&&e.y>=t[0].y&&e.y<=t[2].y?0:Math.min.apply(Math,t.map((function(t){return(t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)})))}var r,s=Object.create(null);return{restrict:"A",controller:["$scope","$attrs","$interpolate","$parse",function(l,c,u,d){var f=u(c.svRoot)(l)||l.$id;s[f]||(s[f]=[]);var m,p,g,h,_,b=!1,y=d(c.svOnSort);c.svOnStart=c.$$element[0].attributes["sv-on-start"],c.svOnStart=c.svOnStart&&c.svOnStart.value,c.svOnStop=c.$$element[0].attributes["sv-on-stop"],c.svOnStop=c.svOnStop&&c.svOnStop.value;var v=d(c.svOnStart),A=d(c.svOnStop);if(this.sortingInProgress=function(){return r},c.svGrid){if(null===(b="true"===c.svGrid||"false"!==c.svGrid&&null))throw"Invalid value of sv-grid attribute"}else l.$watchCollection((function(){return n(f)}),(function(e){b=!1;var t=e.filter((function(e){return!e.container})).map((function(e){return{part:e.getPart().id,y:e.element[0].getBoundingClientRect().top}})),n=Object.create(null);t.forEach((function(e){n[e.part]?n[e.part].push(e.y):n[e.part]=[e.y]})),Object.keys(n).forEach((function(e){n[e].sort(),n[e].forEach((function(t,a){a<n[e].length-1&&t>0&&t===n[e][a+1]&&(b=!0)}))}))}));this.$moveUpdate=function(s,c,u,d,y,A,S){var w=u[0].getBoundingClientRect();"element"===s.tolerance&&(c={x:~~(w.left+w.width/2),y:~~(w.top+w.height/2)}),r=!0,m=[],p||(y?(p=y.clone()).removeClass("ng-hide"):((p=d.clone()).addClass("sv-visibility-hidden"),p.addClass("sv-placeholder"),p.css({height:w.height+"px",width:w.width+"px"})),d.after(p),A.copyMode||d.addClass("ng-hide"),h=d,s,v(l,{$helper:{element:g=u},$part:A.model(A.scope),$index:S,$item:A.model(A.scope)[S]}),l.$root&&l.$root.$$phase||l.$apply()),g[0].reposition({x:c.x+document.body.scrollLeft-c.offset.x*w.width,y:c.y+document.body.scrollTop-c.offset.y*w.height}),n(f).forEach((function(t,n){if(null==s.containment||i(t.element,s.containment)||i(t.element,s.containment+" *")){var r=t.element[0].getBoundingClientRect(),l=a(r),u={x:~~(r.left+r.width/2),y:~~(r.top+r.height/2)},d={x:~~(r.left+r.width/2),y:~~r.top},f={x:~~r.left,y:~~(r.top+r.height/2)};if(!t.container&&(t.element[0].scrollHeight||t.element[0].scrollWidth)){var p=t.getPart();m.push({element:t.element,q:o(c,l),view:p,targetIndex:t.getIndex(),after:e(u,c,"isGrid"in p?p.isGrid:b)})}if(t.container&&!t.element[0].querySelector("[sv-element]:not(.sv-placeholder):not(.sv-source)")){var g=u;"vertical"===t.centerVariant?g=f:"horizontal"===t.centerVariant&&(g=d),m.push({element:t.element,q:(g.x-c.x)*(g.x-c.x)+(g.y-c.y)*(g.y-c.y),view:t.getPart(),targetIndex:0,container:!0})}}}));var E=p[0].getBoundingClientRect();m.push({q:o(c,a(E)),element:p,placeholder:!0}),m.sort((function(e,t){return e.q-t.q})),m.forEach((function(e,n){var a,o,r;0!==n||e.placeholder||e.container?0===n&&e.container?(_=e,e.element.append(p)):e.element.removeClass("sv-candidate"):(_=e,e.element.addClass("sv-candidate"),e.after?e.element.after(p):(a=e.element,o=p,(r=function(e){if((e=e[0]).previousElementSibling)return t.element(e.previousElementSibling);for(var n=e.previousSibling;null!=n&&1!=n.nodeType;)n=n.previousSibling;return t.element(n)}(a)).length>0?r.after(o):a.parent().prepend(o)))}))},this.$drop=function(e,t,n){if(p)if(!n.revert||_&&_.view&&_.view.noRevert)c();else{var a=p[0].getBoundingClientRect(),o=g[0].getBoundingClientRect(),i=Math.sqrt(Math.pow(o.top-a.top,2)+Math.pow(o.left-a.left,2)),s=+n.revert*i/200;s=Math.min(s,+n.revert),["-webkit-","-moz-","-ms-","-o-",""].forEach((function(e){void 0!==g[0].style[e+"transition"]&&(g[0].style[e+"transition"]="all "+s+"ms ease")})),setTimeout(c,s),g.css({top:a.top+document.body.scrollTop+"px",left:a.left+document.body.scrollLeft+"px"})}function c(){if(r=!1,p.remove(),g.remove(),h.removeClass("ng-hide"),m=void 0,p=void 0,n=void 0,g=void 0,h=void 0,A(l,{$part:e.model(e.scope),$index:t,$item:e.model(e.scope)[t]}),_){_.element.removeClass("sv-candidate");var a=e.model(e.scope).splice(t,1),o=_.targetIndex;_.view===e&&_.targetIndex>t&&o--,_.after&&o++,_.view.model(_.view.scope).splice(o,0,a[0]),_.view===e&&t===o||y(l,{$partTo:_.view.model(_.view.scope),$partFrom:e.model(e.scope),$item:a[0],$indexTo:o,$indexFrom:t})}_=void 0,l.$root&&l.$root.$$phase||l.$apply()}},this.addToSortableElements=function(e){n(f).push(e)},this.removeFromSortableElements=function(e){var t=n(f),a=t.indexOf(e);a>-1&&(t.splice(a,1),0===t.length&&delete s[f])}}]}}]),n.directive("svPart",["$parse",function(e){return{restrict:"A",require:"^svRoot",controller:["$scope",function(e){e.$ctrl=this,this.getPart=function(){return e.part},this.$drop=function(t,n){e.$sortableRoot.$drop(e.part,t,n)}}],scope:!0,link:function(t,n,a,o){if(!a.svPart)throw new Error("no model provided");var r=e(a.svPart);if(!r.assign)throw new Error("model not assignable");t.part={id:t.$id,element:n,model:r,copyMode:"true"===a.svCopy,noRevert:"true"===a.svNoRevert,scope:t},"isGrid"in a&&(t.part.isGrid="true"===a.isGrid),t.$sortableRoot=o;var i={element:n,getPart:t.$ctrl.getPart,container:!0,centerVariant:a.svCenter||"both"};o.addToSortableElements(i),t.$on("$destroy",(function(){o.removeFromSortableElements(i)}))}}}]),n.directive("svElement",["$parse",function(e){return{restrict:"A",require:["^svPart","^svRoot"],controller:["$scope",function(e){e.$ctrl=this}],link:function(n,o,r,i){var l={element:o,getPart:i[0].getPart,getIndex:function(){return n.$index}};i[1].addToSortableElements(l),n.$on("$destroy",(function(){i[1].removeFromSortableElements(l)}));var c,u,d=o;d.on("mousedown touchstart",p),n.$watch("$ctrl.handle",(function(e){e&&(d.off("mousedown touchstart",p),(d=e).on("mousedown touchstart",p))})),n.$watch("$ctrl.helper",(function(e){e&&(c=e)})),n.$watch("$ctrl.placeholder",(function(e){e&&(u=e)}));t.element(document.body);var f,m=t.element(document.documentElement);function p(l){if(a(l),!i[1].sortingInProgress()&&(0==l.button||"mousedown"!==l.type)){var d=l.target.attributes["sv-handle-disabled"];if(!d||"true"!==d.value){f=!1;var p=e(r.svElement)(n);if((p=t.extend({},{tolerance:"pointer",revert:200,containment:"html"},p)).containment)var g=s.call(o,p.containment)[0].getBoundingClientRect();var h,_=o,b=o[0].getBoundingClientRect();c||(c=i[0].helper),u||(u=i[0].placeholder),c?((h=c.clone()).removeClass("ng-hide"),h.css({left:b.left+document.body.scrollLeft+"px",top:b.top+document.body.scrollTop+"px"}),_.addClass("sv-visibility-hidden")):(h=_.clone()).addClass("sv-helper").css({left:b.left+document.body.scrollLeft+"px",top:b.top+document.body.scrollTop+"px",width:b.width+"px"}),h[0].reposition=function(e){var t=e.x,n=e.y,a=h[0].getBoundingClientRect(),o=document.body;g&&(n<g.top+o.scrollTop&&(n=g.top+o.scrollTop),n+a.height>g.top+o.scrollTop+g.height&&(n=g.top+o.scrollTop+g.height-a.height),t<g.left+o.scrollLeft&&(t=g.left+o.scrollLeft),t+a.width>g.left+o.scrollLeft+g.width&&(t=g.left+o.scrollLeft+g.width-a.width)),this.style.left=t-o.scrollLeft+"px",this.style.top=n-o.scrollTop+"px"};var y={x:(l.clientX-b.left)/b.width,y:(l.clientY-b.top)/b.height};m.addClass("sv-sorting-in-progress"),m.on("mousemove touchmove",v).on("mouseup touchend touchcancel",(function e(t){m.off("mousemove touchmove",v),m.off("mouseup touchend touchcancel",e),m.removeClass("sv-sorting-in-progress"),f&&i[0].$drop(n.$index,p),o.removeClass("sv-visibility-hidden")}))}}function v(e){a(e),f||(o.parent().prepend(h),f=!0),i[1].$moveUpdate(p,{x:e.clientX,y:e.clientY,offset:y},h,o,u,i[0].getPart(),n.$index)}}}}}]),n.directive("svHandle",(function(){return{require:"?^svElement",link:function(e,t,n,a){a&&(a.handle=t.add(a.handle))}}})),n.directive("svHelper",(function(){return{require:["?^svPart","?^svElement"],link:function(e,t,n,a){t.addClass("sv-helper").addClass("ng-hide"),a[1]?a[1].helper=t:a[0]&&(a[0].helper=t)}}})),n.directive("svPlaceholder",(function(){return{require:["?^svPart","?^svElement"],link:function(e,t,n,a){t.addClass("sv-placeholder").addClass("ng-hide"),a[1]?a[1].placeholder=t:a[0]&&(a[0].placeholder=t)}}})),t.element(document.head).append(["<style>.sv-helper{position: fixed !important;z-index: 99999;margin: 0 !important;}.sv-candidate{}.sv-placeholder{}.sv-sorting-in-progress{-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}.sv-visibility-hidden{visibility: hidden !important;opacity: 0 !important;}</style>"].join(""));var o=document.documentElement,r=o.matches?"matches":o.matchesSelector?"matchesSelector":o.webkitMatches?"webkitMatches":o.webkitMatchesSelector?"webkitMatchesSelector":o.msMatches?"msMatches":o.msMatchesSelector?"msMatchesSelector":o.mozMatches?"mozMatches":o.mozMatchesSelector?"mozMatchesSelector":null;if(null==r)throw"This browser doesn't support the HTMLElement.matches method";function i(e,n){if(e instanceof t.element&&(e=e[0]),null!==r)return e[r](n)}var s=t.element.prototype.closest||function(e){for(var n=this[0].parentNode;n!==document.documentElement&&!n[r](e);)n=n.parentNode;return n[r](e)?t.element(n):t.element()};"function"!=typeof t.element.prototype.add&&(t.element.prototype.add=function(e){var n,a=t.element();for(e=t.element(e),n=0;n<this.length;n++)a.push(this[n]);for(n=0;n<e.length;n++)a.push(e[n]);return a})}(window,angular)},"./node_modules/angular-translate-loader-partial/angular-translate-loader-partial.js":function(e,t){var n;void 0===(n=function(){return function(){function e(){"use strict";function e(e,t,n){this.name=e,this.isActive=!0,this.tables={},this.priority=t||0,this.langPromises={},this.urlTemplate=n}e.prototype.parseUrl=function(e,t){return angular.isFunction(e)?e(this.name,t):e.replace(/\{part\}/g,this.name).replace(/\{lang\}/g,t)},e.prototype.getTable=function(e,t,n,a,o,r){var i=this,s=this.langPromises[e],l=t.defer(),c=function(){return n(angular.extend({method:"GET",url:i.parseUrl(i.urlTemplate||o,e)},a))},u=function(t){i.tables[e]=t,l.resolve(t)},d=function(){l.reject(i.name)},f=function(){c().then((function(e){u(e.data)}),(function(t){r?r(i.name,e,t).then(u,d):d()}))};return this.tables[e]?l.resolve(this.tables[e]):(s?s.then(l.resolve,f):f(),this.langPromises[e]=l.promise),l.promise};var t={};function n(e){return Object.prototype.hasOwnProperty.call(t,e)}function a(e){return angular.isString(e)&&""!==e}function o(e){if(!a(e))throw new TypeError("Invalid type of a first argument, a non-empty string expected.");return n(e)&&t[e].isActive}function r(e,t){for(var n in t)t[n]&&t[n].constructor&&t[n].constructor===Object?(e[n]=e[n]||{},r(e[n],t[n])):e[n]=t[n];return e}function i(){var e=[];for(var n in t)t[n].isActive&&e.push(t[n]);return e.sort((function(e,t){return e.priority-t.priority})),e}this.addPart=function(o,r,i){if(!a(o))throw new TypeError("Couldn't add part, part name has to be a string!");return n(o)||(t[o]=new e(o,r,i)),t[o].isActive=!0,this},this.setPart=function(o,r,i){if(!a(o))throw new TypeError("Couldn't set part.`lang` parameter has to be a string!");if(!a(r))throw new TypeError("Couldn't set part.`part` parameter has to be a string!");if("object"!=typeof i||null===i)throw new TypeError("Couldn't set part. `table` parameter has to be an object!");return n(r)||(t[r]=new e(r),t[r].isActive=!1),t[r].tables[o]=i,this},this.deletePart=function(e){if(!a(e))throw new TypeError("Couldn't delete part, first arg has to be string.");return n(e)&&(t[e].isActive=!1),this},this.isPartAvailable=o,this.$get=["$rootScope","$injector","$q","$http","$log",function(s,l,c,u,d){var f=function(e){if(!a(e.key))throw new TypeError("Unable to load data, a key is not a non-empty string.");if(!a(e.urlTemplate)&&!angular.isFunction(e.urlTemplate))throw new TypeError("Unable to load data, a urlTemplate is not a non-empty string or not a function.");var t=e.loadFailureHandler;if(void 0!==t){if(!angular.isString(t))throw new Error("Unable to load data, a loadFailureHandler is not a string.");t=l.get(t)}var n=[],o=i();angular.forEach(o,(function(a){n.push(a.getTable(e.key,c,u,e.$http,e.urlTemplate,t)),a.urlTemplate=a.urlTemplate||e.urlTemplate}));var m=!1,p=s.$on("$translatePartialLoaderStructureChanged",(function(){m=!0}));return c.all(n).then((function(){if(p(),m){if(!e.__retries)return e.__retries=(e.__retries||0)+1,f(e);d.warn("The partial loader has detected a multiple structure change (with addPort/removePart) while loading translations. You should consider using promises of $translate.use(lang) and $translate.refresh(). Also parts should be added/removed right before an explicit refresh if possible.")}var t={};return o=i(),angular.forEach(o,(function(n){r(t,n.tables[e.key])})),t}),(function(){return p(),c.reject(e.key)}))};return f.addPart=function(o,r,i){if(!a(o))throw new TypeError("Couldn't add part, first arg has to be a string");return n(o)?t[o].isActive||(t[o].isActive=!0,s.$emit("$translatePartialLoaderStructureChanged",o)):(t[o]=new e(o,r,i),s.$emit("$translatePartialLoaderStructureChanged",o)),f},f.deletePart=function(e,o){if(!a(e))throw new TypeError("Couldn't delete part, first arg has to be string");if(void 0===o)o=!1;else if("boolean"!=typeof o)throw new TypeError("Invalid type of a second argument, a boolean expected.");if(n(e)){var r=t[e].isActive;if(o){var i=l.get("$translate").loaderCache();"string"==typeof i&&(i=l.get(i)),"object"==typeof i&&angular.forEach(t[e].tables,(function(n,a){i.remove(t[e].parseUrl(t[e].urlTemplate,a))})),delete t[e]}else t[e].isActive=!1;r&&s.$emit("$translatePartialLoaderStructureChanged",e)}return f},f.isPartLoaded=function(e,n){return angular.isDefined(t[e])&&angular.isDefined(t[e].tables[n])},f.getRegisteredParts=function(){var e=[];return angular.forEach(t,(function(t){t.isActive&&e.push(t.name)})),e},f.isPartAvailable=o,f}]}return angular.module("pascalprecht.translate").provider("$translatePartialLoader",e),e.displayName="$translatePartialLoader","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=n)},"./node_modules/angular-translate/dist/angular-translate.js":function(e,t){var n;void 0===(n=function(){return function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),a=function(){var a=e.preferredLanguage();angular.isString(a)?e.use(a):n.put(t,e.use())};a.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(a):a():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(){"use strict";var e,t,n,a=null,o=!1,r=!1;(n={sanitize:function(e,t){return"text"===t&&(e=s(e)),e},escape:function(e,t){return"text"===t&&(e=i(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=c(e,s)),e},escapeParameters:function(e,t){return"params"===t&&(e=c(e,i)),e},sce:function(e,t,n){return"text"===t?e=l(e):"params"===t&&"filter"!==n&&(e=c(e,i)),e},sceParameters:function(e,t){return"params"===t&&(e=c(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 o=!0,a=e,this},this.$get=["$injector","$log",function(i,s){var l={},c=function(e,t,a,o){return angular.forEach(o,(function(o){if(angular.isFunction(o))e=o(e,t,a);else if(angular.isFunction(n[o]))e=n[o](e,t,a);else{if(!angular.isString(n[o]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+o+"'");if(!l[n[o]])try{l[n[o]]=i.get(n[o])}catch(e){throw l[n[o]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+o+"'")}e=l[n[o]](e,t,a)}})),e},u=function(){o||r||(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."),r=!0)};return i.has("$sanitize")&&(e=i.get("$sanitize")),i.has("$sce")&&(t=i.get("$sce")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,n,o){if(a||u(),n||null===n||(n=a),!n)return e;o||(o="service");var r=angular.isArray(n)?n:[n];return c(e,t,o,r)}}}];var i=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)},c=function(e,t,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var a=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,o){angular.isFunction(e)||(a[o]=c(e,t,n))})),n.splice(-1,1),a}return angular.isNumber(e)||!0===e||!1===e||angular.isUndefined(e)||null===e?e:t(e)}}function n(e,t,n,a){"use strict";var o,r,i,s,l,c,u,d,f,m,p,g,h,_,b,y,v={},A=[],S=e,w=[],E="translate-cloak",C=!1,T=!1,I=".",k=!1,D=!1,x=0,M=!0,P="default",O={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){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},R="2.18.4",N=function(){if(angular.isFunction(a.getLocale))return a.getLocale();var e,n,o=t.$get().navigator,r=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(o.languages))for(e=0;e<o.languages.length;e++)if((n=o.languages[e])&&n.length)return n;for(e=0;e<r.length;e++)if((n=o[r[e]])&&n.length)return n;return null};N.displayName="angular-translate/service: getFirstBrowserLanguage";var L=function(){var e=N()||"";return O[P]&&(e=O[P](e)),e};L.displayName="angular-translate/service: getLocale";var $=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},U=function(){return this.toString().replace(/^\s+|\s+$/g,"")},j=function(e){return angular.isString(e)?e.toLowerCase():e},F=function(e){if(e){for(var t,n=[],a=j(e),o=0,i=A.length;o<i;o++)n.push(j(A[o]));if((o=$(n,a))>-1)return A[o];if(r)for(var s in r)if(r.hasOwnProperty(s)){var l=!1,c=Object.prototype.hasOwnProperty.call(r,s)&&j(s)===j(e);if("*"===s.slice(-1)&&(l=j(s.slice(0,-1))===j(e.slice(0,s.length-1))),(c||l)&&(t=r[s],$(n,j(t))>-1))return t}var u=e.split("_");return u.length>1&&$(n,j(u[0]))>-1?u[0]:void 0}},q=function(e,t){if(!e&&!t)return v;if(e&&!t){if(angular.isString(e))return v[e]}else angular.isObject(v[e])||(v[e]={}),angular.extend(v[e],Y(t));return this};this.translations=q,this.cloakClassName=function(e){return e?(E=e,this):E},this.nestedObjectDelimeter=function(e){return e?(I=e,this):I};var Y=function(e,t,n,a){var o,r,i;for(o in t||(t=[]),n||(n={}),e)Object.prototype.hasOwnProperty.call(e,o)&&(i=e[o],angular.isObject(i)?Y(i,t.concat(o),n,o):(r=t.length?""+t.join(I)+I+o:o,t.length&&o===a&&(n[""+t.join(I)]="@:"+r),n[r]=i));return n};Y.displayName="flatObject",this.addInterpolation=function(e){return w.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return m=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(H(e),this):o};var H=function(e){return e&&(o=e),o};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(h=e,this):h},this.translationNotFoundIndicatorRight=function(e){return e?(_=e,this):_},this.fallbackLanguage=function(e){return B(e),this};var B=function(e){return e?(angular.isString(e)?(s=!0,i=[e]):angular.isArray(e)&&(s=!1,i=e),angular.isString(o)&&$(i,o)<0&&i.push(o),this):s?i[0]:i};this.use=function(e){if(e){if(!v[e]&&!p)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return l=e,this}return l},this.resolveClientLocale=function(){return L()};var G=function(e){return e?(S=e,this):d?d+S:S};this.storageKey=G,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 p=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return u=e,this},this.storagePrefix=function(e){return e?(d=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return f=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={},P=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():L();return o=A.length&&F(t)||t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(A=e,t&&(r=t),this):A},this.useLoaderCache=function(e){return!1===e?b=void 0:!0===e?b=!0:void 0===e?b="$translationCache":e&&(b=e),this},this.directivePriority=function(e){return void 0===e?x:(x=e,this)},this.statefulFilter=function(e){return void 0===e?M:(M=e,this)},this.postProcess=function(e){return y=e||void 0,this},this.keepContent=function(e){return D=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,a){var r,d,P,O=t.get(m||"$translateDefaultInterpolation"),N=!1,j={},V={},W=function(e,t,n,s,c,f){!l&&o&&(l=o);var m=c&&c!==l?F(c)||c:l;if(c&&ue(c),angular.isArray(e))return function(e){for(var o={},r=[],i=function(e){var r=a.defer(),i=function(t){o[e]=t,r.resolve([e,t])};return W(e,t,n,s,c,f).then(i,i),r.promise},l=0,u=e.length;l<u;l++)r.push(i(e[l]));return a.all(r).then((function(){return o}))}(e);var p=a.defer();if(!e)throw new TypeError("translationId must be a not empty string");e=U.apply(e);var g=function(){var e=V[m]||V[o];if(d=0,u&&!e){var t=r.get(S);if(e=V[t],i&&i.length){var n=$(i,t);d=0===n?1:0,$(i,o)<0&&i.push(o)}}return e}();if(g){var h=function(){c||(m=l),ie(e,t,n,s,m,f).then(p.resolve,p.reject)};h.displayName="promiseResolved",g.finally(h).catch(angular.noop)}else ie(e,t,n,s,m,f).then(p.resolve,p.reject);return p.promise},Q=function(e){return h&&(e=[h,e].join(" ")),_&&(e=[e,_].join(" ")),e},z=function(e){l=e,u&&r.put(W.storageKey(),l),n.$emit("$translateChangeSuccess",{language:e}),O.setLocale(l);var t=function(e,t){j[t].setLocale(l)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(j,t),n.$emit("$translateChangeEnd",{language:e})},K=function(e){if(!e)throw"No language key specified for loading.";var o=a.defer();n.$emit("$translateLoadingStart",{language:e}),N=!0;var r=b;"string"==typeof r&&(r=t.get(r));var i=angular.extend({},g,{key:e,$http:angular.extend({},{cache:r},g.$http)}),s=function(t){var a={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,(function(e){angular.extend(a,Y(e))})):angular.extend(a,Y(t)),N=!1,o.resolve({key:e,table:a}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var l=function(e){n.$emit("$translateLoadingError",{language:e}),o.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return l.displayName="onLoaderError",t.get(p)(i).then(s,l),o.promise};if(u&&(!(r=t.get(u)).get||!r.put))throw new Error("Couldn't use storage '"+u+"', missing get() or put() method!");if(w.length){var J=function(e){var n=t.get(e);n.setLocale(o||l),j[n.getInterpolationIdentifier()]=n};J.displayName="interpolationFactoryAdder",angular.forEach(w,J)}var X=function(e){var t=a.defer();if(Object.prototype.hasOwnProperty.call(v,e))t.resolve(v[e]);else if(V[e]){var n=function(e){q(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",V[e].then(n,t.reject)}else t.reject();return t.promise},Z=function(e,t,n,o,r){var i=a.defer(),s=function(a){if(Object.prototype.hasOwnProperty.call(a,t)&&null!==a[t]){o.setLocale(e);var s=a[t];if("@:"===s.substr(0,2))Z(e,s.substr(2),n,o,r).then(i.resolve,i.reject);else{var c=o.interpolate(a[t],n,"service",r,t);c=ce(t,a[t],c,n,e),i.resolve(c)}o.setLocale(l)}else i.reject()};return s.displayName="fallbackTranslationResolver",X(e).then(s,i.reject),i.promise},ee=function(e,t,n,a,o){var r,i=v[e];if(i&&Object.prototype.hasOwnProperty.call(i,t)&&null!==i[t]){if(a.setLocale(e),r=a.interpolate(i[t],n,"filter",o,t),r=ce(t,i[t],r,n,e,o),!angular.isString(r)&&angular.isFunction(r.$$unwrapTrustedValue)){var s=r.$$unwrapTrustedValue();if("@:"===s.substr(0,2))return ee(e,s.substr(2),n,a,o)}else if("@:"===r.substr(0,2))return ee(e,r.substr(2),n,a,o);a.setLocale(l)}return r},te=function(e,n,a,o){return f?t.get(f)(e,l,n,a,o):e},ne=function(e,t,n,o,r,s){var l=a.defer();if(e<i.length){var c=i[e];Z(c,t,n,o,s).then((function(e){l.resolve(e)}),(function(){return ne(e+1,t,n,o,r,s).then(l.resolve,l.reject)}))}else if(r)l.resolve(r);else{var u=te(t,n,r);f&&u?l.resolve(u):l.reject(Q(t))}return l.promise},ae=function(e,t,n,a,o){var r;if(e<i.length){var s=i[e];(r=ee(s,t,n,a,o))||""===r||(r=ae(e+1,t,n,a))}return r},oe=function(e,t,n,a,o){return ne(P>0?P:d,e,t,n,a,o)},re=function(e,t,n,a){return ae(P>0?P:d,e,t,n,a)},ie=function(e,t,n,o,r,s){var l=a.defer(),c=r?v[r]:v,u=n?j[n]:O;if(c&&Object.prototype.hasOwnProperty.call(c,e)&&null!==c[e]){var d=c[e];if("@:"===d.substr(0,2))W(d.substr(2),t,n,o,r,s).then(l.resolve,l.reject);else{var m=u.interpolate(d,t,"service",s,e);m=ce(e,d,m,t,r),l.resolve(m)}}else{var p;f&&!N&&(p=te(e,t,o)),r&&i&&i.length?oe(e,t,u,o,s).then((function(e){l.resolve(e)}),(function(e){l.reject(Q(e))})):f&&!N&&p?o?l.resolve(o):l.resolve(p):o?l.resolve(o):l.reject(Q(e))}return l.promise},se=function(e,t,n,a,o){var r,s=a?v[a]:v,l=O;if(j&&Object.prototype.hasOwnProperty.call(j,n)&&(l=j[n]),s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){var c=s[e];"@:"===c.substr(0,2)?r=se(c.substr(2),t,n,a,o):(r=l.interpolate(c,t,"filter",o,e),r=ce(e,c,r,t,a,o))}else{var u;f&&!N&&(u=te(e,t,o)),a&&i&&i.length?(d=0,r=re(e,t,l,o)):r=f&&!N&&u?u:Q(e)}return r},le=function(e){c===e&&(c=void 0),V[e]=void 0},ce=function(e,n,a,o,r,i){var s=y;return s&&("string"==typeof s&&(s=t.get(s)),s)?s(e,n,a,o,r,i):a},ue=function(e){v[e]||!p||V[e]||(V[e]=K(e).then((function(e){return q(e.key,e.table),e})))};W.preferredLanguage=function(e){return e&&H(e),o},W.cloakClassName=function(){return E},W.nestedObjectDelimeter=function(){return I},W.fallbackLanguage=function(e){if(null!=e){if(B(e),p&&i&&i.length)for(var t=0,n=i.length;t<n;t++)V[i[t]]||(V[i[t]]=K(i[t]));W.use(W.use())}return s?i[0]:i},W.useFallbackLanguage=function(e){if(null!=e)if(e){var t=$(i,e);t>-1&&(P=t)}else P=0},W.proposedLanguage=function(){return c},W.storage=function(){return r},W.negotiateLocale=F,W.use=function(e){if(!e)return l;var t=a.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var o=F(e);return A.length>0&&!o?a.reject(e):(o&&(e=o),c=e,!T&&v[e]||!p||V[e]?V[e]?V[e].then((function(e){return c===e.key&&z(e.key),t.resolve(e.key),e}),(function(e){return!l&&i&&i.length>0&&i[0]!==e?W.use(i[0]).then(t.resolve,t.reject):t.reject(e)})):(t.resolve(e),z(e)):(V[e]=K(e).then((function(n){return q(n.key,n.table),t.resolve(n.key),c===e&&z(n.key),n}),(function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),a.reject(e)})),V[e].finally((function(){le(e)})).catch(angular.noop)),t.promise)},W.resolveClientLocale=function(){return L()},W.storageKey=function(){return G()},W.isPostCompilingEnabled=function(){return C},W.isForceAsyncReloadEnabled=function(){return T},W.isKeepContent=function(){return D},W.refresh=function(e){if(!p)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var t=a.defer(),o={};function r(e){var t=K(e);return V[e]=t,t.then((function(t){v[e]={},q(e,t.table),o[e]=!0}),angular.noop),t}if(t.promise.then((function(){for(var e in v)v.hasOwnProperty(e)&&(e in o||delete v[e]);l&&z(l)}),angular.noop).finally((function(){n.$emit("$translateRefreshEnd",{language:e})})),e)v[e]?r(e).then(t.resolve,t.reject):t.reject();else{var s=i&&i.slice()||[];l&&-1===s.indexOf(l)&&s.push(l),a.all(s.map(r)).then(t.resolve,t.reject)}return t.promise},W.instant=function(e,t,n,a,r){var s=a&&a!==l?F(a)||a:l;if(null===e||angular.isUndefined(e))return e;if(a&&ue(a),angular.isArray(e)){for(var c={},u=0,d=e.length;u<d;u++)c[e[u]]=W.instant(e[u],t,n,a,r);return c}if(angular.isString(e)&&e.length<1)return e;e&&(e=U.apply(e));var m,p,g=[];o&&g.push(o),s&&g.push(s),i&&i.length&&(g=g.concat(i));for(var b=0,y=g.length;b<y;b++){var A=g[b];if(v[A]&&void 0!==v[A][e]&&(m=se(e,t,n,s,r)),void 0!==m)break}return m||""===m||(h||_?m=Q(e):(m=O.interpolate(e,t,"filter",r),f&&!N&&(p=te(e,t,r)),f&&!N&&p&&(m=p))),m},W.versionInfo=function(){return R},W.loaderCache=function(){return b},W.directivePriority=function(){return x},W.statefulFilter=function(){return M},W.isReady=function(){return k};var de=a.defer();de.promise.then((function(){k=!0})),W.onReady=function(e){var t=a.defer();return angular.isFunction(e)&&t.promise.then(e),k?t.resolve():de.promise.then(t.resolve),t.promise},W.getAvailableLanguageKeys=function(){return A.length>0?A:null},W.getTranslationTable=function(e){return(e=e||W.use())&&v[e]?angular.copy(v[e]):null};var fe=n.$on("$translateReady",(function(){de.resolve(),fe(),fe=null})),me=n.$on("$translateChangeEnd",(function(){de.resolve(),me(),me=null}));if(p){if(angular.equals(v,{})&&W.use()&&W.use(W.use()),i&&i.length)for(var pe=function(e){return q(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},ge=0,he=i.length;ge<he;ge++){var _e=i[ge];!T&&v[_e]||(V[_e]=K(_e).then(pe))}}else n.$emit("$translateReady",{language:W.use()});return W}]}function a(e,t){"use strict";var n={},a="default";return n.setLocale=function(e){},n.getInterpolationIdentifier=function(){return a},n.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},n.interpolate=function(n,a,o,r,i){var s;return a=a||{},a=t.sanitize(a,"params",r,o),angular.isNumber(n)?s=""+n:angular.isString(n)?(s=e(n)(a),s=t.sanitize(s,"text",r,o)):s="",s},n}function o(e,t,n,a,o){"use strict";var i=function(){return this.toString().replace(/^\s+|\s+$/g,"")},s=function(e){return angular.isString(e)?e.toLowerCase():e};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(l,c){var u=c.translateValues?c.translateValues:void 0,d=c.translateInterpolation?c.translateInterpolation:void 0,f=c.translateSanitizeStrategy?c.translateSanitizeStrategy:void 0,m=l[0].outerHTML.match(/translate-value-+/i),p="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",g="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(l,h,_){l.interpolateParams={},l.preText="",l.postText="",l.translateNamespace=r(l);var b={},y=function(e){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var n=i.apply(h.text()).replace(/\n/g," "),a=n.match(p);if(angular.isArray(a)){l.preText=a[1],l.postText=a[3],b.translate=t(a[2])(l.$parent);var o=n.match(g);angular.isArray(o)&&o[2]&&o[2].length&&(y._unwatchOld=l.$watch(o[2],(function(e){b.translate=e,C()})))}else b.translate=n||void 0}else b.translate=e;C()},v=function(e){_.$observe(e,(function(t){b[e]=t,C()}))};!function(e,t,n){if(t.translateValues&&angular.extend(e,a(t.translateValues)(l.$parent)),m)for(var o in n)Object.prototype.hasOwnProperty.call(t,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o&&(e[s(o.substr(14,1))+o.substr(15)]=n[o])}(l.interpolateParams,_,c);var A=!0;for(var S in _.$observe("translate",(function(e){void 0===e?y(""):""===e&&A||(b.translate=e,C()),A=!1})),_)_.hasOwnProperty(S)&&"translateAttr"===S.substr(0,13)&&S.length>13&&v(S);if(_.$observe("translateDefault",(function(e){l.defaultText=e,C()})),f&&_.$observe("translateSanitizeStrategy",(function(e){l.sanitizeStrategy=a(e)(l.$parent),C()})),u&&_.$observe("translateValues",(function(e){e&&l.$parent.$watch((function(){angular.extend(l.interpolateParams,a(e)(l.$parent))}))})),m){var w=function(e){_.$observe(e,(function(t){var n=s(e.substr(14,1))+e.substr(15);l.interpolateParams[n]=t}))};for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&"translateValue"===E.substr(0,14)&&"translateValues"!==E&&w(E)}var C=function(){for(var e in b)b.hasOwnProperty(e)&&void 0!==b[e]&&T(e,b[e],l,l.interpolateParams,l.defaultText,l.translateNamespace)},T=function(t,n,a,o,r,i){n?(i&&"."===n.charAt(0)&&(n=i+n),e(n,o,d,r,a.translateLanguage,a.sanitizeStrategy).then((function(e){I(e,a,!0,t)}),(function(e){I(e,a,!1,t)}))):I(n,a,!1,t)},I=function(t,a,o,r){if(o||void 0!==a.defaultText&&(t=a.defaultText),"translate"===r){(o||!o&&!e.isKeepContent()&&void 0===_.translateKeepContent)&&h.empty().append(a.preText+t+a.postText);var i=e.isPostCompilingEnabled(),s=void 0!==c.translateCompile,l=s&&"false"!==c.translateCompile;(i&&!s||l)&&n(h.contents())(a)}else{var u=_.$attr[r];"data-"===u.substr(0,5)&&(u=u.substr(5)),u=u.substr(15),h.attr(u,t)}};(u||m||_.translateDefault)&&l.$watch("interpolateParams",C,!0),l.$on("translateLanguageChanged",C);var k=o.$on("$translateChangeSuccess",C);h.text().length?_.translate?y(_.translate):y(""):_.translate&&y(_.translate),C(),l.$on("$destroy",k)}}}}function r(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?r(e.$parent):void 0}function i(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,a,o){var r,i,l,c={},u=function(){angular.forEach(r,(function(t,r){t&&(c[r]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,i,o.translateInterpolation,void 0,n.translateLanguage,l).then((function(e){a.attr(r,e)}),(function(e){a.attr(r,e)})))})),angular.forEach(c,(function(e,t){r[t]||(a.removeAttr(t),delete c[t])}))};s(n,o.translateAttr,(function(e){r=e}),u),s(n,o.translateValues,(function(e){i=e}),u),s(n,o.translateSanitizeStrategy,(function(e){l=e}),u),o.translateValues&&n.$watch(o.translateValues,u,!0),n.$on("translateLanguageChanged",u);var d=t.$on("$translateChangeSuccess",u);u(),n.$on("$destroy",d)}}}function s(e,t,n,a){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,(function(e){n(e),a()}),!0),n(e.$eval(t)))}function l(e,t){"use strict";return{compile:function(n){var a=function(t){t.addClass(e.cloakClassName())},o=function(t){t.removeClass(e.cloakClassName())};return a(n),function(n,r,i){var s=o.bind(this,r),l=a.bind(this,r);i.translateCloak&&i.translateCloak.length?(i.$observe("translateCloak",(function(t){e(t).then(s,l)})),t.$on("$translateChangeSuccess",(function(){e(i.translateCloak).then(s,l)}))):e.onReady(s)}}}}function c(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=u(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function u(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?u(e.$parent):void 0}function d(){"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 f(e,t){"use strict";var n=function(n,a,o,r){if(!angular.isObject(a)){var i=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};a=e(a)(i)}return t.instant(n,a,o,r)};return t.statefulFilter()&&(n.$stateful=!0),n}function m(e){"use strict";return e("translations")}return e.$inject=["$translate"],n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],a.$inject=["$interpolate","$translateSanitization"],o.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],i.$inject=["$translate","$rootScope"],l.$inject=["$translate","$rootScope"],f.$inject=["$parse","$translate"],m.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",t),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",a),a.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",o),o.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",i),i.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",l),l.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",c),c.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",d),d.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",f),f.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",m),m.displayName="$translationCache","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=n)},"./node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js":()=>{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,a){var o=a.has("$animateCss")?a.get("$animateCss"):null;return{link:function(a,r,i){var s=n(i.expanding),l=n(i.expanded),c=n(i.collapsing),u=n(i.collapsed),d=!1,f={},m={};function p(e){return d?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function g(){r.removeClass("collapsing").addClass("collapse").css(f),l(a)}function h(){r.css(m),r.removeClass("collapsing").addClass("collapse"),u(a)}!function(){(d=!!("horizontal"in i))?(f={width:""},m={width:"0"}):(f={height:""},m={height:"0"});a.$eval(i.uibCollapse)||r.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(f)}(),a.$watch(i.uibCollapse,(function(n){n?function(){if(!r.hasClass("collapse")&&!r.hasClass("in"))return h();t.resolve(c(a)).then((function(){r.css(p(r[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),o?o(r,{removeClass:"in",to:m}).start().finally(h):e.removeClass(r,"in",{to:m}).then(h)}),angular.noop)}():r.hasClass("collapse")&&r.hasClass("in")||t.resolve(s(a)).then((function(){r.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),o?o(r,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:p(r[0])}).start().finally(g):e.addClass(r,"in",{css:{overflow:"hidden"},to:p(r[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(a){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers)&&angular.forEach(this.groups,(function(e){e!==a&&(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,a){t.addClass("panel"),a.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&&a.closeOthers(e)})),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var o="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=o+"-tab",e.panelId=o+"-panel"}}})).directive("uibAccordionHeading",(function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,a,o){a.setHeading(o(e,angular.noop))}}})).directive("uibAccordionTransclude",(function(){return{require:"^uibAccordionGroup",link:function(e,t,n,a){e.$watch((function(){return a[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,a,o){e.closeable=!!n.close,t.addClass("alert"),n.$set("role","alert"),e.closeable&&t.addClass("alert-dismissible");var r=angular.isDefined(n.dismissOnTimeout)?a(n.dismissOnTimeout)(e.$parent):null;r&&o((function(){e.close()}),parseInt(r,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,a,o){var r=o[0],i=o[1],s=e(a.uibUncheckable);n.find("input").css({display:"none"}),i.$render=function(){n.toggleClass(r.activeClass,angular.equals(i.$modelValue,t.$eval(a.uibBtnRadio)))},n.on(r.toggleEvent,(function(){if(!a.disabled){var e=n.hasClass(r.activeClass);e&&!angular.isDefined(a.uncheckable)||t.$apply((function(){i.$setViewValue(e?null:t.$eval(a.uibBtnRadio)),i.$render()}))}})),a.uibUncheckable&&t.$watch(s,(function(e){a.$set("uncheckable",e?"":void 0)}))}}}]).directive("uibBtnCheckbox",(function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,a){var o=a[0],r=a[1];function i(){return s(n.btnCheckboxTrue,!0)}function s(t,n){return angular.isDefined(t)?e.$eval(t):n}t.find("input").css({display:"none"}),r.$render=function(){t.toggleClass(o.activeClass,angular.equals(r.$modelValue,i()))},t.on(o.toggleEvent,(function(){n.disabled||e.$apply((function(){r.$setViewValue(t.hasClass(o.activeClass)?s(n.btnCheckboxFalse,!1):i()),r.$render()}))}))}}})),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,n,a,o){var r,i,s=this,l=s.slides=e.slides=[],c="uib-slideDirection",u=e.active,d=!1;function f(e){for(var t=0;t<l.length;t++)l[t].slide.active=t===e}function m(e){for(var t=0;t<l.length;t++)if(l[t].slide===e)return t}function p(){r&&(n.cancel(r),r=null)}function g(){p();var t=+e.interval;!isNaN(t)&&t>0&&(r=n(h,t))}function h(){var t=+e.interval;i&&!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),u=t.index,e.active=t.index,f(u),s.select(l[m(t)]),1===l.length&&e.play())},s.getCurrentIndex=function(){for(var e=0;e<l.length;e++)if(l[e].slide.index===u)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=m(t);l.splice(n,1),l.length>0&&u===n?n>=l.length?(u=l.length-1,e.active=u,f(u),s.select(l[l.length-1])):(u=n,e.active=u,f(u),s.select(l[n])):u>n&&(u--,e.active=u),0===l.length&&(u=null,e.active=null)},s.select=e.select=function(n,a){var r=m(n.slide);void 0===a&&(a=r>s.getCurrentIndex()?"next":"prev"),n.slide.index===u||e.$currentTransition||function(n,a,r){if(d)return;if(angular.extend(n,{direction:r}),angular.extend(l[u].slide||{},{direction:r}),o.enabled(t)&&!e.$currentTransition&&l[a].element&&s.slides.length>1){l[a].element.data(c,n.direction);var i=s.getCurrentIndex();angular.isNumber(i)&&l[i].element&&l[i].element.data(c,n.direction),e.$currentTransition=!0,o.on("addClass",l[a].element,(function(t,n){"close"===n&&(e.$currentTransition=null,o.off("addClass",t))}))}e.active=n.index,u=n.index,f(a),g()}(n.slide,r,a)},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||(i=!1,p())},e.play=function(){i||(i=!0,g())},t.on("mouseenter",e.pause),t.on("mouseleave",e.play),e.$on("$destroy",(function(){d=!0,p()})),e.$watch("noTransition",(function(e){o.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)&&u!==e){for(var t=0;t<l.length;t++)if(l[t].slide.index===e){e=t;break}l[e]&&(f(e),s.select(l[e]),u=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,a,o){n.addClass("item"),o.addSlide(t,n),t.$on("$destroy",(function(){o.removeSlide(t)})),t.$watch("active",(function(t){e[t?"addClass":"removeClass"](n,"active")}))}}}]).animation(".item",["$animateCss",function(e){var t="uib-slideDirection";function n(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(a,o,r){if("active"===o){var i=a.data(t),s="next"===i?"left":"right",l=n.bind(this,a,s+" "+i,r);return a.addClass(i),e(a,{addClass:s}).start().done(l),function(){!0}}r()},beforeRemoveClass:function(a,o,r){if("active"===o){var i="next"===a.data(t)?"left":"right",s=n.bind(this,a,i,r);return e(a,{addClass:i}).start().done(s),function(){!0}}r()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(e,t,n,a,o){var r,i,s=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function l(e){return o(i,{key:e},!0)[0]}function c(e,t,n){return function(){return e.substr(t+1,n-t-1)}}function u(e,t){for(var n=e.substr(t),a=0;a<i.length;a++)if(new RegExp("^"+i[a].key).test(n)){var o=i[a];return{endIdx:t+o.key.length,parser:o.formatter}}return{endIdx:t+1,parser:function(){return n.charAt(0)}}}function d(e){return parseInt(e,10)}function f(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function m(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function p(e,t,n){n=n?-1:1;var a=e.getTimezoneOffset();return m(e,n*(f(t,a)-a))}this.init=function(){r=t.id,this.parsers={},this.formatters={},i=[{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],a=t[2],o=t[3];this.hours+=d(n+a),this.minutes+=d(n+o)},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&&i.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!==r&&this.init(),this.formatters[n]||(this.formatters[n]=function(e){for(var t,n,a=[],o=0;o<e.length;)if(angular.isNumber(n)){if("'"===e.charAt(o))(o+1>=e.length||"'"!==e.charAt(o+1))&&(a.push(c(e,n,o)),n=null);else if(o===e.length)for(;n<e.length;)t=u(e,n),a.push(t),n=t.endIdx;o++}else"'"!==e.charAt(o)?(t=u(e,o),a.push(t.parser),o=t.endIdx):(n=o,o++);return a}(n)),this.formatters[n].reduce((function(t,n){return t+n(e)}),"")):""},this.parse=function(n,o,l){if(!angular.isString(n)||!o)return n;o=(o=t.DATETIME_FORMATS[o]||o).replace(s,"\\$&"),t.id!==r&&this.init(),this.parsers[o]||(this.parsers[o]=function(e){var t=[],n=e.split(""),o=e.indexOf("'");if(o>-1){var r=!1;e=e.split("");for(var s=o;s<e.length;s++)r?("'"===e[s]&&(s+1<e.length&&"'"===e[s+1]?(e[s+1]="$",n[s+1]=""):(n[s]="",r=!1)),e[s]="$"):"'"===e[s]&&(e[s]="$",n[s]="",r=!0);e=e.join("")}return angular.forEach(i,(function(a){var o=e.indexOf(a.key);if(o>-1){e=e.split(""),n[o]="("+a.regex+")",e[o]="$";for(var r=o+1,i=o+a.key.length;r<i;r++)n[r]="",e[r]="$";e=e.join(""),t.push({index:o,key:a.key,apply:a.apply,matcher:a.regex})}})),{regex:new RegExp("^"+n.join("")+"$"),map:a(t,"index")}}(o));var c=this.parsers[o],u=c.regex,d=c.map,f=n.match(u),m=!1;if(f&&f.length){var p,g;angular.isDate(l)&&!isNaN(l.getTime())?p={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"),p={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var h=1,_=f.length;h<_;h++){var b=d[h-1];"Z"===b.matcher&&(m=!0),b.apply&&b.apply.call(p,f[h])}var y=m?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,v=m?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}(p.year,p.month,p.date)&&(!angular.isDate(l)||isNaN(l.getTime())||m?(g=new Date(0),y.call(g,p.year,p.month,p.date),v.call(g,p.hours||0,p.minutes||0,p.seconds||0,p.milliseconds||0)):(g=new Date(l),y.call(g,p.year,p.month,p.date),v.call(g,p.hours,p.minutes,p.seconds,p.milliseconds))),g}},this.toTimezone=function(e,t){return e&&t?p(e,t):e},this.fromTimezone=function(e,t){return e&&t?p(e,t,!0):e},this.timezoneToOffset=f,this.addDateMinutes=m,this.convertTimezoneToLocal=p}]),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(a,o){var r=[],i=[],s={},l=o.uibIsClass.match(t),c=l[2],u=l[1].split(",");return function(t,a,o){r.push(t),i.push({scope:t,element:a}),u.forEach((function(a,o){!function(t,a){var o=t.match(n),r=a.$eval(o[1]),l=o[2],u=s[t];if(!u){var d=function(t){var n=null;i.some((function(e){if(e.scope.$eval(c)===t)return n=e,!0})),u.lastActivated!==n&&(u.lastActivated&&e.removeClass(u.lastActivated.element,r),n&&e.addClass(n.element,r),u.lastActivated=n)};s[t]=u={lastActivated:null,scope:a,watchFn:d,compareWithExp:l,watcher:a.$watch(l,d)}}u.watchFn(a.$eval(l))}(a,t)})),t.$on("$destroy",d)};function d(e){var t=e.targetScope,n=r.indexOf(t);if(r.splice(n,1),i.splice(n,1),r.length){var a=r[0];angular.forEach(s,(function(e){e.scope===t&&(e.watcher=a.$watch(e.compareWithExp,e.watchFn),e.scope=a)}))}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,a,o,r,i,s,l,c,u,d){var f=this,m={$setViewValue:angular.noop},p={},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":f[t]=angular.isDefined(e.datepickerOptions[t])?o(e.datepickerOptions[t])(e.$parent):l[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":f[t]=angular.isDefined(e.datepickerOptions[t])?e.datepickerOptions[t]:l[t];break;case"startingDay":angular.isDefined(e.datepickerOptions.startingDay)?f.startingDay=e.datepickerOptions.startingDay:angular.isNumber(l.startingDay)?f.startingDay=l.startingDay:f.startingDay=(r.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":e.$watch("datepickerOptions."+t,(function(e){e?angular.isDate(e)?f[t]=d.fromTimezone(new Date(e),p.getOption("timezone")):(c&&i.warn("Literal date support has been deprecated, please switch to date object usage"),f[t]=new Date(s(e,"medium"))):f[t]=l[t]?d.fromTimezone(new Date(l[t]),p.getOption("timezone")):null,f.refreshView()}));break;case"maxMode":case"minMode":e.datepickerOptions[t]?e.$watch((function(){return e.datepickerOptions[t]}),(function(n){f[t]=e[t]=angular.isDefined(n)?n:e.datepickerOptions[t],("minMode"===t&&f.modes.indexOf(e.datepickerOptions.datepickerMode)<f.modes.indexOf(f[t])||"maxMode"===t&&f.modes.indexOf(e.datepickerOptions.datepickerMode)>f.modes.indexOf(f[t]))&&(e.datepickerMode=f[t],e.datepickerOptions.datepickerMode=f[t])})):f[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,f.refreshView()}))),e.isActive=function(t){return 0===f.compare(t.date,f.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(t){p=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 a=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:a})}return n}(m=t),e.datepickerOptions.initDate?(f.activeDate=d.fromTimezone(e.datepickerOptions.initDate,p.getOption("timezone"))||new Date,e.$watch("datepickerOptions.initDate",(function(e){e&&(m.$isEmpty(m.$modelValue)||m.$invalid)&&(f.activeDate=d.fromTimezone(e,p.getOption("timezone")),f.refreshView())}))):f.activeDate=new Date;var n=m.$modelValue?new Date(m.$modelValue):new Date;this.activeDate=isNaN(n)?d.fromTimezone(new Date,p.getOption("timezone")):d.fromTimezone(n,p.getOption("timezone")),m.$render=function(){f.render()}},this.render=function(){if(m.$viewValue){var e=new Date(m.$viewValue);!isNaN(e)?this.activeDate=d.fromTimezone(e,p.getOption("timezone")):u||i.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=m.$viewValue?new Date(m.$viewValue):null;t=d.fromTimezone(t,p.getOption("timezone")),m.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,n){var a=m.$viewValue?new Date(m.$viewValue):null;a=d.fromTimezone(a,p.getOption("timezone"));var o=new Date;o=d.fromTimezone(o,p.getOption("timezone"));var r=this.compare(t,o),i={date:t,label:d.filter(t,n),selected:a&&0===this.compare(t,a),disabled:this.isDisabled(t),past:r<0,current:0===r,future:r>0,customClass:this.customClass(t)||null};return a&&0===this.compare(t,a)&&(e.selectedDt=i),f.activeDate&&0===this.compare(i.date,f.activeDate)&&(e.activeDt=i),i},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===f.minMode){var n=m.$viewValue?d.fromTimezone(new Date(m.$viewValue),p.getOption("timezone")):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n=d.toTimezone(n,p.getOption("timezone")),m.$setViewValue(n),m.$render()}else f.activeDate=t,h(f.modes[f.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=f.activeDate.getFullYear()+e*(f.step.years||0),n=f.activeDate.getMonth()+e*(f.step.months||0);f.activeDate.setFullYear(t,n,1),f.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===f.maxMode&&1===t||e.datepickerMode===f.minMode&&-1===t||(h(f.modes[f.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 h(t){e.datepickerMode=t,e.datepickerOptions.datepickerMode=t}e.$on("uib:datepicker.focus",(function(){f.element[0].focus()})),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey&&!e.disabled)if(t.preventDefault(),f.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(f.isDisabled(f.activeDate))return;e.select(f.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(f.handleKeyDown(n,t),f.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 a=[31,28,31,30,31,30,31,31,30,31,30,31];function o(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?a[t]:29}function r(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,a=new Array(t),o=new Date(e),r=0;r<t;)n=new Date(o),a[r++]=n,o.setDate(o.getDate()+1);return a},this._refreshView=function(){var t=this.activeDate.getFullYear(),a=this.activeDate.getMonth(),o=new Date(this.activeDate);o.setFullYear(t,a,1);var i=this.startingDay-o.getDay(),s=i>0?7-i:-i,l=new Date(o);s>0&&l.setDate(1-s);for(var c=this.getDates(l,42),u=0;u<42;u++)c[u]=angular.extend(this.createDateObject(c[u],this.formatDay),{secondary:c[u].getMonth()!==a,uid:e.uniqueId+"-"+u});e.labels=new Array(7);for(var d=0;d<7;d++)e.labels[d]={abbr:n(c[d].date,this.formatDayHeader),full:n(c[d].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(c,7),e.showWeeks){e.weekNumbers=[];for(var f=(11-this.startingDay)%7,m=e.rows.length,p=0;p<m;p++)e.weekNumbers.push(r(e.rows[p][f].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),a=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),a.setFullYear(t.getFullYear()),n-a},this.handleKeyDown=function(e,t){var n=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 a=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(a,1),n=Math.min(o(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=o(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,a=new Array(12),o=this.activeDate.getFullYear(),r=0;r<12;r++)(t=new Date(this.activeDate)).setFullYear(o,r,1),a[r]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+r});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(a,this.monthColumns),e.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),a=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),a.setFullYear(t.getFullYear()),n-a},this.handleKeyDown=function(e,t){var n=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 a=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(a)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){var a,o;function r(e){return parseInt((e-1)/o,10)*o+1}this.element=t,this.yearpickerInit=function(){a=this.yearColumns,o=this.yearRows*a,this.step={years:o}},this._refreshView=function(){for(var t,n=new Array(o),i=0,s=r(this.activeDate.getFullYear());i<o;i++)(t=new Date(this.activeDate)).setFullYear(s+i,0,1),n[i]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+i});e.title=[n[0].label,n[o-1].label].join(" - "),e.rows=this.split(n,a),e.columns=a},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-=a:"right"===e?n+=1:"down"===e?n+=a:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*o:"home"===e?n=r(this.activeDate.getFullYear()):"end"===e&&(n=r(this.activeDate.getFullYear())+o-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,a){var o=a[0],r=a[1];o.init(r)}}})).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,a){var o=a[0];a[1].init(o)}}})).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,a){var o=a[0];a[1].init(o)}}})).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,a){var o=a[0];angular.extend(o,a[1]),o.yearpickerInit(),o.refreshView()}}})),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,a,o={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},r={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},i=/(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 a,o=(n=this.getRawNode(n)).offsetParent||e[0].documentElement;for(;o&&o!==e[0].documentElement&&(a=o,"static"===(t.getComputedStyle(a).position||"static"));)o=o.offsetParent;return o||e[0].documentElement},scrollbarWidth:function(o){if(o){if(angular.isUndefined(a)){var r=e.find("body");r.addClass("uib-position-body-scrollbar-measure"),a=t.innerWidth-r[0].clientWidth,a=isFinite(a)?a:0,r.removeClass("uib-position-body-scrollbar-measure")}return a}if(angular.isUndefined(n)){var i=angular.element('<div class="uib-position-scrollbar-measure"></div>');e.find("body").append(i),n=i[0].offsetWidth-i[0].clientWidth,n=isFinite(n)?n:0,i.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),a=this.parseStyle(n.paddingRight),o=this.parseStyle(n.paddingBottom),r=this.scrollParent(e,!1,!0),s=this.scrollbarWidth(i.test(r.tagName));return{scrollbarWidth:s,widthOverflow:r.scrollWidth>r.clientWidth,right:a+s,originalRight:a,heightOverflow:r.scrollHeight>r.clientHeight,bottom:o+s,originalBottom:o}},isScrollable:function(e,n){e=this.getRawNode(e);var a=n?o.hidden:o.normal,r=t.getComputedStyle(e);return a.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(n,a,r){n=this.getRawNode(n);var i=a?o.hidden:o.normal,s=e[0].documentElement,l=t.getComputedStyle(n);if(r&&i.test(l.overflow+l.overflowY+l.overflowX))return n;var c="absolute"===l.position,u=n.parentElement||s;if(u===s||"fixed"===l.position)return s;for(;u.parentElement&&u!==s;){var d=t.getComputedStyle(u);if(c&&"static"!==d.position&&(c=!1),!c&&i.test(d.overflow+d.overflowY+d.overflowX))break;u=u.parentElement}return u},position:function(n,a){n=this.getRawNode(n);var o=this.offset(n);if(a){var r=t.getComputedStyle(n);o.top-=this.parseStyle(r.marginTop),o.left-=this.parseStyle(r.marginLeft)}var i=this.offsetParent(n),s={top:0,left:0};return i!==e[0].documentElement&&((s=this.offset(i)).top+=i.clientTop-i.scrollTop,s.left+=i.clientLeft-i.scrollLeft),{width:Math.round(angular.isNumber(o.width)?o.width:n.offsetWidth),height:Math.round(angular.isNumber(o.height)?o.height:n.offsetHeight),top:Math.round(o.top-s.top),left:Math.round(o.left-s.left)}},offset:function(n){var a=(n=this.getRawNode(n)).getBoundingClientRect();return{width:Math.round(angular.isNumber(a.width)?a.width:n.offsetWidth),height:Math.round(angular.isNumber(a.height)?a.height:n.offsetHeight),top:Math.round(a.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(a.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,a,o){o=!1!==o;var r=(n=this.getRawNode(n)).getBoundingClientRect(),i={top:0,left:0,bottom:0,right:0},s=a?e[0].documentElement:this.scrollParent(n),l=s.getBoundingClientRect();if(i.top=l.top+s.clientTop,i.left=l.left+s.clientLeft,s===e[0].documentElement&&(i.top+=t.pageYOffset,i.left+=t.pageXOffset),i.bottom=i.top+s.clientHeight,i.right=i.left+s.clientWidth,o){var c=t.getComputedStyle(s);i.top+=this.parseStyle(c.paddingTop),i.bottom-=this.parseStyle(c.paddingBottom),i.left+=this.parseStyle(c.paddingLeft),i.right-=this.parseStyle(c.paddingRight)}return{top:Math.round(r.top-i.top),bottom:Math.round(i.bottom-r.bottom),left:Math.round(r.left-i.left),right:Math.round(i.right-r.right)}},parsePlacement:function(e){var t=r.auto.test(e);return t&&(e=e.replace(r.auto,"")),(e=e.split("-"))[0]=e[0]||"top",r.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",r.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,n,a,o){e=this.getRawNode(e),n=this.getRawNode(n);var i=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");a=this.parsePlacement(a);var l=o?this.offset(e):this.position(e),c={top:0,left:0,placement:""};if(a[2]){var u=this.viewportOffset(e,o),d=t.getComputedStyle(n),f={width:i+Math.round(Math.abs(this.parseStyle(d.marginLeft)+this.parseStyle(d.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(d.marginTop)+this.parseStyle(d.marginBottom)))};if(a[0]="top"===a[0]&&f.height>u.top&&f.height<=u.bottom?"bottom":"bottom"===a[0]&&f.height>u.bottom&&f.height<=u.top?"top":"left"===a[0]&&f.width>u.left&&f.width<=u.right?"right":"right"===a[0]&&f.width>u.right&&f.width<=u.left?"left":a[0],a[1]="top"===a[1]&&f.height-l.height>u.bottom&&f.height-l.height<=u.top?"bottom":"bottom"===a[1]&&f.height-l.height>u.top&&f.height-l.height<=u.bottom?"top":"left"===a[1]&&f.width-l.width>u.right&&f.width-l.width<=u.left?"right":"right"===a[1]&&f.width-l.width>u.left&&f.width-l.width<=u.right?"left":a[1],"center"===a[1])if(r.vertical.test(a[0])){var m=l.width/2-i/2;u.left+m<0&&f.width-l.width<=u.right?a[1]="left":u.right+m<0&&f.width-l.width<=u.left&&(a[1]="right")}else{var p=l.height/2-f.height/2;u.top+p<0&&f.height-l.height<=u.bottom?a[1]="top":u.bottom+p<0&&f.height-l.height<=u.top&&(a[1]="bottom")}}switch(a[0]){case"top":c.top=l.top-s;break;case"bottom":c.top=l.top+l.height;break;case"left":c.left=l.left-i;break;case"right":c.left=l.left+l.width}switch(a[1]){case"top":c.top=l.top;break;case"bottom":c.top=l.top+l.height-s;break;case"left":c.left=l.left;break;case"right":c.left=l.left+l.width-i;break;case"center":r.vertical.test(a[0])?c.left=l.left+l.width/2-i/2:c.top=l.top+l.height/2-s/2}return c.top=Math.round(c.top),c.left=Math.round(c.left),c.placement="center"===a[1]?a[0]:a[0]+"-"+a[1],c},adjustTop:function(e,t,n,a){if(-1!==e.indexOf("top")&&n!==a)return{top:t.top-a+"px"}},positionArrow:function(e,n){var a=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(a){var o=angular.element(a).hasClass("tooltip-inner"),i=o?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(i){var s={top:"",bottom:"",left:"",right:""};if("center"!==(n=this.parsePlacement(n))[1]){var l="border-"+n[0]+"-width",c=t.getComputedStyle(i)[l],u="border-";r.vertical.test(n[0])?u+=n[0]+"-"+n[1]:u+=n[1]+"-"+n[0],u+="-radius";var d=t.getComputedStyle(o?a:e)[u];switch(n[0]){case"top":s.bottom=o?"0":"-"+c;break;case"bottom":s.top=o?"0":"-"+c;break;case"left":s.right=o?"0":"-"+c;break;case"right":s.left=o?"0":"-"+c}s[n[1]]=d,angular.element(i).css(s)}else angular.element(i).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,a,o,r,i,s,l,c,u,d,f,m,p,g){var h,_,b,y,v,A,S,w,E,C,T,I,k,D=!1,x=[];function M(t){var n=d.parse(t,h,e.date);if(isNaN(n))for(var a=0;a<k.length;a++)if(n=d.parse(t,k[a],e.date),!isNaN(n))return n;return n}function P(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=M(e);if(!isNaN(t))return d.toTimezone(t,T.getOption("timezone"))}return T.getOption("allowInvalid")?e:void 0}function O(e,t){var a=e||t;return!n.ngRequired&&!a||(angular.isNumber(a)&&(a=new Date(a)),!a||(!(!angular.isDate(a)||isNaN(a))||!!angular.isString(a)&&!isNaN(M(a))))}function R(n){if(e.isOpen||!e.disabled){var a=I[0],o=t[0].contains(n.target),r=void 0!==a.contains&&a.contains(n.target);!e.isOpen||o||r||e.$apply((function(){e.isOpen=!1}))}}function N(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 L(){if(e.isOpen){var a=angular.element(I[0].querySelector(".uib-datepicker-popup")),o=n.popupPlacement?n.popupPlacement:f.placement,r=c.positionElements(t,a,o,b);a.css({top:r.top+"px",left:r.left+"px"}),a.hasClass("uib-position-measure")&&a.removeClass("uib-position-measure")}}this.init=function(o){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=o),_=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):f.closeOnDateSelection,b=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):f.appendToBody,y=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):f.onOpenFocus,v=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:f.datepickerPopupTemplateUrl,A=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:f.datepickerTemplateUrl,k=angular.isDefined(n.altInputFormats)?e.$parent.$eval(n.altInputFormats):f.altInputFormats,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):f.showButtonBar,f.html5Types[n.type]?(h=f.html5Types[n.type],D=!0):(h=n.uibDatepickerPopup||f.datepickerPopup,n.$observe("uibDatepickerPopup",(function(e,t){var n=e||f.datepickerPopup;if(n!==h&&(h=n,C.$modelValue=null,!h))throw new Error("uibDatepickerPopup must have a date format specified.")}))),!h)throw new Error("uibDatepickerPopup must have a date format specified.");if(D&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");(S=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":v}),(w=angular.element(S.children()[0])).attr("template-url",A),e.datepickerOptions||(e.datepickerOptions={}),D&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),w.attr("datepicker-options","datepickerOptions"),D?C.$formatters.push((function(t){return e.date=d.fromTimezone(t,T.getOption("timezone")),t})):(C.$$parserName="date",C.$validators.date=O,C.$parsers.unshift(P),C.$formatters.push((function(t){return C.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=d.fromTimezone(t,T.getOption("timezone")),d.filter(e.date,h))}))),C.$viewChangeListeners.push((function(){e.date=M(C.$viewValue)})),t.on("keydown",N),I=a(S)(e),S.remove(),b?s.find("body").append(I):t.after(I),e.$on("$destroy",(function(){for(!0===e.isOpen&&(l.$$phase||e.$apply((function(){e.isOpen=!1}))),I.remove(),t.off("keydown",N),s.off("click",R),E&&E.off("scroll",L),angular.element(i).off("resize",L);x.length;)x.shift()()}))},e.getText=function(t){return e[t+"Text"]||f[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=d.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&&o.warn("Literal date support has been deprecated, please switch to date object usage"),n[t]=new Date(u(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 a=e.date?d.filter(e.date,h):null;t.val(a),C.$setViewValue(a),_&&(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 a=new Date;angular.isDate(e.date)?(t=new Date(e.date)).setFullYear(a.getFullYear(),a.getMonth(),a.getDate()):(t=d.fromTimezone(a,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&&x.push(e.$parent.$watch(r(n.ngDisabled),(function(t){e.disabled=t}))),e.$watch("isOpen",(function(a){a?e.disabled?e.isOpen=!1:m((function(){L(),y&&e.$broadcast("uib:datepicker.focus"),s.on("click",R);var a=n.popupPlacement?n.popupPlacement:f.placement;b||c.parsePlacement(a)[2]?(E=E||angular.element(c.scrollParent(t)))&&E.on("scroll",L):E=null,angular.element(i).on("resize",L)}),0,!1):(s.off("click",R),E&&E.off("scroll",L),angular.element(i).off("resize",L))})),e.$on("uib:datepicker.mode",(function(){m(L,0,!1)}))}]).directive("uibDatepickerPopup",(function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,a){var o=a[0];a[1].init(o)}}})).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 a;return function(){var o=this,r=Array.prototype.slice.call(arguments);a&&e.cancel(a),a=e((function(){t.apply(o,r)}),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 a=e[t];if(a){var o=a.indexOf(n);-1!==o&&a.splice(o,1),a.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 a=null,o=n.createNew();this.isOnlyOpen=function(e,t){var n=o.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,i){if(a||e.on("click",r),a&&a!==t&&(a.isOpen=!1),a=t,i){var s=o.get(i);if(s)-1===s.map((function(e){return e.scope})).indexOf(t)&&o.put(i,{scope:t});else o.put(i,{scope:t})}},this.close=function(t,n,i){if(a===t&&(e.off("click",r),e.off("keydown",this.keybindFilter),a=null),i){var s=o.get(i);if(s){var l=s.reduce((function(e,n){return n.scope===t?n:e}),{});l&&o.remove(i,l)}}};var r=function(e){if(a&&a.isOpen&&!(e&&"disabled"===a.getAutoClose()||e&&3===e.which)){var n=a.getToggleElement();if(!(e&&n&&n[0].contains(e.target))){var o=a.getDropdownElement();e&&"outsideClick"===a.getAutoClose()&&o&&o[0].contains(e.target)||(a.focusToggleElement(),a.isOpen=!1,t.$$phase||a.$apply())}}};this.keybindFilter=function(e){if(a){var t=a.getDropdownElement(),n=a.getToggleElement(),o=t&&t[0].contains(e.target),i=n&&n[0].contains(e.target);27===e.which?(e.stopPropagation(),a.focusToggleElement(),r()):a.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&a.isOpen&&(o||i)&&(e.preventDefault(),e.stopPropagation(),a.focusDropdownEntry(e.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,a,o,r,i,s,l,c,u){var d,f,m=this,p=e.$new(),g=o.appendToOpenClass,h=o.openClass,_=angular.noop,b=n.onToggle?a(n.onToggle):angular.noop,y=!1,v=l.find("body");function A(){t.append(m.dropdownMenu)}t.addClass("dropdown"),this.init=function(){n.isOpen&&(f=a(n.isOpen),_=f.assign,e.$watch(f,(function(e){p.isOpen=!!e}))),y=angular.isDefined(n.keyboardNav)},this.toggle=function(e){return p.isOpen=arguments.length?!!e:!p.isOpen,angular.isFunction(_)&&_(p,p.isOpen),p.isOpen},this.isOpen=function(){return p.isOpen},p.getToggleElement=function(){return m.toggleElement},p.getAutoClose=function(){return n.autoClose||"always"},p.getElement=function(){return t},p.isKeynavEnabled=function(){return y},p.focusDropdownEntry=function(e){var n=m.dropdownMenu?angular.element(m.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(m.selectedOption)?m.selectedOption=m.selectedOption===n.length-1?m.selectedOption:m.selectedOption+1:m.selectedOption=0;break;case 38:angular.isNumber(m.selectedOption)?m.selectedOption=0===m.selectedOption?0:m.selectedOption-1:m.selectedOption=n.length-1}n[m.selectedOption].focus()},p.getDropdownElement=function(){return m.dropdownMenu},p.focusToggleElement=function(){m.toggleElement&&m.toggleElement[0].focus()},p.$watch("isOpen",(function(o,f){var y=null,S=!1;if(angular.isDefined(n.dropdownAppendTo)){var w=a(n.dropdownAppendTo)(p);w&&(y=angular.element(w))}angular.isDefined(n.dropdownAppendToBody)&&(!1!==a(n.dropdownAppendToBody)(p)&&(S=!0));if(S&&!y&&(y=v),y&&m.dropdownMenu&&(o?(y.append(m.dropdownMenu),t.on("$destroy",A)):(t.off("$destroy",A),A())),y&&m.dropdownMenu){var E,C,T,I=s.positionElements(t,m.dropdownMenu,"bottom-left",!0),k=0;if(E={top:I.top+"px",display:o?"block":"none"},(C=m.dropdownMenu.hasClass("dropdown-menu-right"))?(E.left="auto",(T=s.scrollbarPadding(y)).heightOverflow&&T.scrollbarWidth&&(k=T.scrollbarWidth),E.right=window.innerWidth-k-(I.left+t.prop("offsetWidth"))+"px"):(E.left=I.left+"px",E.right="auto"),!S){var D=s.offset(y);E.top=I.top-D.top+"px",C?E.right=window.innerWidth-(I.left-D.left+t.prop("offsetWidth"))+"px":E.left=I.left-D.left+"px"}m.dropdownMenu.css(E)}var x=y||t,M=y?g:h,P=x.hasClass(M),O=r.isOnlyOpen(e,y);P===!o&&i[y?O?"removeClass":"addClass":o?"addClass":"removeClass"](x,M).then((function(){angular.isDefined(o)&&o!==f&&b(e,{open:!!o})}));if(o)m.dropdownMenuTemplateUrl?u(m.dropdownMenuTemplateUrl).then((function(e){d=p.$new(),c(e.trim())(d,(function(e){var t=e;m.dropdownMenu.replaceWith(t),m.dropdownMenu=t,l.on("keydown",r.keybindFilter)}))})):l.on("keydown",r.keybindFilter),p.focusToggleElement(),r.open(p,t,y);else{if(r.close(p,t,y),m.dropdownMenuTemplateUrl){d&&d.$destroy();var R=angular.element('<ul class="dropdown-menu"></ul>');m.dropdownMenu.replaceWith(R),m.dropdownMenu=R}m.selectedOption=null}angular.isFunction(_)&&_(e,o)}))}]).directive("uibDropdown",(function(){return{controller:"UibDropdownController",link:function(e,t,n,a){a.init()}}})).directive("uibDropdownMenu",(function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,a){if(a&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var o=n.templateUrl;o&&(a.dropdownMenuTemplateUrl=o),a.dropdownMenu||(a.dropdownMenu=t)}}}})).directive("uibDropdownToggle",(function(){return{require:"?^uibDropdown",link:function(e,t,n,a){if(a){t.addClass("dropdown-toggle"),a.toggleElement=t;var o=function(o){o.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply((function(){a.toggle()}))};t.on("click",o),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(a.isOpen,(function(e){t.attr("aria-expanded",!!e)})),e.$on("$destroy",(function(){t.off("click",o)}))}}}})),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,a=0;a<e.length;a++)if(t===e[a].key){n=a;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 a=e.resolver?t.get(e.resolver):null;return{resolve:function(e,o,r,i){if(a)return a.resolve(e,o,r,i);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={},a=0;return angular.forEach(e,(function(e,o){n[o]=t[a++]})),n}))}}}]})).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){return{restrict:"A",compile:function(e,t){return e.addClass(t.backdropClass),a}};function a(t,a,o){o.modalInClass&&(e.addClass(a,o.modalInClass),t.$on(n.NOW_CLOSING_EVENT,(function(n,r){var i=r();t.modalOptions.animation?e.removeClass(a,o.modalInClass).then(i):i()})))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(e,t,n,a){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(o,r,i){r.addClass(i.windowTopClass||""),o.size=i.size,o.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"))},r.on("click",o.close),o.$isRendered=!0;var s=t.defer();o.$$postDigest((function(){s.resolve()})),s.promise.then((function(){var s=null;i.modalInClass&&(s=n(r,{addClass:i.modalInClass}).start(),o.$on(e.NOW_CLOSING_EVENT,(function(e,t){var a=t();n(r,{removeClass:i.modalInClass}).start().then(a)}))),t.when(s).then((function(){var t=e.getTop();if(t&&e.modalRendered(t.key),!a[0].activeElement||!r[0].contains(a[0].activeElement)){var n=r[0].querySelector("[autofocus]");n?n.focus():r[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,a,o,r){r(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,a,o,r,i,s,l){var c,u,d,f="modal-open",m=s.createNew(),p=i.createNew(),g={NOW_CLOSING_EVENT:"modal.stack.now-closing"},h=0,_=null,b="data-bootstrap-modal-aria-hidden-count",y=/[A-Z]/g;function v(){for(var e=-1,t=m.keys(),n=0;n<t.length;n++)m.get(t[n]).value.backdrop&&(e=n);return e>-1&&e<h&&(e=h),e}function A(e,t){var n=m.get(e).value,a=n.appendTo;m.remove(e),(_=m.top())&&(h=parseInt(_.value.modalDomEl.attr("index"),10)),w(n.modalDomEl,n.modalScope,(function(){var t=n.openedClass||f;p.remove(t,e);var o=p.hasKey(t);a.toggleClass(t,o),!o&&d&&d.heightOverflow&&d.scrollbarWidth&&(d.originalRight?a.css({paddingRight:d.originalRight+"px"}):a.css({paddingRight:""}),d=null),S(!0)}),n.closedDeferred),function(){if(c&&-1===v()){w(c,u,(function(){null})),c=void 0,u=void 0}}(),t&&t.focus?t.focus():a.focus&&a.focus()}function S(e){var t;m.length()>0&&(t=m.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function w(t,n,a,o){var i,s=null;return n.$broadcast(g.NOW_CLOSING_EVENT,(function(){return i||(i=r.defer(),s=i.promise),function(){i.resolve()}})),r.when(s).then((function r(){if(r.done)return;r.done=!0,e.leave(t).then((function(){a&&a(),t.remove(),o&&o.resolve()})),n.$destroy()}))}function E(e){if(e.isDefaultPrevented())return e;var t=m.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),o.$apply((function(){g.dismiss(t.key,"escape key press")})));break;case 9:var n=g.loadFocusElementList(t),a=!1;e.shiftKey?(g.isFocusInFirstItem(e,n)||g.isModalFocused(e,t))&&(a=g.focusLastFocusableElement(n)):g.isFocusInLastItem(e,n)&&(a=g.focusFirstFocusableElement(n)),a&&(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("["+b+"]"),(function(e){var t=parseInt(e.getAttribute(b),10)-1;e.setAttribute(b,t),t||(e.removeAttribute(b),e.removeAttribute("aria-hidden"))}))}return o.$watch(v,(function(e){u&&(u.index=e)})),n.on("keydown",E),o.$on("$destroy",(function(){n.off("keydown",E)})),g.open=function(t,r){var i=n[0].activeElement,s=r.openedClass||f;S(!1),_=m.top(),m.add(t,{deferred:r.deferred,renderDeferred:r.renderDeferred,closedDeferred:r.closedDeferred,modalScope:r.scope,backdrop:r.backdrop,keyboard:r.keyboard,openedClass:r.openedClass,windowTopClass:r.windowTopClass,animation:r.animation,appendTo:r.appendTo}),p.put(s,t);var g,A=r.appendTo,w=v();w>=0&&!c&&((u=o.$new(!0)).modalOptions=r,u.index=w,(c=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"}),r.backdropClass&&c.addClass(r.backdropClass),r.animation&&c.attr("modal-animation","true"),a(c)(u),e.enter(c,A),l.isScrollable(A)&&(d=l.scrollbarPadding(A)).heightOverflow&&d.scrollbarWidth&&A.css({paddingRight:d.right+"px"})),r.component?(g=document.createElement(r.component.name.replace(y,(function(e,t){return(t?"-":"")+e.toLowerCase()}))),(g=angular.element(g)).attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):g=r.content,h=_?parseInt(_.value.modalDomEl.attr("index"),10)+1:0;var E=angular.element('<div uib-modal-window="modal-window"></div>');E.attr({class:"modal","template-url":r.windowTemplateUrl,"window-top-class":r.windowTopClass,role:"dialog","aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,size:r.size,index:h,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(g),r.windowClass&&E.addClass(r.windowClass),r.animation&&E.attr("modal-animation","true"),A.addClass(s),r.scope&&(r.scope.$$topModalIndex=h),e.enter(a(E)(r.scope),A),m.top().value.modalDomEl=E,m.top().value.modalOpener=i,function e(t){if(!t||"BODY"===t[0].tagName)return;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(b),10);n||(n=t?1:0),e.setAttribute(b,n+1),e.setAttribute("aria-hidden","true")})),e(t.parent())}(E)},g.close=function(e,t){var n=m.get(e);return T(),n&&C(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),A(e,n.value.modalOpener),!0):!n},g.dismiss=function(e,t){var n=m.get(e);return T(),n&&C(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),A(e,n.value.modalOpener),!0):!n},g.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},g.getTop=function(){return m.top()},g.modalRendered=function(e){var t=m.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,a,o,r,i,s){var l={};var c=null;return l.getPromiseChain=function(){return c},l.open=function(l){var u,d,f,m=n.defer(),p=n.defer(),g=n.defer(),h=n.defer(),_={result:m.promise,opened:p.promise,closed:g.promise,rendered:h.promise,close:function(e){return s.close(_,e)},dismiss:function(e){return s.dismiss(_,e)}};if((l=angular.extend({},e.options,l)).resolve=l.resolve||{},l.appendTo=l.appendTo||a.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 b(){return u}return u=l.component?n.when(i.resolve(l.resolve,{},null,null)):n.all([(d=l,d.template?n.when(d.template):o(angular.isFunction(d.templateUrl)?d.templateUrl():d.templateUrl)),i.resolve(l.resolve,{},null,null)]),f=c=n.all([c]).then(b,b).then((function(e){var n=l.scope||t,a=n.$new();a.$close=_.close,a.$dismiss=_.dismiss,a.$on("$destroy",(function(){a.$$uibDestructionScheduled||a.$dismiss("$uibUnscheduledDestruction")}));var o,i,c={scope:a,deferred:m,renderDeferred:h,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},u={},d={};function f(t,n,o,r){t.$scope=a,t.$scope.$resolve={},o?t.$scope.$uibModalInstance=_:t.$uibModalInstance=_;var i=n?e[1]:e;angular.forEach(i,(function(e,n){r&&(t[n]=e),t.$scope.$resolve[n]=e}))}l.component?(f(u,!1,!0,!1),u.name=l.component,c.component=u):l.controller&&(f(d,!0,!1,!0),i=r(l.controller,d,!0,l.controllerAs),l.controllerAs&&l.bindToController&&((o=i.instance).$close=a.$close,o.$dismiss=a.$dismiss,angular.extend(o,{$resolve:d.$scope.$resolve},n)),o=i(),angular.isFunction(o.$onInit)&&o.$onInit()),l.component||(c.content=e[0]),s.open(_,c),p.resolve(!0)}),(function(e){p.reject(e),m.reject(e)})).finally((function(){c===f&&(c=null)})),_},l}]};return e})),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(t,n,a){t.setNumPages=a.numPages?e(a.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,o){t.ngModelCtrl=e,t.config=o,e.$render=function(){t.render()},a.itemsPerPage?t._watchers.push(n.$parent.$watch(a.itemsPerPage,(function(e){t.itemsPerPage=parseInt(e,10),n.totalPages=t.calculateTotalPages(),t.updatePage()}))):t.itemsPerPage=o.itemsPerPage,n.$watch("totalItems",(function(e,a){(angular.isDefined(e)||e!==a)&&(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,a){a&&a.preventDefault(),(!n.ngDisabled||!a)&&n.page!==e&&e>0&&e<=n.totalPages&&(a&&a.target&&a.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,a){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):a.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(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,a,o){n.addClass("pager");var r=o[0],i=o[1];i&&r.init(i,e)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,n,a,o){var r=this,i=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):o.maxSize,s=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):o.rotate,l=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):o.forceEllipses,c=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):o.boundaryLinkNumbers,u=angular.isDefined(t.pageLabel)?function(n){return e.$parent.$eval(t.pageLabel,{$page:n})}:angular.identity;function d(e,t,n){return{number:e,text:t,active:n}}e.boundaryLinks=angular.isDefined(t.boundaryLinks)?e.$parent.$eval(t.boundaryLinks):o.boundaryLinks,e.directionLinks=angular.isDefined(t.directionLinks)?e.$parent.$eval(t.directionLinks):o.directionLinks,t.$set("role","menu"),a.create(this,e,t),t.maxSize&&r._watchers.push(e.$parent.$watch(n(t.maxSize),(function(e){i=parseInt(e,10),r.render()})));var f=this.render;this.render=function(){f(),e.page>0&&e.page<=e.totalPages&&(e.pages=function(e,t){var n=[],a=1,o=t,r=angular.isDefined(i)&&i<t;r&&(s?(o=(a=Math.max(e-Math.floor(i/2),1))+i-1)>t&&(a=(o=t)-i+1):(a=(Math.ceil(e/i)-1)*i+1,o=Math.min(a+i-1,t)));for(var f=a;f<=o;f++){var m=d(f,u(f),f===e);n.push(m)}if(r&&i>0&&(!s||l||c)){if(a>1){if(!c||a>3){var p=d(a-1,"...",!1);n.unshift(p)}if(c){if(3===a){var g=d(2,"2",!1);n.unshift(g)}var h=d(1,"1",!1);n.unshift(h)}}if(o<t){if(!c||o<t-2){var _=d(o+1,"...",!1);n.push(_)}if(c){if(o===t-2){var b=d(t-1,t-1,!1);n.push(b)}var y=d(t,t,!1);n.push(y)}}}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,a,o){n.addClass("pagination");var r=o[0],i=o[1];i&&r.init(i,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(a,o,r,i,s,l,c,u,d){var f=d.createNew();function m(e){if(27===e.which){var t=f.top();t&&(t.value.close(),t=null)}}return i.on("keyup",m),c.$on("$destroy",(function(){i.off("keyup",m)})),function(a,c,d,m){function p(e){var n=(e||m.trigger||d).split(" "),a=n.map((function(e){return t[e]||e}));return{show:n,hide:a}}m=angular.extend({},e,n,m);var g=a.replace(/[A-Z]/g,(function(e,t){return(t?"-":"")+e.toLowerCase()})),h=l.startSymbol(),_=l.endSymbol(),b="<div "+g+'-popup uib-title="'+h+"title"+_+'" '+(m.useContentExp?'content-exp="contentExp()" ':'content="'+h+"content"+_+'" ')+'origin-scope="origScope" class="uib-position-measure '+c+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(e,t){var n=o(b);return function(e,t,o,l){var d,g,h,_,b,y,v,A,S=!!angular.isDefined(m.appendToBody)&&m.appendToBody,w=p(void 0),E=angular.isDefined(o[c+"Enable"]),C=e.$new(!0),T=!1,I=!!angular.isDefined(o[c+"IsOpen"])&&u(o[c+"IsOpen"]),k=!!m.useContentExp&&u(o[a]),D=[],x=function(){d&&d.html()&&(y||(y=r((function(){var e=s.positionElements(t,d,C.placement,S),n=angular.isDefined(d.offsetHeight)?d.offsetHeight:d.prop("offsetHeight"),a=S?s.offset(t):s.position(t);d.css({top:e.top+"px",left:e.left+"px"});var o=e.placement.split("-");d.hasClass(o[0])||(d.removeClass(A.split("-")[0]),d.addClass(o[0])),d.hasClass(m.placementClassPrefix+e.placement)||(d.removeClass(m.placementClassPrefix+A),d.addClass(m.placementClassPrefix+e.placement)),v=r((function(){var e=angular.isDefined(d.offsetHeight)?d.offsetHeight:d.prop("offsetHeight"),t=s.adjustTop(o,a,n,e);t&&d.css(t),v=null}),0,!1),d.hasClass("uib-position-measure")?(s.positionArrow(d,e.placement),d.removeClass("uib-position-measure")):A!==e.placement&&s.positionArrow(d,e.placement),A=e.placement,y=null}),0,!1)))};function M(){C.isOpen?O():P()}function P(){E&&!e.$eval(o[c+"Enable"])||($(),function(){C.title=o[c+"Title"],C.content=k?k(e):o[a];C.popupClass=o[c+"Class"],C.placement=angular.isDefined(o[c+"Placement"])?o[c+"Placement"]:m.placement;var t=s.parsePlacement(C.placement);A=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(o[c+"PopupDelay"],10),r=parseInt(o[c+"PopupCloseDelay"],10);C.popupDelay=isNaN(n)?m.popupDelay:n,C.popupCloseDelay=isNaN(r)?m.popupCloseDelay:r}(),C.popupDelay?_||(_=r(R,C.popupDelay,!1)):R())}function O(){N(),C.popupCloseDelay?b||(b=r(L,C.popupCloseDelay,!1)):L()}function R(){if(N(),$(),!C.content)return angular.noop;!function(){if(d)return;g=C.$new(),d=n(g,(function(e){S?i.find("body").append(e):t.after(e)})),f.add(C,{close:L}),function(){D.length=0,k?(D.push(e.$watch(k,(function(e){C.content=e,!e&&C.isOpen&&L()}))),D.push(g.$watch((function(){T||(T=!0,g.$$postDigest((function(){T=!1,C&&C.isOpen&&x()})))})))):D.push(o.$observe(a,(function(e){C.content=e,!e&&C.isOpen?L():x()})));D.push(o.$observe(c+"Title",(function(e){C.title=e,C.isOpen&&x()}))),D.push(o.$observe(c+"Placement",(function(e){C.placement=e||m.placement,C.isOpen&&x()})))}()}(),C.$evalAsync((function(){C.isOpen=!0,j(!0),x()}))}function N(){_&&(r.cancel(_),_=null),y&&(r.cancel(y),y=null)}function L(){C&&C.$evalAsync((function(){C&&(C.isOpen=!1,j(!1),C.animation?h||(h=r(U,150,!1)):U())}))}function $(){b&&(r.cancel(b),b=null),h&&(r.cancel(h),h=null)}function U(){N(),$(),D.length&&(angular.forEach(D,(function(e){e()})),D.length=0),d&&(d.remove(),d=null,v&&r.cancel(v)),f.remove(C),g&&(g.$destroy(),g=null)}function j(t){I&&angular.isFunction(I.assign)&&I.assign(e,t)}function F(e){C&&C.isOpen&&d&&(t[0].contains(e.target)||d[0].contains(e.target)||O())}function q(e){27===e.which&&O()}C.origScope=e,C.isOpen=!1,C.contentExp=function(){return C.content},o.$observe("disabled",(function(e){e&&N(),e&&C.isOpen&&L()})),I&&e.$watch(I,(function(e){C&&!e===C.isOpen&&M()}));var Y,H,B,G=function(){w.show.forEach((function(e){"outsideClick"===e?t.off("click",M):(t.off(e,P),t.off(e,M)),t.off("keypress",q)})),w.hide.forEach((function(e){"outsideClick"===e?i.off("click",F):t.off(e,O)}))};Y=[],H=[],B=e.$eval(o[c+"Trigger"]),G(),angular.isObject(B)?(Object.keys(B).forEach((function(e){Y.push(e),H.push(B[e])})),w={show:Y,hide:H}):w=p(B),"none"!==w.show&&w.show.forEach((function(e,n){"outsideClick"===e?(t.on("click",M),i.on("click",F)):e===w.hide[n]?t.on(e,M):e&&(t.on(e,P),t.on(w.hide[n],O)),t.on("keypress",q)}));var V,W=e.$eval(o[c+"Animation"]);C.animation=angular.isDefined(W)?!!W:m.animation;var Q=c+"AppendToBody";V=Q in o&&void 0===o[Q]||e.$eval(o[Q]),S=angular.isDefined(V)?V:S,e.$on("$destroy",(function(){G(),U(),C=null}))}}}}}]})).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,a){return{link:function(o,r,i){var s,l,c,u=o.$eval(i.tooltipTemplateTranscludeScope),d=0,f=function(){l&&(l.remove(),l=null),s&&(s.$destroy(),s=null),c&&(e.leave(c).then((function(){l=null})),l=c,c=null)};o.$watch(t.parseAsResourceUrl(i.uibTooltipTemplateTransclude),(function(t){var i=++d;t?(a(t,!0).then((function(a){if(i===d){var o=u.$new(),l=n(a)(o,(function(t){f(),e.enter(t,r)}));c=l,(s=o).$emit("$includeContentLoaded",t)}}),(function(){i===d&&(f(),o.$emit("$includeContentError",t))})),o.$emit("$includeContentRequested",t)):f()})),o.$on("$destroy",f)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,a){if(t.placement){var o=e.parsePlacement(t.placement);n.addClass(o[0])}t.popupClass&&n.addClass(t.popupClass),t.animation&&n.addClass(a.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 a=this,o=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;function r(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}this.bars=[],e.max=r(),this.addBar=function(e,t,n){o||t.css({transition:"none"}),this.bars.push(e),e.max=r(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",(function(t){e.recalculatePercentage()})),e.recalculatePercentage=function(){var t=a.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,a.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){a.bars.forEach((function(e){e.max=r(),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,a){a.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,a){a.addBar(e,angular.element(t.children()[0]),{title:n.title})}}})),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var a={$setViewValue:angular.noop},o=this;this.init=function(o){(a=o).$render=this.render,a.$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 r=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(r)&&r.length>0?r:n.titles;var i=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(i)},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=o.enableReset&&a.$viewValue===t?0:t;a.$setViewValue(n),a.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=a.$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=a.$viewValue,e.title=o.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,a){var o=a[0],r=a[1];o.init(r)}}})),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var t,n,a=this;function o(e){for(var t=0;t<a.tabs.length;t++)if(a.tabs[t].index===e)return t}a.tabs=[],a.select=function(e,r){if(!n){var i=o(t),s=a.tabs[i];if(s){if(s.tab.onDeselect({$event:r,$selectedIndex:e}),r&&r.isDefaultPrevented())return;s.tab.active=!1}var l=a.tabs[e];l?(l.tab.onSelect({$event:r}),l.tab.active=!0,a.active=l.index,t=l.index):!l&&angular.isDefined(t)&&(a.active=null,t=null)}},a.addTab=function(e){if(a.tabs.push({tab:e,index:e.index}),a.tabs.sort((function(e,t){return e.index>t.index?1:e.index<t.index?-1:0})),e.index===a.active||!angular.isDefined(a.active)&&1===a.tabs.length){var t=o(e.index);a.select(t)}},a.removeTab=function(e){for(var t,n=0;n<a.tabs.length;n++)if(a.tabs[n].tab===e){t=n;break}if(a.tabs[t].index===a.active){var o=t===a.tabs.length-1?t-1:t+1%a.tabs.length;a.select(o)}a.tabs.splice(t,1)},e.$watch("tabset.active",(function(e){angular.isDefined(e)&&e!==t&&a.select(o(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,a,o,r){t.disabled=!1,a.disable&&t.$parent.$watch(e(a.disable),(function(e){t.disabled=!!e})),angular.isUndefined(a.index)&&(o.tabs&&o.tabs.length?t.index=Math.max.apply(null,o.tabs.map((function(e){return e.index})))+1:t.index=0),angular.isUndefined(a.classes)&&(t.classes=""),t.select=function(e){if(!t.disabled){for(var n,a=0;a<o.tabs.length;a++)if(o.tabs[a].tab===t){n=a;break}o.select(n,e)}},o.addTab(t),t.$on("$destroy",(function(){o.removeTab(t)})),t.$transcludeFn=r}}}]).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 a=e.$eval(n.uibTabContentTransclude).tab;a.$transcludeFn(a.$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):a.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,a,o,r,i){var s,l,c,u=new Date,d=[],f={$setViewValue:angular.noop},m=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):i.meridians||r.DATETIME_FORMATS.AMPMS,p=!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,a){(f=t).$render=this.render,f.$formatters.unshift((function(e){return e?new Date(e):null}));var o=a.eq(0),r=a.eq(1),u=a.eq(2);s=o.controller("ngModel"),l=r.controller("ngModel"),c=u.controller("ngModel"),(angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):i.mousewheel)&&this.setupMousewheelEvents(o,r,u),(angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):i.arrowkeys)&&this.setupArrowkeyEvents(o,r,u),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):i.readonlyInput,this.setupInputEvents(o,r,u)};var g=i.hourStep;n.hourStep&&d.push(e.$parent.$watch(a(n.hourStep),(function(e){g=+e})));var h,_,b=i.minuteStep;n.minuteStep&&d.push(e.$parent.$watch(a(n.minuteStep),(function(e){b=+e}))),d.push(e.$parent.$watch(a(n.min),(function(e){var t=new Date(e);h=isNaN(t)?void 0:t}))),d.push(e.$parent.$watch(a(n.max),(function(e){var t=new Date(e);_=isNaN(t)?void 0:t})));var y=!1;n.ngDisabled&&d.push(e.$parent.$watch(a(n.ngDisabled),(function(e){y=e}))),e.noIncrementHours=function(){var e=k(u,60*g);return y||e>_||e<u&&e<h},e.noDecrementHours=function(){var e=k(u,60*-g);return y||e<h||e>u&&e>_},e.noIncrementMinutes=function(){var e=k(u,b);return y||e>_||e<u&&e<h},e.noDecrementMinutes=function(){var e=k(u,-b);return y||e<h||e>u&&e>_},e.noIncrementSeconds=function(){var e=D(u,v);return y||e>_||e<u&&e<h},e.noDecrementSeconds=function(){var e=D(u,-v);return y||e<h||e>u&&e>_},e.noToggleMeridian=function(){return u.getHours()<12?y||k(u,720)>_:y||k(u,-720)<h};var v=i.secondStep;function A(){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===m[1]&&(t+=12)),t}function S(){var t=+e.minutes;if(t>=0&&t<60&&""!==e.minutes)return t}function w(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function E(e){C(),f.$setViewValue(new Date(u)),T(e)}function C(){s&&s.$setValidity("hours",!0),l&&l.$setValidity("minutes",!0),c&&c.$setValidity("seconds",!0),f.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function T(t){if(f.$modelValue){var n=u.getHours(),a=u.getMinutes(),o=u.getSeconds();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:w(n,!p),"m"!==t&&(e.minutes=w(a)),e.meridian=u.getHours()<12?m[0]:m[1],"s"!==t&&(e.seconds=w(o)),e.meridian=u.getHours()<12?m[0]:m[1]}else e.hours=null,e.minutes=null,e.seconds=null,e.meridian=m[0]}function I(e){u=D(u,e),E()}function k(e,t){return D(e,60*t)}function D(e,t){var n=new Date(e.getTime()+1e3*t),a=new Date(e);return a.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),a}function x(){return(null===e.hours||""===e.hours)&&(null===e.minutes||""===e.minutes)&&(!e.showSeconds||e.showSeconds&&(null===e.seconds||""===e.seconds))}n.secondStep&&d.push(e.$parent.$watch(a(n.secondStep),(function(e){v=+e}))),e.showSeconds=i.showSeconds,n.showSeconds&&d.push(e.$parent.$watch(a(n.showSeconds),(function(t){e.showSeconds=!!t}))),e.showMeridian=i.showMeridian,n.showMeridian&&d.push(e.$parent.$watch(a(n.showMeridian),(function(t){if(e.showMeridian=!!t,f.$error.time){var n=A(),a=S();angular.isDefined(n)&&angular.isDefined(a)&&(u.setHours(n),E())}else T()}))),this.setupMousewheelEvents=function(t,n,a){var o=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){y||e.$apply(o(t)?e.incrementHours():e.decrementHours()),t.preventDefault()})),n.on("mousewheel wheel",(function(t){y||e.$apply(o(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()})),a.on("mousewheel wheel",(function(t){y||e.$apply(o(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()}))},this.setupArrowkeyEvents=function(t,n,a){t.on("keydown",(function(t){y||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))})),n.on("keydown",(function(t){y||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))})),a.on("keydown",(function(t){y||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))}))},this.setupInputEvents=function(t,n,a){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var o=function(t,n,a){f.$setViewValue(null),f.$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(a)&&(e.invalidSeconds=a,c&&c.$setValidity("seconds",!1))};e.updateHours=function(){var e=A(),t=S();f.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(u.setHours(e),u.setMinutes(t),u<h||u>_?o(!0):E("h")):o(!0)},t.on("blur",(function(t){f.$setTouched(),x()?C():null===e.hours||""===e.hours?o(!0):!e.invalidHours&&e.hours<10&&e.$apply((function(){e.hours=w(e.hours,!p)}))})),e.updateMinutes=function(){var e=S(),t=A();f.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(u.setHours(t),u.setMinutes(e),u<h||u>_?o(void 0,!0):E("m")):o(void 0,!0)},n.on("blur",(function(t){f.$setTouched(),x()?C():null===e.minutes?o(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply((function(){e.minutes=w(e.minutes)}))})),e.updateSeconds=function(){var t=function(){var t=+e.seconds;return t>=0&&t<60?t:void 0}();f.$setDirty(),angular.isDefined(t)?(u.setSeconds(t),E("s")):o(void 0,void 0,!0)},a.on("blur",(function(t){x()?C():!e.invalidSeconds&&e.seconds<10&&e.$apply((function(){e.seconds=w(e.seconds)}))}))},this.render=function(){var t=f.$viewValue;isNaN(t)?(f.$setValidity("time",!1),o.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&&(u=t),u<h||u>_?(f.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):C(),T())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):i.showSpinners,e.incrementHours=function(){e.noIncrementHours()||I(60*g*60)},e.decrementHours=function(){e.noDecrementHours()||I(60*-g*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||I(60*b)},e.decrementMinutes=function(){e.noDecrementMinutes()||I(60*-b)},e.incrementSeconds=function(){e.noIncrementSeconds()||I(v)},e.decrementSeconds=function(){e.noDecrementSeconds()||I(-v)},e.toggleMeridian=function(){var t=S(),n=A();e.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(n)?I(720*(u.getHours()<12?60:-60)):e.meridian=e.meridian===m[0]?m[1]:m[0])},e.blur=function(){f.$setTouched()},e.$on("$destroy",(function(){for(;d.length;)d.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,a){var o=a[0],r=a[1];r&&o.init(r,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 a=n.match(t);if(!a)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:a[3],source:e(a[4]),viewMapper:e(a[2]||a[1]),modelMapper:e(a[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,n,a,o,r,i,s,l,c,u,d,f){var m,p,g=[9,13,27,38,40],h=e.$eval(n.typeaheadMinLength);h||0===h||(h=1),e.$watch(n.typeaheadMinLength,(function(e){h=e||0===e?e:1}));var _=e.$eval(n.typeaheadWaitMs)||0,b=!1!==e.$eval(n.typeaheadEditable);e.$watch(n.typeaheadEditable,(function(e){b=!1!==e}));var y,v,A=o(n.typeaheadLoading).assign||angular.noop,S=n.typeaheadShouldSelect?o(n.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},w=o(n.typeaheadOnSelect),E=!!angular.isDefined(n.typeaheadSelectOnBlur)&&e.$eval(n.typeaheadSelectOnBlur),C=o(n.typeaheadNoResults).assign||angular.noop,T=n.typeaheadInputFormatter?o(n.typeaheadInputFormatter):void 0,I=!!n.typeaheadAppendToBody&&e.$eval(n.typeaheadAppendToBody),k=n.typeaheadAppendTo?e.$eval(n.typeaheadAppendTo):null,D=!1!==e.$eval(n.typeaheadFocusFirst),x=!!n.typeaheadSelectOnExact&&e.$eval(n.typeaheadSelectOnExact),M=o(n.typeaheadIsOpen).assign||angular.noop,P=e.$eval(n.typeaheadShowHint)||!1,O=o(n.ngModel),R=o(n.ngModel+"($$$p)"),N=f.parse(n.uibTypeahead),L=e.$new(),$=e.$on("$destroy",(function(){L.$destroy()}));L.$on("$destroy",$);var U,j,F="typeahead-"+L.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":F}),P&&((U=angular.element("<div></div>")).css("position","relative"),t.after(U),(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"),U.append(j),j.after(t));var q=angular.element("<div uib-typeahead-popup></div>");q.attr({id:F,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)&&q.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&q.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var Y=function(){L.matches=[],L.activeIdx=-1,t.attr("aria-expanded",!1),P&&j.val("")},H=function(e){return F+"-option-"+e};L.$watch("activeIdx",(function(e){e<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",H(e))}));var B=function(n,a){var o={$viewValue:n};A(e,!0),C(e,!1),r.when(N.source(e,o)).then((function(r){var i=n===m.$viewValue;if(i&&y)if(r&&r.length>0){L.activeIdx=D?0:-1,C(e,!1),L.matches.length=0;for(var s=0;s<r.length;s++)o[N.itemName]=r[s],L.matches.push({id:H(s),label:N.viewMapper(L,o),model:r[s]});if(L.query=n,Q(),t.attr("aria-expanded",!0),x&&1===L.matches.length&&function(e,t){return!!(L.matches.length>t&&e)&&e.toUpperCase()===L.matches[t].label.toUpperCase()}(n,0)&&(angular.isNumber(L.debounceUpdate)||angular.isObject(L.debounceUpdate)?u((function(){L.select(0,a)}),angular.isNumber(L.debounceUpdate)?L.debounceUpdate:L.debounceUpdate.default):L.select(0,a)),P){var l=L.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 Y(),C(e,!0);i&&A(e,!1)}),(function(){Y(),A(e,!1),C(e,!0)}))};I&&(angular.element(l).on("resize",W),s.find("body").on("scroll",W));var G,V=u((function(){L.matches.length&&Q(),L.moveInProgress=!1}),200);function W(){L.moveInProgress||(L.moveInProgress=!0,L.$digest()),V()}function Q(){L.position=I?d.offset(t):d.position(t),L.position.top+=t.prop("offsetHeight")}L.moveInProgress=!1,L.query=void 0;var z=function(){G&&i.cancel(G)};Y(),L.assignIsOpen=function(t){M(e,t)},L.select=function(a,o){var r,s,l={};v=!0,l[N.itemName]=s=L.matches[a].model,r=N.modelMapper(e,l),function(t,n){angular.isFunction(O(e))&&p.getOption("getterSetter")?R(t,{$$$p:n}):O.assign(t,n)}(e,r),m.$setValidity("editable",!0),m.$setValidity("parse",!0),w(e,{$item:s,$model:r,$label:N.viewMapper(e,l),$event:o}),Y(),!1!==L.$eval(n.typeaheadFocusOnSelect)&&i((function(){t[0].focus()}),0,!1)},t.on("keydown",(function(t){if(0!==L.matches.length&&-1!==g.indexOf(t.which)){var n,a=S(e,{$event:t});if(-1===L.activeIdx&&a||9===t.which&&t.shiftKey)return Y(),void L.$digest();switch(t.preventDefault(),t.which){case 27:t.stopPropagation(),Y(),e.$digest();break;case 38:L.activeIdx=(L.activeIdx>0?L.activeIdx:L.matches.length)-1,L.$digest(),(n=q[0].querySelectorAll(".uib-typeahead-match")[L.activeIdx]).parentNode.scrollTop=n.offsetTop;break;case 40:L.activeIdx=(L.activeIdx+1)%L.matches.length,L.$digest(),(n=q[0].querySelectorAll(".uib-typeahead-match")[L.activeIdx]).parentNode.scrollTop=n.offsetTop;break;default:a&&L.$apply((function(){angular.isNumber(L.debounceUpdate)||angular.isObject(L.debounceUpdate)?u((function(){L.select(L.activeIdx,t)}),angular.isNumber(L.debounceUpdate)?L.debounceUpdate:L.debounceUpdate.default):L.select(L.activeIdx,t)}))}}})),t.on("focus",(function(e){y=!0,0!==h||m.$viewValue||i((function(){B(m.$viewValue,e)}),0)})),t.on("blur",(function(e){E&&L.matches.length&&-1!==L.activeIdx&&!v&&(v=!0,L.$apply((function(){angular.isObject(L.debounceUpdate)&&angular.isNumber(L.debounceUpdate.blur)?u((function(){L.select(L.activeIdx,e)}),L.debounceUpdate.blur):L.select(L.activeIdx,e)}))),!b&&m.$error.editable&&(m.$setViewValue(),L.$apply((function(){m.$setValidity("editable",!0),m.$setValidity("parse",!0)})),t.val("")),y=!1,v=!1}));var K=function(n){t[0]!==n.target&&3!==n.which&&0!==L.matches.length&&(Y(),c.$$phase||e.$digest())};s.on("click",K),e.$on("$destroy",(function(){s.off("click",K),(I||k)&&J.remove(),I&&(angular.element(l).off("resize",W),s.find("body").off("scroll",W)),q.remove(),P&&U.remove()}));var J=a(q)(L);I?s.find("body").append(J):k?angular.element(k).eq(0).append(J):t.after(J),this.init=function(t){p=function(e){var t;angular.version.minor<6?(t=e.$options||{}).getOption=function(e){return t[e]}:t=e.$options;return t}(m=t),L.debounceUpdate=o(p.getOption("debounce"))(e),m.$parsers.unshift((function(t){return y=!0,0===h||t&&t.length>=h?_>0?(z(),function(e){G=i((function(){B(e)}),_)}(t)):B(t):(A(e,!1),z(),Y()),b?t:t?void m.$setValidity("editable",!1):(m.$setValidity("editable",!0),null)})),m.$formatters.push((function(t){var n,a={};return b||m.$setValidity("editable",!0),T?(a.$model=t,T(e,a)):(a[N.itemName]=t,n=N.viewMapper(e,a),a[N.itemName]=void 0,n!==N.viewMapper(e,a)?n:t)}))}}]).directive("uibTypeahead",(function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(e,t,n,a){a[1].init(a[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,a){t.templateUrl=a.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,a){var o=t.debounce();angular.isNumber(o)||angular.isObject(o)?e((function(){t.select({activeIdx:n,evt:a})}),angular.isNumber(o)?o:o.default):t.select({activeIdx:n,evt:a})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(a,o,r){var i=n(r.templateUrl)(a.$parent)||"uib/template/typeahead/typeahead-match.html";e(i).then((function(e){var n=angular.element(e.trim());o.replaceWith(n),t(n)(a)}))}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){var a;return a=t.has("$sanitize"),function(t,o){return!a&&function(e){return/<.*>/g.test(e)}(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=o?(""+t).replace(new RegExp(o.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,a||(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}))},"./node_modules/angular-ui-bootstrap/index.js":(e,t,n)=>{n("./node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"),e.exports="ui.bootstrap"},"./node_modules/angular/angular.js":(e,t,n)=>{var a=n("./node_modules/jquery/dist/jquery.js");!function(e){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(e){if(!q(e))return t;F(e.objectMaxDepth)&&(t.objectMaxDepth=o(e.objectMaxDepth)?e.objectMaxDepth:NaN),F(e.urlErrorParamsEnabled)&&X(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function o(e){return B(e)&&e>0}function r(e,n){n=n||Error;var a="https://errors.angularjs.org/1.8.2/",o=a.replace(".","\\.")+"[\\s\\S]*",r=new RegExp(o,"g");return function(){var o,i,s=arguments[0],l=arguments[1],c="["+(e?e+":":"")+s+"] ",u=me(arguments,2).map((function(e){return Ge(e,t.objectMaxDepth)}));if(c+=l.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<u.length?u[t].replace(r,""):e})),c+="\n"+a+(e?e+"/":"")+s,t.urlErrorParamsEnabled)for(i=0,o="?";i<u.length;i++,o="&")c+=o+"p"+i+"="+encodeURIComponent(u[i]);return new n(c)}}var i,s,l,c,u=/^\/(.+)\/([a-z]*)$/,d="validity",f=Object.prototype.hasOwnProperty,m=function(e){return H(e)?e.toLowerCase():e},p=function(e){return H(e)?e.toUpperCase():e},g=[].slice,h=[].splice,_=[].push,b=Object.prototype.toString,y=Object.getPrototypeOf,v=r("ng"),A=e.angular||(e.angular={}),S=0;function w(e){if(null==e||K(e))return!1;if(V(e)||H(e)||s&&e instanceof s)return!0;var t="length"in Object(e)&&e.length;return B(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function E(e,t,n){var a,o;if(e)if(Q(e))for(a in e)"prototype"!==a&&"length"!==a&&"name"!==a&&e.hasOwnProperty(a)&&t.call(n,e[a],a,e);else if(V(e)||w(e)){var r="object"!=typeof e;for(a=0,o=e.length;a<o;a++)(r||a in e)&&t.call(n,e[a],a,e)}else if(e.forEach&&e.forEach!==E)e.forEach(t,n,e);else if(Y(e))for(a in e)t.call(n,e[a],a,e);else if("function"==typeof e.hasOwnProperty)for(a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e);else for(a in e)f.call(e,a)&&t.call(n,e[a],a,e);return e}function C(e,t,n){for(var a=Object.keys(e).sort(),o=0;o<a.length;o++)t.call(n,e[a[o]],a[o]);return a}function T(e){return function(t,n){e(n,t)}}function I(){return++S}function k(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function D(e,t,n){for(var a=e.$$hashKey,o=0,r=t.length;o<r;++o){var i=t[o];if(q(i)||Q(i))for(var s=Object.keys(i),l=0,c=s.length;l<c;l++){var u=s[l],d=i[u];n&&q(d)?G(d)?e[u]=new Date(d.valueOf()):z(d)?e[u]=new RegExp(d):d.nodeName?e[u]=d.cloneNode(!0):ae(d)?e[u]=d.clone():"__proto__"!==u&&(q(e[u])||(e[u]=V(d)?[]:{}),D(e[u],[d],!0)):e[u]=d}}return k(e,a),e}function x(e){return D(e,g.call(arguments,1),!1)}function M(e){return D(e,g.call(arguments,1),!0)}function P(e){return parseInt(e,10)}i=e.document.documentMode;var O=Number.isNaN||function(e){return e!=e};function R(e,t){return x(Object.create(e),t)}function N(){}function L(e){return e}function $(e){return function(){return e}}function U(e){return Q(e.toString)&&e.toString!==b}function j(e){return void 0===e}function F(e){return void 0!==e}function q(e){return null!==e&&"object"==typeof e}function Y(e){return null!==e&&"object"==typeof e&&!y(e)}function H(e){return"string"==typeof e}function B(e){return"number"==typeof e}function G(e){return"[object Date]"===b.call(e)}function V(e){return Array.isArray(e)||e instanceof Array}function W(e){switch(b.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function Q(e){return"function"==typeof e}function z(e){return"[object RegExp]"===b.call(e)}function K(e){return e&&e.window===e}function J(e){return e&&e.$evalAsync&&e.$watch}function X(e){return"boolean"==typeof e}function Z(e){return e&&Q(e.then)}N.$inject=[],L.$inject=[];var ee=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var te=function(e){return H(e)?e.trim():e},ne=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function ae(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function oe(e){return m(e.nodeName||e[0]&&e[0].nodeName)}function re(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function ie(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function se(e,t,n){var a,r,i=[],s=[];if(n=o(n)?n:NaN,t){if((r=t)&&B(r.length)&&ee.test(b.call(r))||(a=t,"[object ArrayBuffer]"===b.call(a)))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 V(t)?t.length=0:E(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),i.push(e),s.push(t),l(e,t,n)}return c(e,n);function l(e,t,n){if(--n<0)return"...";var a,o=t.$$hashKey;if(V(e))for(var r=0,i=e.length;r<i;r++)t.push(c(e[r],n));else if(Y(e))for(a in e)t[a]=c(e[a],n);else if(e&&"function"==typeof e.hasOwnProperty)for(a in e)e.hasOwnProperty(a)&&(t[a]=c(e[a],n));else for(a in e)f.call(e,a)&&(t[a]=c(e[a],n));return k(t,o),t}function c(e,t){if(!q(e))return e;var n=i.indexOf(e);if(-1!==n)return s[n];if(K(e)||J(e))throw v("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var a=!1,o=function(e){switch(b.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(c(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(Q(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===o&&(o=V(e)?[]:Object.create(y(e)),a=!0),i.push(e),s.push(o),a?l(e,o,t):o}}function le(e,t){return e===t||e!=e&&t!=t}function ce(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,a,o,r=typeof e;if(r===typeof t&&"object"===r){if(!V(e)){if(G(e))return!!G(t)&&le(e.getTime(),t.getTime());if(z(e))return!!z(t)&&e.toString()===t.toString();if(J(e)||J(t)||K(e)||K(t)||V(t)||G(t)||z(t))return!1;for(a in o=qe(),e)if("$"!==a.charAt(0)&&!Q(e[a])){if(!ce(e[a],t[a]))return!1;o[a]=!0}for(a in t)if(!(a in o)&&"$"!==a.charAt(0)&&F(t[a])&&!Q(t[a]))return!1;return!0}if(!V(t))return!1;if((n=e.length)===t.length){for(a=0;a<n;a++)if(!ce(e[a],t[a]))return!1;return!0}}return!1}var ue=function(){if(!F(ue.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");ue.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ue.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return ue.rules},de=function(){if(F(de.name_))return de.name_;var t,n,a,o,r=Ie.length;for(n=0;n<r;++n)if(a=Ie[n],t=e.document.querySelector("["+a.replace(":","\\:")+"jq]")){o=t.getAttribute(a+"jq");break}return de.name_=o};function fe(e,t,n){return e.concat(g.call(t,n))}function me(e,t){return g.call(e,t||0)}function pe(e,t){var n=arguments.length>2?me(arguments,2):[];return!Q(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,fe(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function ge(t,n){var a=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?a=void 0:K(n)?a="$WINDOW":n&&e.document===n?a="$DOCUMENT":J(n)&&(a="$SCOPE"),a}function he(e,t){if(!j(e))return B(t)||(t=t?2:null),JSON.stringify(e,ge,t)}function _e(e){return H(e)?JSON.parse(e):e}var be=/:/g;function ye(e,t){e=e.replace(be,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return O(n)?t:n}function ve(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function Ae(e,t,n){n=n?-1:1;var a=e.getTimezoneOffset();return ve(e,n*(ye(t,a)-a))}function Se(e){e=s(e).clone().empty();var t=s("<div></div>").append(e).html();try{return e[0].nodeType===He?m(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+m(t)}))}catch(e){return m(t)}}function we(e){try{return decodeURIComponent(e)}catch(e){}}function Ee(e){var t={};return E((e||"").split("&"),(function(e){var n,a,o;e&&(a=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(a=e.substring(0,n),o=e.substring(n+1)),F(a=we(a))&&(o=!F(o)||we(o),f.call(t,a)?V(t[a])?t[a].push(o):t[a]=[t[a],o]:t[a]=o))})),t}function Ce(e){return Te(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Te(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 Ie=["ng-","data-ng-","ng:","x-ng-"];var ke=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var a=n.attributes;return[a.getNamedItem("src"),a.getNamedItem("href"),a.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document);function De(t,n){var a,o,r={};if(E(Ie,(function(e){var n=e+"app";!a&&t.hasAttribute&&t.hasAttribute(n)&&(a=t,o=t.getAttribute(n))})),E(Ie,(function(e){var n,r=e+"app";!a&&(n=t.querySelector("["+r.replace(":","\\:")+"]"))&&(a=n,o=n.getAttribute(r))})),a){if(!ke)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");r.strictDi=null!==function(e,t){var n,a,o=Ie.length;for(a=0;a<o;++a)if(n=Ie[a]+t,H(n=e.getAttribute(n)))return n;return null}(a,"strict-di"),n(a,o?[o]:[],r)}}function xe(t,n,a){q(a)||(a={});a=x({strictDi:!1},a);var o=function(){if((t=s(t)).injector()){var o=t[0]===e.document?"document":Se(t);throw v("btstrpd","App already bootstrapped with this element '{0}'",o.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),a.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var r=Zt(n,a.strictDi);return r.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,a){e.$apply((function(){t.data("$injector",a),n(t)(e)}))}]),r},r=/^NG_ENABLE_DEBUG_INFO!/,i=/^NG_DEFER_BOOTSTRAP!/;if(e&&r.test(e.name)&&(a.debugInfoEnabled=!0,e.name=e.name.replace(r,"")),e&&!i.test(e.name))return o();e.name=e.name.replace(i,""),A.resumeBootstrap=function(e){return E(e,(function(e){n.push(e)})),o()},Q(A.resumeDeferredBootstrap)&&A.resumeDeferredBootstrap()}function Me(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function Pe(e){var t=A.element(e).injector();if(!t)throw v("test","no injector found for element argument to getTestability");return t.get("$$testability")}var Oe=/[A-Z]/g;function Re(e,t){return t=t||"_",e.replace(Oe,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var Ne=!1;function Le(){pt.legacyXHTMLReplacement=!0}function $e(e,t,n){if(!e)throw v("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function Ue(e,t,n){return n&&V(e)&&(e=e[e.length-1]),$e(Q(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function je(e,t){if("hasOwnProperty"===e)throw v("badname","hasOwnProperty is not a valid {0} name",t)}function Fe(e){for(var t,n=e[0],a=e[e.length-1],o=1;n!==a&&(n=n.nextSibling);o++)(t||e[o]!==n)&&(t||(t=s(g.call(e,0,o))),t.push(n));return t||e}function qe(){return Object.create(null)}function Ye(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!U(e)||V(e)||G(e)?he(e):e.toString()}return e}var He=3;function Be(e,t){if(V(e)){t=t||[];for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}else if(q(e))for(var o in t=t||{},e)"$"===o.charAt(0)&&"$"===o.charAt(1)||(t[o]=e[o]);return t||e}function Ge(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):j(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return o(t)&&(e=A.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(q(t=ge(e,t))){if(n.indexOf(t)>=0)return"...";n.push(t)}return t}))}(e,t):e}var Ve={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};pt.expando="ng339";var We=pt.cache={},Qe=1;pt._data=function(e){return this.cache[e[this.expando]]||{}};var ze=/-([a-z])/g,Ke=/^-ms-/,Je={mouseleave:"mouseout",mouseenter:"mouseover"},Xe=r("jqLite");function Ze(e,t){return t.toUpperCase()}function et(e){return e.replace(ze,Ze)}var tt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,nt=/<|&#?\w+;/,at=/<([\w:-]+)/,ot=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,rt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td;var it={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var st in rt){var lt=rt[st],ct=lt.slice().reverse();it[st]=[ct.length,"<"+ct.join("><")+">","</"+lt.join("></")+">"]}function ut(e){return!nt.test(e)}function dt(e){var t=e.nodeType;return 1===t||!t||9===t}function ft(t,n){var a,o,r,s,l,c=n.createDocumentFragment(),u=[];if(ut(t))u.push(n.createTextNode(t));else{if(a=c.appendChild(n.createElement("div")),o=(at.exec(t)||["",""])[1].toLowerCase(),s=pt.legacyXHTMLReplacement?t.replace(ot,"<$1></$2>"):t,i<10)for(r=it[o]||it._default,a.innerHTML=r[1]+s+r[2],l=r[0];l--;)a=a.firstChild;else{for(l=(r=rt[o]||[]).length;--l>-1;)a.appendChild(e.document.createElement(r[l])),a=a.firstChild;a.innerHTML=s}u=fe(u,a.childNodes),(a=c.firstChild).textContent=""}return c.textContent="",c.innerHTML="",E(u,(function(e){c.appendChild(e)})),c}it.optgroup=it.option;var mt=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function pt(t){if(t instanceof pt)return t;var n,a,o,r;if(H(t)&&(t=te(t),n=!0),!(this instanceof pt)){if(n&&"<"!==t.charAt(0))throw Xe("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new pt(t)}n?Tt(this,(a=t,o=o||e.document,(r=tt.exec(a))?[o.createElement(r[1])]:(r=ft(a,o))?r.childNodes:[])):Q(t)?Mt(t):Tt(this,t)}function gt(e){return e.cloneNode(!0)}function ht(e,t){!t&&dt(e)&&s.cleanData([e]),e.querySelectorAll&&s.cleanData(e.querySelectorAll("*"))}function _t(e){var t;for(t in e)return!1;return!0}function bt(e){var t=e.ng339,n=t&&We[t],a=n&&n.events,o=n&&n.data;o&&!_t(o)||a&&!_t(a)||(delete We[t],e.ng339=void 0)}function yt(e,t,n,a){if(F(a))throw Xe("offargs","jqLite#off() does not support the `selector` argument");var o=At(e),r=o&&o.events,i=o&&o.handle;if(i){if(t){var s=function(t){var a=r[t];F(n)&&ie(a||[],n),F(n)&&a&&a.length>0||(e.removeEventListener(t,i),delete r[t])};E(t.split(" "),(function(e){s(e),Je[e]&&s(Je[e])}))}else for(t in r)"$destroy"!==t&&e.removeEventListener(t,i),delete r[t];bt(e)}}function vt(e,t){var n=e.ng339,a=n&&We[n];a&&(t?delete a.data[t]:a.data={},bt(e))}function At(e,t){var n=e.ng339,a=n&&We[n];return t&&!a&&(e.ng339=n=++Qe,a=We[n]={events:{},data:{},handle:void 0}),a}function St(e,t,n){if(dt(e)){var a,o=F(n),r=!o&&t&&!q(t),i=!t,s=At(e,!r),l=s&&s.data;if(o)l[et(t)]=n;else{if(i)return l;if(r)return l&&l[et(t)];for(a in t)l[et(a)]=t[a]}}}function wt(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Et(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),a=n;E(t.split(" "),(function(e){e=te(e),a=a.replace(" "+e+" "," ")})),a!==n&&e.setAttribute("class",te(a))}}function Ct(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),a=n;E(t.split(" "),(function(e){e=te(e),-1===a.indexOf(" "+e+" ")&&(a+=e+" ")})),a!==n&&e.setAttribute("class",te(a))}}function Tt(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 a=0;a<n;a++)e[e.length++]=t[a]}else e[e.length++]=t}}function It(e,t){return kt(e,"$"+(t||"ngController")+"Controller")}function kt(e,t,n){9===e.nodeType&&(e=e.documentElement);for(var a=V(t)?t:[t];e;){for(var o=0,r=a.length;o<r;o++)if(F(n=s.data(e,a[o])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function Dt(e){for(ht(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function xt(e,t){t||ht(e);var n=e.parentNode;n&&n.removeChild(e)}function Mt(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}var Pt=pt.prototype={ready:Mt,toString:function(){var e=[];return E(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return s(e>=0?this[e]:this[this.length+e])},length:0,push:_,sort:[].sort,splice:[].splice},Ot={};E("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){Ot[m(e)]=e}));var Rt={};E("input,select,option,textarea,button,form,details".split(","),(function(e){Rt[e]=!0}));var Nt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Lt(e,t){var n=Ot[t.toLowerCase()];return n&&Rt[oe(e)]&&n}function $t(e,t,n){n.call(e,t)}function Ut(e,t,n){var a=t.relatedTarget;a&&(a===e||mt.call(e,a))||n.call(e,t)}function jt(){this.$get=function(){return x(pt,{hasClass:function(e,t){return e.attr&&(e=e[0]),wt(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ct(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Et(e,t)}})}}function Ft(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var a=typeof e;return n="function"===a||"object"===a&&null!==e?e.$$hashKey=a+":"+(t||I)():a+":"+e}E({data:St,removeData:vt,hasData:function(e){for(var t in We[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)vt(e[t]),yt(e[t])}},(function(e,t){pt[t]=e})),E({data:St,inheritedData:kt,scope:function(e){return s.data(e,"$scope")||kt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return s.data(e,"$isolateScope")||s.data(e,"$isolateScopeNoTemplate")},controller:It,injector:function(e){return kt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:wt,css:function(e,t,n){if(t=function(e){return et(e.replace(Ke,"ms-"))}(t),!F(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var a,o=e.nodeType;if(o!==He&&2!==o&&8!==o&&e.getAttribute){var r=m(t),i=Ot[r];if(!F(n))return a=e.getAttribute(t),i&&null!==a&&(a=r),null===a?void 0:a;null===n||!1===n&&i?e.removeAttribute(t):e.setAttribute(t,i?r:n)}},prop:function(e,t,n){if(!F(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(j(t)){var n=e.nodeType;return 1===n||n===He?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(j(t)){if(e.multiple&&"select"===oe(e)){var n=[];return E(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(j(t))return e.innerHTML;ht(e,!0),e.innerHTML=t},empty:Dt},(function(e,t){pt.prototype[t]=function(t,n){var a,o,r=this.length;if(e!==Dt&&j(2===e.length&&e!==wt&&e!==It?t:n)){if(q(t)){for(a=0;a<r;a++)if(e===St)e(this[a],t);else for(o in t)e(this[a],o,t[o]);return this}for(var i=e.$dv,s=j(i)?Math.min(r,1):r,l=0;l<s;l++){var c=e(this[l],t,n);i=i?i+c:c}return i}for(a=0;a<r;a++)e(this[a],t,n);return this}})),E({removeData:vt,on:function(e,t,n,a){if(F(a))throw Xe("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(dt(e)){var o=At(e,!0),r=o.events,i=o.handle;i||(i=o.handle=function(e,t){var n=function(n,a){n.isDefaultPrevented=function(){return n.defaultPrevented};var o=t[a||n.type],r=o?o.length:0;if(r){if(j(n.immediatePropagationStopped)){var i=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),i&&i.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=o.specialHandlerWrapper||$t;r>1&&(o=Be(o));for(var l=0;l<r;l++)n.isImmediatePropagationStopped()||s(e,n,o[l])}};return n.elem=e,n}(e,r));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],l=s.length,c=function(t,a,o){var s=r[t];s||((s=r[t]=[]).specialHandlerWrapper=a,"$destroy"===t||o||e.addEventListener(t,i)),s.push(n)};l--;)t=s[l],Je[t]?(c(Je[t],Ut),c(t,void 0,!0)):c(t)}},off:yt,one:function(e,t,n){(e=s(e)).on(t,(function a(){e.off(t,n),e.off(t,a)})),e.on(t,n)},replaceWith:function(e,t){var n,a=e.parentNode;ht(e),E(new pt(t),(function(t){n?a.insertBefore(t,n.nextSibling):a.replaceChild(t,e),n=t}))},children:function(e){var t=[];return E(e.childNodes,(function(e){1===e.nodeType&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(1===n||11===n)for(var a=0,o=(t=new pt(t)).length;a<o;a++){var r=t[a];e.appendChild(r)}},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;E(new pt(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){var n,a,o;n=e,a=s(t).eq(0).clone()[0],(o=n.parentNode)&&o.replaceChild(a,n),a.appendChild(n)},remove:xt,detach:function(e){xt(e,!0)},after:function(e,t){var n=e,a=e.parentNode;if(a)for(var o=0,r=(t=new pt(t)).length;o<r;o++){var i=t[o];a.insertBefore(i,n.nextSibling),n=i}},addClass:Ct,removeClass:Et,toggleClass:function(e,t,n){t&&E(t.split(" "),(function(t){var a=n;j(a)&&(a=!wt(e,t)),(a?Ct:Et)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:gt,triggerHandler:function(e,t,n){var a,o,r,i=t.type||t,s=At(e),l=s&&s.events,c=l&&l[i];c&&(a={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:N,type:i,target:e},t.type&&(a=x(a,t)),o=Be(c),r=n?[a].concat(n):[a],E(o,(function(t){a.isImmediatePropagationStopped()||t.apply(e,r)})))}},(function(e,t){pt.prototype[t]=function(t,n,a){for(var o,r=0,i=this.length;r<i;r++)j(o)?F(o=e(this[r],t,n,a))&&(o=s(o)):Tt(o,e(this[r],t,n,a));return F(o)?o:this}})),pt.prototype.bind=pt.prototype.on,pt.prototype.unbind=pt.prototype.off;var qt=Object.create(null);function Yt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Yt.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return O(e)?qt:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ht=Yt,Bt=[function(){this.$get=[function(){return Ht}]}],Gt=/^([^(]+?)=>/,Vt=/^[^(]*\(\s*([^)]*)\)/m,Wt=/,/,Qt=/^\s*(_?)(\S+?)\1\s*$/,zt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Kt=r("$injector");function Jt(e){return Function.prototype.toString.call(e)}function Xt(e){var t=Jt(e).replace(zt,"");return t.match(Gt)||t.match(Vt)}function Zt(e,t){t=!0===t;var n={},a="Provider",o=[],r=new Ht,s={$provide:{provider:p(g),factory:p(_),service:p((function(e,t){return _(e,["$injector",function(e){return e.instantiate(t)}])})),value:p((function(e,t){return _(e,$(t),!1)})),constant:p((function(e,t){je(e,"constant"),s[e]=t,u[e]=t})),decorator:function(e,t){var n=l.get(e+a),o=n.$get;n.$get=function(){var e=f.invoke(o,n);return f.invoke(t,null,{$delegate:e})}}}},l=s.$injector=y(s,(function(e,t){throw A.isString(t)&&o.push(t),Kt("unpr","Unknown provider: {0}",o.join(" <- "))})),u={},d=y(u,(function(e,t){var n=l.get(e+a,t);return f.invoke(n.$get,n,void 0,e)})),f=d;s.$injectorProvider={$get:$(d)},f.modules=l.modules=qe();var m=b(e);return(f=d.get("$injector")).strictDi=t,E(m,(function(e){e&&f.invoke(e)})),f.loadNewModules=function(e){E(b(e),(function(e){e&&f.invoke(e)}))},f;function p(e){return function(t,n){if(!q(t))return e(t,n);E(t,T(e))}}function g(e,t){if(je(e,"service"),(Q(t)||V(t))&&(t=l.instantiate(t)),!t.$get)throw Kt("pget","Provider '{0}' must define $get factory method.",e);return s[e+a]=t}function h(e,t){return function(){var n=f.invoke(t,this);if(j(n))throw Kt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function _(e,t,n){return g(e,{$get:!1!==n?h(e,t):t})}function b(e){$e(j(e)||V(e),"modulesToLoad","not an array");var t,n=[];return E(e,(function(e){if(!r.get(e)){r.set(e,!0);try{H(e)?(t=c(e),f.modules[e]=t,n=n.concat(b(t.requires)).concat(t._runBlocks),a(t._invokeQueue),a(t._configBlocks)):Q(e)||V(e)?n.push(l.invoke(e)):Ue(e,"module")}catch(t){throw V(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Kt("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function a(e){var t,n;for(t=0,n=e.length;t<n;t++){var a=e[t],o=l.get(a[0]);o[a[1]].apply(o,a[2])}}})),n}function y(e,r){function l(t,a){if(e.hasOwnProperty(t)){if(e[t]===n)throw Kt("cdep","Circular dependency found: {0}",t+" <- "+o.join(" <- "));return e[t]}try{return o.unshift(t),e[t]=n,e[t]=r(t,a),e[t]}catch(a){throw e[t]===n&&delete e[t],a}finally{o.shift()}}function c(e,n,a){for(var o=[],r=Zt.$$annotate(e,t,a),i=0,s=r.length;i<s;i++){var c=r[i];if("string"!=typeof c)throw Kt("itkn","Incorrect injection token! Expected service name as string, got {0}",c);o.push(n&&n.hasOwnProperty(c)?n[c]:l(c,a))}return o}return{invoke:function(e,t,n,a){"string"==typeof n&&(a=n,n=null);var o=c(e,n,a);return V(e)&&(e=e[e.length-1]),function(e){if(i||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return X(t)||(t=e.$$ngIsClass=/^class\b/.test(Jt(e))),t}(e)?(o.unshift(null),new(Function.prototype.bind.apply(e,o))):e.apply(t,o)},instantiate:function(e,t,n){var a=V(e)?e[e.length-1]:e,o=c(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(a,o))},get:l,annotate:Zt.$$annotate,has:function(t){return s.hasOwnProperty(t+a)||e.hasOwnProperty(t)}}}}function en(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,a,o){var r=n.document;function i(e){if(e){e.scrollIntoView();var t=function(){var e=l.yOffset;if(Q(e))e=e();else if(ae(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 a=e.getBoundingClientRect().top;n.scrollBy(0,a-t)}}else n.scrollTo(0,0)}function l(e){var t,n,o;(e=H(e)?e:B(e)?e.toString():a.hash())?(t=r.getElementById(e))?i(t):(n=r.getElementsByName(e),o=null,Array.prototype.some.call(n,(function(e){if("a"===oe(e))return o=e,!0})),(t=o)?i(t):"top"===e&&i(null)):i(null)}return t&&o.$watch((function(){return a.hash()}),(function(t,n){var a,r;t===n&&""===t||(a=function(){o.$evalAsync(l)},"complete"===(r=r||e).document.readyState?r.setTimeout(a):s(r).on("load",a))})),l}]}Zt.$$annotate=function(e,t,n){var a,o;if("function"==typeof e){if(!(a=e.$inject)){if(a=[],e.length){if(t)throw H(n)&&n||(n=e.name||function(e){var t=Xt(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Kt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);E(Xt(e)[1].split(Wt),(function(e){e.replace(Qt,(function(e,t,n){a.push(n)}))}))}e.$inject=a}}else V(e)?(Ue(e[o=e.length-1],"fn"),a=e.slice(0,o)):Ue(e,"fn",!0);return a};var tn=r("$animate"),nn="ng-animate";function an(e,t){return e||t?e?t?(V(e)&&(e=e.join(" ")),V(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function on(e){return q(e)?e:{}}var rn=function(){this.$get=N},sn=function(){var e=new Ht,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,a){return{enabled:N,on:N,off:N,pin:N,push:function(i,s,l,c){c&&c(),(l=l||{}).from&&i.css(l.from),l.to&&i.css(l.to),(l.addClass||l.removeClass)&&function(n,i,s){var l=e.get(n)||{},c=o(l,i,!0),u=o(l,s,!1);(c||u)&&(e.set(n,l),t.push(n),1===t.length&&a.$$postDigest(r))}(i,l.addClass,l.removeClass);var u=new n;return u.complete(),u}};function o(e,t,n){var a=!1;return t&&E(t=H(t)?t.split(" "):V(t)?t:[],(function(t){t&&(a=!0,e[t]=n)})),a}function r(){E(t,(function(t){var n=e.get(t);if(n){var a=function(e){H(e)&&(e=e.split(" "));var t=qe();return E(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),o="",r="";E(n,(function(e,t){e!==!!a[t]&&(e?o+=(o.length?" ":"")+t:r+=(r.length?" ":"")+t)})),E(t,(function(e){o&&Ct(e,o),r&&Et(e,r)})),e.delete(t)}})),t.length=0}}]},ln=["$provide",function(e){var t=this,n=null,a=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,a){if(n&&"."!==n.charAt(0))throw tn("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var o=n+"-animation";t.$$registeredAnimations[n.substr(1)]=o,e.factory(o,a)},this.customFilter=function(e){return 1===arguments.length&&(a=Q(e)?e:null),a},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){var t=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(t.test(n.toString()))throw n=null,tn("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',nn)}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var a=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}(n);!a||a.parentNode||a.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.cancel&&e.cancel()},enter:function(n,a,o,r){return a=a&&s(a),o=o&&s(o),t(n,a=a||o.parent(),o),e.push(n,"enter",on(r))},move:function(n,a,o,r){return a=a&&s(a),o=o&&s(o),t(n,a=a||o.parent(),o),e.push(n,"move",on(r))},leave:function(t,n){return e.push(t,"leave",on(n),(function(){t.remove()}))},addClass:function(t,n,a){return(a=on(a)).addClass=an(a.addclass,n),e.push(t,"addClass",a)},removeClass:function(t,n,a){return(a=on(a)).removeClass=an(a.removeClass,n),e.push(t,"removeClass",a)},setClass:function(t,n,a,o){return(o=on(o)).addClass=an(o.addClass,n),o.removeClass=an(o.removeClass,a),e.push(t,"setClass",o)},animate:function(t,n,a,o,r){return(r=on(r)).from=r.from?x(r.from,n):n,r.to=r.to?x(r.to,a):a,o=o||"ng-inline-animate",r.tempClasses=an(r.tempClasses,o),e.push(t,"animate",r)}}}]}],cn=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)}}}]},un=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,a,o){function r(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){a()?function(e){o(e,0,!1)}(e):t(e)},this._state=0}return r.chain=function(e,t){var n=0;!function a(){if(n===e.length)return void t(!0);e[n]((function(e){!1!==e?(n++,a()):t(!1)}))}()},r.all=function(e,t){var n=0,a=!0;function o(o){a=a&&o,++n===e.length&&t(a)}E(e,(function(e){e.done(o)}))},r.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:N,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&&(E(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},r}]},dn=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,a){var o=a||{};o.$$prepared||(o=se(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(t.css(o.from),o.from=null);var r,i=new n;return{start:s,end:s};function s(){return e((function(){!function(){o.addClass&&(t.addClass(o.addClass),o.addClass=null);o.removeClass&&(t.removeClass(o.removeClass),o.removeClass=null);o.to&&(t.css(o.to),o.to=null)}(),r||i.complete(),r=!0})),i}}}]};function fn(e,t,n,a,o){var r=this,i=e.location,l=e.history,c=e.setTimeout,u=e.clearTimeout,d={},f=o(n);r.isMock=!1,r.$$completeOutstandingRequest=f.completeTask,r.$$incOutstandingRequestCount=f.incTaskCount,r.notifyWhenNoOutstandingRequests=f.notifyWhenNoPendingTasks;var m,p,g=i.href,h=t.find("base"),_=null,b=a.history?function(){try{return l.state}catch(e){}}:N;w(),r.url=function(t,n,o){if(j(o)&&(o=null),i!==e.location&&(i=e.location),l!==e.history&&(l=e.history),t){var s=p===o;if(t=mo(t).href,g===t&&(!a.history||s))return r;var c=g&&da(g)===da(t);return g=t,p=o,!a.history||c&&s?(c||(_=t),n?i.replace(t):c?i.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):i.href=t,i.href!==t&&(_=t)):(l[n?"replaceState":"pushState"](o,"",t),w()),_&&(_=t),r}return function(e){return e.replace(/#$/,"")}(_||i.href)},r.state=function(){return m};var y=[],v=!1;function A(){_=null,C()}var S=null;function w(){ce(m=j(m=b())?null:m,S)&&(m=S),S=m,p=m}function C(){var e=p;w(),g===r.url()&&e===m||(g=r.url(),p=m,E(y,(function(e){e(r.url(),m)})))}r.onUrlChange=function(t){return v||(a.history&&s(e).on("popstate",A),s(e).on("hashchange",A),v=!0),y.push(t),t},r.$$applicationDestroyed=function(){s(e).off("hashchange popstate",A)},r.$$checkUrlChange=C,r.baseHref=function(){var e=h.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},r.defer=function(e,t,n){var a;return t=t||0,n=n||f.DEFAULT_TASK_TYPE,f.incTaskCount(n),a=c((function(){delete d[a],f.completeTask(e,n)}),t),d[a]=n,a},r.defer.cancel=function(e){if(d.hasOwnProperty(e)){var t=d[e];return delete d[e],u(e),f.completeTask(N,t),!0}return!1}}function mn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,a,o){return new fn(e,a,t,n,o)}]}function pn(){this.$get=function(){var e={};function t(t,n){if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,o=x({},n,{id:t}),i=qe(),s=n&&n.capacity||Number.MAX_VALUE,l=qe(),c=null,u=null;return e[t]={put:function(e,t){if(!j(t)){if(s<Number.MAX_VALUE)d(l[e]||(l[e]={key:e}));return e in i||a++,i[e]=t,a>s&&this.remove(u.key),t}},get:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;d(t)}return i[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;t===c&&(c=t.p),t===u&&(u=t.n),f(t.n,t.p),delete l[e]}e in i&&(delete i[e],a--)},removeAll:function(){i=qe(),a=0,l=qe(),c=u=null},destroy:function(){i=null,o=null,l=null,delete e[t]},info:function(){return x({},o,{size:a})}};function d(e){e!==c&&(u?u===e&&(u=e.n):u=e,f(e.n,e.p),f(e,c),(c=e).n=null)}function f(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return E(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function gn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var hn=r("$compile");var _n=new function(){};function bn(t,n){var a={},o="Directive",r=/^\s*directive:\s*([\w-]+)\s+(.*)$/,l=/(([\w-]+)(?::([^;]+))?;?)/,c=function(e){var t,n={},a=e.split(",");for(t=0;t<a.length;t++)n[a[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),u=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,d=/^(on[a-z]+|formaction)$/,p=qe();function g(e,t,n){var a=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,o=qe();return E(e,(function(e,r){if((e=e.trim())in p)o[r]=p[e];else{var i=e.match(a);if(!i)throw hn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");o[r]={mode:i[1][0],collection:"*"===i[2],optional:"?"===i[3],attrName:i[4]||r},i[4]&&(p[e]=o[r])}})),o}function h(e,t){var n={isolateScope:null,bindToController:null};if(q(e.scope)&&(!0===e.bindToController?(n.bindToController=g(e.scope,t,!0),n.isolateScope={}):n.isolateScope=g(e.scope,t,!1)),q(e.bindToController)&&(n.bindToController=g(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw hn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(n,r){return $e(n,"name"),je(n,"directive"),H(n)?(!function(e){var t=e.charAt(0);if(!t||t!==m(t))throw hn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw hn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),$e(r,"directiveFactory"),a.hasOwnProperty(n)||(a[n]=[],t.factory(n+o,["$injector","$exceptionHandler",function(e,t){var o=[];return E(a[n],(function(a,r){try{var i=e.invoke(a);Q(i)?i={compile:$(i)}:!i.compile&&i.link&&(i.compile=$(i.link)),i.priority=i.priority||0,i.index=r,i.name=i.name||n,i.require=function(e){var t=e.require||e.controller&&e.name;return!V(t)&&q(t)&&E(t,(function(e,n){var a=e.match(u);e.substring(a[0].length)||(t[n]=a[0]+n)})),t}(i),i.restrict=function(e,t){if(e&&(!H(e)||!/[EACM]/.test(e)))throw hn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(i.restrict,n),i.$$moduleName=a.$$moduleName,o.push(i)}catch(e){t(e)}})),o}])),a[n].push(r)):E(n,T(e)),this},this.component=function e(t,n){if(!H(t))return E(t,T(pe(this,e))),this;var a=n.controller||function(){};function o(e){function t(t){return Q(t)||V(t)?function(n,a){return e.invoke(t,this,{$element:n,$attrs:a})}:t}var o=n.template||n.templateUrl?n.template:"",r={controller:a,controllerAs:In(n.controller)||n.controllerAs||"$ctrl",template:t(o),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return E(n,(function(e,t){"$"===t.charAt(0)&&(r[t]=e)})),r}return E(n,(function(e,t){"$"===t.charAt(0)&&(o[t]=e,Q(a)&&(a[t]=e))})),o.$inject=["$injector"],this.directive(t,o)},this.aHrefSanitizationTrustedUrlList=function(e){return F(e)?(n.aHrefSanitizationTrustedUrlList(e),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return F(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var _=!0;this.debugInfoEnabled=function(e){return F(e)?(_=e,this):_};var y=!1;this.strictComponentBindingsEnabled=function(e){return F(e)?(y=e,this):y};var v=10;this.onChangesTtl=function(e){return arguments.length?(v=e,this):v};var A=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(A=e,this):A};var S=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(S=e,this):S};var w=qe();this.addPropertySecurityContext=function(e,t,n){var a=e.toLowerCase()+"|"+t.toLowerCase();if(a in w&&w[a]!==n)throw hn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,w[a],n);return w[a]=n,this},function(){function e(e,t){E(t,(function(t){w[t.toLowerCase()]=e}))}e(Qa.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(Qa.CSS,["*|style"]),e(Qa.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(Qa.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(Qa.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,p,g,C,T,I,k,D){var M,P=/^\w/,O=e.document.createElement("div"),$=A,U=S,F=v;function Y(){try{if(!--F)throw M=void 0,hn("infchng","{0} $onChanges() iterations reached. Aborting!\n",v);I.$apply((function(){for(var e=0,t=M.length;e<t;++e)try{M[e]()}catch(e){p(e)}M=void 0}))}finally{F++}}function B(e,t){if(!e)return e;if(!H(e))throw hn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",a=te(e),o=/\s/.test(a)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,r=a.split(o),i=Math.floor(r.length/2),s=0;s<i;s++){var l=2*s;n+=k.getTrustedMediaUrl(te(r[l])),n+=" "+te(r[l+1])}var c=te(r[2*s]).split(/\s/);return n+=k.getTrustedMediaUrl(te(c[0])),2===c.length&&(n+=" "+te(c[1])),n}function G(e,t){if(t){var n,a,o,r=Object.keys(t);for(n=0,a=r.length;n<a;n++)this[o=r[n]]=t[o]}else this.$attr={};this.$$element=e}function z(e,t){try{e.addClass(t)}catch(e){}}G.prototype={$normalize:Sn,$addClass:function(e){e&&e.length>0&&D.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&D.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=wn(e,t);n&&n.length&&D.addClass(this.$$element,n);var a=wn(t,e);a&&a.length&&D.removeClass(this.$$element,a)},$set:function(e,t,n,a){var o=Lt(this.$$element[0],e),r=Nt[e],i=e;o?(this.$$element.prop(e,t),a=o):r&&(this[r]=t,i=r),this[e]=t,a?this.$attr[e]=a:(a=this.$attr[e])||(this.$attr[e]=a=Re(e,"-")),"img"===oe(this.$$element)&&"srcset"===e&&(this[e]=t=B(t,"$set('srcset', value)")),!1!==n&&(null===t||j(t)?this.$$element.removeAttr(a):P.test(a)?o&&!1===t?this.$$element.removeAttr(a):this.$$element.attr(a,t):function(e,t,n){O.innerHTML="<span "+t+">";var a=O.firstChild.attributes,o=a[0];a.removeNamedItem(o.name),o.value=n,e.attributes.setNamedItem(o)}(this.$$element[0],a,t));var s=this.$$observers;s&&E(s[i],(function(e){try{e(t)}catch(e){p(e)}}))},$observe:function(e,t){var n=this,a=n.$$observers||(n.$$observers=qe()),o=a[e]||(a[e]=[]);return o.push(t),I.$evalAsync((function(){o.$$inter||!n.hasOwnProperty(e)||j(n[e])||t(n[e])})),function(){ie(o,t)}}};var K=n.startSymbol(),Z=n.endSymbol(),ee="{{"===K&&"}}"===Z?L:function(e){return e.replace(/\{\{/g,K).replace(/}}/g,Z)},ne=/^ng(Attr|Prop|On)([A-Z].*)$/,ae=/^(.+)Start$/;return re.$$addBindingInfo=_?function(e,t){var n=e.data("$binding")||[];V(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:N,re.$$addBindingClass=_?function(e){z(e,"ng-binding")}:N,re.$$addScopeInfo=_?function(e,t,n,a){var o=n?a?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(o,t)}:N,re.$$addScopeClass=_?function(e,t){z(e,t?"ng-isolate-scope":"ng-scope")}:N,re.$$createComment=function(t,n){var a="";return _&&(a=" "+(t||"")+": ",n&&(a+=n+" ")),e.document.createComment(a)},re;function re(e,t,n,a,o){e instanceof s||(e=s(e));var r=se(e,t,e,n,a,o);re.$$addScopeClass(e);var i=null;return function(t,n,a){if(!e)throw hn("multilink","This element has already been linked.");$e(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new());var l,c,u,d=(a=a||{}).parentBoundTranscludeFn,f=a.transcludeControllers,m=a.futureParentElement;if(d&&d.$$boundTransclude&&(d=d.$$boundTransclude),i||(c=(l=m)&&l[0],i=c&&"foreignobject"!==oe(c)&&b.call(c).match(/SVG/)?"svg":"html"),u="html"!==i?s(ke(i,s("<div></div>").append(e).html())):n?Pt.clone.call(e):e,f)for(var p in f)u.data("$"+p+"Controller",f[p].instance);return re.$$addScopeInfo(u,t),n&&n(u,t),r&&r(t,u,u,d),n||(e=r=null),u}}function se(e,t,n,a,o,r){for(var l,c,u,d,f,m,p,g=[],h=V(e)||e instanceof s,_=0;_<e.length;_++)l=new G,11===i&&ue(e,_,h),(u=(c=fe(e[_],[],l,0===_?a:void 0,o)).length?be(c,e[_],l,t,n,null,[],[],r):null)&&u.scope&&re.$$addScopeClass(l.$$element),f=u&&u.terminal||!(d=e[_].childNodes)||!d.length?null:se(d,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:t),(u||f)&&(g.push(_,u,f),m=!0,p=p||u),r=null;return m?function(e,n,a,o){var r,i,l,c,u,d,f,m,h;if(p){var _=n.length;for(h=new Array(_),u=0;u<g.length;u+=3)f=g[u],h[f]=n[f]}else h=n;for(u=0,d=g.length;u<d;)l=h[g[u++]],r=g[u++],i=g[u++],r?(r.scope?(c=e.$new(),re.$$addScopeInfo(s(l),c)):c=e,m=r.transcludeOnThisElement?de(e,r.transclude,o):!r.templateOnThisElement&&o?o:!o&&t?de(e,t):null,r(i,c,l,a,m)):i&&i(e,l.childNodes,void 0,o)}:null}function ue(e,t,n){var a,o=e[t],r=o.parentNode;if(o.nodeType===He)for(;(a=r?o.nextSibling:e[t+1])&&a.nodeType===He;)o.nodeValue=o.nodeValue+a.nodeValue,a.parentNode&&a.parentNode.removeChild(a),n&&a===e[t+1]&&e.splice(t+1,1)}function de(e,t,n){function a(a,o,r,i,s){return a||((a=e.$new(!1,s)).$$transcluded=!0),t(a,o,{parentBoundTranscludeFn:n,transcludeControllers:r,futureParentElement:i})}var o=a.$$slots=qe();for(var r in t.$$slots)t.$$slots[r]?o[r]=de(e,t.$$slots[r],n):o[r]=null;return a}function fe(e,t,a,o,i){var s,c,u,d=e.nodeType,f=a.$attr;switch(d){case 1:Ae(t,Sn(c=oe(e)),"E",o,i);for(var m,p,g,h,_,b=e.attributes,y=0,v=b&&b.length;y<v;y++){var A,S=!1,w=!1,E=!1,C=!1,T=!1;p=(m=b[y]).name,h=m.value,(_=(g=Sn(p.toLowerCase())).match(ne))?(E="Attr"===_[1],C="Prop"===_[1],T="On"===_[1],p=p.replace(vn,"").toLowerCase().substr(4+_[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(A=g.match(ae))&&we(A[1])&&(S=p,w=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),C||T?(a[g]=h,f[g]=m.name,C?xe(e,t,g,p):Me(t,g,p)):(f[g=Sn(p.toLowerCase())]=p,!E&&a.hasOwnProperty(g)||(a[g]=h,Lt(e,g)&&(a[g]=!0)),Pe(e,t,h,g,E),Ae(t,g,"A",o,i,S,w))}if("input"===c&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!U)break;if(q(u=e.className)&&(u=u.animVal),H(u)&&""!==u)for(;s=l.exec(u);)Ae(t,g=Sn(s[2]),"C",o,i)&&(a[g]=te(s[3])),u=u.substr(s.index+s[0].length);break;case He:!function(e,t){var a=n(t,!0);a&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&re.$$addBindingClass(t),function(e,t){var o=t.parent();n||re.$$addBindingClass(o),re.$$addBindingInfo(o,a.expressions),e.$watch(a,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case 8:if(!$)break;!function(e,t,n,a,o){try{var i=r.exec(e.nodeValue);if(i){var s=Sn(i[1]);Ae(t,s,"M",a,o)&&(n[s]=te(i[2]))}}catch(e){}}(e,t,a,o,i)}return t.sort(Te),t}function ge(e,t,n){var a=[],o=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw hn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1===e.nodeType&&(e.hasAttribute(t)&&o++,e.hasAttribute(n)&&o--),a.push(e),e=e.nextSibling}while(o>0);else a.push(e);return s(a)}function he(e,t,n){return function(a,o,r,i,s){return o=ge(o[0],t,n),e(a,o,r,i,s)}}function _e(e,t,n,a,o,r){var i;return e?re(t,n,a,o,r):function(){return i||(i=re(t,n,a,o,r),t=n=r=null),i.apply(this,arguments)}}function be(t,n,a,o,r,i,l,c,u){u=u||{};for(var d,f,m,g,h,_=-Number.MAX_VALUE,b=u.newScopeDirective,y=u.controllerDirectives,v=u.newIsolateScopeDirective,A=u.templateDirective,S=u.nonTlbTranscludeDirective,w=!1,C=!1,I=u.hasElementTranscludeDirective,k=a.$$element=s(n),D=i,M=o,P=!1,O=!1,R=0,N=t.length;R<N;R++){var L=(d=t[R]).$$start,$=d.$$end;if(L&&(k=ge(n,L,$)),m=void 0,_>d.priority)break;if((h=d.scope)&&(d.templateUrl||(q(h)?(Ie("new/isolated scope",v||b,d,k),v=d):Ie("new/isolated scope",v,d,k)),b=b||d),f=d.name,!P&&(d.replace&&(d.templateUrl||d.template)||d.transclude&&!d.$$tlb)){for(var U,F=R+1;U=t[F++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){O=!0;break}P=!0}if(!d.templateUrl&&d.controller&&(y=y||qe(),Ie("'"+f+"' controller",y[f],d,k),y[f]=d),h=d.transclude)if(w=!0,d.$$tlb||(Ie("transclusion",S,d,k),S=d),"element"===h)I=!0,_=d.priority,m=k,k=a.$$element=s(re.$$createComment(f,a[f])),n=k[0],Oe(r,me(m),n),M=_e(O,m,o,_,D&&D.name,{nonTlbTranscludeDirective:S});else{var Y=qe();if(q(h)){m=e.document.createDocumentFragment();var H=qe(),B=qe();for(var W in E(h,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,H[e]=t,Y[t]=null,B[t]=n})),E(k.contents(),(function(t){var n=H[Sn(oe(t))];n?(B[n]=!0,Y[n]=Y[n]||e.document.createDocumentFragment(),Y[n].appendChild(t)):m.appendChild(t)})),E(B,(function(e,t){if(!e)throw hn("reqslot","Required transclusion slot `{0}` was not filled.",t)})),Y)if(Y[W]){var z=s(Y[W].childNodes);Y[W]=_e(O,z,o)}m=s(m.childNodes)}else m=s(gt(n)).contents();k.empty(),(M=_e(O,m,o,void 0,void 0,{needsNewScope:d.$$isolateScope||d.$$newScope})).$$slots=Y}if(d.template)if(C=!0,Ie("template",A,d,k),A=d,h=Q(d.template)?d.template(k,a):d.template,h=ee(h),d.replace){if(D=d,m=ut(h)?[]:En(ke(d.templateNamespace,te(h))),n=m[0],1!==m.length||1!==n.nodeType)throw hn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f,"");Oe(r,k,n);var K={$attr:{}},X=fe(n,[],K),Z=t.splice(R+1,t.length-(R+1));(v||b)&&ve(X,v,b),t=t.concat(X).concat(Z),Ee(a,K),N=t.length}else k.html(h);if(d.templateUrl)C=!0,Ie("template",A,d,k),A=d,d.replace&&(D=d),ie=Ce(t.splice(R,t.length-R),k,a,r,w&&M,l,c,{controllerDirectives:y,newScopeDirective:b!==d&&b,newIsolateScopeDirective:v,templateDirective:A,nonTlbTranscludeDirective:S}),N=t.length;else if(d.compile)try{g=d.compile(k,a,M);var ne=d.$$originalDirective||d;Q(g)?ae(null,pe(ne,g),L,$):g&&ae(pe(ne,g.pre),pe(ne,g.post),L,$)}catch(e){p(e,Se(k))}d.terminal&&(ie.terminal=!0,_=Math.max(_,d.priority))}return ie.scope=b&&!0===b.scope,ie.transcludeOnThisElement=w,ie.templateOnThisElement=C,ie.transclude=M,u.hasElementTranscludeDirective=I,ie;function ae(e,t,n,a){e&&(n&&(e=he(e,n,a)),e.require=d.require,e.directiveName=f,(v===d||d.$$isolateScope)&&(e=Ne(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=he(t,n,a)),t.require=d.require,t.directiveName=f,(v===d||d.$$isolateScope)&&(t=Ne(t,{isolateScope:!0})),c.push(t))}function ie(e,t,o,r,i){var u,d,f,m,g,h,_,S,w,C;for(var k in n===o?(w=a,S=a.$$element):w=new G(S=s(o),a),g=t,v?m=t.$new(!0):b&&(g=t.$parent),i&&((_=function(e,t,n,a){var o;J(e)||(a=n,n=t,t=e,e=void 0);I&&(o=h);n||(n=I?S.parent():S);if(!a)return i(e,t,o,n,O);var r=i.$$slots[a];if(r)return r(e,t,o,n,O);if(j(r))throw hn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',a,Se(S))}).$$boundTransclude=i,_.isSlotFilled=function(e){return!!i.$$slots[e]}),y&&(h=function(e,t,n,a,o,r,i){var s=qe();for(var l in a){var c=a[l],u={$scope:c===i||c.$$isolateScope?o:r,$element:e,$attrs:t,$transclude:n},d=c.controller;"@"===d&&(d=t[c.name]);var f=T(d,u,!0,c.controllerAs);s[c.name]=f,e.data("$"+c.name+"Controller",f.instance)}return s}(S,w,_,y,m,t,v)),v&&(re.$$addScopeInfo(S,m,!0,!(A&&(A===v||A===v.$$originalDirective))),re.$$addScopeClass(S,!0),m.$$isolateBindings=v.$$isolateBindings,(C=je(t,w,m,m.$$isolateBindings,v)).removeWatches&&m.$on("$destroy",C.removeWatches)),h){var D=y[k],M=h[k],P=D.$$bindings.bindToController;M.instance=M(),S.data("$"+D.name+"Controller",M.instance),M.bindingInfo=je(g,w,M.instance,P,D)}for(E(y,(function(e,t){var n=e.require;e.bindToController&&!V(n)&&q(n)&&x(h[t].instance,ye(t,n,S,h))})),E(h,(function(e){var t=e.instance;if(Q(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){p(e)}if(Q(t.$onInit))try{t.$onInit()}catch(e){p(e)}Q(t.$doCheck)&&(g.$watch((function(){t.$doCheck()})),t.$doCheck()),Q(t.$onDestroy)&&g.$on("$destroy",(function(){t.$onDestroy()}))})),u=0,d=l.length;u<d;u++)Le(f=l[u],f.isolateScope?m:t,S,w,f.require&&ye(f.directiveName,f.require,S,h),_);var O=t;for(v&&(v.template||null===v.templateUrl)&&(O=m),e&&e(O,o.childNodes,void 0,i),u=c.length-1;u>=0;u--)Le(f=c[u],f.isolateScope?m:t,S,w,f.require&&ye(f.directiveName,f.require,S,h),_);E(h,(function(e){var t=e.instance;Q(t.$postLink)&&t.$postLink()}))}}function ye(e,t,n,a){var o;if(H(t)){var r=t.match(u),i=t.substring(r[0].length),s=r[1]||r[3],l="?"===r[2];if("^^"===s?n=n.parent():o=(o=a&&a[i])&&o.instance,!o){var c="$"+i+"Controller";o="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(c):n.data(c)}if(!o&&!l)throw hn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",i,e)}else if(V(t)){o=[];for(var d=0,f=t.length;d<f;d++)o[d]=ye(e,t[d],n,a)}else q(t)&&(o={},E(t,(function(t,r){o[r]=ye(e,t,n,a)})));return o||null}function ve(e,t,n){for(var a=0,o=e.length;a<o;a++)e[a]=R(e[a],{$$isolateScope:t,$$newScope:n})}function Ae(e,n,r,i,s,l,c){if(n===s)return null;var u=null;if(a.hasOwnProperty(n))for(var d,f=t.get(n+o),m=0,p=f.length;m<p;m++)if(d=f[m],(j(i)||i>d.priority)&&-1!==d.restrict.indexOf(r)){if(l&&(d=R(d,{$$start:l,$$end:c})),!d.$$bindings){var g=d.$$bindings=h(d,d.name);q(g.isolateScope)&&(d.$$isolateBindings=g.isolateScope)}e.push(d),u=d}return u}function we(e){if(a.hasOwnProperty(e))for(var n=t.get(e+o),r=0,i=n.length;r<i;r++)if(n[r].multiElement)return!0;return!1}function Ee(e,t){var n=t.$attr,a=e.$attr;E(e,(function(a,o){"$"!==o.charAt(0)&&(t[o]&&t[o]!==a&&(a.length?a+=("style"===o?";":" ")+t[o]:a=t[o]),e.$set(o,a,!0,n[o]))})),E(t,(function(t,o){e.hasOwnProperty(o)||"$"===o.charAt(0)||(e[o]=t,"class"!==o&&"style"!==o&&(a[o]=n[o]))}))}function Ce(e,t,n,a,o,r,i,l){var c,u,d=[],f=t[0],m=e.shift(),h=R(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),_=Q(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,b=m.templateNamespace;return t.empty(),g(_).then((function(p){var g,y,v,A;if(p=ee(p),m.replace){if(v=ut(p)?[]:En(ke(b,te(p))),g=v[0],1!==v.length||1!==g.nodeType)throw hn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,_);y={$attr:{}},Oe(a,t,g);var S=fe(g,[],y);q(m.scope)&&ve(S,!0),e=S.concat(e),Ee(n,y)}else g=f,t.html(p);for(e.unshift(h),c=be(e,g,n,o,t,m,r,i,l),E(a,(function(e,n){e===g&&(a[n]=t[0])})),u=se(t[0].childNodes,o);d.length;){var w=d.shift(),C=d.shift(),T=d.shift(),I=d.shift(),k=t[0];if(!w.$$destroyed){if(C!==f){var D=C.className;l.hasElementTranscludeDirective&&m.replace||(k=gt(g)),Oe(T,s(C),k),z(s(k),D)}A=c.transcludeOnThisElement?de(w,c.transclude,I):I,c(u,w,k,a,A)}}d=null})).catch((function(e){W(e)&&p(e)})),function(e,t,n,a,o){var r=o;t.$$destroyed||(d?d.push(t,n,a,r):(c.transcludeOnThisElement&&(r=de(t,c.transclude,o)),c(u,t,n,a,r)))}}function Te(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 Ie(e,t,n,a){function o(e){return e?" (module: "+e+")":""}if(t)throw hn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,o(t.$$moduleName),n.name,o(n.$$moduleName),e,Se(a))}function ke(t,n){switch(t=m(t||"html")){case"svg":case"math":var a=e.document.createElement("div");return a.innerHTML="<"+t+">"+n+"</"+t+">",a.childNodes[0].childNodes;default:return n}}function De(e){return B(k.valueOf(e),"ng-prop-srcset")}function xe(e,t,n,a){if(d.test(a))throw hn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var o=oe(e),r=function(e,t){var n=t.toLowerCase();return w[e+"|"+n]||w["*|"+n]}(o,a),i=L;"srcset"!==a||"img"!==o&&"source"!==o?r&&(i=k.getTrusted.bind(k,r)):i=De,t.push({priority:100,compile:function(e,t){var o=C(t[n]),r=C(t[n],(function(e){return k.valueOf(e)}));return{pre:function(e,t){function n(){var n=o(e);t[0][a]=i(n)}n(),e.$watch(r,n)}}}})}function Me(e,t,n){e.push(Ur(C,I,p,t,n,!1))}function Pe(e,t,a,o,r){var i=oe(e),s=function(e,t){return"srcdoc"===t?k.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?k.RESOURCE_URL:k.MEDIA_URL:"xlinkHref"===t?"image"===e?k.MEDIA_URL:"a"===e?k.URL:k.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?k.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:k.URL}(i,o),l=!r,u=c[o]||r,f=n(a,l,s,u);if(f){if("multiple"===o&&"select"===i)throw hn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Se(e));if(d.test(o))throw hn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,r){var i=r.$$observers||(r.$$observers=qe()),l=r[o];l!==a&&(f=l&&n(l,!0,s,u),a=l),f&&(r[o]=f(e),(i[o]||(i[o]=[])).$$inter=!0,(r.$$observers&&r.$$observers[o].$$scope||e).$watch(f,(function(e,t){"class"===o&&e!==t?r.$updateClass(e,t):r.$set(o,e)})))}}}})}}function Oe(t,n,a){var o,r,i=n[0],l=n.length,c=i.parentNode;if(t)for(o=0,r=t.length;o<r;o++)if(t[o]===i){t[o++]=a;for(var u=o,d=u+l-1,f=t.length;u<f;u++,d++)d<f?t[u]=t[d]:delete t[u];t.length-=l-1,t.context===i&&(t.context=a);break}c&&c.replaceChild(a,i);var m=e.document.createDocumentFragment();for(o=0;o<l;o++)m.appendChild(n[o]);for(s.hasData(i)&&(s.data(a,s.data(i)),s(i).off("$destroy")),s.cleanData(m.querySelectorAll("*")),o=1;o<l;o++)delete n[o];n[0]=a,n.length=1}function Ne(e,t){return x((function(){return e.apply(null,arguments)}),e,t)}function Le(e,t,n,a,o,r){try{e(t,n,a,o,r)}catch(e){p(e,Se(n))}}function Ue(e,t){if(y)throw hn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function je(e,t,a,o,r){var i,s=[],l={};function c(t,n,o){Q(a.$onChanges)&&!le(n,o)&&(M||(e.$$postDigest(Y),M=[]),i||(i={},M.push(u)),i[t]&&(o=i[t].previousValue),i[t]=new yn(o,n))}function u(){a.$onChanges(i),i=void 0}return E(o,(function(o,i){var u,d,m,p,g,h=o.attrName,_=o.optional;switch(o.mode){case"@":_||f.call(t,h)||(Ue(h,r.name),a[i]=t[h]=void 0),g=t.$observe(h,(function(e){if(H(e)||X(e)){var t=a[i];c(i,e,t),a[i]=e}})),t.$$observers[h].$$scope=e,H(u=t[h])?a[i]=n(u)(e):X(u)&&(a[i]=u),l[i]=new yn(_n,a[i]),s.push(g);break;case"=":if(!f.call(t,h)){if(_)break;Ue(h,r.name),t[h]=void 0}if(_&&!t[h])break;d=C(t[h]),p=d.literal?ce:le,m=d.assign||function(){throw u=a[i]=d(e),hn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[h],h,r.name)},u=a[i]=d(e);var b=function(t){return p(t,a[i])||(p(t,u)?m(e,t=a[i]):a[i]=t),u=t};b.$stateful=!0,g=o.collection?e.$watchCollection(t[h],b):e.$watch(C(t[h],b),null,d.literal),s.push(g);break;case"<":if(!f.call(t,h)){if(_)break;Ue(h,r.name),t[h]=void 0}if(_&&!t[h])break;var y=(d=C(t[h])).literal,v=a[i]=d(e);l[i]=new yn(_n,a[i]),g=e[o.collection?"$watchCollection":"$watch"](d,(function(e,t){if(t===e){if(t===v||y&&ce(t,v))return;t=v}c(i,e,t),a[i]=e})),s.push(g);break;case"&":if(_||f.call(t,h)||Ue(h,r.name),(d=t.hasOwnProperty(h)?C(t[h]):N)===N&&_)break;a[i]=function(t){return d(e,t)}}})),{initialChanges:l,removeWatches:s.length&&function(){for(var e=0,t=s.length;e<t;++e)s[e]()}}}}]}function yn(e,t){this.previousValue=e,this.currentValue=t}bn.$inject=["$provide","$$sanitizeUriProvider"],yn.prototype.isFirstChange=function(){return this.previousValue===_n};var vn=/^((?:x|data)[:\-_])/i,An=/[:\-_]+(.)/g;function Sn(e){return e.replace(vn,"").replace(An,(function(e,t,n){return n?t.toUpperCase():t}))}function wn(e,t){var n="",a=e.split(/\s+/),o=t.split(/\s+/);e:for(var r=0;r<a.length;r++){for(var i=a[r],s=0;s<o.length;s++)if(i===o[s])continue e;n+=(n.length>0?" ":"")+i}return n}function En(e){var t=(e=s(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===He&&""===n.nodeValue.trim())&&h.call(e,t,1)}return e}var Cn=r("$controller"),Tn=/^(\S+)(\s+as\s+([\w$]+))?$/;function In(e,t){if(t&&H(t))return t;if(H(e)){var n=Tn.exec(e);if(n)return n[3]}}function kn(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){je(t,"controller"),q(t)?x(e,t):e[t]=n},this.$get=["$injector",function(t){return function(a,o,r,i){var s,l,c,u;if(r=!0===r,i&&H(i)&&(u=i),H(a)){if(!(l=a.match(Tn)))throw Cn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",a);if(c=l[1],u=u||l[3],!(a=e.hasOwnProperty(c)?e[c]:function(e,t,n){if(!t)return e;for(var a,o=t.split("."),r=e,i=o.length,s=0;s<i;s++)a=o[s],e&&(e=(r=e)[a]);return!n&&Q(e)?pe(r,e):e}(o.$scope,c,!0)))throw Cn("ctrlreg","The controller with the name '{0}' is not registered.",c);Ue(a,c,!0)}if(r){var d=(V(a)?a[a.length-1]:a).prototype;return s=Object.create(d||null),u&&n(o,u,s,c||a.name),x((function(){var e=t.invoke(a,s,o,c);return e!==s&&(q(e)||Q(e))&&(s=e,u&&n(o,u,s,c||a.name)),s}),{instance:s,identifier:u})}return s=t.instantiate(a,o,c),u&&n(o,u,s,c||a.name),s};function n(e,t,n,a){if(!e||!q(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",a,t);e.$scope[t]=n}}]}function Dn(){this.$get=["$window",function(e){return s(e.document)}]}function xn(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],a=n&&n.hidden;function o(){a=n.hidden}return e.on("visibilitychange",o),t.$on("$destroy",(function(){e.off("visibilitychange",o)})),function(){return a}}]}function Mn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var Pn=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof s&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},On="application/json",Rn={"Content-Type":"application/json;charset=utf-8"},Nn=/^\[|^\{(?!\{)/,Ln={"[":/]$/,"{":/}$/},$n=/^\)]\}',?\n/,Un=r("$http");function jn(e){return q(e)?G(e)?e.toISOString():he(e):e}function Fn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return C(e,(function(e,n){null===e||j(e)||Q(e)||(V(e)?E(e,(function(e){t.push(Te(n)+"="+Te(jn(e)))})):t.push(Te(n)+"="+Te(jn(e))))})),t.join("&")}}}function qn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,a,o){V(n)?E(n,(function(t,n){e(t,a+"["+(q(t)?n:"")+"]")})):q(n)&&!G(n)?C(n,(function(t,n){e(t,a+(o?"":"[")+n+(o?"":"]"))})):(Q(n)&&(n=n()),t.push(Te(a)+"="+(null==n?"":Te(jn(n)))))}(e,"",!0),t.join("&")}}}function Yn(e,t){if(H(e)){var n=e.replace($n,"").trim();if(n){var a=t("Content-Type"),o=a&&0===a.indexOf(On);if(o||(i=(r=n).match(Nn))&&Ln[i[0]].test(r))try{e=_e(n)}catch(t){if(!o)return e;throw Un("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var r,i;return e}function Hn(e){var t,n=qe();function a(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return H(e)?E(e.split("\n"),(function(e){t=e.indexOf(":"),a(m(te(e.substr(0,t))),te(e.substr(t+1)))})):q(e)&&E(e,(function(e,t){a(m(t),te(e))})),n}function Bn(e){var t;return function(n){if(t||(t=Hn(e)),n){var a=t[m(n)];return void 0===a&&(a=null),a}return t}}function Gn(e,t,n,a){return Q(a)?a(e,t,n):(E(a,(function(a){e=a(e,t,n)})),e)}function Vn(e){return 200<=e&&e<300}function Wn(){var e=this.defaults={transformResponse:[Yn],transformRequest:[function(e){return!q(e)||(t=e,"[object File]"===b.call(t))||function(e){return"[object Blob]"===b.call(e)}(e)||function(e){return"[object FormData]"===b.call(e)}(e)?e:he(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Be(Rn),put:Be(Rn),patch:Be(Rn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return F(e)?(t=!!e,this):t};var n=this.interceptors=[],a=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,i,s,l,c,u,d,f){var g=l("$http");e.paramSerializer=H(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var h=[];E(n,(function(e){h.unshift(H(e)?d.get(e):d.invoke(e))}));var _,b=(_=[uo].concat(a.map(mo)),function(e){var t=mo(e);return _.some(po.bind(null,t))});function y(n){if(!q(n))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!H(f.valueOf(n.url)))throw r("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",n.url);var a=x({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);a.headers=function(t){var n,a,o,r=e.headers,i=x({},t.headers);r=x({},r.common,r[m(t.method)]);e:for(n in r){for(o in a=m(n),i)if(m(o)===a)continue e;i[n]=r[n]}return function(e,t){var n,a={};return E(e,(function(e,o){Q(e)?null!=(n=e(t))&&(a[o]=n):a[o]=e})),a}(i,Be(t))}(n),a.method=p(a.method),a.paramSerializer=H(a.paramSerializer)?d.get(a.paramSerializer):a.paramSerializer,o.$$incOutstandingRequestCount("$http");var l=[],_=[],v=u.resolve(a);return E(h,(function(e){(e.request||e.requestError)&&l.unshift(e.request,e.requestError),(e.response||e.responseError)&&_.push(e.response,e.responseError)})),v=A(v,l),v=(v=A(v=v.then((function(n){var a=n.headers,o=Gn(n.data,Bn(a),void 0,n.transformRequest);j(o)&&E(a,(function(e,t){"content-type"===m(t)&&delete a[t]}));j(n.withCredentials)&&!j(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,a){var o,r,l=u.defer(),d=l.promise,p=n.headers,h="jsonp"===m(n.method),_=n.url;h?_=f.getTrustedResourceUrl(_):H(_)||(_=f.valueOf(_));_=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(_,n.paramSerializer(n.params)),h&&(_=function(e,t){var n=e.split("?");if(n.length>2)throw Un("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return E(Ee(n[1]),(function(n,a){if("JSON_CALLBACK"===n)throw Un("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(a===t)throw Un("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(_,n.jsonpCallbackParam));y.pendingRequests.push(n),d.then(T,T),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(o=q(n.cache)?n.cache:q(e.cache)?e.cache:g);o&&(F(r=o.get(_))?Z(r)?r.then(C,C):V(r)?w(r[1],r[0],Be(r[2]),r[3],r[4]):w(r,200,{},"OK","complete"):o.put(_,d));if(j(r)){var v=b(n.url)?s()[n.xsrfCookieName||e.xsrfCookieName]:void 0;v&&(p[n.xsrfHeaderName||e.xsrfHeaderName]=v),i(n.method,_,a,S,p,n.timeout,n.withCredentials,n.responseType,A(n.eventHandlers),A(n.uploadEventHandlers))}return d;function A(e){if(e){var n={};return E(e,(function(e,a){n[a]=function(n){function a(){e(n)}t?c.$applyAsync(a):c.$$phase?a():c.$apply(a)}})),n}}function S(e,n,a,r,i){function s(){w(n,e,a,r,i)}o&&(Vn(e)?o.put(_,[e,n,Hn(a),r,i]):o.remove(_)),t?c.$applyAsync(s):(s(),c.$$phase||c.$apply())}function w(e,t,a,o,r){(Vn(t=t>=-1?t:0)?l.resolve:l.reject)({data:e,status:t,headers:Bn(a),config:n,statusText:o,xhrStatus:r})}function C(e){w(e.data,e.status,Be(e.headers()),e.statusText,e.xhrStatus)}function T(){var e=y.pendingRequests.indexOf(n);-1!==e&&y.pendingRequests.splice(e,1)}}(n,o).then(S,S)})),_)).finally((function(){o.$$completeOutstandingRequest(N,"$http")}));function A(e,t){for(var n=0,a=t.length;n<a;){var o=t[n++],r=t[n++];e=e.then(o,r)}return t.length=0,e}function S(e){var t=x({},e);return t.data=Gn(e.data,e.headers,e.status,a.transformResponse),Vn(e.status)?t:u.reject(t)}}return y.pendingRequests=[],function(e){E(arguments,(function(e){y[e]=function(t,n){return y(x({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){E(arguments,(function(e){y[e]=function(t,n,a){return y(x({},a||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),y.defaults=e,y}]}function Qn(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,a){return function(e,t,n,a,o){return function(o,i,s,l,c,u,d,f,p,g){if(i=i||e.url(),"jsonp"===m(o))var h=a.createCallback(i),_=r(i,h,(function(e,t){var n=200===e&&a.getResponse(h);T(l,e,n,"",t,"complete"),a.removeCallback(h)}));else{var b=t(o,i),y=!1;b.open(o,i,!0),E(c,(function(e,t){F(e)&&b.setRequestHeader(t,e)})),b.onload=function(){var e=b.statusText||"",t="response"in b?b.response:b.responseText,n=1223===b.status?204:b.status;0===n&&(n=t?200:"file"===mo(i).protocol?404:0),T(l,n,t,b.getAllResponseHeaders(),e,"complete")};var v=function(){T(l,-1,null,null,"","error")},A=function(){T(l,-1,null,null,"",y?"timeout":"abort")},S=function(){T(l,-1,null,null,"","timeout")};if(b.onerror=v,b.ontimeout=S,b.onabort=A,E(p,(function(e,t){b.addEventListener(t,e)})),E(g,(function(e,t){b.upload.addEventListener(t,e)})),d&&(b.withCredentials=!0),f)try{b.responseType=f}catch(e){if("json"!==f)throw e}b.send(j(s)?null:s)}if(u>0)var w=n((function(){C("timeout")}),u);else Z(u)&&u.then((function(){C(F(u.$$timeoutId)?"timeout":"abort")}));function C(e){y="timeout"===e,_&&_(),b&&b.abort()}function T(e,t,a,o,r,i){F(w)&&n.cancel(w),_=b=null,e(t,a,o,r,i)}};function r(e,t,n){e=e.replace("JSON_CALLBACK",t);var r=o.createElement("script"),i=null;return r.type="text/javascript",r.src=e,r.async=!0,i=function(e){r.removeEventListener("load",i),r.removeEventListener("error",i),o.body.removeChild(r),r=null;var s=-1,l="unknown";e&&("load"!==e.type||a.wasCalled(t)||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},r.addEventListener("load",i),r.addEventListener("error",i),o.body.appendChild(r),i}}(e,a,e.defer,t,n[0])}]}var Kn=A.$interpolateMinErr=r("$interpolate");function Jn(){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,a,o){var r=e.length,i=t.length,s=new RegExp(e.replace(/./g,c),"g"),l=new RegExp(t.replace(/./g,c),"g");function c(e){return"\\\\\\"+e}function u(n){return n.replace(s,e).replace(l,t)}function d(e,t,n,a){var o=e.$watch((function(e){return o(),a(e)}),t,n);return o}function f(s,l,c,f){var m=c===o.URL||c===o.MEDIA_URL;if(!s.length||-1===s.indexOf(e)){if(l)return;var p=u(s);m&&(p=o.getTrusted(c,p));var g=$(p);return g.exp=s,g.expressions=[],g.$$watchDelegate=d,g}f=!!f;for(var h,_,b,y,v,A=0,S=[],w=s.length,E=[],C=[];A<w;){if(-1===(h=s.indexOf(e,A))||-1===(_=s.indexOf(t,h+r))){A!==w&&E.push(u(s.substring(A)));break}A!==h&&E.push(u(s.substring(A,h))),y=s.substring(h+r,_),S.push(y),A=_+i,C.push(E.length),E.push("")}v=1===E.length&&1===C.length;var T=m&&v?void 0:function(e){try{return e=c&&!m?o.getTrusted(c,e):o.valueOf(e),f&&!F(e)?e:Ye(e)}catch(e){a(Kn.interr(s,e))}};if(b=S.map((function(e){return n(e,T)})),!l||S.length){var I=function(e){for(var t=0,n=S.length;t<n;t++){if(f&&j(e[t]))return;E[C[t]]=e[t]}return m?o.getTrusted(c,v?E[0]:E.join("")):(c&&E.length>1&&Kn.throwNoconcat(s),E.join(""))};return x((function(e){var t=0,n=S.length,o=new Array(n);try{for(;t<n;t++)o[t]=b[t](e);return I(o)}catch(e){a(Kn.interr(s,e))}}),{exp:s,expressions:S,$$watchDelegate:function(e,t){var n;return e.$watchGroup(b,(function(a,o){var r=I(a);t.call(this,r,a!==o?n:r,e),n=r}))}})}}return f.startSymbol=function(){return e},f.endSymbol=function(){return t},f}]}Kn.throwNoconcat=function(e){throw Kn("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)},Kn.interr=function(e,t){return Kn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Xn=r("$interval");function Zn(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},a=function(e){t.clearInterval(e),delete n[e]},o=e((function(e,a,o){var r=t.setInterval(e,a);return n[r]=o,r}),a);return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Xn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,o=n[t];return Ha(o.promise),o.reject("canceled"),a(t),!0},o}]}function ea(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,a){return function(o,r){return function(i,s,l,c){var u=arguments.length>4,d=u?me(arguments,4):[],f=0,m=F(c)&&!c,p=(m?n:t).defer(),g=p.promise;function h(){u?i.apply(null,d):i(f)}function _(){m?e.defer(h):a.$evalAsync(h),p.notify(f++),l>0&&f>=l&&(p.resolve(f),r(g.$$intervalId)),m||a.$apply()}return l=F(l)?l:0,g.$$intervalId=o(_,s,p,m),g}}}]}var ta=function(){this.$get=function(){var e=A.callbacks,t={};return{createCallback:function(n){var a="_"+(e.$$counter++).toString(36),o="angular.callbacks."+a,r=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(a);return t[o]=e[a]=r,o},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){var a=t[n];delete e[a.id],delete t[n]}}}},na=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,aa={http:80,https:443,ftp:21},oa=r("$location");function ra(e,t,n){var a,o=(a=[],E(t,(function(e,t){V(e)?E(e,(function(e){a.push(Te(t,!0)+(!0===e?"":"="+Te(e,!0)))})):a.push(Te(t,!0)+(!0===e?"":"="+Te(e,!0)))})),a.length?a.join("&"):""),r=n?"#"+Ce(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Ce(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(o?"?"+o:"")+r}function ia(e,t){var n=mo(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=P(n.port)||aa[n.protocol]||null}var sa=/^\s*[\\/]{2,}/;function la(e,t,n){if(sa.test(e))throw oa("badpath",'Invalid url "{0}".',e);var a="/"!==e.charAt(0);a&&(e="/"+e);var o=mo(e),r=a&&"/"===o.pathname.charAt(0)?o.pathname.substring(1):o.pathname;t.$$path=function(e,t){for(var n=e.split("/"),a=n.length;a--;)n[a]=decodeURIComponent(n[a]),t&&(n[a]=n[a].replace(/\//g,"%2F"));return n.join("/")}(r,n),t.$$search=Ee(o.search),t.$$hash=decodeURIComponent(o.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ca(e,t){return e.slice(0,t.length)===t}function ua(e,t){if(ca(t,e))return t.substr(e.length)}function da(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function fa(e,t,n){this.$$html5=!0,n=n||"",ia(e,this),this.$$parse=function(e){var n=ua(t,e);if(!H(n))throw oa("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);la(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(a,o){return o&&"#"===o[0]?(this.hash(o.slice(1)),!0):(F(r=ua(e,a))?(i=r,s=n&&F(r=ua(n,r))?t+(ua("/",r)||r):e+i):F(r=ua(t,a))?s=t+r:t===a+"/"&&(s=t),s&&this.$$parse(s),!!s);var r,i,s}}function ma(e,t,n){ia(e,this),this.$$parse=function(a){var o,r=ua(e,a)||ua(t,a);j(r)||"#"!==r.charAt(0)?this.$$html5?o=r:(o="",j(r)&&(e=a,this.replace())):j(o=ua(n,r))&&(o=r),la(o,this,!1),this.$$path=function(e,t,n){var a,o=/^\/[A-Z]:(\/.*)/;ca(t,n)&&(t=t.replace(n,""));if(o.exec(t))return e;return(a=o.exec(e))?a[1]:e}(this.$$path,o,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return da(e)===da(t)&&(this.$$parse(t),!0)}}function pa(e,t,n){this.$$html5=!0,ma.apply(this,arguments),this.$$parseLinkUrl=function(a,o){return o&&"#"===o[0]?(this.hash(o.slice(1)),!0):(e===da(a)?r=a:(i=ua(t,a))?r=e+n+i:t===a+"/"&&(r=t),r&&this.$$parse(r),!!r);var r,i},this.$$normalizeUrl=function(t){return e+n+t}}var ga={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=ra(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:ha("$$absUrl"),url:function(e){if(j(e))return this.$$url;var t=na.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:ha("$$protocol"),host:ha("$$host"),port:ha("$$port"),path:_a("$$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(H(e)||B(e))e=e.toString(),this.$$search=Ee(e);else{if(!q(e))throw oa("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");E(e=se(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:j(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:_a("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function ha(e){return function(){return this[e]}}function _a(e,t){return function(n){return j(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function ba(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return F(t)?(e=t,this):e},this.html5Mode=function(e){return X(e)?(t.enabled=e,this):q(e)?(X(e.enabled)&&(t.enabled=e.enabled),X(e.requireBase)&&(t.requireBase=e.requireBase),(X(e.rewriteLinks)||H(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,a,o,r,i){var l,c,u,d,f=a.baseHref(),m=a.url();if(t.enabled){if(!f&&t.requireBase)throw oa("nobase","$location in HTML5 mode requires a <base> tag to be present!");u=(d=m).substring(0,d.indexOf("/",d.indexOf("//")+2))+(f||"/"),c=o.history?fa:pa}else u=da(m),c=ma;var p=function(e){return e.substr(0,da(e).lastIndexOf("/")+1)}(u);(l=new c(u,p,"#"+e)).$$parseLinkUrl(m,m),l.$$state=a.state();var g=/^\s*(javascript|mailto):/i;function h(e,t,n){var o=l.url(),r=l.$$state;try{a.url(e,t,n),l.$$state=a.state()}catch(e){throw l.url(o),l.$$state=r,e}}r.on("click",(function(e){var o=t.rewriteLinks;if(o&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var i=s(e.target);"a"!==oe(i[0]);)if(i[0]===r[0]||!(i=i.parent())[0])return;if(!H(o)||!j(i.attr(o))){var c=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");q(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=mo(c.animVal).href),g.test(c)||!c||i.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(c,u)&&(e.preventDefault(),l.absUrl()!==a.url()&&n.$apply())}}})),l.absUrl()!==m&&a.url(l.absUrl(),!0);var _=!0;return a.onUrlChange((function(e,t){ca(e,p)?(n.$evalAsync((function(){var a,o=l.absUrl(),r=l.$$state;l.$$parse(e),l.$$state=t,a=n.$broadcast("$locationChangeStart",e,o,t,r).defaultPrevented,l.absUrl()===e&&(a?(l.$$parse(o),l.$$state=r,h(o,!1,r)):(_=!1,b(o,r)))})),n.$$phase||n.$digest()):i.location.href=e})),n.$watch((function(){if(_||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=a.url(),t=l.absUrl(),r=a.state(),i=l.$$replace,s=!((c=e)===(u=t)||mo(c).href===mo(u).href)||l.$$html5&&o.history&&r!==l.$$state;(_||s)&&(_=!1,n.$evalAsync((function(){var t=l.absUrl(),a=n.$broadcast("$locationChangeStart",t,e,l.$$state,r).defaultPrevented;l.absUrl()===t&&(a?(l.$$parse(e),l.$$state=r):(s&&h(t,i,r===l.$$state?null:l.$$state),b(e,r)))})))}var c,u;l.$$replace=!1})),l;function b(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}}]}function ya(){var e=!0,t=this;this.debugEnabled=function(t){return F(t)?(e=t,this):e},this.$get=["$window",function(n){var a,o=i||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:(a=s("debug"),function(){e&&a.apply(t,arguments)})};function r(e){return W(e)&&(e.stack&&o?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}function s(e){var t=n.console||{},a=t[e]||t.log||N;return function(){var e=[];return E(arguments,(function(t){e.push(r(t))})),Function.prototype.apply.call(a,t,e)}}}]}E([pa,ma,fa],(function(e){e.prototype=Object.create(ga),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==fa||!this.$$html5)throw oa("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=j(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var va=r("$parse"),Aa={}.constructor.prototype.valueOf;function Sa(e){return e+""}var wa=qe();E("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){wa[e]=!0}));var Ea={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Ca=function(e){this.options=e};Ca.prototype={constructor:Ca,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(),a=n+this.peek(2),o=wa[t],r=wa[n],i=wa[a];if(o||r||i){var s=i?a:r?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),a=t.charCodeAt(0);return n>=55296&&n<=56319&&a>=56320&&a<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var a=F(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw va("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,a,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=m(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var a=this.peek();if("e"===n&&this.isExpOperator(a))e+=n;else if(this.isExpOperator(n)&&a&&this.isNumber(a)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||a&&this.isNumber(a)||"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="",a=e,o=!1;this.index<this.text.length;){var r=this.text.charAt(this.index);if(a+=r,o){if("u"===r){var i=this.text.substring(this.index+1,this.index+5);i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,n+=String.fromCharCode(parseInt(i,16))}else{n+=Ea[r]||r}o=!1}else if("\\"===r)o=!0;else{if(r===e)return this.index++,void this.tokens.push({index:t,text:a,constant:!0,value:n});n+=r}this.index++}this.throwError("Unterminated quote",t)}};var Ta=function(e,t){this.lexer=e,this.options=t};function Ia(e,t){return void 0!==e?e:t}function ka(e,t){return void 0===e?t:void 0===t?e:e+t}Ta.Program="Program",Ta.ExpressionStatement="ExpressionStatement",Ta.AssignmentExpression="AssignmentExpression",Ta.ConditionalExpression="ConditionalExpression",Ta.LogicalExpression="LogicalExpression",Ta.BinaryExpression="BinaryExpression",Ta.UnaryExpression="UnaryExpression",Ta.CallExpression="CallExpression",Ta.MemberExpression="MemberExpression",Ta.Identifier="Identifier",Ta.Literal="Literal",Ta.ArrayExpression="ArrayExpression",Ta.Property="Property",Ta.ObjectExpression="ObjectExpression",Ta.ThisExpression="ThisExpression",Ta.LocalsExpression="LocalsExpression",Ta.NGValueParameter="NGValueParameter",Ta.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:Ta.Program,body:e}},expressionStatement:function(){return{type:Ta.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(!Ma(e))throw va("lval","Trying to assign a value to a non l-value");e={type:Ta.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:Ta.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ta.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ta.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ta.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ta.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=se(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Ta.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:Ta.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ta.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ta.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Ta.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:Ta.Identifier,name:e.text}},constant:function(){return{type:Ta.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:Ta.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ta.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:Ta.ObjectExpression,properties:t}},throwError:function(e,t){throw va("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 va("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 va("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,a){return this.peekAhead(0,e,t,n,a)},peekAhead:function(e,t,n,a,o){if(this.tokens.length>e){var r=this.tokens[e],i=r.text;if(i===t||i===n||i===a||i===o||!t&&!n&&!a&&!o)return r}return!1},expect:function(e,t,n,a){var o=this.peek(e,t,n,a);return!!o&&(this.tokens.shift(),o)},selfReferential:{this:{type:Ta.ThisExpression},$locals:{type:Ta.LocalsExpression}}};function Da(e,t,n){var a,o,r,i=e.isPure=function(e,t){switch(e.type){case Ta.MemberExpression:if(e.computed)return!1;break;case Ta.UnaryExpression:return 1;case Ta.BinaryExpression:return"+"!==e.operator&&1;case Ta.CallExpression:return!1}return void 0===t?2:t}(e,n);switch(e.type){case Ta.Program:a=!0,E(e.body,(function(e){Da(e.expression,t,i),a=a&&e.expression.constant})),e.constant=a;break;case Ta.Literal:e.constant=!0,e.toWatch=[];break;case Ta.UnaryExpression:Da(e.argument,t,i),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ta.BinaryExpression:Da(e.left,t,i),Da(e.right,t,i),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ta.LogicalExpression:Da(e.left,t,i),Da(e.right,t,i),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ta.ConditionalExpression:Da(e.test,t,i),Da(e.alternate,t,i),Da(e.consequent,t,i),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ta.Identifier:e.constant=!1,e.toWatch=[e];break;case Ta.MemberExpression:Da(e.object,t,i),e.computed&&Da(e.property,t,i),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Ta.CallExpression:r=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),a=r,o=[],E(e.arguments,(function(e){Da(e,t,i),a=a&&e.constant,o.push.apply(o,e.toWatch)})),e.constant=a,e.toWatch=r?o:[e];break;case Ta.AssignmentExpression:Da(e.left,t,i),Da(e.right,t,i),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ta.ArrayExpression:a=!0,o=[],E(e.elements,(function(e){Da(e,t,i),a=a&&e.constant,o.push.apply(o,e.toWatch)})),e.constant=a,e.toWatch=o;break;case Ta.ObjectExpression:a=!0,o=[],E(e.properties,(function(e){Da(e.value,t,i),a=a&&e.value.constant,o.push.apply(o,e.value.toWatch),e.computed&&(Da(e.key,t,!1),a=a&&e.key.constant,o.push.apply(o,e.key.toWatch))})),e.constant=a,e.toWatch=o;break;case Ta.ThisExpression:case Ta.LocalsExpression:e.constant=!1,e.toWatch=[]}}function xa(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function Ma(e){return e.type===Ta.Identifier||e.type===Ta.MemberExpression}function Pa(e){if(1===e.body.length&&Ma(e.body[0].expression))return{type:Ta.AssignmentExpression,left:e.body[0].expression,right:{type:Ta.NGValueParameter},operator:"="}}function Oa(e){this.$filter=e}function Ra(e){this.$filter=e}function Na(e,t,n){this.ast=new Ta(e,n),this.astCompiler=n.csp?new Ra(t):new Oa(t)}function La(e){return Q(e.valueOf)?e.valueOf():Aa.call(e)}function $a(){var e,t,n=qe(),a={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){a[e]=t},this.setIdentifierFns=function(n,a){return e=n,t=a,this},this.$get=["$filter",function(o){var r={csp:ue().noUnsafeEval,literals:se(a),isIdentifierStart:Q(e)&&e,isIdentifierContinue:Q(t)&&t};return i.$$getAst=function(e){return new Na(new Ca(r),o,r).getAst(e).ast},i;function i(e,t){var a,i;switch(typeof e){case"string":if(e=e.trim(),!(a=n[i=e]))a=new Na(new Ca(r),o,r).parse(e),n[i]=f(a);return m(a,t);case"function":return m(e,t);default:return m(N,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=La(e))&&!n)&&(e===t||e!=e&&t!=t)}function l(e,t,n,a,o){var r,i=a.inputs;if(1===i.length){var l=s;return i=i[0],e.$watch((function(e){var t=i(e);return s(t,l,i.isPure)||(r=a(e,void 0,void 0,[t]),l=t&&La(t)),r}),t,n,o)}for(var c=[],u=[],d=0,f=i.length;d<f;d++)c[d]=s,u[d]=null;return e.$watch((function(e){for(var t=!1,n=0,o=i.length;n<o;n++){var l=i[n](e);(t||(t=!s(l,c[n],i[n].isPure)))&&(u[n]=l,c[n]=l&&La(l))}return t&&(r=a(e,void 0,void 0,u)),r}),t,n,o)}function c(e,t,n,a,o){var r,i,s=a.literal?u:F,l=a.$$intercepted||a,c=a.$$interceptor||L,d=a.inputs&&!l.inputs;return p.literal=a.literal,p.constant=a.constant,p.inputs=a.inputs,f(p),r=e.$watch(p,t,n,o);function m(){s(i)&&r()}function p(e,t,n,a){return i=d&&a?a[0]:l(e,t,n,a),s(i)&&e.$$postDigest(m),c(i)}}function u(e){var t=!0;return E(e,(function(e){F(e)||(t=!1)})),t}function d(e,t,n,a){var o=e.$watch((function(e){return o(),a(e)}),t,n);return o}function f(e){return e.constant?e.$$watchDelegate=d:e.oneTime?e.$$watchDelegate=c:e.inputs&&(e.$$watchDelegate=l),e}function m(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,a=function(a,o,r,i){var s=n&&i?i[0]:e(a,o,r,i);return t(s)};return a.$$intercepted=e,a.$$interceptor=t,a.literal=e.literal,a.oneTime=e.oneTime,a.constant=e.constant,t.$stateful||(n=!e.inputs,a.inputs=e.inputs?e.inputs:[e],t.$$pure||(a.inputs=a.inputs.map((function(e){return 2===e.isPure?function(t){return e(t)}:e})))),f(a)}}]}function Ua(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Fa((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return F(t)?(e=t,this):e}}function ja(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Fa((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return F(t)?(e=t,this):e}}function Fa(e,t,n){var a=r("$q",TypeError),o=0,i=[];function s(){return new l}function l(){var e=this.promise=new c;this.resolve=function(t){f(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){h(e,t)}}function c(){this.$$state={status:0}}function u(){for(;!o&&i.length;){var e=i.shift();if(!qa(e)){Ya(e);var n="Possibly unhandled rejection: "+Ge(e.value);W(e.value)?t(e.value,n):t(n)}}}function d(a){!n||a.pending||2!==a.status||qa(a)||(0===o&&0===i.length&&e(u),i.push(a)),!a.processScheduled&&a.pending&&(a.processScheduled=!0,++o,e((function(){!function(a){var r,i,s;s=a.pending,a.processScheduled=!1,a.pending=void 0;try{for(var l=0,c=s.length;l<c;++l){Ya(a),i=s[l][0],r=s[l][a.status];try{Q(r)?f(i,r(a.value)):1===a.status?f(i,a.value):p(i,a.value)}catch(e){p(i,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--o,n&&0===o&&e(u)}}(a)})))}function f(e,t){e.$$state.status||(t===e?g(e,a("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):m(e,t))}function m(e,t){var n,a=!1;try{(q(t)||Q(t))&&(n=t.then),Q(n)?(e.$$state.status=-1,n.call(t,(function(t){if(a)return;a=!0,m(e,t)}),o,(function(t){h(e,t)}))):(e.$$state.value=t,e.$$state.status=1,d(e.$$state))}catch(e){o(e)}function o(t){a||(a=!0,g(e,t))}}function p(e,t){e.$$state.status||g(e,t)}function g(e,t){e.$$state.value=t,e.$$state.status=2,d(e.$$state)}function h(n,a){var o=n.$$state.pending;n.$$state.status<=0&&o&&o.length&&e((function(){for(var e,n,r=0,i=o.length;r<i;r++){n=o[r][0],e=o[r][3];try{h(n,Q(e)?e(a):a)}catch(e){t(e)}}}))}function _(e){var t=new c;return p(t,e),t}function b(e,t,n){var a=null;try{Q(n)&&(a=n())}catch(e){return _(e)}return Z(a)?a.then((function(){return t(e)}),_):t(e)}function y(e,t,n,a){var o=new c;return f(o,e),o.then(t,n,a)}x(c.prototype,{then:function(e,t,n){if(j(e)&&j(t)&&j(n))return this;var a=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([a,e,t,n]),this.$$state.status>0&&d(this.$$state),a},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return b(t,v,e)}),(function(t){return b(t,_,e)}),t)}});var v=y;function A(e){if(!Q(e))throw a("norslvr","Expected resolverFn, got '{0}'",e);var t=new c;return e((function(e){f(t,e)}),(function(e){p(t,e)})),t}return A.prototype=c.prototype,A.defer=s,A.reject=_,A.when=y,A.resolve=v,A.all=function(e){var t=new c,n=0,a=V(e)?[]:{};return E(e,(function(e,o){n++,y(e).then((function(e){a[o]=e,--n||f(t,a)}),(function(e){p(t,e)}))})),0===n&&f(t,a),t},A.race=function(e){var t=s();return E(e,(function(e){y(e).then(t.resolve,t.reject)})),t.promise},A}function qa(e){return!!e.pur}function Ya(e){e.pur=!0}function Ha(e){e.$$state&&Ya(e.$$state)}function Ba(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,a=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,o=!!n,r=o?function(e){var t=n(e);return function(){a(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return r.supported=o,r}]}function Ga(){var e=10,t=r("$rootScope"),n=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(o,r,s){function l(e){e.currentScope.$$destroyed=!0}function c(e){9===i&&(e.$$childHead&&c(e.$$childHead),e.$$nextSibling&&c(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function u(){this.$id=I(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}u.prototype={constructor:u,$new:function(e,t){var n;return t=t||this,e?(n=new u).$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=I(),this.$$ChildScope=null,this.$$suspended=!1}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",l),n},$watch:function(e,t,a,o){var i=r(e),s=Q(t)?t:N;if(i.$$watchDelegate)return i.$$watchDelegate(this,s,a,i,e);var l=this,c=l.$$watchers,u={fn:s,last:A,get:i,exp:o||e,eq:!!a};return n=null,c||((c=l.$$watchers=[]).$$digestWatchIndex=-1),c.unshift(u),c.$$digestWatchIndex++,y(this,1),function(){var e=ie(c,u);e>=0&&(y(l,-1),e<c.$$digestWatchIndex&&c.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),a=new Array(e.length),o=[],r=this,i=!1,s=!0;if(!e.length){var l=!0;return r.$evalAsync((function(){l&&t(a,a,r)})),function(){l=!1}}if(1===e.length)return this.$watch(e[0],(function(e,o,r){a[0]=e,n[0]=o,t(a,e===o?a:n,r)}));function c(){i=!1;try{s?(s=!1,t(a,a,r)):t(a,n,r)}finally{for(var o=0;o<e.length;o++)n[o]=a[o]}}return E(e,(function(e,t){var n=r.$watch(e,(function(e){a[t]=e,i||(i=!0,r.$evalAsync(c))}));o.push(n)})),function(){for(;o.length;)o.shift()()}},$watchCollection:function(e,t){g.$$pure=r(e).literal,g.$stateful=!g.$$pure;var n,a,o,i=this,s=t.length>1,l=0,c=r(e,g),u=[],d={},m=!0,p=0;function g(e){var t,o,r,i;if(!j(n=e)){if(q(n))if(w(n)){a!==u&&(p=(a=u).length=0,l++),t=n.length,p!==t&&(l++,a.length=p=t);for(var s=0;s<t;s++)i=a[s],r=n[s],i!=i&&r!=r||i===r||(l++,a[s]=r)}else{for(o in a!==d&&(a=d={},p=0,l++),t=0,n)f.call(n,o)&&(t++,r=n[o],i=a[o],o in a?i!=i&&r!=r||i===r||(l++,a[o]=r):(p++,a[o]=r,l++));if(p>t)for(o in l++,a)f.call(n,o)||(p--,delete a[o])}else a!==n&&(a=n,l++);return l}}return this.$watch(c,(function(){if(m?(m=!1,t(n,n,i)):t(n,o,i),s)if(q(n))if(w(n)){o=new Array(n.length);for(var e=0;e<n.length;e++)o[e]=n[e]}else for(var a in o={},n)f.call(n,a)&&(o[a]=n[a]);else o=n}))},$digest:function(){var r,i,l,c,u,f,g,y,v,w=e,E=m.length?d:this,C=[];_("$digest"),s.$$checkUrlChange(),this===d&&null!==a&&(s.defer.cancel(a),S()),n=null;do{u=!1,g=E;for(var T=0;T<m.length;T++){try{(0,(v=m[T]).fn)(v.scope,v.locals)}catch(e){o(e)}n=null}m.length=0;e:do{if(c=!g.$$suspended&&g.$$watchers)for(c.$$digestWatchIndex=c.length;c.$$digestWatchIndex--;)try{if(r=c[c.$$digestWatchIndex])if((i=(0,r.get)(g))===(l=r.last)||(r.eq?ce(i,l):O(i)&&O(l))){if(r===n){u=!1;break e}}else u=!0,n=r,r.last=r.eq?se(i,null):i,(0,r.fn)(i,l===A?i:l,g),w<5&&(C[y=4-w]||(C[y]=[]),C[y].push({msg:Q(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:i,oldVal:l}))}catch(e){o(e)}if(!(f=!g.$$suspended&&g.$$watchersCount&&g.$$childHead||g!==E&&g.$$nextSibling))for(;g!==E&&!(f=g.$$nextSibling);)g=g.$parent}while(g=f);if((u||m.length)&&!w--)throw b(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,C)}while(u||m.length);for(b();h<p.length;)try{p[h++]()}catch(e){o(e)}p.length=h=0,s.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===d&&s.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)v(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=N,this.$on=this.$watch=this.$watchGroup=function(){return N},this.$$listeners={},this.$$nextSibling=null,c(this)}},$eval:function(e,t){return r(e)(this,t)},$evalAsync:function(e,t){d.$$phase||m.length||s.defer((function(){m.length&&d.$digest()}),null,"$evalAsync"),m.push({scope:this,fn:r(e),locals:t})},$$postDigest:function(e){p.push(e)},$apply:function(e){try{_("$apply");try{return this.$eval(e)}finally{b()}}catch(e){o(e)}finally{try{d.$digest()}catch(e){throw o(e),e}}},$applyAsync:function(e){var t=this;e&&g.push((function(){t.$eval(e)})),e=r(e),null===a&&(a=s.defer((function(){d.$apply(S)}),null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var a=this;do{a.$$listenerCount[e]||(a.$$listenerCount[e]=0),a.$$listenerCount[e]++}while(a=a.$parent);var o=this;return function(){var a=n.indexOf(t);-1!==a&&(delete n[a],v(o,1,e))}},$emit:function(e,t){var n,a,r,i=[],s=this,l=!1,c={name:e,targetScope:s,stopPropagation:function(){l=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},u=fe([c],arguments,1);do{for(n=s.$$listeners[e]||i,c.currentScope=s,a=0,r=n.length;a<r;a++)if(n[a])try{n[a].apply(null,u)}catch(e){o(e)}else n.splice(a,1),a--,r--;if(l)break;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,a=n,r=n,i={name:e,targetScope:n,preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return i;for(var s,l,c,u=fe([i],arguments,1);a=r;){for(i.currentScope=a,l=0,c=(s=a.$$listeners[e]||[]).length;l<c;l++)if(s[l])try{s[l].apply(null,u)}catch(e){o(e)}else s.splice(l,1),l--,c--;if(!(r=a.$$listenerCount[e]&&a.$$childHead||a!==n&&a.$$nextSibling))for(;a!==n&&!(r=a.$$nextSibling);)a=a.$parent}return i.currentScope=null,i}};var d=new u,m=d.$$asyncQueue=[],p=d.$$postDigestQueue=[],g=d.$$applyAsyncQueue=[],h=0;return d;function _(e){if(d.$$phase)throw t("inprog","{0} already in progress",d.$$phase);d.$$phase=e}function b(){d.$$phase=null}function y(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function v(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function A(){}function S(){for(;g.length;)try{g.shift()()}catch(e){o(e)}a=null}}]}function Va(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return F(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return F(e)?(t=e,this):t},this.$get=function(){return function(n,a){var o=a?t:e,r=mo(n&&n.trim()).href;return""===r||r.match(o)?n:"unsafe:"+r}}}Oa.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Da(e,t.$filter);var n,a="";if(this.stage="assign",n=Pa(e)){this.state.computing="assign";var o=this.nextId();this.recurse(n,o),this.return_(o),a="fn.assign="+this.generateFunction("assign","s,v,l")}var r=xa(e.body);t.stage="inputs",E(r,(function(e,n){var a="fn"+n;t.state[a]={vars:[],body:[],own:{}},t.state.computing=a;var o=t.nextId();t.recurse(e,o),t.return_(o),t.state.inputs.push({name:a,isPure:e.isPure}),e.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(e);var i='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",i)(this.$filter,Sa,Ia,ka);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return E(t,(function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")})),t.length&&e.push("fn.inputs=["+t.map((function(e){return e.name})).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return E(this.state.filters,(function(n,a){e.push(n+"=$filter("+t.escape(a)+")")})),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,a,o,r){var i,s,l,c,u,d=this;if(a=a||N,!r&&F(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,a,o,!0));switch(e.type){case Ta.Program:E(e.body,(function(t,n){d.recurse(t.expression,void 0,void 0,(function(e){s=e})),n!==e.body.length-1?d.current().body.push(s,";"):d.return_(s)}));break;case Ta.Literal:c=this.escape(e.value),this.assign(t,c),a(t||c);break;case Ta.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){s=e})),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),a(c);break;case Ta.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){i=e})),this.recurse(e.right,void 0,void 0,(function(e){s=e})),c="+"===e.operator?this.plus(i,s):"-"===e.operator?this.ifDefined(i,0)+e.operator+this.ifDefined(s,0):"("+i+")"+e.operator+"("+s+")",this.assign(t,c),a(c);break;case Ta.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),a(t);break;case Ta.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),a(t);break;case Ta.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),(function(){d.if_("inputs"===d.stage||"s",(function(){o&&1!==o&&d.if_(d.isNull(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))}))}),t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),a(t);break;case Ta.MemberExpression:i=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,i,void 0,(function(){d.if_(d.notNull(i),(function(){e.computed?(s=d.nextId(),d.recurse(e.property,s),d.getStringValue(s),o&&1!==o&&d.if_(d.not(d.computedMember(i,s)),d.lazyAssign(d.computedMember(i,s),"{}")),c=d.computedMember(i,s),d.assign(t,c),n&&(n.computed=!0,n.name=s)):(o&&1!==o&&d.if_(d.isNull(d.nonComputedMember(i,e.property.name)),d.lazyAssign(d.nonComputedMember(i,e.property.name),"{}")),c=d.nonComputedMember(i,e.property.name),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))}),(function(){d.assign(t,"undefined")})),a(t)}),!!o);break;case Ta.CallExpression:t=t||this.nextId(),e.filter?(s=d.filter(e.callee.name),l=[],E(e.arguments,(function(e){var t=d.nextId();d.recurse(e,t),l.push(t)})),c=s+"("+l.join(",")+")",d.assign(t,c),a(t)):(s=d.nextId(),i={},l=[],d.recurse(e.callee,s,i,(function(){d.if_(d.notNull(s),(function(){E(e.arguments,(function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,(function(e){l.push(e)}))})),c=i.name?d.member(i.context,i.name,i.computed)+"("+l.join(",")+")":s+"("+l.join(",")+")",d.assign(t,c)}),(function(){d.assign(t,"undefined")})),a(t)})));break;case Ta.AssignmentExpression:s=this.nextId(),i={},this.recurse(e.left,void 0,i,(function(){d.if_(d.notNull(i.context),(function(){d.recurse(e.right,s),c=d.member(i.context,i.name,i.computed)+e.operator+s,d.assign(t,c),a(t||c)}))}),1);break;case Ta.ArrayExpression:l=[],E(e.elements,(function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,(function(e){l.push(e)}))})),c="["+l.join(",")+"]",this.assign(t,c),a(t||c);break;case Ta.ObjectExpression:l=[],u=!1,E(e.properties,(function(e){e.computed&&(u=!0)})),u?(t=t||this.nextId(),this.assign(t,"{}"),E(e.properties,(function(e){e.computed?(i=d.nextId(),d.recurse(e.key,i)):i=e.key.type===Ta.Identifier?e.key.name:""+e.key.value,s=d.nextId(),d.recurse(e.value,s),d.assign(d.member(t,i,e.computed),s)}))):(E(e.properties,(function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,(function(e){l.push(d.escape(t.key.type===Ta.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),c="{"+l.join(",")+"}",this.assign(t,c)),a(t||c);break;case Ta.ThisExpression:this.assign(t,"s"),a(t||"s");break;case Ta.LocalsExpression:this.assign(t,"l"),a(t||"l");break;case Ta.NGValueParameter:this.assign(t,"v"),a(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,a=this.current().own;return a.hasOwnProperty(n)||(a[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),a[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 a=this.current().body;a.push("if(",e,"){"),t(),a.push("}"),n&&(a.push("else{"),n(),a.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},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)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,a,o,r){var i=this;return function(){i.recurse(e,t,n,a,o,r)}},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(H(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 va("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]}},Ra.prototype={compile:function(e){var t,n,a=this;Da(e,a.$filter),(t=Pa(e))&&(n=this.recurse(t));var o,r=xa(e.body);r&&(o=[],E(r,(function(e,t){var n=a.recurse(e);n.isPure=e.isPure,e.input=n,o.push(n),e.watchId=t})));var i=[];E(e.body,(function(e){i.push(a.recurse(e.expression))}));var s=0===e.body.length?N:1===e.body.length?i[0]:function(e,t){var n;return E(i,(function(a){n=a(e,t)})),n};return n&&(s.assign=function(e,t,a){return n(e,a,t)}),o&&(s.inputs=o),s},recurse:function(e,t,n){var a,o,r,i=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ta.Literal:return this.value(e.value,t);case Ta.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case Ta.BinaryExpression:case Ta.LogicalExpression:return a=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](a,o,t);case Ta.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Ta.Identifier:return i.identifier(e.name,t,n);case Ta.MemberExpression:return a=this.recurse(e.object,!1,!!n),e.computed||(o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(a,o,t,n):this.nonComputedMember(a,o,t,n);case Ta.CallExpression:return r=[],E(e.arguments,(function(e){r.push(i.recurse(e))})),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,a,i){for(var s=[],l=0;l<r.length;++l)s.push(r[l](e,n,a,i));var c=o.apply(void 0,s,i);return t?{context:void 0,name:void 0,value:c}:c}:function(e,n,a,i){var s,l=o(e,n,a,i);if(null!=l.value){for(var c=[],u=0;u<r.length;++u)c.push(r[u](e,n,a,i));s=l.value.apply(l.context,c)}return t?{value:s}:s};case Ta.AssignmentExpression:return a=this.recurse(e.left,!0,1),o=this.recurse(e.right),function(e,n,r,i){var s=a(e,n,r,i),l=o(e,n,r,i);return s.context[s.name]=l,t?{value:l}:l};case Ta.ArrayExpression:return r=[],E(e.elements,(function(e){r.push(i.recurse(e))})),function(e,n,a,o){for(var i=[],s=0;s<r.length;++s)i.push(r[s](e,n,a,o));return t?{value:i}:i};case Ta.ObjectExpression:return r=[],E(e.properties,(function(e){e.computed?r.push({key:i.recurse(e.key),computed:!0,value:i.recurse(e.value)}):r.push({key:e.key.type===Ta.Identifier?e.key.name:""+e.key.value,computed:!1,value:i.recurse(e.value)})})),function(e,n,a,o){for(var i={},s=0;s<r.length;++s)r[s].computed?i[r[s].key(e,n,a,o)]=r[s].value(e,n,a,o):i[r[s].key]=r[s].value(e,n,a,o);return t?{value:i}:i};case Ta.ThisExpression:return function(e){return t?{value:e}:e};case Ta.LocalsExpression:return function(e,n){return t?{value:n}:n};case Ta.NGValueParameter:return function(e,n,a){return t?{value:a}:a}}},"unary+":function(e,t){return function(n,a,o,r){var i=e(n,a,o,r);return i=F(i)?+i:0,t?{value:i}:i}},"unary-":function(e,t){return function(n,a,o,r){var i=e(n,a,o,r);return i=F(i)?-i:-0,t?{value:i}:i}},"unary!":function(e,t){return function(n,a,o,r){var i=!e(n,a,o,r);return t?{value:i}:i}},"binary+":function(e,t,n){return function(a,o,r,i){var s=ka(e(a,o,r,i),t(a,o,r,i));return n?{value:s}:s}},"binary-":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i),l=t(a,o,r,i),c=(F(s)?s:0)-(F(l)?l:0);return n?{value:c}:c}},"binary*":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)*t(a,o,r,i);return n?{value:s}:s}},"binary/":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)/t(a,o,r,i);return n?{value:s}:s}},"binary%":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)%t(a,o,r,i);return n?{value:s}:s}},"binary===":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)===t(a,o,r,i);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)!==t(a,o,r,i);return n?{value:s}:s}},"binary==":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)==t(a,o,r,i);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)!=t(a,o,r,i);return n?{value:s}:s}},"binary<":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)<t(a,o,r,i);return n?{value:s}:s}},"binary>":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)>t(a,o,r,i);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)<=t(a,o,r,i);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)>=t(a,o,r,i);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)&&t(a,o,r,i);return n?{value:s}:s}},"binary||":function(e,t,n){return function(a,o,r,i){var s=e(a,o,r,i)||t(a,o,r,i);return n?{value:s}:s}},"ternary?:":function(e,t,n,a){return function(o,r,i,s){var l=e(o,r,i,s)?t(o,r,i,s):n(o,r,i,s);return a?{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){return function(a,o,r,i){var s=o&&e in o?o:a;n&&1!==n&&s&&null==s[e]&&(s[e]={});var l=s?s[e]:void 0;return t?{context:s,name:e,value:l}:l}},computedMember:function(e,t,n,a){return function(o,r,i,s){var l,c,u=e(o,r,i,s);return null!=u&&(l=Sa(l=t(o,r,i,s)),a&&1!==a&&u&&!u[l]&&(u[l]={}),c=u[l]),n?{context:u,name:l,value:c}:c}},nonComputedMember:function(e,t,n,a){return function(o,r,i,s){var l=e(o,r,i,s);a&&1!==a&&l&&null==l[t]&&(l[t]={});var c=null!=l?l[t]:void 0;return n?{context:l,name:t,value:c}:c}},inputs:function(e,t){return function(n,a,o,r){return r?r[t]:e(n,a,o)}}},Na.prototype={constructor:Na,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Ta.Literal||e.body[0].expression.type===Ta.ArrayExpression||e.body[0].expression.type===Ta.ObjectExpression)}(t.ast),n.constant=function(e){return e.constant}(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var Wa=r("$sce"),Qa={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},za=/_([a-z])/g;function Ka(e){return e.replace(za,Ze)}function Ja(e){var t=[];return F(e)&&E(e,(function(e){t.push(function(e){if("self"===e)return e;if(H(e)){if(e.indexOf("***")>-1)throw Wa("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=ne(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(z(e))return new RegExp("^"+e.source+"$");throw Wa("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function Xa(){this.SCE_CONTEXTS=Qa;var t=["self"],n=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=Ja(e)),t},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(n=Ja(e)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(a,o){var r=function(e){throw Wa("unsafe","Attempting to use an unsafe value in a safe context.")};function i(t,n){return"self"===t?po(n,uo)||function(t){return po(t,function(){if(e.document.baseURI)return e.document.baseURI;lo||((lo=e.document.createElement("a")).href=".",lo=lo.cloneNode(!1));return lo.href}())}(n):!!t.exec(n.href)}function s(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}a.has("$sanitize")&&(r=a.get("$sanitize"));var l=s(),c={};return c[Qa.HTML]=s(l),c[Qa.CSS]=s(l),c[Qa.MEDIA_URL]=s(l),c[Qa.URL]=s(c[Qa.MEDIA_URL]),c[Qa.JS]=s(l),c[Qa.RESOURCE_URL]=s(c[Qa.URL]),{trustAs:function(e,t){var n=c.hasOwnProperty(e)?c[e]:null;if(!n)throw Wa("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||j(t)||""===t)return t;if("string"!=typeof t)throw Wa("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,a){if(null===a||j(a)||""===a)return a;var s=c.hasOwnProperty(e)?c[e]:null;if(s&&a instanceof s)return a.$$unwrapTrustedValue();if(Q(a.$$unwrapTrustedValue)&&(a=a.$$unwrapTrustedValue()),e===Qa.MEDIA_URL||e===Qa.URL)return o(a.toString(),e===Qa.MEDIA_URL);if(e===Qa.RESOURCE_URL){if(function(e){var a,o,r=mo(e.toString()),s=!1;for(a=0,o=t.length;a<o;a++)if(i(t[a],r)){s=!0;break}if(s)for(a=0,o=n.length;a<o;a++)if(i(n[a],r)){s=!1;break}return s}(a))return a;throw Wa("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",a.toString())}if(e===Qa.HTML)return r(a);throw Wa("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof l?e.$$unwrapTrustedValue():e}}}]}function Za(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&i<8)throw Wa("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 a=Be(Qa);a.isEnabled=function(){return e},a.trustAs=n.trustAs,a.getTrusted=n.getTrusted,a.valueOf=n.valueOf,e||(a.trustAs=a.getTrusted=function(e,t){return t},a.valueOf=L),a.parseAs=function(e,n){var o=t(n);return o.literal&&o.constant?o:t(n,(function(t){return a.getTrusted(e,t)}))};var o=a.parseAs,r=a.getTrusted,s=a.trustAs;return E(Qa,(function(e,t){var n=m(t);a[Ka("parse_as_"+n)]=function(t){return o(e,t)},a[Ka("get_trusted_"+n)]=function(t){return r(e,t)},a[Ka("trust_as_"+n)]=function(t){return s(e,t)}})),a}]}function eo(){this.$get=["$window","$document",function(e,t){var n={},a=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,o=P((/android (\d+)/.exec(m((e.navigator||{}).userAgent))||[])[1]),r=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},l=s.body&&s.body.style,c=!1,u=!1;return l&&(c=!(!("transition"in l)&&!("webkitTransition"in l)),u=!(!("animation"in l)&&!("webkitAnimation"in l))),{history:!(!a||o<4||r),hasEvent:function(e){if("input"===e&&i)return!1;if(j(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:ue(),transitions:c,animations:u,android:o}}]}function to(){this.$get=$((function(e){return new no(e)}))}function no(e){var t=this,n={},a=[],o=t.ALL_TASKS_TYPE="$$all$$",r=t.DEFAULT_TASK_TYPE="$$default$$";function i(){var e=a.pop();return e&&e.cb}function s(e){for(var t=a.length-1;t>=0;--t){var n=a[t];if(n.type===e)return a.splice(t,1),n.cb}}t.completeTask=function(t,a){a=a||r;try{t()}finally{!function(e){n[e=e||r]&&(n[e]--,n[o]--)}(a);var l=n[a],c=n[o];if(!c||!l)for(var u,d=c?s:i;u=d(a);)try{u()}catch(t){e.error(t)}}},t.incTaskCount=function(e){n[e=e||r]=(n[e]||0)+1,n[o]=(n[o]||0)+1},t.notifyWhenNoPendingTasks=function(e,t){n[t=t||o]?a.push({type:t,cb:e}):e()}}var ao=r("$templateRequest");function oo(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,a,o,r){function i(s,l){i.totalPendingRequests++,H(s)&&!j(n.get(s))||(s=r.getTrustedResourceUrl(s));var c=a.defaults&&a.defaults.transformResponse;return V(c)?c=c.filter((function(e){return e!==Yn})):c===Yn&&(c=null),a.get(s,x({cache:n,transformResponse:c},e)).finally((function(){i.totalPendingRequests--})).then((function(e){return n.put(s,e.data)}),(function(e){l||(e=ao("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e));return o.reject(e)}))}return i.totalPendingRequests=0,i}]}function ro(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var a={findBindings:function(e,t,n){var a=e.getElementsByClassName("ng-binding"),o=[];return E(a,(function(e){var a=A.element(e).data("$binding");a&&E(a,(function(a){n?new RegExp("(^|\\s)"+ne(t)+"(\\s|\\||$)").test(a)&&o.push(e):-1!==a.indexOf(t)&&o.push(e)}))})),o},findModels:function(e,t,n){for(var a=["ng-","data-ng-","ng\\:"],o=0;o<a.length;++o){var r="["+a[o]+"model"+(n?"=":"*=")+'"'+t+'"]',i=e.querySelectorAll(r);if(i.length)return i}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return a}]}var io=r("$timeout");function so(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,a,o){var r={};function i(i,s,l){Q(i)||(l=s,s=i,i=N);var c,u=me(arguments,3),d=F(l)&&!l,f=(d?a:n).defer(),m=f.promise;return c=t.defer((function(){try{f.resolve(i.apply(null,u))}catch(e){f.reject(e),o(e)}finally{delete r[m.$$timeoutId]}d||e.$apply()}),s,"$timeout"),m.$$timeoutId=c,r[c]=f,m}return i.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw io("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!r.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,a=r[n];return Ha(a.promise),a.reject("canceled"),delete r[n],t.defer.cancel(n)},i}]}var lo,co=e.document.createElement("a"),uo=mo(e.location.href);co.href="http://[::1]";var fo="[::1]"===co.hostname;function mo(e){if(!H(e))return e;var t=e;i&&(co.setAttribute("href",t),t=co.href),co.setAttribute("href",t);var n=co.hostname;return!fo&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:co.href,protocol:co.protocol?co.protocol.replace(/:$/,""):"",host:co.host,search:co.search?co.search.replace(/^\?/,""):"",hash:co.hash?co.hash.replace(/^#/,""):"",hostname:n,port:co.port,pathname:"/"===co.pathname.charAt(0)?co.pathname:"/"+co.pathname}}function po(e,t){return e=mo(e),t=mo(t),e.protocol===t.protocol&&e.host===t.host}function go(){this.$get=$(e)}function ho(e){var t=e[0]||{},n={},a="";function o(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,r,i,s,l,c=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(c!==a)for(e=(a=c).split("; "),n={},i=0;i<e.length;i++)(s=(r=e[i]).indexOf("="))>0&&(l=o(r.substring(0,s)),j(n[l])&&(n[l]=o(r.substring(s+1))));return n}}function _o(){this.$get=ho}function bo(e){var t="Filter";function n(a,o){if(q(a)){var r={};return E(a,(function(e,t){r[t]=n(t,e)})),r}return e.factory(a+t,o)}this.register=n,this.$get=["$injector",function(e){return function(n){return e.get(n+t)}}],n("currency",So),n("date",Ro),n("filter",yo),n("json",No),n("limitTo",Uo),n("lowercase",Lo),n("number",wo),n("orderBy",Fo),n("uppercase",$o)}function yo(){return function(e,t,n,a){if(!w(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var o,i;switch(a=a||"$",Ao(t)){case"function":o=t;break;case"boolean":case"null":case"number":case"string":i=!0;case"object":o=function(e,t,n,a){var o=q(e)&&n in e;!0===t?t=ce:Q(t)||(t=function(e,t){return!j(e)&&(null===e||null===t?e===t:!(q(t)||q(e)&&!U(e))&&(e=m(""+e),t=m(""+t),-1!==e.indexOf(t)))});return function(r){return o&&!q(r)?vo(r,e[n],t,n,!1):vo(r,e,t,n,a)}}(t,n,a,i);break;default:return e}return Array.prototype.filter.call(e,o)}}function vo(e,t,n,a,o,r){var i=Ao(e),s=Ao(t);if("string"===s&&"!"===t.charAt(0))return!vo(e,t.substring(1),n,a,o);if(V(e))return e.some((function(e){return vo(e,t,n,a,o)}));switch(i){case"object":var l;if(o){for(l in e)if(l.charAt&&"$"!==l.charAt(0)&&vo(e[l],t,n,a,!0))return!0;return!r&&vo(e,t,n,a,!1)}if("object"===s){for(l in t){var c=t[l];if(!Q(c)&&!j(c)){var u=l===a;if(!vo(u?e:e[l],c,n,a,u,u))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Ao(e){return null===e?"null":typeof e}ho.$inject=["$document"],bo.$inject=["$provide"];function So(e){var t=e.NUMBER_FORMATS;return function(e,n,a){j(n)&&(n=t.CURRENCY_SYM),j(a)&&(a=t.PATTERNS[1].maxFrac);var o=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:Eo(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,a).replace(o,n)}}function wo(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Eo(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Eo(e,t,n,a,o){if(!H(e)&&!B(e)||isNaN(e))return"";var r,i=!isFinite(e),s=!1,l=Math.abs(e)+"",c="";if(i)c="∞";else{(function(e,t,n,a){var o=e.d,r=o.length-e.i,i=(t=j(t)?Math.min(Math.max(n,r),a):+t)+e.i,s=o[i];if(i>0){o.splice(Math.max(e.i,i));for(var l=i;l<o.length;l++)o[l]=0}else{r=Math.max(0,r),e.i=1,o.length=Math.max(1,i=t+1),o[0]=0;for(var c=1;c<i;c++)o[c]=0}if(s>=5)if(i-1<0){for(var u=0;u>i;u--)o.unshift(0),e.i++;o.unshift(1),e.i++}else o[i-1]++;for(;r<Math.max(0,t);r++)o.push(0);var d=o.reduceRight((function(e,t,n,a){return t+=e,a[n]=t%10,Math.floor(t/10)}),0);d&&(o.unshift(d),e.i++)})(r=function(e){var t,n,a,o,r,i=0;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(a=e.search(/e/i))>0?(n<0&&(n=a),n+=+e.slice(a+1),e=e.substring(0,a)):n<0&&(n=e.length),a=0;"0"===e.charAt(a);a++);if(a===(r=e.length))t=[0],n=1;else{for(r--;"0"===e.charAt(r);)r--;for(n-=a,t=[],o=0;a<=r;a++,o++)t[o]=+e.charAt(a)}return n>22&&(t=t.splice(0,21),i=n-1,n=1),{d:t,e:i,i:n}}(l),o,t.minFrac,t.maxFrac);var u=r.d,d=r.i,f=r.e,m=[];for(s=u.reduce((function(e,t){return e&&!t}),!0);d<0;)u.unshift(0),d++;d>0?m=u.splice(d,u.length):(m=u,u=[0]);var p=[];for(u.length>=t.lgSize&&p.unshift(u.splice(-t.lgSize,u.length).join(""));u.length>t.gSize;)p.unshift(u.splice(-t.gSize,u.length).join(""));u.length&&p.unshift(u.join("")),c=p.join(n),m.length&&(c+=a+m.join("")),f&&(c+="e+"+f)}return e<0&&!s?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function Co(e,t,n,a){var o="";for((e<0||a&&e<=0)&&(a?e=1-e:(e=-e,o="-")),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),o+e}function To(e,t,n,a,o){return n=n||0,function(r){var i=r["get"+e]();return(n>0||i>-n)&&(i+=n),0===i&&-12===n&&(i=12),Co(i,t,a,o)}}function Io(e,t,n){return function(a,o){var r=a["get"+e]();return o[p((n?"STANDALONE":"")+(t?"SHORT":"")+e)][r]}}function ko(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Do(e){return function(t){var n,a=ko(t.getFullYear()),o=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+a;return Co(1+Math.round(o/6048e5),e)}}function xo(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}So.$inject=["$locale"],wo.$inject=["$locale"];var Mo={yyyy:To("FullYear",4,0,!1,!0),yy:To("FullYear",2,0,!0,!0),y:To("FullYear",1,0,!1,!0),MMMM:Io("Month"),MMM:Io("Month",!0),MM:To("Month",2,1),M:To("Month",1,1),LLLL:Io("Month",!1,!0),dd:To("Date",2),d:To("Date",1),HH:To("Hours",2),H:To("Hours",1),hh:To("Hours",2,-12),h:To("Hours",1,-12),mm:To("Minutes",2),m:To("Minutes",1),ss:To("Seconds",2),s:To("Seconds",1),sss:To("Milliseconds",3),EEEE:Io("Day"),EEE:Io("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var a=-1*n,o=a>=0?"+":"";return o+=Co(Math[a>0?"floor":"ceil"](a/60),2)+Co(Math.abs(a%60),2)},ww:Do(2),w:Do(1),G:xo,GG:xo,GGG:xo,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Po=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Oo=/^-?\d+$/;function Ro(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,a,o){var r,i,s="",l=[];if(a=a||"mediumDate",a=e.DATETIME_FORMATS[a]||a,H(n)&&(n=Oo.test(n)?P(n):function(e){var n;if(n=e.match(t)){var a=new Date(0),o=0,r=0,i=n[8]?a.setUTCFullYear:a.setFullYear,s=n[8]?a.setUTCHours:a.setHours;n[9]&&(o=P(n[9]+n[10]),r=P(n[9]+n[11])),i.call(a,P(n[1]),P(n[2])-1,P(n[3]));var l=P(n[4]||0)-o,c=P(n[5]||0)-r,u=P(n[6]||0),d=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(a,l,c,u,d),a}return e}(n)),B(n)&&(n=new Date(n)),!G(n)||!isFinite(n.getTime()))return n;for(;a;)(i=Po.exec(a))?a=(l=fe(l,i,1)).pop():(l.push(a),a=null);var c=n.getTimezoneOffset();return o&&(c=ye(o,c),n=Ae(n,o,!0)),E(l,(function(t){s+=(r=Mo[t])?r(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function No(){return function(e,t){return j(t)&&(t=2),he(e,t)}}Ro.$inject=["$locale"];var Lo=$(m),$o=$(p);function Uo(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):P(t),O(t)?e:(B(e)&&(e=e.toString()),w(e)?(n=(n=!n||isNaN(n)?0:P(n))<0?Math.max(0,e.length+n):n,t>=0?jo(e,n,n+t):0===n?jo(e,t,e.length):jo(e,Math.max(0,n+t),n)):e)}}function jo(e,t,n){return H(e)?e.slice(t,n):g.call(e,t,n)}function Fo(e){return function(a,o,i,s){if(null==a)return a;if(!w(a))throw r("orderBy")("notarray","Expected array but received: {0}",a);V(o)||(o=[o]),0===o.length&&(o=["+"]);var l=o.map((function(t){var n=1,a=L;if(Q(t))a=t;else if(H(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(a=e(t)).constant)){var o=a();a=function(e){return e[o]}}return{get:a,descending:n}})),c=i?-1:1,u=Q(s)?s:n,d=Array.prototype.map.call(a,(function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:l.map((function(a){return function(e,n){var a=typeof e;null===e?a="null":"object"===a&&(e=function(e){if(Q(e.valueOf)&&t(e=e.valueOf()))return e;if(U(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:a,index:n}}(a.get(e),n)}))}}));return d.sort((function(e,t){for(var a=0,o=l.length;a<o;a++){var r=u(e.predicateValues[a],t.predicateValues[a]);if(r)return r*l[a].descending*c}return(u(e.tieBreaker,t.tieBreaker)||n(e.tieBreaker,t.tieBreaker))*c})),a=d.map((function(e){return e.value}))};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function n(e,t){var n=0,a=e.type,o=t.type;if(a===o){var r=e.value,i=t.value;"string"===a?(r=r.toLowerCase(),i=i.toLowerCase()):"object"===a&&(q(r)&&(r=e.index),q(i)&&(i=t.index)),r!==i&&(n=r<i?-1:1)}else n="undefined"===a?1:"undefined"===o?-1:"null"===a?1:"null"===o||a<o?-1:1;return n}}function qo(e){return Q(e)&&(e={link:e}),e.restrict=e.restrict||"AC",$(e)}Fo.$inject=["$parse"];var Yo=$({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]"===b.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Ho={};E(Ot,(function(e,t){if("multiple"!==e){var n=Sn("ng-"+t),a=o;"checked"===e&&(a=function(e,t,a){a.ngModel!==a[n]&&o(e,0,a)}),Ho[n]=function(){return{restrict:"A",priority:100,link:a}}}function o(e,a,o){e.$watch(o[n],(function(e){o.$set(t,!!e)}))}})),E(Nt,(function(e,t){Ho[t]=function(){return{priority:100,link:function(e,n,a){if("ngPattern"===t&&"/"===a.ngPattern.charAt(0)){var o=a.ngPattern.match(u);if(o)return void a.$set("ngPattern",new RegExp(o[1],o[2]))}e.$watch(a[t],(function(e){a.$set(t,e)}))}}}})),E(["src","srcset","href"],(function(e){var t=Sn("ng-"+e);Ho[t]=["$sce",function(n){return{priority:99,link:function(a,o,r){var s=e,l=e;"href"===e&&"[object SVGAnimatedString]"===b.call(o.prop("href"))&&(l="xlinkHref",r.$attr[l]="xlink:href",s=null),r.$set(t,n.getTrustedMediaUrl(r[t])),r.$observe(t,(function(t){t?(r.$set(l,t),i&&s&&o.prop(s,r[l])):"href"===e&&r.$set(l,null)}))}}}]}));var Bo={$addControl:N,$getControls:$([]),$$renameControl:function(e,t){e.$name=t},$removeControl:N,$setValidity:N,$setDirty:N,$setPristine:N,$setSubmitted:N,$$setSubmitted:N},Go="ng-pending",Vo="ng-submitted";function Wo(e,t,n,a,o){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=o(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Bo,this.$$element=e,this.$$animate=a,Jo(this)}Wo.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Wo.prototype={$rollbackViewValue:function(){E(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){E(this.$$controls,(function(e){e.$commitViewValue()}))},$addControl:function(e){je(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Be(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],E(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),E(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),E(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),ie(this.$$controls,e),e.$$parentForm=Bo},$setDirty:function(){this.$$animate.removeClass(this.$$element,Vr),this.$$animate.addClass(this.$$element,Wr),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Vr,Wr+" "+Vo),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,E(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){E(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Bo;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,Vo),this.$submitted=!0,E(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},Xo({clazz:Wo,set:function(e,t,n){var a=e[t];a?-1===a.indexOf(n)&&a.push(n):e[t]=[n]},unset:function(e,t,n){var a=e[t];a&&(ie(a,n),0===a.length&&delete e[t])}});var Qo=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Wo,compile:function(n,o){n.addClass(Vr).addClass(Br);var r=o.name?"name":!(!e||!o.ngForm)&&"ngForm";return{pre:function(e,n,o,i){var s=i[0];if(!("action"in o)){var l=function(t){e.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),t.preventDefault()};n[0].addEventListener("submit",l),n.on("$destroy",(function(){t((function(){n[0].removeEventListener("submit",l)}),0,!1)}))}(i[1]||s.$$parentForm).$addControl(s);var c=r?a(s.$name):N;r&&(c(e,s),o.$observe(r,(function(t){s.$name!==t&&(c(e,void 0),s.$$parentForm.$$renameControl(s,t),(c=a(s.$name))(e,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),c(e,void 0),x(s,Bo)}))}}}};function a(e){return""===e?n('this[""]').assign:n(e).assign||N}}]},zo=Qo(),Ko=Qo(!0);function Jo(e){e.$$classCache={},e.$$classCache[Gr]=!(e.$$classCache[Br]=e.$$element.hasClass(Br))}function Xo(e){var t=e.clazz,n=e.set,a=e.unset;function o(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function r(e,t,n){t=t?"-"+Re(t,"-"):"",o(e,Br+t,!0===n),o(e,Gr+t,!1===n)}t.prototype.$setValidity=function(e,t,i){var s;j(t)?function(e,t,a,o){e[t]||(e[t]={});n(e[t],a,o)}(this,"$pending",e,i):function(e,t,n,o){e[t]&&a(e[t],n,o);Zo(e[t])&&(e[t]=void 0)}(this,"$pending",e,i),X(t)?t?(a(this.$error,e,i),n(this.$$success,e,i)):(n(this.$error,e,i),a(this.$$success,e,i)):(a(this.$error,e,i),a(this.$$success,e,i)),this.$pending?(o(this,Go,!0),this.$valid=this.$invalid=void 0,r(this,"",null)):(o(this,Go,!1),this.$valid=Zo(this.$error),this.$invalid=!this.$valid,r(this,"",this.$valid)),r(this,e,s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,s,this)}}function Zo(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var er=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,tr=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,nr=/^(?=.{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])?)*$/,ar=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,or=/^(\d{4,})-(\d{2})-(\d{2})$/,rr=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ir=/^(\d{4,})-W(\d\d)$/,sr=/^(\d{4,})-(\d\d)$/,lr=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,cr=qe();E("date,datetime-local,month,time,week".split(","),(function(e){cr[e]=!0}));var ur={text:function(e,t,n,a,o,r){fr(e,t,n,a,o,r),dr(a)},date:pr("date",or,mr(or,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":pr("datetimelocal",rr,mr(rr,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:pr("time",lr,mr(lr,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:pr("week",ir,(function(e,t){if(G(e))return e;if(H(e)){ir.lastIndex=0;var n=ir.exec(e);if(n){var a=+n[1],o=+n[2],r=0,i=0,s=0,l=0,c=ko(a),u=7*(o-1);return t&&(r=t.getHours(),i=t.getMinutes(),s=t.getSeconds(),l=t.getMilliseconds()),new Date(a,0,c.getDate()+u,r,i,s,l)}}return NaN}),"yyyy-Www"),month:pr("month",sr,mr(sr,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,a,o,r,i,s){var l;if(gr(e,t,n,a,"number"),hr(a),fr(e,t,n,a,o,r),F(n.min)||n.ngMin){var c=n.min||s(n.ngMin)(e);l=_r(c),a.$validators.min=function(e,t){return a.$isEmpty(t)||j(l)||t>=l},n.$observe("min",(function(e){e!==c&&(l=_r(e),c=e,a.$validate())}))}if(F(n.max)||n.ngMax){var u=n.max||s(n.ngMax)(e),d=_r(u);a.$validators.max=function(e,t){return a.$isEmpty(t)||j(d)||t<=d},n.$observe("max",(function(e){e!==u&&(d=_r(e),u=e,a.$validate())}))}if(F(n.step)||n.ngStep){var f=n.step||s(n.ngStep)(e),m=_r(f);a.$validators.step=function(e,t){return a.$isEmpty(t)||j(m)||vr(t,l||0,m)},n.$observe("step",(function(e){e!==f&&(m=_r(e),f=e,a.$validate())}))}},url:function(e,t,n,a,o,r){fr(e,t,n,a,o,r),dr(a),a.$validators.url=function(e,t){var n=e||t;return a.$isEmpty(n)||tr.test(n)}},email:function(e,t,n,a,o,r){fr(e,t,n,a,o,r),dr(a),a.$validators.email=function(e,t){var n=e||t;return a.$isEmpty(n)||nr.test(n)}},radio:function(e,t,n,a){var o=!n.ngTrim||"false"!==te(n.ngTrim);j(n.name)&&t.attr("name",I());t.on("change",(function(e){var r;t[0].checked&&(r=n.value,o&&(r=te(r)),a.$setViewValue(r,e&&e.type))})),a.$render=function(){var e=n.value;o&&(e=te(e)),t[0].checked=e===a.$viewValue},n.$observe("value",a.$render)},range:function(e,t,n,a,o,r){gr(e,t,n,a,"range"),hr(a),fr(e,t,n,a,o,r);var i=a.$$hasNativeValidators&&"range"===t[0].type,s=i?0:void 0,l=i?100:void 0,c=i?1:void 0,u=t[0].validity,d=F(n.min),f=F(n.max),m=F(n.step),p=a.$render;a.$render=i&&F(u.rangeUnderflow)&&F(u.rangeOverflow)?function(){p(),a.$setViewValue(t.val())}:p,d&&(s=_r(n.min),a.$validators.min=i?function(){return!0}:function(e,t){return a.$isEmpty(t)||j(s)||t>=s},g("min",(function(e){if(s=_r(e),O(a.$modelValue))return;if(i){var n=t.val();s>n&&(n=s,t.val(n)),a.$setViewValue(n)}else a.$validate()})));f&&(l=_r(n.max),a.$validators.max=i?function(){return!0}:function(e,t){return a.$isEmpty(t)||j(l)||t<=l},g("max",(function(e){if(l=_r(e),O(a.$modelValue))return;if(i){var n=t.val();l<n&&(t.val(l),n=l<s?s:l),a.$setViewValue(n)}else a.$validate()})));m&&(c=_r(n.step),a.$validators.step=i?function(){return!u.stepMismatch}:function(e,t){return a.$isEmpty(t)||j(c)||vr(t,s||0,c)},g("step",(function(e){if(c=_r(e),O(a.$modelValue))return;i?a.$viewValue!==t.val()&&a.$setViewValue(t.val()):a.$validate()})));function g(e,a){t.attr(e,n[e]);var o=n[e];n.$observe(e,(function(e){e!==o&&(o=e,a(e))}))}},checkbox:function(e,t,n,a,o,r,i,s){var l=Ar(s,e,"ngTrueValue",n.ngTrueValue,!0),c=Ar(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",(function(e){a.$setViewValue(t[0].checked,e&&e.type)})),a.$render=function(){t[0].checked=a.$viewValue},a.$isEmpty=function(e){return!1===e},a.$formatters.push((function(e){return ce(e,l)})),a.$parsers.push((function(e){return e?l:c}))},hidden:N,button:N,submit:N,reset:N,file:N};function dr(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function fr(e,t,n,a,o,r){var i,s=m(t[0].type);if(!o.android){var l=!1;t.on("compositionstart",(function(){l=!0})),t.on("compositionupdate",(function(e){(j(e.data)||""===e.data)&&(l=!1)})),t.on("compositionend",(function(){l=!1,c()}))}var c=function(e){if(i&&(r.defer.cancel(i),i=null),!l){var o=t.val(),c=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(o=te(o)),(a.$viewValue!==o||""===o&&a.$$hasNativeValidators)&&a.$setViewValue(o,c)}};if(o.hasEvent("input"))t.on("input",c);else{var u=function(e,t,n){i||(i=r.defer((function(){i=null,t&&t.value===n||c(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||u(e,this,this.value)})),o.hasEvent("paste")&&t.on("paste cut drop",u)}t.on("change",c),cr[s]&&a.$$hasNativeValidators&&s===n.type&&t.on("keydown wheel mousedown",(function(e){if(!i){var t=this.validity,n=t.badInput,a=t.typeMismatch;i=r.defer((function(){i=null,t.badInput===n&&t.typeMismatch===a||c(e)}))}})),a.$render=function(){var e=a.$isEmpty(a.$viewValue)?"":a.$viewValue;t.val()!==e&&t.val(e)}}function mr(e,t){return function(n,a){var o,r;if(G(n))return n;if(H(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),er.test(n))return new Date(n);if(e.lastIndex=0,o=e.exec(n)){o.shift(),r=a?{yyyy:a.getFullYear(),MM:a.getMonth()+1,dd:a.getDate(),HH:a.getHours(),mm:a.getMinutes(),ss:a.getSeconds(),sss:a.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},E(o,(function(e,n){n<t.length&&(r[t[n]]=+e)}));var i=new Date(r.yyyy,r.MM-1,r.dd,r.HH,r.mm,r.ss||0,1e3*r.sss||0);return r.yyyy<100&&i.setFullYear(r.yyyy),i}}return NaN}}function pr(e,t,n,a){return function(o,r,i,s,l,c,u,d){gr(o,r,i,s,e),fr(0,r,i,s,l,c);var f,m,p="time"===e||"datetimelocal"===e;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:t.test(n)?A(n,f):void(s.$$parserName=e)})),s.$formatters.push((function(e){if(e&&!G(e))throw Xr("datefmt","Expected `{0}` to be a date",e);if(y(e)){f=e;var t=s.$options.getOption("timezone");return t&&(m=t,f=Ae(f,t,!0)),function(e,t){var n=a;p&&H(s.$options.getOption("timeSecondsFormat"))&&(n=a.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var o=u("date")(e,n,t);p&&s.$options.getOption("timeStripZeroSeconds")&&(o=o.replace(/(?::00)?(?:\.000)?$/,""));return o}(e,t)}return f=null,m=null,""})),F(i.min)||i.ngMin){var g=i.min||d(i.ngMin)(o),h=v(g);s.$validators.min=function(e){return!y(e)||j(h)||n(e)>=h},i.$observe("min",(function(e){e!==g&&(h=v(e),g=e,s.$validate())}))}if(F(i.max)||i.ngMax){var _=i.max||d(i.ngMax)(o),b=v(_);s.$validators.max=function(e){return!y(e)||j(b)||n(e)<=b},i.$observe("max",(function(e){e!==_&&(b=v(e),_=e,s.$validate())}))}function y(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function v(e){return F(e)&&!G(e)?A(e)||void 0:e}function A(e,t){var a=s.$options.getOption("timezone");m&&m!==a&&(t=ve(t,ye(m)));var o=n(e,t);return!isNaN(o)&&a&&(o=Ae(o,a)),o}}}function gr(e,t,n,a,o){var r=t[0];(a.$$hasNativeValidators=q(r.validity))&&a.$parsers.push((function(e){var n=t.prop(d)||{};if(!n.badInput&&!n.typeMismatch)return e;a.$$parserName=o}))}function hr(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:ar.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!B(t))throw Xr("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function _r(e){return F(e)&&!B(e)&&(e=parseFloat(e)),O(e)?void 0:e}function br(e){return(0|e)===e}function yr(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var a=/e-(\d+)$/.exec(t);if(a)return Number(a[1])}return 0}return t.length-n-1}function vr(e,t,n){var a=Number(e),o=!br(a),r=!br(t),i=!br(n);if(o||r||i){var s=o?yr(a):0,l=r?yr(t):0,c=i?yr(n):0,u=Math.max(s,l,c),d=Math.pow(10,u);a*=d,t*=d,n*=d,o&&(a=Math.round(a)),r&&(t=Math.round(t)),i&&(n=Math.round(n))}return(a-t)%n==0}function Ar(e,t,n,a,o){var r;if(F(a)){if(!(r=e(a)).constant)throw Xr("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,a);return r(t)}return o}var Sr=["$browser","$sniffer","$filter","$parse",function(e,t,n,a){return{restrict:"E",require:["?ngModel"],link:{pre:function(o,r,i,s){s[0]&&(ur[m(i.type)]||ur.text)(o,r,i,s[0],t,e,n,a)}}}}],wr=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===m(n.type))return{pre:function(t,n,a,o){var r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",e)}}}}},Er=/^(true|false|\d+)$/,Cr=function(){function e(e,t,n){var a=F(n)?n:9===i?"":null;e.prop("value",a),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Er.test(n.ngValue)?function(t,n,a){e(n,a,t.$eval(a.ngValue))}:function(t,n,a){t.$watch(a.ngValue,(function(t){e(n,a,t)}))}}}},Tr=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,a){e.$$addBindingInfo(n,a.ngBind),n=n[0],t.$watch(a.ngBind,(function(e){n.textContent=Ye(e)}))}}}}],Ir=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,a,o){var r=e(a.attr(o.$attr.ngBindTemplate));t.$$addBindingInfo(a,r.expressions),a=a[0],o.$observe("ngBindTemplate",(function(e){a.textContent=j(e)?"":e}))}}}}],kr=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(a,o){var r=t(o.ngBindHtml),i=t(o.ngBindHtml,(function(t){return e.valueOf(t)}));return n.$$addBindingClass(a),function(t,a,o){n.$$addBindingInfo(a,o.ngBindHtml),t.$watch(i,(function(){var n=r(t);a.html(e.getTrustedHtml(n)||"")}))}}}}],Dr=$({restrict:"A",require:"ngModel",link:function(e,t,n,a){a.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function xr(e,t){var n;return e="ngClass"+e,["$parse",function(i){return{restrict:"AC",link:function(s,l,c){var u,d=l.data("$classCounts"),f=!0;function m(e,t){var n=[];return E(e,(function(e){(t>0||d[e])&&(d[e]=(d[e]||0)+t,d[e]===+(t>0)&&n.push(e))})),n.join(" ")}d||(d=qe(),l.data("$classCounts",d)),"ngClass"!==e&&(n||(n=i("$index",(function(e){return 1&e}))),s.$watch(n,(function(e){e===t?(n=m(o(n=u),1),c.$addClass(n)):function(e){e=m(o(e),-1),c.$removeClass(e)}(u);var n;f=e}))),s.$watch(i(c[e],r),(function(e){f===t&&function(e,t){var n=o(e),r=o(t),i=a(n,r),s=a(r,n),l=m(i,-1),u=m(s,1);c.$addClass(u),c.$removeClass(l)}(u,e);u=e}))}}}];function a(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var a=0;a<e.length;a++){for(var o=e[a],r=0;r<t.length;r++)if(o===t[r])continue e;n.push(o)}return n}function o(e){return e&&e.split(" ")}function r(e){if(!e)return e;var t=e;return V(e)?t=e.map(r).join(" "):q(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):H(e)||(t=e+""),t}}var Mr=xr("",!0),Pr=xr("Odd",0),Or=xr("Even",1),Rr=qo({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Nr=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Lr={},$r={blur:!0,focus:!0};function Ur(e,t,n,a,o,r){return{restrict:"A",compile:function(i,s){var l=e(s[a]);return function(e,a){a.on(o,(function(a){var o=function(){l(e,{$event:a})};if(t.$$phase)if(r)e.$evalAsync(o);else try{o()}catch(e){n(e)}else e.$apply(o)}))}}}}E("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=Sn("ng-"+e);Lr[t]=["$parse","$rootScope","$exceptionHandler",function(n,a,o){return Ur(n,a,o,t,e,$r[e])}]}));var jr=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,a,o,r,i){var s,l,c;n.$watch(o.ngIf,(function(n){n?l||i((function(n,r){l=r,n[n.length++]=t.$$createComment("end ngIf",o.ngIf),s={clone:n},e.enter(n,a.parent(),a)})):(c&&(c.remove(),c=null),l&&(l.$destroy(),l=null),s&&(c=Fe(s.clone),e.leave(c).done((function(e){!1!==e&&(c=null)})),s=null))}))}}}],Fr=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:A.noop,compile:function(a,o){var r=o.ngInclude||o.src,i=o.onload||"",s=o.autoscroll;return function(a,o,l,c,u){var d,f,m,p=0,g=function(){f&&(f.remove(),f=null),d&&(d.$destroy(),d=null),m&&(n.leave(m).done((function(e){!1!==e&&(f=null)})),f=m,m=null)};a.$watch(r,(function(r){var l=function(e){!1===e||!F(s)||s&&!a.$eval(s)||t()},f=++p;r?(e(r,!0).then((function(e){if(!a.$$destroyed&&f===p){var t=a.$new();c.template=e;var s=u(t,(function(e){g(),n.enter(e,null,o).done(l)}));m=s,(d=t).$emit("$includeContentLoaded",r),a.$eval(i)}}),(function(){a.$$destroyed||f===p&&(g(),a.$emit("$includeContentError",r))})),a.$emit("$includeContentRequested",r)):(g(),c.template=null)}))}}}}],qr=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,a,o,r){if(b.call(a[0]).match(/SVG/))return a.empty(),void t(ft(r.template,e.document).childNodes)(n,(function(e){a.append(e)}),{futureParentElement:a});a.html(r.template),t(a.contents())(n)}}}],Yr=qo({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Hr=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,a){var o=n.ngList||", ",r="false"!==n.ngTrim,i=r?te(o):o;a.$parsers.push((function(e){if(!j(e)){var t=[];return e&&E(e.split(i),(function(e){e&&t.push(r?te(e):e)})),t}})),a.$formatters.push((function(e){if(V(e))return e.join(o)})),a.$isEmpty=function(e){return!e||!e.length}}}},Br="ng-valid",Gr="ng-invalid",Vr="ng-pristine",Wr="ng-dirty",Qr="ng-untouched",zr="ng-touched",Kr="ng-empty",Jr="ng-not-empty",Xr=r("ngModel");function Zr(e,t,n,a,o,r,i,s,l){var c;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=l(n.name||"",!1)(e),this.$$parentForm=Bo,this.$options=ei,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=o(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=a,this.$$animate=r,this.$$timeout=i,this.$$parse=o,this.$$q=s,this.$$exceptionHandler=t,Jo(this),(c=this).$$scope.$watch((function(e){var t=c.$$ngModelGet(e);return t===c.$modelValue||c.$modelValue!=c.$modelValue&&t!=t||c.$$setModelValue(t),t}))}Zr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Zr.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return Q(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){Q(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Xr("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Se(this.$$element))},$render:N,$isEmpty:function(e){return j(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,Jr),this.$$animate.addClass(this.$$element,Kr)):(this.$$animate.removeClass(this.$$element,Kr),this.$$animate.addClass(this.$$element,Jr))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Wr),this.$$animate.addClass(this.$$element,Vr)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Vr),this.$$animate.addClass(this.$$element,Wr),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,Qr,zr)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,zr,Qr)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!O(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,a=this.$modelValue,o=this.$options.getOption("allowInvalid"),r=this;this.$$runValidators(t,e,(function(e){o||n===e||(r.$modelValue=e?t:void 0,r.$modelValue!==a&&r.$$writeModelToScope())}))}},$$runValidators:function(e,t,n){this.$$currentValidationRunId++;var a,o,r=this.$$currentValidationRunId,i=this;(function(){var e=i.$$parserName;if(!j(i.$$parserValid))return i.$$parserValid||(E(i.$validators,(function(e,t){s(t,null)})),E(i.$asyncValidators,(function(e,t){s(t,null)}))),s(e,i.$$parserValid),i.$$parserValid;s(e,null);return!0})()?!function(){var n=!0;if(E(i.$validators,(function(a,o){var r=Boolean(a(e,t));n=n&&r,s(o,r)})),!n)return E(i.$asyncValidators,(function(e,t){s(t,null)})),!1;return!0}()?l(!1):(a=[],o=!0,E(i.$asyncValidators,(function(n,r){var i=n(e,t);if(!Z(i))throw Xr("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",i);s(r,void 0),a.push(i.then((function(){s(r,!0)}),(function(){o=!1,s(r,!1)})))})),a.length?i.$$q.all(a).then((function(){l(o)}),N):l(!0)):l(!1);function s(e,t){r===i.$$currentValidationRunId&&i.$setValidity(e,t)}function l(e){r===i.$$currentValidationRunId&&n(e)}},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!j(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(j(e=this.$parsers[n](e))){this.$$parserValid=!1;break}O(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var a=this.$modelValue,o=this.$options.getOption("allowInvalid");function r(){t.$modelValue!==a&&t.$$writeModelToScope()}this.$$rawModelValue=e,o&&(this.$modelValue=e,r()),this.$$runValidators(e,this.$$lastCommittedViewValue,(function(n){o||(t.$modelValue=n?e:void 0,r())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),E(this.$viewChangeListeners,(function(e){try{e()}catch(e){this.$$exceptionHandler(e)}}),this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");B(t[e])?t=t[e]:B(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:B(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,N))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Xo({clazz:Zr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var ei,ti=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Zr,priority:1,compile:function(t){return t.addClass(Vr).addClass(Qr).addClass(Br),{pre:function(e,t,n,a){var o=a[0],r=a[1]||o.$$parentForm,i=a[2];i&&(o.$options=i.$options),o.$$initGetterSetters(),r.$addControl(o),n.$observe("name",(function(e){o.$name!==e&&o.$$parentForm.$$renameControl(o,e)})),e.$on("$destroy",(function(){o.$$parentForm.$removeControl(o)}))},post:function(t,n,a,o){var r=o[0];function i(){r.$setTouched()}r.$$setUpdateOnEvents(),n.on("blur",(function(){r.$touched||(e.$$phase?t.$evalAsync(i):t.$apply(i))}))}}}}}],ni=/(\s+|^)default(\s+|$)/;function ai(e){this.$$options=e}ai.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return E(e=x({},e),(function(n,a){"$inherit"===n?"*"===a?t=!0:(e[a]=this.$$options[a],"updateOn"===a&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===a&&(e.updateOnDefault=!1,e[a]=te(n.replace(ni,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],ri(e,this.$$options)),ri(e,ei.$$options),new ai(e)}},ei=new ai({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var oi=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:ei,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function ri(e,t){E(t,(function(t,n){F(e[n])||(e[n]=t)}))}var ii=qo({terminal:!0,priority:1e3}),si=r("ngOptions"),li=/^\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]+?))?$/,ci=["$compile","$document","$parse",function(t,n,a){var o=e.document.createElement("option"),r=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,a){a[0].registerOption=N},post:function(e,i,l,c){for(var u=c[0],d=c[1],f=l.multiple,m=0,p=i.children(),g=p.length;m<g;m++)if(""===p[m].value){u.hasEmptyOption=!0,u.emptyOption=p.eq(m);break}i.empty();var h,_=!!u.emptyOption;s(o.cloneNode(!1)).val("?");var b=function(e,t,n){var o=e.match(li);if(!o)throw si("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Se(t));var r=o[5]||o[7],i=o[6],s=/ as /.test(o[0])&&o[1],l=o[9],c=a(o[2]?o[1]:r),u=s&&a(s)||c,d=l&&a(l),f=l?function(e,t){return d(n,t)}:function(e){return Ft(e)},m=function(e,t){return f(e,y(e,t))},p=a(o[2]||o[1]),g=a(o[3]||""),h=a(o[4]||""),_=a(o[8]),b={},y=i?function(e,t){return b[i]=t,b[r]=e,b}:function(e){return b[r]=e,b};function v(e,t,n,a,o){this.selectValue=e,this.viewValue=t,this.label=n,this.group=a,this.disabled=o}function A(e){var t;if(!i&&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:m,getWatchables:a(_,(function(e){for(var t=[],a=A(e=e||[]),r=a.length,i=0;i<r;i++){var s=e===a?i:a[i],l=e[s],c=y(l,s),u=f(l,c);if(t.push(u),o[2]||o[1]){var d=p(n,c);t.push(d)}if(o[4]){var m=h(n,c);t.push(m)}}return t})),getOptions:function(){for(var e=[],t={},a=_(n)||[],o=A(a),r=o.length,i=0;i<r;i++){var s=a===o?i:o[i],c=a[s],d=y(c,s),b=u(n,d),S=f(b,d),w=new v(S,b,p(n,d),g(n,d),h(n,d));e.push(w),t[S]=w}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[m(e)]},getViewValueFromOption:function(e){return l?se(e.viewValue):e.viewValue}}}}}(l.ngOptions,i,e),y=n[0].createDocumentFragment();function v(e,t){var n=o.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 A(e){var t=h.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}u.generateUnknownOptionValue=function(e){return"?"},f?(u.writeValue=function(e){if(h){var t=e&&e.map(A)||[];h.items.forEach((function(e){e.element.selected&&!re(t,e)&&(e.element.selected=!1)}))}},u.readValue=function(){var e=i.val()||[],t=[];return E(e,(function(e){var n=h.selectValueMap[e];n&&!n.disabled&&t.push(h.getViewValueFromOption(n))})),t},b.trackBy&&e.$watchCollection((function(){if(V(d.$viewValue))return d.$viewValue.map((function(e){return b.getTrackByValue(e)}))}),(function(){d.$render()}))):(u.writeValue=function(e){if(h){var t=i[0].options[i[0].selectedIndex],n=h.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(i[0].value!==n.selectValue&&(u.removeUnknownOption(),i[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):u.selectUnknownOrEmptyOption(e)}},u.readValue=function(){var e=h.selectValueMap[i.val()];return e&&!e.disabled?(u.unselectEmptyOption(),u.removeUnknownOption(),h.getViewValueFromOption(e)):null},b.trackBy&&e.$watch((function(){return b.getTrackByValue(d.$viewValue)}),(function(){d.$render()}))),_&&(t(u.emptyOption)(e),i.prepend(u.emptyOption),8===u.emptyOption[0].nodeType?(u.hasEmptyOption=!1,u.registerOption=function(e,t){""===t.val()&&(u.hasEmptyOption=!0,u.emptyOption=t,u.emptyOption.removeClass("ng-scope"),d.$render(),t.on("$destroy",(function(){var e=u.$isEmptyOptionSelected();u.hasEmptyOption=!1,u.emptyOption=void 0,e&&d.$render()})))}):u.emptyOption.removeClass("ng-scope")),e.$watchCollection(b.getWatchables,(function(){var e=h&&u.readValue();if(h)for(var t=h.items.length-1;t>=0;t--){var n=h.items[t];F(n.group)?xt(n.element.parentNode):xt(n.element)}h=b.getOptions();var a={};if(h.items.forEach((function(e){var t;F(e.group)?((t=a[e.group])||(t=r.cloneNode(!1),y.appendChild(t),t.label=null===e.group?"null":e.group,a[e.group]=t),v(e,t)):v(e,y)})),i[0].appendChild(y),d.$render(),!d.$isEmpty(e)){var o=u.readValue();(b.trackBy||f?ce(e,o):e===o)||(d.$setViewValue(o),d.$render())}}))}}}}],ui=["$locale","$interpolate","$log",function(e,t,n){var a=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(r,i,s){var l,c=s.count,u=s.$attr.when&&i.attr(s.$attr.when),d=s.offset||0,f=r.$eval(u)||{},p={},g=t.startSymbol(),h=t.endSymbol(),_=g+c+"-"+d+h,b=A.noop;function y(e){i.text(e||"")}E(s,(function(e,t){var n=o.exec(t);if(n){var a=(n[1]?"-":"")+m(n[2]);f[a]=i.attr(s.$attr[t])}})),E(f,(function(e,n){p[n]=t(e.replace(a,_))})),r.$watch(c,(function(t){var a=parseFloat(t),o=O(a);if(o||a in f||(a=e.pluralCat(a-d)),!(a===l||o&&O(l))){b();var i=p[a];j(i)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+a+"' in "+u),b=N,y()):b=r.$watch(i,y),l=a}}))}}}],di=r("ngRef"),fi=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var a=Sn(oe(t)),o=e(n.ngRef),r=o.assign||function(){throw di("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,i){var s;if(i.hasOwnProperty("ngRefRead")){if("$element"===i.ngRefRead)s=t;else if(!(s=t.data("$"+i.ngRefRead+"Controller")))throw di("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',i.ngRefRead,n.ngRef)}else s=t.data("$"+a+"Controller");r(e,s=s||t),t.on("$destroy",(function(){o(e)===s&&r(e,null)}))}}}}],mi=["$parse","$animate","$compile",function(e,t,n){var a="$$NG_REMOVED",o=r("ngRepeat"),i=function(e,t,n,a,o,r,i){e[n]=a,o&&(e[o]=r),e.$index=t,e.$first=0===t,e.$last=t===i-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]},c=function(e,t,n){return Ft(n)},u=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,d){var m=d.ngRepeat,p=n.$$createComment("end ngRepeat",m),g=m.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",m);var h=g[1],_=g[2],b=g[3],y=g[4];if(!(g=h.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);var v,A=g[3]||g[1],S=g[2];if(b&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(b)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(b)))throw o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",b);if(y){var C={$id:Ft},T=e(y);v=function(e,t,n,a){return S&&(C[S]=t),C[A]=n,C.$index=a,T(e,C)}}return function(e,n,r,d,g){var h=qe();e.$watchCollection(_,(function(r){var d,_,y,T,I,k,D,x,M,P,O,R,N=n[0],L=qe();if(b&&(e[b]=r),w(r))M=r,x=v||c;else for(var $ in x=v||u,M=[],r)f.call(r,$)&&"$"!==$.charAt(0)&&M.push($);for(T=M.length,O=new Array(T),d=0;d<T;d++)if(I=r===M?d:M[d],k=r[I],D=x(e,I,k,d),h[D])P=h[D],delete h[D],L[D]=P,O[d]=P;else{if(L[D])throw E(O,(function(e){e&&e.scope&&(h[e.id]=e)})),o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",m,D,k);O[d]={id:D,scope:void 0,clone:void 0},L[D]=!0}for(var U in C&&(C[A]=void 0),h){if(R=Fe((P=h[U]).clone),t.leave(R),R[0].parentNode)for(d=0,_=R.length;d<_;d++)R[d][a]=!0;P.scope.$destroy()}for(d=0;d<T;d++)if(I=r===M?d:M[d],k=r[I],(P=O[d]).scope){y=N;do{y=y.nextSibling}while(y&&y[a]);s(P)!==y&&t.move(Fe(P.clone),null,N),N=l(P),i(P.scope,d,A,k,S,I,T)}else g((function(e,n){P.scope=n;var a=p.cloneNode(!1);e[e.length++]=a,t.enter(e,null,N),N=a,P.clone=e,L[P.id]=P,i(P.scope,d,A,k,S,I,T)}));h=L}))}}}}],pi="ng-hide",gi="ng-hide-animate",hi=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,a){t.$watch(a.ngShow,(function(t){e[t?"removeClass":"addClass"](n,pi,{tempClasses:gi})}))}}}],_i=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,a){t.$watch(a.ngHide,(function(t){e[t?"addClass":"removeClass"](n,pi,{tempClasses:gi})}))}}}],bi=qo((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&E(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),yi=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,a,o,r){var i=o.ngSwitch||o.on,s=[],l=[],c=[],u=[],d=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(i,(function(n){for(var a,o;c.length;)e.cancel(c.pop());for(a=0,o=u.length;a<o;++a){var i=Fe(l[a].clone);u[a].$destroy(),(c[a]=e.leave(i)).done(d(c,a))}l.length=0,u.length=0,(s=r.cases["!"+n]||r.cases["?"])&&E(s,(function(n){n.transclude((function(a,o){u.push(o);var r=n.element;a[a.length++]=t.$$createComment("end ngSwitchWhen");var i={clone:a};l.push(i),e.enter(a,r.parent(),r)}))}))}))}}}],vi=qo({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,a,o){E(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e})),(function(e){a.cases["!"+e]=a.cases["!"+e]||[],a.cases["!"+e].push({transclude:o,element:t})}))}}),Ai=qo({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,a,o){a.cases["?"]=a.cases["?"]||[],a.cases["?"].push({transclude:o,element:t})}}),Si=r("ngTransclude"),wi=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,a,o,r){if(!r)throw Si("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Se(t));a.ngTransclude===a.$attr.ngTransclude&&(a.ngTransclude="");var i=a.ngTransclude||a.ngTranscludeSlot;function s(){n(e,(function(e){t.append(e)}))}r((function(e,n){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var a=e[t];if(a.nodeType!==He||a.nodeValue.trim())return!0}}(e)?t.append(e):(s(),n.$destroy())}),null,i),i&&!r.isSlotFilled(i)&&s()}}}}],Ei=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var a=n.id,o=t[0].text;e.put(a,o)}}}}],Ci={$setViewValue:N,$render:N};function Ti(e,t){e.prop("selected",t),e.attr("selected",t)}var Ii=["$element","$scope",function(t,n){var a=this,o=new Ht;a.selectValueMap={},a.ngModelCtrl=Ci,a.multiple=!1,a.unknownOption=s(e.document.createElement("option")),a.hasEmptyOption=!1,a.emptyOption=void 0,a.renderUnknownOption=function(e){var n=a.generateUnknownOptionValue(e);a.unknownOption.val(n),t.prepend(a.unknownOption),Ti(a.unknownOption,!0),t.val(n)},a.updateUnknownOption=function(e){var n=a.generateUnknownOptionValue(e);a.unknownOption.val(n),Ti(a.unknownOption,!0),t.val(n)},a.generateUnknownOptionValue=function(e){return"? "+Ft(e)+" ?"},a.removeUnknownOption=function(){a.unknownOption.parent()&&a.unknownOption.remove()},a.selectEmptyOption=function(){a.emptyOption&&(t.val(""),Ti(a.emptyOption,!0))},a.unselectEmptyOption=function(){a.hasEmptyOption&&Ti(a.emptyOption,!1)},n.$on("$destroy",(function(){a.renderUnknownOption=N})),a.readValue=function(){var e=t.val(),n=e in a.selectValueMap?a.selectValueMap[e]:e;return a.hasOption(n)?n:null},a.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&Ti(s(n),!1),a.hasOption(e)){a.removeUnknownOption();var o=Ft(e);t.val(o in a.selectValueMap?o:e);var r=t[0].options[t[0].selectedIndex];Ti(s(r),!0)}else a.selectUnknownOrEmptyOption(e)},a.addOption=function(e,t){if(8!==t[0].nodeType){je(e,'"option value"'),""===e&&(a.hasEmptyOption=!0,a.emptyOption=t);var n=o.get(e)||0;o.set(e,n+1),i()}},a.removeOption=function(e){var t=o.get(e);t&&(1===t?(o.delete(e),""===e&&(a.hasEmptyOption=!1,a.emptyOption=void 0)):o.set(e,t-1))},a.hasOption=function(e){return!!o.get(e)},a.$hasEmptyOption=function(){return a.hasEmptyOption},a.$isUnknownOptionSelected=function(){return t[0].options[0]===a.unknownOption[0]},a.$isEmptyOptionSelected=function(){return a.hasEmptyOption&&t[0].options[t[0].selectedIndex]===a.emptyOption[0]},a.selectUnknownOrEmptyOption=function(e){null==e&&a.emptyOption?(a.removeUnknownOption(),a.selectEmptyOption()):a.unknownOption.parent().length?a.updateUnknownOption(e):a.renderUnknownOption(e)};var r=!1;function i(){r||(r=!0,n.$$postDigest((function(){r=!1,a.ngModelCtrl.$render()})))}var l=!1;function c(e){l||(l=!0,n.$$postDigest((function(){n.$$destroyed||(l=!1,a.ngModelCtrl.$setViewValue(a.readValue()),e&&a.ngModelCtrl.$render())})))}a.registerOption=function(e,t,n,o,r){var s,l;n.$attr.ngValue?n.$observe("value",(function(e){var n,o=t.prop("selected");F(l)&&(a.removeOption(s),delete a.selectValueMap[l],n=!0),l=Ft(e),s=e,a.selectValueMap[l]=e,a.addOption(e,t),t.attr("value",l),n&&o&&c()})):o?n.$observe("value",(function(e){var n;a.readValue();var o=t.prop("selected");F(s)&&(a.removeOption(s),n=!0),s=e,a.addOption(e,t),n&&o&&c()})):r?e.$watch(r,(function(e,o){n.$set("value",e);var r=t.prop("selected");o!==e&&a.removeOption(o),a.addOption(e,t),o&&r&&c()})):a.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(a.multiple?c(!0):(a.ngModelCtrl.$setViewValue(null),a.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=a.readValue(),t=n.value;a.removeOption(t),i(),(a.multiple&&e&&-1!==e.indexOf(t)||e===t)&&c(!0)}))}}],ki=function(){return{restrict:"E",require:["select","?ngModel"],controller:Ii,priority:1,link:{pre:function(e,t,n,a){var o=a[0],r=a[1];if(!r)return void(o.registerOption=N);if(o.ngModelCtrl=r,t.on("change",(function(){o.removeUnknownOption(),e.$apply((function(){r.$setViewValue(o.readValue())}))})),n.multiple){o.multiple=!0,o.readValue=function(){var e=[];return E(t.find("option"),(function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in o.selectValueMap?o.selectValueMap[n]:n)}})),e},o.writeValue=function(e){E(t.find("option"),(function(t){var n=!!e&&(re(e,t.value)||re(e,o.selectValueMap[t.value]));n!==t.selected&&Ti(s(t),n)}))};var i,l=NaN;e.$watch((function(){l!==r.$viewValue||ce(i,r.$viewValue)||(i=Be(r.$viewValue),r.$render()),l=r.$viewValue})),r.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,a){var o=a[1];if(!o)return;var r=a[0];o.$render=function(){r.writeValue(o.$viewValue)}}}}},Di=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var a,o;return F(n.ngValue)||(F(n.value)?a=e(n.value,!0):(o=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var r="$selectController",i=t.parent(),s=i.data(r)||i.parent().data(r);s&&s.registerOption(e,t,n,a,o)}}}}],xi=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,a,o){if(o){var r=a.hasOwnProperty("required")||e(a.ngRequired)(t);a.ngRequired||(a.required=!0),o.$validators.required=function(e,t){return!r||!o.$isEmpty(t)},a.$observe("required",(function(e){r!==e&&(r=e,o.$validate())}))}}}}],Mi=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var a,o;return n.ngPattern&&(a=n.ngPattern,o="/"===n.ngPattern.charAt(0)&&u.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,r){if(r){var i=n.pattern;n.ngPattern?i=o(e):a=n.pattern;var s=Ri(i,a,t);n.$observe("pattern",(function(e){var n=s;s=Ri(e,a,t),(n&&n.toString())!==(s&&s.toString())&&r.$validate()})),r.$validators.pattern=function(e,t){return r.$isEmpty(t)||j(s)||s.test(t)}}}}}}],Pi=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,a,o){if(o){var r=a.maxlength||e(a.ngMaxlength)(t),i=Ni(r);a.$observe("maxlength",(function(e){r!==e&&(i=Ni(e),r=e,o.$validate())})),o.$validators.maxlength=function(e,t){return i<0||o.$isEmpty(t)||t.length<=i}}}}}],Oi=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,a,o){if(o){var r=a.minlength||e(a.ngMinlength)(t),i=Ni(r)||-1;a.$observe("minlength",(function(e){r!==e&&(i=Ni(e)||-1,r=e,o.$validate())})),o.$validators.minlength=function(e,t){return o.$isEmpty(t)||t.length>=i}}}}}];function Ri(e,t,n){if(e){if(H(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,Se(n));return e}}function Ni(e){var t=P(e);return O(t)?-1:t}e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!Ne){var n=de();(l=j(n)?a:n?e[n]:void 0)&&l.fn.on?(s=l,x(l.fn,{scope:Pt.scope,isolateScope:Pt.isolateScope,controller:Pt.controller,injector:Pt.injector,inheritedData:Pt.inheritedData})):s=pt,t=s.cleanData,s.cleanData=function(e){for(var n,a,o=0;null!=(a=e[o]);o++)(n=(s._data(a)||{}).events)&&n.$destroy&&s(a).triggerHandler("$destroy");t(e)},A.element=s,Ne=!0}}(),function(t){x(t,{errorHandlingConfig:n,bootstrap:xe,copy:se,extend:x,merge:M,equals:ce,element:s,forEach:E,injector:Zt,noop:N,bind:pe,toJson:he,fromJson:_e,identity:L,isUndefined:j,isDefined:F,isString:H,isFunction:Q,isObject:q,isNumber:B,isElement:ae,isArray:V,version:Ve,isDate:G,callbacks:{$$counter:0},getTestability:Pe,reloadWithDebugInfo:Me,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Le,$$minErr:r,$$csp:ue,$$encodeUriSegment:Ce,$$encodeUriQuery:Te,$$lowercase:m,$$stringify:Ye,$$uppercase:p}),(c=function(e){var t=r("$injector"),n=r("ng");function a(e,t,n){return e[t]||(e[t]=n())}var o=a(e,"angular",Object);return o.$$minErr=o.$$minErr||r,a(o,"module",(function(){var e={};return function(o,r,i){var s={};return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(o),r&&e.hasOwnProperty(o)&&(e[o]=null),a(e,o,(function(){if(!r)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.",o);var e=[],a=[],l=[],c=d("$injector","invoke","push",a),u={_invokeQueue:e,_configBlocks:a,_runBlocks:l,info:function(e){if(F(e)){if(!q(e))throw n("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:r,name:o,provider:f("$provide","provider"),factory:f("$provide","factory"),service:f("$provide","service"),value:d("$provide","value"),constant:d("$provide","constant","unshift"),decorator:f("$provide","decorator",a),animation:f("$animateProvider","register"),filter:f("$filterProvider","register"),controller:f("$controllerProvider","register"),directive:f("$compileProvider","directive"),component:f("$compileProvider","component"),config:c,run:function(e){return l.push(e),this}};return i&&c(i),u;function d(t,n,a,o){return o||(o=e),function(){return o[a||"push"]([t,n,arguments]),u}}function f(t,n,a){return a||(a=e),function(e,r){return r&&Q(r)&&(r.$$moduleName=o),a.push([t,n,arguments]),u}}}))}}))}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Va}),e.provider("$compile",bn).directive({a:Yo,input:Sr,textarea:Sr,form:zo,script:Ei,select:ki,option:Di,ngBind:Tr,ngBindHtml:kr,ngBindTemplate:Ir,ngClass:Mr,ngClassEven:Or,ngClassOdd:Pr,ngCloak:Rr,ngController:Nr,ngForm:Ko,ngHide:_i,ngIf:jr,ngInclude:Fr,ngInit:Yr,ngNonBindable:ii,ngPluralize:ui,ngRef:fi,ngRepeat:mi,ngShow:hi,ngStyle:bi,ngSwitch:yi,ngSwitchWhen:vi,ngSwitchDefault:Ai,ngOptions:ci,ngTransclude:wi,ngModel:ti,ngList:Hr,ngChange:Dr,pattern:Mi,ngPattern:Mi,required:xi,ngRequired:xi,minlength:Oi,ngMinlength:Oi,maxlength:Pi,ngMaxlength:Pi,ngValue:Cr,ngModelOptions:oi}).directive({ngInclude:qr,input:wr}).directive(Ho).directive(Lr),e.provider({$anchorScroll:en,$animate:ln,$animateCss:dn,$$animateJs:rn,$$animateQueue:sn,$$AnimateRunner:un,$$animateAsyncRun:cn,$browser:mn,$cacheFactory:pn,$controller:kn,$document:Dn,$$isDocumentHidden:xn,$exceptionHandler:Mn,$filter:bo,$$forceReflow:Pn,$interpolate:Jn,$interval:Zn,$$intervalFactory:ea,$http:Wn,$httpParamSerializer:Fn,$httpParamSerializerJQLike:qn,$httpBackend:zn,$xhrFactory:Qn,$jsonpCallbacks:ta,$location:ba,$log:ya,$parse:$a,$rootScope:Ga,$q:Ua,$$q:ja,$sce:Za,$sceDelegate:Xa,$sniffer:eo,$$taskTrackerFactory:to,$templateCache:gn,$templateRequest:oo,$$testability:ro,$timeout:so,$window:go,$$rAF:Ba,$$jqLite:jt,$$Map:Bt,$$cookieReader:_o})}]).info({angularVersion:"1.8.2"})}(A),A.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,a){var o=0|e,r=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 a=Math.pow(10,n);return{v:n,f:(e*a|0)%a}}(e,a);return 1==o&&0==r.v?t:n}})}]),s((function(){De(e.document,xe)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@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;}'))},"./node_modules/angular/index.js":(e,t,n)=>{n("./node_modules/angular/angular.js"),e.exports=angular},"./src/js/index.module.js":(e,t,n)=>{"use strict";var a=n("./node_modules/moment/moment.js"),o=n.n(a);n("./node_modules/moment-duration-format/lib/moment-duration-format.js");(0,n("./node_modules/moment-range/dist/moment-range.js").extendMoment)(o());n("./node_modules/@xenialab/angular-toasty/dist/angular-toasty.js");function r(e){e.interceptors.push("authInterceptor")}r.$inject=["$httpProvider"];const i=r;function s(e){e.onBefore({to:function(e){return!0===e.authenticate}},(function(e){const t=e.injector().get("Auth"),n=e.router.stateService;return t.isLoggedIn()?t.retrieveUser().catch((function(){return n.target("app.login",void 0,{reload:!0})})):n.target("app.login",void 0,{reload:!0})})),e.onStart({to:function(e){return"app.login"!==e.name}},(function(e){const t=e.injector().get("Auth"),n=e.router.stateService,a=e.$to();if(t.hasRole("agent")&&"app.dashboards.general"!=a.name)return n.target("app.dashboards.general",{redirect:!1},{reload:!0})})),e.onFinish({to:function(e){return e.permissionId}},(function(e){const t=e.injector().get("Auth"),n=e.router.stateService,a=e.$to();if(t.hasRole("user")){if(!t.hasPermission(a.permissionId))return n.target("app.dashboards.general",{redirect:!1},{reload:!0});{const o=e.params().id?Number(e.params().id):void 0;if(o)return t.hasResourcePermission(a.permissionId,o).catch((function(){return n.target(a.parent.name,{redirect:!1},{reload:!0})}))}}})),e.onFinish({to:function(e){return"app.dashboards.general"===e.parent.name}},(function(e){const t=e.injector().get("Auth"),n=e.router.stateService;if(t.hasRole("user")&&!t.hasPermission(100))return n.target("app.dashboards.general",{redirect:!1},{reload:!0})}))}s.$inject=["$transitions"];const l=s;var c=n("./node_modules/lodash/lodash.js"),u=n.n(c);const d=n.p+"templates/auth/services/hotdesk/dialog.html/dialog.html";function f(e,t,n,a,r,i,s){let l;return{getToken:c,getCurrentUser:function(){return l},getPermissions:y,hasChildrenPermissions:function(e){return!!e&&u().some(e,(function(e){return b(e)}))},hasModulePermissions:function(e){return n((function(t,n){h()?t(!0):i.userProfileSection.get({userProfileId:l.userProfileId}).$promise.then((function(n){const a=n&&n.rows?n.rows:[];if(u().isEmpty(a))t(!1);else{const n=u().filter(a,(function(e){return e.enabled}));t(u().some(n,["category",e]))}})).catch((function(e){n(e)}))}))},hasModulesPermissions:function(e){return n((function(t,n){const a={};h()?(e.forEach((function(e){a[e]=!0})),t(a)):i.userProfileSection.get({userProfileId:l.userProfileId}).$promise.then((function(n){const o=n&&n.rows?n.rows:[];if(u().isEmpty(o))t({});else{u()(o).filter((function(t){return t.enabled&&u().includes(e,t.category)})).uniqBy((function(e){return e.category})).map((function(e){return e.category})).value().forEach((function(e){a[e]=!0})),t(a)}})).catch((function(e){n(e)}))}))},hasRole:function(e){return!!l&&l.role===e},hasPermission:b,hasResourcePermission:function(e,t){return n((function(n,a){return i.userProfileSection.get({userProfileId:l.userProfileId,sectionId:e}).$promise.then((function(e){const o=e.rows[0];if(o.autoAssociation)return n();const r=s.getActiveItem().node;return r.permissions&&!1===r.permissions.association?n():i.userProfileResource.get({sectionId:o.id,nolimit:!0}).$promise.then((function(e){const o=e.rows;u().some(o,["resourceId",t])?n():a()}))})).catch((function(e){a("Error retrieving user profile permissions",e)}))}))},hasSectionPermissions:function(e){return n((function(t,n){const a={};return v().then((function(){u().includes(l.permissions,e)&&(a[e]=!0),t(a)})).catch((function(e){n(e)}))}))},hasSectionsPermissions:function(e){return n((function(t,n){const a={};if(!h())return v().then((function(){e.forEach((function(e){u().includes(l.permissions,e)&&(a[e]=!0)})),t(a)})).catch((function(e){n(e)}));e.forEach((function(e){a[e]=!0})),t(a)}))},isAgent:g,isAdmin:h,isLoggedIn:function(){return!!c()},isTelephone:function(){return"telephone"===l.role},isUser:_,login:function(a){return n((function(n,s){i.auth.local(a).$promise.then((function(e){return t.put("motion.token",e.token),i.user.get({id:e.id}).$promise})).then((function(e){l=e,l.lastLoginAt=o()().format("YYYY-MM-DD HH:mm:ss"),A("LOCAL_LOGIN")})).then((function(){if(g()&&1===l.showWebBar&&l.hotdesk)return e.show({controller:"HotDeskDialogController",controllerAs:"vm",templateUrl:d,parent:angular.element(r.body),clickOutsideToClose:!1,resolve:{telephones:["apiResolver",function(e){return e.resolve("user@get",{fields:"id,fullname,name,internal",role:"telephone",nolimit:!0})}]}})})).then((function(e){return g()&&0!==l.showWebBar?f(e):h()||_()?m(!0):void 0})).then((function(e){l=u().assign(l,e),n()})).catch((function(e){s(e)}))}))},logout:function(e){return n((function(t,a){e?(p(),t()):n.resolve().then((function(){return g()&&0!==l.showWebBar?n((function(e,t){i.user.logout({id:l.id,device:"web"}).$promise.then((function(){e()})).catch((function(e){t(e)}))})):h()||_()?m(!1):void 0})).then((function(){p(),t()})).catch((function(e){a(e)}))}))},parseCrudPermissions:function(e){return h()?{readOnly:!1,canEdit:!0,canDelete:!0}:e?{readOnly:!(!u().includes(e,"r")||1!==e.length),canEdit:!!u().includes(e,"e"),canDelete:!!u().includes(e,"d")}:{readOnly:!0,canEdit:!1,canDelete:!1}},queueLogin:f,reloadPermissions:v,removeCookies:p,retrieveUser:function(){return n((function(e,t){i.user.whoami().$promise.then((function(e){return"user"===e.role?y(e.userProfileId).then((function(t){return e.permissions=t,e})):e})).then((function(t){l=t,e(l)})).catch((function(e){t(e)}))}))},setCurrentUser:function(e){l=u().merge(l,e)},getAuthenticationType:function(){return a.localStorage["motion.authenticationtype"]||"NONE"},loginSSO:function(e){return A("SSO_LOGIN"),"/api/auth/"+e}};function c(){return t.get("motion.token")}function f(e){return n((function(t,n){i.user.login({id:l.id,device:"web",intrf:e}).$promise.then((function(e){t(e)})).catch((function(e){n(e)}))}))}function m(e){return n((function(t,n){const a={online:e,lastLoginAt:e?o()().format("YYYY-MM-DD HH:mm:ss"):void 0};i.user.update({id:l.id},a).$promise.then((function(e){t(e)})).catch((function(e){n(e)}))}))}function p(){t.remove("motion.token"),l&&(a.localStorage.removeItem("motion.user:"+l.id),a.localStorage.removeItem("motion.authenticationtype"),l=null)}function g(){return"agent"===l.role}function h(){return"admin"===l.role}function _(){return"user"===l.role}function b(e){return!!l&&u().includes(l.permissions,e)}function y(e){let t=[];return n((function(n,a){return e||n(t),i.userProfile.getSections({id:e}).$promise.then((function(e){for(let n=0;n<e.length;n++){const a=e[n];t.push(a.sectionId),a.subsections&&(t=u().concat(t,a.subsections))}return t})).then((function(e){n(e)})).catch((function(e){a("Error retrieving user profile permissions",e)}))}))}function v(){return n((function(e,t){y(l.userProfileId).then((function(t){l.permissions=t,e()})).catch((function(e){t(e)}))}))}function A(e){a.localStorage["motion.authenticationtype"]=e}}f.$inject=["$mdDialog","$cookies","$q","$window","$document","api","msNavigationService"];const m=f;function p(e,t){const n=this;n.telephones=t,n.closeDialog=function(t){e.hide(t)},t.count&&(n.name=t.rows[0].name)}p.$inject=["$mdDialog","telephones"];const g=p;function h(e,t,n,a,o){let r;return{request:function(e){const t=n.get("motion.token");return e.headers=e.headers||{},o.isSameOrigin(e.url)&&t&&(e.headers.Authorization="Bearer "+t),e},responseError:function(e){switch(e.status){case 401:n.remove("motion.token"),(r||(r=a.get("$state"))).go("app.login")}return t.reject(e)}}}h.$inject=["$rootScope","$q","$cookies","$injector","Util"];const _=h;function b(e){const t={safeCb:function(e){return angular.isFunction(e)?e:angular.noop},urlParse:function(e){const t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t},isSameOrigin:function(n,a){return n=t.urlParse(n),(a=(a=a&&[].concat(a)||[]).map(t.urlParse)).push(e.location),(a=a.filter((function(e){const t=n.hostname===e.hostname,a=n.protocol===e.protocol,o=n.port===e.port||""===e.port&&("80"===n.port||"443"===n.port);return t&&a&&o}))).length>=1}};return t}b.$inject=["$window"];const y=b;angular.module("app.auth",[]).config(i).run(l).factory("Auth",m).controller("HotDeskDialogController",g).factory("authInterceptor",_).factory("Util",y);n("./node_modules/angular-animate/index.js"),n("./node_modules/angular-aria/index.js"),n("./node_modules/angular-cookies/index.js"),n("./node_modules/angular-messages/index.js"),n("./node_modules/angular-resource/index.js"),n("./node_modules/angular-sanitize/index.js"),n("./node_modules/angular-material/index.js"),n("./node_modules/angular-translate/dist/angular-translate.js"),n("./node_modules/angular-translate-loader-partial/angular-translate-loader-partial.js"),n("./node_modules/@uirouter/angularjs/release/angular-ui-router.js"),n("./node_modules/@uirouter/angularjs/release/stateEvents.js"),n("./node_modules/@xenialab/angular-gridster/dist/angular-gridster.min.js"),n("./node_modules/@xenialab/angular-clock/dist/angular-clock.min.js"),n("./node_modules/angucomplete-alt/angucomplete-alt.js");const v=function(){let e={disableCustomScrollbars:!1,disableMdInkRippleOnMobile:!0,disableCustomScrollbarsOnMobile:!0};function t(t){return!angular.isUndefined(e[t])&&e[t]}function n(t,n){e[t]=n}this.$get=function(){return{getConfig:t,setConfig:n}},this.config=function(t){e=angular.extend({},e,t)}};function A(e,t,n,a){t.debugEnabled(!0),e.config({tabindex:!1}),a.config({disableCustomScrollbars:!1,disableCustomScrollbarsOnMobile:!0,disableMdInkRippleOnMobile:!0}),n.config({wheelPropagation:!0})}A.$inject=["$ariaProvider","$logProvider","msScrollConfigProvider","motionConfigProvider"];const S=A;function w(e,t,n){if(t.generate(),n.getConfig("disableMdInkRippleOnMobile")&&e.isMobile()){angular.element("body").attr("md-no-ink",!0)}e.isMobile()&&angular.element("html").addClass("is-mobile");const a=e.detectBrowser();if(a){const e=a.browser+" "+a.version+" "+a.os;angular.element("html").addClass(e)}}w.$inject=["msUtils","motionGenerator","motionConfig"];const E=w;function C(e,t,n,a,o,r){const i=this;function s(){const e=u().filter(i.searchOptions.conditions,["disabled",!1]),t=[];let n="";if(u()(e).groupBy("name").forEach((function(e){const a=e[0],o=e.length>1,r=a.query.column;if(o){const t=u()(e).groupBy((function(e){return e.query.operator})).mapValues((function(e){return u().chain(e).map((function(e){return e.query.value})).flattenDeep().value()})).value(),a=[];u().keys(t).forEach((function(e){const n=t[e];let o=e;u().includes(["$between","$in","$notIn"],e)?o+="["+n+"]":n.forEach((function(e){o+="["+e+"]"})),a.push(o)})),n+=r+":="+a.join(":=")}else n=r+":="+a.query.operator+"["+a.query.value+"]";t.push(n)})),0===t.length)return;let a="["+i.searchOptions.matchType+"]";return a+=t.join("||"),a}function l(){const t=e.localStorage.getItem("motion2."+r+":"+i.currentUser.id);return t?JSON.parse(t):{}}function c(t){e.localStorage.setItem("motion2."+r+":"+i.currentUser.id,JSON.stringify(t))}function d(){if(r){const e=l();e.advancedSearch=u().omit(i.searchOptions,"fields"),c(e)}}function f(){return!!l().advancedSearch}i.currentUser=n.getCurrentUser(),i.searchOptions={matchType:"$and",conditions:[],fields:o},i.toolbarColor=a,i.onInit=function(){if(r){const e=l();void 0!==e.advancedSearch&&(i.searchOptions=u().merge(i.searchOptions,e.advancedSearch))}},i.applyFilter=function(){d(),t.hide({apply:!0,value:s()})},i.clearConditions=function(){i.searchOptions.conditions=[],function(){if(r){const e=l();delete e.advancedSearch,e.query&&delete e.query.search,c(e)}}()},i.minimize=function(){d(),t.hide({apply:!f(),value:s()||f()?!u().isEmpty(i.searchOptions.conditions):void 0})},i.close=function(){t.hide({apply:!f(),value:s()||f()?!u().isEmpty(i.searchOptions.conditions):void 0})}}C.$inject=["$window","$mdDialog","Auth","color","fields","storagePath"];const T=C;function I(e){return{restrict:"A",link:function(t,n,a){t.$watch(a.focusOn,(function(t){e((function(){t?n[0].focus():n[0].blur()}))}))}}}I.$inject=["$timeout"];const k=I;var D=n("./node_modules/highlightjs/highlight.pack.js"),x=n.n(D);function M(e,t,n){return{restrict:"E",compile:function(a,o){let r;return o.code||(r=a.html(),a.empty()),function(a,o,i){i.code&&(r=a.$eval(i.code));const s=a.$eval(i.shouldInterpolate);t.when(r).then((function(t){if(t){s&&(t=n(t)(a));const r=angular.element('<pre><code class="highlight" ng-non-bindable></code></pre>');o.append(r),e((function(){!function(e,t){const n=t.find("code");let a=e.split("\n");a=a.filter((function(e){return e.trim().length}));const o=a[0].match(/^\s*/)[0],r=new RegExp("^"+o);a=a.map((function(e){return e.replace(r,"").replace(/\s+$/,"")}));const s=x().highlight(i.language||i.lang,a.join("\n"),!0);s.value=s.value.replace(/=<span class="hljs-value">""<\/span>/gi,"").replace("<head>","").replace("<head/>",""),n.append(s.value).addClass("highlight")}(t,r)}),34,!1)}}))}}}}M.$inject=["$timeout","$q","$interpolate"];const P=M,O=n.p+"templates/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search.html";function R(e,t,n,a){const r=this;function i(){const e=r.selectedField.options&&!u().isEmpty(r.selectedField.options.extraOperators),t=r.selectedField.options&&!u().isEmpty(r.selectedField.options.excludedOperators);r.availableOperators=u().filter(r.operators,(function(n){const a=!n.applyTo||u().includes(n.applyTo,r.selectedField.type);n.isExtra=e&&u().some(r.selectedField.options.extraOperators,(function(e){return e===n.type}));const o=u().includes(n.excludeFrom,r.selectedField.type)||t&&u().includes(r.selectedField.options.excludedOperators,n.type);if((a||n.isExtra)&&!o)return n}))}function s(){!r.value||u().isArray(r.value)&&u().isEmpty(r.value)?r.isValidCondition=!1:r.selectedOperator&&"$between"===r.selectedOperator.type?r.isValidCondition=!(!r.endRangeValue||!r.isValidRange):r.isValidCondition=!0}function l(){"number"===r.selectedField.type?u().isNumber(r.endRangeValue)?r.isValidRange=Number(r.endRangeValue)>Number(r.value):r.isValidRange=!0:"date"===r.selectedField.type&&(r.maxDateRange=o()(r.endRangeValue).subtract(1,"day"),r.isValidRange=!0),s()}function c(){const e=f();r.options.conditions.push(e),g()}function d(){const e=f(),t=u().findIndex(r.options.conditions,"style");r.options.conditions.splice(t,1,e),g(),r.pendingCondition.style=null,r.pendingCondition=void 0}function f(){return{name:r.selectedField.name,operator:e.instant("DASHBOARDS."+r.selectedOperator.translate),value:r.value,endValue:r.endRangeValue,displayValue:m(r.value),displayEndValue:m(r.endRangeValue),query:{column:r.selectedField.column,operator:r.selectedOperator.type,value:p()},disabled:!1}}function m(e){let t;if(e){switch(r.selectedField.type){case"date":t=o()(e).format("YYYY-MM-DD");break;case"multiselect":{const n=u().map(e,(function(e){return e.name}));t="$eq"===r.selectedOperator.type?n.join(" or "):n.join(" and ")}break;case"select":t=e.name;break;case"autocomplete":t=r.selectedOperator.isExtra?e:e.displayValue;break;default:t=e}return t}}function p(){const e=r.value,t=r.endRangeValue;let n;switch(r.selectedField.type){case"date":{const a=o()(e).utcOffset(0,!0).format("YYYY-MM-DD");if("$between"===r.selectedOperator.type){n=[a,o()(t).utcOffset(0,!0).format("YYYY-MM-DD")]}else n=a}break;case"number":n="$between"===r.selectedOperator.type?[e,t]:e;break;case"multiselect":{const t=r.selectedField.options.field||"id";n=u().map(e,t)}break;case"select":n=e.id;break;case"autocomplete":n=r.selectedOperator.isExtra?e:e.id;break;default:n=e}return n}function g(){r.value=null,r.endRangeValue=null,r.minDateRange=null,r.maxDateRange=null,r.isValidCondition=!1}r.availableOperators=[{type:"$eq",symbol:"=",translate:"EQUALS",excludeFrom:["multiselect"]},{type:"$ne",symbol:"≠",translate:"IS_NOT_EQUAL",excludeFrom:["multiselect"]},{type:"$in",symbol:"∈",translate:"IS_AMONG",applyTo:["multiselect"]},{type:"$notIn",symbol:"∉",translate:"IS_NOT_AMONG",applyTo:["multiselect"]},{type:"$substring",symbol:"⊃",translate:"CONTAINS",applyTo:["text"]},{type:"$startsWith",symbol:"a..",translate:"STARTS_WITH",applyTo:["text"]},{type:"$endsWith",symbol:"..a",translate:"ENDS_WITH",applyTo:["text"]},{type:"$lt",symbol:"<",translate:"IS_LESS_THAN",applyTo:["date","number"]},{type:"$gt",symbol:">",translate:"IS_GREATER_THAN",applyTo:["date","number"]},{type:"$lte",symbol:"≤",translate:"IS_LESS_THAN_OR_EQUAL_TO",applyTo:["date","number"]},{type:"$gte",symbol:"≥",translate:"IS_GREATER_THAN_OR_EQUAL_TO",applyTo:["date","number"]},{type:"$between",symbol:"≬",translate:"IS_BETWEEN",applyTo:["date","number"]}],r.operators=r.availableOperators,r.addCondition=c,r.editCondition=function(e){r.pendingCondition=e,r.pendingCondition.style="md-amber-200-bg",r.selectedField=u().find(r.options.fields,["name",r.pendingCondition.name]),i(),r.selectedOperator=u().find(r.availableOperators,["type",r.pendingCondition.query.operator]),"date"===r.selectedField.type&&"string"==typeof r.pendingCondition.value?(r.value=new Date(r.pendingCondition.value),r.minDateRange=o()(r.value).add(1,"day"),r.endRangeValue=r.pendingCondition.endValue?new Date(r.pendingCondition.endValue):void 0):(r.value=r.pendingCondition.value,r.endRangeValue=r.pendingCondition.endValue);r.isValidRange=!0,r.isValidCondition=!0},r.updateCondition=d,r.cancelUpdateCondition=function(){r.pendingCondition.style=null,r.pendingCondition=void 0},r.setConditionStatus=function(e){e.style=e.disabled?void 0:"chip-disabled",e.disabled=!e.disabled},r.removeCondition=function(){u().isEmpty(r.options.conditions)&&r.clearFilter()},r.getValues=function(){const o=angular.copy(r.selectedField.options.route);if("autocomplete"===r.selectedField.type)for(let e=0;e<Object.keys(o.params).length;e++){const t=Object.keys(o.params)[e];"@autocomplete"===o.params[t]&&(o.params[t]=r.searchText)}if(!r.selectedField.values){return n[o.model][o.action](o.params).$promise.then((function(e){if("autocomplete"===r.selectedField.type){const n=r.searchText?u().filter(e.rows,(function(e){e.displayValue="";for(let t=0;t<r.selectedField.options.searchFields.length;t++){const n=e[r.selectedField.options.searchFields[t]]||"";e.displayValue+=n+" "}return u().trimEnd(e.displayValue),u().includes(e.displayValue.toLowerCase(),r.searchText.toLowerCase())})):[];return t.when(n)}return r.selectedField.values=e.rows})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:o.model.toUpperCase()+"."+o.action.toUpperCase(),msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}r.selectedField.values.forEach((function(t){t.translate&&(t.name=e.instant(t.translate))}))},r.onFieldChange=function(){r.value=void 0,r.endRangeValue=void 0,r.searchText=void 0,r.isValidCondition=!1,i(),r.autoSelectOperator=1===r.availableOperators.length,r.autoSelectOperator||(r.selectedOperator=void 0)},r.onOperatorChange=function(e){r.isValidRange=!0,r.selectedOperator&&(e?e.applyTo?u().difference(r.selectedOperator.applyTo,e.applyTo).length>0&&(r.value=null):r.selectedOperator.applyTo&&(r.value=null):r.value=null,"between"!=r.selectedOperator.type&&(r.endRangeValue=null),r.selectedField.options&&!u().isEmpty(r.selectedField.options.extraOperators)&&(r.selectedOperator.isExtra=u().some(r.selectedField.options.extraOperators,(function(e){return e===r.selectedOperator.type}))));s()},r.onValueChange=function(){r.selectedOperator&&"$between"===r.selectedOperator.type?"number"===r.selectedField.type?l():"date"===r.selectedField.type&&(r.minDateRange=o()(r.value).add(1,"day"),s()):s()},r.checkRange=l,r.handleKeyboardAction=function(){r.pendingCondition?d():c()}}R.$inject=["$translate","$q","api","toasty"];const N=function(){return{restrict:"E",scope:{options:"=",clearFilter:"&"},controller:R,controllerAs:"vm",bindToController:!0,templateUrl:O}};const L=function(){return{restrict:"E",scope:{templatePath:"=template",card:"=ngModel",vm:"=viewModel"},template:'<div class="ms-card-content-wrapper" ng-include="templatePath" onload="cardTemplateLoaded()"></div>',compile:function(e){return e.addClass("ms-card"),function(e,t){e.cardTemplateLoaded=function(){e.$emit("msCard::cardTemplateLoaded",t)}}}}};const $=function(){return{restrict:"A",link:function(e,t,n){n.$observe("msChipColor",(function(e){const n=t.parent().parent();if(n.hasClass("md-background-bg md-hue-3")||n.addClass("md-background-bg md-hue-3"),u().isEmpty(e)){const e=n[0].className.split(" "),t=e.indexOf("md-hue-3");e.length=t+1,n[0].className=e.join(" ")}else n.addClass(e)}))}}},U=n.p+"templates/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html",j=n.p+"templates/core/directives/ms-phonebar/prefix/dialog.html/dialog.html";const F=function(){return{restrict:"E",scope:{type:"=",disabled:"=",target:"=",prefix:"=",license:"="},controller:["$scope","$rootScope","$http","$translate","$document","$mdDialog","Auth","toasty","api",function(e,t,n,a,o,r,i,s,l){function c(n){switch(e.currentUser.showWebBar){case 0:return f("http://127.0.0.1:"+(e.currentUser.phoneBarRemoteControlPort||"9888")+"/api/originate/"+d(n));case 2:return t.$broadcast("webrtc::call",{target:d(n)})}}function d(e){return u().isNil(e)?"":e.replace(/[^\w.+#*-]+/g,"")}function f(e){return n.get(e).success((function(){s.success({title:"Successful call",msg:"Call properly handled!"})})).error((function(){s.error({title:"PhoneBar API Error",msg:a.instant("CONTACTMANAGER.ERRORS.PHONEBAR_API")})}))}e.currentUser=i.getCurrentUser(),e.privacy=e.currentUser.privacyEnabled,e.showMenu=function(){return e.target&&e.target.indexOf("@")<0&&e.target!=e.currentUser.internal&&e.target!=e.currentUser.name&&(0==e.currentUser.showWebBar&&e.currentUser.phoneBarRemoteControl||2==e.currentUser.showWebBar&&e.license.webrtc)&&!e.disabled},e.call=function(t){return 2!==e.currentUser.showWebBar?function(t){return l.user.getVoicePrefixes({id:e.currentUser.id}).$promise.then((function(t){if(t.count)return r.show({controller:"PrefixDialogController",controllerAs:"vm",templateUrl:j,parent:angular.element(o.body),clickOutsideToClose:!0,locals:{prefixes:t,required:e.currentUser.phoneBarPrefixRequired}})})).then((function(n){e.currentUser.phoneBarPrefixRequired?n&&-1!==n&&c(n+t):n&&-1!==n?c(n+t):n||c(t)}))}(t):c(t)},e.transfer=function(n){switch(e.currentUser.showWebBar){case 0:return f("http://127.0.0.1:"+(e.currentUser.phoneBarRemoteControlPort||"9888")+"/api/transfer?number="+d(n));case 2:t.$broadcast("webrtc::transfer",{target:d(n)})}}}],templateUrl:U}};function q(e){return{require:"ngModel",priority:1,link:function(t,n,a,o){o.$formatters.push(e.formatter),o.$parsers.push(e.parser)}}}function Y(e){return{restrict:"E",scope:{id:"=",model:"=",element:"=",title:"=",path:"="},replace:!0,link:function(t,n){let a=!1;const o={};o.id=t.id,u().isNil(t.path)||(o.path=t.path);const r=document.createElement(t.element);r.setAttribute("preload","none"),r.setAttribute("controls","true"),"audio"===t.element&&r.setAttribute("style","width: 265px;"),"video"===t.element&&r.setAttribute("style","max-width: 500px;"),r.setAttribute("title",t.title),r.setAttribute("src"," "),r.onplay=function(n){a||(a=!0,n.preventDefault(),e[t.model].download(o).$promise.then((function(e){const t=[e.buffer],n=new Blob(t,{type:e.type});r.setAttribute("type",e.type),r.setAttribute("src",URL.createObjectURL(n)),r.play()})).catch((function(e){console.error(e)})))},n.append(r)}}}q.$inject=["msDatepickerFixConfig"],Y.$inject=["api"];const H=Y;function B(e){return{restrict:"A",link:function(t,n){n.bind("click",(function(){const a=e('<div layout="row" class="spinner-overlay" layout-sm="column" layout-align="center center" aria-label="wait"><md-progress-circular md-mode="indeterminate"></md-progress-circular></div>')(t);n.closest("md-dialog").prepend(a)}))}}}B.$inject=["$compile"];const G=B,V=n.p+"templates/core/directives/ms-dual-multiselect/ms-dual-multiselect.html/ms-dual-multiselect.html";function W(){const e=this;function t(t,n,a,o){let r=[];if(a>=0)r.push(t[a]),n.push(t[a]),t.splice(a,1);else{for(let e=0;e<t.length;e++)void 0!==t[e].isValid&&t[e].isValid&&n.push(t[e]);for(let e=t.length-1;e>=0;e--)t[e].isValid&&t.splice(e,1);r=n}e.options.transferCallback&&e.options.transferCallback(r,o)}e.canTransfer=function(e,n,a){if(void 0!==e.isValid&&e.isValid)return a?t(n.selectedItems,n.items,n.selectedItems.indexOf(e),a):t(n.items,n.selectedItems,n.items.indexOf(e),a)},e.transfer=t,e.getLine=function(e,t){let n="";if(u().isNil(t))return n;if(u().isArray(t)){for(let a=0;a<t.length;a++)n+=" "+(e[t[a]]?e[t[a]]:"");return n}return e[t]?e[t]:""}}const Q=function(){return{restrict:"E",scope:{options:"=",readOnly:"=",addDisabled:"<"},controller:W,controllerAs:"vm",bindToController:!0,templateUrl:V}};n("./node_modules/jquery-textcomplete/dist/jquery.textcomplete.js"),n("./node_modules/emojionearea/dist/emojionearea.js");function z(e){return{restrict:"E",replace:!0,scope:{onReply:"&",ngModel:"=",ctrlMethods:"=",pickerPosition:"=",search:"=",recentEmojis:"=",placeholder:"="},template:'<textarea class="emojionearea"></textarea>',link:function(t,n){const a=n.emojioneArea({pickerPosition:t.pickerPosition,search:t.search,recentEmojis:t.recentEmojis,placeholder:e.instant(t.placeholder||"Type a message"),attributes:{spellcheck:!0},events:{keypress:function(e,n){t.ngModel=this.getText(),t.onReply({event:n,body:this.getText()})},emojibtn_click:function(){t.ngModel=this.getText()}}});t.ngModel&&a[0].emojioneArea.setText(t.ngModel),t.internalControl=t.ctrlMethods||{},t.internalControl.setText=function(e){a[0].emojioneArea.setText(e)},t.internalControl.getText=function(){return a[0].emojioneArea.getText()},t.$watch("ngModel",(function(e){e||a[0].emojioneArea.setText("")}))}}}z.$inject=["$translate"];const K=z,J=n.p+"templates/core/directives/ms-font-family/ms-font-family.html/ms-font-family.html";const X=function(){return{restrict:"E",scope:{ngModel:"="},controller:["$scope",function(e){e.fonts=[{option:"Arial",value:"Arial,Helvetica,sans-serif"},{option:"Century Gothic",value:"Century Gothic,Futura,Didact Gothic,san-serif"},{option:"Calibri",value:"Calibri, Verdana, Geneva, sans-serif"},{option:"Comic Sans MS",value:"Comic Sans MS,cursive"},{option:"Courier New",value:"Courier New,Courier,monospace"},{option:"Georgia",value:"Georgia,serif"},{option:"Lucida Sans Unicode",value:"Lucida Sans Unicode,Lucida Grande,sans-serif"},{option:"Tahoma",value:"Tahoma,Geneva,sans-serif"},{option:"Times New Roman",value:"Times New Roman,Times,serif"},{option:"Trebuchet MS",value:"Trebuchet MS,Helvetica,sans-serif"},{option:"Verdana",value:"Verdana,Geneva,sans-serif"}]}],templateUrl:J}};const Z=n.p+"templates/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar.html";function ee(e){return{restrict:"E",scope:{onClose:"&"},transclude:!0,templateUrl:Z,link:function(t,n){const a=e.find("ms-info-bar-active"),o="ms-info-bar-active";a.addClass(o),t.removeInfoBar=function(){a.removeClass(o),n.remove(),t.onClose&&t.onClose(),t.$destroy()}}}}ee.$inject=["$document"];const te=ee;function ne(e,t,n,a){const o=this,r={columnCount:5,respectItemOrder:!1,reLayoutDebounce:400,responsive:{md:3,sm:2,xs:1}};let i=!0;function s(){i&&a.cancel(i),i=a((function(){!function(){o.containerPos=o.container[0].getBoundingClientRect(),function(){o.columnCount=o.options.columnCount,n("gt-md")?o.columnCount=o.options.columnCount:n("md")?o.columnCount=o.columnCount>o.options.responsive.md?o.options.responsive.md:o.columnCount:n("sm")?o.columnCount=o.columnCount>o.options.responsive.sm?o.options.responsive.sm:o.columnCount:o.columnCount=o.options.responsive.xs;o.columnWidth=o.containerPos.width/o.columnCount}(),e.$broadcast("msMasonry:relayoutStarted"),o.items=o.container.find("ms-masonry-item");const t=Array.apply(null,new Array(o.columnCount)).map((function(){return 0}));for(let e=0;e<o.items.length;e++){let n,a,r=o.items[e];r=angular.element(r),r.scope()&&r.scope().$broadcast("msMasonryItem:startReLayout"),r.css({width:o.columnWidth}),o.options.respectItemOrder?(n=e%o.columnCount,a=t[n]):(a=Math.min.apply(Math,t),n=t.indexOf(a)),t[n]=a+r[0].getBoundingClientRect().height;const i=Math.round(n*o.columnWidth),s=a;r.css({transform:"translate3d("+i+"px,"+s+"px,0px)"}),r.addClass("placed"),r.scope()&&r.scope().$broadcast("msMasonryItem:finishReLayout")}}(),e.$broadcast("msMasonry:relayoutFinished")}),o.options.reLayoutDebounce)}o.options=null,o.container=[],o.containerPos="",o.columnWidth="",o.items=[],o.reLayout=s,o.initialize=function(){o.options=o.options?angular.extend(r,o.options):r,e.$watch((function(){return o.container.width()}),(function(e,t){e!==t&&s()}))},o.waitImagesLoaded=function(e,n){if("undefined"!=typeof imagesLoaded){t.imagesLoaded(e).on("done",(function(){n()}))}else n()},e.$on("msMasonry:relayout",(function(){s()}))}function ae(e){return{restrict:"AEC",controller:"msMasonryController",compile:function(t,n){return{pre:function(e,a,o,r){r.options=angular.fromJson(n.options||"{}"),r.container=t},post:function(t,n,a,o){e((function(){o.initialize()}))}}}}}ae.$inject=["$timeout"],ne.$inject=["$scope","$window","$mdMedia","$timeout"];const oe=n.p+"templates/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker.html";function re(e,t,n,a){const o=this;function r(e,t){o.selectedPalette=e,o.selectedHues=t}function i(){o.selectedColor={palette:"",hue:"",class:""},r(!1,!1),l()}function s(t,n){o.selectedColor={palette:t,hue:n,class:"md-"+t+"-"+n+"-bg",bgColorValue:a.rgba(o.palettes[t][n].value),fgColorValue:a.rgba(o.palettes[t][n].contrast)},"obj"!==o.msModelType||angular.equals(o.selectedColor,o.modelCtrl.$viewValue)||l(),r(t,o.palettes[t]),e.$selectedColor=o.selectedColor}function l(){"class"===o.msModelType?o.modelCtrl.$setViewValue(o.selectedColor.class):"obj"===o.msModelType&&o.modelCtrl.$setViewValue(o.selectedColor)}o.palettes=t,o.selectedPalette=!1,o.selectedHues=!1,e.$selectedColor={},o.activateHueSelection=r,o.selectColor=function(e,t){s(e,t),l(),n.hide()},o.removeColor=i,e.$watch("ngModel",(function(){if(!o.modelCtrl.$viewValue||""===o.modelCtrl.$viewValue)return void i();let e,t;if("class"===o.msModelType){const n=o.modelCtrl.$viewValue.split("-");n.length>=5?(e=n[1]+"-"+n[2],t=n[3]):(e=n[1],t=n[2])}else"obj"===o.msModelType&&(e=o.modelCtrl.$viewValue.palette,t=o.modelCtrl.$viewValue.hue||500);s(e,t)}))}function ie(e,t,n){return{restrict:"A",link:function(a,o,r){let i="true"===r.msNavIsFolded,s=!1;const l=angular.element(e[0].body),c=angular.element('<div id="ms-nav-fold-open-overlay"></div>'),u=angular.element('<div id="ms-nav-fold-close-overlay"></div>'),d=o.parent();function f(){l.addClass("ms-nav-folded"),t.$broadcast("msNav::forceCollapse"),o.scrollTop(0),d.append(c),c.on("mouseenter touchstart",(function(e){m(e),s=!0}))}function m(e){angular.isDefined(e)&&e.preventDefault(),l.addClass("ms-nav-folded-open"),t.$broadcast("msNav::expandMatchingToggles"),d.find(c).remove(),d.parent().append(u),u.on("mouseenter touchstart",(function(e){p(e),s=!1}))}function p(e){angular.isDefined(e)&&e.preventDefault(),t.$broadcast("msNav::forceCollapse"),o.scrollTop(0),l.removeClass("ms-nav-folded-open"),d.parent().find(u).remove(),d.append(c),c.on("mouseenter touchstart",(function(e){m(e),s=!0}))}function g(){l.removeClass("ms-nav-folded ms-nav-folded-open"),t.$broadcast("msNav::expandMatchingToggles"),o.off("mouseenter mouseleave")}n.setFoldable(a,o,i),i?f():g(),a.toggleFold=function(){i=!i,i?f():g()},a.openFolded=m,a.closeFolded=p,a.isNavFoldedOpen=function(){return s},a.$on("$destroy",(function(){c.off("mouseenter touchstart"),u.off("mouseenter touchstart"),o.off("mouseenter mouseleave")}))}}}function se(e,t,n){return{restrict:"E",scope:{},controller:"MsNavController",compile:function(a){return a.addClass("ms-nav"),function(a){e.$broadcast("msNav::expandMatchingToggles");const o=e.$on("$stateChangeSuccess",(function(){e.$broadcast("msNav::expandMatchingToggles"),t.when("navigation").then((function(e){e.close(),n.isNavFoldedOpen()&&n.closeFolded()}))}));a.$on("$destroy",(function(){o()}))}}}}function le(e,t,n,a){return{restrict:"A",require:"^msNav",scope:!0,compile:function(o,r){return o.addClass("ms-nav-toggle"),angular.isUndefined(r.collapsed)&&(r.collapsed=!0),o.attr("collapsed",r.collapsed),function(o,r,i,s){const l="expanded",c="expand-animation",u="collapse-animation",d=r.find("a"),f=[],m=/\(.*\)/g;function p(){return"true"===r.attr("collapsed")}function g(){const e=t.defer();if(!p())return e.reject({error:!0}),e.promise;r.attr("collapsed",!1);const a=angular.element(r.find("ms-nav-toggle-items")[0]);a.css({position:"absolute",visibility:"hidden",display:"block",height:"auto"});const i=a[0].offsetHeight;return a.css({position:"",visibility:"",display:"",height:""}),o.$evalAsync((function(){n.animate(a,{display:"block",height:"0px"},{height:i+"px"},c).then((function(){a.addClass(l),a.css({height:""}),e.resolve({success:!0})}))})),e.promise}function h(){const e=t.defer();if(p())return e.reject({error:!0}),e.promise;r.attr("collapsed",!0);const a=angular.element(r.find("ms-nav-toggle-items")[0]),i=a[0].offsetHeight;return o.$evalAsync((function(){n.animate(a,{height:i+"px"},{height:"0px"},u).then((function(){a.removeClass(l),a.css({display:"",height:""}),e.resolve({success:!0})}))})),e.promise}angular.forEach(d,(function(e){let t=angular.element(e).attr("ui-sref");angular.isUndefined(t)||(t=t.replace(m,""),f.push(t))})),s.setToggleItem(r,o),r.children(".ms-nav-button").on("click",(function(){if(s.isDisabled())return;s.disable(),p()?(s.clearLockedItems(),o.$emit("msNav::pushToLockedList"),e.$broadcast("msNav::collapse"),g().then((function(){s.enable()}))):o.$broadcast("msNav::forceCollapse")})),o.$on("$destroy",(function(){r.children(".ms-nav-button").off("click")})),o.$on("msNav::collapse",(function(){const e=s.getLockedItems();let t=!1;angular.forEach(e,(function(e){angular.equals(e.scope,o)&&(t=!0)})),t||h().then((function(){s.enable()}))})),o.$on("msNav::forceCollapse",(function(){h().then((function(){s.enable()}))})),o.$on("msNav::expandMatchingToggles",(function(){const e=a.current.name;let t=!1;angular.forEach(f,(function(n){e===n&&(t=!0)})),t?g():h()})),o.$on("msNav::pushToLockedList",(function(){s.setLockedItem(r,o)}))}}}}re.$inject=["$scope","$mdColorPalette","$mdMenu","motionGenerator"],le.$inject=["$rootScope","$q","$animate","$state"],se.$inject=["$rootScope","$mdComponentRegistry","msNavFoldService"],ie.$inject=["$document","$rootScope","msNavFoldService"];const ce=n.p+"templates/core/directives/ms-navigation/templates/horizontal.html/horizontal.html",ue=n.p+"templates/core/directives/ms-navigation/templates/vertical.html/vertical.html";function de(e,t){const n=this;e.root?n.navigation=t.getNavigation(e.root):n.navigation=t.getNavigation(),n.toggleHorizontalMobileMenu=function(){angular.element("body").toggleClass("ms-navigation-horizontal-mobile-menu-active")},t.sort()}function fe(e,t,n,a){return{restrict:"E",scope:{folded:"=",root:"@"},controller:"MsNavigationController as vm",templateUrl:ue,transclude:!0,compile:function(o){return o.addClass("ms-navigation"),function(o,r){const i=angular.element("body"),s=angular.element('<div id="ms-navigation-fold-expander"></div>'),l=angular.element('<div id="ms-navigation-fold-collapser"></div>'),c=n("navigation");function u(t){if(a.setFolded(t),t)e.$broadcast("msNavigation::collapse"),i.addClass("ms-navigation-folded"),d();else{const e=a.getActiveItem();e&&e.scope.$emit("msNavigation::stateMatched"),i.removeClass("ms-navigation-folded ms-navigation-folded-open"),l.remove()}}function d(){r.parent().append(s),t((function(){s.on("mouseenter touchstart",f)}))}function f(e){e&&e.preventDefault(),a.setFoldedOpen(!0);const t=a.getActiveItem();t&&t.scope.$emit("msNavigation::stateMatched"),i.addClass("ms-navigation-folded-open"),s.remove(),i.find("#main").append(l),l.on("mouseenter touchstart",m)}function m(t){t&&t.preventDefault(),a.setFoldedOpen(!1),e.$broadcast("msNavigation::collapse"),i.removeClass("ms-navigation-folded-open"),l.remove(),d()}a.setNavigationScope(o),function(){null===a.getFolded()&&a.setFolded(o.folded);a.getFolded()&&(t((function(){e.$broadcast("msNavigation::collapse")})),i.addClass("ms-navigation-folded"),d())}(),o.$watch((function(){return c.isLockedOpen()}),(function(t,n){if(angular.isUndefined(t)||angular.equals(t,n))return;if(a.getFolded())if(t)e.$broadcast("msNavigation::collapse");else{const e=a.getActiveItem();e&&e.scope.$emit("msNavigation::stateMatched")}})),o.$watch("folded",(function(e,t){angular.isUndefined(e)||angular.equals(e,t)||u(e)})),o.toggleFolded=function(){u(!a.getFolded())},o.$on("$stateChangeStart",(function(){c.close()})),o.$on("$destroy",(function(){l.off("mouseenter touchstart"),s.off("mouseenter touchstart")}))}}}}function me(e,t,n,a,o,r){const i=this;i.element=t,i.node=e.node,i.hasChildren=void 0,i.collapsed=void 0,i.collapsable=void 0,i.group=void 0,i.animateHeightClass="animate-height",i.toggleCollapsed=function(){i.collapsed?i.expand():i.collapse()},i.collapse=function(){const t=i.element.children("ul"),n=t[0].offsetHeight;e.$evalAsync((function(){i.collapsed=!0,i.element.addClass("collapsing"),a.animate(t,{display:"block",height:n+"px"},{height:"0px"},i.animateHeightClass).then((function(){t.css({display:"",height:""}),i.element.removeClass("collapsing")})),e.$broadcast("msNavigation::collapse")}))},i.expand=function(){const t=i.element.children("ul");t.css({position:"absolute",visibility:"hidden",display:"block",height:"auto"});const o=t[0].offsetHeight;t.css({position:"",visibility:"",display:"",height:""}),e.$evalAsync((function(){i.collapsed=!1,i.element.addClass("expanding"),a.animate(t,{display:"block",height:"0px"},{height:o+"px"},i.animateHeightClass).then((function(){t.css({height:""}),i.element.removeClass("expanding")})),n.$broadcast("msNavigation::collapse",i.node._path)}))},i.getClass=function(){return i.node.class},i.isHidden=function(){if(angular.isDefined(i.node.hidden)&&angular.isFunction(i.node.hidden))return i.node.hidden();return!1},function(){i.hasChildren=i.node.children.length>0,i.group=!(!angular.isDefined(i.node.group)||!0!==i.node.group),!i.hasChildren||i.group?i.collapsable=!1:i.collapsable=!(!angular.isUndefined(i.node.collapsable)&&"boolean"==typeof i.node.collapsable&&!0!==i.node.collapsable);i.collapsable?i.collapsed=!(!angular.isUndefined(i.node.collapsed)&&"boolean"==typeof i.node.collapsed&&!0!==i.node.collapsed):i.collapsed=!1;if(i.node.state===o.current.name||o.includes(i.node.state)){if(angular.isDefined(i.node.stateParams)&&angular.isDefined(o.params)&&!angular.equals(i.node.stateParams,o.params))return;e.$emit("msNavigation::stateMatched"),r.setActiveItem(i.node,e)}e.$on("msNavigation::stateMatched",(function(){i.collapsable&&i.collapsed&&e.$evalAsync((function(){i.collapsed=!1}))})),e.$on("msNavigation::collapse",(function(e,t){if(!i.collapsed&&i.collapsable)if(angular.isUndefined(t))i.collapse();else{const e=t.split(".");let n=[];const a=r.getActiveItem();if(a&&(n=a.node._path.split(".")),e.indexOf(i.node._id)>-1)return;if(n.indexOf(i.node._id)>-1)return;i.collapse()}})),e.$on("$stateChangeSuccess",(function(){if(i.node.state===o.current.name){if(angular.isDefined(i.node.stateParams)&&angular.isDefined(o.params)&&!angular.equals(i.node.stateParams,o.params))return;r.setActiveItem(i.node,e),n.$broadcast("msNavigation::collapse",i.node._path)}if(o.includes(i.node.state)){if(angular.isDefined(i.node.stateParams)&&angular.isDefined(o.params)&&!angular.equals(i.node.stateParams,o.params))return;e.$emit("msNavigation::stateMatched")}}))}()}function pe(e){return{restrict:"E",scope:{root:"@"},controller:"MsNavigationController as vm",templateUrl:ce,transclude:!0,compile:function(t){return t.addClass("ms-navigation-horizontal"),function(t){e.setNavigationScope(t)}}}}function ge(e,t,n,a,o){const r=this;r.element=t,r.node=e.node,r.hasChildren=void 0,r.group=void 0,r.getClass=function(){return r.node.class},function(){if(r.isActive=!1,r.hasChildren=r.node.children.length>0,r.group=!(!angular.isDefined(r.node.group)||!0!==r.node.group),r.node.state===a.current.name||a.includes(r.node.state)){if(angular.isDefined(r.node.stateParams)&&angular.isDefined(a.params)&&!angular.equals(r.node.stateParams,a.params))return;e.$emit("msNavigation::stateMatched"),o.setActiveItem(r.node,e)}e.$on("msNavigation::stateMatched",(function(){r.hasChildren&&e.$evalAsync((function(){r.isActive=!0}))})),e.$on("msNavigation::clearActive",(function(){if(!r.hasChildren)return;let t=[];const n=o.getActiveItem();n&&(t=n.node._path.split(".")),t.indexOf(r.node._id)>-1?e.$evalAsync((function(){r.isActive=!0})):e.$evalAsync((function(){r.isActive=!1}))})),e.$on("$stateChangeSuccess",(function(){if(r.node.state===a.current.name||a.includes(r.node.state)){if(angular.isDefined(r.node.stateParams)&&angular.isDefined(a.params)&&!angular.equals(r.node.stateParams,a.params))return;o.setActiveItem(r.node,e),n.$broadcast("msNavigation::clearActive")}}))}()}function he(e){return{restrict:"A",require:"^msNavigationHorizontalNode",compile:function(t){return t.addClass("ms-navigation-horizontal-item"),function(t,n,a,o){n.on("click",(function(){if(!o.hasChildren||e("gt-md"))return;n.toggleClass("expanded")})),t.$on("$destroy",(function(){n.off("click")}))}}}}he.$inject=["$mdMedia"],ge.$inject=["$scope","$element","$rootScope","$state","msNavigationService"],pe.$inject=["msNavigationService"],me.$inject=["$scope","$element","$rootScope","$animate","$state","msNavigationService"],fe.$inject=["$rootScope","$timeout","$mdSidenav","msNavigationService"],de.$inject=["$scope","msNavigationService"];const _e=n.p+"templates/core/directives/ms-phonebar/record/dialog.html/dialog.html",be=n.p+"templates/core/directives/ms-phonebar/referAttended/dialog.html/dialog.html",ye=n.p+"templates/core/directives/ms-phonebar/settings/settings.html/settings.html",ve=n.p+"templates/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar.html";var Ae=n("./node_modules/jssip/lib-es5/JsSIP.js"),Se=n.n(Ae),we=n("./node_modules/detectrtc/DetectRTC.js"),Ee=n.n(we),Ce=n("./node_modules/jquery/dist/jquery.js");function Te(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h){const _=this,b=window.jabra;_.baseUrl=f.baseUrl,_.conf=e.$parent.vm.conf;const y=["ringingId","speakerId","microphoneId","ringingVolume","speakerVolume","microphoneVolume","ringingMute","speakerMute","microphoneMute"],v=_.conf&&JSON.parse(s.localStorage.getItem("motion2.user:"+_.conf.id))||{webrtc:{ringingVolume:.5,speakerVolume:.5,microphoneVolume:1,ringingMute:!1,speakerMute:!1,microphoneMute:!1}};function A(e){let t,n,a;return _.initDeviceInProgress=!0,navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){return e.getTracks().forEach((function(e){e.stop()})),navigator.mediaDevices.enumerateDevices()})).then((function(o){const r=u().filter(o,(function(e){return"audioinput"===e.kind&&"default"!==e.deviceId&&"communications"!==e.deviceId}));if(r.length>0){const t=u().find(o,(function(e){return"default"===e.deviceId&&"audioinput"===e.kind}));if(a=u().find(r,(function(e){return e.groupId===t.groupId})),_.conf.microphoneId&&!e){const e=u().find(r,(function(e){return e.deviceId===_.conf.microphoneId}));e&&(a=e)}_.conf.microphoneId=a.deviceId}else d.warning({title:l.instant("TOOLBAR.WARNING"),msg:l.instant("TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE"),clickToClose:!0,showClose:!0,shake:!1,timeout:!1,position:"bottom-right"});_.conf.microphoneId?_.sessionConf.mediaConstraints.audio={deviceId:_.conf.microphoneId}:_.sessionConf.mediaConstraints.audio=!0,V("microphone",!1);const i=u().filter(o,(function(e){return"audiooutput"===e.kind&&"default"!==e.deviceId&&"communications"!==e.deviceId}));if(i.length>0){const a=u().find(o,(function(e){return"default"===e.deviceId&&"audiooutput"===e.kind}));if(t=u().find(i,(function(e){return e.groupId===a.groupId})),n=t,_.conf.speakerId&&!e){const e=u().find(i,(function(e){return e.deviceId===_.conf.speakerId}));e&&(n=e)}if(_.conf.speakerId=n.deviceId,_.conf.ringingId&&!e){const e=u().find(i,(function(e){return e.deviceId===_.conf.ringingId}));e&&(t=e)}_.conf.ringingId=t.deviceId}else d.warning({title:l.instant("TOOLBAR.WARNING"),msg:l.instant("TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE"),clickToClose:!0,showClose:!0,shake:!1,timeout:!1,position:"bottom-right"});return V("speaker",!1)})).then((function(){return V("ringing",!1)})).then((function(){if(b)return b.init().then((function(){return _.isJabraInitialized=!0,b.getInstallInfo()})).then((function(){return b.getUserDeviceMediaExt()})).then((function(e){a&&n&&t&&e&&u().includes([a.groupId,n.groupId,t.groupId],e.deviceInfo.browserGroupId)&&(console.log("Jabra library correctly initialized and device correctly installed"),_.isJabraEnabled=!0,b.onHook(),b.addEventListener("acceptcall",S.bind(this)),b.addEventListener("mute",w.bind(this)),b.addEventListener("unmute",E.bind(this)),b.addEventListener("flash",C.bind(this)),b.addEventListener("endcall",T.bind(this)))})).catch((function(e){console.warn("Error initializing Jabra integration",e)}))})).catch((function(e){console.error("Unable to init media devices",e),"NotFoundError"===e.name&&d.warning({title:l.instant("TOOLBAR.WARNING"),msg:l.instant("TOOLBAR.WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE"),clickToClose:!0,showClose:!0,shake:!1,timeout:!1,position:"bottom-right"})})).finally((function(){_.initDeviceInProgress=!1,I(),Ee().load(x.bind(this))}))}function S(e){const t=u().last(_.sessions);t?"incoming"===t.direction&&t.isInProgress()?_.answer(t):console.error("Unable to find a valid call to answer",e):console.error("Unable to answer the call",e)}function w(){_.conf.microphoneMute=!0,V("microphone",!0)}function E(){_.conf.microphoneMute=!1,V("microphone",!0)}function C(){_.jabraSession.localHold?_.unhold(_.jabraSession):_.hold(_.jabraSession)}function T(){new Promise((function(e){let t=null;for(let e=0;e<_.sessions.length;e++)u().has(_.sessions[e],"localHold")&&_.sessions[e].localHold||(t=_.sessions[e]);e(t)})).then((function(e){null!==e&&_.terminate(e)}))}function I(){v.webrtc=u().pick(_.conf,y),s.localStorage.setItem("motion2.user:"+_.conf.id,JSON.stringify(v))}function k(){this.registered=!0}function D(){this.registered=!1}function x(){_.conf.hasMicrophone=Ee().hasMicrophone,_.conf.hasSpeakers="Safari"===Ee().browser.name||Ee().hasSpeakers,_.conf.isWebRTCSupported=Ee().isWebRTCSupported,_.conf.osName=Ee().osName,_.conf.osVersion=Ee().osVersion,_.conf.browserName=Ee().browser.name,_.conf.browserVersion=Ee().browser.version,console.log("IS_OK",_.conf),_.conf.license&&_.conf.isWebRTCSupported&&_.conf.hasMicrophone&&_.conf.hasSpeakers&&"https"===_.conf.protocol?_.register||_.ua.start():_.conf.license||d.warning({title:l.instant("TOOLBAR.WARNING"),msg:l.instant("TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD"),clickToClose:!0,showClose:!0,shake:!1,timeout:!1,position:"bottom-right"})}function M(t){console.debug("onNewRTCSession -> data",t);const a=t.session;let o,r=!0,i="",s=0;switch(t.originator){case"local":{a.outgoing=!0,a.name=t.request.ruri.user,a.user=t.request.ruri.user,P(a.user,!1);const e="X-callback-url";o=function(e,t,n){const a=u().find(e,(function(e){return u().startsWith(e,t)}));if(a)return u().trim(a.replace(t,"").replace(n||":",""));return!1}(t.request.extraHeaders,e),_.isJabraEnabled&&(_.jabraSession&&b.resume(),_.jabraSession=a,b.offHook())}break;case"remote":{const e=p.getCurrentUser();if(e.voicePause&&e.phoneBarDnd||_.originateInProgress)r=!1;else if(a.incoming=!0,a.name=t.request.from.display_name,a.user=t.request.from.uri.user,i=t.request.getHeader("X-Answer-Mode")||"",s=t.request.getHeader("X-Answer-After")||0,function(e){console.debug("getNotification -> session",e);let t=e.name?e.name+" <"+e.user+">":e.user;_.currentUser.privacyEnabled&&(t=h.mask(t));m.create("Incoming call from: ",t,null,(function(){O(e)}),(function(){R(e)})).then((function(t){e.notification=t})).catch((function(e){console.error("Error creating notification for incoming call",e)}))}(t.session),P(t.session.user,!0),_.isJabraEnabled&&b.ring(),_.conf.autoAnswer&&n((function(){a.isInProgress()&&(a.autoAnswer=!0,O(a))}),_.conf.autoAnswerDelay?1e3*_.conf.autoAnswerDelay:0),console.debug("xAnswerMode",i),console.debug("xAnswerAfterSec",s),"auto"===i.toLowerCase()){const e=0===s?500:1e3*s;console.debug("auto answer enabled after:"+e+" ms"),n((function(){a.isInProgress()&&(a.autoAnswer=!0,O(a))}),e)}break}}r?(a.call_id=t.request.call_id,o&&(_.callbackQueue[a.call_id]=o,oe(o,{call_id:a.call_id}).then((function(){console.log('callbackurl:"'+o+'" called successfully')})).catch((function(e){console.log('fail callbackurl:"'+o+'" err:',e)}))),a.connection&&(a.connection.onaddstream=U.bind(this)),a.iceCandidateTimeout=null,a.on("progress",N.bind(this,a)),a.on("confirmed",$.bind(this,a)),a.on("hold",F.bind(this,a)),a.on("unhold",q.bind(this,a)),a.on("ended",Y.bind(this,a)),a.on("failed",B.bind(this,a)),a.on("icecandidate",G.bind(this,a)),_.sessions.push(a),n((function(){e.$apply(),console.debug("onNewRTCSession -> vm_pb.sessions",_.sessions)}))):R(a,486)}function P(e,t,n){console.debug("addCall -> target, inbound, fullname",e,t,n),_.calls.unshift({target:e,fullname:n||e,inbound:t,time:o()().format("HH:mm")}),_.calls.length>50&&_.calls.pop()}function O(e){console.debug("answer -> session",e),_.conf.microphoneId?_.sessionConf.mediaConstraints.audio={deviceId:_.conf.microphoneId}:_.sessionConf.mediaConstraints.audio=!0,e.answer(_.sessionConf),_.isJabraEnabled&&(b.offHook(),_.jabraSession=e)}function R(e,t){console.debug("terminate -> session",e);const n={};if(t?n.status_code=t:e.isEstablished()||(n.status_code=603),e.terminate(n),_.isJabraEnabled)if(0===_.sessions.length)e.localHold&&b.resume(),b.onHook(),_.jabraSession=null;else{const e=u().last(_.sessions);e.localHold?(b.onHook(),b.hold(),_.jabraSession=e):b.offHook()}}function N(e,t){console.debug("onProgress -> session, data",e,t);let n=!1;switch(t.originator){case"local":this.conf.ringingMute||(this.soundPlayer.setAttribute("src","app/core/directives/ms-phonebar/sounds/incoming-call.ogg"),n=!0);break;case"remote":this.putOtherCallsOnHold(e),this.soundPlayer.setAttribute("src","app/core/directives/ms-phonebar/sounds/outgoing-call.ogg"),n=!0}_.originateInProgress&&(_.originateInProgress=!1),n&&(this.soundPlayer.loop="loop",this.soundPlayer.play().catch((function(e){console.log(e.message)}))),L(e).then((function(){const t=_.callbackQueue[e.call_id];t&&oe(t,{uniqueid:e.uniqueid,call_id:e.call_id,number_called:e.user}).then((function(){console.log('callbackurl:"'+t+'" called successfully')})).catch((function(e){console.log('fail callbackurl:"'+t+'" err:',e)})).finally((function(){delete _.callbackQueue[e.call_id]}))})).catch((function(e){console.error("Unable to retrieve voice channels",e)}))}function L(e){return console.debug("getVoiceChannels -> session",e),f.rpc.getVoiceChannels().$promise.then((function(t){const n=u().find(t.rows,(function(t){return t.sipcalllinkedid===e.call_id||t.sipcalluniqueid===e.call_id?t:null}));n&&(e.monitor=n.monitor,e.uniqueid=n.uniqueid,e.monitors=n.monitors)}))}function $(e,t){console.debug("onConfirmed -> session, data",e,t);const n=document.getElementById("div_session_"+e.id.substr(0,32));n&&Ce(n).scope().$broadcast("timer-start"),e.confirmed=!0,"remote"===t.originator&&e.connection&&(e.connection.onaddstream=U.bind(this),u().head(e.connection.getRemoteStreams())&&(this.remotePlayer.srcObject=u().head(e.connection.getRemoteStreams()),this.remotePlayer.play())),this.soundPlayer.pause(),this.soundPlayer.loop=null,this.putOtherCallsOnHold(e),e.autoAnswer&&(this.soundPlayer.setAttribute("src","app/core/directives/ms-phonebar/sounds/beep.ogg"),this.soundPlayer.play().catch((function(e){console.log("Unable to play autoAnswer notification",e)}))),_.canGoInConference=2===_.sessions.length,L(e).catch((function(e){console.error("Unable to retrieve voice channels",e)}))}function U(e){console.debug("onAddstream -> data",e),this.remotePlayer.srcObject=e.stream,this.remotePlayer.play()}function F(e,t){console.debug("onHold -> session, data",e,t),"local"===t.originator&&(e.localHold=!0)}function q(e,t){console.debug("onUnhold -> session, data",e,t),"local"===t.originator&&(e.localHold=!1)}function Y(e,t){if(console.debug("onEnded -> session, data",e,t),_.isInConference&&u().includes(_.currentConferenceSessions,e.id)&&(H(),_.buttonClicked=!0),u().remove(this.sessions,{id:e.id}),2!==_.sessions.length&&(_.canGoInConference=!1),_.isJabraEnabled)if(0===_.sessions.length)e.localHold&&b.resume(),b.onHook(),_.jabraSession=null;else{const e=u().last(_.sessions);e.localHold?(b.onHook(),b.hold(),_.jabraSession=e):b.offHook()}}function H(){_.canGoInConference=!1,_.isInConference=!1,_.currentconferenceSessions=[]}function B(e,t){if(console.debug("onFailed -> session, data",e,t),this.soundPlayer.pause(),this.soundPlayer.loop=null,e.notification&&e.notification.close(),_.isInConference&&u().includes(_.currentConferenceSessions,e.id)&&H(),_.originateInProgress&&(_.originateInProgress=!1),u().remove(this.sessions,{id:e.id}),2!==_.sessions.length&&(_.canGoInConference=!1),_.isJabraEnabled)if(0===_.sessions.length)e.localHold&&b.resume(),b.onHook(),_.jabraSession=null;else{const e=u().last(_.sessions);e.localHold?(b.onHook(),b.hold(),_.jabraSession=e):b.offHook()}}function G(e,t){console.debug("onIcecandidate -> session, data",e,t),null!==e.iceCandidateTimeout&&clearTimeout(e.iceCandidateTimeout),e.iceCandidateTimeout=setTimeout(t.ready,1e3)}function V(e,t){switch(e){case"ringing":_.soundPlayer.muted=_.conf.ringingMute,_.conf.ringingId&&_.soundPlayer.setSinkId(_.conf.ringingId).then((function(){_.soundPlayer.volume=_.conf.ringingVolume})).then((function(){t&&I()})).catch((function(e){console.info(e.message,_.conf.ringingId)}));break;case"speaker":_.remotePlayer.muted=_.conf.speakerMute,_.conf.speakerId&&_.remotePlayer.setSinkId(_.conf.speakerId).then((function(){_.remotePlayer.volume=_.conf.speakerVolume})).then((function(){t&&I()})).catch((function(e){console.info(e.message,_.conf.speakerId)}));break;case"microphone":for(let e=0;e<_.sessions.length;e+=1)_.conf.microphoneMute?_.sessions[e].mute():_.sessions[e].unmute();b&&_.isJabraEnabled&&(_.conf.microphoneMute?b.mute():b.unmute()),t&&I();break;default:console.log("unknown device")}}function W(){_.target="",document.getElementById("ms-target").blur(),document.getElementById("ms-target").value="",e.$broadcast("angucomplete-alt:clearInput","ms-target-wrap")}function Q(e){return f.user.getVoicePrefixes({id:_.conf.id}).$promise.then((function(e){if(e.count)return r.show({controller:"PrefixDialogController",controllerAs:"vm",templateUrl:j,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{prefixes:e,required:_.conf.phoneBarPrefixRequired}})})).then((function(t){if(_.conf.phoneBarPrefixRequired){if(t&&-1!==t)return t+e}else{if(t&&-1!==t)return t+e;if(!t)return e}}))}function z(){if(_.isInConference){const e=_.sessions[0].connection.getReceivers()[0],t=_.sessions[1].connection.getReceivers()[0],n=new MediaStream;n.addTrack(e.track),n.addTrack(t.track);const a=document.getElementById("remote-audio");a.srcObject=n;const o=a.play();void 0!==o&&o.then((function(){})).catch((function(e){console.log(e)}))}}function K(e,t,n,a){return console.debug("onReferCallback -> session, textContent, position, delay",e,t,n,a),function(){i.show(i.simple().textContent(t).position(n).hideDelay(a)),R(e)}}function J(e){console.debug("originateHook -> payload",e);const t=e.callNumber,n=e.callerId,a=e.callbackUrl;_.conf.microphoneId?_.sessionConf.mediaConstraints.audio={deviceId:_.conf.microphoneId}:_.sessionConf.mediaConstraints.audio=!0;let o=t.replace(/ /g,"");if(o=o.replace(/\(/g,""),o=o.replace(/\)/g,""),o){const e=angular.copy(_.sessionConf);e.extraHeaders=[],n&&e.extraHeaders.push("X-CID: "+n),a&&e.extraHeaders.push("X-callback-url: "+a),_.originateInProgress=!0,_.ua.call(o,e)}}function X(e){console.debug("hangupHook -> payload",e);let t=_.sessions;if(e.sessionId){t=[];const n=e.sessionId;if(t.push(ae(e.sessionId)),0===t.length)return void console.warn("call with session Id "+n+" not found")}for(let e=0;e<t.length;e++){const n=t[e];console.log("hangupHook -> sessionToHangup",n),_.terminate(n)}}function Z(e){let t;console.debug("answerHook -> payload",e),t=e.sessionId?ae(e.sessionId):u().find(_.sessions,(function(e){return e.incoming&&!e.confirmed})),e.sessionId&&!t&&console.warn("call with session Id "+e.sessionId+" not found"),t&&_.answer(t)}function ee(e){console.debug("holdHook -> payload",e);let t=_.sessions;if(e.sessionId){t=[],t.push(ae(e.sessionId));const n=e.sessionId;if(0===t.length)return void console.warn("call with session Id "+n+" not found")}for(let e=0;e<t.length;e++){const n=t[e];_.hold(n)}}function te(e){if(console.debug("holdHook -> payload",e),!e.sessionId)return void console.error("sessionId required");const t=ae(e.sessionId);if(t)_.unhold(t);else{const t=e.sessionId;console.warn("call with session Id "+t+" not found")}}function ne(e){if(console.debug("transferHook -> payload",e),!e.sessionId)return void console.error("sessionId required");if(!e.transferNumber)return void console.error("transferNumber required");const t=ae(e.sessionId);if(t)t.refer(e.transferNumber,{eventHandlers:{requestSucceeded:K(t,"requestSucceeded","top right",3e3),requestFailed:K(t,"requestFailed","top right",3e3)}});else{const t=e.sessionId;console.warn("call with session Id "+t+" not found")}}function ae(e){console.debug("findSessionBySessionId -> sessionId, vm_pb.sessions",e,_.sessions);return u().find(_.sessions,(function(t){return t.call_id===e}))}function oe(e,t){return console.debug("callCallback -> url, params",e,t),c({url:e,method:"GET",params:t})}a((function(){}),999),_.currentUser=p.getCurrentUser(),_.direction="right",_.selectedMode="md-scale",_.target="",_.showDialpad=!1,_.soundPlayer=document.createElement("audio"),_.remotePlayer=document.getElementById(_.conf.remotePlayerId),_.soundPlayer.volume=1,_.sessionConf={mediaConstraints:{audio:!0,video:!1},pcConfig:{iceServers:[]}},_.sessions=[],_.calls=[],_.callbackQueue=[],_.canGoInConference=!1,_.isInConference=!1,_.currentConferenceSessions=[],_.ua=new(Se().UA)({sockets:[new(Se().WebSocketInterface)("wss://"+_.conf.host+":8089/ws")],uri:new(Se().URI)("sip",_.conf.name,_.conf.host,5060,null,null).toString(),authorization_user:_.conf.name,ha1:_.conf.ha1,realm:_.conf.realm,user_agent:_.conf.ua,session_timers_refresh_method:"invite",register_expires:_.conf.phoneBarExpires||60,register:!0}),_.conf=u().merge(v.webrtc,_.conf),_.initDeviceInProgress=!1,_.isJabraEnabled=!1,_.isJabraInitialized=!1,_.jabraSession=null,_.jabraClicked=!1,_.buttonClicked=!1,_.originateInProgress=!1,t.bind("keyup",(function(e){switch(e.keyCode){case 27:n((function(){_.showDialpad=!1}))}})),_.$onInit=function(){A(!1),navigator.mediaDevices.ondevicechange=function(){_.initDeviceInProgress||(_.initDeviceInProgress=!0,b&&_.isJabraInitialized?b.shutdown().then((function(){_.isJabraInitialized=!1,_.isJabraEnabled=!1,A(!0)})).catch((function(e){console.error("Unable to shutdown Jabra library",e)})):A(!0))};const e=[f.network.get({type:"turn",nolimit:!0}).$promise,f.network.get({type:"stun",nolimit:!0}).$promise];Promise.all(e).then((function(e){const t=e[0].rows,n=e[1].rows,a=[],o=[];n.forEach((function(e){o.push("stun:"+e.value)})),a.push({urls:o}),t.forEach((function(e){const t={urls:"turn:"+e.value};e.username&&(t.username=e.username),e.password&&(t.credential=e.password),a.push(t)})),_.sessionConf.pcConfig={iceServers:a}})),this.ua.on("registered",k.bind(this)),this.ua.on("unregistered",D.bind(this)),this.ua.on("newRTCSession",M.bind(this)),g.on("webbar:originate",J.bind(this)),g.on("webbar:hangup",X.bind(this)),g.on("webbar:answer",Z.bind(this)),g.on("webbar:hold",ee.bind(this)),g.on("webbar:unhold",te.bind(this)),g.on("webbar:transfer",ne.bind(this))}.bind(this),_.type=function(t,n){let a=t;switch(_.target||(_.target=""),n&&(_.target+=t,e.$broadcast("angucomplete-alt:changeInput","ms-target-wrap",_.target)),t){case"*":a="asterisk";break;case"#":a="pound"}_.conf.enableDtmfTone&&(_.soundPlayer.setAttribute("src","app/core/directives/ms-phonebar/sounds/dialpad/"+a+".ogg"),_.soundPlayer.play().catch((function(e){console.log(e.message)})));for(let e=0;e<_.sessions.length;e+=1)_.sessions[e].isEstablished()&&!_.sessions[e].isOnHold().local&&_.sessions[e].sendDTMF(t)},_.call=function(){if(_.target&&_.target!==_.conf.name&&_.target!==_.conf.internal){_.conf.microphoneId?_.sessionConf.mediaConstraints.audio={deviceId:_.conf.microphoneId}:_.sessionConf.mediaConstraints.audio=!0;let e=_.target.replace(/ /g,"");return e=e.replace(/\(/g,""),e=e.replace(/\)/g,""),Q(e).then((function(e){e&&_.ua.call(e,_.sessionConf)})).then((function(){W()}))}},_.hold=function(e){console.debug("hold -> session",e),e.hold({useUpdate:!1}),_.isJabraEnabled&&(b.hold(),b.onHook())},_.refer=function(e){console.debug("refer -> session",e);const t=r.prompt().title("Transfer").textContent("Type the target").placeholder("Target").ariaLabel("Target").ok("Transfer").cancel("Cancel");r.show(t).then((function(e){return Q(e)})).then((function(t){e.refer(t,{eventHandlers:{requestSucceeded:K(e,"requestSucceeded","top right",3e3),requestFailed:K(e,"requestFailed","top right",3e3)}})}))},_.record=function(e){console.debug("record -> session",e),r.show({controller:"RecordDialogController",controllerAs:"vm",templateUrl:_e,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{session:e,sessions:_.sessions}})},_.unhold=function(e){console.debug("unhold -> session",e),e.unhold({useUpdate:!1}),_.putOtherCallsOnHold(e),_.isJabraEnabled&&(b.offHook(),b.resume())},_.answer=O,_.terminate=R,_.selectSession=function(e){console.debug("selectSession -> session",e),_.unhold(e)},_.typeWrapper=function(e){switch(e.key.toLowerCase()){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"*":case"#":_.type(e.key);break;case"enter":_.call()}},_.toggleDialpad=function(){_.showDialpad=!_.showDialpad},_.referAttended=function(e){console.debug("referAttended -> session",e),r.show({controller:"ReferAttendedDialogController",controllerAs:"vm",templateUrl:be,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{session:e,sessions:u().reject(_.sessions,{id:e.id}),isJabraEnabled:_.isJabraEnabled}})},_.closeDialpad=function(){_.showDialpad=!1},_.initDevice=V,_.putOtherCallsOnHold=function(e){if(console.debug("putOtherCallsOnHold -> session",e),_.sessions.length>1)for(let t=0;t<_.sessions.length;t+=1)_.sessions[t].id===e.id||_.sessions[t].isOnHold().remote||_.sessions[t].hold({useUpdate:!1})},_.targetChanged=function(t){t?/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/.test(t)?(_.target=t,e.$broadcast("angucomplete-alt:changeInput","ms-target-wrap",_.target)):_.target?e.$broadcast("angucomplete-alt:changeInput","ms-target-wrap",_.target):W():W()},_.targetSelected=function(e){e&&(_.target=e.originalObject.target,_.call(),W())},_.start3WayConf=function(){_.isInConference=!0,_.canGoInConference=!1,_.currentConferenceSessions.push(_.sessions[0].id),_.currentConferenceSessions.push(_.sessions[1].id);const e=_.sessions[0].connection.getSenders()[0],t=_.sessions[0].connection.getReceivers()[0];t.track.addEventListener("unmute",(function(){setTimeout((function(){z()}),1e3)}),!1);const n=_.sessions[1].connection.getSenders()[0],a=_.sessions[1].connection.getReceivers()[0];a.track.addEventListener("unmute",(function(){setTimeout((function(){z()}),1e3)}),!1),_.sessions[0].unhold({useUpdate:!1}),_.sessions[1].unhold({useUpdate:!1}),t.track.enabled=!0,a.track.enabled=!0;const o=new MediaStream,r=new AudioContext;let i=r.createMediaStreamDestination(),s=r.createMediaStreamSource(new MediaStream([a.track]));s.connect(i),s=r.createMediaStreamSource(new MediaStream([e.track])),s.connect(i),e.replaceTrack(i.stream.getTracks()[0]).then((function(){})),i=r.createMediaStreamDestination(),s=r.createMediaStreamSource(new MediaStream([t.track])),s.connect(i),s=r.createMediaStreamSource(new MediaStream([n.track])),s.connect(i),n.replaceTrack(i.stream.getTracks()[0]).then((function(){o.addTrack(t.track),o.addTrack(a.track);const e=document.getElementById("remote-audio");e.srcObject=o;const n=e.play();void 0!==n&&n.then((function(){})).catch((function(e){console.log(e)}))}))},_.patchConference=z,e.$on("webrtc::settings",(function(e){r.show({controller:"SettingsController",controllerAs:"vm",templateUrl:ye,parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0,resolve:{devices:function(){return navigator.mediaDevices.enumerateDevices()}},locals:{conf:_.conf}}).then((function(e){e&&(_.conf=e,_.initDeviceInProgress||(_.initDeviceInProgress=!0,b&&_.isJabraInitialized?b.shutdown().then((function(){_.isJabraInitialized=!1,_.isJabraEnabled=!1,A(!1)})).catch((function(e){console.error("Unable to shutdown Jabra library",e)})):A(!1)))}))})),e.$on("webrtc::logout",(function(){_.ua.stop(),b&&_.isJabraInitialized&&b.shutdown(),navigator.mediaDevices.ondevicechange=function(){}})),e.$on("webrtc::call",(function(e,t){console.debug("onRemoteCall -> evt, data",e,t),t.target&&(_.target=t.target,_.call())})),e.$on("webrtc::transfer",(function(e,t){if(console.debug("onRemoteTransfer -> evt, data",e,t),t.target)for(let e=0;e<_.sessions.length;e+=1)if(_.sessions[e].isEstablished()&&!_.sessions[e].isOnHold().local)return Q(t.target).then((function(t){t&&_.sessions[e].refer(t,{eventHandlers:{requestSucceeded:K(_.sessions[e],"requestSucceeded","top right",3e3),requestFailed:K(_.sessions[e],"requestFailed","top right",3e3)}})}))})),e.$on("$destroy",(function(){console.debug("$destroy event fired"),g.removeAllListeners("webbar:originate"),g.removeAllListeners("webbar:hangup"),g.removeAllListeners("webbar:answer"),g.removeAllListeners("webbar:hold"),g.removeAllListeners("webbar:unhold"),g.removeAllListeners("webbar:transfer")}))}function Ie(e,t,n){const a=this;a.prefixes=t,a.required=n,a.closeDialog=function(t){e.hide(t)},a.call=function(){e.hide(a.prefix)}}Te.$inject=["$scope","$document","$timeout","$interval","$mdDialog","$mdToast","$window","$translate","$http","toasty","api","motNotification","Auth","socket","privacyManager"],Ie.$inject=["$mdDialog","prefixes","required"];const ke=Ie;function De(e){return{restrict:"C",controller:["$scope","$element",function(t,n){function a(){n.css("display","inline"),e(o,1e3)}function o(){n.css("display","none"),e(a,1e3)}a()}],replace:!0}}function xe(e,t,n,a,o){const r=this;function i(e,a){console.log("startMonitor");const o=t.defer(),i=(a||e.filename.replace(/^.*[\\/]/,"")).split(".")[0];return n.rpc.startMonitor({uniqueid:r.session.uniqueid,filename:i,format:"wav"}).$promise.then((function(t){e.filename=i+".wav",e.mixmonitorid=t.mixmonitorid,e.status="rec",r.session.monitor=!0,o.resolve(e)})).catch((function(e){o.reject(e)})),o.promise}r.title="Record",r.sessions=a,r.session=o,r.closeDialog=function(){e.hide()},r.addRecording=function(){const t=e.prompt({multiple:!0}).title("Start new recording").textContent("Type the file name.").placeholder("File name").ariaLabel("File name").initialValue(function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}()).ok("Start").cancel("Cancel");e.show(t).then((function(e){return i({},e)})).then((function(e){r.session.monitors.push(e)}))},r.stop=function(e){return console.log("stopMonitor"),n.rpc.stopMonitor({uniqueid:r.session.uniqueid,mixmonitorid:e.mixmonitorid}).$promise.then((function(){e.status="pause",r.session.monitor=u().includes(r.session.monitors,{status:"rec"})})).catch((function(e){console.error(e)}))},r.start=i}function Me(e,t,n,a,o){const r=this,i=window.jabra;function s(e,n,a,o,r){return console.debug("onTransferCallback -> session, textContent, position, delay",e,n,a,o),function(){t.show(t.simple().textContent(n).position(a).hideDelay(o)),e.terminate(),i&&r&&i.onHook(),l()}}function l(t){e.hide(t)}r.title="Refer Attended",r.sessions=n,r.session=a,r.isJabraEnabled=o,r.sessionTarget=null,n.length&&(r.target=n[0].user),r.closeDialog=l,r.transfer=function(){let e,t;const o=u().find(n,(function(e){if(e.user===r.target)return e}));o.outgoing?(e=o,t=r.session):(e=r.session,t=o);t.refer(e.user,{replaces:e,eventHandlers:{requestSucceeded:s(a,"requestSucceeded","top right",3e3,r.isJabraEnabled),requestFailed:s(a,"requestFailed","top right",3e3,r.isJabraEnabled)}})}}xe.$inject=["$mdDialog","$q","api","sessions","session"],De.$inject=["$timeout"],Me.$inject=["$mdDialog","$mdToast","sessions","session","isJabraEnabled"];const Pe=Me;function Oe(e,t,n){const a=this;function o(e,n,a){let o;if(t[a]){if(o=u().find(e,(function(e){return e.deviceId===t[a]})),o)return o.deviceId;const r=u().findIndex(e,(function(e){return e.kind===n}));if(r>=0)return e[r].deviceId}else o=u().find(e,(function(e){return e.kind===n})),o&&(t[a]=o.deviceId);return t[a]||null}u().remove(n,(function(e){return"audioinput"===e.kind&&("default"===e.deviceId||"communications"===e.deviceId)||"audiooutput"===e.kind&&("default"===e.deviceId||"communications"===e.deviceId)})),t.ringingId=o(n,"audiooutput","ringingId"),t.speakerId=o(n,"audiooutput","speakerId"),t.microphoneId=o(n,"audioinput","microphoneId"),t.ringingVolume=t.ringingVolume||.5,t.speakerVolume=t.speakerVolume||.5,t.microphoneVolume=t.microphoneVolume||1,t.ringingMute=t.ringingMute||!1,t.speakerMute=t.speakerMute||!1,t.microphoneMute=t.microphoneMute||!1,a.conf=angular.copy(t),a.devices=n,a.saveSettings=function(){e.hide(a.conf)},a.closeDialog=function(){e.hide()},a.isCompatibleBrowser=function(){return"chrome"===a.conf.browserName.toLowerCase()||"opera"===a.conf.browserName.toLowerCase()||"safari"===a.conf.browserName.toLowerCase()}}Oe.$inject=["$mdDialog","conf","devices"];const Re=Oe,Ne=n.p+"templates/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter.html";function Le(e,t,n){const a=this;function r(e){a.query[e]?a.pickerModels[e]=t.setSelectedDate(a.query[e]):a.pickerModels[e]={dateStart:null},s(),l()}function i(e){const t=e.key,o={param:a.query[t],resources:e.options,placeholder:e.placeholder,ngValue:e.ngValue};n.setPlaceholder(o).then((function(e){a.placeholders[t]=e}))}a.pickerModels={},a.placeholders={},a.localizationMap=t.localizationMap,a.onMultiselectInit=function(e){i(e)},a.onMultiselectSelection=function(e,t){t&&(i(e),a.search())},a.onDateRangeSelection=function(e){var t,n;const r=e.key,i=null===(t=a.pickerModels[r])||void 0===t?void 0:t.dateStart,s=null===(n=a.pickerModels[r])||void 0===n?void 0:n.dateEnd;i?!0===e.useFromToKeys?a.query[r]={from:o()(i).utcOffset(0,!0).format(),to:o()(s).utcOffset(0,!0).add(23,"hours").add(59,"minutes").add(59,"seconds").format()}:a.query[r]={$gte:o()(i).utcOffset(0,!0).format(),$lte:o()(s).utcOffset(0,!0).add(23,"hours").add(59,"minutes").add(59,"seconds").format()}:a.query[r]=void 0;a.search()},a.clearDate=function(e){const t=e.key;a.pickerModels[t]={dateStart:null},delete a.query[t],a.search()},a.clearSelection=function(e){const t=e.key,n=e.ngValue||"id";a.query[t]=!1===e.clearAll?[u().head(e.options)[n]]:[],i(e),a.search()},a.selectAll=function(e){const t=e.key,n=e.ngValue||"id";a.query[t]=u().map(e.options,n),i(e),a.search()};const s=e.$watch("vm.query.createdAt",(function(e,t){void 0===t&&void 0===e||r("createdAt")})),l=e.$watch("vm.query.range",(function(e,t){void 0===t&&void 0===e||r("range")}))}function $e(e,t){const n={setSelectedDate:function(t){const a=t.$gte?new Date(o().utc(t.$gte).format("YYYY-MM-DD")):new Date(o().utc(t.from).format("YYYY-MM-DD")),r=t.$lte?new Date(o().utc(t.$lte).format("YYYY-MM-DD")):new Date(o().utc(t.to).format("YYYY-MM-DD")),i={dateStart:new Date(a.getFullYear(),a.getMonth(),a.getDate()),dateEnd:new Date(r.getFullYear(),r.getMonth(),r.getDate())},s=function(t){const a={};o()(t.dateStart).isSame(t.dateEnd)?!function(e){return o()().startOf("day").isSame(e.dateStart)}(t)?!function(e){return o()().subtract(1,"days").startOf("day").isSame(e.dateStart)}(t)?a.placeholder=e("date")(t.dateStart,"dd MMM yyyy"):(a.name="YD",a.placeholder=n.localizationMap.Yesterday):(a.name="TD",a.placeholder=n.localizationMap.Today):!function(e){return o()().startOf("isoWeek").isSame(e.dateStart,"day")&&o()().endOf("isoWeek").isSame(e.dateEnd,"day")}(t)?!function(e){return o()().subtract(1,"weeks").startOf("isoWeek").isSame(e.dateStart,"day")&&o()().subtract(1,"weeks").endOf("isoWeek").isSame(e.dateEnd,"day")}(t)?!function(e){return o()().startOf("month").isSame(e.dateStart,"day")&&o()().endOf("month").isSame(e.dateEnd,"day")}(t)?!function(e){return o()().subtract(1,"months").startOf("month").isSame(e.dateStart,"day")&&o()().subtract(1,"months").endOf("month").isSame(e.dateEnd,"day")}(t)?!function(e){return o()().startOf("year").isSame(e.dateStart,"day")&&o()().endOf("year").isSame(e.dateEnd,"day")}(t)?!function(e){return o()().subtract(1,"years").startOf("year").isSame(e.dateStart,"day")&&o()().subtract(1,"years").endOf("year").isSame(e.dateEnd,"day")}(t)?a.placeholder=e("date")(t.dateStart,"dd"+(t.dateStart.getMonth()!==t.dateEnd.getMonth()||t.dateStart.getFullYear()!==t.dateEnd.getFullYear()?" MMM":"")+(t.dateStart.getFullYear()!==t.dateEnd.getFullYear()?" yyyy":""))+" - "+e("date")(t.dateEnd,"dd MMM yyyy"):(a.name="LY",a.placeholder=n.localizationMap["Last Year"]):(a.name="TY",a.placeholder=n.localizationMap["This Year"]):(a.name="LM",a.placeholder=n.localizationMap["Last Month"]):(a.name="TM",a.placeholder=n.localizationMap["This Month"]):(a.name="LW",a.placeholder=n.localizationMap["Last Week"]):(a.name="TW",a.placeholder=n.localizationMap["This Week"]);return a}(i);return i.selectedTemplate=s.name,i.selectedTemplateName=s.placeholder,i}};return n.localizationMap=t,n}$e.$inject=["$filter","dateFilterLocalizationFactory"],Le.$inject=["$scope","dateRangeManager","quickFilterManager"];const Ue=function(){return{restrict:"A",scope:{msRandomClass:"="},link:function(e,t){const n=e.msRandomClass[Math.floor(Math.random()*e.msRandomClass.length)];t.addClass(n)}}};function je(e){return{restrict:"E",scope:{id:"=",model:"=",download:"="},replace:!0,link:function(t,n){let a=!1;const o=document.createElement("audio");t.download||o.setAttribute("controlsList","nodownload"),o.setAttribute("preload","none"),o.setAttribute("controls",""),o.setAttribute("style","width: 265px;"),o.setAttribute("src"," "),o.onplay=function(n){a||(a=!0,n.preventDefault(),e[t.model||"voiceRecording"].download({id:t.id}).$promise.then((function(e){const t=[e.buffer],n=new Blob(t,{type:e.type});o.setAttribute("type",e.type),o.setAttribute("src",URL.createObjectURL(n)),o.play()})).catch((function(e){console.error(e)})))},n.append(o)}}}je.$inject=["api"];const Fe=je,qe=n.p+"templates/core/directives/ms-report-sysinfo/ms-report-sysinfo.html/ms-report-sysinfo.html";function Ye(){return new Promise(requestAnimationFrame)}const He="Copy System Information to Clipboard";class Be{constructor(e,t,n){this.apiResolver=e,this.browser=t.navigator.userAgent,this.tooltipText=He,this.toasty=n,this.element=null,this.infoCache=null}bindElement(e){this.element=e}onClick(){this.copyJSONToInput()}async copyJSONToInput(){const e=await this.getInformationJSON();await this.copyToClipboard(e)}onError(e){console.error("MSReportSysinfoController error",e),this.toasty.error({title:"An error occurred",msg:"It was impossible to retrieve system information",timeout:3e3})}formatDate(e){const t=o()(e);return t.isValid()?t.format("lll Z"):""}async showLoader(e=!1){await Ye(),e?this.element.addClass("loading"):this.element.removeClass("loading"),this.tooltipText=e?"Please wait while retrieving information":He,this.element.prop("disabled",e)}async getInformation(){if(null===this.infoCache)try{await this.showLoader(!0);const e=await this.apiResolver.resolve("version@get"),{buildDate:t,committedOn:n,tag:a,branch:o,shortHash:r,version:i,name:s,phonebar:l,current:c}=e,u={name:s,version:i,branch:o,shortHash:r,tag:a,buildDate:this.formatDate(t),committedOn:this.formatDate(n),current:c,phonebar:l,client:{name:"motion-client",version:"3.0.0-alpha.8",shortHash:"018e878a",branch:"develop",tag:"",committedOn:"2021-04-20T13:47:37.000Z",buildDate:"2021-04-21T15:39:38.465Z"}},d=await this.apiResolver.resolve("system@get"),{os:f,cpu:m,versions:p}=d,g={software:u,license:await this.apiResolver.resolve("license@get"),system:{os:f,cpu:m,versions:p},browser:this.browser};this.infoCache=g}catch(e){this.onError(e)}finally{setTimeout((async()=>{await this.showLoader(!1)}),3e3)}return this.infoCache}async getInformationJSON(){const e=await this.getInformation();return JSON.stringify(e,null,2)}async copyToClipboard(e){try{await navigator.clipboard.writeText(e),this.toasty.info({title:"Copied to clipboard",msg:"Now you can paste the system information directly in your issue report",timeout:1e4,clickToClose:!0,showClose:!0})}catch(e){this.onError(e)}}}Be.$inject=["apiResolver","$window","toasty"];class Ge{constructor(){this.templateUrl=qe,this.restrict="E",this.scope={},this.controller=Be,this.controllerAs="vm"}link(e,t,n,a,o){console.debug("MSReportSysinfo::link element",t),console.debug("MSReportSysinfo::link scope",e),console.debug("MSReportSysinfo::link attr",n),console.debug("MSReportSysinfo::link ctr",a),console.debug("MSReportSysinfo::link transcludeFn",o),a.bindElement(t)}static directiveFactory(){return new Ge}}Ge.$inject=[];const Ve=Ge.directiveFactory;const We=function(){return{restrict:"A",link:function(e,t){const n=angular.element('<div class="ms-responsive-table-wrapper"></div>');t.after(n),n.append(t)}}};var Qe=n("./node_modules/perfect-scrollbar/index.js"),ze=n.n(Qe);function Ke(e,t,n,a){return{restrict:"AE",compile:function(e){if(!(a.getConfig("disableCustomScrollbars")||a.getConfig("disableCustomScrollbarsOnMobile")&&n.isMobile()))return e.addClass("ms-scroll"),function(e,n,a){let o={};function r(){ze().update(n[0])}a.msScroll&&(o=e.$eval(a.msScroll)),o=angular.extend({},t.getConfig(),o),ze().initialize(n[0],o),n.on("mouseenter",r),e.$watch((function(){return n.prop("scrollHeight")}),(function(e,t){angular.isUndefined(e)||angular.equals(e,t)||r()})),e.$watch((function(){return n.prop("scrollWidth")}),(function(e,t){angular.isUndefined(e)||angular.equals(e,t)||r()})),e.$on("$destroy",(function(){n.off("mouseenter"),ze().destroy(n[0])}))}}}}Ke.$inject=["$timeout","msScrollConfig","msUtils","motionConfig"];const Je=n.p+"templates/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar.html";function Xe(e,t,n,a){const o=this;function r(){angular.isArray(o.onSearch)?i(o.onSearch):o.onResultClick?(o.resultsLoading=!0,e.$parent.$eval("vm.search(query)",{query:o.query.filter}).then((function(e){i(e)})).catch((function(){i([])})).finally((function(){o.resultsLoading=!1}))):o.onSearch()}function i(e){o.expanded&&(void 0===e||angular.isArray(e)||null===e)&&(o.selectedResultIndex=0,o.results=e)}function s(){o.expanded=!0,o.displayOn=!0,e.expand()}function l(){o.query.filter=void 0,o.onResultClick?i(null):r()}function c(t){!1!==t&&l(),o.expanded=!1,e.collapse()}function u(e){o.onResultClick&&o.onResultClick({item:e}),c()}function d(){const e=t.find(".ms-search-bar-results"),a=angular.element(e.find(".result")[o.selectedResultIndex]);if(e&&a){const t=a.position().top-8,r=a.position().top+a.outerHeight()+8;o.ignoreMouseEvents=!0,n.cancel(o.mouseEventIgnoreTimeout),o.mouseEventIgnoreTimeout=n((function(){o.ignoreMouseEvents=!1}),250),e.scrollTop()>t&&e.scrollTop(t),r>e.height()+e.scrollTop()&&e.scrollTop(r-e.height())}}o.queryOptions={debounce:o.debounce||0},o.searchOnEnterKey=a.get().searchOnEnterKey||!1,o.resultsLoading=!1,o.results=null,o.selectedResultIndex=0,o.ignoreMouseEvents=!1,o.expandBar=s,o.collapseBar=c,o.blurCollapse=function(){if(!o.collapseOnBlur)return;c()},o.onKeyDown=function(e){const t=e.keyCode;[27,38,40].indexOf(t)>-1&&e.preventDefault();switch(t){case 13:if(!o.onResultClick)return r();if(!o.results)return;u(o.results[o.selectedResultIndex]);break;case 27:c();break;case 38:o.selectedResultIndex-1>=0&&(o.selectedResultIndex--,d());break;case 40:if(!o.results)return;o.selectedResultIndex+1<o.results.length&&(o.selectedResultIndex++,d())}},o.absorbEvent=function(e){e.preventDefault()},o.handleMouseenter=function(e){if(o.ignoreMouseEvents)return;o.selectedResultIndex=e},o.handleResultClick=u,e.$watch("vm.displayOn",(function(e){angular.isUndefined(e)||(!0!==e||o.expanded?e||!1===o.expanded||c(!1):s())})),e.$watch("vm.query.filter",(function(e,t){if(!angular.isUndefined(e))if(0!==e.length){if(!angular.equals(e,t)&&!1!==o.displayOn){if(!1===o.expanded)s();else{if(!0===o.searchOnEnterKey&&!o.onResultClick)return;if(o.minChars&&o.minChars>e.length)return}r()}}else 0===t.length||o.searchOnEnterKey||l()}))}function Ze(e){return{restrict:"E",scope:{query:"=?",debounce:"=?",direction:"@",iconColor:"@",onSearch:"&",onResultClick:"&?",onExpand:"&?",onCollapse:"&?",collapseOnBlur:"<?",minChars:"<?",displayOn:"=?"},controller:Xe,controllerAs:"vm",bindToController:!0,templateUrl:Je,compile:function(t){return t.addClass("ms-search-bar"),{post:function(t,n){t.collapse=function(){if(n.removeClass("expanded"),"down"===t.vm.direction){n.removeClass("down");const e=n.closest("md-toolbar");e&&e.removeClass("h-128")}e.find("body").removeClass("ms-search-bar-expanded")},t.expand=function(){if(n.addClass("expanded"),"down"===t.vm.direction){n.addClass("down");const e=n.closest("md-toolbar");e&&e.addClass("h-128")}e.find("body").addClass("ms-search-bar-expanded")}}}}}}Ze.$inject=["$document"],Xe.$inject=["$scope","$element","$timeout","settingsManager"];const et=n.p+"templates/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts.html";function tt(e,t,n,a,o,r){const i=this;i.query="",i.queryOptions={debounce:300},i.resultsLoading=!1,i.selectedResultIndex=0,i.ignoreMouseEvents=!1,i.mobileBarActive=!1,i.results=null,i.shortcuts=[],i.sortableOptions={ghostClass:"ghost",forceFallback:!0,fallbackClass:"dragging",onSort:function(){i.saveShortcuts()}},i.populateResults=function(){let e=[];const t=r.getFlatNavigation(),n=o.defer();for(let n=0;n<t.length;n++)t[n].uisref&&e.push(t[n]);if(i.query){e=e.filter((function(e){if(e.title.toLowerCase().includes(i.query.toLowerCase()))return!0}));for(let t=0;t<e.length;t++){e[t].hasShortcut=!1;for(let n=0;n<i.shortcuts.length;n++)if(i.shortcuts[n]._id===e[t]._id){e[t].hasShortcut=!0;break}}}else i.shortcuts.length>0&&(e=i.shortcuts);return i.selectedResultIndex=0,a((function(){n.resolve(e)}),250),n.promise},i.loadShortcuts=function(){const e=o.defer();let n=angular.fromJson(t.get("motion.shortcuts"));return angular.isUndefined(n)&&(n=[{title:"Agents",icon:"icon-account-multiple",state:"app.staff.agents",weight:5,children:[],uisref:"app.staff.agents",hasShortcut:!0},{title:"License",icon:"icon-cog",state:"app.settings.license",weight:10,children:[],uisref:"app.settings.license",hasShortcut:!0}],t.put("motion.shortcuts",angular.toJson(n))),e.resolve(n),e.promise},i.saveShortcuts=function(){const e=o.defer();return t.put("motion.shortcuts",angular.toJson(i.shortcuts)),a((function(){e.resolve({success:!0})}),250),e.promise},i.addShortcut=function(e){e.hasShortcut=!0,i.shortcuts.push(e),i.saveShortcuts()},i.removeShortcut=function(e){e.hasShortcut=!1;for(let t=0;t<i.shortcuts.length;t++)i.shortcuts[t]._id===e._id&&(i.shortcuts.splice(t,1),i.query||(0===i.shortcuts.length?i.results=null:t>=i.shortcuts.length&&(i.selectedResultIndex=i.shortcuts.length-1)));i.saveShortcuts()},i.handleResultClick=function(e){e.hasShortcut?i.removeShortcut(e):i.addShortcut(e)},i.absorbEvent=function(e){e.preventDefault()},i.handleKeydown=function(e){const t=e.keyCode;switch([38,40].indexOf(t)>-1&&e.preventDefault(),t){case 13:i.handleResultClick(i.results[i.selectedResultIndex]);break;case 38:i.selectedResultIndex-1>=0&&(i.selectedResultIndex--,i.ensureSelectedResultIsVisible());break;case 40:i.selectedResultIndex+1<i.results.length&&(i.selectedResultIndex++,i.ensureSelectedResultIsVisible())}},i.handleMouseenter=function(e){i.ignoreMouseEvents||(i.selectedResultIndex=e)},i.temporarilyIgnoreMouseEvents=function(){i.ignoreMouseEvents=!0,a.cancel(i.mouseEventIgnoreTimeout),i.mouseEventIgnoreTimeout=a((function(){i.ignoreMouseEvents=!1}),250)},i.ensureSelectedResultIsVisible=function(){const e=n.find("#ms-shortcut-add-menu").find(".results"),t=angular.element(e.find(".result")[i.selectedResultIndex]);if(e&&t){const n=t.position().top-8,a=t.position().top+t.outerHeight()+8;i.temporarilyIgnoreMouseEvents(),e.scrollTop()>n&&e.scrollTop(n),a>e.height()+e.scrollTop()&&e.scrollTop(a-e.height())}},i.toggleMobileBar=function(){i.mobileBarActive=!i.mobileBarActive},i.loadShortcuts().then((function(e){i.shortcuts=e,i.shortcuts.length>0&&(i.results=e)})),e.$watch("MsShortcuts.query",(function(e,t){angular.isUndefined(e)||angular.equals(e,t)||(i.resultsLoading=!0,i.populateResults().then((function(e){i.results=e}),(function(){i.results=[]})).finally((function(){i.resultsLoading=!1})))}))}tt.$inject=["$scope","$cookies","$document","$timeout","$q","msNavigationService"];const nt=function(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,a){e.$watch((function(){return a.isOpen()&&!a.isLockedOpen()}),(function(e){angular.isUndefined(e)||(t.parent().toggleClass("full-height",e),angular.element("html").toggleClass("sidenav-open",e))}))}}};function at(e){return{restrict:"E",link:function(t,n){const a=t.$on("msSplashScreen::remove",(function(){e.leave(n).then((function(){a(),t=null,n=null}))}))}}}at.$inject=["$animate"];const ot=at,rt=n.p+"templates/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal.html",it=n.p+"templates/core/directives/ms-stepper/templates/vertical/vertical.html/vertical.html",st=n.p+"templates/core/directives/ms-stepper/templates/vertical/step/vertical-step.html/vertical-step.html";function lt(e){const t=this;function n(e){return!(angular.isUndefined(e)||e<1||e>t.steps.length)}function a(){t.setCurrentStep(1)}function o(e){return n(e)?!!t.steps[e-1].scope.hideStep:null}function r(e){return n(e)?t.steps[e-1].scope.optionalStep:null}function i(e){return n(e)?!!r(e)||t.steps[e-1].form.$valid:null}t.mainForm=void 0,t.orientation="horizontal",t.steps=[],t.currentStep=void 0,t.currentStepNumber=1,t.setOrientation=function(e){t.orientation=e||"horizontal"},t.registerMainForm=function(e){t.mainForm=e},t.registerStep=function(e,n,a){const o={element:e,scope:n,form:a,stepNumber:n.step||t.steps.length+1,stepTitle:n.stepTitle,stepTitleTranslate:n.stepTitleTranslate};return t.steps.push(o),t.steps.sort((function(e,t){return e.stepNumber-t.stepNumber})),o},t.setupSteps=function(){t.setCurrentStep(t.currentStepNumber)},t.resetForm=function(){e((function(){for(let e=0;e<t.steps.length;e++)t.steps[e].form.$setPristine(),t.steps[e].form.$setUntouched();t.mainForm.$setPristine(),t.mainForm.$setUntouched(),a()}))},t.setCurrentStep=function(e){if(n(e))if(t.currentStepNumber=e,"horizontal"===t.orientation){for(let e=0;e<t.steps.length;e++)t.steps[e].element.hide();t.steps[t.currentStepNumber-1].element.show()}else if("vertical"===t.orientation){for(let e=0;e<t.steps.length;e++)t.steps[e].element.find(".ms-stepper-step-content").hide();t.steps[t.currentStepNumber-1].element.find(".ms-stepper-step-content").show()}},t.gotoStep=function(e){o(e)||t.setCurrentStep(e)},t.gotoPreviousStep=function(){let e=t.currentStepNumber-1;for(let t=e;t>=1;t--)if(!o(t)){e=t;break}t.setCurrentStep(e)},t.gotoNextStep=function(){let e=t.currentStepNumber+1;for(let n=e;n<=t.steps.length;n++)if(!o(n)){e=n;break}t.setCurrentStep(e)},t.gotoFirstStep=a,t.gotoLastStep=function(){t.setCurrentStep(t.steps.length)},t.isFirstStep=function(){return 1===t.currentStepNumber},t.isLastStep=function(){return t.currentStepNumber===t.steps.length},t.isStepCurrent=function(e){return n(e)?t.currentStepNumber===e:null},t.isStepDisabled=function(e){if(!n(e))return null;let t=!1;for(let n=1;n<e;n++)if(!i(n)){t=!0;break}return t},t.isStepOptional=r,t.isStepHidden=o,t.filterHiddenStep=function(e){return!o(e.stepNumber)},t.isStepValid=i,t.isStepNumberValid=n,t.isFormValid=function(){return t.mainForm.$valid}}function ct(e){return{restrict:"A",scope:{},require:["form","msVerticalStepper"],priority:1001,controller:"MsStepperController as MsStepper",bindToController:{model:"=ngModel"},transclude:!0,templateUrl:it,compile:function(t){return t.addClass("ms-stepper"),function(t,n,a,o){const r=o[0],i=o[1];e((function(){i.setOrientation("vertical"),i.registerMainForm(r),i.setupSteps()}))}}}}ct.$inject=["$timeout"],lt.$inject=["$timeout"];const ut=n.p+"templates/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll.html";var dt=n("./node_modules/jquery/dist/jquery.js");function ft(e,t){return{scope:!0,require:"^msTimeline",compile:function(n){return n.addClass("ms-timeline-item").addClass("hidden"),function(n,a,o,r){let i=!1,s=!1;const l=r.getScrollEl();!function(){a.find("ms-card")?n.$on("msCard::cardTemplateLoaded",(function(t,n){u(angular.element(n[0])).then((function(){e((function(){i=!0}))}))})):u(a).then((function(){e((function(){i=!0}))}));l.on("scroll",d),d()}();const c=n.$watch((function(){return i&&s}),(function(e,t){angular.equals(e,t)||e&&(a.removeClass("hidden").addClass("animate"),c())}),!0);function u(e){const n=t.defer(),a=e.find("img");return a.length>0?a.on("load",(function(){n.resolve("Image is loaded")})):n.resolve("No images"),n.promise}function d(){l.scrollTop()+l.height()>a.position().top+72&&(e((function(){s=!0})),l.off("scroll",d))}}}}}function mt(e,t,n,a,r){const i=this;function s(){!function(){i.millis=l().diff(o()(i.startingTime));const e=o().duration(i.millis),t=e.seconds(),n=e.minutes(),a=e.hours(),r=e.days(),s=e.months(),c=e.years();i.seconds=t<10?"0"+t:t,i.minutes=n<10?"0"+n:n,i.hours=a<10?"0"+a:a,i.days=r<10?"0"+r:r,i.months=s<10?"0"+s:s,i.years=c<10?"0"+c:c,i.timer=i.days>0?i.days+"d ":i.hours+":"+i.minutes+":"+i.seconds}(),null!==i.timeoutId&&(clearTimeout(i.timeoutId),i.timeoutId=null),i.timeoutId=setTimeout((function(){s(),e.$digest()}),i.interval)}function l(t){const n=(t||o()()).utcOffset(e.serverDateOffset).format("YYYY-MM-DD HH:mm:ss");return o()(n)}function c(){n((function(t,n){try{if(e.serverDateOffset)return void t(l());a.setting.getDate().$promise.then((function(n){e.serverDateOffset=n.offset,t(o()(n.now))}))}catch(e){n(e)}})).then((function(e){const t=i.startTime?o()(i.startTime):void 0;i.startTime?t.isAfter(e,"hour")||t.isBefore(e,"hour")?i.startingTime=l(t):i.startingTime=t:i.startingTime=e,s()})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.setting.getDate",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}i.timeoutId=null,c(),e.$on("timer-start",(function(){i.startTime=void 0,c()})),t.bind("$destroy",(function(){null!==i.timeoutId&&(clearTimeout(i.timeoutId),i.timeoutId=null)}))}ft.$inject=["$timeout","$q"],mt.$inject=["$scope","$element","$q","api","toasty"];const pt=n.p+"templates/core/directives/ms-timezone/ms-timezone.html/ms-timezone.html";const gt=function(){return{restrict:"E",scope:{ngModel:"="},controller:["$scope",function(e){e.timezone=[{name:"Europe/Andorra",utcOffset:60,offsetStr:"+01:00",countries:["AD"]},{name:"Asia/Dubai",utcOffset:240,offsetStr:"+04:00",countries:["AE","OM"]},{name:"Asia/Kabul",utcOffset:270,offsetStr:"+04:30",countries:["AF"]},{name:"Europe/Tirane",utcOffset:60,offsetStr:"+01:00",countries:["AL"]},{name:"Asia/Yerevan",utcOffset:240,offsetStr:"+04:00",countries:["AM"]},{name:"Antarctica/Rothera",utcOffset:-180,offsetStr:"-03:00",countries:["AQ"]},{name:"Antarctica/Palmer",utcOffset:-180,offsetStr:"-03:00",countries:["AQ"]},{name:"Antarctica/Mawson",utcOffset:300,offsetStr:"+05:00",countries:["AQ"]},{name:"Antarctica/Davis",utcOffset:420,offsetStr:"+07:00",countries:["AQ"]},{name:"Antarctica/Casey",utcOffset:480,offsetStr:"+08:00",countries:["AQ"]},{name:"Antarctica/Vostok",utcOffset:360,offsetStr:"+06:00",countries:["AQ"]},{name:"Antarctica/DumontDUrville",utcOffset:600,offsetStr:"+10:00",countries:["AQ"]},{name:"Antarctica/Syowa",utcOffset:180,offsetStr:"+03:00",countries:["AQ"]},{name:"Antarctica/Troll",utcOffset:0,offsetStr:"+00:00",countries:["AQ"]},{name:"America/Argentina/Buenos_Aires",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Cordoba",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Salta",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Jujuy",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Tucuman",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Catamarca",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/La_Rioja",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/San_Juan",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Mendoza",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/San_Luis",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Rio_Gallegos",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"America/Argentina/Ushuaia",utcOffset:-180,offsetStr:"-03:00",countries:["AR"]},{name:"Pacific/Pago_Pago",utcOffset:-660,offsetStr:"-11:00",countries:["AS","UM"]},{name:"Europe/Vienna",utcOffset:60,offsetStr:"+01:00",countries:["AT"]},{name:"Australia/Lord_Howe",utcOffset:660,offsetStr:"+11:00",countries:["AU"]},{name:"Antarctica/Macquarie",utcOffset:660,offsetStr:"+11:00",countries:["AU"]},{name:"Australia/Hobart",utcOffset:660,offsetStr:"+11:00",countries:["AU"]},{name:"Australia/Currie",utcOffset:660,offsetStr:"+11:00",countries:["AU"]},{name:"Australia/Melbourne",utcOffset:660,offsetStr:"+11:00",countries:["AU"]},{name:"Australia/Sydney",utcOffset:660,offsetStr:"+11:00",countries:["AU"]},{name:"Australia/Broken_Hill",utcOffset:630,offsetStr:"+10:30",countries:["AU"]},{name:"Australia/Brisbane",utcOffset:600,offsetStr:"+10:00",countries:["AU"]},{name:"Australia/Lindeman",utcOffset:600,offsetStr:"+10:00",countries:["AU"]},{name:"Australia/Adelaide",utcOffset:630,offsetStr:"+10:30",countries:["AU"]},{name:"Australia/Darwin",utcOffset:570,offsetStr:"+09:30",countries:["AU"]},{name:"Australia/Perth",utcOffset:480,offsetStr:"+08:00",countries:["AU"]},{name:"Australia/Eucla",utcOffset:525,offsetStr:"+08:45",countries:["AU"]},{name:"Asia/Baku",utcOffset:240,offsetStr:"+04:00",countries:["AZ"]},{name:"America/Barbados",utcOffset:-240,offsetStr:"-04:00",countries:["BB"]},{name:"Asia/Dhaka",utcOffset:360,offsetStr:"+06:00",countries:["BD"]},{name:"Europe/Brussels",utcOffset:60,offsetStr:"+01:00",countries:["BE"]},{name:"Europe/Sofia",utcOffset:120,offsetStr:"+02:00",countries:["BG"]},{name:"Atlantic/Bermuda",utcOffset:-240,offsetStr:"-04:00",countries:["BM"]},{name:"Asia/Brunei",utcOffset:480,offsetStr:"+08:00",countries:["BN"]},{name:"America/La_Paz",utcOffset:-240,offsetStr:"-04:00",countries:["BO"]},{name:"America/Noronha",utcOffset:-120,offsetStr:"-02:00",countries:["BR"]},{name:"America/Belem",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Fortaleza",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Recife",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Araguaina",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Maceio",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Bahia",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Sao_Paulo",utcOffset:-120,offsetStr:"-02:00",countries:["BR"]},{name:"America/Campo_Grande",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Cuiaba",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Santarem",utcOffset:-180,offsetStr:"-03:00",countries:["BR"]},{name:"America/Porto_Velho",utcOffset:-240,offsetStr:"-04:00",countries:["BR"]},{name:"America/Boa_Vista",utcOffset:-240,offsetStr:"-04:00",countries:["BR"]},{name:"America/Manaus",utcOffset:-240,offsetStr:"-04:00",countries:["BR"]},{name:"America/Eirunepe",utcOffset:-300,offsetStr:"-05:00",countries:["BR"]},{name:"America/Rio_Branco",utcOffset:-300,offsetStr:"-05:00",countries:["BR"]},{name:"America/Nassau",utcOffset:-300,offsetStr:"-05:00",countries:["BS"]},{name:"Asia/Thimphu",utcOffset:360,offsetStr:"+06:00",countries:["BT"]},{name:"Europe/Minsk",utcOffset:180,offsetStr:"+03:00",countries:["BY"]},{name:"America/Belize",utcOffset:-360,offsetStr:"-06:00",countries:["BZ"]},{name:"America/St_Johns",utcOffset:-210,offsetStr:"-03:30",countries:["CA"]},{name:"America/Halifax",utcOffset:-240,offsetStr:"-04:00",countries:["CA"]},{name:"America/Glace_Bay",utcOffset:-240,offsetStr:"-04:00",countries:["CA"]},{name:"America/Moncton",utcOffset:-240,offsetStr:"-04:00",countries:["CA"]},{name:"America/Goose_Bay",utcOffset:-240,offsetStr:"-04:00",countries:["CA"]},{name:"America/Blanc-Sablon",utcOffset:-240,offsetStr:"-04:00",countries:["CA"]},{name:"America/Toronto",utcOffset:-300,offsetStr:"-05:00",countries:["CA"]},{name:"America/Nipigon",utcOffset:-300,offsetStr:"-05:00",countries:["CA"]},{name:"America/Thunder_Bay",utcOffset:-300,offsetStr:"-05:00",countries:["CA"]},{name:"America/Iqaluit",utcOffset:-300,offsetStr:"-05:00",countries:["CA"]},{name:"America/Pangnirtung",utcOffset:-300,offsetStr:"-05:00",countries:["CA"]},{name:"America/Resolute",utcOffset:-360,offsetStr:"-06:00",countries:["CA"]},{name:"America/Atikokan",utcOffset:-300,offsetStr:"-05:00",countries:["CA"]},{name:"America/Rankin_Inlet",utcOffset:-360,offsetStr:"-06:00",countries:["CA"]},{name:"America/Winnipeg",utcOffset:-360,offsetStr:"-06:00",countries:["CA"]},{name:"America/Rainy_River",utcOffset:-360,offsetStr:"-06:00",countries:["CA"]},{name:"America/Regina",utcOffset:-360,offsetStr:"-06:00",countries:["CA"]},{name:"America/Swift_Current",utcOffset:-360,offsetStr:"-06:00",countries:["CA"]},{name:"America/Edmonton",utcOffset:-420,offsetStr:"-07:00",countries:["CA"]},{name:"America/Cambridge_Bay",utcOffset:-420,offsetStr:"-07:00",countries:["CA"]},{name:"America/Yellowknife",utcOffset:-420,offsetStr:"-07:00",countries:["CA"]},{name:"America/Inuvik",utcOffset:-420,offsetStr:"-07:00",countries:["CA"]},{name:"America/Creston",utcOffset:-420,offsetStr:"-07:00",countries:["CA"]},{name:"America/Dawson_Creek",utcOffset:-420,offsetStr:"-07:00",countries:["CA"]},{name:"America/Fort_Nelson",utcOffset:-420,offsetStr:"-07:00",countries:["CA"]},{name:"America/Vancouver",utcOffset:-480,offsetStr:"-08:00",countries:["CA"]},{name:"America/Whitehorse",utcOffset:-480,offsetStr:"-08:00",countries:["CA"]},{name:"America/Dawson",utcOffset:-480,offsetStr:"-08:00",countries:["CA"]},{name:"Indian/Cocos",utcOffset:390,offsetStr:"+06:30",countries:["CC"]},{name:"Europe/Zurich",utcOffset:60,offsetStr:"+01:00",countries:["CH","DE","LI"]},{name:"Africa/Abidjan",utcOffset:0,offsetStr:"+00:00",countries:["CI","BF","GM","GN","ML","MR","SH","SL","SN","ST","TG"]},{name:"Pacific/Rarotonga",utcOffset:-600,offsetStr:"-10:00",countries:["CK"]},{name:"America/Santiago",utcOffset:-180,offsetStr:"-03:00",countries:["CL"]},{name:"Pacific/Easter",utcOffset:-300,offsetStr:"-05:00",countries:["CL"]},{name:"Asia/Shanghai",utcOffset:480,offsetStr:"+08:00",countries:["CN"]},{name:"Asia/Urumqi",utcOffset:360,offsetStr:"+06:00",countries:["CN"]},{name:"America/Bogota",utcOffset:-300,offsetStr:"-05:00",countries:["CO"]},{name:"America/Costa_Rica",utcOffset:-360,offsetStr:"-06:00",countries:["CR"]},{name:"America/Havana",utcOffset:-300,offsetStr:"-05:00",countries:["CU"]},{name:"Atlantic/Cape_Verde",utcOffset:-60,offsetStr:"-01:00",countries:["CV"]},{name:"America/Curacao",utcOffset:-240,offsetStr:"-04:00",countries:["CW","AW","BQ","SX"]},{name:"Indian/Christmas",utcOffset:420,offsetStr:"+07:00",countries:["CX"]},{name:"Asia/Nicosia",utcOffset:120,offsetStr:"+02:00",countries:["CY"]},{name:"Europe/Prague",utcOffset:60,offsetStr:"+01:00",countries:["CZ","SK"]},{name:"Europe/Berlin",utcOffset:60,offsetStr:"+01:00",countries:["DE"]},{name:"Europe/Copenhagen",utcOffset:60,offsetStr:"+01:00",countries:["DK"]},{name:"America/Santo_Domingo",utcOffset:-240,offsetStr:"-04:00",countries:["DO"]},{name:"Africa/Algiers",utcOffset:60,offsetStr:"+01:00",countries:["DZ"]},{name:"America/Guayaquil",utcOffset:-300,offsetStr:"-05:00",countries:["EC"]},{name:"Pacific/Galapagos",utcOffset:-360,offsetStr:"-06:00",countries:["EC"]},{name:"Europe/Tallinn",utcOffset:120,offsetStr:"+02:00",countries:["EE"]},{name:"Africa/Cairo",utcOffset:120,offsetStr:"+02:00",countries:["EG"]},{name:"Africa/El_Aaiun",utcOffset:0,offsetStr:"+00:00",countries:["EH"]},{name:"Europe/Madrid",utcOffset:60,offsetStr:"+01:00",countries:["ES"]},{name:"Africa/Ceuta",utcOffset:60,offsetStr:"+01:00",countries:["ES"]},{name:"Atlantic/Canary",utcOffset:0,offsetStr:"+00:00",countries:["ES"]},{name:"Europe/Helsinki",utcOffset:120,offsetStr:"+02:00",countries:["FI","AX"]},{name:"Pacific/Fiji",utcOffset:720,offsetStr:"+12:00",countries:["FJ"]},{name:"Atlantic/Stanley",utcOffset:-180,offsetStr:"-03:00",countries:["FK"]},{name:"Pacific/Chuuk",utcOffset:600,offsetStr:"+10:00",countries:["FM"]},{name:"Pacific/Pohnpei",utcOffset:660,offsetStr:"+11:00",countries:["FM"]},{name:"Pacific/Kosrae",utcOffset:660,offsetStr:"+11:00",countries:["FM"]},{name:"Atlantic/Faroe",utcOffset:0,offsetStr:"+00:00",countries:["FO"]},{name:"Europe/Paris",utcOffset:60,offsetStr:"+01:00",countries:["FR"]},{name:"Europe/London",utcOffset:0,offsetStr:"+00:00",countries:["GB","GG","IM","JE"]},{name:"Asia/Tbilisi",utcOffset:240,offsetStr:"+04:00",countries:["GE"]},{name:"America/Cayenne",utcOffset:-180,offsetStr:"-03:00",countries:["GF"]},{name:"Africa/Accra",utcOffset:0,offsetStr:"+00:00",countries:["GH"]},{name:"Europe/Gibraltar",utcOffset:60,offsetStr:"+01:00",countries:["GI"]},{name:"America/Godthab",utcOffset:-180,offsetStr:"-03:00",countries:["GL"]},{name:"America/Danmarkshavn",utcOffset:0,offsetStr:"+00:00",countries:["GL"]},{name:"America/Scoresbysund",utcOffset:-60,offsetStr:"-01:00",countries:["GL"]},{name:"America/Thule",utcOffset:-240,offsetStr:"-04:00",countries:["GL"]},{name:"Europe/Athens",utcOffset:120,offsetStr:"+02:00",countries:["GR"]},{name:"Atlantic/South_Georgia",utcOffset:-120,offsetStr:"-02:00",countries:["GS"]},{name:"America/Guatemala",utcOffset:-360,offsetStr:"-06:00",countries:["GT"]},{name:"Pacific/Guam",utcOffset:600,offsetStr:"+10:00",countries:["GU","MP"]},{name:"Africa/Bissau",utcOffset:0,offsetStr:"+00:00",countries:["GW"]},{name:"America/Guyana",utcOffset:-240,offsetStr:"-04:00",countries:["GY"]},{name:"Asia/Hong_Kong",utcOffset:480,offsetStr:"+08:00",countries:["HK"]},{name:"America/Tegucigalpa",utcOffset:-360,offsetStr:"-06:00",countries:["HN"]},{name:"America/Port-au-Prince",utcOffset:-300,offsetStr:"-05:00",countries:["HT"]},{name:"Europe/Budapest",utcOffset:60,offsetStr:"+01:00",countries:["HU"]},{name:"Asia/Jakarta",utcOffset:420,offsetStr:"+07:00",countries:["ID"]},{name:"Asia/Pontianak",utcOffset:420,offsetStr:"+07:00",countries:["ID"]},{name:"Asia/Makassar",utcOffset:480,offsetStr:"+08:00",countries:["ID"]},{name:"Asia/Jayapura",utcOffset:540,offsetStr:"+09:00",countries:["ID"]},{name:"Europe/Dublin",utcOffset:0,offsetStr:"+00:00",countries:["IE"]},{name:"Asia/Jerusalem",utcOffset:120,offsetStr:"+02:00",countries:["IL"]},{name:"Asia/Kolkata",utcOffset:330,offsetStr:"+05:30",countries:["IN"]},{name:"Indian/Chagos",utcOffset:360,offsetStr:"+06:00",countries:["IO"]},{name:"Asia/Baghdad",utcOffset:180,offsetStr:"+03:00",countries:["IQ"]},{name:"Asia/Tehran",utcOffset:210,offsetStr:"+03:30",countries:["IR"]},{name:"Atlantic/Reykjavik",utcOffset:0,offsetStr:"+00:00",countries:["IS"]},{name:"Europe/Rome",utcOffset:60,offsetStr:"+01:00",countries:["IT","SM","VA"]},{name:"America/Jamaica",utcOffset:-300,offsetStr:"-05:00",countries:["JM"]},{name:"Asia/Amman",utcOffset:120,offsetStr:"+02:00",countries:["JO"]},{name:"Asia/Tokyo",utcOffset:540,offsetStr:"+09:00",countries:["JP"]},{name:"Africa/Nairobi",utcOffset:180,offsetStr:"+03:00",countries:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},{name:"Asia/Bishkek",utcOffset:360,offsetStr:"+06:00",countries:["KG"]},{name:"Pacific/Tarawa",utcOffset:720,offsetStr:"+12:00",countries:["KI"]},{name:"Pacific/Enderbury",utcOffset:780,offsetStr:"+13:00",countries:["KI"]},{name:"Pacific/Kiritimati",utcOffset:840,offsetStr:"+14:00",countries:["KI"]},{name:"Asia/Pyongyang",utcOffset:510,offsetStr:"+08:30",countries:["KP"]},{name:"Asia/Seoul",utcOffset:540,offsetStr:"+09:00",countries:["KR"]},{name:"America/Cayman",utcOffset:-300,offsetStr:"-05:00",countries:["KY"]},{name:"Asia/Almaty",utcOffset:360,offsetStr:"+06:00",countries:["KZ"]},{name:"Asia/Qyzylorda",utcOffset:360,offsetStr:"+06:00",countries:["KZ"]},{name:"Asia/Aqtobe",utcOffset:300,offsetStr:"+05:00",countries:["KZ"]},{name:"Asia/Aqtau",utcOffset:300,offsetStr:"+05:00",countries:["KZ"]},{name:"Asia/Oral",utcOffset:300,offsetStr:"+05:00",countries:["KZ"]},{name:"Asia/Beirut",utcOffset:120,offsetStr:"+02:00",countries:["LB"]},{name:"Asia/Colombo",utcOffset:330,offsetStr:"+05:30",countries:["LK"]},{name:"Africa/Monrovia",utcOffset:0,offsetStr:"+00:00",countries:["LR"]},{name:"Europe/Vilnius",utcOffset:120,offsetStr:"+02:00",countries:["LT"]},{name:"Europe/Luxembourg",utcOffset:60,offsetStr:"+01:00",countries:["LU"]},{name:"Europe/Riga",utcOffset:120,offsetStr:"+02:00",countries:["LV"]},{name:"Africa/Tripoli",utcOffset:120,offsetStr:"+02:00",countries:["LY"]},{name:"Africa/Casablanca",utcOffset:0,offsetStr:"+00:00",countries:["MA"]},{name:"Europe/Monaco",utcOffset:60,offsetStr:"+01:00",countries:["MC"]},{name:"Europe/Chisinau",utcOffset:120,offsetStr:"+02:00",countries:["MD"]},{name:"Pacific/Majuro",utcOffset:720,offsetStr:"+12:00",countries:["MH"]},{name:"Pacific/Kwajalein",utcOffset:720,offsetStr:"+12:00",countries:["MH"]},{name:"Asia/Rangoon",utcOffset:390,offsetStr:"+06:30",countries:["MM"]},{name:"Asia/Ulaanbaatar",utcOffset:480,offsetStr:"+08:00",countries:["MN"]},{name:"Asia/Hovd",utcOffset:420,offsetStr:"+07:00",countries:["MN"]},{name:"Asia/Choibalsan",utcOffset:480,offsetStr:"+08:00",countries:["MN"]},{name:"Asia/Macau",utcOffset:480,offsetStr:"+08:00",countries:["MO"]},{name:"America/Martinique",utcOffset:-240,offsetStr:"-04:00",countries:["MQ"]},{name:"Europe/Malta",utcOffset:60,offsetStr:"+01:00",countries:["MT"]},{name:"Indian/Mauritius",utcOffset:240,offsetStr:"+04:00",countries:["MU"]},{name:"Indian/Maldives",utcOffset:300,offsetStr:"+05:00",countries:["MV"]},{name:"America/Mexico_City",utcOffset:-360,offsetStr:"-06:00",countries:["MX"]},{name:"America/Cancun",utcOffset:-300,offsetStr:"-05:00",countries:["MX"]},{name:"America/Merida",utcOffset:-360,offsetStr:"-06:00",countries:["MX"]},{name:"America/Monterrey",utcOffset:-360,offsetStr:"-06:00",countries:["MX"]},{name:"America/Matamoros",utcOffset:-360,offsetStr:"-06:00",countries:["MX"]},{name:"America/Mazatlan",utcOffset:-420,offsetStr:"-07:00",countries:["MX"]},{name:"America/Chihuahua",utcOffset:-420,offsetStr:"-07:00",countries:["MX"]},{name:"America/Ojinaga",utcOffset:-420,offsetStr:"-07:00",countries:["MX"]},{name:"America/Hermosillo",utcOffset:-420,offsetStr:"-07:00",countries:["MX"]},{name:"America/Tijuana",utcOffset:-480,offsetStr:"-08:00",countries:["MX"]},{name:"America/Santa_Isabel",utcOffset:-480,offsetStr:"-08:00",countries:["MX"]},{name:"America/Bahia_Banderas",utcOffset:-360,offsetStr:"-06:00",countries:["MX"]},{name:"Asia/Kuala_Lumpur",utcOffset:480,offsetStr:"+08:00",countries:["MY"]},{name:"Asia/Kuching",utcOffset:480,offsetStr:"+08:00",countries:["MY"]},{name:"Africa/Maputo",utcOffset:120,offsetStr:"+02:00",countries:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},{name:"Africa/Windhoek",utcOffset:120,offsetStr:"+02:00",countries:["NA"]},{name:"Pacific/Noumea",utcOffset:660,offsetStr:"+11:00",countries:["NC"]},{name:"Pacific/Norfolk",utcOffset:660,offsetStr:"+11:00",countries:["NF"]},{name:"Africa/Lagos",utcOffset:60,offsetStr:"+01:00",countries:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},{name:"America/Managua",utcOffset:-360,offsetStr:"-06:00",countries:["NI"]},{name:"Europe/Amsterdam",utcOffset:60,offsetStr:"+01:00",countries:["NL"]},{name:"Europe/Oslo",utcOffset:60,offsetStr:"+01:00",countries:["NO","SJ"]},{name:"Asia/Kathmandu",utcOffset:345,offsetStr:"+05:45",countries:["NP"]},{name:"Pacific/Nauru",utcOffset:720,offsetStr:"+12:00",countries:["NR"]},{name:"Pacific/Niue",utcOffset:-660,offsetStr:"-11:00",countries:["NU"]},{name:"Pacific/Auckland",utcOffset:780,offsetStr:"+13:00",countries:["NZ","AQ"]},{name:"Pacific/Chatham",utcOffset:825,offsetStr:"+13:45",countries:["NZ"]},{name:"America/Panama",utcOffset:-300,offsetStr:"-05:00",countries:["PA"]},{name:"America/Lima",utcOffset:-300,offsetStr:"-05:00",countries:["PE"]},{name:"Pacific/Tahiti",utcOffset:-600,offsetStr:"-10:00",countries:["PF"]},{name:"Pacific/Marquesas",utcOffset:-570,offsetStr:"-09:30",countries:["PF"]},{name:"Pacific/Gambier",utcOffset:-540,offsetStr:"-09:00",countries:["PF"]},{name:"Pacific/Port_Moresby",utcOffset:600,offsetStr:"+10:00",countries:["PG"]},{name:"Pacific/Bougainville",utcOffset:660,offsetStr:"+11:00",countries:["PG"]},{name:"Asia/Manila",utcOffset:480,offsetStr:"+08:00",countries:["PH"]},{name:"Asia/Karachi",utcOffset:300,offsetStr:"+05:00",countries:["PK"]},{name:"Europe/Warsaw",utcOffset:60,offsetStr:"+01:00",countries:["PL"]},{name:"America/Miquelon",utcOffset:-180,offsetStr:"-03:00",countries:["PM"]},{name:"Pacific/Pitcairn",utcOffset:-480,offsetStr:"-08:00",countries:["PN"]},{name:"America/Puerto_Rico",utcOffset:-240,offsetStr:"-04:00",countries:["PR"]},{name:"Asia/Gaza",utcOffset:120,offsetStr:"+02:00",countries:["PS"]},{name:"Asia/Hebron",utcOffset:120,offsetStr:"+02:00",countries:["PS"]},{name:"Europe/Lisbon",utcOffset:0,offsetStr:"+00:00",countries:["PT"]},{name:"Atlantic/Madeira",utcOffset:0,offsetStr:"+00:00",countries:["PT"]},{name:"Atlantic/Azores",utcOffset:-60,offsetStr:"-01:00",countries:["PT"]},{name:"Pacific/Palau",utcOffset:540,offsetStr:"+09:00",countries:["PW"]},{name:"America/Asuncion",utcOffset:-180,offsetStr:"-03:00",countries:["PY"]},{name:"Asia/Qatar",utcOffset:180,offsetStr:"+03:00",countries:["QA","BH"]},{name:"Indian/Reunion",utcOffset:240,offsetStr:"+04:00",countries:["RE","TF"]},{name:"Europe/Bucharest",utcOffset:120,offsetStr:"+02:00",countries:["RO"]},{name:"Europe/Belgrade",utcOffset:60,offsetStr:"+01:00",countries:["RS","BA","HR","ME","MK","SI"]},{name:"Europe/Kaliningrad",utcOffset:120,offsetStr:"+02:00",countries:["RU"]},{name:"Europe/Moscow",utcOffset:180,offsetStr:"+03:00",countries:["RU"]},{name:"Europe/Simferopol",utcOffset:180,offsetStr:"+03:00",countries:["RU"]},{name:"Europe/Volgograd",utcOffset:180,offsetStr:"+03:00",countries:["RU"]},{name:"Europe/Samara",utcOffset:240,offsetStr:"+04:00",countries:["RU"]},{name:"Asia/Yekaterinburg",utcOffset:300,offsetStr:"+05:00",countries:["RU"]},{name:"Asia/Omsk",utcOffset:360,offsetStr:"+06:00",countries:["RU"]},{name:"Asia/Novosibirsk",utcOffset:360,offsetStr:"+06:00",countries:["RU"]},{name:"Asia/Novokuznetsk",utcOffset:420,offsetStr:"+07:00",countries:["RU"]},{name:"Asia/Krasnoyarsk",utcOffset:420,offsetStr:"+07:00",countries:["RU"]},{name:"Asia/Irkutsk",utcOffset:480,offsetStr:"+08:00",countries:["RU"]},{name:"Asia/Chita",utcOffset:480,offsetStr:"+08:00",countries:["RU"]},{name:"Asia/Yakutsk",utcOffset:540,offsetStr:"+09:00",countries:["RU"]},{name:"Asia/Khandyga",utcOffset:540,offsetStr:"+09:00",countries:["RU"]},{name:"Asia/Vladivostok",utcOffset:600,offsetStr:"+10:00",countries:["RU"]},{name:"Asia/Sakhalin",utcOffset:600,offsetStr:"+10:00",countries:["RU"]},{name:"Asia/Ust-Nera",utcOffset:600,offsetStr:"+10:00",countries:["RU"]},{name:"Asia/Magadan",utcOffset:600,offsetStr:"+10:00",countries:["RU"]},{name:"Asia/Srednekolymsk",utcOffset:660,offsetStr:"+11:00",countries:["RU"]},{name:"Asia/Kamchatka",utcOffset:720,offsetStr:"+12:00",countries:["RU"]},{name:"Asia/Anadyr",utcOffset:720,offsetStr:"+12:00",countries:["RU"]},{name:"Asia/Riyadh",utcOffset:180,offsetStr:"+03:00",countries:["SA","KW","YE"]},{name:"Pacific/Guadalcanal",utcOffset:660,offsetStr:"+11:00",countries:["SB"]},{name:"Indian/Mahe",utcOffset:240,offsetStr:"+04:00",countries:["SC"]},{name:"Africa/Khartoum",utcOffset:180,offsetStr:"+03:00",countries:["SD","SS"]},{name:"Europe/Stockholm",utcOffset:60,offsetStr:"+01:00",countries:["SE"]},{name:"Asia/Singapore",utcOffset:480,offsetStr:"+08:00",countries:["SG"]},{name:"America/Paramaribo",utcOffset:-180,offsetStr:"-03:00",countries:["SR"]},{name:"America/El_Salvador",utcOffset:-360,offsetStr:"-06:00",countries:["SV"]},{name:"Asia/Damascus",utcOffset:120,offsetStr:"+02:00",countries:["SY"]},{name:"America/Grand_Turk",utcOffset:-240,offsetStr:"-04:00",countries:["TC"]},{name:"Africa/Ndjamena",utcOffset:60,offsetStr:"+01:00",countries:["TD"]},{name:"Indian/Kerguelen",utcOffset:300,offsetStr:"+05:00",countries:["TF"]},{name:"Asia/Bangkok",utcOffset:420,offsetStr:"+07:00",countries:["TH","KH","LA","VN"]},{name:"Asia/Dushanbe",utcOffset:300,offsetStr:"+05:00",countries:["TJ"]},{name:"Pacific/Fakaofo",utcOffset:780,offsetStr:"+13:00",countries:["TK"]},{name:"Asia/Dili",utcOffset:540,offsetStr:"+09:00",countries:["TL"]},{name:"Asia/Ashgabat",utcOffset:300,offsetStr:"+05:00",countries:["TM"]},{name:"Africa/Tunis",utcOffset:60,offsetStr:"+01:00",countries:["TN"]},{name:"Pacific/Tongatapu",utcOffset:780,offsetStr:"+13:00",countries:["TO"]},{name:"Europe/Istanbul",utcOffset:120,offsetStr:"+02:00",countries:["TR"]},{name:"America/Port_of_Spain",utcOffset:-240,offsetStr:"-04:00",countries:["TT","AG","AI","BL","DM","GD","GP","KN","LC","MF","MS","VC","VG","VI"]},{name:"Pacific/Funafuti",utcOffset:720,offsetStr:"+12:00",countries:["TV"]},{name:"Asia/Taipei",utcOffset:480,offsetStr:"+08:00",countries:["TW"]},{name:"Europe/Kiev",utcOffset:120,offsetStr:"+02:00",countries:["UA"]},{name:"Europe/Uzhgorod",utcOffset:120,offsetStr:"+02:00",countries:["UA"]},{name:"Europe/Zaporozhye",utcOffset:120,offsetStr:"+02:00",countries:["UA"]},{name:"Pacific/Wake",utcOffset:720,offsetStr:"+12:00",countries:["UM"]},{name:"America/New_York",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Detroit",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Kentucky/Louisville",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Kentucky/Monticello",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Indiana/Indianapolis",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Indiana/Vincennes",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Indiana/Winamac",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Indiana/Marengo",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Indiana/Petersburg",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Indiana/Vevay",utcOffset:-300,offsetStr:"-05:00",countries:["US"]},{name:"America/Chicago",utcOffset:-360,offsetStr:"-06:00",countries:["US"]},{name:"America/Indiana/Tell_City",utcOffset:-360,offsetStr:"-06:00",countries:["US"]},{name:"America/Indiana/Knox",utcOffset:-360,offsetStr:"-06:00",countries:["US"]},{name:"America/Menominee",utcOffset:-360,offsetStr:"-06:00",countries:["US"]},{name:"America/North_Dakota/Center",utcOffset:-360,offsetStr:"-06:00",countries:["US"]},{name:"America/North_Dakota/New_Salem",utcOffset:-360,offsetStr:"-06:00",countries:["US"]},{name:"America/North_Dakota/Beulah",utcOffset:-360,offsetStr:"-06:00",countries:["US"]},{name:"America/Denver",utcOffset:-420,offsetStr:"-07:00",countries:["US"]},{name:"America/Boise",utcOffset:-420,offsetStr:"-07:00",countries:["US"]},{name:"America/Phoenix",utcOffset:-420,offsetStr:"-07:00",countries:["US"]},{name:"America/Los_Angeles",utcOffset:-480,offsetStr:"-08:00",countries:["US"]},{name:"America/Metlakatla",utcOffset:-480,offsetStr:"-08:00",countries:["US"]},{name:"America/Anchorage",utcOffset:-540,offsetStr:"-09:00",countries:["US"]},{name:"America/Juneau",utcOffset:-540,offsetStr:"-09:00",countries:["US"]},{name:"America/Sitka",utcOffset:-540,offsetStr:"-09:00",countries:["US"]},{name:"America/Yakutat",utcOffset:-540,offsetStr:"-09:00",countries:["US"]},{name:"America/Nome",utcOffset:-540,offsetStr:"-09:00",countries:["US"]},{name:"America/Adak",utcOffset:-600,offsetStr:"-10:00",countries:["US"]},{name:"Pacific/Honolulu",utcOffset:-600,offsetStr:"-10:00",countries:["US","UM"]},{name:"America/Montevideo",utcOffset:-180,offsetStr:"-03:00",countries:["UY"]},{name:"Asia/Samarkand",utcOffset:300,offsetStr:"+05:00",countries:["UZ"]},{name:"Asia/Tashkent",utcOffset:300,offsetStr:"+05:00",countries:["UZ"]},{name:"America/Caracas",utcOffset:-270,offsetStr:"-04:30",countries:["VE"]},{name:"Asia/Ho_Chi_Minh",utcOffset:420,offsetStr:"+07:00",countries:["VN"]},{name:"Pacific/Efate",utcOffset:660,offsetStr:"+11:00",countries:["VU"]},{name:"Pacific/Wallis",utcOffset:720,offsetStr:"+12:00",countries:["WF"]},{name:"Pacific/Apia",utcOffset:840,offsetStr:"+14:00",countries:["WS"]},{name:"Africa/Johannesburg",utcOffset:120,offsetStr:"+02:00",countries:["ZA","LS","SZ"]}]}],templateUrl:pt}};const ht=function(){const e=this;e.filter=[],e.filtered=!1,e.fontSize=20,e.getCount=function(t){let n=0;if(t){e.fontSize=t.attrs[2]&&t.attrs[2].value?parseInt(t.attrs[2].value)-parseInt(t.attrs[2].value)%2:20,t.attrs[1].value&&t.attrs[1].value.length?(e.filtered=!0,e.filter=u().intersection(t.voiceQueuesSelected,t.attrs[1].value)):(e.filtered=!1,e.filter=t.voiceQueuesSelected);for(let a=0;a<t.voiceQueues.rows.length;a+=1)u().includes(e.filter,t.voiceQueues.rows[a].id)&&(n+=t.voiceQueues.rows[a][t.attrs[0].value]?parseInt(t.voiceQueues.rows[a][t.attrs[0].value]):0)}return n}};function _t(e){const t=this;t.filter=[],t.filtered=!1,t.properties=[],t.multiBarChart={labels:["QUEUE_NAME"],series:["TOTAL"],data:[[50]],options:{responsive:!0,legend:{display:!0,fontColor:"#2196f3"},scales:{xAxes:[{gridLines:{display:!0},ticks:{fontColor:"#2196f3",stepSize:1,beginAtZero:!0}}],yAxes:[{gridLines:{display:!1},ticks:{fontColor:"#2196f3"}}]}}},t.getMultiBarChart=function(n){n&&(n.attrs&&function(n){if(t.properties=u().map(u().filter(n.attrs,(function(e){return e.name&&e.name.indexOf("attrSerie")>=0&&e.value&&"null"!==e.value})),"value"),n.attrs[3].value&&n.attrs[3].value.length?(t.filtered=!0,t.filter=u().intersection(n.voiceQueuesSelected,n.attrs[3].value)):(t.filtered=!1,t.filter=n.voiceQueuesSelected),t.multiBarChart.series.length>t.properties.length){const e=t.multiBarChart.series.length-t.properties.length;t.multiBarChart.series.splice(0,e),t.multiBarChart.data.splice(0,e)}for(let a=0;a<t.properties.length;a+=1){if(t.multiBarChart.series[a]=e.instant("TOOLS."+t.properties[a].toUpperCase()),u().isNil(t.multiBarChart.data[a])&&(t.multiBarChart.data[a]=[]),t.multiBarChart.labels.length>t.filter.length){const e=t.multiBarChart.labels.length-t.filter.length;t.multiBarChart.labels.splice(0,e),t.multiBarChart.data[a].splice(0,e)}for(let e=0,o=0;e<n.voiceQueues.rows.length;e+=1)u().includes(t.filter,n.voiceQueues.rows[e].id)&&(t.multiBarChart.labels[o]=n.voiceQueues.rows[e].name,t.multiBarChart.data[a][o]=n.voiceQueues.rows[e][t.properties[a]]?parseInt(n.voiceQueues.rows[e][t.properties[a]]):0,o+=1)}}(n),n.foreground&&function(e){t.multiBarChart.options.legend.fontColor=e.foreground;for(let n=0;n<t.multiBarChart.options.scales.xAxes.length;n+=1)t.multiBarChart.options.scales.xAxes[n].ticks.fontColor=e.foreground;for(let n=0;n<t.multiBarChart.options.scales.yAxes.length;n+=1)t.multiBarChart.options.scales.yAxes[n].ticks.fontColor=e.foreground}(n))}}_t.$inject=["$translate"];const bt=_t;function yt(e){const t=this;t.filter=[],t.filtered=!1,t.properties=[],t.pieChart={labels:["ANSWERED"],data:[30],options:{responsive:!0,legend:{display:!0}}},t.getPieChart=function(n){n&&(n.attrs&&function(n){if(t.properties=u().map(u().filter(n.attrs,(function(e){return e.name&&e.name.indexOf("attrSerie")>=0&&e.value&&"null"!==e.value})),"value"),n.attrs[3].value&&n.attrs[3].value.length?(t.filtered=!0,t.filter=u().intersection(n.voiceQueuesSelected,n.attrs[3].value)):(t.filtered=!1,t.filter=n.voiceQueuesSelected),t.pieChart.labels.length>t.properties.length){const e=t.pieChart.labels.length-t.properties.length;t.pieChart.labels.splice(0,e),t.pieChart.data.splice(0,e)}for(let a=0,o=0;a<t.properties.length;a+=1){t.pieChart.labels[a]=e.instant("TOOLS."+t.properties[a].toUpperCase());for(let e=0;e<n.voiceQueues.rows.length;e+=1)u().includes(t.filter,n.voiceQueues.rows[e].id)&&(o+=n.voiceQueues.rows[e][t.properties[a]]?parseInt(n.voiceQueues.rows[e][t.properties[a]]):0);t.pieChart.data[a]=o,o=0}}(n),n.foreground&&function(e){t.pieChart.options.legend.fontColor=e.foreground}(n))}}yt.$inject=["$translate"];const vt=yt;function At(e,t,n,a){const r=this;function i(e){r.results=e||{count:0,rows:[]}}function s(){r.query.offset=(r.query.page-1)*r.query.limit,r.promise=a[r.reportRoute].run(r.query,i).$promise}r.countDown=0,r.refresh=0,r.title="",r.columns=[],r.results={rows:[],count:0},r.query={limit:10,page:1,startDate:o()().startOf("day").format("YYYY-MM-DD HH:mm:ss"),endDate:o()().endOf("day").format("YYYY-MM-DD HH:mm:ss"),output:"web"},r.onInit=function e(o){o&&o.attrs&&(o.attrs[0]&&o.attrs[0].value&&(r.query.id=o.attrs[0].value,a.analyticFieldReport.get({fields:"field,alias",nolimit:!0,DefaultReportId:"default"===o.attrs[0].type?o.attrs[0].value:void 0,CustomReportId:"custom"===o.attrs[0].type?o.attrs[0].value:void 0}).$promise.then((function(e){switch(e&&e.rows&&(r.columns=e.rows),o.attrs[0].type){case"default":r.reportRoute="analyticDefaultReport";break;case"custom":r.reportRoute="analyticCustomReport"}return a[r.reportRoute].get({id:o.attrs[0].value,fields:"id,name"}).$promise})).then((function(e){e&&e.name&&(r.title=e.name),s()})).catch((function(e){console.log(e)}))),o.attrs[1]&&o.attrs[1].value&&(r.refresh=parseInt(o.attrs[1].value),!u().isNaN(r.refresh)&&r.refresh>0?(r.countDown=parseInt(o.attrs[1].value),r.interval=n((function(){r.countDown-=1}),1e3,0),r.timeout=t((function(){r.interval&&n.cancel(r.interval),e(o)}),1e3*r.refresh)):(r.interval&&n.cancel(r.interval),r.timeout&&t.cancel(r.timeout))))},r.getResults=s,r.valueReplacer=function(e,t){o()(t,"YYYY-MM-DDTHH:mm:ssZ",!0).isValid()&&(t=o()(t,"").format("YYYY-MM-DD HH:mm:ss"));return t},e.$on("$destroy",(function(){r.interval&&n.cancel(r.interval),r.timeout&&t.cancel(r.timeout)}))}At.$inject=["$scope","$timeout","$interval","api"];const St=At,wt=n.p+"templates/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine.html";function Et(e,t){this.getTrustedURL=function(e){return t.trustAsResourceUrl(e)}}function Ct(e,t){const n=this;n.flipped=!1,n.flip=function(){angular.isDefined(e.flippable)&&!0===e.flippable&&(n.flipped=!n.flipped,t.toggleClass("flipped",n.flipped))}}Et.$inject=["$mdDialog","$sce"],Ct.$inject=["$scope","$element"];const Tt=[["focusOn",k,"directive"],["hljs",P,"directive"],["msAdvancedSearch",N,"directive"],["msCard",L,"directive"],["msChipColor",$,"directive"],["msClickToCall",F,"directive"],["msDatepickerFixConfig",function(){t.$inject=["configuration"];let e={formatter:function(e){return e?""===e?e:new Date(e):""},parser:function(e){return e?o()(e).add(o()(e).utcOffset(),"m").toDate():""}};function t(t){e=angular.extend({},e,t)}this.config=t,this.$get=function(){return e}},"provider"],["msDatepickerFix",q,"directive"],["msDialogRecording",H,"directive"],["msDialogSpinner",G,"directive"],["msDualMultiselect",Q,"directive"],["msEmojiArea",K,"directive"],["msFontFamily",X,"directive"],["MsFormWizardController",function(){const e=this;function t(){return e.forms.length}function n(){return 0===e.selectedIndex}function a(){return e.selectedIndex===t()-1}e.forms=[],e.selectedIndex=0,e.registerForm=function(t){e.forms.push(t)},e.previousStep=function(){if(n())return;e.selectedIndex--},e.nextStep=function(){if(a())return;e.selectedIndex++},e.firstStep=function(){e.selectedIndex=0},e.lastStep=function(){e.selectedIndex=t()-1},e.totalSteps=t,e.isFirstStep=n,e.isLastStep=a,e.currentStepInvalid=function(){return angular.isDefined(e.forms[e.selectedIndex])&&e.forms[e.selectedIndex].$invalid},e.previousStepInvalid=function(){return e.selectedIndex>0&&angular.isDefined(e.forms[e.selectedIndex-1])&&e.forms[e.selectedIndex-1].$invalid},e.formsIncomplete=function(){for(let t=0;t<e.forms.length;t++)if(e.forms[t].$invalid)return!0;return!1},e.resetForm=function(){e.selectedIndex=0;for(let t=0;t<e.forms.length;t++)e.forms[t].$setPristine(),e.forms[t].$setUntouched()}},"controller"],["msFormWizard",function(){return{restrict:"E",scope:!0,controller:"MsFormWizardController as msWizard",compile:function(e){return e.addClass("ms-form-wizard"),function(){}}}},"directive"],["msFormWizardForm",function(){return{restrict:"A",require:["form","^msFormWizard"],compile:function(e){return e.addClass("ms-form-wizard-form"),function(e,t,n,a){const o=a[0];a[1].registerForm(o)}}}},"directive"],["msInfoBar",te,"directive"],["msMasonryController",ne,"controller"],["msMasonry",ae,"directive"],["msMasonryItem",function(){return{restrict:"AEC",require:"^msMasonry",priority:1,link:function(e,t,n,a){a.waitImagesLoaded(t,(function(){a.reLayout()})),e.$on("msMasonryItem:finishReLayout",(function(){e.$watch((function(){return t.height()}),(function(e,t){e!==t&&a.reLayout()}))})),t.on("$destroy",(function(){a.reLayout()}))}}},"directive"],["msMaterialColorPickerController",re,"controller"],["msMaterialColorPicker",function(){return{require:["msMaterialColorPicker","ngModel"],restrict:"E",scope:{ngModel:"=",msModelType:"@?"},controller:"msMaterialColorPickerController as vm",transclude:!0,templateUrl:oe,link:function(e,t,n,a,o){const r=a[0];r.modelCtrl=a[1],r.msModelType=e.msModelType||"class",o(e,(function(e){(e=e.filter((function(e,t){return 1===t.nodeType}))).length&&t.find("ms-color-picker-button").replaceWith(e)}))}}},"directive"],["msNavFoldService",function(){let e={};return{setFoldable:function(t,n){e={scope:t,element:n}},isNavFoldedOpen:function(){return e.scope.isNavFoldedOpen()},toggleFold:function(){e.scope.toggleFold()},openFolded:function(){e.scope.openFolded()},closeFolded:function(){e.scope.closeFolded()}}},"factory"],["msNavIsFolded",ie,"directive"],["MsNavController",function(){const e=this;let t=!1;const n=[];let a=[];e.isDisabled=function(){return t},e.enable=function(){t=!1},e.disable=function(){t=!0},e.setToggleItem=function(e,t){n.push({element:e,scope:t})},e.getLockedItems=function(){return a},e.setLockedItem=function(e,t){a.push({element:e,scope:t})},e.clearLockedItems=function(){a=[]}},"controller"],["msNav",se,"directive"],["msNavTitle",function(){return{restrict:"A",compile:function(e){return e.addClass("ms-nav-title"),function(){}}}},"directive"],["msNavButton",function(){return{restrict:"AE",compile:function(e){return e.addClass("ms-nav-button"),function(){}}}},"directive"],["msNavToggle",le,"directive"],["msNavigationService",function(){const e=angular.injector(["ng"]).get("$log");let t=[];const n=this;function a(n,a){if(!angular.isString(n))return void e.error("path must be a string (eg. `dashboard.project`)");const o=n.split("."),r=o[o.length-1],i=function(e){let n=t;if(1===e.length)return n;e.pop();for(let t=0;t<e.length;t++){const a=e[t];let o=!0;for(let e=0;e<n.length;e++)if(n[e]._id===a){n=n[e].children,o=!1;break}if(o){const t={_id:a,_path:e.join("."),title:a,weight:1,children:[]};n.push(t),n=t.children}}return n}(o);let l=!1;for(let e=0;e<i.length;e++)if(i[e]._id===r){l=i[e];break}l?(angular.extend(l,a),l.uisref=s(l)):(a.children=[],!angular.isUndefined(a.weight)&&angular.isNumber(a.weight)||(a.weight=1),a._id=r,a._path=n,a.uisref=s(a),i.push(a))}function o(n){if(!angular.isString(n))return void e.error("path must be a string (eg. `dashboard.project`)");let a=t;const o=n.split(".");for(let e=0;e<o.length;e++){const t=o[e];for(let e=0;e<a.length;e++)if(a[e]._id===t){if(a[e]._path===n)return a.splice(e,1),!0;a=a[e].children;break}}return!1}function r(e){e||(e=t).sort(i);for(let t=0;t<e.length;t++){const n=e[t].children;n.length>1&&n.sort(i),n.length>0&&r(n)}}function i(e,t){return parseInt(e.weight)-parseInt(t.weight)}function s(e){let t="";return angular.isDefined(e.state)&&(t=e.state,angular.isDefined(e.stateParams)&&angular.isObject(e.stateParams)&&(t=t+"("+angular.toJson(e.stateParams)+")")),t}n.saveItem=a,n.deleteItem=o,n.sortByWeight=r,this.$get=function(){let e=null,n=null,i=null,s=null;return{saveItem:a,deleteItem:o,sort:r,clearNavigation:function(){t=[],n&&(n.vm.navigation=t)},setActiveItem:function(t,n){e={node:t,scope:n}},getActiveItem:function(){return e},getNavigation:l,getFlatNavigation:function(e){return c(l(e))},setNavigationScope:function(e){n=e},setFolded:function(e){i=e},getFolded:function(){return i},setFoldedOpen:function(e){s=e},getFoldedOpen:function(){return s},toggleFolded:function(){n.toggleFolded()}};function l(e){if(e){for(let n=0;n<t.length;n++)if(t[n]._id===e)return[t[n]];return null}return t}function c(e){let t=[];for(let n=0;n<e.length;n++){const a=angular.copy(e[n]);a.children=[],t.push(a),e[n].children.length>0&&(t=t.concat(c(e[n].children)))}return t}}},"provider"],["MsNavigationController",de,"controller"],["msNavigation",fe,"directive"],["MsNavigationNodeController",me,"controller"],["msNavigationNode",function(){return{restrict:"A",bindToController:{node:"=msNavigationNode"},controller:"MsNavigationNodeController as vm",compile:function(e){return e.addClass("ms-navigation-node"),function(e,t,n,a){t.addClass(a.getClass()),a.group&&t.addClass("group")}}}},"directive"],["msNavigationItem",function(){return{restrict:"A",require:"^msNavigationNode",compile:function(e){return e.addClass("ms-navigation-item"),function(e,t,n,a){a.collapsable&&t.on("click",a.toggleCollapsed),e.$on("$destroy",(function(){t.off("click")}))}}}},"directive"],["msNavigationHorizontal",pe,"directive"],["MsNavigationHorizontalNodeController",ge,"controller"],["msNavigationHorizontalNode",function(){return{restrict:"A",bindToController:{node:"=msNavigationHorizontalNode"},controller:"MsNavigationHorizontalNodeController as vm",compile:function(e){return e.addClass("ms-navigation-horizontal-node"),function(e,t,n,a){t.addClass(a.getClass()),a.group&&t.addClass("group")}}}},"directive"],["msNavigationHorizontalItem",he,"directive"],["MsPhonebarController",Te,"controller"],["msPhonebar",function(){return{restrict:"E",scope:{conf:"="},require:"msPhonebar",controller:"MsPhonebarController",controllerAs:"vm_pb",bindToController:!0,templateUrl:ve}},"directive"],["PrefixDialogController",ke,"controller"],["msBlink",De,"directive"],["RecordDialogController",xe,"controller"],["ReferAttendedDialogController",Pe,"controller"],["SettingsController",Re,"controller"],["msQuickFilter",function(){return{restrict:"E",scope:{query:"=",filters:"=",search:"&"},controller:Le,controllerAs:"vm",bindToController:!0,templateUrl:Ne}},"directive"],["dateRangeManager",$e,"factory"],["msRandomClass",Ue,"directive"],["msRecording",Fe,"directive"],["msReportSysinfo",Ve,"directive"],["msResponsiveTable",We,"directive"],["msScrollConfig",function(){let e={wheelSpeed:1,wheelPropagation:!1,swipePropagation:!0,minScrollbarLength:null,maxScrollbarLength:null,useBothWheelAxes:!1,useKeyboard:!0,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,stopPropagationOnClick:!0};this.$get=function(){return{getConfig:function(){return e}}},this.config=function(t){e=angular.extend({},e,t)}},"provider"],["msScroll",Ke,"directive"],["MsSearchBarController",Xe,"controller"],["msSearchBar",Ze,"directive"],["MsShortcutsController",tt,"controller"],["msShortcuts",function(){return{restrict:"E",scope:{},require:"msShortcuts",controller:"MsShortcutsController as MsShortcuts",bindToController:{},templateUrl:et,compile:function(e){return e.addClass("ms-shortcuts"),function(){}}}},"directive"],["msSidenavHelper",nt,"directive"],["msSplashScreen",ot,"directive"],["MsStepperController",lt,"controller"],["msHorizontalStepper",function(){return{restrict:"A",scope:{},require:["form","msHorizontalStepper"],priority:1001,controller:"MsStepperController as MsStepper",bindToController:{model:"=ngModel"},transclude:!0,templateUrl:rt,compile:function(e){return e.addClass("ms-stepper"),function(e,t,n,a){const o=a[0],r=a[1];r.setOrientation("horizontal"),r.registerMainForm(o),r.setupSteps()}}}},"directive"],["msHorizontalStepperStep",function(){return{restrict:"E",require:["form","^msHorizontalStepper"],priority:1e3,scope:{step:"=?",stepTitle:"=?",stepTitleTranslate:"=?",optionalStep:"=?",hideStep:"=?"},compile:function(e){return e.addClass("ms-stepper-step"),function(e,t,n,a){const o=a[0],r=a[1];e.optionalStep=angular.isDefined(n.optionalStep),r.registerStep(t,e,o),t.hide()}}}},"directive"],["msVerticalStepper",ct,"directive"],["msVerticalStepperStep",function(){return{restrict:"E",require:["form","^msVerticalStepper"],priority:1e3,scope:{step:"=?",stepTitle:"=?",stepTitleTranslate:"=?",optionalStep:"=?",hideStep:"=?"},transclude:!0,templateUrl:-st,compile:function(e){return e.addClass("ms-stepper-step"),function(e,t,n,a){const o=a[0],r=a[1];e.optionalStep=angular.isDefined(n.optionalStep),e.stepInfo=r.registerStep(t,e,o),e.MsStepper=r,t.find(".ms-stepper-step-content").hide()}}}},"directive"],["MsTabScrollController",function(){this.onTabScroll=function(e){"left"==e?dt("#tab-container").stop().animate({scrollLeft:"-=400"},1e3):dt("#tab-container").stop().animate({scrollLeft:"+=400"},1e3)},this.canScroll=function(e){switch(function(){const e=document.getElementById("bar-container"),t=document.getElementById("tab-container");return t.scrollWidth>e.scrollWidth&&0==e.scrollLeft&&0==t.scrollLeft?"right":t.scrollWidth>e.scrollWidth&&t.scrollLeft>e.scrollLeft&&e.scrollWidth+t.scrollLeft>=t.scrollWidth?"left":t.scrollWidth>e.scrollWidth&&t.scrollLeft>e.scrollLeft&&e.scrollWidth+t.scrollLeft<t.scrollWidth?"both":"none"}()){case"both":return!0;case"left":return"left"==e;case"right":return"right"==e;case"none":default:return!1}}},"controller"],["msTabScroll",function(){return{restrict:"E",scope:{},transclude:!0,controller:"MsTabScrollController",controllerAs:"vm",bindToController:!0,templateUrl:ut,compile:function(e){return e.addClass("ms-tab-scroll"),function(){}}}},"directive"],["MsTimelineController",function(){const e=this;e.scrollEl=void 0,e.setScrollEl=function(t){e.scrollEl=t},e.getScrollEl=function(){return e.scrollEl}},"controller"],["msTimeline",function(){return{scope:{msTimeline:"=?",loadMore:"&?msTimelineLoadMore"},controller:"MsTimelineController",compile:function(e){return e.addClass("ms-timeline"),function(e,t,n,a){const o=angular.element('<div class="ms-timeline-loader md-accent-bg md-whiteframe-4dp"><span class="spinner animate-rotate"></span></div>');t.append(o);let r={scrollEl:"#content"};r=angular.extend(r,e.msTimeline,{});const i=angular.element(r.scrollEl);a.setScrollEl(i);function s(){i.scrollTop()+i.height()+144>o.position().top&&(o.addClass("show"),c(),e.loadMore&&e.loadMore().then((function(){o.removeClass("show"),l()}),(function(){o.remove()})))}function l(){i.on("scroll",s)}function c(){i.off("scroll",s)}l(),e.$on("$destroy",(function(){c()}))}}}},"directive"],["msTimelineItem",ft,"directive"],["timer",function(){return{restrict:"EA",replace:!1,scope:{startTime:"=?",interval:"=?"},template:"<span ng-cloak>{{ vm.timer }}</span>",compile:function(){return{pre:function(e,t,n){e.interval=n.interval||1e3}}},controller:mt,controllerAs:"vm",bindToController:!0}},"directive"],["msTimezone",gt,"directive"],["MsWidgetEngineCounterController",ht,"controller"],["MsWidgetEngineMultibarChartController",bt,"controller"],["MsWidgetEnginePieChartController",vt,"controller"],["MsWidgetEngineWebReportController",St,"controller"],["MsWidgetEngineController",Et,"controller"],["msWidgetEngine",function(){return{restrict:"E",scope:{config:"=?",onEdit:"&?",onDelete:"&?"},require:"msWidgetEngine",controller:"MsWidgetEngineController",controllerAs:"vm",bindToController:!0,templateUrl:wt}},"directive"],["MsWidgetController",Ct,"controller"],["msWidget",function(){return{restrict:"E",scope:{flippable:"=?"},controller:"MsWidgetController",transclude:!0,compile:function(e){return e.addClass("ms-widget"),function(e,t,n,a,o){o((function(e){t.empty(),t.append(e)}))}}}},"directive"],["msWidgetFront",function(){return{restrict:"E",require:"^msWidget",transclude:!0,compile:function(e){return e.addClass("ms-widget-front"),function(e,t,n,a,o){o((function(e){t.empty(),t.append(e)})),e.flipWidget=a.flip}}}},"directive"],["msWidgetBack",function(){return{restrict:"E",require:"^msWidget",transclude:!0,compile:function(e){return e.addClass("ms-widget-back"),function(e,t,n,a,o){o((function(e){t.empty(),t.append(e)})),e.flipWidget=a.flip}}}},"directive"]];function It(e,t,n,a,r){const i={};return{get:function(o,s){return e((function(l,c){0===s.offset&&(o=void 0);const d=u().merge({},s);n.cmContact.getJourney(d).$promise.then((function(r){return function(t){return e((function(e,o){const r=t.map((function(e){if("voice"===e)return;const t="get"+u().startCase(e)+("chat"===e?"Websites":"Accounts");return n.user[t]({id:a.getCurrentUser().id,attributes:["id","name"],nolimit:!0}).$promise.then((function(t){i[e]=t.rows}))}));return Promise.all(r).then((function(){e()})).catch((function(e){o(e)}))}))}(u()(r.rows).uniqBy((function(e){return e.channel})).map("channel").value()).then((function(){return r.rows.forEach((function(e){var n;e.canOpen=function(e){switch(e.channel){case"chat":return!!i.chat&&u().some(i.chat,["id",e.ChatWebsiteId]);case"fax":return!!i.fax&&u().some(i.fax,["id",e.FaxAccountId]);case"mail":return!!i.mail&&u().some(i.mail,["id",e.MailAccountId]);case"openchannel":return!!i.openchannel&&u().some(i.openchannel,["id",e.OpenchannelAccountId]);case"sms":return!!i.sms&&u().some(i.sms,["id",e.SmsAccountId]);case"voice":return!0;case"whatsapp":return!!i.whatsapp&&u().some(i.whatsapp,["id",e.WhatsappAccountId]);default:return!1}}(e),e.dispositionsValues=(n=e).disposition?"("+u().compact([n.disposition,n.secondDisposition,n.thirdDisposition]).join(" - ")+")":"("+t.instant("DASHBOARDS.NO_DISPOSITION_SET")+")",e.style=function(e){switch(e.channel){case"chat":return{color:"green-A700",icon:"icon-hangouts"};case"fax":return{color:"blue-grey-A200",icon:"icon-deskphone"};case"mail":return{color:"teal",icon:"icon-email"};case"openchannel":return{color:"amber-A200",icon:"icon-google-earth"};case"sms":return{color:"orange",icon:"icon-message-text"};case"voice":return{color:"blue-A700",icon:"icon-phone"};case"whatsapp":return{color:"lime-A700",icon:"icon-whatsapp"}}}(e)})),function(t,n){return e((function(e,a){try{const a={journey:t?u().union(t,n.rows):n.rows};a.loadMore=n.count-a.journey.length>0,e(a)}catch(e){a(e)}}))}(o,r)}))})).then((function(e){l(e)})).catch((function(e){r.error({title:t.instant("CONTACTMANAGER.CUSTOMER_JOURNEY"),msg:t.instant("CONTACTMANAGER.NOTIFICATIONS.NO_DATA_ERROR")}),c(e)}))}))},getQuery:function(){return{range:{from:o()().startOf("month").format("YYYY-MM-DD HH:mm:ss"),to:o()().endOf("month").format("YYYY-MM-DD HH:mm:ss")},limit:10,offset:0}},getQuickFilters:function(){return[{name:"Channel",key:"channel",type:"select",label:"APP.CHANNEL",customOptions:[{value:void 0,translate:"DASHBOARDS.ALL"},{value:"voice",translate:"DASHBOARDS.VOICE"},{value:"chat",translate:"DASHBOARDS.CHAT"},{value:"mail",translate:"DASHBOARDS.MAIL"},{value:"sms",translate:"DASHBOARDS.SMS"},{value:"fax",translate:"DASHBOARDS.FAX"},{value:"openchannel",translate:"DASHBOARDS.OPENCHANNEL"},{value:"whatsapp",translate:"DASHBOARDS.WHATSAPP"}]},{name:"Start Date",key:"range",type:"date",label:"DASHBOARDS.SELECT_DATE",useFromToKeys:!0}]}}}It.$inject=["$q","$translate","api","Auth","toasty"];const kt=It;function Dt(e,t){return{setPlaceholder:function(n){let a;return e((function(e){try{if(u().isEmpty(n.resources))a=t.instant("DASHBOARDS.NONE");else if(u().isEmpty(n.param))a=n.placeholder?t.instant(n.placeholder):t.instant("DASHBOARDS.CHOOSE");else if(n.param.length===n.resources.length)a=t.instant("DASHBOARDS.ALL");else{const e=n.ngValue||"id";a=u()(n.resources).filter((function(t){return u().includes(n.param,t[e])})).map("name").value().join(", ")}e(a)}catch(t){console.log("QuickFilterManager::setPlaceholder",t),e(null)}}))}}}Dt.$inject=["$q","$translate"];const xt=Dt;const Mt=function(){let e={};return{get:function(){return e},set:function(t){t&&(e=t.toJSON())}}};function Pt(e){function t(t,n){const a=e.localStorage.getItem(t),o=a?JSON.parse(a):{};return n?o[n]:o}function n(t,n){return e.localStorage.setItem(t,JSON.stringify(n))}return{get:t,set:n,update:function(e,a,o){let r=t(e);return o?r[o]=a:r=a,n(e,r)}}}Pt.$inject=["$window"];const Ot=Pt;const Rt=function(){return function(e){const t=Date.now()-new Date(e);return t<36e5?o()(e).fromNow():t<864e5?o()(e).format("HH:mm"):t<6048e5?o()(e).format("dddd"):o()(e).calendar()}};function Nt(e){return function(t){return e.trustAsHtml(t)}}Nt.$inject=["$sce"];const Lt=function(){return function(e){return e?u().capitalize(e):""}};const $t=function(){return function(e,t){if(0===e.length||!t)return e;if(0===t.length)return[];const n=[];for(let a=0;a<e.length;a++){const o=e[a];let r=!1;for(let e=0;e<t.length;e++){const n=t[e];if(o.id===n){r=!0;break}}r&&n.push(o)}return n}};const Ut=function(){return function(e,t,n){if(0===e.length||!n||0===n.length)return e;const a=[];for(let o=0;o<e.length;o++){const r=e[o];let i=!1;for(let e=0;e<n.length;e++){const a=n[e];if(r[t].indexOf(a)>-1){i=!0;break}}i&&a.push(r)}return a}};const jt=function(){return function(e){return e?u().snakeCase(e):""}};const Ft=function(){return function(e){return e?u().startCase(e):""}};const qt=function(){return function(e){if(e&&"string"==typeof e)return parseInt(e)}};const Yt=function(){return function(e){const t=[];return angular.forEach(e,(function(e){t.push(e)})),t.sort((function(e,t){return void 0!==e.openedAt&&void 0!==t.openedAt?e.openedAt>t.openedAt?1:-1:1})),t}};class Ht{constructor(e,t,n,a){this.id=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),this.title=e,this.body=t,this.accept=n,this.reject=a,this.close=Bt}}function Bt(){const e=this;navigator.serviceWorker.ready.then((function(t){t.getNotifications().then((function(t){const n=u().find(t,(function(t){return t.data.id===e.id}));n&&n.close()}))}))}const Gt=function(){return{$get:[function(){const e=[];let t,n;return"serviceWorker"in navigator?navigator.serviceWorker.register("service-worker.js").then((function(e){t=e,t.update(),t.installing?n=t.installing:t.waiting?n=t.waiting:t.active&&(n=t.active)})).catch((function(e){console.error("Service worker registration failed",e)})):console.error("Service Worker is not supported"),navigator.serviceWorker.addEventListener("message",(function(t){if(t.source!==n)return;const a=u().find(e,{id:t.data.id});if(a)switch(t.data.action){case"accept":a.accept&&a.accept();break;case"reject":a.reject&&a.reject()}})),{create:function(n,a,o,r,i){return new Promise((function(s,l){let c;window.document.hidden||window.document.mozHidden||window.document.webkitHidden?(c=new Ht(n||"MyTitle",a||"MyBody",r,i),e.push(c),c?window.Notification.requestPermission().then((function(e){if("granted"===e)return t.showNotification(c.title,{body:c.body,requireInteraction:!0,icon:o||"assets/images/business/queueCampaigns.jpg",data:{id:c.id},actions:[{action:"accept",title:"Accept"},{action:"reject",title:"Reject"}]})})).then((function(){s(c)})).catch((function(e){l(e)})):l(new Error("Notification creating error"))):s()}))}}}]}};function Vt(e,t,n){return{resolve:function(a,o){const r=a.split("@"),i=r[0],s=r[1],l=o||{};if(!i||!s)return t.error("apiResolver.resolve requires correct action parameter (ResourceName@methodName)"),!1;const c=e.defer(),u=function(e){const a=e.split(".");let o=n;for(let e=0;e<a.length;e++){if(angular.isUndefined(o[a[e]])){t.error('Resource part "'+a[e]+'" is not defined!'),o=!1;break}o=o[a[e]]}if(!o)return!1;return o}(i);u?u[s](l,(function(e){c.resolve(e)}),(function(e){c.reject(e)})):(t.error('Resource "'+i+'" is not defined in the api service!'),c.reject('Resource "'+i+'" is not defined in the api service!'));return c.promise}}}Vt.$inject=["$q","$log","api"];const Wt=Vt;function Qt(e){return{showLoadingIndicator:function(){e.loadingProgress=!0},hideLoadingIndicator:function(){e.loadingProgress=!1}}}Qt.$inject=["$rootScope"];const zt=Qt;const Kt=function(){const e=this,t=angular.injector(["ng"]).get("$log");let n="";const a=[];function o(e){n=e}function r(){return n}function i(e,o){angular.isString(e)?angular.isArray(o)?a[e]={url:n+(o[0]||""),paramDefaults:o[1]||[],actions:o[2]||[],options:o[3]||{}}:t.error('"resource" must be an array and it must follow $resource definition'):t.error('"path" must be a string (eg. `dashboard.project`)')}e.setBaseUrl=o,e.getBaseUrl=r,e.getApiObject=function(){return a},e.register=i,this.$get=function(e,t,n,s){return{setBaseUrl:o,getBaseUrl:r,register:i,resolve:function(o,r){s.$broadcast("msApi::resolveStart");const i=o.split("@"),l=i[0],c=i[1],u=r||{};if(!l||!c)return e.error("msApi.resolve requires correct action parameter (resourceName@methodName)"),!1;const d=t.defer(),f=a[l];if(f){n(f.url,f.paramDefaults,f.actions,f.options)[c](u,(function(e){d.resolve(e),s.$broadcast("msApi::resolveSuccess")}),(function(e){d.reject(e),s.$broadcast("msApi::resolveError")}))}else e.error('Resource "'+l+'" is not defined in the api service!'),d.reject('Resource "'+l+'" is not defined in the api service!');return d.promise},request:function(o,r,i,l){s.$broadcast("msApi::requestStart");const c=o.split("@"),u=c[0],d=c[1],f=r||{};if(!u||!d)return e.error("msApi.resolve requires correct action parameter (resourceName@methodName)"),!1;const m=t.defer(),p=a[u];if(p){n(p.url,p.paramDefaults,p.actions,p.options)[d](f,(function(e){s.$broadcast("msApi::requestSuccess"),m.resolve(e),angular.isDefined(i)&&angular.isFunction(i)&&i(e)}),(function(e){s.$broadcast("msApi::requestError"),m.reject(e),angular.isDefined(l)&&angular.isFunction(l)&&l(e)}))}else e.error('Resource "'+u+'" is not defined in the api service!'),m.reject('Resource "'+u+'" is not defined in the api service!');return m.promise}}}};var Jt=n("./node_modules/mobile-detect/mobile-detect.js"),Xt=n.n(Jt);function Zt(e){const t=new(Xt())(e.navigator.userAgent);let n=null;return{exists:function(e,t){return t.indexOf(e)>-1},detectBrowser:function(){if(n)return n;const t=[{string:e.navigator.userAgent,subString:"Edge",versionSearch:"Edge",identity:"Edge"},{string:e.navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:e.navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:e.navigator.vendor,subString:"Apple",versionSearch:"Version",identity:"Safari"},{prop:e.opera,identity:"Opera"},{string:e.navigator.vendor,subString:"iCab",identity:"iCab"},{string:e.navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:e.navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:e.navigator.vendor,subString:"Camino",identity:"Camino"},{string:e.navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:e.navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:e.navigator.userAgent,subString:"Trident/7",identity:"Explorer",versionSearch:"rv"},{string:e.navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:e.navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],a=[{string:e.navigator.platform,subString:"Win",identity:"Windows"},{string:e.navigator.platform,subString:"Mac",identity:"Mac"},{string:e.navigator.platform,subString:"Linux",identity:"Linux"},{string:e.navigator.platform,subString:"iPhone",identity:"iPhone"},{string:e.navigator.platform,subString:"iPod",identity:"iPod"},{string:e.navigator.platform,subString:"iPad",identity:"iPad"},{string:e.navigator.platform,subString:"Android",identity:"Android"}];let o="";function r(e){for(let t=0;t<e.length;t++){const n=e[t].string,a=e[t].prop;if(o=e[t].versionSearch||e[t].identity,n){if(-1!==n.indexOf(e[t].subString))return e[t].identity}else if(a)return e[t].identity}}function i(e){const t=e.indexOf(o);if(-1!==t)return parseInt(e.substring(t+o.length+1))}let s=r(t)||"unknown-browser",l=i(e.navigator.userAgent)||i(e.navigator.appVersion)||"unknown-version",c=r(a)||"unknown-os";return s=s.toLowerCase(),l=s+"-"+l,c=c.toLowerCase(),n={browser:s,version:l,os:c},n},guidGenerator:function(){const e=function(){return(65536*(1+Math.random())||0).toString(16).substring(1)};return e()+e()+e()+e()+e()+e()},isMobile:function(){return t.mobile()},toggleInArray:function(e,t){-1===t.indexOf(e)?t.push(e):t.splice(t.indexOf(e),1)},firstLastDayMonth:function(){return{$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()}}}}Zt.$inject=["$window"];const en=Zt,tn=n.p+"templates/core/theme-options/theme-options.html/theme-options.html";function nn(e,t){const n=this;n.themes=t.themes,n.layoutModes=[{label:"Boxed",value:"boxed"},{label:"Wide",value:"wide"}],n.layoutStyles=[{label:"Vertical Navigation",value:"verticalNavigation",figure:"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCABkAJYDAREAAhEBAxEB/8QAogABAAIDAQADAAAAAAAAAAAAAAYLBQcIBAIDCQEBAAIDAQEAAAAAAAAAAAAAAAUHAQIDBggQAAADAwcJBgQEBgMAAAAAAAACAwEEBRESExQGFhch1BWVpVZmlgdUVdXl1lcxQSPkIjPTJFEyUyU1JmFCNBEBAAEEAAMGBQMFAQAAAAAAAAERAhIDEwQGMWGhFAUHUZEiYhUhcVLhIxcIGEH/2gAMAwEAAhEDEQA/APxr6M9LMXbUP9m9O3eqUAeo5XdF6WpatEYW4VWraRhsyfpKfPpGyTJJrZZWfUfsz7Wf5c6o39N+f/H8DkL+Z4nB4+WG3Rqww4umleNlllNMaYzWsfLf+yPvt/z50PynWf4r8v5r1bVyXB8z5XHicvzW/i8Ty/M1p5bHDCK55ZxjS51m6WYRWocLN6dvDXYA6xyu6L0TRVmIxRwqtW0jEp8zRs+fSMlnyTWSSte83tZ/iPqjR035/wDIcfkLOZ4nB4GOe3fqww4u6tODlllFcqYxSsv9bvfb/oPofm+s/wAV+I8r6tt5Lg+Z81lw+X5XfxeJ5flqV8zjhhNMMs5ypbqMVI+ggBboxqL6GdU3rRkXi1I8Ed6vBXKvPRJyaqlMojSpTXctFNaaXIYxWSZRW70TAOlta29OzrdK2ztWXhF3rD3AaF1d6ZQqdM8rVs1E7pTpxzSNmlY1sgD0RS12jH5dxuxa+I0FF+8hcFrbitSoprfQeKynSUdJNNkZIcrWfIB98OtNpF1ib1d+07jox3Y8VeIwmqvUQ+m8KUMMRrB628ft5s2Uv4jkZLlyBiL+8F2+5d+8ATZ0eK26uz1QvDtWXdF4q72nQvTvTJlUoXlGcaieEp005ZWzTMayUB6AAAAAABiI1F9DOqb1oyLxakeCO9XgrlXnok5NVSmURpUpruWimtNLkMYrJMoCMX94Lt9y794AX94Lt9y794Al9f8A7XpSpRD/AB9f0dVv7p/56xUqpP8A8h/0o535n4ZfmAqTbKdRbQ9MoitHrNx1Czz89uSkIVfXh3hLyRV0XXdnxR1YSMOr27MMdZwTPKUrFJCNkbI0zG3r0b151T7eep7PWukeb8n6lt0XaLr+Hp211XX2bJtx369lkVu12TWLYu+mkTSZiac9yPavoT3e9D1dN+4XIfkfRdHN28zZr43MaMd9mvbqtvz5bbp2TTXu2W4zdNk5Vm2botmPFbPqtEOoUUQjVr7WQuLxJ1cEoWg8zoG4THFF4entJChhaLk7mmvD6qac0jTtnSNbIxjGa9Z9fdT+4Pqmv1nq/nI5v1LVy9um2/h6dVNVt9+y23HTr12TS/ZfOU2zd9VJmkREZ9t/aroX2i9D29N+3nIT6f6Lv5u7mb9fG5nflvv16tV1+fM7d2yK69Ou3GLosjGsWxM3TMR05Be94XrB0/VHks7PjHzWDjd8JZIhyKkIomcqiahSnTUIZhyHIdjDEOQ5WtKYpitlY1mRrBt2/rDC12xRtp7ewjns/pAVzjL0GRijbT29hHPZ/SAYyZGKNtPb2Ec9n9IBjJkYo209vYRz2f0gGMmRijbT29hHPZ/SAYyZGKNtPb2Ec9n9IBjJkYo209vYRz2f0gGMmRijbT29hHPZ/SAYyZGKNtPb2Ec9n9IBjJkYo209vYRz2f0gGMmRijbT29hHPZ/SAYyZGKNtPb2Ec9n9IBjJkYo209vYRz2f0gGMmRijbT29hHPZ/SAYyZPkzqjbOQ0vT6EsaxkpWMt0ds404rJGtuiyaya1rZcvwk+YYyZKnOMvMIdXVNSNFQM6tXKRNjw6mfCVhqapiNYmVFdpTUZT/ikyMlZLlFh3zZEfX2IC2Lpn6e1GtL2A/pQvUanh4556O75f0b47O/5ml7Af0oXqNTw8M9Hd8v6GOzv+aaOp3dR1dlHRhWOp0ETuzCEakRjuZMpkWETaUjUysTayQsjJGZJGDtFKRTsc5rX9e1azCvU6AAAAAAAAAAAAAAAAAACqRiL/AKPRKtU39+nKlSooc71lYs4hz0hk55JEmTJGtl+LWfxFg3XYxWkz+yDiKsPefh61GqfuBpxftu+TOHfBefh61GqfuA4v23fIw74SJBWnRRWo1UaZJNWiXJRrJUhGHo1k5WzFSSyGZK2RrB1iaxVqtZBXidAHKOJVtu+tnQnMADEq23fWzoTmABiVbbvrZ0JzAAxKtt31s6E5gAYlW2762dCcwAMSrbd9bOhOYAGJVtu+tnQnMADEq23fWzoTmABiVbbvrZ0JzAAxKtt31s6E5gAldh7cWojFqIXDojFKw5vFdpkalDkZ9DDntdP6iDokqWaqkVuQzJZJG5AHQYAAqkYi8PzsiU7hD9JLNVKQyFbRc5iTSHa1WlWKYpppilZN+LZ0vyFg3TdEfTFZQcRE9s0YfStpd1NuuH6Y0y2fw8YZpb8fA0raXdTbrh+mGWz+HjBS34+CRIHVURROslQLHSTOqhSFVoVTEY1RKlIxhVKMzWsnMyNklHWK0/XtarWQV4nQBqi7vSTtEC5oW8XALu9JO0QLmhbxcAu70k7RAuaFvFwC7vSTtEC5oW8XALu9JO0QLmhbxcAu70k7RAuaFvFwC7vSTtEC5oW8XALu9JO0QLmhbxcAu70k7RAuaFvFwC7vSTtEC5oW8XAZWBwXp06RR1eIEtCTxVOnqpXaPKvq7Z7usReY7GiK7FZHYx5fwNmslbkklAbCAAFUjEdJ0JdE1CsUpZ+kaxQ0Mw86bVvqUtJNklySS/8AAsG7Kn0Ur3oOKf8AvYw/+6cL7VGn977fFn6O8/3Thfaof3vt8T6O9IkKahRrNFWKJOsUE+hppjKWhpPqUVJLNnZZPiOsVp+va1/bsWsgrxOgDjS69pt3Y7qiIZuAXXtNu7HdURDNwC69pt3Y7qiIZuAXXtNu7HdURDNwC69pt3Y7qiIZuAXXtNu7HdURDNwC69pt3Y7qiIZuAXXtNu7HdURDNwC69pt3Y7qiIZuAXXtNu7HdURDNwEy6fQGOOVr4Q8vkFizo7JV+keHmHPiCCc+GPqZJ6qqJEyT1DsKyVuVrWM+IDpkAAVSMRd355RKRwiGjVmKlOZeqIvk9JhDsalRLGKUs4xitnfFk2T5iwboumPpmkoOJiO2KsPoq0u9ewnD9QaY7P5+EM1t+HiaKtLvXsJw/UDHZ/Pwgrb8PFIkCKpookWVp1iJJkVXoypUypSMYorREa0qdIZjWzWZGSyDrFafr2tVrIK8ToA0XjTw1tnyoAxp4a2z5UAY08NbZ8qAMaeGts+VAGNPDW2fKgDGnhrbPlQBjTw1tnyoAxp4a2z5UAY08NbZ8qAMaeGts+VAM7ZrqfeKNuUH0HU65Wf3OkqxR1d0XevydHoT59BN/mZJLLlkkAbXAAFUjEXDSCJUa4/uM1UqtLDnirLGmkOSjMpMPKk2fK1knxYz+AsG63KKVmP2QcTRh7scQ2o1t9uNOF913zZz7oLscQ2o1t9uHC+675mfdCRIJUCKKNIqtQpJpUq56RZWjIwlIspIyeqeSUzZGStaOsRSKNVrIK8ToA0XgtxLsbzUAwW4l2N5qAYLcS7G81AMFuJdjeagGC3EuxvNQDBbiXY3moBgtxLsbzUAwW4l2N5qAYLcS7G81AMFuJdjeagM7Zrphd2NuUY05XKnWf22javSVh0XdfztILzJlPO/lbLJJkllAbXAAFVALDQQAAAC1fFeJ0AcaXotNvFHdbxDOAC9Fpt4o7reIZwAXotNvFHdbxDOAC9Fpt4o7reIZwAXotNvFHdbxDOAC9Fpt4o7reIZwAXotNvFHdbxDOAC9Fpt4o7reIZwAXotNvFHdbxDOAC9Fpt4o7reIZwAmXT6PRx9tfCHZ8jUWe3ZWv0ju8xF8XQUmQx9UJPSVWOmeYoRhmSsyNYxvxAdMgACqgFhoIAAABavivE6ANUXi6SdngXK63hABeLpJ2eBcrreEAF4uknZ4Fyut4QAXi6SdngXK63hABeLpJ2eBcrreEAF4uknZ4Fyut4QAXi6SdngXK63hABeLpJ2eBcrreEAF4uknZ4Fyut4QAXi6SdngXK63hADKwONdOnuKOrvAkYSSKqU9VM7QFVyXZMd1jrzHk0OQYlK7FPL+Nk5krMssgDYQAAqoBYaCAAAAWr4rxOgDlHDW23cu0YTn4BhrbbuXaMJz8Aw1tt3LtGE5+AYa227l2jCc/AMNbbdy7RhOfgGGttu5downPwDDW23cu0YTn4BhrbbuXaMJz8Aw1tt3LtGE5+AYa227l2jCc/ASuw9h7UQe1ELiMRhdXc3eu0y1dhy0ymhz2gn9NB7VVNOVVKzIVsksrcgDoMAAVUAsNBAAAALV8V4nQAAAAAAAAAAAAAAAAAAVUAsNBAAAALV8V4nQAAAAAAAAAAAAAAAAAAf/2Q=="},{label:"Vertical Navigation with Fullwidth Toolbar",value:"verticalNavigationFullwidthToolbar",figure:"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCABkAJYDAREAAhEBAxEB/8QAqgABAAIDAAMBAAAAAAAAAAAAAAYLBQcIAgQKAwEBAAIDAQEBAAAAAAAAAAAAAAUHAQIDCAYEEAAAAwMHCAcEBwgDAAAAAAAAAwUBAgQREhMUBhYXIdQVlaVmlgdUVdXlVtZXMSIj5EEzUySY2BpRMtMlNSYIWGFCNBEBAAEDAQMICgMBAAAAAAAAAAECEgMRYQQGMZGh4SITBQchcVJiouJTFBYIUSMVQf/aAAwDAQACEQMRAD8A++FaV9DQpcVoxXVqSIch6uiwVeinJxZplMYTSlTYd2imtelyPPOskygMBCW1rcVDQt0rbQ1ZiCYesRaDQwsPTGOl00SdW3qKHKnTn3pGzXWNbIA9hUtdoyOPgbsWvUaCi++JaLW4E6lJLO+BEVkuko6Sa9kZI+61n0AP3TrTaRhVOKu/aeB0ZDsiKuopNVilD4cQZQphNYfrcR93mzZXfefcZLlyBiL+7l2+4d+cATaEiK3Cw0VQxENWYcmIq8WXQxUPTFumUMSTOeoogqdNfdlbNeY1koD2AAAAAAAAAAAAYhaV9DQpcVoxXVqSIch6uiwVeinJxZplMYTSlTYd2imtelyPPOskygIxf3cu33DvzgBf3cu33DvzgCX1/wDlelKkof0+v6Oq380/89YqVUn/ANQ/6Uc76z3ZfpAfIb+qyjvo/wAAyPxWt/LaPovx+r6vw/Mj/v49np6j9VlH/wCgRH4rW/lsD8fq+r8PzH38ez09R+qyj/8AQIj8Vrfy2B+P1fV+H5j7+PZ6eo/VZR/+gRH4rW/lsD8fq+r8PzH38ez09T6jcUbaenqRx2/5QHz9sv3XGKNtPT1I47f8oBbJcYo209PUjjt/ygFslxijbT09SOO3/KAWyXGKNtPT1I47f8oBbJcYo209PUjjt/ygFslxijbT09SOO3/KAWyXGKNtPT1I47f8oBbJcYo209PUjjt/ygFslxijbT09SOO3/KAWyXGKNtPT1I47f8oBbJcYo209PUjjt/ygFslxijbT09SOO3/KAWyXGKNtPT1I47f8oBbJc8mc0bZyPS8vkljWMldYy3T7Zz051kjW3RZNZNa1suX2SfSFslysT/xlt3ZXl7bxWWrXquiE2KsjHpZETUVKPnxxyygRZRFClwcbEOzoeCNenNcY4ybI1srWMb7P/WbjrhXy+483vxni/evtPDcvhGXDTX3WbLrlq3jdclNNuHHkrjWjHXN00xT2dJnWYifDn7s+VnHnm75VeH8N+Xm4f6HjWDiDBvNePvt3wW4KNz37FVXfvObDjnTJmx02xVNc3axTMRVMP8mrd2V5hW8SVqyCrpdNhbIwCWfE1FSgJkcSsr8WaRQqkHBRD02HjSnpzHGuNnSMbKxrGP2Z464V8wePN08Z4Q3r7vw3F4Riw1V91mxaZad43rJVTbmx4650oyUTdFM09rSJ1iYh+k3lZx55ReVXiHDfmHuH+f41n4gz7zRj77d892Cvc9xxU137tmzY41yYclNs1RXFus0xE0zPOo87PYYAtXxXidAAAAAAAAAAAAAAAAAABVIqOk6F3RNQrFK7P0jWKGhmPzptW+JS0k2SXJJL/wACwartOxprtQcaf95GH/vTdfao0/u93pZ7G0/vTdfaof3e70nY2pERTUJNZoqxRF1ign0NNMZS0NJ8SipJZs7LJ7R1jXT08rX1ci1kFeJ0Aco4lW2662ck5gAYlW2662ck5gAYlW2662ck5gAYlW2662ck5gAYlW2662ck5gAYlW2662ck5gAYlW2662ck5gAYlW2662ck5gAYlW2662ck5gAYlW2662ck5gAldh7cWoWLUJacoqlYg4iu0xNSTiZ9CnRZ5fxCIQo12aaU63I8yWSRuQB0GAAKpFRh46JJdcgFDRpzDXX3j6oTGTymOPsaVRHPOuuznnnWzvaybJ9IsGqKpjszpKDiYjljVh9FWl8V7CgP4g0tye30QzrT/HSaKtL4r2FAfxAtye30Qa0/x0pEQ4aWSS4cbTnOFFuGn0bpVMa64xhhtE41rpdI8xrZrMjJZB1jXT08rVayCvE6ANUXd5SdIQuKDu1wC7vKTpCFxQd2uAXd5SdIQuKDu1wC7vKTpCFxQd2uAXd5SdIQuKDu1wC7vKTpCFxQd2uAXd5SdIQuKDu1wC7vKTpCFxQd2uAXd5SdIQuKDu1wC7vKTpCFxQd2uAyqGi8uoRUhYhCOSX1UunqrsMvGxp7Z8Oc4fMhnlE9hskM8/L7jZrJW5JJQGwgABVIqMBpAl0muR8DNNdNpU6Iqxz01x9yjeMmPylNnytZJ7WM/YLBqpujTWY9SDidGHuxvDajW3y407r3qudm/ZBdjeG1Gtvlw7r3qucv2QkRBVASSTSGnUJRZVKe/SHG0bjHKQ4yRk81+SV5sjJWtHWI0jRqtZBXidAHGl17TeHV3VChm4Bde03h1d1QoZuAXXtN4dXdUKGbgF17TeHV3VChm4Bde03h1d1QoZuAXXtN4dXdUKGbgF17TeHV3VChm4Bde03h1d1QoZuAXXtN4dXdUKGbgF17TeHV3VChm4CZcvkFcgrXpETGIqtCQxVfpIiJTowgguemRpbk800lwtyeY+x1krcrWsZ7QHTIAAqilmGSIqFLLWniHYVh7r5bYiKeg3Kwws11xjDHTiGvPUbz/ALsuVkrZMgsCuKJjt8iDpmqJ7PKjWiLAfapevDO0BzswbOfrb3ZNvMaIsB9ql68M7QCzBs5+suybeZNIVyHLhYYuEa62FcIJchmuPtNcbDuluuktcMa8+0x1pbGSPStlZllaO0aaRpyOc66+nlWswr1OgDReNO7W2e6gDGndrbPdQBjTu1tnuoAxp3a2z3UAY07tbZ7qAMad2ts91AGNO7W2e6gDGndrbPdQBjTu1tnuoAxp3a2z3UAztmuZ94luCR9B1OuVn7zpKsUdXhD4r6nR5E+fQTf3mSSy5ZJAG1wABVFLMSkQsKWYtOkPQrT3XC2REK9GOVhpZrzjWFukntdeo3X/AHpMjJWS5RYFc0RHb5EHTFUz2eVGtL2A+yS9Rmdnjnfg2c3U3tybec0vYD7JL1GZ2eF+DZzdRbk286aQr8OZCwxkIx1kK+QS/DMccaU4yHeLdeJY4W11xpbrC2skdkZIzJIwdo00jTkc5119PKtZhXqdAGi8Ft5djd6gGC28uxu9QDBbeXY3eoBgtvLsbvUAwW3l2N3qAYLby7G71AMFt5djd6gGC28uxu9QDBbeXY3eoBgtvLsbvUBnbNcsLurcEsacrlTrP3bRtXpKxCHwv12kD5kynnfutlkkySygNrgACqRUY/R5Lp1Tj46ca6VRJ0PWTnZzj79I8XPckKZMka2X2tZ+0WDVVbGukz6kHEasPefd61GqfmBp3vu1czNm2C8+71qNU/MB3vu1cxZthIiDackk6jNJpiizaI9yjOKpHGP0ZxcrZhrksjzJWyNYOsTrGrVayCvE6AONL0Wm8RLut1DOAC9FpvES7rdQzgAvRabxEu63UM4AL0Wm8RLut1DOAC9FpvES7rdQzgAvRabxEu63UM4AL0Wm8RLut1DOAC9FpvES7rdQzgAvRabxEu63UM4AL0Wm8RLut1DOAEy5fLy5G2vSIaMWlaLhja/SQ8Soxh5BkxMjTHJ5Rpz5b8wxxjzJWZGsY32gOmQABVQCw0EAAAAtXxXidAGqLxcpOjoXC53ZABeLlJ0dC4XO7IALxcpOjoXC53ZABeLlJ0dC4XO7IALxcpOjoXC53ZABeLlJ0dC4XO7IALxcpOjoXC53ZABeLlJ0dC4XO7IALxcpOjoXC53ZABeLlJ0dC4XO7IAZVDWuXUWqQsOhEpLiqZT1V6GQTYI9kyHOfPmRLycQwqWGdfl99k5krMssgDYQAAqoBYaCAAAAWr4rxOgDlHDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwDDW23Uu0UnPwErsPYe1CPahLUVFLq8HD12mOrqcdMpk6LIL+GRFmmvTjTXWZHWySytyAOgwABVQCw0EAAAAtXxXidAAAAAAAAAAAAAAAAAABVQCw0EAAAAtXxXidAAAAAAAAAAAAAAAAAAB/9k="},{label:"Vertical Navigation with Fullwidth Toolbar 2",value:"verticalNavigationFullwidthToolbar2",figure:"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCABkAJYDAREAAhEBAxEB/8QAqwABAAIDAAMBAAAAAAAAAAAAAAYLBQcIAgQKAwEBAAICAwEAAAAAAAAAAAAAAAUHAgMBBggEEAAABAMDBwkDBwsFAAAAAAAAAgMFAQQGERITFNSlFpYHFyFUFVWV1eVWZtZXCDFBIiNTJORRMjPTJTUmWJjYCWFCNAoaEQEAAgEDAgMGBAcBAAAAAAAAAQIDERIEBQYxYZEhoeEiYgdxUhMIUaLiI1MUFkH/2gAMAwEAAhEDEQA/APsI/wAhfxQV/wDCZuXpjeNu5aKPent63oMtFTUrWre9OLUm1ONKVq+rzEugxVBTc2RwJN02gUhzLnTgmdSEU4miUxfQf7bftP2794u+eX2z3Nm5uDgYOk5eVW3FvipknJTkcXFETOXDmrs25rzMRSLborMWiImJ8q/u+++Xdn2A+2vB7y7N4/TuT1Pk9cw8K1ebjzZMUYsnF5ue1q1wcjj3jJF+PSImbzXbN4mkzMTV/j0+KCv/AIs9y9T7xt4zRR7K9su9B6oqVlaKb3pualGpupSin1CYmEH2oKkmzuB5upFynOVcicUyJwgnA0DGM/cl9p+3fs73zxO2e2c3Nz8DP0nFyrW5V8V8kZL8jlYpiJxYcNdm3DSYiaTbdNpm0xMRD9oP3y7s+/8A9ted3l3lx+ncbqfG65m4Va8LHmx4pxY+Lws9bWrn5HIvOSb8i8TMXiu2KRFImJm3eA8+PVQAxD079DSqc10Y7u2JMEl8nZZLLpol5NVTGURxUrsuXCuxNbyGMWFnKAwEpWuVzUtK6pVtLZTMIy+UTbDgysvjKFTxplbKzYUulevHNZG6WEY2APYdKu6Mnl5HVir3HAwvvjWy5XIrYqKa31ExlKeJh4l03JCw5Yw+YB+7dU3SMq5zWr9TyPRkvCYydxaclmnD6uYUwWxHKD5XMfd7t20v0jkhby8gYjX30XX2zv4wBNpSYyuVlprBmJbKZdGYyebTwZqXxkyqYMyjeNhTCV66ctsbpoRhaA9gAAAAAAYh6d+hpVOa6Md3bEmCS+Tssll00S8mqpjKI4qV2XLhXYmt5DGLCzlARjX30XX2zv4wA199F19s7+MAS/L/ANl9KZE4fu/L+jsm/an/AB8oyLJL/wC8P9mHe/SfRt+cB8btbf8AZwo/eU1oMW8X/GVRFfsco4JO0oz1t8Q7NVTVLOiEvNyaDnLtz78ME/KIuCMpPrpEWKSChU1lCwNdOaEe+9Cydydrcy3UO2eqc3p3PvjnHbLxcuXj5LY5tW00m+LJS00m1KWmsztm1azMa1jTpvc3b/aXevAp0rvLpPTurdMx5oy1w83j4eVirlrW9K5K48+O9IyRS96xeIi0VvesTpaYlRX/AGcKP3atUwxbuf8AGVRFAMk24Ku00zUV8RDNSrVMuq8tKSa7nMN7F8L8hKLOC0pIIJHWMSKhk0UyxjdIWEHXcncndPLr1DubqnN6jz6Y4x1ycrLl5GSuOLWtFIvlyXtFIte9orE7Yta0xGtp1ds9v9pdlcC/Suzek9O6T0zJmnLbDwuPh4uK2W1aUtktjwY6UnJNKUrN5ibTWlKzOlYiJh/6sp/+QJD+q2P9tghP+ft/l/l/qdi/34/L7/gf+rKf/kCQ/qtj/bYH/P2/y/y/1H+/H5ff8H1G8Ua093rRt2f2QHX9svu3HFGtPd60bdn9kA2ybjijWnu9aNuz+yAbZNxxRrT3etG3Z/ZANsm44o1p7vWjbs/sgG2TccUa093rRt2f2QDbJuOKNae71o27P7IBtk3HFGtPd60bdn9kA2ybjijWnu9aNuz+yAbZNxxRrT3etG3Z/ZANsm44o1p7vWjbs/sgG2TccUa093rRt2f2QDbJuOKNae71o27P7IBtk3HFGtPd60bdn9kA2ybnlDejWdhrd3zTCMIWlhCujxvGvFhZGOqMLsLsYxt5fks+cNsm5U9OPSeCXonIMoxS3+kcowcG4e9dyb6zFxLtlvJZb/oLEtu0+TTXzQEaf++DD/xp6X0qMP730+9z8nmfxp6X0qH976fefJ5pEhjYKOU4WUYSeUYF/BxrkMXBxPrMLEtu3uWz5RtjXT2+LH8PBayCvE6AAAAAAAAAAAAAAAAAACqRcZeemUSkkHDo1aCpTmXyRGcvpQIeEUsJYxSlvGMWN75YXbPnFg2i0x8s6Sg4mI8Y1YfoqpfNegpD9YMNuT8/uhzrX+HvOiql816CkP1gbcn5/dBrX+HvSJAiqaKJFlcdYiSZFV8MqWMqUkIKK4RIxKniGhGN2HJC2wbY109vixWsgrxOgDlHiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMADiVW3XWjmnMAEroeuKoeKoa25xdMok5jLcZHIm5G/gt02un9YhKJKluqpFjyGhbZZHkAdBgACqRcZDpBEqOWT8jdVKrit0xkyxrpDkwzKXD2pRv2xhZ8sIfkFg2rujTWY/BBxOjD6seoao7W/DjD9L6rernf5Qaseoao7W/Dh+l9VvU3+UJEglgIoo4iq2CkmlirnxFlcMkCYiylkL6p7LTRshbGI2xGkaMVrIK8ToA1Rq7uk5wxbULd7gGru6TnDFtQt3uAau7pOcMW1C3e4Bq7uk5wxbULd7gGru6TnDFtQt3uAau7pOcMW1C3e4Bq7uk5wxbULd7gGru6TnDFtQt3uAau7pOcMW1C3e4Bq7uk5wxbULd7gMqxsu7qUdJWYYlmk7qnj5KWWflZ1eN+XWIvcljOK8FbJYx7foRuwtjyWWgNhAACqKeZZompVNN6MgWVguU6cZiaNJkyiCapSQgoVZCJjYZj/AEbeWFsbOQWBeKTHz+CDrNon5fFGuiKA+1a+3FO8Br2YPL1+LPdk8/Q6IoD7Vr7cU7wDZg8vX4m7J5+iaSpJdOVlk5SJYypEESS0SHiqSMuVMpUYkUiY8VCxThCw1sbYctsRujTSNPBrnXX2+K1mFep0Acaar1N5dfeyHDNwDVepvLr72Q4ZuAar1N5dfeyHDNwDVepvLr72Q4ZuAar1N5dfeyHDNwDVepvLr72Q4ZuAar1N5dfeyHDNwDVepvLr72Q4ZuAar1N5dfeyHDNwDVepvLr72Q4ZuAmW75hfJKr2iZnGV2lJZLL8SYmW6cQQTvtk6mS+qqiRMl9Q8CwtjyxjCHygOmQABVFPMy0Ssqmo9FQNKxXKROExKmnCZRFNUxIwTKivEpsMp/pWckLYW8osC80iPn8EHWLTPy+KNdL0B9k19hqd3jXvweXp8Ge3J5+p0vQH2TX2Gp3eG/B5enwNuTz9U0lTy6krLKSkCwlToInloEJFIkJcyZTIwInEpIplgnGFhbIWQ5LIDdGmkaeDXOuvt8VrMK9ToA0Xxp9NaZ8KAONPprTPhQBxp9NaZ8KAONPprTPhQBxp9NaZ8KAONPprTPhQBxp9NaZ8KAONPprTPhQBxp9NaZ8KAONPprTPhQDO01vP1ie5Jn6DyPLMp+89JZRh5PKLzX6Ho9C/fwLv50LLbeWywBtcAAVSLjP9HolWyOfnrypUsJul8pWLeIc+IZO+SxKFyyMbfljD8osG1tsa6TP4IOI1YfWf09VHZP4gYfq/Tb0c7PODWf09VHZP4gP1fpt6GzzhIkFcdFFbDVRxkk1cJcmGsliEgfDWTtjcVJbYaFsbIwG2J1jVitZBXidAGi+C3qXQ3ioBwW9S6G8VAOC3qXQ3ioBwW9S6G8VAOC3qXQ3ioBwW9S6G8VAOC3qXQ3ioBwW9S6G8VAOC3qXQ3ioBwW9S6G8VAZ2mt2Grr3JPHTmWZHlP3bo3J8TKJReV/TdIL3LmPe/NjbZZyW2gNrgACqgFhoIAAABavivE6AONNaKm8xPva7hnABrRU3mJ97XcM4ANaKm8xPva7hnABrRU3mJ97XcM4ANaKm8xPva7hnABrRU3mJ97XcM4ANaKm8xPva7hnABrRU3mJ97XcM4ANaKm8xPva7hnABrRU3mJ97XcM4ATLd8/Pk7V7RLTj07Tcsrl+JLzLjOLoKXGydUJfSVWOme4oSBoWw5IwhH5QHTIAAqoBYaCAAAAWr4rxOgDVGsW6Tm7Fsut3QAaxbpObsWy63dABrFuk5uxbLrd0AGsW6Tm7Fsut3QAaxbpObsWy63dABrFuk5uxbLrd0AGsW6Tm7Fsut3QAaxbpObsWy63dABrFuk5uxbLrd0AGsW6Tm7Fsut3QAyrG9bupt0lZdiRaSOqmPkppZhVkl4XJdY69yZM3IQStlint+nC9C2HLbYA2EAAKqAWGggAAAFq+K8ToA5R4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8A4a1t1LpFpz8BK6HoeqGeqGtxcWvJ5OXy3GWy1uWuYzdNoJ/VoTaqpryqpYchY2W2x5AHQYAAqoBYaCAAAAWr4rxOgAAAAAAAAAAAAAAAAAAqoBYaCAAAAWr4rxOgAAAAAAAAAAAAAAAAAA//2Q=="},{label:"Horizontal Navigation",value:"horizontalNavigation",figure:"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCABkAJYDAREAAhEBAxEB/8QAjQABAAICAwEAAAAAAAAAAAAAAAUGBwgCAwQKAQEAAwEAAAAAAAAAAAAAAAAAAwUIBhAAAAUCAgcHAAYGCwAAAAAAAAIDBAUBBpQXERITFFTVFiHUFVWlVgcxQSIj5AhhJCU1ZpaBQjPTNIW1NqZXCREBAAICAwEBAQAAAAAAAAAAAAECAwQRBQYSBwj/2gAMAwEAAhEDEQA/APsI/wDQv80F/wD5TPhe2Pkb45iLPmpua+UIWynTW9Y+akYpOKkbUvWdXcN0IK4LbdkkCO7bQKQ5lzp0TOpSqdTVKYug/wCbfyfzv7F7nb8z6bNu4NDB1OXarbVvipknJTY1cURM5cOavx85rzMRSLfUVmLRETE5V/r79y9Z+Afmuj7Lxuv12z2ez3mHStXdx5smKMWTV3c9rVrg2Ne8ZIvr0iJm81+ZvE0mZiav/PT80F//AJs/he5/kb5GiLPhZuF+UJqymrWyo+ajopSKjrUsqdQcOEJ24LkdnkDu7kXKc5VyJ1TInSidDUMYz+kvyfzv477nU8z5nNu59DP1OLatbavivkjJfY2sUxE4sOGvx84aTETSbfU2mbTExEP5B/cvWfv/AOa73svZa/Xa3Z63eZtKtdLHmx4pxY9XSz1taufY2Lzkm+xeJmLxX5ikRSJiZtvgM+NVAAAAAAAAAAAAKxNXN4M6Ta9P3PLbRuRxvELE781JrKKp7FRbeEtVwXZa1S6Owpi109oBC3N4y6Ua9P3PE7NudxvE1E7i1PqqJJ7FNbeFdZwba61C6O0pTV09gCI69/gu/v5d/GAJda5tjDtJjp+51d7cGb+FoxOvMNtUzku2dsd4psW5t200NrV00UJ2fa7AiOvf4Lv7+XfxgB17/Bd/fy7+MAW/f/2X4puUh+79/wDDt2/an+H3jct01/3h/U2et/afZ0/WAr16/HtgfJUU3gvkax7Pv+EaSCUs1hr1tmFuqKbSqDZ2zQk28fOsn7RGQRaP10iLFJRQqayhaV1TmpW66L0novLbduw8zv7vXb98c47ZNXPl18lsc2raaTfFalppNqUtNZn5m1azMc1jjnfTeQ8n7XQp1Xsur67tusx5oy1w7uth2sVcta3pXJXHnpekZIpe9YvERaK3vWJ4tMSsr49sD41inEF8c2PZ9gQjuQVlnUNZVswtqxTmVXbNGa8m4j4JkwaLSCzRggkdYxKqGTRTLWuqQtKO99J6L1O3XsPTb+72O/THGOuTaz5djJXHFrWikXy2vaKRa97RWJ+Yta0xHNp5eZ8h5PxWhfqvG9X13U9ZkzTlth0tbDq4rZbVpS2S2PBSlJyTSlKzeYm01pSszxWIi4CldEAAAAAAAAAAAAAAAAAAAAAIiaZyr5qmlDzPgbkrgih3fhzaT2iFE1Smb7B0YiZNdQ5Ta9K6aamj6K1AQDSCvJF02VdX3vjZJwio4adMRTfekCKFMs326a1VENunSpdctNJdOmnbQB6JSGut2+XcRt5+EslNlsY/p2NfbvqopkU/WnCpVVdqqUx+2n2dbRTspQB3x0VcjZrJpSF1eJuXTeica78DYMvCl9m4LvGwQUMm+0qKJm1FK0p93o+g1QER09fP/Yf/ABKH/vwEvIxVyOWsYlH3V4Y5at6pyTvwNg98VX2bcu8bBdQqbHQomobUTrWn3mj6C0AdEXDXW0fIOJK8/FmSe120f07Gsd41kVCJ/rTdUyqWyVMU/ZT7Wror2VqA87uCvJZ05Va33ubZVwso3adMRTjdUDqGMi326i1FF9gnWhdc1NJtGmvbUBPwrOVYtVEpiZ8ccmcHUI78ObRmzQqmkUrfYNTHTPqKEMbXrXTXX0fRSgCXAAAAAAAAAAAAAakGsKzDmMY1tRJjGrUxq1aE01NWumta/prWol4hE49AWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIDoCy/bMRhCBxAdAWX7ZiMIQOIHKlhWZShqUtqJpQ9NU1KNCfaLQxTaK/o1i0r/QHEC3AAAAAKLmVZPnXp0t3AAzKsnzr06W7gAZlWT516dLdwAMyrJ869Olu4AGZVk+denS3cADMqyfOvTpbuABmVZPnXp0t3AAzKsnzr06W7gAZlWT516dLdwAMyrJ869Olu4APdGXxa8w9Qjo6U3h442mxR3KRR19iioup94u0SSLqpJGr2mpp0aKdoC2AAAAAAAAAADVHLW9vJfUYnv4Blre3kvqMT38Ay1vbyX1GJ7+AZa3t5L6jE9/AMtb28l9Rie/gGWt7eS+oxPfwDLW9vJfUYnv4Blre3kvqMT38Ay1vbyX1GJ7+AZa3t5L6jE9/AWux7HuiHuiLkZGL3dm333bLb7HLam2jnaCf3aDtVU2sqqWnYWujTpr2ANgwAAAAAAAAABrdnDc3AwWGkOZgGcNzcDBYaQ5mAZw3NwMFhpDmYBnDc3AwWGkOZgGcNzcDBYaQ5mAZw3NwMFhpDmYBnDc3AwWGkOZgGcNzcDBYaQ5mAZw3NwMFhpDmYBnDc3AwWGkOZgLJaPyTOT9wx8S8aRKTZ3ve0O2QeEXLsGLlyTUMq+WTppURpSuktezT9faAzaAAAAAAAAAAMUZPWzx07iY/lgBk9bPHTuJj+WAGT1s8dO4mP5YAZPWzx07iY/lgBk9bPHTuJj+WAGT1s8dO4mP5YAZPWzx07iY/lgBk9bPHTuJj+WAGT1s8dO4mP5YAZPWzx07iY/lgCVg/jaDgJRrLM3csq5abfZkcrszoG27dZsfXKkxRUroTWrWmg1O3R9XYAyEAAAAAAAAAANFwAAAAAAAAAAAAF6+Nf8Ae0L/AJj/AKS/AbXAAAAAAAAAADFGcNs8DO4aP5mAZw2zwM7ho/mYBnDbPAzuGj+ZgGcNs8DO4aP5mAZw2zwM7ho/mYBnDbPAzuGj+ZgGcNs8DO4aP5mAZw2zwM7ho/mYBnDbPAzuGj+ZgGcNs8DO4aP5mAlYP5Jg5+UaxLNpLJOXe32Z3KDMiBdg3Wcn1zJPllKaU0a0poLXt0fV2gMhAAAAAAAAAADW7J65uOgsTIcsAMnrm46CxMhywAyeubjoLEyHLADJ65uOgsTIcsAMnrm46CxMhywAyeubjoLEyHLADJ65uOgsTIcsAMnrm46CxMhywAyeubjoLEyHLADJ65uOgsTIcsAWS0fjacgLhj5Z47iVWzTe9oRsu8OubbsXLYmoVViinXQotStdJqdmn6+wBm0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/2Q=="},{label:"Content with Toolbar",value:"contentWithToolbar",figure:"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCABkAJYDAREAAhEBAxEB/8QAiQABAAMBAQEBAAAAAAAAAAAAAAUHCAYEAgoBAQADAQAAAAAAAAAAAAAAAAACBQgGEAAAAgUICAUACgIDAAAAAAAABQECAwQGERIU1KUWBxcTVFWV1eVmliEVVtZXMUEiIzMk5CU1CDI0UUIJEQEAAgIDAQEBAAAAAAAAAAAAAQIDBBIFBgcRCP/aAAwDAQACEQMRAD8A/YR/6F/2gj/+pmC8MYjYclEHnR2dYoEsFPTrGpedGJUzKjGFI1PW7w7sCKIIbe1DBR7htgqous3XZoZrtEJZpWSqsroP+bfk/nfsXudvzPps27g0MHU5dqttW+KmSclNjVxREzlw5q8OOa8zEUi3KKzFoiJicq/199y9Z8A+a6PsvG6/XbPZ7PeYdK1d3HmyYoxZNXdz2tWuDY17xki+vSImbzXjN4mkzMTV/wCen9oI/wD7Z4LxPiNiMUQeSnZLigdQU6usFF50XFTQqLoUgo9YPDwwPYgiR7XMF3uJG6q66rdRmlmozQhmhZCyyz+kvk/nfjvudTzPmc27n0M/U4tq1tq+K+SMl9jaxTETiw4a8OOGkxE0m3KbTNpiYiH8g/cvWff/AJrvey9lr9drdnrd5m0q10sebHinFj1dLPW1q59jYvOSb7F4mYvFeMUiKRMTNtZX96Lj7t39YM+NVJdtE2hJ3Q4u/E7WlvCzv5WxKZ5w7TVnlXTPbjSEaF3Wo0qFpyZUNFPD7XgHgdI1pb07Ot0o2dqS8MXekPZDoXV30zRVnpnltS1tE7sp05daRM1VCUyAPQaRd5Y/N3G7EXmOg0X5wrJaW4ttKxZtvuHiks9Jo9JNW8ESLqpR9QD3kZ955Sv2U/KKLoP5wu8vpGm03+r9810ui0X2/omzlf8AkBPgAAAAAAAAACIOjfyZ1ZvXlhubaR4Ud6OSuVOelJzNq00zRjpWU13V0U1K0vgssqiTxAcxf3ouPu3f1gBf3ouPu3f1gDr6f+1+aUIw/j6f5dRv3T/XpFCok/8AkP8Apo534n2ZfrAZsjd+c8SSxiQ4iYDYc4gkToYszZzKI2NCiKCt3M3d3e3N3NGBaewIYOjuYsnN/bslWyqqGijNs0VQtNXWQm86L0Xo/Lbduw8z2G712/fHOO2TVz5dfJbHNq2mk3xWpaaTalLTWZ4zatZmP2sfnN+m8l5L2uhTqvZdX13bdZjzRlrh3dbDtYq5a1vSuSuPPS9IyRS96xeIi0VvesT+WmJ+YKf3XDUqeCLDnAXDiACR7MGps9E0FGxRCpU8mrd2dHNuZvBeRQG4OjYwbOjgwZLtllEtFmbFmqlM1RVCHe+i9H6nbr2Hpuw3ex36Y4x1ybWfLsZK44ta0Ui+W17RSLXvaKxPGLWtMR+2n9eZ8l5LxWhfqvG9X13U9ZkzTlth0tbDq4rZbVpS2S2PBSlJyTSlKzeYm01pSsz+ViI7DNGNPj0o77X9oCl4y6LkZoxp8elHfa/tAOMnIzRjT49KO+1/aAcZORmjGnx6Ud9r+0A4ycjNGNPj0o77X9oBxk5GaMafHpR32v7QDjJyM0Y0+PSjvtf2gHGTkZoxp8elHfa/tAOMnIzRjT49KO+1/aAcZORmjGnx6Ud9r+0A4ycjNGNPj0o77X9oBxk5GaMafHpR32v7QDjJyM0Y0+PSjvtf2gHGTkZoxp8elHfa/tAOMnIzRjT49KO+1/aAcZORmjGnx6Ud9r+0A4ycn0jFGM5FpcPilCUIlVQiOl0zlpyqJEpuiiaialKZfH6JPrDjJyRAmgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMo5lRttqzimoAGZUbbas4pqABmVG22rOKagAZlRttqzimoAGZUbbas4pqABmVG22rOKagAZlRttqzimoAGZUbbas4pqABmVG22rOKagAZlRttqzimoAOrgeOIoOIoKy4xNKQ5vFN0zGhFzGfoS57bs/vGDoyaqzWrJVPgsiWSRPgA0GAAAAAAAAAAKou7hJrBF3Q24uAXdwk1gi7obcXALu4SawRd0NuLgF3cJNYIu6G3FwC7uEmsEXdDbi4Bd3CTWCLuhtxcAu7hJrBF3Q24uAXdwk1gi7obcXALu4SawRd0NuLgF3cJNYIu6G3FwEqRkuHToaOrwRNilc1Z6eiqux81fW6Z7u2UbzHZYxboayOyy8v2EzUSp8JJQFhAAAAAAAAAADGl14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgF14m9Onu6DCrgOyw+ITxyi8oeXwlNnR2ZU/SPDyXPjBgznlj6zUntWrFRmpPaLoVRKnxSlCPpAaZAAAAAAAAAAFF509NWzyoAzp6atnlQBnT01bPKgDOnpq2eVAGdPTVs8qAM6emrZ5UAZ09NWzyoAzp6atnlQBnT01bPKgDOnpq2eVAJ2GsT7xHbkT+R0OmUn8z5lSNHR3Ru9fg+XsJ8/QTf8kSSy+MkgC1wAAAAAAAAABReS3Utjc1AMlupbG5qAZLdS2NzUAyW6lsbmoBkt1LY3NQDJbqWxuagGS3Utjc1AMlupbG5qAZLdS2NzUAyW6lsbmoCdhrDC7p25HHnlModJ/LeW0fSUh0buv43mDeZM087/FMsknhLKAtcAAAAAAAAAAY0vRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgAvRE3qI93uYVgB2WHx8ePsXlDs+HRs9uzWn6R3eTF8bsGkwsfWik9k1bLs15jRRCyJUeCUIT9IDTIAAAAAAAAAAqi8WEmrkXa7bhABeLCTVyLtdtwgAvFhJq5F2u24QAXiwk1ci7XbcIALxYSauRdrtuEAF4sJNXIu123CAC8WEmrkXa7bhABeLCTVyLtdtwgAvFhJq5F2u24QAXiwk1ci7XbcIASpGdYdPZo6u5ExKVDVpp6Ks7ELVybomO7ZdvMeVi5ghlK7Kry/bRORKjxlkAWEAAAAAAAAAAMo5axtsW0SmvgGWsbbFtEpr4BlrG2xbRKa+AZaxtsW0SmvgGWsbbFtEpr4BlrG2xbRKa+AZaxtsW0SmvgGWsbbFtEpr4BlrG2xbRKa+AZaxtsW0SmvgOrgeB4oJ4oKzExK6O5u9N0zamlzaZpi57YM/u2D21arTmrVVHgqmSWVPgA0GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/9k="},{label:"Content Only",value:"contentOnly",figure:"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCABkAJYDAREAAhEBAxEB/8QAdAABAAMBAQAAAAAAAAAAAAAAAAUHCAYKAQEBAAAAAAAAAAAAAAAAAAAAAxAAAQEEBQoGAAUFAAAAAAAAAAUDBAYXAQJUpdUREhMUlNTlFmYHIRVVlVaWMUEyMyQiI4W1NhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A9t5VIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACi509NXzwoBOnpq+eFAJ09NXzwoBOnpq+eFAJ09NXzwoBOnpq+eFAJ09NXzwoBOnpq+eFAJ09NXzwoBOnpq+eFATsNdz+YltyR/I9T1zWf5PmWsaPV3Ru9fs+XsM/P0Gb+qjJly+OTIBa4AAAAAAAACi5LdS3NxUBJbqW5uKgJLdS3NxUBJbqW5uKgJLdS3NxUBJbqW5uKgJLdS3NxUBJbqW5uKgJLdS3NxUBJbqW5uKgTsNdsOXVtyWPPNc1PWf43lur6TWHRu6/veYN8zM0+d+mnLkyeGXKBa4AAAAAAAADGnNETfIl33dQ3gBzRE3yJd93UN4Ac0RN8iXfd1DeAHNETfIl33dQ3gBzRE3yJd93UN4Ac0RN8iXfd1DeAHNETfIl33dQ3gBzRE3yJd93UN4Ac0RN8iXfd1DeAHNETfIl33dQ3gDsu3y8uPsXpDs+LSs9uzXX9I7vKi+N2DTMTH1pUz2TVtXZ18xpUorUZaPCmiin8QNMgAAAAAAAAKo5i7SWdC+rtsIAcxdpLOhfV22EAOYu0lnQvq7bCAHMXaSzoX1dthADmLtJZ0L6u2wgBzF2ks6F9XbYQA5i7SWdC+rtsIAcxdpLOhfV22EAOYu0lnQvq7bCAHMXaSzoX1dthAEqhrXbp7VHV3QmKTUVWmn1Ws7ILVyb0Zju2rt8x5rJzChlldqtfL/AF0Z1GWjxy5ALCAAAAAAAAAZRlrG3ot4pO/gJaxt6LeKTv4CWsbei3ik7+AlrG3ot4pO/gJaxt6LeKTv4CWsbei3ik7+AlrG3ot4pO/gJaxt6LeKTv4CWsbei3ik7+AlrG3ot4pO/gdXA8DxQjxQlqKil6u5u+u6Ztrqc2zNMnPbBn/bYPbVrWzmrWrR4VacmXLT4AaDAAAAAAAAAZunDE1hQtmUMTAThiawoWzKGJgJwxNYULZlDEwE4YmsKFsyhiYCcMTWFC2ZQxMBOGJrChbMoYmAnDE1hQtmUMTAThiawoWzKGJgJwxNYULZlDEwE4YmsKFsyhiYHSQj3JXF+IU9JfHRJZOz3rekruzB8qN6ugcXl5qZlZq/NmdGVoxoopy1afDL+fiBdoAAAAAAAACqJPQzbl3aU/DAEnoZty7tKfhgCT0M25d2lPwwBJ6Gbcu7Sn4YAk9DNuXdpT8MASehm3Lu0p+GAJPQzbl3aU/DAEnoZty7tKfhgCT0M25d2lPwwBJ6Gbcu7Sn4YBKofbZDQFR1VnN7Vmry6afR1Hlu512FbTu7Z2r59Vk4sWlORm2ppoyVqPHJ+XgBYQAAAAAAAADC4AAAAAAAAAAA7rtr/wBsi/5H/Uv4GrgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/Z"}],n.layoutMode="wide",n.layoutStyle=e.get("motion.layoutStyle")||"verticalNavigation",n.setActiveTheme=function(e){t.setActiveTheme(e)},n.getActiveTheme=function(){return t.themes.active},n.updateLayoutMode=function(){angular.element("body").toggleClass("boxed","boxed"===n.layoutMode)},n.updateLayoutStyle=function(){e.put("motion.layoutStyle",n.layoutStyle),location.reload()}}function an(e){return{restrict:"E",scope:{},controller:"MsThemeOptionsController as vm",templateUrl:tn,compile:function(t){return t.addClass("ms-theme-options"),function(t){t.toggleOptionsSidenav=function(){e("motion-theme-options").toggle()}}}}}function on(e,t,n){const a={};return{generate:function(){const t=angular.copy(n.getRegisteredThemes()),i=angular.copy(n.getRegisteredPalettes());angular.forEach(t,(function(e){a[e.name]={},angular.forEach(e.colors,(function(t,n){a[e.name][n]={name:t.name,levels:{default:{color:o(i[t.name][t.hues.default].value),contrast1:o(i[t.name][t.hues.default].contrast,1),contrast2:o(i[t.name][t.hues.default].contrast,2),contrast3:o(i[t.name][t.hues.default].contrast,3),contrast4:o(i[t.name][t.hues.default].contrast,4)},hue1:{color:o(i[t.name][t.hues["hue-1"]].value),contrast1:o(i[t.name][t.hues["hue-1"]].contrast,1),contrast2:o(i[t.name][t.hues["hue-1"]].contrast,2),contrast3:o(i[t.name][t.hues["hue-1"]].contrast,3),contrast4:o(i[t.name][t.hues["hue-1"]].contrast,4)},hue2:{color:o(i[t.name][t.hues["hue-2"]].value),contrast1:o(i[t.name][t.hues["hue-2"]].contrast,1),contrast2:o(i[t.name][t.hues["hue-2"]].contrast,2),contrast3:o(i[t.name][t.hues["hue-2"]].contrast,3),contrast4:o(i[t.name][t.hues["hue-2"]].contrast,4)},hue3:{color:o(i[t.name][t.hues["hue-3"]].value),contrast1:o(i[t.name][t.hues["hue-3"]].contrast,1),contrast2:o(i[t.name][t.hues["hue-3"]].contrast,2),contrast3:o(i[t.name][t.hues["hue-3"]].contrast,3),contrast4:o(i[t.name][t.hues["hue-3"]].contrast,4)}}}}))})),function(t){const a=angular.copy(t);angular.forEach(a,(function(e){angular.forEach(e,(function(t,n){e[n]=t.levels,e[n].color=t.levels.default.color,e[n].contrast1=t.levels.default.contrast1,e[n].contrast2=t.levels.default.contrast2,e[n].contrast3=t.levels.default.contrast3,e[n].contrast4=t.levels.default.contrast4,delete e[n].default}))})),n.setThemesList(a);const o=e.get("motion.selectedTheme");o?n.setActiveTheme(o):n.setActiveTheme("default")}(a);let s={};angular.forEach(a,(function(e,t){s={},s["@themeName"]=t,angular.forEach(e,(function(e,t){angular.forEach(e.levels,(function(e,n){angular.forEach(e,(function(e,a){s["@"+t+r(n)+r(a)]=e}))}))})),function(e){const t='/* Content hack because they wont fix */\n/* https://github.com/angular/material/pull/8067 */\n[md-theme="@themeName"] md-content.md-hue-1,\nmd-content.md-@themeName-theme.md-hue-1 {\n    color: @backgroundHue1Contrast1;\n    background-color: @backgroundHue1Color;\n}\n\n[md-theme="@themeName"] md-content.md-hue-2,\nmd-content.md-@themeName-theme.md-hue-2 {\n    color: @backgroundHue2Contrast1;\n    background-color: @backgroundHue2Color;\n}\n\n[md-theme="@themeName"] md-content.md-hue-3,\n md-content.md-@themeName-theme.md-hue-3 {\n    color: @backgroundHue3Contrast1;\n    background-color: @backgroundHue3Color;\n}\n\n/* Text Colors */\n[md-theme="@themeName"] a {\n    color: @accentDefaultColor;\n}\n\n[md-theme="@themeName"] .secondary-text,\n[md-theme="@themeName"] .icon {\n    color: @backgroundDefaultContrast2;\n}\n\n[md-theme="@themeName"] .hint-text,\n[md-theme="@themeName"] .disabled-text {\n    color: @backgroundDefaultContrast3;\n}\n\n[md-theme="@themeName"] .fade-text,\n[md-theme="@themeName"] .divider {\n    color: @backgroundDefaultContrast4;\n}\n\n/* Primary */\n[md-theme="@themeName"] .md-primary-bg {\n    background-color: @primaryDefaultColor;\n    color: @primaryDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg .secondary-text,\n[md-theme="@themeName"] .md-primary-bg .icon {\n    color: @primaryDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg .hint-text,\n[md-theme="@themeName"] .md-primary-bg .disabled-text {\n    color: @primaryDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg .fade-text,\n[md-theme="@themeName"] .md-primary-bg .divider {\n    color: @primaryDefaultContrast4;\n}\n\n/* Primary, Hue-1 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 {\n    background-color: @primaryHue1Color;\n    color: @primaryHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .icon {\n    color: @primaryHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .disabled-text {\n    color: @primaryHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-1 .divider {\n    color: @primaryHue1Contrast4;\n}\n\n/* Primary, Hue-2 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 {\n    background-color: @primaryHue2Color;\n    color: @primaryHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .icon {\n    color: @primaryHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .disabled-text {\n    color: @primaryHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-2 .divider {\n    color: @primaryHue2Contrast4;\n}\n\n/* Primary, Hue-3 */\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 {\n    background-color: @primaryHue3Color;\n    color: @primaryHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .icon {\n    color: @primaryHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .disabled-text {\n    color: @primaryHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-primary-bg.md-hue-3 .divider {\n    color: @primaryHue3Contrast4;\n}\n\n/* Primary foreground */\n[md-theme="@themeName"] .md-primary-fg {\n    color: @primaryDefaultColor !important;\n}\n\n/* Primary foreground, Hue-1 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-1 {\n    color: @primaryHue1Color !important;\n}\n\n/* Primary foreground, Hue-2 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-2 {\n    color: @primaryHue2Color !important;\n}\n\n/* Primary foreground, Hue-3 */\n[md-theme="@themeName"] .md-primary-fg.md-hue-3 {\n    color: @primaryHue3Color !important;\n}\n\n/* Accent */\n[md-theme="@themeName"] .md-accent-bg {\n    background-color: @accentDefaultColor;\n    color: @accentDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg .secondary-text,\n[md-theme="@themeName"] .md-accent-bg .icon {\n    color: @accentDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg .hint-text,\n[md-theme="@themeName"] .md-accent-bg .disabled-text {\n    color: @accentDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg .fade-text,\n[md-theme="@themeName"] .md-accent-bg .divider {\n    color: @accentDefaultContrast4;\n}\n\n/* Accent, Hue-1 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 {\n    background-color: @accentHue1Color;\n    color: @accentHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .icon {\n    color: @accentHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .disabled-text {\n    color: @accentHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-1 .divider {\n    color: @accentHue1Contrast4;\n}\n\n/* Accent, Hue-2 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 {\n    background-color: @accentHue2Color;\n    color: @accentHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .icon {\n    color: @accentHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .disabled-text {\n    color: @accentHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-2 .divider {\n    color: @accentHue2Contrast4;\n}\n\n/* Accent, Hue-3 */\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 {\n    background-color: @accentHue3Color;\n    color: @accentHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .icon {\n    color: @accentHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .disabled-text {\n    color: @accentHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-accent-bg.md-hue-3 .divider {\n    color: @accentHue3Contrast4;\n}\n\n/* Accent foreground */\n[md-theme="@themeName"] .md-accent-fg {\n    color: @accentDefaultColor !important;\n}\n\n/* Accent foreground, Hue-1 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-1 {\n    color: @accentHue1Color !important;\n}\n\n/* Accent foreground, Hue-2 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-2 {\n    color: @accentHue2Color !important;\n}\n\n/* Accent foreground, Hue-3 */\n[md-theme="@themeName"] .md-accent-fg.md-hue-3 {\n    color: @accentHue3Color !important;\n}\n\n/* Warn */\n[md-theme="@themeName"] .md-warn-bg {\n    background-color: @warnDefaultColor;\n    color: @warnDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg .secondary-text,\n[md-theme="@themeName"] .md-warn-bg .icon {\n    color: @warnDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg .hint-text,\n[md-theme="@themeName"] .md-warn-bg .disabled-text {\n    color: @warnDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg .fade-text,\n[md-theme="@themeName"] .md-warn-bg .divider {\n    color: @warnDefaultContrast4;\n}\n\n/* Warn, Hue-1 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 {\n    background-color: @warnHue1Color;\n    color: @warnHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .icon {\n    color: @warnHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .disabled-text {\n    color: @warnHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-1 .divider {\n    color: @warnHue1Contrast4;\n}\n\n/* Warn, Hue-2 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 {\n    background-color: @warnHue2Color;\n    color: @warnHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .icon {\n    color: @warnHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .disabled-text {\n    color: @warnHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-2 .divider {\n    color: @warnHue2Contrast4;\n}\n\n/* Warn, Hue-3 */\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 {\n    background-color: @warnHue3Color;\n    color: @warnHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .icon {\n    color: @warnHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .disabled-text {\n    color: @warnHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-warn-bg.md-hue-3 .divider {\n    color: @warnHue3Contrast4;\n}\n\n/* Warn foreground */\n[md-theme="@themeName"] .md-warn-fg {\n    color: @warnDefaultColor !important;\n}\n\n/* Warn foreground, Hue-1 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-1 {\n    color: @warnHue1Color !important;\n}\n\n/* Warn foreground, Hue-2 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-2 {\n    color: @warnHue2Color !important;\n}\n\n/* Warn foreground, Hue-3 */\n[md-theme="@themeName"] .md-warn-fg.md-hue-3 {\n    color: @warnHue3Color !important;\n}\n\n/* Background */\n[md-theme="@themeName"] .md-background-bg {\n    background-color: @backgroundDefaultColor;\n    color: @backgroundDefaultContrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg .secondary-text,\n[md-theme="@themeName"] .md-background-bg .icon {\n    color: @backgroundDefaultContrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg .hint-text,\n[md-theme="@themeName"] .md-background-bg .disabled-text {\n    color: @backgroundDefaultContrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg .fade-text,\n[md-theme="@themeName"] .md-background-bg .divider {\n    color: @backgroundDefaultContrast4;\n}\n\n/* Background, Hue-1 */\n[md-theme="@themeName"] .md-background-bg.md-hue-1 {\n    background-color: @backgroundHue1Color;\n    color: @backgroundHue1Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .icon {\n    color: @backgroundHue1Contrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .disabled-text {\n    color: @backgroundHue1Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-1 .divider {\n    color: @backgroundHue1Contrast4;\n}\n\n/* Background, Hue-2 */\n[md-theme="@themeName"] .md-background-bg.md-hue-2 {\n    background-color: @backgroundHue2Color;\n    color: @backgroundHue2Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .icon {\n    color: @backgroundHue2Contrast2;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .disabled-text {\n    color: @backgroundHue2Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-2 .divider {\n    color: @backgroundHue2Contrast4;\n}\n\n/* Background, Hue-3 */\n[md-theme="@themeName"] .md-background-bg.md-hue-3 {\n    background-color: @backgroundHue3Color;\n    color: @backgroundHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .secondary-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .icon {\n    color: @backgroundHue3Contrast1;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .hint-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .disabled-text {\n    color: @backgroundHue3Contrast3;\n}\n\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .fade-text,\n[md-theme="@themeName"] .md-background-bg.md-hue-3 .divider {\n    color: @backgroundHue3Contrast4;\n}\n\n/* Background foreground */\n[md-theme="@themeName"] .md-background-fg {\n    color: @backgroundDefaultColor !important;\n}\n\n/* Background foreground, Hue-1 */\n[md-theme="@themeName"] .md-background-fg.md-hue-1 {\n    color: @backgroundHue1Color !important;\n}\n\n/* Background foreground, Hue-2 */\n[md-theme="@themeName"] .md-background-fg.md-hue-2 {\n    color: @backgroundHue2Color !important;\n}\n\n/* Background foreground, Hue-3 */\n[md-theme="@themeName"] .md-background-fg.md-hue-3 {\n    color: @backgroundHue3Color !important;\n}',n=new RegExp(Object.keys(e).join("|"),"gi"),a=t.replace(n,(function(t){return e[t]})),o=angular.element("head"),r=angular.element('<style type="text/css"></style>');r.html(a),o.append(r)}(s)}))},rgba:o};function o(e,n){const a=n||!1;return 4===e.length&&255===e[0]&&255===e[1]&&255===e[2]&&e.splice(3,4),a&&(e=function(e,t){const n={white:{1:"1",2:"0.7",3:"0.3",4:"0.12"},black:{1:"0.87",2:"0.54",3:"0.26",4:"0.12"}};255===e[0]&&255===e[1]&&255===e[2]?e[3]=n.white[t]:0===e[0]&&0===e[1]&&0===e[2]&&(e[3]=n.black[t]);return e}(e,a)),3===e.length?"rgb("+e.join(",")+")":4===e.length?"rgba("+e.join(",")+")":void t.error("Invalid number of arguments supplied in the color array: "+e.length+"\nThe array must have 3 or 4 colors.")}function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}}an.$inject=["$mdSidenav"],nn.$inject=["$cookies","motionTheming"],on.$inject=["$cookies","$log","motionTheming"];const rn=on,sn=[{name:"motion-blue",options:{50:"#ebf1fa",100:"#c2d4ef",200:"#9ab8e5",300:"#78a0dc",400:"#5688d3",500:"#3470ca",600:"#2e62b1",700:"#275498",800:"#21467e",900:"#1a3865",A100:"#c2d4ef",A200:"#9ab8e5",A400:"#5688d3",A700:"#275498",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400"}},{name:"motion-paleblue",options:{50:"#ececee",100:"#c5c6cb",200:"#9ea1a9",300:"#7d818c",400:"#5c616f",500:"#3c4252",600:"#353a48",700:"#2d323e",800:"#262933",900:"#1e2129",A100:"#c5c6cb",A200:"#9ea1a9",A400:"#5c616f",A700:"#2d323e",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400"}}],ln={default:{primary:{name:"motion-paleblue",hues:{default:"700","hue-1":"500","hue-2":"600","hue-3":"400"}},accent:{name:"light-blue",hues:{default:"600","hue-1":"400","hue-2":"700","hue-3":"A100"}},warn:{name:"red"},background:{name:"grey",hues:{default:"A100","hue-1":"A100","hue-2":"100","hue-3":"300"}}},pinkTheme:{primary:{name:"blue-grey",hues:{default:"800","hue-1":"600","hue-2":"400","hue-3":"A100"}},accent:{name:"pink",hues:{default:"400","hue-1":"300","hue-2":"600","hue-3":"A100"}},warn:{name:"blue"},background:{name:"grey",hues:{default:"A100","hue-1":"A100","hue-2":"100","hue-3":"300"}}},tealTheme:{primary:{name:"motion-blue",hues:{default:"900","hue-1":"600","hue-2":"500","hue-3":"A100"}},accent:{name:"teal",hues:{default:"500","hue-1":"400","hue-2":"600","hue-3":"A100"}},warn:{name:"deep-orange"},background:{name:"grey",hues:{default:"A100","hue-1":"A100","hue-2":"100","hue-3":"300"}}}};function cn(e,t,n){let a;angular.injector(["ngCookies"]).invoke(["$cookies",function(e){a=e}]);const o=a.getObject("motion.customTheme");o&&(n.custom=o),e.alwaysWatchTheme(!0),angular.forEach(t,(function(t){e.definePalette(t.name,t.options)})),angular.forEach(n,(function(t,n){e.theme(n).primaryPalette(t.primary.name,t.primary.hues).accentPalette(t.accent.name,t.accent.hues).warnPalette(t.warn.name,t.warn.hues).backgroundPalette(t.background.name,t.background.hues)}))}cn.$inject=["$mdThemingProvider","motionPalettes","motionThemes"];const un=cn;function dn(e,t,n){const a={};return a.themes={list:{},active:{name:"",theme:{}}},a.getRegisteredPalettes=function(){return n.PALETTES},a.getRegisteredThemes=function(){return n.THEMES},a.setActiveTheme=function(n){if(angular.isUndefined(a.themes.list[n]))return angular.isUndefined(a.themes.list.default)?void t.error('You must have at least one theme named "default"'):(t.warn('The theme "'+n+'" does not exist! Falling back to the "default" theme.'),a.themes.active.name="default",a.themes.active.theme=a.themes.list.default,void e.put("motion.selectedTheme",a.themes.active.name));a.themes.active.name=n,a.themes.active.theme=a.themes.list[n],e.put("motion.selectedTheme",n)},a.setThemesList=function(e){a.themes.list=e},a}dn.$inject=["$cookies","$log","$mdTheming"];const fn=dn;function mn(e,t,n,a){return{restrict:"A",require:"?ngModel",link:function(o,r,i,s){n.isAdmin()||n.isTelephone()||(""!==i.privacy||n.getCurrentUser().privacyEnabled)&&!1!==o.$eval(i.privacy)&&(s?(s.$formatters.push((function(e){if(!e)return e;const t=a.mask(e);return s.$setViewValue(t),s.$render(),s.$viewValue})),s.$parsers.push((function(){return s.$modelValue})),r[0].disabled=!0):t((function(){e(r.contents())(o);const t=r.text();if(t){const e=a.mask(t);r.text(e)}})))}}}mn.$inject=["$compile","$timeout","Auth","privacyManager"];const pn=mn;function gn(e,t,n,a,o){const r={};let i={},s={},l={};function c(){i=a.getCurrentUser();const e=n.localStorage.getItem("motion2.home:"+i.id);if(s=e?JSON.parse(e).currentSidebarTab:"dashboard",l=n.localStorage.getItem("motion2.home."+s+":"+i.id),l){const e=JSON.parse(l);e.drafts?i.privacyEnabled&&Object.keys(e.drafts).forEach((function(t){const n=e.drafts[t].title,a=n.split(/-(.+)/)[1].trim();e.drafts[t].title=n.replace(a,o.mask(a))})):e.drafts={},l=e}else l={drafts:{}};return l.drafts}function d(){u().isEmpty(r.drafts)?delete l.drafts:l.drafts=r.drafts,n.localStorage.setItem("motion2.home."+s+":"+i.id,JSON.stringify(l))}return r.init=function(){r.drafts=c()},r.getByInteraction=function(e){return r.drafts=c(),u().find(u().values(r.drafts),(function(t){return t.interaction&&t.interaction.id===e}))},r.removeByInteraction=function(e){r.drafts=c();const t=u().find(u().values(r.drafts),(function(t){return t.interaction&&t.interaction.id===e}));t&&(delete r.drafts[t.id],d())},r.add=function(e){r.drafts=c();let n=t.instant("DASHBOARDS.UNTITLED");e.contact?n=e.contact.firstName||e.contact.email:u().isEmpty(e.message.subject)||(n=e.message.subject);const a={type:"draft",title:e.account.key+" - "+n,channel:e.channel,content:e.message,account:e.account,interaction:e.interaction,id:u().random(1e10),openedAt:new Date,saved:!1};r.drafts[a.id]=a,d()},r.update=function(e){r.drafts=c();const t=r.drafts[e.id];t&&(t.content=e.message,r.drafts[e.id]=t,d())},r.open=function(t){r.drafts=c();const n=r.drafts[t];n&&e.$broadcast("open"+u().startCase(s)+"Draft",n)},r.remove=function(e){r.drafts=c(),r.drafts[e]&&(delete r.drafts[e],d())},r}gn.$inject=["$rootScope","$translate","$window","Auth","privacyManager"];const hn=gn;function _n(e){function t(t,n){const a=e.get();let o=0;if(a)switch(n){case"email":o=a.privacyPolicyEmail;break;case"number":o=a.privacyPolicyNumber;break;default:o=a.privacyPolicyName}return u().isNil(o)?t:0===o||o>t.length?t.replace(/./g,"*"):t.substring(0,t.length-o).padEnd(t.length,"*")}return{mask:function e(n){if(function(e){return u().startsWith(e,"<")&&u().endsWith(e,">")&&(e=e.substring(1,e.length-1)),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}(n=function(e){return e.replace(/\s\s+/g," ").trim()}(n)))return function(e){let n=!1;u().startsWith(e,"<")&&u().endsWith(e,">")&&(n=!0,e=e.substring(1,e.length-1));const a=e.split("@")[0],o=e.split("@")[1];let r="";return n&&(r+="<"),r+=t(a,"email"),r+="@",r+=t(o,"email"),n&&(r+=">"),r}(n);if(function(e){return/^[+]?[0-9|.|\-|\s]*$/.test(e)}(n))return t(n,"number");{const a=[],o=n.split(" ");return 1===o.length?t(n):(o.forEach((function(t){a.push(e(t))})),a.join(" "))}}}}_n.$inject=["settingsManager"];const bn=_n;let yn=angular.module("app.core",["ngAnimate","ngAria","ngCookies","ngMessages","ngResource","ngSanitize","ngMaterial","pascalprecht.translate","ui.router","ui.router.state.events","gridster","ds.clock","angucomplete-alt"]).provider("motionConfig",v).config(S).run(E).controller("AdvancedSearchController",T);function vn(e,t,n,a,o,r,i){const s=this;function l(e){if(e&&e.id){const t=99999+e.id;o.saveItem("apps.dashboards.custom_"+t,{id:t,title:e.name||"NONAME",state:"app.dashboards.custom",stateParams:e,weight:2,hidden:function(){return r.hasRole("agent")||!r.hasPermission(t)&&!r.hasRole("admin")}})}}function c(e){if(e&&e.id&&"never"!=e.sidebar)if(e.active){if("always"==e.sidebar||"adminOnly"==e.sidebar){o.saveItem("apps.plugins",{id:1900,title:"Plugins",translate:"PLUGINS.PLUGINS",icon:"icon-apps",weight:17,hidden:function(){return r.hasRole("agent")||!r.hasPermission(1900)&&!r.hasRole("admin")}});const t=88888+e.id;o.saveItem("apps.plugins.plugin_"+t,{id:t,title:e.name||"NONAME",state:"app.plugins.plugin",stateParams:e,weight:2,hidden:function(){return r.hasRole("agent")||!r.hasPermission(t)&&!r.hasRole("admin")}}),o.sort()}}else{const t=88888+e.id;!function(e,t){const n=o.getNavigation(),a=u().find(n[0].children,{id:e});return!!a&&u().some(a.children,{id:t})}(1900,t)||"always"!=e.sidebar&&"adminOnly"!=e.sidebar||(o.deleteItem("apps.plugins.plugin_"+t),d(1900)||o.saveItem("apps.plugins",{id:1900,title:"Plugins",translate:"PLUGINS.PLUGINS",icon:"icon-apps",weight:17,hidden:function(){return!0}}))}}function d(e){const t=o.getNavigation(),n=u().find(t[0].children,{id:e});return!!(n&&n.children.length>0)}s.bodyEl=angular.element("body"),s.msScrollOptions={suppressScrollX:!0},s.setting=n,s.baseUrl=i.baseUrl,s.$onInit=function(){s.folded="true"===t.get("motion.folded")||!1},s.toggleMsNavigationFolded=function(){s.folded=!s.folded,t.put("motion.folded",s.folded)},s.getLogo=function(){return s.setting.defaultHeaderWhiteLabel?"xCALLY Motion":s.setting.headerWhiteLabel},a.on("dashboard:save",l),a.on("dashboard:update",l),a.on("dashboard:remove",(function(e){if(e&&e.id){const t=99999+e.id;o.deleteItem("apps.dashboards.custom_"+t)}})),a.on("plugin:save",c),a.on("plugin:update",c),a.on("plugin:remove",(function(e){if(e&&e.id&&"never"!=e.sidebar){const t=88888+e.id;"always"!=e.sidebar&&"adminOnly"!=e.sidebar||(o.deleteItem("apps.plugins.plugin_"+t),d(1900)||o.saveItem("apps.plugins",{id:1900,title:"Plugins",translate:"PLUGINS.PLUGINS",icon:"icon-apps",weight:17,hidden:function(){return!0}}))}})),e.$on("$stateChangeSuccess",(function(){s.bodyEl.removeClass("ms-navigation-horizontal-mobile-menu-active")}))}yn=Tt.reduce(((e,[t,n,a])=>{switch(a){case"directive":e.directive(t,n);break;case"provider":e.provider(t,n);break;case"controller":e.controller(t,n);break;case"service":e.service(t,n);break;case"filter":e.filter(t,n);break;case"factory":e.factory(t,n)}return e}),yn),yn.factory("customerJourneyManager",kt).factory("quickFilterManager",xt).factory("settingsManager",Mt).factory("localStorageManager",Ot).filter("altDate",Rt).filter("toTrusted",Nt).filter("htmlToPlaintext",(function(){return function(e){return String(e).replace(/<[^>]+>/gm,"")}})).filter("nospace",(function(){return function(e){return e?e.replace(/ /g,""):""}})).filter("humanizeDoc",(function(){return function(e){if(e)return"directive"===e.type?e.name.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})):e.label||e.name}})).filter("capitalize",Lt).filter("filterByIds",$t).filter("filterByPropIds",Ut).filter("snakecase",jt).filter("startcase",Ft).filter("filterByTags",(function(){return function(e,t){if(0===e.length||0===t.length)return e;const n=[];return e.forEach((function(e){t.every((function(t){let n=!1;return e.tags.forEach((function(e){e.name!==t.name||(n=!0)})),n}))&&n.push(e)})),n}})).filter("filterSingleByTags",(function(){return function(e,t){if(0===e.length||0===t.length)return;if(e.length<t.length)return[];const n=[];return t.every((function(t){let n=!1;return e.forEach((function(e){e.name!==t.name||(n=!0)})),n}))&&n.push(e),n}})).filter("toInteger",qt).filter("orderByDate",Yt).provider("motNotification",Gt).factory("apiResolver",Wt).factory("LoadingIndicatorService",zt).provider("msApi",Kt).factory("msUtils",en).controller("MsThemeOptionsController",nn).directive("msThemeOptions",an).factory("motionGenerator",rn).constant("motionPalettes",sn).constant("motionThemes",ln).config(un).service("motionTheming",fn).factory("privacyManager",bn).factory("draftManager",hn).directive("privacy",pn),vn.$inject=["$scope","$cookies","setting","socket","msNavigationService","Auth","api"];const An=vn;function Sn(e,t,n,a,o,r,i){const s=this;function l(){t.hide()}s.errors=[],s.user=o,s.setting=r,s.reset=i,s.passwordPattern=s.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",s.savePassword=function(){s.errors=[],a.user.changePassword({id:s.user.id},{oldPassword:s.oldPassword,newPassword:s.password}).$promise.then((function(){n.show(n.simple().textContent("Your password properly updated").position("top right").hideDelay(5e3)),l()})).catch((function(e){console.error(e),s.errors=e.data.errors&&e.data.errors.length?e.data.errors:[{message:e.data.message||"Authorization error",type:"api.user.changePassword"}]}))},s.closeDialog=l,e.$watch("vm.password",(function(t){u().isNil(s.oldPassword)||(t===s.oldPassword?e.changePasswordForm.password.$setValidity("oldPasswordMatch",!1):e.changePasswordForm.password.$setValidity("oldPasswordMatch",!0))}))}angular.module("app.navigation",[]).config((function(){})).controller("NavigationController",An),Sn.$inject=["$scope","$mdDialog","$mdToast","api","user","setting","reset"];const wn=Sn;function En(e,t,n,a,o,r,i,s){const l=this;function c(e){u().isNil(e)&&r.cmHopper.update({id:l.preview.id,UserId:null}),a.hide()}l.customFieldsMap=s&&s.rows?u().mapValues(u().keyBy(s.rows,(function(e){return"cf_"+e.id})),"name"):{},l.errors=[],l.hopperIds=[],l.preview=i,l.originated=!1,l.disable=!1,l.disableGetContact=!1,l.hopperIds.push(l.preview.id),l.originatePreview=function(){l.originated=!0,l.disable=!0,u().isEmpty(l.preview)?(o.error({title:"Message",msg:"Contact not available"}),l.disable=!1,l.hopperIds=[],c(!0)):r.rpc.getVoiceQueuesPreview({id:l.preview.id}).$promise.then((function(){c(!0)})).catch((function(e){o.error({title:"Message",msg:e.data}),c(!0)})).finally((function(){l.disable=!1,l.hopperIds=[]}))},l.closeDialog=c,l.nextContact=function(){return l.disableGetContact=!0,r.cmHopper.getPreview({hopperIds:l.hopperIds,direction:"next"}).$promise.then((function(e){l.disableGetContact=!1,u().isNil(e)||u().isNil(e.Queue)||!e.Queue.dialActive?(l.hopperIds=[],a.hide(),o.info({title:"PREVIEW",msg:"CAMPAIGN NOT ACTIVE"})):(l.originated||r.cmHopper.update({id:l.preview.id,UserId:null}),l.preview=e,l.hopperIds.push(l.preview.id))})).catch((function(e){if(l.disableGetContact=!1,l.hopperIds=[],404===e.status)l.getFirstAvailableContact();else if(e.data&&e.data.errors&&e.data.errors.length){a.hide();for(let t=0;t<e.data.errors.length;t+=1)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.hide(),o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api preview",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},l.previousContact=function(){if(l.disableGetContact=!0,l.hopperIds.length>1){const e=u().without(l.hopperIds,l.preview.id);return r.cmHopper.getPreview({hopperIds:e,direction:"prev"}).$promise.then((function(e){l.disableGetContact=!1,u().isNil(e)||u().isNil(e.Queue)||!e.Queue.dialActive?(l.hopperIds=[],a.hide(),o.info({title:"PREVIEW",msg:"CAMPAIGN NOT ACTIVE"})):(u().remove(l.hopperIds,(function(e){return e==l.preview.id})),l.originated||r.cmHopper.update({id:l.preview.id,UserId:null}),l.preview=e)})).catch((function(e){if(404===e.status)l.hopperIds=[l.preview.id],o.info({title:"PREVIEW",msg:"PREVIOUS CONTACTS NOT AVAILABLE"});else if(e.data&&e.data.errors&&e.data.errors.length){l.hopperIds=[],a.hide();for(let t=0;t<e.data.errors.length;t+=1)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.hopperIds=[],a.hide(),o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api preview",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}},l.getFirstAvailableContact=function(){return l.disableGetContact=!0,o.info({title:"PREVIEW",msg:"CONTACTS NOT AVAILABLE. REWINDING THE LIST"}),r.cmHopper.getPreview({hopperIds:[l.preview.id],direction:"next"}).$promise.then((function(e){u().isNil(e)||u().isNil(e.Queue)||!e.Queue.dialActive?(a.hide(),o.info({title:"PREVIEW",msg:"CAMPAIGN NOT ACTIVE"})):(l.originated||r.cmHopper.update({id:l.preview.id,UserId:null}),l.preview=e,l.hopperIds.push(l.preview.id))})).catch((function(e){if(a.hide(),404===e.status)o.info({title:"PREVIEW",msg:"CONTACTS NOT AVAILABLE"});else if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api preview",msg:e.data?JSON.stringify(e.data.message):e.toString()})})).finally((function(){l.disableGetContact=!1}))},l.isCustomField=function(e){return u().startsWith(e,"cf_")},l.isHiddenField=function(e){return u().includes(["Company","CompanyId","ListId","UserId","createdAt","deletedAt","id","priority","scheduledat","tags","updatedAt","facebook","twitter","skype","wechat","teams","viber","line","telegram"],e)},l.isNil=function(e){return u().isNil(e)},e.$on("$destroy",(function(){l.originated||r.cmHopper.update({id:l.preview.id,UserId:null})}))}En.$inject=["$scope","$state","$location","$mdDialog","toasty","api","preview","customFields"];const Cn=En,Tn=n.p+"templates/toolbar/preview/dialog.html/dialog.html",In=n.p+"templates/toolbar/changepassword/changepassword.html/changepassword.html";function kn(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y,v,A,S,w){const E=this;let C;E.voiceQueues={},E.polling=!0,E.baseUrl=y.baseUrl,t.global={search:""},E.pauses=[],E.license=v,E.currentUser=_.getCurrentUser(),E.unreadTotalMessages=0,E.unreadTotalGroupMessages=0,E.contcts=0,"agent"===E.currentUser.role&&(C=S((function(){u().some(E.voiceQueues,{dialMethod:"preview",dialActive:!0})&&E.license.dialer&&E.polling?(E.polling=!1,y.cmHopper.getOpenContacts().$promise.then((function(e){e&&u().isNumber(e.contacts)&&(E.contacts=e.contacts)})).finally((function(){E.polling=!0}))):E.contacts=0}),14999)),E.setting=A,E.bodyEl=angular.element("body"),E.conf={realm:"asterisk",host:i.host(),protocol:i.protocol(),remotePlayerId:"remote-audio",ua:"Motion WebRTC Bar 0.2.0",license:E.license.webrtc,phoneBarExpires:E.currentUser.phoneBarExpires,phoneBarPrefixRequired:E.currentUser.phoneBarPrefixRequired},E.query={id:_.getCurrentUser().id,fields:"id,name,type,dialMethod,dialActive",channel:"voice",nolimit:!0},E.userStatusOptions=[{title:"Online",icon:"icon-checkbox-marked-circle",color:"#4CAF50"},{title:"Away",icon:"icon-clock",color:"#FFC107"},{title:"Do not Disturb",icon:"icon-minus-circle",color:"#F44336"},{title:"Invisible",icon:"icon-checkbox-blank-circle-outline",color:"#BDBDBD"},{title:"Offline",icon:"icon-checkbox-blank-circle-outline",color:"#616161"}],E.languages={ar:{title:"Arabic",translation:"TOOLBAR.ARABIC",code:"ar",flag:"ar"},da:{title:"Danish",translation:"TOOLBAR.DANISH",code:"da",flag:"da"},de:{title:"German",translation:"TOOLBAR.GERMAN",code:"de",flag:"de"},en:{title:"English",translation:"TOOLBAR.ENGLISH",code:"en",flag:"us"},es:{title:"Spanish",translation:"TOOLBAR.SPANISH",code:"es",flag:"es"},fa:{title:"Persian",translation:"TOOLBAR.PERSIAN",code:"fa",flag:"fa"},fi:{title:"Finnish",translation:"TOOLBAR.FINNISH",code:"fi",flag:"fi"},fr:{title:"French",translation:"TOOLBAR.FRENCH",code:"fr",flag:"fr"},he:{title:"Hebrew",translation:"TOOLBAR.HEBREW",code:"he",flag:"he"},hi:{title:"Hindi",translation:"TOOLBAR.HINDI",code:"hi",flag:"hi"},id:{title:"Indonesian",translation:"TOOLBAR.INDONESIAN",code:"id",flag:"id"},it:{title:"Italian",translation:"TOOLBAR.ITALIAN",code:"it",flag:"it"},ja:{title:"Japanese",translation:"TOOLBAR.JAPANESE",code:"ja",flag:"ja"},ko:{title:"Korean",translation:"TOOLBAR.KOREAN",code:"ko",flag:"ko"},lv:{title:"Latvian",translation:"TOOLBAR.LATVIAN",code:"lv",flag:"lv"},nl:{title:"Dutch",translation:"TOOLBAR.DUTCH",code:"nl",flag:"nl"},no:{title:"Norwegian",translation:"TOOLBAR.NORWEGIAN",code:"no",flag:"no"},pl:{title:"Polish",translation:"TOOLBAR.POLISH",code:"pl",flag:"pl"},"pt-BR":{title:"Brazilian",translation:"TOOLBAR.BRAZILIAN",code:"pt-BR",flag:"pt-BR"},"pt-PT":{title:"Portuguese",translation:"TOOLBAR.PORTUGUESE",code:"pt-PT",flag:"pt-PT"},ru:{title:"Russian",translation:"TOOLBAR.RUSSIAN",code:"ru",flag:"ru"},sv:{title:"Swedish",translation:"TOOLBAR.SWEDISH",code:"sv",flag:"sv"},tr:{title:"Turkish",translation:"TOOLBAR.TURKISH",code:"tr",flag:"tr"},"zh-CN":{title:"ChineseSimplified",translation:"TOOLBAR.CHINESESIMPLIFIED",code:"zh-CN",flag:"zh-CN"},"zh-TW":{title:"ChineseTraditional",translation:"TOOLBAR.CHINESETRADITIONAL",code:"zh-TW",flag:"zh-TW"}};const T=["ar","fa","he"];function I(){b.connect(),b.on("user:update",E.onUserUpdate),b.on("user:called",E.onUserCalled),b.on("chatInternalMessage:save",E.onInternalMessageSave),b.on("chatInternalMessage:update",E.onInternalMessageUpdate),b.on("userVoiceQueue:save",E.onUserVoiceQueue),b.on("voiceQueue:save",E.onVoiceQueue),b.on("userVoiceQueue:remove",E.onUserVoiceQueue),b.on("voiceQueue:remove",E.onVoiceQueue),b.on("voiceQueue:update",E.onVoiceQueue),b.on("user:forcelogout",O),b.on("userNotification:send",R)}function k(){b.disconnect("logout")}function D(e){E.voiceQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{}}function x(){E.promise=y.user.getQueues(E.query,D).$promise}function M(e){return k(),_.logout(e).then((function(){return t.$broadcast("webrtc::logout"),a.go("app.login")})).catch((function(e){console.error(e)}))}function P(e,t){f.show({controller:"ChangePasswordController",controllerAs:"vm",templateUrl:In,parent:angular.element(m.body),targetEvent:e,clickOutsideToClose:!t,escapeToClose:!t,locals:{user:E.user,setting:A,reset:t}})}function O(e){if(console.debug("onForceLogout -> data",e),e.user.id===E.user.id&&0!==E.user.showWebBar)return k(),_.logout(!0).then((function(){t.$broadcast("webrtc::logout"),f.show(f.alert().parent(angular.element(m.body)).clickOutsideToClose(!1).escapeToClose(!1).title(l.instant("TOOLBAR.WARNING")).textContent(l.instant("TOOLBAR.USER_FORCE_LOGOUT",{ip:e.ip})).ok("OK")).then((function(){return a.go("app.login")}))})).catch((function(e){console.error(e)}))}function R(e){const t=e;if(E.currentUser.id===t.recipient){const e=l.instant("TOOLBAR.NOTIFICATION_TITLE",{sender:t.sender}),n=t.description?l.instant("TOOLBAR.NOTIFICATION_TITLE_RECIPIENT",{recipient:t.description}):null;g.wait({title:n?e+" "+n:e,msg:t.content,clickToClose:!1,timeout:!1,sound:t.beep,html:!0})}}E.toggleSidenav=function(e){s(e).toggle()},E.logout=M,E.changeLanguage=function(t){if(void 0===E.languages[t.code]){const e="Motion supports multiple translations through angular-translate module, but currently we do not support the selected language. If you want to help us, send us a message.";return void c.show({template:'<md-toast id="language-message" layout="column" layout-align="center start"><div class="md-toast-content">'+e+"</div></md-toast>",hideDelay:7e3,position:"top right",parent:"#content"})}E.selectedLanguage=t,p.put("motion.language",t.code),l.use(t.code),"app.callysquare.projects.edit"===a.current.name&&d.location.reload();T.indexOf(t.code)>=0?g.info({title:l.instant("TOOLBAR.CHANGE_LANGUAGE_TITLE"),msg:l.instant("TOOLBAR.CHANGE_LANGUAGE_MESSAGE")}):e.$parent.$parent.vm.direction="ltr"},E.setUserStatus=function(e){E.userStatus=e},E.toggleHorizontalMobileMenu=function(){E.bodyEl.toggleClass("ms-navigation-horizontal-mobile-menu-active")},E.toggleMsNavigationFolded=function(){h.toggleFolded()},E.search=function(){let e=[];const t=h.getFlatNavigation(),a=n.defer();for(let n=0;n<t.length;n++)t[n].uisref&&e.push(t[n]);E.query.filter&&(e=e.filter((function(e){if(e.title.toLowerCase().includes(E.query.filter.toLowerCase()))return!0})));return r((function(){a.resolve(e)}),1e3),a.promise},E.searchResultClick=function(e){e.uisref&&(e.stateParams?a.go(e.state,e.stateParams):a.go(e.state))},E.openSettings=function(){t.$broadcast("webrtc::settings")},E.changePassword=P,E.isAgent=function(){return _.getCurrentUser()&&_.hasRole("agent")},E.onUserUpdate=function(e){if(e.id===E.user.id)if("agent"===e.role&&u().isBoolean(e.online)&&!e.online)if(0!==E.user.showWebBar){k();let t=null;const n=f.confirm({title:l.instant("TOOLBAR.WARNING")+"!",htmlContent:"<span>"+l.instant("TOOLBAR.SOMEONE_LOGGED_YOU_OUT")+"</span><br><span>"+l.instant("TOOLBAR.SESSION_TIMEOUT")+"</span>",ariaLabel:l.instant("TOOLBAR.WARNING")+"!",ok:l.instant("TOOLBAR.STAY_LOGGED"),cancel:l.instant("TOOLBAR.LOGOUT"),onComplete:function(){t=setTimeout((function(){f.cancel()}),6e4)}});f.show(n).then((function(){return clearTimeout(t),_.queueLogin().then((function(){I(),u().merge(E.user,e),_.setCurrentUser(E.user)}))})).catch((function(){clearTimeout(t),M(!0)}))}else M(!0);else u().merge(E.user,e),_.setCurrentUser(E.user)},E.onUserCalled=function(e){if(2===E.currentUser.showWebBar&&"agent"===E.currentUser.role&&E.currentUser.name===e.membername){const t=E.currentUser.privacyEnabled?w.mask(e.calleridnum):e.calleridnum;g.info({title:"WebRTC Popup",msg:"<div>          <span>Call from: "+t+"</span><br>          <span>Queue: "+e.queue+"</span><br>          <span>Extra: "+(e.variables&&e.variables.extravar?e.variables.extravar:"Not defined")+"</span><br>          </div>",showClose:!0,timeout:1e4,html:!0})}},E.pause=function(e){return y.user.pause({id:E.user.id,type:e||"DEFAULT PAUSE"}).$promise.catch((function(e){g.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:PAUSEUSER",msg:e.status?JSON.stringify(e.data):e.toString()})}))},E.unpause=function(){return y.user.unpause({id:E.user.id}).$promise.catch((function(e){g.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UNPAUSEUSER",msg:e.status?JSON.stringify(e.data):e.toString()})}))},E.preview=function(e){return E.disable=!0,y.cmHopper.getPreview().$promise.then((function(t){u().isNil(t)||u().isNil(t.Queue)||!t.Queue.dialActive?g.info({title:"PREVIEW",msg:"CAMPAIGN NOT ACTIVE"}):f.show({controller:"PreviewDialogController",controllerAs:"vm",templateUrl:Tn,parent:angular.element(m.body),targetEvent:e,clickOutsideToClose:!0,locals:{preview:t},resolve:{customFields:["apiResolver",function(e){return e.resolve("cmCustomField@get",{nolimit:!0})}]}})})).catch((function(e){if(404===e.status)g.info({title:"PREVIEW",msg:"CONTACT NOT AVAILABLE"});else if(e.data&&e.data.errors&&e.data.errors.length){E.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelMessage.accept"}];for(let t=0;t<e.data.errors.length;t+=1)g.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else g.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelMessage.accept",msg:e.data?JSON.stringify(e.data.message):e.toString()})})).finally((function(){E.disable=!1}))},E.getLogo=function(){return E.setting.defaultHeaderWhiteLabel?"xCALLY Motion":E.setting.headerWhiteLabel},E.userIsNotPhonebar=function(){return"admin"===E.currentUser.role||"user"===E.currentUser.role||"agent"===E.currentUser.role&&0!==E.currentUser.showWebBar},E.onInternalMessageSave=function(e){e.ToId!==E.currentUser.id||e.ChatGroupId||(E.unreadTotalMessages+=1);e.ToId===E.currentUser.id&&e.FromId!==E.currentUser.id&&!e.read&&e.ChatGroupId&&E.unreadTotalGroupMessages++},E.onInternalMessageUpdate=function(e){e.ToId===E.currentUser.id&&e.read&&E.unreadTotalMessages>0&&!e.ChatGroupId&&(E.unreadTotalMessages-=1);e.ToId===E.currentUser.id&&e.read&&e.ChatGroupId&&E.unreadTotalGroupMessages>0&&E.unreadTotalGroupMessages--},E.onUserVoiceQueue=function(e){u().toInteger(e.UserId)===_.getCurrentUser().id&&x()},E.onVoiceQueue=function(){x()},function(){E.user=_.getCurrentUser(),E.conf.ha1=E.user.md5secret,E.conf.id=E.user.id,E.conf.name=E.user.name,E.conf.fullname=E.user.fullname,E.conf.internal=E.user.internal,E.conf.recording=E.user.phoneBarEnableRecording,E.conf.autoAnswer=E.user.phoneBarAutoAnswer,E.conf.enableSettings=E.user.phoneBarEnableSettings,E.conf.enableDtmfTone=E.user.phoneBarEnableDtmfTone,E.conf.autoAnswerDelay=E.user.phoneBarAutoAnswerDelay,E.userStatus=E.userStatusOptions[0];const e=p.get("motion.language");e&&void 0!==E.languages[e]?E.selectedLanguage=E.languages[e]:E.selectedLanguage=E.languages[l.preferredLanguage()];if(y.pause.get({fields:"name",nolimit:!0}).$promise.then((function(e){E.pauses=e.rows?e.rows:[]})).catch((function(e){g.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETPAUSES",msg:e.status?JSON.stringify(e.data):e.toString()})})),"LOCAL_LOGIN"===_.getAuthenticationType()&&E.setting.securePassword)if(E.user.passwordResetAt){const e=o()(E.user.passwordResetAt).add(E.setting.passwordExpiresDays||90,"day");o()().isAfter(e)?P(null,!0):o()().add(15,"day").isAfter(e)&&g.warning({title:l.instant("TOOLBAR.WARNING")+"!",msg:l.instant("TOOLBAR.PASSWORD_EXPIRE_REMAINING_DAYS")+": "+Math.ceil(e.diff(o()(),"days",!0)),timeout:2e4})}else P(null,!0)}(),x(),I(),y.chatInternalMessage.get({fields:"FromId",ToId:E.currentUser.id,read:!1,nolimit:!0}).$promise.then((function(e){E.unreadTotalMessages=e.rows.length})),e.$on("$destroy",(function(){b.removeAllListeners("user:called"),b.removeAllListeners("user:update"),b.removeAllListeners("chatInternalMessage:save"),b.removeAllListeners("chatInternalMessage:update"),b.removeAllListeners("userVoiceQueue:save"),b.removeAllListeners("voiceQueue:save"),b.removeAllListeners("userVoiceQueue:remove"),b.removeAllListeners("voiceQueue:remove"),b.removeAllListeners("voiceQueue:update"),b.removeAllListeners("user:forcelogout"),b.removeAllListeners("notification:send"),b.removeAllListeners("userNotification:send"),C&&(S.cancel(C),C=null)}))}kn.$inject=["$scope","$rootScope","$q","$state","$timeout","$location","$mdSidenav","$translate","$mdToast","$window","$mdDialog","$document","$cookies","toasty","msNavigationService","Auth","socket","api","license","setting","$interval","privacyManager"];const Dn=kn;function xn(e){e.addPart("app/toolbar")}function Mn(e,t,n,a,r,i,s,l){const c=this;function u(e){s.isSupported()?s.requestPermission().then((function(){!function(e){const n={autoClose:!0,duration:10,showOnPageHidden:!0,icon:"api/users/"+e.FromId+"/avatar",body:e.body||"",focusOnclick:!0,closeOnClick:!0};s.show(t.instant("QUICKPANEL.NEW_INTERNAL_MESSAGE"),n)}(e)}),(function(e){console.error("Please enable browser notifications!",e)})):console.error("Browser notifications are not supported by the browser. Normal notifications will be used.")}c.date=o()().format(),c.currentUser=a.getCurrentUser(),c.license=l,c.unreadTotalMessages=0,c.unreadTotalGroupMessages=0,c.userIsNotPhonebar=function(){return"admin"===c.currentUser.role||"user"===c.currentUser.role||"agent"===c.currentUser.role&&0!==c.currentUser.showWebBar},c.onMessageSave=function(e){e.ToId===c.currentUser.id&&e.FromId!==c.currentUser.id&&!e.read&&e.ChatGroupId&&(c.unreadTotalGroupMessages++,u(e));e.ToId!==c.currentUser.id||e.ChatGroupId||(c.unreadTotalMessages+=1,u(e))},c.onMessageUpdate=function(e){e.ToId===c.currentUser.id&&e.read&&c.unreadTotalMessages>0&&!e.ChatGroupId&&(c.unreadTotalMessages-=1);e.ToId==c.currentUser.id&&e.FromId!==c.currentUser.id&&e.ChatGroupId&&e.read&&c.unreadTotalGroupMessages>0&&c.unreadTotalGroupMessages--},r.on("chatInternalMessage:save",c.onMessageSave),r.on("chatInternalMessage:update",c.onMessageUpdate),i.chatInternalMessage.get({fields:"FromId",ToId:c.currentUser.id,read:!1,nolimit:!0,ChatGroupId:"null"}).$promise.then((function(e){return e&&e.count&&(c.unreadTotalMessages=e.count),i.user.getGroups({id:c.currentUser.id}).$promise})).then((function(e){const t=[],a=e.rows;for(let e=0;e<a.length;e++)t.push(i.chatGroup.getUnread({id:a[e].id}).$promise);return n.all(t)})).then((function(e){for(let t=0;t<e.length;t++)c.unreadTotalGroupMessages+=e[t].count})).catch((function(e){console.error(e)})),e.$on("$destroy",(function(){r.removeAllListeners("chatInternalMessage:save"),r.removeAllListeners("chatInternalMessage:update")}))}xn.$inject=["$translatePartialLoaderProvider"],angular.module("app.toolbar",[]).config(xn).controller("ChangePasswordController",wn).controller("PreviewDialogController",Cn).controller("ToolbarController",Dn),Mn.$inject=["$scope","$translate","$q","Auth","socket","api","desktopNotification","license"];const Pn=Mn;function On(e,t,n,a,r,i,s,l,c,d,f,m){const p=this;function g(e){const t=angular.element("#chat-dialog");a((function(){t.animate({scrollTop:t[0].scrollHeight},e)}),0)}function h(e){return u().isNil(e)?"":e.replace(/[^\w.+#*-]+/g,"")}function _(e){return m.get(e).success((function(){t.success({title:"Successful call",msg:"Call properly handled!"})})).error((function(){t.error({title:"PhoneBar API Error",msg:d.instant("CONTACTMANAGER.ERRORS.PHONEBAR_API")})}))}p.baseUrl=n.baseUrl,p.currentUser=r.getCurrentUser(),p.user=void 0,p.users={count:0,rows:[]},p.standardDate=o()(0).format("YYYY-MM-DD HH:mm:ss"),p.unreadMessage={},p.replyMessage="",p.disabled=!1,p.init=function(e){p.license=e},p.toggleChat=function(e){if(e){if(!e.allowmessenger&&"agent"===e.role)return t.warning({title:d.instant("QUICKPANEL.WARNING"),msg:d.instant("QUICKPANEL.MESSENGER_DISABLED")}),void(p.user=void 0);p.user=e,p.replyMessage="",n.chatInternalMessage.get({sort:"createdAt",FromId:p.currentUser.id+","+e.id,ToId:p.currentUser.id+","+e.id,ChatGroupId:"null"}).$promise.then((function(e){if(e&&e.rows){p.user.messages=e;for(let e=0;e<p.user.messages.rows.length;e+=1)!1===p.user.messages.rows[e].read&&p.user.messages.rows[e].ToId===p.currentUser.id&&n.chatInternalMessage.update({id:p.user.messages.rows[e].id,read:!0})}})).finally((function(){g(0)}))}else p.user=void 0},p.reply=function(){if(p.disabled=!0,""===p.replyMessage)return void(p.disabled=!1);const e={FromId:p.currentUser.id,ToId:p.user.id,body:p.replyMessage,read:!1};p.replyMessage="",n.chatInternalMessage.save(e).$promise.then((function(e){p.user.messages.rows.push(e),p.user.lastMessageAt=e.createdAt,p.user.lastMessage=e,g(400)})).catch((function(){})).finally((function(){p.disabled=!1}))},p.onMessageSave=function(e){if(e.ToId===p.currentUser.id&&!e.ChatGroupId){p.user&&p.user.id===e.FromId?(p.user.messages.rows.push(e),g(0),n.chatInternalMessage.update({id:e.id,read:!0})):p.unreadMessage[e.FromId]=p.unreadMessage[e.FromId]?p.unreadMessage[e.FromId]+1:1;const t=u().find(p.users.rows,{id:e.FromId});t&&(t.lastMessageAt=e.createdAt,t.lastMessage=e)}},p.onMessageUpdate=function(e){if((e.FromId===p.currentUser.id||e.ToId===p.currentUser.id)&&!e.ChatGroupId){if(p.user){const t=u().find(p.user.messages.rows,{id:e.id});t&&u().merge(t,e)}const t=u().find(p.users.rows,{id:p.currentUser.id===e.FromId?e.ToId:e.FromId});t&&t.lastMessage&&u().merge(t.lastMessage,e),e.ToId===p.currentUser.id&&e.read&&p.unreadMessage[e.FromId]>0&&(p.unreadMessage[e.FromId]-=1)}},p.onUserUpdate=function(e){const t=u().find(p.users.rows,{id:e.id});t&&(u().isNil(e.online)||t.online===e.online||(t.online=e.online),u().isNil(e.allowmessenger)||t.allowmessenger===e.allowmessenger||(t.allowmessenger=e.allowmessenger))},p.webcall=function(e){f.$broadcast("webrtc::call",{target:h(e)})},p.call=function(e){return _("http://127.0.0.1:"+(p.user.phoneBarRemoteControlPort||"9888")+"/api/originate/"+h(e))},p.transfer=function(e){return _("http://127.0.0.1:"+(p.user.phoneBarRemoteControlPort||"9888")+"/api/transfer?number="+h(e))},i.on("chatInternalMessage:save",p.onMessageSave),i.on("chatInternalMessage:update",p.onMessageUpdate),i.on("user:update",p.onUserUpdate),s("quick-panel").onClose((function(){p.user=void 0})),n.chatInternalMessage.get({fields:"FromId",ToId:p.currentUser.id,read:!1,nolimit:!0,ChatGroupId:"null"}).$promise.then((function(e){p.unreadMessage=u().countBy(e.rows,"FromId")})).catch((function(){})),n.chatInternalMessage.getUsers().$promise.then((function(e){p.users=e})).catch((function(e){console.error(e)})),e.$on("$destroy",(function(){i.removeAllListeners("chatInternalMessage:save"),i.removeAllListeners("chatInternalMessage:update"),i.removeAllListeners("user:update")}))}On.$inject=["$scope","toasty","api","$timeout","Auth","socket","$mdSidenav","$q","$interval","$translate","$rootScope","$http"];const Rn=On;function Nn(e,t,n,a,o,r,i,s,l){const c=this;function d(e){a.hide(e)}c.errors=[],c.title="QUICKPANEL.EDIT_CHATGROUP",c.group=angular.copy(s),c.currentUser=i.getCurrentUser(),c.members=l,c.newChatGroup=!0,c.group||(c.group={write:!0,members:[]},c.title="QUICKPANEL.NEW_CHATGROUP"),c.saveChatGroup=function(){let e;return c.errors=[],r.chatGroup.save({name:c.group.name,write:c.group.write}).$promise.then((function(t){const n=u().map(c.group.members,"id");return n.unshift(c.currentUser.id),e=t,r.chatGroup.addMembers({id:e.id,ids:n}).$promise})).then((function(){o.success({title:"Group properly saved!",msg:e.name+" has been saved!"}),d(e)})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},c.closeDialog=d,c.querySearch=function(e){return e?c.members.rows.filter(function(e){const t=e.toLowerCase();return function(e){return-1!=e.name.toLowerCase().indexOf(t)}}(e)):[]}}Nn.$inject=["$scope","$state","$location","$mdDialog","toasty","api","Auth","group","members"];const Ln=Nn,$n=n.p+"templates/quick-panel/tabs/groups/create/dialog.html/dialog.html",Un=n.p+"templates/quick-panel/tabs/groups/info/dialog.html/dialog.html";function jn(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){delete d.group}function m(e){const t=angular.element("#chat-group-dialog");n((function(){t.animate({scrollTop:t[0].scrollHeight},e)}),0)}d.baseUrl=s.baseUrl,d.currentUser=i.getCurrentUser(),d.unreadGroupMessages={},d.groups={},d.participants,d.group,d.init=function(e){return d.license=e,s.user.getGroups({id:d.currentUser.id}).$promise.then((function(e){const t=[];for(let n=0;n<e.rows.length;n++)e.rows[n].unreadGroupMessages=0,d.groups[e.rows[n].id]=e.rows[n],t.push(s.chatGroup.getUnread({id:e.rows[n].id}).$promise);return r.all(t)})).then((function(e){for(let t=0;t<e.length;t++)d.groups[e[t].id].unreadGroupMessages+=e[t].count})).catch((function(e){console.error(e)}))},d.back=f,d.addGroup=function(e,n){a.show({controller:"CreateOrEditChatGroupDialogController",controllerAs:"vm",templateUrl:$n,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{group:e,me:d.currentUser,license:null,setting:null},resolve:{members:function(){return i.hasRole("admin")?s.user.get({role:"agent"}).$promise:s.userProfile.getResources({id:i.getCurrentUser().userProfileId,section:"Agents",role:"agent"}).$promise}}}).then((function(e){e&&(d.groups[e.id]=e)})).catch((function(e){e&&console.error(e.message)}))},d.deleteGroup=function(e,t){const n=a.confirm().title("Are you sure want to delete the selected group?").htmlContent("Group <b>"+e.name+"</b> will be deleted.").ariaLabel("delete Group").targetEvent(t).ok("OK").cancel("CANCEL");a.show(n).then((function(){return s.chatGroup.delete({id:e.id}).$promise})).then((function(){delete d.groups[e.id],c.success({title:"Group properly deleted!",msg:e.name+" has been deleted!"})})).catch((function(e){e&&c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatGroup.delete",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},d.groupsToArray=function(){return u().values(d.groups)},d.showMessageInfo=function(e,n){a.show({controller:"ShowMessageInfoDialogController",controllerAs:"vm",templateUrl:Un,parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0,locals:{message:n},resolve:{data:function(){const e={messages:[]};return s.chatInternalMessage.get({ChatInternalMessageId:n.id}).$promise.then((function(t){const a=[];e.messages=t.rows,e.messages.unshift(n);for(let t=0;t<e.messages.length;t++)a.push(s.user.get({id:e.messages[t].ToId,fields:"id,name,fullname,userpic"}).$promise);return r.all(a)})).then((function(t){return e.users=t,e})).catch((function(e){e&&console.error(e)}))}}}).then((function(){})).catch((function(e){e&&console.error(e.message)}))},d.toggleChat=function(e){d.group={id:e.id,write:e.write,messages:{}},s.chatGroup.getMembers({id:e.id,fields:"id,name,fullname"}).$promise.then((function(t){return d.group.membersByKeys=u().keyBy(t.rows,"id"),d.group.members=u().differenceBy(t.rows,[{id:d.currentUser.id}],"id"),d.participants=u().map(d.group.members,"fullname").join(", "),s.chatGroup.getMessages({id:e.id,nolimit:!0}).$promise})).then((function(e){const t=[];let n;for(let a=0;a<e.count;a++)e.rows[a].ToId===d.currentUser.id&&(n=e.rows[a],d.group.messages[n.id]=n,e.rows[a].ToId!=d.currentUser.id||e.rows[a].FromId===d.currentUser.id||n.read||t.push(s.chatInternalMessage.update({id:n.id,read:!0})));return r.all(t)})).then((function(){m(400)})).catch((function(e){console.error(e.message)}))},d.reply=function(){if(!d.replyMessage)return;const e={id:d.group.id,FromId:d.currentUser.id,ToId:d.currentUser.id,body:d.replyMessage,read:!0},t=[];d.replyMessage="",s.chatGroup.addMessage(e).$promise.then((function(n){e.read=!1,e.ChatInternalMessageId=n.id;for(let n=0;n<d.group.members.length;n++)d.group.members[n].id!==d.currentUser.id&&(e.ToId=d.group.members[n].id,t.push(s.chatGroup.addMessage(angular.copy(e)).$promise));return r.all(t)})).catch((function(e){console.log(e)}))},l.on("chatInternalMessage:save",(function(e){if(!d.group&&e.ToId===d.currentUser.id&&e.FromId!==d.currentUser.id&&!e.read&&e.ChatGroupId){const t=d.groups[e.ChatGroupId];if(!t)return s.chatGroup.get({id:e.ChatGroupId}).$promise.then((function(e){e.unreadGroupMessages=1,d.groups[e.id]=e}));t.unreadGroupMessages||(t.unreadGroupMessages=0),t.unreadGroupMessages++}d.group&&e.ChatGroupId===d.group.id&&e.ToId===d.currentUser.id&&s.chatInternalMessage.update({id:e.id,read:!0}).$promise.then((function(){!function(e){d.group.messages[e.id]=e,m(400)}(e)}))})),l.on("chatInternalMessage:update",(function(e){e.ToId==d.currentUser.id&&e.FromId!==d.currentUser.id&&e.ChatGroupId&&e.read&&(d.groups[e.ChatGroupId].unreadGroupMessages>0&&d.groups[e.ChatGroupId].unreadGroupMessages--,d.group.messages[e.id]&&(d.group.messages[e.id].read=!0))})),l.on("chatGroup:remove",(function(e){d.groups[e.id]&&delete d.groups[e.id]})),o("quick-panel").onClose(f),e.$on("$destroy",(function(){l.removeAllListeners("chatInternalMessage:save"),l.removeAllListeners("chatInternalMessage:update"),l.removeAllListeners("chatGroup:remove")}))}jn.$inject=["$scope","$document","$timeout","$mdDialog","$mdSidenav","$q","Auth","api","socket","toasty"];const Fn=jn;function qn(e,t,n){const a=this;a.baseUrl=t.baseUrl,a.data=n,a.title="QUICKPANEL.INFO",a.closeDialog=function(){e.hide()}}qn.$inject=["$mdDialog","api","data"];const Yn=qn;function Hn(e){e.addPart("app/quick-panel")}function Bn(e,t){const n=this;n.currentUser=e.getCurrentUser(),n.newsAlertHide=t.get("motion.newsAlertHide:"+n.currentUser.id)||!1,n.newsAlertOnClose=function(){t.put("motion.newsAlertHide:"+n.currentUser.id,!0)}}Hn.$inject=["$translatePartialLoaderProvider"],angular.module("app.quick-panel",[]).config(Hn).controller("QuickPanelController",Pn).controller("ChatInternalController",Rn).controller("CreateOrEditChatGroupDialogController",Ln).controller("ChatGroupController",Fn).controller("ShowMessageInfoDialogController",Yn),Bn.$inject=["Auth","$cookies"];const Gn=Bn;function Vn(e){e.addPart("app/header")}function Wn(e,t){const n=this;n.currentUser=e.getCurrentUser(),n.cookieAlertHide=t.get("motion.cookieAlertHide:"+n.currentUser.id)||!1,n.cookieAlertOnClose=function(){t.put("motion.cookieAlertHide:"+n.currentUser.id,!0)}}Vn.$inject=["$translatePartialLoaderProvider"],angular.module("app.header",[]).config(Vn).controller("HeaderController",Gn),Wn.$inject=["Auth","$cookies"];const Qn=Wn;function zn(e){e.addPart("app/footer")}zn.$inject=["$translatePartialLoaderProvider"],angular.module("app.footer",[]).config(zn).controller("FooterController",Qn);n("./node_modules/ng-csv/build/ng-csv.min.js"),n("./node_modules/angular-password/angular-password.js"),n("./node_modules/angular-material-data-table/index.js"),n("./node_modules/@flowjs/ng-flow/dist/ng-flow.js"),n("./node_modules/@xenialab/md-color-picker/dist/mdColorPicker.min.js"),n("./node_modules/angular-ckeditor-legacy/angular-ckeditor.js"),n("./node_modules/angular-legacy-sortablejs-maintained/angular-legacy-sortable.js"),n("./node_modules/@xenialab/md-pickers/dist/mdPickers.js"),n("./node_modules/angular-ui-bootstrap/index.js"),n("./node_modules/@xenialab/insight-surveys/dist/form-builder.js"),n("./node_modules/@xenialab/insight-surveys/dist/form-utils.js"),n("./node_modules/@xenialab/insight-surveys/dist/form-viewer.js"),n("./node_modules/@xenialab/insight-surveys/dist/form-builder-material-tpls.min.js"),n("./node_modules/@xenialab/insight-surveys/dist/form-viewer-material-tpls.min.js"),n("./node_modules/ngclipboard/dist/ngclipboard.js"),n("./node_modules/angular-cron-jobs/dist/angular-cron-jobs.min.js"),n("./node_modules/ng-embed/src/ng-embed.js"),n("./node_modules/angular-sortable-view/src/angular-sortable-view.js"),n("./node_modules/@xenialab/angular-material-form-builder/dist/angular-material-form-builder.min.js"),n("./node_modules/angular-material-expansion-panel/index.js"),n("./node_modules/angular-chart.js/dist/angular-chart.js"),n("./node_modules/angular-filter/index.js"),n("./node_modules/md-date-range-picker/dist/md-date-range-picker.js");const Kn=n.p+"templates/main/apps/dashboards/views/general/user/voice/user.general.voice.html/user.general.voice.html",Jn=n.p+"templates/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html/user.general.dialer.html",Xn=n.p+"templates/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat.html",Zn=n.p+"templates/main/apps/dashboards/views/general/user/mail/user.general.mail.html/user.general.mail.html",ea=n.p+"templates/main/apps/dashboards/views/general/user/sms/user.general.sms.html/user.general.sms.html",ta=n.p+"templates/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html/user.general.openchannel.html",na=n.p+"templates/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax.html",aa=n.p+"templates/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp.html";function oa(e,t,n,a){const r=this,i=[];function s(e,t){e.closed||e.UserId||!t||(r.inbound.waiting+=1),e.closed||!e.UserId||u().includes(i,e.id)||(r.inbound.talking+=1,i.push(e.id),!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),e.closed&&"abandoned"===e.disposition?(r.inbound.abandoned+=1,!t&&r.inbound.waiting&&(r.inbound.waiting-=1)):e.closed&&!e.UserId&&e.disposition?(r.inbound.unmanaged+=1,!t&&r.inbound.waiting&&(r.inbound.waiting-=1)):e.closed&&e.UserId&&(r.inbound.sumBillable+=o()(e.closedAt).diff(o()(e.read1stAt),r.config.unit),r.inbound.sumHoldTime+=o()(e.read1stAt).diff(o()(e.createdAt),r.config.unit),r.inbound.answered+=1,!t&&r.inbound.talking&&(r.inbound.talking-=1)),t&&(r.inbound.total+=1)}function l(){r.inbound.abandonRate=Math.round((r.inbound.abandoned+r.inbound.unmanaged)/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.answerRate=Math.round(r.inbound.answered/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.avgHoldTime=o().duration(Math.round(r.inbound.sumHoldTime/r.inbound.answered),r.config.unit).format(r.config.format,r.config),r.inbound.avgTalkTime=o().duration(Math.round(r.inbound.sumBillable/r.inbound.answered),r.config.unit).format(r.config.format,r.config)}function c(e){return!!u().some(r.chatWebsites,{id:u().toNumber(e.ChatWebsiteId)})}function d(e){const t=o()().utcOffset(0,!0).startOf("day"),n=o()().utcOffset(0,!0).endOf("day");return o()(e).utcOffset(0,!0).isBetween(t,n)}r.config={format:"hh:mm:ss",unit:"seconds",trim:!1},r.inbound={waiting:0,talking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0},r.chatWebsites=a?u().keyBy(a.rows?a.rows:[],"id"):{},r.onSaveChatInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!0),l())},r.onUpdateChatInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!1),l())},t.on("chatInteraction:save",r.onSaveChatInteraction),t.on("chatInteraction:update",r.onUpdateChatInteraction),function(){if(Object.keys(r.chatWebsites).length>0)for(let e=0;e<n.rows.length;e+=1)if(c(n.rows[e])){s(n.rows[e],!0),l()}}(),e.$on("$destroy",(function(){t.removeAllListeners("chatInteraction:save"),t.removeAllListeners("chatInteraction:update")}))}oa.$inject=["$scope","socket","chatInteractions","chatWebsites"];const ra=oa;function ia(e,t,n,a,o,r,i,s){const l=this;function c(){r({queues:l.outboundQueues,rpcQueues:l.rpcQueues}).then((function(e){l.inbound=e}))}function d(){i({rpcCampaigns:l.rpcCampaigns}).then((function(e){l.ivr=e}))}l.outboundQueues=a?u().keyBy(a.rows?a.rows:[],"id"):{},l.rpcQueues=o?u().keyBy(o.rows?o.rows:[],"id"):{},l.rpcCampaigns=s?u().keyBy(s.rows?s.rows:[],"id"):{},l.ivr={originated:0,limitCalls:0},l.inbound={waiting:0,talking:0,pTalking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0,outboundDropCallsDayCallersExit:0,outboundDropCallsDayTimeout:0},l.onSaveQueue=function(e){l.outboundQueues[e.id]&&l.rpcQueues[e.id]&&(l.rpcQueues[e.id]=e)},l.onSaveCampaign=function(e){l.rpcCampaigns[e.id]&&(l.rpcCampaigns[e.id]=e)},n.onWithoutApply("voice_queue:save",l.onSaveQueue),l.interval=t((function(){c(),d()}),999),n.onWithoutApply("campaign:save",l.onSaveCampaign),c(),d(),e.$on("$destroy",(function(){n.removeAllListeners("voice_queue:save"),n.removeAllListeners("campaign:save"),l.interval&&t.cancel(l.interval)}))}ia.$inject=["$scope","$interval","socket","outboundQueues","rpcQueues","initializeRealtimeQueue","initializeRealtimeCampaign","rpcCampaigns"];const sa=ia;function la(e,t,n,a){const r=this,i=[];function s(e,t){e.closed||e.UserId||!t||(r.inbound.waiting+=1),e.closed||!e.UserId||u().includes(i,e.id)||(r.inbound.talking+=1,i.push(e.id),!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),e.closed&&e.UserId&&(r.inbound.sumBillable+=o()(e.closedAt).diff(o()(e.read1stAt),r.config.unit),r.inbound.sumHoldTime+=o()(e.read1stAt).diff(o()(e.createdAt),r.config.unit),r.inbound.answered+=1,!t&&r.inbound.talking&&(r.inbound.talking-=1)),e.closed&&!e.UserId&&(r.inbound.unmanaged+=1,!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),t&&(r.inbound.total+=1)}function l(){r.inbound.abandonRate=Math.round((r.inbound.abandoned+r.inbound.unmanaged)/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.answerRate=Math.round(r.inbound.answered/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.avgHoldTime=o().duration(Math.round(r.inbound.sumHoldTime/r.inbound.answered),r.config.unit).format(r.config.format,r.config),r.inbound.avgTalkTime=o().duration(Math.round(r.inbound.sumBillable/r.inbound.answered),r.config.unit).format(r.config.format,r.config)}function c(e){return!!u().some(r.faxAccounts,{id:u().toNumber(e.FaxAccountId)})}function d(e){const t=o()().utcOffset(0,!0).startOf("day"),n=o()().utcOffset(0,!0).endOf("day");return o()(e).utcOffset(0,!0).isBetween(t,n)}r.config={format:"hh:mm:ss",unit:"seconds",trim:!1},r.inbound={waiting:0,talking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0},r.faxAccounts=a?u().keyBy(a.rows?a.rows:[],"id"):{},r.onSaveFaxInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!0),l())},r.onUpdateFaxInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!1),l())},t.on("faxInteraction:save",r.onSaveFaxInteraction),t.on("faxInteraction:update",r.onUpdateFaxInteraction),function(){if(Object.keys(r.faxAccounts).length>0)for(let e=0;e<n.rows.length;e+=1)if(c(n.rows[e])){s(n.rows[e],!0),l()}}(),e.$on("$destroy",(function(){t.removeAllListeners("faxInteraction:save"),t.removeAllListeners("faxInteraction:update")}))}la.$inject=["$scope","socket","faxInteractions","faxAccounts"];const ca=la;function ua(e,t,n,a){const r=this,i=[];function s(e,t){e.closed||e.UserId||!t||(r.inbound.waiting+=1),e.closed||!e.UserId||u().includes(i,e.id)||(r.inbound.talking+=1,i.push(e.id),!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),e.closed&&e.UserId&&(r.inbound.sumBillable+=o()(e.closedAt).diff(o()(e.read1stAt),r.config.unit),r.inbound.sumHoldTime+=o()(e.read1stAt).diff(o()(e.createdAt),r.config.unit),r.inbound.answered+=1,!t&&r.inbound.talking&&(r.inbound.talking-=1)),e.closed&&!e.UserId&&(r.inbound.unmanaged+=1,!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),t&&(r.inbound.total+=1)}function l(){r.inbound.abandonRate=Math.round((r.inbound.abandoned+r.inbound.unmanaged)/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.answerRate=Math.round(r.inbound.answered/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.avgHoldTime=o().duration(Math.round(r.inbound.sumHoldTime/r.inbound.answered),r.config.unit).format(r.config.format,r.config),r.inbound.avgTalkTime=o().duration(Math.round(r.inbound.sumBillable/r.inbound.answered),r.config.unit).format(r.config.format,r.config)}function c(e){return!!u().some(r.mailAccounts,{id:u().toNumber(e.MailAccountId)})}function d(e){const t=o()().utcOffset(0,!0).startOf("day"),n=o()().utcOffset(0,!0).endOf("day");return o()(e).utcOffset(0,!0).isBetween(t,n)}r.config={format:"hh:mm:ss",unit:"seconds",trim:!1},r.inbound={waiting:0,talking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0},r.mailAccounts=a?u().keyBy(a.rows?a.rows:[],"id"):{},r.onSaveMailInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!0),l())},r.onUpdateMailInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!1),l())},t.on("mailInteraction:save",r.onSaveMailInteraction),t.on("mailInteraction:update",r.onUpdateMailInteraction),function(){if(Object.keys(r.mailAccounts).length>0)for(let e=0;e<n.rows.length;e+=1)if(c(n.rows[e])){s(n.rows[e],!0),l()}}(),e.$on("$destroy",(function(){t.removeAllListeners("mailInteraction:save"),t.removeAllListeners("mailInteraction:update")}))}ua.$inject=["$scope","socket","mailInteractions","mailAccounts"];const da=ua;function fa(e,t,n,a){const r=this,i=[];function s(e,t){e.closed||e.UserId||!t||(r.inbound.waiting+=1),e.closed||!e.UserId||u().includes(i,e.id)||(r.inbound.talking+=1,i.push(e.id),!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),e.closed&&e.UserId&&(r.inbound.sumBillable+=o()(e.closedAt).diff(o()(e.read1stAt),r.config.unit),r.inbound.sumHoldTime+=o()(e.read1stAt).diff(o()(e.createdAt),r.config.unit),r.inbound.answered+=1,!t&&r.inbound.talking&&(r.inbound.talking-=1)),e.closed&&!e.UserId&&(r.inbound.unmanaged+=1,!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),t&&(r.inbound.total+=1)}function l(){r.inbound.abandonRate=Math.round((r.inbound.abandoned+r.inbound.unmanaged)/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.answerRate=Math.round(r.inbound.answered/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.avgHoldTime=o().duration(Math.round(r.inbound.sumHoldTime/r.inbound.answered),r.config.unit).format(r.config.format,r.config),r.inbound.avgTalkTime=o().duration(Math.round(r.inbound.sumBillable/r.inbound.answered),r.config.unit).format(r.config.format,r.config)}function c(e){return!!u().some(r.openchannelAccounts,{id:u().toNumber(e.OpenchannelAccountId)})}function d(e){const t=o()().utcOffset(0,!0).startOf("day"),n=o()().utcOffset(0,!0).endOf("day");return o()(e).utcOffset(0,!0).isBetween(t,n)}r.config={format:"hh:mm:ss",unit:"seconds",trim:!1},r.inbound={waiting:0,talking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0},r.openchannelAccounts=a?u().keyBy(a.rows?a.rows:[],"id"):{},r.onSaveOpenchannelInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!0),l())},r.onUpdateOpenchannelInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!1),l())},t.on("openchannelInteraction:save",r.onSaveOpenchannelInteraction),t.on("openchannelInteraction:update",r.onUpdateOpenchannelInteraction),function(){if(Object.keys(r.openchannelAccounts).length>0)for(let e=0;e<n.rows.length;e+=1)if(c(n.rows[e])){s(n.rows[e],!0),l()}}(),e.$on("$destroy",(function(){t.removeAllListeners("openchannelInteraction:save"),t.removeAllListeners("openchannelInteraction:update")}))}fa.$inject=["$scope","socket","openchannelInteractions","openchannelAccounts"];const ma=fa;function pa(e,t,n,a){const r=this,i=[];function s(e,t){e.closed||e.UserId||!t||(r.inbound.waiting+=1),e.closed||!e.UserId||u().includes(i,e.id)||(r.inbound.talking+=1,i.push(e.id),!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),e.closed&&e.UserId&&(r.inbound.sumBillable+=o()(e.closedAt).diff(o()(e.read1stAt),r.config.unit),r.inbound.sumHoldTime+=o()(e.read1stAt).diff(o()(e.createdAt),r.config.unit),r.inbound.answered+=1,!t&&r.inbound.talking&&(r.inbound.talking-=1)),e.closed&&!e.UserId&&(r.inbound.unmanaged+=1,!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),t&&(r.inbound.total+=1)}function l(){r.inbound.abandonRate=Math.round((r.inbound.abandoned+r.inbound.unmanaged)/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.answerRate=Math.round(r.inbound.answered/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.avgHoldTime=o().duration(Math.round(r.inbound.sumHoldTime/r.inbound.answered),r.config.unit).format(r.config.format,r.config),r.inbound.avgTalkTime=o().duration(Math.round(r.inbound.sumBillable/r.inbound.answered),r.config.unit).format(r.config.format,r.config)}function c(e){return!!u().some(r.smsAccounts,{id:u().toNumber(e.SmsAccountId)})}function d(e){const t=o()().utcOffset(0,!0).startOf("day"),n=o()().utcOffset(0,!0).endOf("day");return o()(e).utcOffset(0,!0).isBetween(t,n)}r.config={format:"hh:mm:ss",unit:"seconds",trim:!1},r.inbound={waiting:0,talking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0},r.smsAccounts=a?u().keyBy(a.rows?a.rows:[],"id"):{},r.onSaveSmsInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!0),l())},r.onUpdateSmsInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!1),l())},t.on("smsInteraction:save",r.onSaveSmsInteraction),t.on("smsInteraction:update",r.onUpdateSmsInteraction),function(){if(Object.keys(r.smsAccounts).length>0)for(let e=0;e<n.rows.length;e+=1)if(c(n.rows[e])){s(n.rows[e],!0),l()}}(),e.$on("$destroy",(function(){t.removeAllListeners("smsInteraction:save"),t.removeAllListeners("smsInteraction:update")}))}pa.$inject=["$scope","socket","smsInteractions","smsAccounts"];const ga=pa;function ha(e){const t=[],n=function(){const e=t[0],a={waiting:0,talking:0,pTalking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0,originated:0,outboundDropCallsDayCallersExit:0,outboundDropCallsDayTimeout:0};u().forIn(e.queues,(function(t,n){e.rpcQueues[n]&&(a.waiting+=e.rpcQueues[n].waiting||0,a.talking+=(e.rpcQueues[n].talking||0)+(e.rpcQueues[n].pTalking||0),a.answered+=e.rpcQueues[n].answered||0,a.abandoned+=e.rpcQueues[n].abandoned||0,a.sumHoldTime+=e.rpcQueues[n].sumHoldTime||0,a.sumBillable+=e.rpcQueues[n].sumBillable||0,a.total+=e.rpcQueues[n].total||0,a.originated+=e.rpcQueues[n].originated||0,a.outboundDropCallsDayCallersExit+=e.rpcQueues[n].outboundDropCallsDayCallersExit||0,a.outboundDropCallsDayTimeout+=e.rpcQueues[n].outboundDropCallsDayTimeout||0)}));const o=a.total-a.answered-a.abandoned;a.unmanaged=o>0?o:0,a.avgHoldTime=Math.round(a.total>0?a.sumHoldTime/a.total:0),a.avgHoldTime=new Date(1e3*a.avgHoldTime).toISOString().substr(11,8),a.avgTalkTime=Math.round(a.answered>0?a.sumBillable/a.answered:0),a.avgTalkTime=new Date(1e3*a.avgTalkTime).toISOString().substr(11,8),a.answerRate=Math.round((a.total>0?a.answered/a.total*100:0)*Math.pow(10,1))/Math.pow(10,1),a.abandonRate=Math.round((a.total>0?a.abandoned/a.total*100:0)*Math.pow(10,1))/Math.pow(10,1),a.outboundDropRate=Math.round((a.total>0?a.outboundDropCallsDayTimeout/a.total*100:0)*Math.pow(10,1))/Math.pow(10,1),a.outboundAbandonRate=Math.round((a.total>0?a.outboundDropCallsDayCallersExit/a.total*100:0)*Math.pow(10,1))/Math.pow(10,1),a.outboundanswerRate=100-a.outboundDropRate-a.outboundAbandonRate>0&&a.total?100-a.outboundDropRate-a.outboundAbandonRate:0,t.shift(),e.defer.resolve(a),t.length>0&&n()};return function(a){const o=e.defer();return t.push({queues:a.queues,rpcQueues:a.rpcQueues,defer:o}),1===t.length&&n(),o.promise}}function _a(e){const t=[],n=function(){const e=t[0],a={originated:0,limitCalls:0};u().forIn(e.rpcCampaigns,(function(t,n){e.rpcCampaigns[n]&&(a.originated+=e.rpcCampaigns[n].originated||0,a.limitCalls+=e.rpcCampaigns[n].limitCalls||0)})),t.shift(),e.defer.resolve(a),t.length>0&&n()};return function(a){const o=e.defer();return t.push({rpcCampaigns:a.rpcCampaigns,defer:o}),1===t.length&&n(),o.promise}}function ba(e,t,n){const a=this;a.license=n,a.onInit=function(){if(a.hasDashboardPermissions=!t.hasRole("user")||t.hasPermission(101),a.hasDashboardPermissions){switch(e.current.name){case"app.dashboards.general":!function(){const t=[];a.license.voice&&t.push("app.dashboards.general.voice"),a.license.dialer&&t.push("app.dashboards.general.dialer"),a.license.chat&&t.push("app.dashboards.general.chat"),a.license.mail&&t.push("app.dashboards.general.mail"),a.license.messaging&&t.push("app.dashboards.general.sms"),a.license.openchannel&&t.push("app.dashboards.general.openchannel"),a.license.fax&&t.push("app.dashboards.general.fax"),a.license.whatsapp&&t.push("app.dashboards.general.whatsapp"),t.length>0&&e.go(u().first(t))}();break;case"app.dashboards.general.voice":a.selectedTab=0;break;case"app.dashboards.general.dialer":a.selectedTab=1;break;case"app.dashboards.general.chat":a.selectedTab=2;break;case"app.dashboards.general.mail":a.selectedTab=3;break;case"app.dashboards.general.sms":a.selectedTab=4;break;case"app.dashboards.general.openchannel":a.selectedTab=5;break;case"app.dashboards.general.fax":a.selectedTab=6;break;case"app.dashboards.general.whatsapp":a.selectedTab=7}}}}function ya(e,t,n,a,o,r){const i=this;function s(){r({queues:i.inboundQueues,rpcQueues:i.rpcQueues}).then((function(e){i.inbound=e}))}i.inboundQueues=n?u().keyBy(n.rows?n.rows:[],"id"):{},i.rpcQueues=a?u().keyBy(a.rows?a.rows:[],"id"):{},i.inbound={waiting:0,talking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0},i.outbound=o||{answered:0,sumBillable:0,sumDuration:0,sumHoldTime:0,total:0},i.onSaveQueue=function(e){i.inboundQueues[e.id]&&i.rpcQueues[e.id]&&(i.rpcQueues[e.id]=e,s())},i.onSaveOutbound=function(e){i.outbound=e},t.on("voice_queue:save",i.onSaveQueue),t.on("voice_outbound:save",i.onSaveOutbound),s(),e.$on("$destroy",(function(){t.removeAllListeners("voice_queue:save"),t.removeAllListeners("voice_outbound:save")}))}ba.$inject=["$state","Auth","license"],_a.$inject=["$q"],ha.$inject=["$q"],ya.$inject=["$scope","socket","inboundQueues","rpcQueues","outbound","initializeRealtimeQueue"];const va=ya;function Aa(e,t,n,a){const r=this,i=[];function s(e,t){e.closed||e.UserId||!t||(r.inbound.waiting+=1),e.closed||!e.UserId||u().includes(i,e.id)||(r.inbound.talking+=1,i.push(e.id),!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),e.closed&&e.UserId&&(r.inbound.sumBillable+=o()(e.closedAt).diff(o()(e.read1stAt),r.config.unit),r.inbound.sumHoldTime+=o()(e.read1stAt).diff(o()(e.createdAt),r.config.unit),r.inbound.answered+=1,!t&&r.inbound.talking&&(r.inbound.talking-=1)),e.closed&&!e.UserId&&(r.inbound.unmanaged+=1,!t&&r.inbound.waiting&&(r.inbound.waiting-=1)),t&&(r.inbound.total+=1)}function l(){r.inbound.abandonRate=Math.round((r.inbound.abandoned+r.inbound.unmanaged)/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.answerRate=Math.round(r.inbound.answered/(r.inbound.total-r.inbound.talking-r.inbound.waiting)*100,-2),r.inbound.avgHoldTime=o().duration(Math.round(r.inbound.sumHoldTime/r.inbound.answered),r.config.unit).format(r.config.format,r.config),r.inbound.avgTalkTime=o().duration(Math.round(r.inbound.sumBillable/r.inbound.answered),r.config.unit).format(r.config.format,r.config)}function c(e){return!!u().some(r.whatsappAccounts,{id:u().toNumber(e.WhatsappAccountId)})}function d(e){const t=o()().utcOffset(0,!0).startOf("day"),n=o()().utcOffset(0,!0).endOf("day");return o()(e).utcOffset(0,!0).isBetween(t,n)}r.config={format:"hh:mm:ss",unit:"seconds",trim:!1},r.inbound={waiting:0,talking:0,answered:0,abandoned:0,unmanaged:0,sumHoldTime:0,sumBillable:0,total:0,avgHoldTime:"00:00:00",avgTalkTime:"00:00:00",answerRate:0,abandonRate:0},r.whatsappAccounts=a?u().keyBy(a.rows?a.rows:[],"id"):{},r.onSaveWhatsappInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!0),l())},r.onUpdateWhatsappInteraction=function(e){c(e)&&d(e.createdAt)&&(s(e,!1),l())},t.on("whatsappInteraction:save",r.onSaveWhatsappInteraction),t.on("whatsappInteraction:update",r.onUpdateWhatsappInteraction),function(){if(Object.keys(r.whatsappAccounts).length>0)for(let e=0;e<n.rows.length;e+=1)if(c(n.rows[e])){s(n.rows[e],!0),l()}}(),e.$on("$destroy",(function(){t.removeAllListeners("whatsappInteraction:save"),t.removeAllListeners("whatsappInteraction:update")}))}Aa.$inject=["$scope","socket","whatsappInteractions","whatsappAccounts"];const Sa=Aa;function wa(e){e.state("app.dashboards.general.voice",{url:"/voice",data:{selectedTab:0},views:{voice:{templateUrl:Kn,controller:"UserVoiceDashboardGeneralController as vm"}},resolve:{rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueues")}],inboundQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{fields:"id,name",type:"inbound",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",fields:"id,name",type:"inbound",channel:"voice",nolimit:!0})}],outbound:["apiResolver",function(e){return e.resolve("rpc@getOutbound")}]},authenticate:!0,bodyClass:"dashboards"}).state("app.dashboards.general.dialer",{url:"/dialer",data:{selectedTab:1},views:{dialer:{templateUrl:Jn,controller:"UserVoiceDashboardDialerController as vm"}},resolve:{rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueues")}],outboundQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{fields:"id,name",type:"outbound",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"QueueCampaigns",fields:"id,name",type:"outbound",channel:"voice",nolimit:!0})}],rpcCampaigns:["apiResolver",function(e){return e.resolve("rpc@getCampaigns")}]},authenticate:!0,bodyClass:"dashboards"}).state("app.dashboards.general.chat",{url:"/chat",data:{selectedTab:2},views:{chat:{templateUrl:Xn,controller:"UserChatDashboardGeneralController as vm"}},resolve:{chatInteractions:["apiResolver",function(e){return e.resolve("chatInteraction@get",{createdAt:{$gte:o()().startOf("day").utcOffset(0,!0).format(),$lte:o()().endOf("day").utcOffset(0,!0).format()},nolimit:!0})}],chatWebsites:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("chatWebsite@get",{fields:"createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,header_offline,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardTranscript,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ChatWebsites",fields:"createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,header_offline,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardTranscript,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0})}]},authenticate:!0,bodyClass:"dashboards"}).state("app.dashboards.general.mail",{url:"/mail",data:{selectedTab:3},views:{mail:{templateUrl:Zn,controller:"UserMailDashboardGeneralController as vm"}},resolve:{mailInteractions:["apiResolver",function(e){return e.resolve("mailInteraction@get",{createdAt:{$gte:o()().startOf("day").utcOffset(0,!0).format(),$lte:o()().endOf("day").utcOffset(0,!0).format()},nolimit:!0})}],mailAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("mailAccount@get",{fields:"createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"MailAccounts",fields:"createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0})}]},authenticate:!0,bodyClass:"dashboards"}).state("app.dashboards.general.sms",{url:"/sms",data:{selectedTab:4},views:{sms:{templateUrl:ea,controller:"UserSmsDashboardGeneralController as vm"}},resolve:{smsInteractions:["apiResolver",function(e){return e.resolve("smsInteraction@get",{createdAt:{$gte:o()().startOf("day").utcOffset(0,!0).format(),$lte:o()().endOf("day").utcOffset(0,!0).format()},nolimit:!0})}],smsAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("smsAccount@get",{fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,smsMethod,applicationId,accountId,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SmsAccounts",fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,smsMethod,applicationId,accountId,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0})}]},authenticate:!0,bodyClass:"dashboards"}).state("app.dashboards.general.openchannel",{url:"/openchannel",data:{selectedTab:5},views:{openchannel:{templateUrl:ta,controller:"UserOpenchannelDashboardGeneralController as vm"}},resolve:{openchannelInteractions:["apiResolver",function(e){return e.resolve("openchannelInteraction@get",{createdAt:{$gte:o()().startOf("day").utcOffset(0,!0).format(),$lte:o()().endOf("day").utcOffset(0,!0).format()},nolimit:!0})}],openchannelAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("openchannelAccount@get",{fields:"createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"OpenchannelAccounts",fields:"createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",nolimit:!0})}]},authenticate:!0,bodyClass:"dashboards"}).state("app.dashboards.general.fax",{url:"/fax",data:{selectedTab:6},views:{fax:{templateUrl:na,controller:"UserFaxDashboardGeneralController as vm"}},resolve:{faxInteractions:["apiResolver",function(e){return e.resolve("faxInteraction@get",{createdAt:{$gte:o()().startOf("day").utcOffset(0,!0).format(),$lte:o()().endOf("day").utcOffset(0,!0).format()},nolimit:!0})}],faxAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("faxAccount@get",{fields:"createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"FaxAccounts",fields:"createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0})}]},authenticate:!0,bodyClass:"dashboards"}).state("app.dashboards.general.whatsapp",{url:"/whatsapp",data:{selectedTab:7},views:{whatsapp:{templateUrl:aa,controller:"UserWhatsappDashboardGeneralController as vm"}},resolve:{whatsappInteractions:["apiResolver",function(e){return e.resolve("whatsappInteraction@get",{createdAt:{$gte:o()().startOf("day").utcOffset(0,!0).format(),$lte:o()().endOf("day").utcOffset(0,!0).format()},nolimit:!0})}],whatsappAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("whatsappAccount@get",{fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,whatsappMethod,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"WhatsappAccounts",fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,whatsappMethod,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate",sort:"-updatedAt",limit:10,offset:0})}]},authenticate:!0,bodyClass:"dashboards"})}wa.$inject=["$stateProvider"],angular.module("app.dashboards.general.user",[]).config(wa).controller("UserChatDashboardGeneralController",ra).controller("UserVoiceDashboardDialerController",sa).controller("UserFaxDashboardGeneralController",ca).controller("UserMailDashboardGeneralController",da).controller("UserOpenchannelDashboardGeneralController",ma).controller("UserSmsDashboardGeneralController",ga).filter("secToTime",(function(){return function(e){return new Date(1e3*e).toISOString().substr(11,8)}})).factory("initializeRealtimeQueue",ha).factory("initializeRealtimeCampaign",_a).controller("UserDashboardGeneralController",ba).controller("UserVoiceDashboardGeneralController",va).controller("UserWhatsappDashboardGeneralController",Sa);const Ea=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html/dialog.html",Ca=n.p+"templates/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog.html",Ta=n.p+"0b5bc4ae274b9d24cb4956576ef7c542.png";var Ia=n("./node_modules/mustache/mustache.js"),ka=n.n(Ia);function Da(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this;function A(e){const t={};for(const e in v.tabs)void 0!==v.tabs[e]&&(t[e]=u().pick(v.tabs[e],["type","title","channel","icon","color","autoCreate","id","saved","badges","openedAt"]),u().isNil(v.tabs[e].contact)||(t[e].contact=u().pick(v.tabs[e].contact,["id","ListId"])),u().isNil(v.tabs[e].calls)||(t[e].calls=v.tabs[e].calls),v.tabs[e].interaction&&(t[e].interaction=u().pick(v.tabs[e].interaction,["id","OpenchannelAccountId","MailAccountId","ChatWebsiteId","FaxAccountId","SmsAccountId","WhatsappAccountId","closed","draft"])));let a=JSON.parse(n.localStorage.getItem("motion2.user:"+v.user.id));a?(a.tabs=t,a.currentTab=v.currentTab,a.autoClose=v.autoClose):a={tabs:t,currentTab:v.currentTab,autoClose:v.autoClose},n.localStorage.setItem("motion2.user:"+v.user.id,JSON.stringify(a)),e&&S(e)}function S(e){if(u().isNil(e)||e&&"interaction"===e.type){const e={id:v.user.id,online:!0,capacity:{mail:0,fax:0,sms:0,whatsapp:0,openchannel:0,chat:0},interaction:{mail:[],fax:[],sms:[],whatsapp:[],openchannel:[],chat:[]}};for(const t in v.tabs)void 0!==v.tabs[t]&&void 0!==e.capacity[v.tabs[t].channel]&&v.tabs[t].interaction&&!v.tabs[t].interaction.closed&&(e.capacity[v.tabs[t].channel]+=1,e.interaction[v.tabs[t].channel].push(v.tabs[t].interaction.id));if(!u().isEqual(v.agentCapacity,e.capacity))return v.agentCapacity=e.capacity,s.rpc.setAgentCapacity(e)}}function w(e){v.tabs[e.id]&&(!function(e){if(e.channel&&e.interaction)s.user["remove"+u().upperFirst(e.channel)+"Interactions"]({id:v.user.id,ids:[e.interaction.id]}).$promise.catch((function(e){console.error(e)}))}(v.tabs[e.id]),delete v.tabs[e.id],v.currentTab=0,A(e))}function E(e){e.id=u().random(1e10),e.openedAt=(new Date).toISOString(),e.saved=!1,e.badges=0,v.tabs[e.id]=e,v.currentTab=e.id,A(e)}function C(e){return u().find(v.tabs,(function(t){return"interaction"===t.type&&t.interaction&&t.interaction.id===e.interactionId&&t.channel===e.channel}))}function T(e){let t="";return e&&(e.firstName||e.lastName?(e.firstName&&(t+=e.firstName+" "),e.lastName&&(t+=e.lastName)):e.phone&&(t=e.phone)),t=v.user.privacyEnabled?y.mask(t):t,t}function I(e){switch(e){case"chat":return"icon-hangouts";case"mail":return"icon-email";case"sms":return"icon-message-text";case"openchannel":return"icon-google-earth";case"fax":return"icon-deskphone";case"whatsapp":return"icon-whatsapp";default:return"icon-hangouts"}}function k(e){switch(e){case"chat":return"green-A700";case"mail":return"teal";case"sms":return"orange";case"openchannel":return"amber-A200";case"fax":return"blue-grey-A200";case"whatsapp":return"lime-A700";default:return"grey"}}function D(e,t){const n={type:"contact",title:e?T(e):a.instant("APP.NEW_CONTACT"),icon:"icon-account-circle",color:"red",contact:e,calls:t?[t]:[],autoCreate:t?t.autoCreate:0};if(t&&(t.answertime||(t.answertime=t.agentconnectAt),(t.agentcompleteAt||t.endtime)&&R(t)),e){const a=u().find(v.tabs,(function(t){return t.contact&&t.contact.id?"contact"===t.type&&t.contact&&t.contact.id===e.id:"contact"===t.type&&t.contact&&t.contact.phone===e.phone}));if(a){if(t)return s.voiceCallReport.get({uniqueid:t.uniqueid}).$promise.then((function(e){if(e&&e.rows.length>0&&(t.disposedAt=u().first(e.rows).endtime),a.calls){u().find(a.calls,(function(e){return e.uniqueid===t.uniqueid}))||a.calls.push(t)}else a.calls=[t];v.currentTab=a.id}))}else{if(e.ListId)return s.disposition.get({ListId:e.ListId,nolimit:!0}).$promise.then((function(t){return n.dispositions=t,s.cmList.getCustomFields({id:e.ListId,nolimit:!0}).$promise})).then((function(e){n.customFields=e})).catch(N()).finally((function(){E(n)}));E(n)}}else E(n)}function x(e,t){let n=u().find(v.tabs,(function(n){return"interaction"===n.type&&n.interaction&&n.interaction.id===t.id&&n.channel===e}));n?(n.isDraft=t.isDraft||!1,v.currentTab=n.id):(n={type:"interaction",title:e?e.toUpperCase():"openchannel",icon:I(e),color:k(e),channel:e,interaction:t,isDraft:t.isDraft||!1},E(n))}function M(e){e&&e.uniqueid&&v.notifications[e.uniqueid]&&(c.clear(v.notifications[e.uniqueid]),delete v.notifications[e.uniqueid])}function P(e){let t=e.uniqueid;console.debug("onVoiceChannelRemove -> evt",e);for(const n in v.tabs)if(void 0!==v.tabs[n]){const a=v.tabs[n];if(a.calls){console.debug("onVoiceChannelRemove ->  key, tab, tab.calls",n,a,a.calls);let o=u().findIndex(a.calls,(function(e){return e.uniqueid===t}));o<0&&(o=u().findIndex(a.calls,(function(t){return t.uniqueid===e.linkedid})),o>=0&&(t=e.linkedid)),o>=0&&!a.calls[o].disposedAt?(console.debug("Allowing disposition for call %s",a.calls[o].uniqueid),R(a.calls[o])):console.debug("Call %s not found or already completed",a.calls[o].uniqueid),a.contact&&a.contact.id&&r(O(t,a.contact.id,a),1e3)}}A()}function O(e,t,n){return function(){if(u().find(n.calls,(function(t){return t.uniqueid===e})))return s.voiceCallReport.update({id:e,ContactId:t}).$promise.catch((function(e){console.error(e)}))}}function R(e){e.disposedAt=new Date}function N(){return function(e){if(404===e.status)c.warning({title:a.instant("DASHBOARDS.ATTENTION"),msg:a.instant("DASHBOARDS.ACCEPT_ELSEWHERE")});else if(e.data&&e.data.errors&&e.data.errors.length){v.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelMessage.accept"}];for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelMessage.accept",msg:e.data?JSON.stringify(e.data.message):e.toString()})}}v.license=g,v.setting=h,v.detectBrowser=b.detectBrowser(),v.user=i.getCurrentUser(),v.currentTab=0,v.notifications={},v.tabs={},v.agentCapacity={},v.autoClose=!1,v.globalUserLists=d||{count:0,rows:[]},v.globalLists=f||{count:0,rows:[]},v.globalCompanies=m||{count:0,rows:[]},v.globalTags=p||{count:0,rows:[]},v.onClickTab=function(e){v.currentTab=e,A(v.tabs[e])},v.isActiveTab=function(e){return e===v.currentTab},v.alreadyExistsTab=C,v.addContactTab=D,v.addInteractionTab=x,v.addTab=E,v.removeTab=w,v.updateLocalStorage=A,v.closeTab=function(e){let n=!1;const a=t.confirm().title("interaction"===e.type?"Do you want to close the interaction?":"Are you sure want to close the "+e.type+"?").textContent("interaction"===e.type?"":"The "+e.type+" has been modified. Closing will lose all changes!").ariaLabel("Close Contact").ok("interaction"===e.type?"YES":"OK").cancel("interaction"===e.type?"NO":"CANCEL");if(!e.saved){const r=v.user.voicePause||v.user.chatPause||v.user.mailPause||v.user.openchannelPause||v.user.faxPause;return n=!1,"interaction"===e.type&&(n=e.interaction.Account.mandatoryDisposition),t.show(a).then((function(){"interaction"===e.type&&t.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(o.body),onRemoving:function(){v.user&&n&&!r&&s.user.unpause({id:v.user.id}).$promise.catch((function(e){console.error(e)}))},clickOutsideToClose:!n,escapeToClose:!n,locals:{user:v.user,channel:e.channel,interaction:e.interaction}}),w(e)})).catch((function(){"interaction"===e.type&&w(e)}))}{let n=!1;if(u().forEach(e.calls,(function(e){e.mandatoryDisposition&&(n=!0)})),"contact"===e.type&&e.calls.length>0){let o;if(!n)return a._options.textContent="There is a call that hasn't been disposed yet.",t.show(a).then((function(){w(e)}));o=t.alert().title("Warning").textContent("There is a call that hasn't been disposed yet.").ok("OK"),t.show(o).finally((function(){o=void 0}))}else w(e)}},l.on("trigger:contactmanager",(function(e){if(!u().isNil(e.contacts)&&1===e.contacts.length)return void D(e.contact,e.evt);t.show({controller:"ContactSelectionController",controllerAs:"vm",templateUrl:Ca,parent:angular.element(o.body),locals:{contacts:e.contacts,callNumber:e.evt.routeId?e.evt.destcalleridnum:e.evt.calleridnum}}).then((function(t){D(t,e.evt)}))})),l.on("trigger:jscripty",(function(e){return s.jscriptyProject.get({id:e.ProjectId}).$promise.then((function(t){if(t){if(!u().isUndefined(e["xmd-contactid"]))return s.cmContact.get({id:e["xmd-contactid"]}).$promise.then((function(n){try{t.formData=ka().render(t.formData,u().merge(e,{user:v.user,contact:n}))}catch(e){console.error(e)}E({type:"jscripty",title:t.name,icon:"icon-script",color:"grey",project:t,call:e,contact:n})})).catch(N());try{t.formData=ka().render(t.formData,u().merge(e,{user:v.user}))}catch(e){console.error(e)}E({type:"jscripty",title:t.name,icon:"icon-script",color:"grey",project:t,call:e})}})).catch(N())})),l.on("trigger:bot",(function(e){const t=e.calleridname&&"<unknown>"!==e.calleridname?e.calleridname:e.calleridnum,n=e.calleridnum;return s.squareMessage.get({fields:"id",limit:1,offset:0,uniqueid:e.uniqueid}).$promise.then((function(a){a.count&&E({type:"bot",title:t+" <"+n+">",icon:"fas fa-robot",color:"pink",data:{uniqueid:e.uniqueid}})}))})),l.on("trigger:browser:url",(function(e){if(e&&e.uri)if(e.uri=u().replace(e.uri,"&lt%3B",""),e.uri=u().replace(e.uri,"=&gt%3B=",""),e.uriLocation)switch(e.uriLocation){case"0":n.open(e.uri);break;case"1":n.open(e.uri,"_blank","width="+(e.windowWidth||"800")+",height="+e.windowHeight||0);break;case"2":E({type:"iframe",title:e.uri,icon:"icon-google-earth",color:"blue",src:e.uri});break;default:n.open(e.uri)}else n.open(e.uri)})),l.on("trigger:browser:popup",(function(e){e&&e.html&&E({type:"popup",title:e.calleridnum||"popup",icon:"icon-tablet",color:"grey",html:e.html})})),l.on("notification:save",(function(e){if(e&&e.uniqueid){!function(e){_.isSupported()?_.requestPermission().then((function(){!function(e){const t={autoClose:!0,duration:10,showOnPageHidden:!0,icon:Ta,body:e.queue?"Queue: "+e.queue:"",focusOnclick:!0,closeOnClick:!0};_.show(e.title,t)}(e)}),(function(e){console.error("Please enable browser notifications!",e)})):console.error("Browser notifications are not supported by the browser. Normal notifications will be used.")}(e);const t=C(e);if(t){if(s[e.channel+"Message"])return v.currentTab!==t.id&&(t.badges+=1),s[e.channel+"Message"].accept({id:e.id,UserId:v.user.id}).$promise.catch(N())}else c.wait({title:e.title,msg:e.msg||"",showClose:!1,clickToClose:!1,timeout:!1,sound:e.sound,html:!0,shake:e.shake||!1,onAdd:function(){v.notifications[e.uniqueid]=this.id},onAccept:function(){if(M(e),s[e.channel+"Message"])return s[e.channel+"Message"].accept({id:e.id,UserId:v.user.id,manual:!0}).$promise.then((function(e){x(e.channel,e.interaction),c.success({title:"Message properly accepted!",msg:"Message has been accepted!"})})).catch(N())},onReject:function(){if(M(e),s[e.channel+"Message"])return s[e.channel+"Message"].reject({id:e.id,UserId:v.user.id}).$promise.then((function(){c.success({title:"Message properly rejected!",msg:"Message has been rejected!"})})).catch(N())}})}})),l.on("notification:remove",M),l.on("voice_queue_channel:remove",P),l.on("voice_outbound_channel:remove",P),function(){let e=n.localStorage.getItem("motion2.user:"+v.user.id);if(e)try{e=JSON.parse(e),v.tabs=e.tabs?e.tabs:{},v.currentTab=e.currentTab?e.currentTab:0,v.autoClose=!!e.autoClose&&e.autoClose,S(v.tabs[v.currentTab])}catch(e){console.error(e)}}(),e.$on("$destroy",(function(){for(const e in v.notifications)void 0!==v.notifications[e]&&M({uniqueid:e});l.removeAllListeners("trigger:contactmanager"),l.removeAllListeners("trigger:jscripty"),l.removeAllListeners("trigger:browser:url"),l.removeAllListeners("trigger:browser:popup"),l.removeAllListeners("notification:save"),l.removeAllListeners("notification:remove"),l.removeAllListeners("voice_queue_channel:remove"),l.removeAllListeners("voice_outbound_channel:remove")}))}Da.$inject=["$scope","$mdDialog","$window","$translate","$document","$timeout","Auth","api","socket","toasty","globalUserLists","globalLists","globalCompanies","globalTags","license","setting","desktopNotification","msUtils","privacyManager"];const xa=Da;function Ma(e){const t=this;t.setting={},t.messages={count:0,rows:[]},t.showInteraction=!1,t.init=function(n,a){if(t.setting=a,t.tab=n,t.tab.saved=!0,t.tab&&t.tab.data&&t.tab.data.uniqueid)return e.squareMessage.get({uniqueid:t.tab.data.uniqueid}).$promise.then((function(e){t.messages=e})).finally((function(){t.showInteraction=!0}));t.showInteraction=!0},t.getMessagesAlignment=function(e){switch(t.setting.messagesAlignment){case"left":return"in"==e.direction?e.direction:"out-left-aligned";case"right":return"in"==e.direction?"in-right-aligned":e.direction;default:return e.direction}}}Ma.$inject=["api"];const Pa=Ma,Oa=n.p+"templates/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog.html",Ra=n.p+"templates/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog.html",Na=n.p+"templates/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html/dialog.html",La=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog.html",$a=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html",Ua=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html/dialog.html",ja=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html/dialog.html",Fa=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html/dialog.html";Ya.$inject=["$mdDialog","$document","$timeout","$scope","$q","api","toasty","Auth","$translate","msUtils","customerJourneyManager","$window","privacyManager"];const qa={fax:La,mail:$a,openchannel:Ua,sms:ja,whatsapp:Fa};function Ya(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){p.errors=[],r.cmContact.save(p.contact).$promise.then((function(e){p.contact.id=e.id,p.newContact=!1;const t=e.firstName||e.phone;return p.tab.title=p.user.privacyEnabled?m.mask(t):t,p.tab.contact=p.contact,r.user.addContacts({id:s.getCurrentUser().id,ids:[e.id]})})).then((function(){p.detailForm.$pristine=!0,p.customFieldsForm.$pristine=!0,i.success({title:"Contact properly created",msg:p.contact.firstName?p.contact.firstName+" has been created!":""})})).then((function(){return r.cmContact.setTags({id:p.contact.id,ids:p.tab.Tags}).$promise})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.contact.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.contact.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}function h(e){return function(t){p[e]=t||{count:0,rows:[]}}}function _(){p.contact&&p.contact.id&&(p.queryHopper.ContactId=p.contact.id,p.queryHopper.offset=(p.queryHopper.page-1)*p.queryHopper.limit,p.promise=r.cmHopper.get(p.queryHopper,h("hoppers")).$promise)}function b(){p.contact&&p.contact.id&&(p.queryFinal.ContactId=p.contact.id,p.queryFinal.offset=(p.queryFinal.page-1)*p.queryFinal.limit,p.promise=r.cmHopperFinal.get(p.queryFinal,h("finals")).$promise)}function y(){p.contact&&p.contact.id&&(p.queryHistory.ContactId=p.contact.id,p.queryHistory.offset=(p.queryHistory.page-1)*p.queryHistory.limit,p.promise=r.cmHopperHistory.get(p.queryHistory,h("histories")).$promise)}function v(e){p.journeyIsLoading=!0;const t=u().merge(p.journeyOptions,{id:p.contact.id,offset:e||0});return d.get(p.journey,t).then((function(e){p.journey=e.journey,p.canLoadMoreJourney=e.loadMore})).finally((function(){p.journeyIsLoading=!1}))}p.user=s.getCurrentUser(),p.detectBrowser=c.detectBrowser(),p.journey=[],p.queryHopper={fields:"id,phone,scheduledat",sort:"-updatedAt",limit:10,page:1},p.queryFinal={fields:"uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition",sort:"-updatedAt",limit:10,page:1},p.queryHistory={fields:"uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime",sort:"-updatedAt",limit:10,page:1},p.hoppers={rows:[],count:0},p.finals={rows:[],count:0},p.histories={rows:[],count:0},p.journeyOptions=d.getQuery(),p.quickFilters=d.getQuickFilters(),p.addNewContact=g,p.saveContact=function(){p.errors=[],r.cmContact.update({id:p.contact.id},p.contact).$promise.then((function(e){const t=e.firstName||e.phone;return p.tab.title=p.user.privacyEnabled?m.mask(t):t,p.tab.contact=p.contact,a.$parent.vm.updateLocalStorage(),r.user.addContacts({id:s.getCurrentUser().id,ids:[e.id]})})).then((function(){return r.cmContact.setTags({id:p.contact.id,ids:p.tab.Tags}).$promise})).then((function(){p.detailForm.$pristine=!0,p.customFieldsForm.$pristine=!0,i.success({title:"Contact properly updated!",msg:p.contact.name?p.contact.name+" has been updated!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.contact.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.contact.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.getCustomFields=function(e){return r.cmList.getCustomFields({id:e}).$promise.then((function(e){p.tab.customFields=e})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"LIST:GETCustomFields",msg:e.data?JSON.stringify(e.data):e.toString()})}))},p.call=a.$parent.vm.call,p.disposeCall=function(n,o){if(p.newContact)return void i.error({title:"ATTENTION",msg:"Please save the contact before disposing!"});e.show({controller:"DisposeCallDialogController",controllerAs:"vm",templateUrl:Na,parent:angular.element(t.body),targetEvent:o,clickOutsideToClose:!o.mandatoryDisposition,escapeToClose:!o.mandatoryDisposition,resolve:{globalDispositions:["apiResolver",function(e){return e.resolve("disposition@get",{MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0})}]},onRemoving:function(){p.user&&o.mandatoryDisposition&&r.user.unpause({id:p.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{dispositions:p.tab.dispositions,contact:p.contact,call:o,availableCalls:p.tab.calls.length,autoClose:a.$parent.vm.autoClose}}).then((function(e){const t=e[0];a.$parent.vm.autoClose=e[1],t&&("BLACKLIST"===t?i.success({title:l.instant("APP.INFO"),msg:l.instant("DASHBOARDS.CALL_DISPOSED")+" "+t}):"RECALLME"===t||"RESCHEDULE"===t||i.success({title:l.instant("APP.INFO"),msg:l.instant("DASHBOARDS.CALL_SAVED")}));for(const e in a.$parent.$parent.$parent.vm.tabs)if(void 0!==a.$parent.$parent.$parent.vm.tabs[e]){const t=a.$parent.$parent.$parent.vm.tabs[e];u().remove(t.calls,(function(e){return e.uniqueid===o.uniqueid}))}0===p.tab.calls.length&&a.$parent.vm.autoClose&&a.$parent.vm.removeTab(p.tab),a.$parent.vm.updateLocalStorage()}))},p.checkCallStatus=function(e){return p.checkingCallStatus=!0,r.voiceCallReport.get({uniqueid:e.uniqueid}).$promise.then((function(t){t&&t.rows.length>0&&(e.disposedAt=u().first(t.rows).endtime)})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"VOICE_CALL_REPORT:GET",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){p.checkingCallStatus=!1}))},p.duplicateContact=function(n){e.show({controller:"DuplicateContactDialogController",controllerAs:"vm",templateUrl:Oa,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:p.contact.id})}],lists:["apiResolver",function(e){return e.resolve("user@getLists",{id:s.getCurrentUser().id,fields:"id,name"})}]},locals:{contacts:[]}})},p.mergeContact=function(n){e.show({controller:"MergeContactDialogController",controllerAs:"vm",templateUrl:Ra,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:p.contact.id})}],lists:["apiResolver",function(e){return e.resolve("user@getLists",{id:s.getCurrentUser().id,fields:"id,name"})}]},locals:{contacts:[]}}).then((function(e){if(e){for(const t in a.$parent.$parent.$parent.vm.tabs)if(void 0!==a.$parent.$parent.$parent.vm.tabs[t]){const n=a.$parent.$parent.$parent.vm.tabs[t];n&&n.contact&&(e.from&&e.from.id&&e.from.id===n.contact.id&&a.$parent.$parent.$parent.vm.removeTab(n),e.to&&e.to.id&&e.to.id===n.contact.id&&a.$parent.$parent.$parent.vm.removeTab(n))}e.new&&a.$parent.$parent.$parent.vm.addContactTab(e.new)}}))},p.getDateFromString=function(e){return null===e?void 0:new Date(e)},p.addJscriptyTab=function(e){try{e.formData=ka().render(e.formData,{contact:p.contact,user:p.user})}catch(e){console.error(e)}try{a.$parent.$parent.$parent.vm.addTab({type:"jscripty",title:e.name,icon:"icon-script",color:"grey",project:e,contact:p.contact})}catch(e){i.error({title:"ERROR OPENING JSCRIPTY PROJECT",msg:"The project cannot be started"+JSON.stringify(e)})}},p.getHoppers=_,p.getFinals=b,p.getHistories=y,p.getJscriptyProjects=function(){if(p.jscriptyProjects)return;return p.loadingJscriptyProjects=!0,r.jscriptyProject.get({fields:"createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave",sort:"-updatedAt",nolimit:!0}).$promise.then((function(e){p.jscriptyProjects=e||{count:0,rows:[]}})).catch((function(){i.error({title:l.instant("JSCRIPTY.JSCRIPTY"),msg:l.instant("CONTACTMANAGER.NOTIFICATIONS.JSCRIPTY_GET_ERROR")})})).finally((function(){p.loadingJscriptyProjects=!1}))},p.getAccounts=function(e){if(p[e+"Accounts"])return;const t="get"+u().startCase(e)+"Accounts";return p.loadingAccounts=!0,r.user[t]({id:p.user.id,attributes:["id","name"],nolimit:!0}).$promise.then((function(t){p[e+"Accounts"]=t||{count:0,rows:[]}})).catch((function(){i.error({title:l.instant(e.toUpperCase()+"."+e.toUpperCase()+"ACCOUNTS"),msg:l.instant("CONTACTMANAGER.NOTIFICATIONS.ACCOUNTS_GET_ERROR",{channel:l.instant("DASHBOARDS."+e.toUpperCase())})})})).finally((function(){p.loadingAccounts=!1}))},p.composeInteraction=function(n,o,s,l){const c=o.toLowerCase();e.show({controller:"Compose"+o+"InteractionDialogController",controllerAs:"vm",templateUrl:qa[c],parent:angular.element(t.body),clickOutsideToClose:!1,locals:{account:s,message:{to:"mail"===c?l:l.split(",")},type:"new",interaction:{Contact:p.contact}},fullscreen:!0}).then((function(n){if(!n||u().isNil(n.message)||!n.message.savedAsDraft)return r[c+"Account"].send({id:s.id},n).$promise.then((function(l){if("Mail"===o){const o=l;if(o&&o.Messages&&o.Messages.length){if(n.attachments&&n.attachments.length)for(let e=0;e<n.attachments.length;e+=1)r.attachment.update({id:n.attachments[e].id},{MailMessageId:u().head(o.Messages).id});if(i.success({title:"Message properly sent!",msg:"Message has been sent!"}),o.closed){o.disposition=null;const n=!s.mandatoryDisposition,a=p.user.voicePause||p.user.chatPause||p.user.mailPause||p.user.openchannelPause||p.user.faxPause;e.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(t.body),onRemoving:function(){p.user&&s.mandatoryDisposition&&!a&&r.user.unpause({id:p.user.id}).$promise.catch((function(e){console.error(e)}))},clickOutsideToClose:n,escapeToClose:n,locals:{user:p.user,channel:"mail",interaction:o}})}else a.$parent.vm.addInteractionTab("mail",o)}}else i.success({title:"Message properly sent!",msg:"Message has been sent!"}),a.$parent.vm.addInteractionTab(c,l)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else"fax"===c?i.error({title:"FAX:SEND",msg:e.data?JSON.stringify(e.data):e.message||e.toString()}):i.error({title:e.status?"API:"+e.status+" - "+e.statusText:o.toUpperCase()+"ACCOUNT:SEND",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}));{const e={type:"draft",channel:"mail",account:s,contact:p.contact,id:p.tab.id,openedAt:new Date,saved:!1,title:s.key+" - Untitled",content:n.message};let t=f.localStorage.getItem("motion2.home.mail:"+p.user.id);if(t){const e=JSON.parse(t);e.drafts||(e.drafts={}),t=e}else t={drafts:{}};t.drafts[p.tab.id]=e,f.localStorage.setItem("motion2.home.mail:"+p.user.id,JSON.stringify(t))}}))},p.init=function(e,t){return p.tab=e,a.$watchGroup(["vm.detailForm.$pristine","vm.customFieldsForm.$pristine"],(function(e){p.tab.saved=e[0]&&e[1]})),p.license=t,p.contact=p.tab.contact,p.newContact=!1,p.currentTab=0,r.user.get({fields:"id,fullname",nolimit:!0}).$promise.then((function(e){p.users=e||{count:0,rows:[]},p.usersMap=u().mapValues(u().keyBy(p.users.rows,"id"),"fullname")})).then((function(){const e=[];for(let t=0;t<p.tab.calls.length;t++){const n=p.tab.calls[t];e.push(r.voiceCallReport.get({uniqueid:n.uniqueid}).$promise.then((function(e){e&&e.rows.length>0&&(n.disposedAt=u().first(e.rows).endtime)})))}return o.all(e)})).then((function(){return r.user.getLists({id:p.user.id,nolimit:!0}).$promise})).then((function(e){if(p.lists=e||{count:0,rows:[]},p.contact&&p.contact.ListId){if(p.list=u().find(p.lists.rows,{id:p.contact.ListId}),p.list)return;return r.cmList.get({id:p.contact.ListId}).$promise.then((function(e){e&&(p.list=e,p.lists.rows=u().unionBy(p.lists.rows,[p.list]))}))}})).then((function(){if(p.contact&&p.contact.id){const e={id:p.contact.id,ListId:p.contact.ListId,limit:1,offset:0,sort:"-updatedAt"};return r.cmContact.get(e).$promise.then((function(e){return p.contact=e,p.tab.contact=e,r.user.addContacts({id:p.user.id,ids:[p.contact.id]})})).then((function(){if(p.contact.ListId)return r.disposition.get({ListId:p.contact.ListId,nolimit:!0}).$promise.then((function(e){return p.tab.dispositions=e,r.cmList.getCustomFields({id:p.contact.ListId,nolimit:!0}).$promise})).then((function(e){p.tab.customFields=e}))})).then((function(){try{p.tab.companies=a.$parent.$parent.$parent.vm.globalCompanies,p.tab.tags=a.$parent.$parent.$parent.vm.globalTags,p.tab.autoCreate=0}catch(e){}_(),b(),y()})).then((function(){return r.cmContact.getTags({id:p.contact.id}).$promise.then((function(e){p.tab.Tags=u().map(e.rows,"id")}))}))}return p.newContact=!0,e.autoCreate?g():void 0})).finally((function(){p.contact&&p.contact.id&&v()}))},p.hasPermission=function(e){return s.hasPermission(e)},p.openInteraction=function(e){try{return a.$parent.$parent.$parent.vm.addInteractionTab(e.channel,e)}catch(e){i.error({title:l.instant("CONTACTMANAGER.CUSTOMER_JOURNEY"),msg:l.instant("CONTACTMANAGER.NOTIFICATIONS.INTERACTION_OPEN_ERROR")})}},p.getCustomerJourney=v,p.loadMoreJourney=function(){return o((function(e){return e(v(p.journey.length))}))},a.$on("$destroy",(function(){})),a.$watch("currentTab",(function(){1===p.currentTab&&(_(),b(),y())}));let A=!0,S=1;a.$watch("queryHopper.filter",(function(e,t){A?n((function(){A=!1})):(t||(S=p.queryHopper.page),e!==t&&(p.queryHopper.page=1),e||(p.queryHopper.page=S),_())})),a.$watch("queryFinal.filter",(function(e,t){A?n((function(){A=!1})):(t||(S=p.queryFinal.page),e!==t&&(p.queryFinal.page=1),e||(p.queryFinal.page=S),b())})),a.$watch("queryHistory.filter",(function(e,t){A?n((function(){A=!1})):(t||(S=p.queryHistory.page),e!==t&&(p.queryHistory.page=1),e||(p.queryHistory.page=S),y())}))}const Ha=Ya;function Ba(e,t,n,a,r,i,s,l,c,d,f,m){const p=this;function g(){const e=p.selectedDisposition?p.selectedDisposition.name.toLowerCase():void 0;return{id:p.call.uniqueid,disposition:p.firstLevelDisposition?p.firstLevelDisposition.name:null,secondDisposition:p.secondLevelDisposition?p.secondLevelDisposition.name:null,thirdDisposition:p.thirdLevelDisposition?p.thirdLevelDisposition.name:null,dispositionat:o()(),amd:"amd"===e,fax:"fax"===e,blacklist:"blacklist"===e,recallme:"recallme"===e,UserId:"recallme"===e?c.getCurrentUser().id:null,OwnerId:c.getCurrentUser().id}}function h(t){e.hide([t,p.autoClose])}p.isReschedule=!1,p.recallme=!1,p.queueCampaign=void 0,p.queueCampaigns={count:0,rows:[]},p.dispositions=u().orderBy(u().concat([],r.rows,i.rows),["name"],["asc"]),p.contact=l,p.call=s,p.note=p.call.note||void 0,p.dialerCall=!1,p.hasBlackLists=!1,p.availableCalls=f,p.autoClose=m,p.hopper={minDate:new Date,dateTime:new Date},p.call&&p.call.variables&&p.call.variables["xmd-voicequeueid"]?(p.dialerCall=!0,a.voiceQueue.getBlackLists({id:p.call.variables["xmd-voicequeueid"]}).$promise.then((function(e){e&&e.rows&&e.rows.length>0&&(p.hasBlackLists=!0)})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.getBlackLists",msg:e.data?JSON.stringify(e.data):e.toString()})}))):a.user.getQueues({id:c.getCurrentUser().id,fields:"id,name,dialActive",channel:"voice",type:"outbound",nolimit:!0}).$promise.then((function(e){p.queueCampaigns=e||{count:0,rows:[]}})).catch((function(e){console.error(e)})),p.onDispositionChange=function(e){switch(e){case"first":p.selectedDisposition=p.firstLevelDisposition,p.anySecondLevelDisposition=u().some(p.dispositions,["ParentId",p.firstLevelDisposition.id]),p.secondLevelDisposition=void 0,p.thirdLevelDisposition=void 0,p.anyThirdLevelDisposition=!1;break;case"second":p.selectedDisposition=p.secondLevelDisposition,p.anyThirdLevelDisposition=u().some(p.dispositions,["ParentId",p.secondLevelDisposition.id]);break;case"third":p.selectedDisposition=p.thirdLevelDisposition}},p.clearDispositionSelection=function(e){"second"===e?(p.secondLevelDisposition=void 0,p.thirdLevelDisposition=void 0,p.selectedDisposition=p.firstLevelDisposition):"third"===e&&(p.thirdLevelDisposition=void 0,p.selectedDisposition=p.secondLevelDisposition)},p.saveDisposition=function(e){p.selectedDisposition=u().isNil(e)?p.selectedDisposition:{name:e},e&&(p.firstLevelDisposition=p.selectedDisposition);p.call.note=p.note,void a.voiceCallReport.update({id:p.call.uniqueid,userDisposition:p.firstLevelDisposition?p.firstLevelDisposition.name:null,userSecondDisposition:p.secondLevelDisposition?p.secondLevelDisposition.name:null,userThirdDisposition:p.thirdLevelDisposition?p.thirdLevelDisposition.name:null,note:p.note,UserId:c.getCurrentUser().id,ContactId:p.contact.id}).$promise.catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATEVOICECALLREPORT",msg:e.data?JSON.stringify(e.data):e.toString()})})),void a.voiceRecording.get({uniqueid:p.call.uniqueid}).$promise.then((function(e){if(e)for(let t=0;t<e.rows.length;t+=1)a.voiceRecording.update({id:e.rows[t].id,userDisposition:p.firstLevelDisposition?p.firstLevelDisposition.name:null,userSecondDisposition:p.secondLevelDisposition?p.secondLevelDisposition.name:null,userThirdDisposition:p.thirdLevelDisposition?p.thirdLevelDisposition.name:null}).$promise.catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATEVOICERECORDING",msg:e.data?JSON.stringify(e.data):e.toString()})}))})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATEVOICERECORDING",msg:e.data?JSON.stringify(e.data):e.toString()})})),p.dialerCall&&(a.cmHopperFinal.update(g()).$promise.catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATECMHOPPERFINAL",msg:e.data?JSON.stringify(e.data):e.toString()})})),a.cmHopperHistory.update(g()).$promise.catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATECMHOPPERHISTORY",msg:e.data?JSON.stringify(e.data):e.toString()})})));if(u().isNil(p.selectedDisposition))h(p.selectedDisposition?p.selectedDisposition.name.toUpperCase():"");else switch(p.selectedDisposition.name.toLowerCase()){case"blacklist":p.call&&p.call.variables&&p.call.variables["xmd-voicequeueid"]&&function(e){if(e)a.voiceQueue.getBlackLists({id:e,type:"outbound",fields:"id"}).$promise.then((function(e){const o=[];if(e&&e.count>0){for(let t=0;t<e.rows.length;t+=1){const n=angular.copy(p.contact);delete n.id,n.ListId=e.rows[t].id,o.push(a.cmContact.save(n).$promise)}return t.all(o)}n.success({title:d.instant("APP.INFO"),msg:d.instant("DASHBOARDS.NOTAVAILABLE")+" "+p.selectedDisposition}),p.selectedDisposition=void 0})).then((function(e){e&&h(p.selectedDisposition?p.selectedDisposition.name.toUpperCase():"")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATEBLACKLIST",msg:e.data?JSON.stringify(e.data):e.toString()}),h(p.selectedDisposition?p.selectedDisposition.name.toUpperCase():"")}))}(p.call.variables["xmd-voicequeueid"]);break;case"reschedule":p.isReschedule=!0,p.recallme=!1;break;case"recallme":p.isReschedule=!0,p.recallme=!0;break;default:h(p.selectedDisposition?p.selectedDisposition.name.toUpperCase():"")}},p.closeDialog=function(){e.cancel()},p.saveReschedule=function(){return p.disable=!0,a.cmHopper.save({phone:p.contact.phone,UserId:p.recallme?c.getCurrentUser().id:null,ContactId:p.contact.id,ListId:p.contact.ListId,VoiceQueueId:p.dialerCall?Number(p.call["xmd-voicequeueid"]):p.queueCampaign?p.queueCampaign.id:null,scheduledat:o()(p.hopper.dateTime).format("YYYY-MM-DD HH:mm:ss"),priority:3,recallme:p.recallme,OwnerId:c.getCurrentUser().id}).$promise.then((function(){p.dialerCall&&a.cmHopperFinal.update({id:p.call.uniqueid,rescheduled:!0,rescheduledat:o()(p.hopper.dateTime).format("YYYY-MM-DD HH:mm:ss"),recallme:p.recallme}).$promise.catch((function(e){console.log(e)}))})).then((function(){n.success({title:d.instant("APP.INFO"),msg:d.instant("DASHBOARDS.CALL_DISPOSED")+" "+(p.recallme?d.instant("APP.RECALLME"):d.instant("DASHBOARDS.RESCHEDULE"))})})).catch((function(){h(p.selectedDisposition?p.selectedDisposition.name.toUpperCase():"")})).finally((function(){p.disable=!1,h(p.selectedDisposition?p.selectedDisposition.name.toUpperCase():"")}))}}Ba.$inject=["$mdDialog","$q","toasty","api","dispositions","globalDispositions","call","contact","Auth","$translate","availableCalls","autoClose"];const Ga=Ba;function Va(e,t,n,a,r,i,s,l,c,u,d,f){const m=this;m.call=c,m.contact=l,m.hopper={minDate:new Date,dateTime:new Date},m.closeDialog=function(){a.cancel()},m.saveDialog=function(){return m.disable=!0,s.cmHopper.save({phone:m.contact.phone,UserId:d?u.getCurrentUser().id:null,ContactId:m.contact.id,ListId:m.contact.ListId,VoiceQueueId:Number(m.call["xmd-voicequeueid"]),scheduledat:o()(m.hopper.dateTime).format("YYYY-MM-DD HH:mm:ss"),priority:3,recallme:d,OwnerId:u.getCurrentUser().id}).$promise.then((function(){s.cmHopperFinal.update({id:m.call.uniqueid,rescheduled:!0,rescheduledat:o()(m.hopper.dateTime).format("YYYY-MM-DD HH:mm:ss"),recallme:d}).$promise})).then((function(){i.success({title:f.instant("APP.INFO"),msg:f.instant("DASHBOARDS.CALL_DISPOSED")+" "+(d?f.instant("APP.RECALLME"):f.instant("DASHBOARDS.RESCHEDULE"))}),a.hide()})).catch((function(e){a.cancel(e)})).finally((function(){m.disable=!1}))}}Va.$inject=["$scope","$state","$location","$mdDialog","$timeout","toasty","api","contact","call","Auth","recallme","$translate"];const Wa=Va;function Qa(e,t,n,a,o,r){const i=this;i.callNumber=o,i.page=1,i.onInit=function(){n.cmList.get({fields:"id,name",nolimit:!0}).$promise.then((function(e){i.lists=u().chain(e.rows).keyBy("id").mapValues("name").value(),n.cmCustomField.get({fields:"id,alias",nolimit:!0}).$promise.then((function(e){i.customFields=e.rows,i.contacts=u().map(a,(function(e){return Object.keys(e).forEach((function(n){if(Number(e[n])===Number(i.callNumber))if(n.startsWith("cf_")){const a=u().find(i.customFields,["id",Number(u().trimStart(n,"cf_"))]);e.matchingField=a?a.alias:t.instant("APP.UNKNOWN")}else e.matchingField=n})),e}))}))})).then((function(){i.paginatedContacts=u().chunk(a,4)})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmList.get",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},i.selectContact=function(){e.hide(i.selectedContact)}}Qa.$inject=["$mdDialog","$translate","api","contacts","callNumber","toasty"];const za=Qa;function Ka(e,t){let n=t((function(){}),999);e.$on("$destroy",(function(){n&&(t.cancel(n),n=null)}))}Ka.$inject=["$scope","$interval"];const Ja=Ka,Xa=n.p+"templates/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html/dialog.html";function Za(e,t,n,a,r,i,s,l,c){const d=this;function f(){return s.disposition.get({fields:"createdAt,updatedAt,id,name,level,ParentId",sort:"name",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0}).$promise.then((function(e){return d.dispositions=e?e.rows:[],s.user.getQueues({id:l.getCurrentUser().id,fields:"id,name",channel:"voice",type:"outbound",nolimit:!0}).$promise})).then((function(e){d.queues=e||{count:0,rows:[]},d.queuesMap=u().mapValues(u().keyBy(d.queues.rows,"name"),"name"),d.defaultQueues=d.queues.rows?u().map(d.queues.rows,"name").join(","):void 0})).then((function(){d.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Agent",key:"lastAssignedTo",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:d.currentUser.name,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}],ngValue:"name"},{name:"Campaign",key:"queue",type:"multiselect",label:"DASHBOARDS.SELECT_CAMPAIGN",options:d.queues.rows,ngValue:"name",clearAll:!1}]})).catch((function(e){console.log(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.abandoned.bull.calls:"+d.currentUser.id);if(e)e=JSON.parse(e),e.query&&(d.query=u().merge(e.query,d.query));else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()};d.query.createdAt=e}d.isSearchBarVisible=!!d.query.filter,m()}))}function m(){var e,t,n,a;d.query.queue=(null==d||null===(e=d.query)||void 0===e?void 0:e.queue)||(null==d||null===(t=d.defaultQueues)||void 0===t?void 0:t.split(","))||[];const o="number"==typeof(null==d||null===(n=d.query)||void 0===n?void 0:n.limit)?d.query.limit:0,i="number"==typeof(null==d||null===(a=d.query)||void 0===a?void 0:a.page)?d.query.page:1;d.query.offset=(i-1)*o;const l={query:d.query};r.localStorage.setItem("motion2.home.abandoned.bull.calls:"+d.currentUser.id,JSON.stringify(l)),d.promise=s.voiceQueueReport.getVoiceQueuesReport(d.query,p).$promise}function p(e){d.abandonedCalls=e||{count:0,rows:[]},d.refresh=!0}d.showTooltip=!1,d.refresh=!0,d.disable=[],d.dispositions={count:0,rows:[]},d.currentUser=l.getCurrentUser(),d.queues={},d.abandonedCalls={count:0,rows:[]},d.query={fields:"id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition",type:"outbound",queuecallerexitreason:"TIMEOUT,ABANDONED",sort:"-updatedAt",limit:10,page:1},d.getAbandonedCalls=m,d.refreshAbandonedCalls=function(){d.showTooltip=!1,m()},d.onInit=f,d.reserved=function(e){e&&(d.disable[e.id]=!0,s.voiceQueueReport.update({id:e.id,lastAssignedTo:e.assigned?d.currentUser.name:null,assigned:e.assigned}).$promise.catch((function(e){console.log(e)})).finally((function(){d.disable[e.id]=!1})))},d.dispose=function(e){n.show({controller:"DisposeAbandonedCallDialogController",controllerAs:"vm",templateUrl:Xa,parent:angular.element(a.body),targetEvent:e,resolve:{globalDispositions:["apiResolver",function(e){return e.resolve("disposition@get",{MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null"})}]},locals:{dispositions:d.dispositions,call:e}}).then((function(t){if(t){d.disable[e.id]=!0;const n={id:e.id,lastAssignedTo:e.assigned?d.currentUser.name:null,assigned:e.assigned,disposition:t.firstLevel||null,secondDisposition:t.secondLevel||null,thirdDisposition:t.thirdLevel||null};s.voiceQueueReport.update(n).$promise.catch((function(e){console.log(e)})).finally((function(){d.disable[e.id]=!1}))}}))},d.call=e.$parent.$parent.$parent.$parent.vm.call,d.transfer=e.$parent.$parent.$parent.$parent.vm.transfer,d.webcall=e.$parent.$parent.$parent.$parent.vm.webcall,d.webtransfer=e.$parent.$parent.$parent.$parent.vm.webtransfer,c.onWithoutApply("voiceQueueReport:save",(function(e){d.queuesMap&&"outbound"===e.type&&d.queuesMap[e.queue]&&(d.showTooltip=!0)})),c.onWithoutApply("voiceQueueReport:update",(function(e){if(e){const t=u().findIndex(d.abandonedCalls.rows,["id",e.id]);t>=0&&u().merge(d.abandonedCalls.rows[t],e)}})),f(),e.$on("$destroy",(function(){c.removeAllListeners("voiceQueueReport:save"),c.removeAllListeners("voiceQueueReport:update")}))}Za.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const eo=Za;function to(e,t,n){const a=this;a.dispositions=t,a.call=n,a.note=a.call.note||void 0,a.onDispositionChange=function(e){switch(e){case"first":a.selectedDisposition=a.firstLevelDisposition,a.anySecondLevelDisposition=u().some(a.dispositions,["ParentId",a.firstLevelDisposition.id]),a.secondLevelDisposition=void 0,a.thirdLevelDisposition=void 0,a.anyThirdLevelDisposition=!1;break;case"second":a.selectedDisposition=a.secondLevelDisposition,a.anyThirdLevelDisposition=u().some(a.dispositions,["ParentId",a.secondLevelDisposition.id]);break;case"third":a.selectedDisposition=a.thirdLevelDisposition}},a.clearDispositionSelection=function(e){"second"===e?(a.secondLevelDisposition=void 0,a.thirdLevelDisposition=void 0,a.selectedDisposition=a.firstLevelDisposition):"third"===e&&(a.thirdLevelDisposition=void 0,a.selectedDisposition=a.secondLevelDisposition)},a.saveDisposition=function(){a.call.note=a.note;const t={firstLevel:a.firstLevelDisposition?a.firstLevelDisposition.name:void 0,secondLevel:a.secondLevelDisposition?a.secondLevelDisposition.name:void 0,thirdLevel:a.thirdLevelDisposition?a.thirdLevelDisposition.name:void 0};e.hide(t)},a.closeDialog=function(){e.cancel()}}to.$inject=["$mdDialog","dispositions","call"];const no=to;function ao(e,t,n,a,r,i,s,l,c){const d=this;function f(){return s.disposition.get({fields:"createdAt,updatedAt,id,name,level,ParentId",sort:"name",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0}).$promise.then((function(e){return d.dispositions=e?e.rows:[],s.user.getQueues({id:l.getCurrentUser().id,fields:"id,name",channel:"voice",type:"inbound",nolimit:!0}).$promise})).then((function(e){d.queues=e||{count:0,rows:[]},d.queuesMap=u().mapValues(u().keyBy(d.queues.rows,"name"),"name"),d.defaultQueues=d.queues.rows?u().map(d.queues.rows,"name").join(","):void 0})).then((function(){d.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Agent",key:"lastAssignedTo",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:d.currentUser.name,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}],ngValue:"name"},{name:"Campaign",key:"queue",type:"multiselect",label:"DASHBOARDS.SELECT_QUEUE",options:d.queues.rows,ngValue:"name",clearAll:!1}]})).catch((function(e){console.log(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.abandoned.voice.calls:"+d.currentUser.id);if(e)e=JSON.parse(e),e.query&&(d.query=u().merge(e.query,d.query));else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()};d.query.createdAt=e}d.isSearchBarVisible=!!d.query.filter,m()}))}function m(){var e,t,n,a;d.query.queue=(null==d||null===(e=d.query)||void 0===e?void 0:e.queue)||(null==d||null===(t=d.defaultQueues)||void 0===t?void 0:t.split(","))||[];const o="number"==typeof(null==d||null===(n=d.query)||void 0===n?void 0:n.limit)?d.query.limit:0,i="number"==typeof(null==d||null===(a=d.query)||void 0===a?void 0:a.page)?d.query.page:1;d.query.offset=(i-1)*o;const l={query:d.query};r.localStorage.setItem("motion2.home.abandoned.voice.calls:"+d.currentUser.id,JSON.stringify(l)),d.promise=s.voiceQueueReport.getVoiceQueuesReport(d.query,p).$promise}function p(e){d.abandonedCalls=e||{count:0,rows:[]},d.refresh=!0}d.showTooltip=!1,d.refresh=!0,d.disable=[],d.dispositions={count:0,rows:[]},d.currentUser=l.getCurrentUser(),d.queues={},d.abandonedCalls={count:0,rows:[]},d.query={fields:"id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition",type:"inbound",queuecallerexitreason:"TIMEOUT,ABANDONED",sort:"-updatedAt",limit:10,page:1},d.getAbandonedCalls=m,d.refreshAbandonedCalls=function(){d.showTooltip=!1,m()},d.onInit=f,d.reserved=function(e){e&&(d.disable[e.id]=!0,s.voiceQueueReport.update({id:e.id,lastAssignedTo:e.assigned?d.currentUser.name:null,assigned:e.assigned}).$promise.catch((function(e){console.log(e)})).finally((function(){d.disable[e.id]=!1})))},d.dispose=function(e){n.show({controller:"DisposeAbandonedCallDialogController",controllerAs:"vm",templateUrl:Xa,parent:angular.element(a.body),targetEvent:e,locals:{dispositions:d.dispositions,call:e}}).then((function(t){if(t){d.disable[e.id]=!0;const n={id:e.id,lastAssignedTo:e.assigned?d.currentUser.name:null,assigned:e.assigned,disposition:t.firstLevel||null,secondDisposition:t.secondLevel||null,thirdDisposition:t.thirdLevel||null};s.voiceQueueReport.update(n).$promise.catch((function(e){console.log(e)})).finally((function(){d.disable[e.id]=!1}))}}))},d.call=e.$parent.$parent.$parent.$parent.vm.call,d.transfer=e.$parent.$parent.$parent.$parent.vm.transfer,d.webcall=e.$parent.$parent.$parent.$parent.vm.webcall,d.webtransfer=e.$parent.$parent.$parent.$parent.vm.webtransfer,c.onWithoutApply("voiceQueueReport:save",(function(e){d.queuesMap&&"inbound"===e.type&&d.queuesMap[e.queue]&&(d.showTooltip=!0)})),c.onWithoutApply("voiceQueueReport:update",(function(e){if(e){const t=u().findIndex(d.abandonedCalls.rows,["id",e.id]);t>=0&&u().merge(d.abandonedCalls.rows[t],e)}})),f(),e.$on("$destroy",(function(){c.removeAllListeners("voiceQueueReport:save"),c.removeAllListeners("voiceQueueReport:update")}))}ao.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const oo=ao;function ro(e,t,n,a,o){const r=this;r.user=n.getCurrentUser(),r.license={},r.plugin={},r.setting={},r.sidebar="dashboard",r.draftManager=o,r.navigation=a.getNavigation(),r.addContactTab=e.$parent.vm.addContactTab,r.addInteractionTab=e.$parent.vm.addInteractionTab,r.init=function(e,n){r.license=e,r.setting=n;let a=t.localStorage.getItem("motion2.home:"+r.user.id);if(a){try{a=JSON.parse(a),r.sidebar=a.currentSidebarTab?a.currentSidebarTab:"dashboard"}catch(e){console.error(e),r.sidebar="dashboard"}"mail"===r.sidebar&&r.draftManager.init()}},r.changeSidebarTab=function(n){r.sidebar=n.view,"plugin"===r.sidebar&&(r.plugin=n.stateParams,r.pluginId=n.id,e.$broadcast("pluginUpdated",{plugin:r.plugin}));t.localStorage.setItem("motion2.home:"+r.user.id,JSON.stringify({currentSidebarTab:n.view}))},r.hasPermission=function(e){return n.hasPermission(e)},e.$watch("vm_home.sidebar",(function(e){"mail"===e?r.draftManager.init():r.draftManager.drafts={}}))}ro.$inject=["$scope","$window","Auth","msNavigationAgentService","draftManager"];const io=ro,so=n.p+"templates/core/dialogs/advanced-search/dialog.html/dialog.html";function lo(e,t,n,a,r,i,s,l,c,d){const f=this;function m(e){!f.reloadingInteractions&&f.setting.chatInteractionsReloadTimeout>0&&A(!0),f.searchInProgress=!1,f.reloadingInteractions=!1,f.chatInteractions=e||{count:0,rows:[]};for(let e=0;e<f.chatInteractions.rows.length;e++)g(f.chatInteractions.rows[e])}function p(e){f.searchInProgress=!0,e||(f.query.page=1),f.query.offset=(f.query.page-1)*f.query.limit;let t=r.localStorage.getItem("motion2.home.chat:"+f.user.id);t=t?JSON.parse(t):{},t.query=f.query,r.localStorage.setItem("motion2.home.chat:"+f.user.id,JSON.stringify(t)),f.promise=s.chatInteraction.get(f.query,m).$promise.catch((()=>{d.error({title:"Search Error",msg:"An error occurred while searching data"}),f.searchInProgress=!1}))}function g(e){"Unknown"===e.contactName&&(e.contactName=i.instant("APP.UNKNOWN"))}function h(e){let t;const n=u().find(f.chatInteractions.rows,{id:e.ChatInteractionId});n&&n.Users&&(t=u().find(n.Users,{id:e.UserId}),t||n.Users.push({id:e.UserId}))}function _(e){const t=u().find(f.chatInteractions.rows,{id:e.ChatInteractionId});t&&t.Users&&u().remove(t.Users,{id:e.UserId})}function b(e){if(e){const t=u().find(f.chatInteractions.rows,{id:e.id});if(t){if(t.Users=[],e.closed&&(t.unreadMessages=0),f.query.sort){const e=u().startsWith(f.query.sort,"-")?"desc":"asc";f.chatInteractions.rows=u().orderBy(f.chatInteractions.rows,u().trimStart(f.query.sort,"-"),e)}u().merge(t,u().pick(e,u().keys(t)))}else p(f.query.page)}}function y(e){if(e){const t=u().find(f.chatInteractions.rows,{id:e.id});t&&(t.Tags=e.tags||[],u().merge(t,u().pick(e,u().keys(t))))}}function v(e){if(e&&!e.secret){const t=u().find(f.chatInteractions.rows,{id:e.ChatInteractionId});if(t){const n=u().find(t.Messages,{id:e.id});n?u().merge(n,u().pick(e,u().keys(n))):(u().isNil(t.Messages)&&(t.Messages={count:0}),e.read||(t.Messages.count+=1))}}}function A(e){e&&f.interactionsInterval&&t.cancel(f.interactionsInterval),f.interactionsInterval=t((function(){f.reloadingInteractions=!0,f.searchInProgress||p()}),1e3*f.setting.chatInteractionsReloadTimeout)}f.user=l.getCurrentUser(),f.license={},f.setting={},f.tags={count:0,rows:[]},f.chatInteractions={count:0,rows:[]},f.query={includeAll:!0,sort:"-updatedAt",limit:10,page:1,read:null,closed:null},f.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Customer Ip",column:"customerIp",type:"text",options:{excludedOperators:["$eq","$ne","$startsWith","$endsWith"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Website",column:"ChatWebsiteId",type:"multiselect",options:{route:{model:"user",action:"getChatWebsites",params:{id:f.user.id,nolimit:!0}}}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},f.sectionColor="green-A700",f.onInit=function(e,t){return f.license=e,f.setting=t,s.user["get"+u().upperFirst("ChatWebsites")]({id:f.user.id,nolimit:!0}).$promise.then((function(e){return f.chatAccounts=e||{count:0,rows:[]},s.tag.get().$promise})).then((function(e){f.tags=e||{count:0,rows:[]}})).then((function(){f.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Website",key:"ChatWebsiteId",type:"multiselect",label:"DASHBOARDS.SELECT_ACCOUNT",options:f.chatAccounts.rows,clearAll:!1},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:f.user.id,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:f.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.chat:"+f.user.id);if(e)try{e=JSON.parse(e),e.query&&(f.query=u().merge(f.query,e.query),u().isEmpty(f.chatAccounts.rows)?f.query.ChatWebsiteId=[]:u().isEmpty(f.query.ChatWebsiteId)&&(f.query.ChatWebsiteId=u()(f.chatAccounts.rows).map("id").take().value()),f.query.sort&&f.query.sort.indexOf("lastMessage")>=0&&(f.query=u().omit(f.query,"sort")),f.query.includeAll=!0,f.isSearchBarVisible=!(f.query.search||!f.query.filter))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()},t={ChatWebsiteId:u().map(f.chatAccounts.rows,"id"),createdAt:e};f.query=u().merge(f.query,t)}c.on("chatInteraction:save",b),c.on("chatInteraction:update",b),c.on("chatInteractionTags:save",y),c.on("chatMessage:save",v),c.on("chatMessage:update",v),c.on("user_has_chat_interactions:save",h),c.on("user_has_chat_interactions:remove",_),p(f.query.page),f.setting.chatInteractionsReloadTimeout>0&&A()}))},f.success=m,f.getChatInteractions=p,f.showChatInteraction=function(t,n){e.$parent.vm.addInteractionTab("chat",n)},f.downloadChatInteraction=function(e,t,n){s.chatInteraction.download({id:t.id,attachments:n}).$promise.then((function(e){const n=[e.buffer],a="chat-interaction"+t.id+".zip",o=new Blob(n,{type:e.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"downloadChatInteraction",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.disposeInteraction=function(e,t){const o=f.user.voicePause||f.user.chatPause||f.user.mailPause||f.user.openchannelPause||f.user.faxPause,r=!t.Account.mandatoryDisposition;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),clickOutsideToClose:r,escapeToClose:r,onRemoving:function(){f.user&&t.Account.mandatoryDisposition&&!o&&s.user.unpause({id:f.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{user:f.user,channel:"chat",interaction:t}})},f.getContactLabel=g,f.getAgentLabel=function(e){if(e.UserId)return e.UserId===f.user.id?i.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">";return i.instant("DASHBOARDS.NOT_ASSIGNED")},f.getChatWebsiteLabel=function(e){if(e.Account)return e.Account.key;return i.instant("APP.UNKNOWN")},f.openAdvancedSearch=function(){n.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{color:f.sectionColor,fields:f.advancedSearch.fields,storagePath:"home.chat"},fullscreen:!0}).then((function(e){f.isSearchBarVisible=!(e.value||!f.query.filter),e.apply&&(f.query.search=e.value,p())})).catch((function(e){d.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},e.$on("$destroy",(function(){c.removeAllListeners("chatMessage:save"),c.removeAllListeners("chatMessage:update"),c.removeAllListeners("chatInteraction:save"),c.removeAllListeners("chatInteractionTags:save"),c.removeAllListeners("chatInteraction:update"),c.removeAllListeners("user_has_chat_interactions:save"),c.removeAllListeners("user_has_chat_interactions:remove"),f.interactionsInterval&&t.cancel(f.interactionsInterval)}))}lo.$inject=["$scope","$interval","$mdDialog","$document","$window","$translate","api","Auth","socket","toasty"];const co=lo;function uo(e,t,n,a,o,r,i,s){const l=this;function c(e){l.searchInProgress=!1,l.contacts=e||{count:0,rows:[]}}function d(e){l.searchInProgress=!0,i.cmContact.describe({id:l.query.ListId}).$promise.then((function(e){return u()(e.toJSON()).omit("UserId").values().map((function(e){return function(e){const t={name:u().startCase(e.displayName),column:e.columnName,options:{}};if(e.custom)switch(e.custom.type){case"text":t.type="text";break;case"select":t.type="multiselect",t.values=u().map(JSON.parse(e.custom.values),(function(e,t){return{id:t,name:e.value,value:e.value}})),t.options.field="name";break;case"switch":t.type="select",t.values=[{id:1,translate:"DASHBOARDS.ENABLED"},{id:0,translate:"DASHBOARDS.DISABLED"}],t.options.excludedOperators=["$ne"];break;case"number":t.type="number";break;case"datetime":t.type="date"}else switch(e.columnName){case"dateOfBirth":t.type="date";break;case"CompanyId":t.name="Company",t.type="autocomplete",t.options.route={model:"cmCompany",action:"get",params:{fields:"id,name",nolimit:!0}},t.options.searchFields=["name"],t.options.excludedOperators=["$ne"];break;case"ListId":t.name="List",t.type="autocomplete",t.options.route={model:"user",action:"getLists",params:{id:l.currentUser.id,fields:"id,name",nolimit:!0}},t.options.searchFields=["name"],t.options.excludedOperators=["$ne"];break;default:u().includes(e.type.toLowerCase(),"int")?t.type="number":u().includes(e.type.toLowerCase(),"date")?t.type="date":t.type="text"}return t}(e)})).value()})).then((function(e){l.advancedSearch.fields=e;const t={name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}};let n=u().findIndex(e,(function(e){return u().startsWith(e.column,"cf_")}))||e.length-1;n<0&&(n=e.length),l.advancedSearch.fields.splice(n,0,t)})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"DESCRIBE_CM_CONTACTS",msg:e.data?JSON.stringify(e.data.message):e.toString()})})),e||(l.query.page=1),l.query.offset=(l.query.page-1)*l.query.limit;let t=o.localStorage.getItem("motion2.home.contacts:"+l.currentUser.id);t=t?JSON.parse(t):{},t.query=l.query,o.localStorage.setItem("motion2.home.contacts:"+l.currentUser.id,JSON.stringify(t)),l.promise=i.cmContact.get(l.query,c).$promise.catch((()=>{s.error({title:"Search Error",msg:"An error occurred while searching data"}),l.searchInProgress=!1}))}l.currentUser=r.getCurrentUser(),l.lists={},l.contacts={count:0,rows:[]},l.tags={count:0,rows:[]},l.query={includeAll:!0,sort:"-updatedAt",limit:10,page:1},l.advancedSearch={fields:[]},l.sectionColor="red",l.getContacts=d,l.refreshContacts=function(){d()},l.mergeContact=function(t,n){a.show({controller:"MergeContactDialogController",controllerAs:"vm",templateUrl:Ra,parent:angular.element(e.body),targetEvent:t,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:n.id})}],lists:["apiResolver",function(e){return e.resolve("user@getLists",{id:l.currentUser.id,fields:"id,name"})}]},locals:{contacts:l.contacts.rows}})},l.duplicateContact=function(t,n){a.show({controller:"DuplicateContactDialogController",controllerAs:"vm",templateUrl:Oa,parent:angular.element(e.body),targetEvent:t,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:n.id})}],lists:["apiResolver",function(e){return e.resolve("user@getLists",{id:l.currentUser.id,fields:"id,name"})}]},locals:{contacts:l.contacts.rows}})},l.openContact=function(e){return i.cmContact.get({id:e}).$promise.then((function(e){t.$parent.vm.addContactTab(e)}))},l.call=t.$parent.vm.call,l.onInit=function(){i.user.getLists({id:l.currentUser.id,fields:"id,name,dialPrefix",sort:"name",nolimit:!0}).$promise.then((function(e){return l.lists=e||{count:0,rows:[]},l.listsMap=u().keyBy(l.lists.rows,"id"),i.tag.get().$promise})).then((function(e){l.tags=e||{count:0,rows:[]}})).then((function(){l.quickFilters=[{name:"List",key:"ListId",type:"multiselect",label:"CONTACTMANAGER.SELECT_LIST",options:l.lists.rows,clearAll:!1},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:l.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=o.localStorage.getItem("motion2.home.contacts:"+l.currentUser.id);if(e)try{e=JSON.parse(e),e.query&&(l.query=u().merge(l.query,e.query),u().isEmpty(l.lists.rows)?l.query.ListId=[]:u().isEmpty(l.query.ListId)&&(l.query.ListId=u()(l.lists.rows).map("id").take().value()))}catch(e){console.log(e)}else l.query.ListId=u().map(l.lists.rows,"id");l.isSearchBarVisible=!(l.query.search||!l.query.filter),d()}))},l.openAdvancedSearch=function(){a.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(e.body),clickOutsideToClose:!1,locals:{color:l.sectionColor,fields:l.advancedSearch.fields,storagePath:"home.contacts"},fullscreen:!0}).then((function(e){l.isSearchBarVisible=!(e.value||!l.query.filter),e.apply&&(l.query.search=e.value,d())})).catch((function(e){s.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}}uo.$inject=["$document","$scope","$timeout","$mdDialog","$window","Auth","api","toasty"];const fo=uo;function mo(e,t){let n=t((function(){}),999);e.$on("$destroy",(function(){n&&(t.cancel(n),n=null)}))}mo.$inject=["$scope","$interval"];const po=mo;function go(e,t,n,a,o,r,i,s,l){const c=this,d=["type","waiting","dialMethod","dialActive"];function f(e){c.voiceQueuesTotal=e.count?e.count:0,c.voiceQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.voiceQueues,(function(e,t){c.rpcVoiceQueues[t]&&(c.voiceQueues[t].waiting=c.rpcVoiceQueues[t].waiting||0)}))}c.voiceQueues={},c.voiceQueuesTotal=0,c.rpcVoiceQueues={},c.getVoiceQueues={},c.rpcVoiceQueuesChannels={},c.addVoiceQueuesChannels={},c.deleteVoiceQueuesChannels=[],c.load=!0,c.query={id:s.getCurrentUser().id,fields:"id,name,type,dialMethod,dialActive",channel:"voice",type:"outbound",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=f,c.getVoiceQueues=function(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,f).$promise},c.getSize=function(e){return u().size(e)},c.onSaveQueue=function(e){c.voiceQueues[e.id]&&c.rpcVoiceQueues[e.id]&&(c.rpcVoiceQueues[e.id]=e,u().merge(c.voiceQueues[e.id],u().pick(e,d)))},c.onSaveChannel=function(e){"outbound"===e.type&&(e.queuecallerleaveAt?(delete c.rpcVoiceQueuesChannels[e.uniqueid],c.load&&c.deleteVoiceQueuesChannels.push(e.uniqueid)):(c.rpcVoiceQueuesChannels[e.uniqueid]=e,c.load&&(c.addVoiceQueuesChannels[e.uniqueid]=e)))},c.onUserVoiceQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getVoiceQueues()},c.onSaveVoiceQueue=function(e){u().isNil(e)||(c.rpcVoiceQueues[e.id]=u().pick(e,d))},c.onUpdateVoiceQueue=function(e){u().isNil(e)||(c.rpcVoiceQueues[e.id]&&u().merge(c.rpcVoiceQueues[e.id],u().pick(e,d)),c.voiceQueues[e.id]&&u().merge(c.voiceQueues[e.id],u().pick(e,d)))},c.onRemoveVoiceQueue=function(e){u().isNil(e)||(delete c.rpcVoiceQueues[e.id],delete c.voiceQueues[e.id])},l.onWithoutApply("voice_queue:save",c.onSaveQueue),l.onWithoutApply("voice_queue_channel:save",c.onSaveChannel),l.onWithoutApply("userVoiceQueue:save",c.onUserVoiceQueue),l.onWithoutApply("userVoiceQueue:remove",c.onUserVoiceQueue),l.onWithoutApply("voiceQueue:save",c.onSaveVoiceQueue),l.onWithoutApply("voiceQueue:remove",c.onRemoveVoiceQueue),l.onWithoutApply("voiceQueue:update",c.onUpdateVoiceQueue),i.rpc.getVoiceQueues().$promise.then((function(e){return c.rpcVoiceQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},i.rpc.getVoiceQueuesChannels().$promise})).then((function(e){c.rpcVoiceQueuesChannels=e?u().keyBy(e.rows?u().filter(e.rows,{type:"outbound",queuecallerleaveAt:null}):[],"uniqueid"):{}})).catch((function(e){console.error(e)})).finally((function(){u().merge(c.rpcVoiceQueuesChannels,c.addVoiceQueuesChannels);for(let e=0;e<c.deleteVoiceQueuesChannels.length;e+=1)delete c.rpcVoiceQueuesChannels[c.deleteVoiceQueuesChannels[e]];c.load=!1,c.addVoiceQueuesChannels={},c.deleteVoiceQueuesChannels=[],c.getVoiceQueues()}));let m=!0,p=1;e.$watch("vm_dc.query.filter",(function(e,n){m?t((function(){m=!1})):(n||(p=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=p),c.getVoiceQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("voice_queue:save"),l.removeAllListeners("voice_queue_channel:save"),l.removeAllListeners("userVoiceQueue:save"),l.removeAllListeners("userVoiceQueue:remove"),l.removeAllListeners("voiceQueue:save"),l.removeAllListeners("voiceQueue:update"),l.removeAllListeners("voiceQueue:remove")}))}go.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const ho=go;function _o(e,t,n,a,o,r,i,s,l){const c=this,d=["id","name","mapAgentsId","waiting"];let f=!0;function m(){const e=(c.queryChannels.page-1)*c.queryChannels.limit;c.paginatedInteractions=u().orderBy(c.rpcChatQueuesWaitingInteractions,["joinAt"],["desc"]),c.interactions=u().drop(c.paginatedInteractions,e).slice(0,c.queryChannels.limit)}function p(e){c.chatQueuesTotal=e.count?e.count:0,c.chatQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.chatQueues,(function(e,t){c.rpcChatQueues[t]&&(c.chatQueues[t].waiting=c.rpcChatQueues[t].waiting||0)}))}function g(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,p).$promise}c.chatQueues={},c.chatQueuesTotal=0,c.rpcChatQueues={},c.paginatedInteractions=[],c.deleteChatQueuesWaitingInteractions=[],c.rpcChatQueuesWaitingInteractions={},c.query={id:s.getCurrentUser().id,channel:"chat",fields:"id,name,mapAgentsId,waiting",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=p,c.getChatQueues=g,c.getSize=function(e){return u().size(e)},c.getColorByChannel=function(e){switch(e){case"chat":return"green-A700-bg";case"mail":return"teal-bg";case"sms":return"orange-bg";case"whatsapp":return"lime-A700-bg";case"openchannel":return"amber-A200-bg";case"fax":return"blue-grey-A200-bg";default:return"white-bg"}},c.paginate=m,c.onSaveQueue=function(e){c.chatQueues[e.id]&&c.rpcChatQueues[e.id]&&(u().merge(c.rpcChatQueues[e.id],u().pick(e,d)),u().merge(c.chatQueues[e.id],u().pick(e,d)))},c.onSaveChatQueue=function(e){u().isNil(e)||(c.rpcChatQueues[e.id]=u().pick(e,d))},c.onUpdateChatQueue=function(e){u().isNil(e)||(c.rpcChatQueues[e.id]&&u().merge(c.rpcChatQueues[e.id],u().pick(e,d)),c.chatQueues[e.id]&&u().merge(c.chatQueues[e.id],u().pick(e,d)))},c.onRemoveChatQueue=function(e){u().isNil(e)||(delete c.rpcChatQueues[e.id],delete c.chatQueues[e.id])},c.onSaveUserChatQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getChatQueues()},c.onRemoveUserChatQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getChatQueues()},c.onSaveChatQueueChannel=function(e){c.chatQueues[e.queue_id]&&(c.rpcChatQueuesWaitingInteractions[e.id]=e,m())},c.onRemoveChatQueueChannel=function(e){delete c.rpcChatQueuesWaitingInteractions[e.id],f&&c.deleteChatQueuesWaitingInteractions.push(e.id);m()},l.onWithoutApply("chat_queue:save",c.onSaveQueue),l.onWithoutApply("chatQueue:save",c.onSaveChatQueue),l.onWithoutApply("chatQueue:update",c.onUpdateChatQueue),l.onWithoutApply("chatQueue:remove",c.onRemoveChatQueue),l.onWithoutApply("userChatQueue:save",c.onSaveUserChatQueue),l.onWithoutApply("userChatQueue:remove",c.onRemoveUserChatQueue),l.onWithoutApply("chat_queue_waiting_interaction:save",c.onSaveChatQueueChannel),l.onWithoutApply("chat_queue_waiting_interaction:remove",c.onRemoveChatQueueChannel),i.rpc.getChatQueues().$promise.then((function(e){c.rpcChatQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{}})).then((function(){return i.user.getQueues({id:s.getCurrentUser().id,channel:"chat"}).$promise})).then((function(e){return c.myQueues=e.rows,i.rpc.getChatQueuesWaitingInteractions().$promise})).then((function(e){const t=u().filter(e.rows,(function(e){return u().includes(c.myQueues,{id:e.queue_id})}));e.rows=t,e.count=t.length,u().merge(c.rpcChatQueuesWaitingInteractions,e?u().keyBy(e.rows?e.rows:[],"id"):{})})).catch((function(e){console.error(e)})).finally((function(){for(let e=0;e<c.deleteChatQueuesWaitingInteractions.length;e+=1)delete c.rpcChatQueuesWaitingInteractions[c.deleteChatQueuesWaitingInteractions[e]];f=!1,c.deleteChatQueuesWaitingInteractions=[],g(),m()}));let h=!0,_=1;e.$watch("vm_dc.query.filter",(function(e,n){h?t((function(){h=!1})):(n||(_=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=_),c.getChatQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("chat_queue:save"),l.removeAllListeners("chatQueue:save"),l.removeAllListeners("chatQueue:update"),l.removeAllListeners("chatQueue:remove"),l.removeAllListeners("userChatQueue:save"),l.removeAllListeners("userChatQueue:remove"),l.removeAllListeners("chat_queue_waiting_interaction:save"),l.removeAllListeners("chat_queue_waiting_interaction:remove")}))}_o.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const bo=_o;function yo(e,t,n,a,o,r,i,s,l){const c=this,d=["id","name","mapAgentsId","waiting"];let f=!0;function m(){const e=(c.queryChannels.page-1)*c.queryChannels.limit;c.paginatedInteractions=u().orderBy(c.rpcFaxQueuesWaitingInteractions,["joinAt"],["desc"]),c.interactions=u().drop(c.paginatedInteractions,e).slice(0,c.queryChannels.limit)}function p(e){c.faxQueuesTotal=e.count?e.count:0,c.faxQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.faxQueues,(function(e,t){c.rpcFaxQueues[t]&&(c.faxQueues[t].waiting=c.rpcFaxQueues[t].waiting||0)}))}function g(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,p).$promise}c.faxQueues={},c.faxQueuesTotal=0,c.rpcFaxQueues={},c.paginatedInteractions=[],c.deleteFaxQueuesWaitingInteractions=[],c.rpcFaxQueuesWaitingInteractions={},c.query={id:s.getCurrentUser().id,channel:"fax",fields:"id,name,mapAgentsId,waiting",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=p,c.getFaxQueues=g,c.getSize=function(e){return u().size(e)},c.getColorByChannel=function(e){switch(e){case"chat":return"green-A700-bg";case"mail":return"teal-bg";case"sms":return"orange-bg";case"whatsapp":return"lime-A700-bg";case"openchannel":return"amber-A200-bg";case"fax":return"blue-grey-A200-bg";default:return"white-bg"}},c.paginate=m,c.onSaveQueue=function(e){c.faxQueues[e.id]&&c.rpcFaxQueues[e.id]&&(u().merge(c.rpcFaxQueues[e.id],u().pick(e,d)),u().merge(c.faxQueues[e.id],u().pick(e,d)))},c.onSaveFaxQueue=function(e){u().isNil(e)||(c.rpcFaxQueues[e.id]=u().pick(e,d))},c.onUpdateFaxQueue=function(e){u().isNil(e)||(c.rpcFaxQueues[e.id]&&u().merge(c.rpcFaxQueues[e.id],u().pick(e,d)),c.faxQueues[e.id]&&u().merge(c.faxQueues[e.id],u().pick(e,d)))},c.onRemoveFaxQueue=function(e){u().isNil(e)||(delete c.rpcFaxQueues[e.id],delete c.faxQueues[e.id])},c.onSaveUserFaxQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getFaxQueues()},c.onRemoveUserFaxQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getFaxQueues()},c.onSaveFaxQueueChannel=function(e){c.faxQueues[e.queue_id]&&(c.rpcFaxQueuesWaitingInteractions[e.id]=e,m())},c.onRemoveFaxQueueChannel=function(e){delete c.rpcFaxQueuesWaitingInteractions[e.id],f&&c.deleteFaxQueuesWaitingInteractions.push(e.id);m()},l.onWithoutApply("fax_queue:save",c.onSaveQueue),l.onWithoutApply("faxQueue:save",c.onSaveFaxQueue),l.onWithoutApply("faxQueue:update",c.onUpdateFaxQueue),l.onWithoutApply("faxQueue:remove",c.onRemoveFaxQueue),l.onWithoutApply("userFaxQueue:save",c.onSaveUserFaxQueue),l.onWithoutApply("userFaxQueue:remove",c.onRemoveUserFaxQueue),l.onWithoutApply("fax_queue_waiting_interaction:save",c.onSaveFaxQueueChannel),l.onWithoutApply("fax_queue_waiting_interaction:remove",c.onRemoveFaxQueueChannel),i.rpc.getFaxQueues().$promise.then((function(e){c.rpcFaxQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{}})).then((function(){return i.user.getQueues({id:s.getCurrentUser().id,channel:"fax"}).$promise})).then((function(e){return c.myQueues=e.rows,i.rpc.getFaxQueuesWaitingInteractions().$promise})).then((function(e){const t=u().filter(e.rows,(function(e){return u().includes(c.myQueues,{id:e.queue_id})}));e.rows=t,e.count=t.length,u().merge(c.rpcFaxQueuesWaitingInteractions,e?u().keyBy(e.rows?e.rows:[],"id"):{})})).catch((function(e){console.error(e)})).finally((function(){for(let e=0;e<c.deleteFaxQueuesWaitingInteractions.length;e+=1)delete c.rpcFaxQueuesWaitingInteractions[c.deleteFaxQueuesWaitingInteractions[e]];f=!1,c.deleteFaxQueuesWaitingInteractions=[],g(),m()}));let h=!0,_=1;e.$watch("vm_dc.query.filter",(function(e,n){h?t((function(){h=!1})):(n||(_=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=_),c.getFaxQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("fax_queue:save"),l.removeAllListeners("faxQueue:save"),l.removeAllListeners("faxQueue:update"),l.removeAllListeners("faxQueue:remove"),l.removeAllListeners("userFaxQueue:save"),l.removeAllListeners("userFaxQueue:remove"),l.removeAllListeners("fax_queue_waiting_interaction:save"),l.removeAllListeners("fax_queue_waiting_interaction:remove")}))}yo.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const vo=yo;function Ao(e,t,n,a,o,r,i,s,l){const c=this,d=["id","name","mapAgentsId","waiting"];let f=!0;function m(){const e=(c.queryChannels.page-1)*c.queryChannels.limit;c.paginatedInteractions=u().orderBy(c.rpcMailQueuesWaitingInteractions,["joinAt"],["desc"]),c.interactions=u().drop(c.paginatedInteractions,e).slice(0,c.queryChannels.limit)}function p(e){c.mailQueuesTotal=e.count?e.count:0,c.mailQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.mailQueues,(function(e,t){c.rpcMailQueues[t]&&(c.mailQueues[t].waiting=c.rpcMailQueues[t].waiting||0)}))}function g(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,p).$promise}c.mailQueues={},c.mailQueuesTotal=0,c.rpcMailQueues={},c.paginatedInteractions=[],c.deleteMailQueuesWaitingInteractions=[],c.rpcMailQueuesWaitingInteractions={},c.query={id:s.getCurrentUser().id,channel:"mail",fields:"id,name,mapAgentsId,waiting",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=p,c.getMailQueues=g,c.getSize=function(e){return u().size(e)},c.getColorByChannel=function(e){switch(e){case"chat":return"green-A700-bg";case"mail":return"teal-bg";case"sms":return"orange-bg";case"whatsapp":return"lime-A700-bg";case"openchannel":return"amber-A200-bg";case"fax":return"blue-grey-A200-bg";default:return"white-bg"}},c.paginate=m,c.onSaveQueue=function(e){c.mailQueues[e.id]&&c.rpcMailQueues[e.id]&&(u().merge(c.rpcMailQueues[e.id],u().pick(e,d)),u().merge(c.mailQueues[e.id],u().pick(e,d)))},c.onSaveMailQueue=function(e){u().isNil(e)||(c.rpcMailQueues[e.id]=u().pick(e,d))},c.onUpdateMailQueue=function(e){u().isNil(e)||(c.rpcMailQueues[e.id]&&u().merge(c.rpcMailQueues[e.id],u().pick(e,d)),c.mailQueues[e.id]&&u().merge(c.mailQueues[e.id],u().pick(e,d)))},c.onRemoveMailQueue=function(e){u().isNil(e)||(delete c.rpcMailQueues[e.id],delete c.mailQueues[e.id])},c.onSaveUserMailQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getMailQueues()},c.onRemoveUserMailQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getMailQueues()},c.onSaveMailQueueChannel=function(e){c.mailQueues[e.queue_id]&&(c.rpcMailQueuesWaitingInteractions[e.id]=e,m())},c.onRemoveMailQueueChannel=function(e){delete c.rpcMailQueuesWaitingInteractions[e.id],f&&c.deleteMailQueuesWaitingInteractions.push(e.id);m()},l.onWithoutApply("mail_queue:save",c.onSaveQueue),l.onWithoutApply("mailQueue:save",c.onSaveMailQueue),l.onWithoutApply("mailQueue:update",c.onUpdateMailQueue),l.onWithoutApply("mailQueue:remove",c.onRemoveMailQueue),l.onWithoutApply("userMailQueue:save",c.onSaveUserMailQueue),l.onWithoutApply("userMailQueue:remove",c.onRemoveUserMailQueue),l.onWithoutApply("mail_queue_waiting_interaction:save",c.onSaveMailQueueChannel),l.onWithoutApply("mail_queue_waiting_interaction:remove",c.onRemoveMailQueueChannel),i.rpc.getMailQueues().$promise.then((function(e){c.rpcMailQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{}})).then((function(){return i.user.getQueues({id:s.getCurrentUser().id,channel:"mail"}).$promise})).then((function(e){return c.myQueues=e.rows,i.rpc.getMailQueuesWaitingInteractions().$promise})).then((function(e){const t=u().filter(e.rows,(function(e){return u().includes(c.myQueues,{id:e.queue_id})}));e.rows=t,e.count=t.length,u().merge(c.rpcMailQueuesWaitingInteractions,e?u().keyBy(e.rows?e.rows:[],"id"):{})})).catch((function(e){console.error(e)})).finally((function(){for(let e=0;e<c.deleteMailQueuesWaitingInteractions.length;e+=1)delete c.rpcMailQueuesWaitingInteractions[c.deleteMailQueuesWaitingInteractions[e]];f=!1,c.deleteMailQueuesWaitingInteractions=[],g(),m()}));let h=!0,_=1;e.$watch("vm_dc.query.filter",(function(e,n){h?t((function(){h=!1})):(n||(_=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=_),c.getMailQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("mail_queue:save"),l.removeAllListeners("mailQueue:save"),l.removeAllListeners("mailQueue:update"),l.removeAllListeners("mailQueue:remove"),l.removeAllListeners("userMailQueue:save"),l.removeAllListeners("userMailQueue:remove"),l.removeAllListeners("mail_queue_waiting_interaction:save"),l.removeAllListeners("mail_queue_waiting_interaction:remove")}))}Ao.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const So=Ao;function wo(e,t,n,a,o,r,i,s,l){const c=this,d=["id","name","mapAgentsId","waiting"];let f=!0;function m(){const e=(c.queryChannels.page-1)*c.queryChannels.limit;c.paginatedInteractions=u().orderBy(c.rpcOpenchannelQueuesWaitingInteractions,["joinAt"],["desc"]),c.interactions=u().drop(c.paginatedInteractions,e).slice(0,c.queryChannels.limit)}function p(e){c.openchannelQueuesTotal=e.count?e.count:0,c.openchannelQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.openchannelQueues,(function(e,t){c.rpcOpenchannelQueues[t]&&(c.openchannelQueues[t].waiting=c.rpcOpenchannelQueues[t].waiting||0)}))}function g(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,p).$promise}c.openchannelQueues={},c.openchannelQueuesTotal=0,c.rpcOpenchannelQueues={},c.paginatedInteractions=[],c.deleteOpenchannelQueuesWaitingInteractions=[],c.rpcOpenchannelQueuesWaitingInteractions={},c.query={id:s.getCurrentUser().id,channel:"openchannel",fields:"id,name,mapAgentsId,waiting",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=p,c.getOpenchannelQueues=g,c.getSize=function(e){return u().size(e)},c.getColorByChannel=function(e){switch(e){case"chat":return"green-A700-bg";case"mail":return"teal-bg";case"sms":return"orange-bg";case"whatsapp":return"lime-A700-bg";case"openchannel":return"amber-A200-bg";case"fax":return"blue-grey-A200-bg";default:return"white-bg"}},c.paginate=m,c.onSaveQueue=function(e){c.openchannelQueues[e.id]&&c.rpcOpenchannelQueues[e.id]&&(u().merge(c.rpcOpenchannelQueues[e.id],u().pick(e,d)),u().merge(c.openchannelQueues[e.id],u().pick(e,d)))},c.onSaveOpenchannelQueue=function(e){u().isNil(e)||(c.rpcOpenchannelQueues[e.id]=u().pick(e,d))},c.onUpdateOpenchannelQueue=function(e){u().isNil(e)||(c.rpcOpenchannelQueues[e.id]&&u().merge(c.rpcOpenchannelQueues[e.id],u().pick(e,d)),c.openchannelQueues[e.id]&&u().merge(c.openchannelQueues[e.id],u().pick(e,d)))},c.onRemoveOpenchannelQueue=function(e){u().isNil(e)||(delete c.rpcOpenchannelQueues[e.id],delete c.openchannelQueues[e.id])},c.onSaveUserOpenchannelQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getOpenchannelQueues()},c.onRemoveUserOpenchannelQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getOpenchannelQueues()},c.onSaveOpenchannelQueueChannel=function(e){c.openchannelQueues[e.queue_id]&&(c.rpcOpenchannelQueuesWaitingInteractions[e.id]=e,m())},c.onRemoveOpenchannelQueueChannel=function(e){delete c.rpcOpenchannelQueuesWaitingInteractions[e.id],f&&c.deleteOpenchannelQueuesWaitingInteractions.push(e.id);m()},l.onWithoutApply("openchannel_queue:save",c.onSaveQueue),l.onWithoutApply("openchannelQueue:save",c.onSaveOpenchannelQueue),l.onWithoutApply("openchannelQueue:update",c.onUpdateOpenchannelQueue),l.onWithoutApply("openchannelQueue:remove",c.onRemoveOpenchannelQueue),l.onWithoutApply("userOpenchannelQueue:save",c.onSaveUserOpenchannelQueue),l.onWithoutApply("userOpenchannelQueue:remove",c.onRemoveUserOpenchannelQueue),l.onWithoutApply("openchannel_queue_waiting_interaction:save",c.onSaveOpenchannelQueueChannel),l.onWithoutApply("openchannel_queue_waiting_interaction:remove",c.onRemoveOpenchannelQueueChannel),i.rpc.getOpenchannelQueues().$promise.then((function(e){c.rpcOpenchannelQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{}})).then((function(){return i.user.getQueues({id:s.getCurrentUser().id,channel:"openchannel"}).$promise})).then((function(e){return c.myQueues=e.rows,i.rpc.getOpenchannelQueuesWaitingInteractions().$promise})).then((function(e){const t=u().filter(e.rows,(function(e){return u().includes(c.myQueues,{id:e.queue_id})}));e.rows=t,e.count=t.length,u().merge(c.rpcOpenchannelQueuesWaitingInteractions,e?u().keyBy(e.rows?e.rows:[],"id"):{})})).catch((function(e){console.error(e)})).finally((function(){for(let e=0;e<c.deleteOpenchannelQueuesWaitingInteractions.length;e+=1)delete c.rpcOpenchannelQueuesWaitingInteractions[c.deleteOpenchannelQueuesWaitingInteractions[e]];f=!1,c.deleteOpenchannelQueuesWaitingInteractions=[],g(),m()}));let h=!0,_=1;e.$watch("vm_dc.query.filter",(function(e,n){h?t((function(){h=!1})):(n||(_=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=_),c.getOpenchannelQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("openchannel_queue:save"),l.removeAllListeners("openchannelQueue:save"),l.removeAllListeners("openchannelQueue:update"),l.removeAllListeners("openchannelQueue:remove"),l.removeAllListeners("userOpenchannelQueue:save"),l.removeAllListeners("userOpenchannelQueue:remove"),l.removeAllListeners("openchannel_queue_waiting_interaction:save"),l.removeAllListeners("openchannel_queue_waiting_interaction:remove")}))}wo.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const Eo=wo;function Co(e,t,n,a,o,r,i,s,l){const c=this,d=["id","name","mapAgentsId","waiting"];let f=!0;function m(){const e=(c.queryChannels.page-1)*c.queryChannels.limit;c.paginatedInteractions=u().orderBy(c.rpcSmsQueuesWaitingInteractions,["joinAt"],["desc"]),c.interactions=u().drop(c.paginatedInteractions,e).slice(0,c.queryChannels.limit)}function p(e){c.smsQueuesTotal=e.count?e.count:0,c.smsQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.smsQueues,(function(e,t){c.rpcSmsQueues[t]&&(c.smsQueues[t].waiting=c.rpcSmsQueues[t].waiting||0)}))}function g(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,p).$promise}c.smsQueues={},c.smsQueuesTotal=0,c.rpcSmsQueues={},c.paginatedInteractions=[],c.deleteSmsQueuesWaitingInteractions=[],c.rpcSmsQueuesWaitingInteractions={},c.query={id:s.getCurrentUser().id,channel:"sms",fields:"id,name,mapAgentsId,waiting",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=p,c.getSmsQueues=g,c.getSize=function(e){return u().size(e)},c.getColorByChannel=function(e){switch(e){case"chat":return"green-A700-bg";case"mail":return"teal-bg";case"sms":return"orange-bg";case"whatsapp":return"lime-A700-bg";case"openchannel":return"amber-A200-bg";case"fax":return"blue-grey-A200-bg";default:return"white-bg"}},c.paginate=m,c.onSaveQueue=function(e){c.smsQueues[e.id]&&c.rpcSmsQueues[e.id]&&(u().merge(c.rpcSmsQueues[e.id],u().pick(e,d)),u().merge(c.smsQueues[e.id],u().pick(e,d)))},c.onSaveSmsQueue=function(e){u().isNil(e)||(c.rpcSmsQueues[e.id]=u().pick(e,d))},c.onUpdateSmsQueue=function(e){u().isNil(e)||(c.rpcSmsQueues[e.id]&&u().merge(c.rpcSmsQueues[e.id],u().pick(e,d)),c.smsQueues[e.id]&&u().merge(c.smsQueues[e.id],u().pick(e,d)))},c.onRemoveSmsQueue=function(e){u().isNil(e)||(delete c.rpcSmsQueues[e.id],delete c.smsQueues[e.id])},c.onSaveUserSmsQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getSmsQueues()},c.onRemoveUserSmsQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getSmsQueues()},c.onSaveSmsQueueChannel=function(e){c.smsQueues[e.queue_id]&&(c.rpcSmsQueuesWaitingInteractions[e.id]=e,m())},c.onRemoveSmsQueueChannel=function(e){delete c.rpcSmsQueuesWaitingInteractions[e.id],f&&c.deleteSmsQueuesWaitingInteractions.push(e.id);m()},l.onWithoutApply("sms_queue:save",c.onSaveQueue),l.onWithoutApply("smsQueue:save",c.onSaveSmsQueue),l.onWithoutApply("smsQueue:update",c.onUpdateSmsQueue),l.onWithoutApply("smsQueue:remove",c.onRemoveSmsQueue),l.onWithoutApply("userSmsQueue:save",c.onSaveUserSmsQueue),l.onWithoutApply("userSmsQueue:remove",c.onRemoveUserSmsQueue),l.onWithoutApply("sms_queue_waiting_interaction:save",c.onSaveSmsQueueChannel),l.onWithoutApply("sms_queue_waiting_interaction:remove",c.onRemoveSmsQueueChannel),i.rpc.getSmsQueues().$promise.then((function(e){c.rpcSmsQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{}})).then((function(){return i.user.getQueues({id:s.getCurrentUser().id,channel:"sms"}).$promise})).then((function(e){return c.myQueues=e.rows,i.rpc.getSmsQueuesWaitingInteractions().$promise})).then((function(e){const t=u().filter(e.rows,(function(e){return u().includes(c.myQueues,{id:e.queue_id})}));e.rows=t,e.count=t.length,u().merge(c.rpcSmsQueuesWaitingInteractions,e?u().keyBy(e.rows?e.rows:[],"id"):{})})).catch((function(e){console.error(e)})).finally((function(){for(let e=0;e<c.deleteSmsQueuesWaitingInteractions.length;e+=1)delete c.rpcSmsQueuesWaitingInteractions[c.deleteSmsQueuesWaitingInteractions[e]];f=!1,c.deleteSmsQueuesWaitingInteractions=[],g(),m()}));let h=!0,_=1;e.$watch("vm_dc.query.filter",(function(e,n){h?t((function(){h=!1})):(n||(_=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=_),c.getSmsQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("sms_queue:save"),l.removeAllListeners("smsQueue:save"),l.removeAllListeners("smsQueue:update"),l.removeAllListeners("smsQueue:remove"),l.removeAllListeners("userSmsQueue:save"),l.removeAllListeners("userSmsQueue:remove"),l.removeAllListeners("sms_queue_waiting_interaction:save"),l.removeAllListeners("sms_queue_waiting_interaction:remove")}))}Co.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const To=Co;function Io(e,t,n,a,o,r,i,s,l){const c=this,d=["type","waiting","dialMethod","dialActive"];function f(e){c.voiceQueuesTotal=e.count?e.count:0,c.voiceQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.voiceQueues,(function(e,t){c.rpcVoiceQueues[t]&&(c.voiceQueues[t].waiting=c.rpcVoiceQueues[t].waiting||0)}))}c.voiceQueues={},c.voiceQueuesTotal=0,c.rpcVoiceQueues={},c.getVoiceQueues={},c.rpcVoiceQueuesChannels={},c.addVoiceQueuesChannels={},c.deleteVoiceQueuesChannels=[],c.load=!0,c.query={id:s.getCurrentUser().id,fields:"id,name,type,dialMethod,dialActive",channel:"voice",type:"inbound",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=f,c.getVoiceQueues=function(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,f).$promise},c.getSize=function(e){return u().size(e)},c.onSaveQueue=function(e){c.voiceQueues[e.id]&&c.rpcVoiceQueues[e.id]&&(c.rpcVoiceQueues[e.id]=e,u().merge(c.voiceQueues[e.id],u().pick(e,d)))},c.onSaveChannel=function(e){"inbound"===e.type&&(e.queuecallerleaveAt?(delete c.rpcVoiceQueuesChannels[e.uniqueid],c.load&&c.deleteVoiceQueuesChannels.push(e.uniqueid)):(c.rpcVoiceQueuesChannels[e.uniqueid]=e,c.load&&(c.addVoiceQueuesChannels[e.uniqueid]=e)))},c.onUserVoiceQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getVoiceQueues()},c.onSaveVoiceQueue=function(e){u().isNil(e)||(c.rpcVoiceQueues[e.id]=u().pick(e,d))},c.onUpdateVoiceQueue=function(e){u().isNil(e)||(c.rpcVoiceQueues[e.id]&&u().merge(c.rpcVoiceQueues[e.id],u().pick(e,d)),c.voiceQueues[e.id]&&u().merge(c.voiceQueues[e.id],u().pick(e,d)))},c.onRemoveVoiceQueue=function(e){u().isNil(e)||(delete c.rpcVoiceQueues[e.id],delete c.voiceQueues[e.id])},l.onWithoutApply("voice_queue:save",c.onSaveQueue),l.onWithoutApply("voice_queue_channel:save",c.onSaveChannel),l.onWithoutApply("userVoiceQueue:save",c.onUserVoiceQueue),l.onWithoutApply("userVoiceQueue:remove",c.onUserVoiceQueue),l.onWithoutApply("voiceQueue:save",c.onSaveVoiceQueue),l.onWithoutApply("voiceQueue:remove",c.onRemoveVoiceQueue),l.onWithoutApply("voiceQueue:update",c.onUpdateVoiceQueue),i.user.getQueues(c.query).$promise.then((function(e){return c.myQueues=e,i.rpc.getVoiceQueues().$promise})).then((function(e){const t=e.rows,n=u().keyBy(t,"id");for(let e=0;e<c.myQueues.count;e++){const t=c.myQueues.rows[e];c.rpcVoiceQueues[t.id]=n[t.id]}return i.rpc.getVoiceQueuesChannels().$promise})).then((function(e){c.rpcVoiceQueuesChannels=e?u().keyBy(e.rows?u().filter(e.rows,(function(e){return!("inbound"!==e.type||e.queuecallerleaveAt||!u().find(c.myQueues.rows,{name:e.queue}))})):[],"uniqueid"):{}})).catch((function(e){console.error(e)})).finally((function(){u().merge(c.rpcVoiceQueuesChannels,c.addVoiceQueuesChannels);for(let e=0;e<c.deleteVoiceQueuesChannels.length;e+=1)delete c.rpcVoiceQueuesChannels[c.deleteVoiceQueuesChannels[e]];c.load=!1,c.addVoiceQueuesChannels={},c.deleteVoiceQueuesChannels=[],c.getVoiceQueues()}));let m=!0,p=1;e.$watch("vm_dc.query.filter",(function(e,n){m?t((function(){m=!1})):(n||(p=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=p),c.getVoiceQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("voice_queue:save"),l.removeAllListeners("voice_queue_channel:save"),l.removeAllListeners("userVoiceQueue:save"),l.removeAllListeners("userVoiceQueue:remove"),l.removeAllListeners("voiceQueue:save"),l.removeAllListeners("voiceQueue:update"),l.removeAllListeners("voiceQueue:remove")}))}Io.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const ko=Io;function Do(e,t,n,a,o,r,i,s,l){const c=this,d=["id","name","mapAgentsId","waiting"];let f=!0;function m(){const e=(c.queryChannels.page-1)*c.queryChannels.limit;c.paginatedInteractions=u().orderBy(c.rpcWhatsappQueuesWaitingInteractions,["joinAt"],["desc"]),c.interactions=u().drop(c.paginatedInteractions,e).slice(0,c.queryChannels.limit)}function p(e){c.whatsappQueuesTotal=e.count?e.count:0,c.whatsappQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{},u().forIn(c.whatsappQueues,(function(e,t){c.rpcWhatsappQueues[t]&&(c.whatsappQueues[t].waiting=c.rpcWhatsappQueues[t].waiting||0)}))}function g(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=i.user.getQueues(c.query,p).$promise}c.whatsappQueues={},c.whatsappQueuesTotal=0,c.rpcWhatsappQueues={},c.paginatedInteractions=[],c.deleteWhatsappQueuesWaitingInteractions=[],c.rpcWhatsappQueuesWaitingInteractions={},c.query={id:s.getCurrentUser().id,channel:"whatsapp",fields:"id,name,mapAgentsId,waiting",limit:10,page:1},c.queryChannels={limit:10,page:1},c.success=p,c.getWhatsappQueues=g,c.getSize=function(e){return u().size(e)},c.getColorByChannel=function(e){switch(e){case"chat":return"green-A700-bg";case"mail":return"teal-bg";case"sms":return"orange-bg";case"whatsapp":return"lime-A700-bg";case"openchannel":return"amber-A200-bg";case"fax":return"blue-grey-A200-bg";default:return"white-bg"}},c.paginate=m,c.onSaveQueue=function(e){c.whatsappQueues[e.id]&&c.rpcWhatsappQueues[e.id]&&(u().merge(c.rpcWhatsappQueues[e.id],u().pick(e,d)),u().merge(c.whatsappQueues[e.id],u().pick(e,d)))},c.onSaveWhatsappQueue=function(e){u().isNil(e)||(c.rpcWhatsappQueues[e.id]=u().pick(e,d))},c.onUpdateWhatsappQueue=function(e){u().isNil(e)||(c.rpcWhatsappQueues[e.id]&&u().merge(c.rpcWhatsappQueues[e.id],u().pick(e,d)),c.whatsappQueues[e.id]&&u().merge(c.whatsappQueues[e.id],u().pick(e,d)))},c.onRemoveWhatsappQueue=function(e){u().isNil(e)||(delete c.rpcWhatsappQueues[e.id],delete c.whatsappQueues[e.id])},c.onSaveUserWhatsappQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getWhatsappQueues()},c.onRemoveUserWhatsappQueue=function(e){u().toInteger(e.UserId)===s.getCurrentUser().id&&c.getWhatsappQueues()},c.onSaveWhatsappQueueChannel=function(e){c.whatsappQueues[e.queue_id]&&(c.rpcWhatsappQueuesWaitingInteractions[e.id]=e,m())},c.onRemoveWhatsappQueueChannel=function(e){delete c.rpcWhatsappQueuesWaitingInteractions[e.id],f&&c.deleteWhatsappQueuesWaitingInteractions.push(e.id);m()},l.onWithoutApply("whatsapp_queue:save",c.onSaveQueue),l.onWithoutApply("whatsappQueue:save",c.onSaveWhatsappQueue),l.onWithoutApply("whatsappQueue:update",c.onUpdateWhatsappQueue),l.onWithoutApply("whatsappQueue:remove",c.onRemoveWhatsappQueue),l.onWithoutApply("userWhatsappQueue:save",c.onSaveUserWhatsappQueue),l.onWithoutApply("userWhatsappQueue:remove",c.onRemoveUserWhatsappQueue),l.onWithoutApply("whatsapp_queue_waiting_interaction:save",c.onSaveWhatsappQueueChannel),l.onWithoutApply("whatsapp_queue_waiting_interaction:remove",c.onRemoveWhatsappQueueChannel),i.rpc.getWhatsappQueues().$promise.then((function(e){c.rpcWhatsappQueues=e?u().keyBy(e.rows?e.rows:[],"id"):{}})).then((function(){return i.user.getQueues({id:s.getCurrentUser().id,channel:"whatsapp"}).$promise})).then((function(e){return c.myQueues=e.rows,i.rpc.getWhatsappQueuesWaitingInteractions().$promise})).then((function(e){const t=u().filter(e.rows,(function(e){return u().includes(c.myQueues,{id:e.queue_id})}));e.rows=t,e.count=t.length,u().merge(c.rpcWhatsappQueuesWaitingInteractions,e?u().keyBy(e.rows?e.rows:[],"id"):{})})).catch((function(e){console.error(e)})).finally((function(){for(let e=0;e<c.deleteWhatsappQueuesWaitingInteractions.length;e+=1)delete c.rpcWhatsappQueuesWaitingInteractions[c.deleteWhatsappQueuesWaitingInteractions[e]];f=!1,c.deleteWhatsappQueuesWaitingInteractions=[],g(),m()}));let h=!0,_=1;e.$watch("vm_dc.query.filter",(function(e,n){h?t((function(){h=!1})):(n||(_=c.query.page),e!==n&&(c.query.page=1),e||(c.query.page=_),c.getWhatsappQueues())})),e.$on("$destroy",(function(){l.removeAllListeners("whatsapp_queue:save"),l.removeAllListeners("whatsappQueue:save"),l.removeAllListeners("whatsappQueue:update"),l.removeAllListeners("whatsappQueue:remove"),l.removeAllListeners("userWhatsappQueue:save"),l.removeAllListeners("userWhatsappQueue:remove"),l.removeAllListeners("whatsapp_queue_waiting_interaction:save"),l.removeAllListeners("whatsapp_queue_waiting_interaction:remove")}))}Do.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","Auth","socket"];const xo=Do;function Mo(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){!m.reloadingInteractions&&m.setting.faxInteractionsReloadTimeout>0&&function(e){e&&m.interactionsInterval&&t.cancel(m.interactionsInterval);m.interactionsInterval=t((function(){m.reloadingInteractions=!0,m.searchInProgress||g()}),1e3*m.setting.faxInteractionsReloadTimeout)}(!0),m.searchInProgress=!1,m.reloadingInteractions=!1,m.faxInteractions=e||{count:0,rows:[]};for(let e=0;e<m.faxInteractions.rows.length;e++)h(m.faxInteractions.rows[e])}function g(e){m.searchInProgress=!0,e||(m.query.page=1),m.query.offset=(m.query.page-1)*m.query.limit;let t=r.localStorage.getItem("motion2.home.fax:"+m.user.id);t=t?JSON.parse(t):{},t.query=m.query,r.localStorage.setItem("motion2.home.fax:"+m.user.id,JSON.stringify(t)),m.promise=s.faxInteraction.get(m.query,p).$promise.catch((()=>{d.error({title:"Search Error",msg:"An error occurred while searching data"}),m.searchInProgress=!1}))}function h(e){e.contactInfo=e.Contact?e.Contact.fax:void 0,"Unknown"===e.contactName&&(e.contactName=i.instant("APP.UNKNOWN"))}function _(e){let t;const n=u().find(m.faxInteractions.rows,{id:e.FaxInteractionId});n&&n.Users&&(t=u().find(n.Users,{id:e.UserId}),t||n.Users.push({id:e.UserId}))}function b(e){const t=u().find(m.faxInteractions.rows,{id:e.FaxInteractionId});t&&t.Users&&u().remove(t.Users,{id:e.UserId})}function y(e){if(e){const t=u().find(m.faxInteractions.rows,{id:e.id});if(t){if(t.Users=[],e.closed&&(t.unreadMessages=0),m.query.sort){const e=u().startsWith(m.query.sort,"-")?"desc":"asc";m.faxInteractions.rows=u().orderBy(m.faxInteractions.rows,u().trimStart(m.query.sort,"-"),e)}u().merge(t,u().pick(e,u().keys(t)))}else g(m.query.page)}}function v(e){if(e){const t=u().find(m.faxInteractions.rows,{id:e.id});t&&(t.Tags=e.tags||[],u().merge(t,u().pick(e,u().keys(t))))}}function A(e){if(e&&!e.secret){const t=u().find(m.faxInteractions.rows,{id:e.FaxInteractionId});if(t){const n=u().find(t.Messages,{id:e.id});n?u().merge(n,u().pick(e,u().keys(n))):(u().isNil(t.Messages)&&(t.Messages={count:0}),e.read||(t.Messages.count+=1))}}}m.user=l.getCurrentUser(),m.license={},m.setting={},m.tags={count:0,rows:[]},m.faxInteractions={count:0,rows:[]},m.query={includeAll:!0,sort:"-updatedAt",limit:10,page:1,read:null,closed:null},m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Account",column:"FaxAccountId",type:"multiselect",options:{route:{model:"user",action:"getFaxAccounts",params:{id:m.user.id,nolimit:!0}}}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},m.sectionColor="blue-grey",m.onInit=function(e,t){return m.license=e,m.setting=t,s.user["get"+u().upperFirst("faxAccounts")]({id:m.user.id,nolimit:!0}).$promise.then((function(e){return m.faxAccounts=e||{count:0,rows:[]},s.tag.get().$promise})).then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Account",key:"FaxAccountId",type:"multiselect",label:"DASHBOARDS.SELECT_ACCOUNT",options:m.faxAccounts.rows,clearAll:!1},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:m.user.id,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.fax:"+m.user.id);if(e)try{e=JSON.parse(e),e.query&&(m.query=u().merge(m.query,e.query),u().isEmpty(m.faxAccounts.rows)?m.query.FaxAccountId=[]:u().isEmpty(m.query.FaxAccountId)&&(m.query.FaxAccountId=u()(m.faxAccounts.rows).map("id").take().value()),m.query.sort&&m.query.sort.indexOf("lastMessage")>=0&&(m.query=u().omit(m.query,"sort")),m.query.includeAll=!0,m.isSearchBarVisible=!(m.query.search||!m.query.filter))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()},t={FaxAccountId:u().map(m.faxAccounts.rows,"id"),createdAt:e};m.query=u().merge(m.query,t)}c.on("faxInteraction:save",y),c.on("faxInteraction:update",y),c.on("faxInteractionTags:save",v),c.on("faxMessage:save",A),c.on("faxMessage:update",A),c.on("user_has_fax_interactions:save",_),c.on("user_has_fax_interactions:remove",b),g(m.query.page)}))},m.success=p,m.getFaxInteractions=g,m.showFaxInteraction=function(t,n){e.$parent.vm.addInteractionTab("fax",n)},m.downloadFaxInteraction=function(e,t,n){s.faxInteraction.download({id:t.id,attachments:n}).$promise.then((function(e){const n=[e.buffer],a="fax-interaction"+t.id+".zip",o=new Blob(n,{type:e.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"downloadFaxInteraction",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.disposeInteraction=function(e,t){const o=m.user.voicePause||m.user.chatPause||m.user.mailPause||m.user.openchannelPause||m.user.faxPause,r=!t.Account.mandatoryDisposition;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),clickOutsideToClose:r,escapeToClose:r,onRemoving:function(){m.user&&t.Account.mandatoryDisposition&&!o&&s.user.unpause({id:m.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{user:m.user,channel:"fax",interaction:t}})},m.getContactLabel=h,m.getAgentLabel=function(e){if(e.UserId)return e.UserId===m.user.id?i.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">";return i.instant("DASHBOARDS.NOT_ASSIGNED")},m.getFaxAccountLabel=function(e){if(e.Account)return e.Account.key;return i.instant("APP.UNKNOWN")},m.composeFaxInteraction=function(t,o){n.show({controller:"ComposeFaxInteractionDialogController",controllerAs:"vm",templateUrl:La,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{account:o,message:{},type:"new",interaction:{}},fullscreen:!0}).then((function(t){if(t){if(!t.message||!t.message.savedAsDraft){const n=t;return s.faxAccount.send({id:o.id},n).$promise.then((function(t){d.success({title:"Message properly sent!",msg:"Message has been sent!"}),e.$parent.vm.addInteractionTab("fax",t)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:"FAX:SEND",msg:e.data?JSON.stringify(e.data):e.message||e.toString()})}))}{const e={channel:"fax",account:o,message:t.message,contact:t.contact};f.add(e)}}}))},m.openAdvancedSearch=function(){n.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{color:m.sectionColor,fields:m.advancedSearch.fields,storagePath:"home.fax"},fullscreen:!0}).then((function(e){m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply&&(m.query.search=e.value,g())})).catch((function(e){d.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},e.$on("$destroy",(function(){c.removeAllListeners("faxMessage:save"),c.removeAllListeners("faxMessage:update"),c.removeAllListeners("faxInteraction:save"),c.removeAllListeners("faxInteractionTags:save"),c.removeAllListeners("faxInteraction:update"),c.removeAllListeners("user_has_fax_interactions:save"),c.removeAllListeners("user_has_fax_interactions:remove"),m.interactionsInterval&&t.cancel(m.interactionsInterval)}))}Mo.$inject=["$scope","$interval","$mdDialog","$document","$window","$translate","api","Auth","socket","toasty","draftManager"];const Po=Mo;function Oo(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){!m.reloadingInteractions&&m.setting.mailInteractionsReloadTimeout>0&&w(!0),m.searchInProgress=!1,m.reloadingInteractions=!1,m.mailInteractions=e||{count:0,rows:[]};for(let e=0;e<m.mailInteractions.rows.length;e++)_(m.mailInteractions.rows[e])}function g(e){m.searchInProgress=!0,e||(m.query.page=1),(void 0===m.query.closed||null===m.query.closed||m.query.closed)&&delete m.query.substatus,m.query.offset=(m.query.page-1)*m.query.limit;let t=r.localStorage.getItem("motion2.home.mail:"+m.user.id);t=t?JSON.parse(t):{},t.query=m.query,r.localStorage.setItem("motion2.home.mail:"+m.user.id,JSON.stringify(t)),m.promise=s.mailInteraction.get(m.query,p).$promise.catch((()=>{d.error({title:"Search Error",msg:"An error occurred while searching data"}),m.searchInProgress=!1}))}function h(t,n){e.$parent.vm.addInteractionTab("mail",n)}function _(e){u().isEmpty(e.to)||!e.Account||u().includes(e.to,e.Account.email)?e.contactInfo=e.Contact?e.Contact.email:void 0:e.contactInfo=e.to.split("<").pop().split(">")[0],"Unknown"===e.contactName&&(e.contactName=i.instant("APP.UNKNOWN"))}function b(e){let t;const n=u().find(m.mailInteractions.rows,{id:e.MailInteractionId});n&&n.Users&&(t=u().find(n.Users,{id:e.UserId}),t||n.Users.push({id:e.UserId}))}function y(e){const t=u().find(m.mailInteractions.rows,{id:e.MailInteractionId});t&&t.Users&&u().remove(t.Users,{id:e.UserId})}function v(e){if(e){const t=u().find(m.mailInteractions.rows,{id:e.id});if(t){if(t.Users=[],e.closed&&(t.unreadMessages=0),m.query.sort){const e=u().startsWith(m.query.sort,"-")?"desc":"asc";m.mailInteractions.rows=u().orderBy(m.mailInteractions.rows,u().trimStart(m.query.sort,"-"),e)}u().merge(t,u().pick(e,u().keys(t)))}else g(m.query.page)}}function A(e){if(e){const t=u().find(m.mailInteractions.rows,{id:e.id});t&&(t.Tags=e.tags||[],u().merge(t,u().pick(e,u().keys(t))))}}function S(e){if(e&&!e.secret){const t=u().find(m.mailInteractions.rows,{id:e.MailInteractionId});if(t){const n=u().find(t.Messages,{id:e.id});n?u().merge(n,u().pick(e,u().keys(n))):(u().isNil(t.Messages)&&(t.Messages={count:0}),e.read||(t.Messages.count+=1))}}}function w(e){e&&m.interactionsInterval&&t.cancel(m.interactionsInterval),m.interactionsInterval=t((function(){m.reloadingInteractions=!0,m.searchInProgress||g()}),1e3*m.setting.mailInteractionsReloadTimeout)}m.user=l.getCurrentUser(),m.license={},m.setting={},m.tags={count:0,rows:[]},m.mailInteractions={count:0,rows:[]},m.query={includeAll:!0,sort:"-updatedAt",limit:10,page:1,read:null,closed:null},m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Subject",column:"subject",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Body",column:"plainBody",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Substatus",column:"substatus",type:"multiselect",options:{field:"name",route:{model:"mailSubstatus",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Account",column:"MailAccountId",type:"multiselect",options:{route:{model:"user",action:"getMailAccounts",params:{id:m.user.id,nolimit:!0}}}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},m.sectionColor="teal",m.onInit=function(e,t){return m.license=e,m.setting=t,s.user["get"+u().upperFirst("mailAccounts")]({id:m.user.id,nolimit:!0}).$promise.then((function(e){return m.mailAccounts=e||{count:0,rows:[]},s.tag.get().$promise})).then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){return s.mailSubstatus.get({nolimit:!0}).$promise})).then((function(e){m.subStatuses=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Substatus",key:"substatus",type:"select",label:"DASHBOARDS.SELECT_SUBSTATUS",options:m.subStatuses.rows,customOptions:[{value:"null",translate:"DASHBOARDS.NONE"},{value:void 0,translate:"DASHBOARDS.ALL"}],ngValue:"name",ngIf:"closed === 0"},{name:"Account",key:"MailAccountId",type:"multiselect",label:"DASHBOARDS.SELECT_ACCOUNT",options:m.mailAccounts.rows,clearAll:!1},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:m.user.id,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.mail:"+m.user.id);if(e)try{e=JSON.parse(e),e.query&&(m.query=u().merge(m.query,e.query),u().isEmpty(m.mailAccounts.rows)?m.query.MailAccountId=[]:u().isEmpty(m.query.MailAccountId)&&(m.query.MailAccountId=u()(m.mailAccounts.rows).map("id").take().value()),m.query.sort&&m.query.sort.indexOf("lastMessage")>=0&&(m.query=u().omit(m.query,"sort")),m.query.includeAll=!0,m.isSearchBarVisible=!(m.query.search||!m.query.filter))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()},t={MailAccountId:u().map(m.mailAccounts.rows,"id"),createdAt:e};m.query=u().merge(m.query,t)}c.on("mailInteraction:save",v),c.on("mailInteraction:update",v),c.on("mailInteractionTags:save",A),c.on("mailMessage:save",S),c.on("mailMessage:update",S),c.on("user_has_mail_interactions:save",b),c.on("user_has_mail_interactions:remove",y),g(m.query.page),m.setting.mailInteractionsReloadTimeout>0&&w()}))},m.success=p,m.getMailInteractions=g,m.showMailInteraction=h,m.downloadMailInteraction=function(e,t,n){s.mailInteraction.download({id:t.id,attachments:n}).$promise.then((function(e){const n=[e.buffer],a="mail-interaction"+t.id+".zip",o=new Blob(n,{type:e.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"downloadMailInteraction",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.disposeInteraction=function(e,t){const o=m.user.voicePause||m.user.chatPause||m.user.mailPause||m.user.openchannelPause||m.user.faxPause,r=!t.Account.mandatoryDisposition;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),clickOutsideToClose:r,escapeToClose:r,onRemoving:function(){m.user&&t.Account.mandatoryDisposition&&!o&&s.user.unpause({id:m.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{user:m.user,channel:"mail",interaction:t}})},m.getContactLabel=_,m.getAgentLabel=function(e){if(e.UserId)return e.UserId===m.user.id?i.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">";return i.instant("DASHBOARDS.NOT_ASSIGNED")},m.getMailAccountLabel=function(e){if(e.Account)return e.Account.key;return i.instant("APP.UNKNOWN")},m.composeMailInteraction=function(t,o){n.show({controller:"ComposeMailInteractionDialogController",controllerAs:"vm",templateUrl:$a,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{account:o,message:{},type:"new",interaction:{}},fullscreen:!0}).then((function(t){if(t){if(!t.message||!t.message.savedAsDraft){const r=t;return s.mailAccount.send({id:o.id},r).$promise.then((function(t){if(t&&t.Messages&&t.Messages.length){if(r.attachments&&r.attachments.length)for(let e=0;e<r.attachments.length;e+=1)s.attachment.update({id:r.attachments[e].id},{MailMessageId:u().head(t.Messages).id});if(d.success({title:"Message properly sent!",msg:"Message has been sent!"}),t.closed){t.disposition=null;const e=!o.mandatoryDisposition,r=m.user.voicePause||m.user.chatPause||m.user.mailPause||m.user.openchannelPause||m.user.faxPause;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),onRemoving:function(){m.user&&o.mandatoryDisposition&&!r&&s.user.unpause({id:m.user.id}).$promise.catch((function(e){console.error(e)}))},clickOutsideToClose:e,escapeToClose:e,locals:{user:m.user,channel:"mail",interaction:t}})}else e.$parent.vm.addInteractionTab("mail",t)}})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"MAILACCOUNT:SEND",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}{const e={channel:"mail",account:o,message:t.message,contact:t.contact};f.add(e)}}}))},m.openAdvancedSearch=function(){n.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{color:m.sectionColor,fields:m.advancedSearch.fields,storagePath:"home.mail"},fullscreen:!0}).then((function(e){m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply&&(m.query.search=e.value,g())})).catch((function(e){d.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},e.$on("openMailDraft",(function(t,o){o.interaction?(o.interaction.isDraft=!0,h(null,o.interaction)):n.show({controller:"ComposeMailInteractionDialogController",controllerAs:"vm",templateUrl:$a,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{account:o.account,message:o.content,type:"draft",interaction:{}},fullscreen:!0}).then((function(t){if(t){if(!t.message||!t.message.savedAsDraft){const r=t;return s.mailAccount.send({id:o.account.id},r).$promise.then((function(t){if(f.remove(o.id),t&&t.Messages&&t.Messages.length){if(r.attachments&&r.attachments.length)for(let e=0;e<r.attachments.length;e+=1)s.attachment.update({id:r.attachments[e].id},{MailMessageId:u().head(t.Messages).id});if(d.success({title:"Message properly sent!",msg:"Message has been sent!"}),t.closed){t.disposition=null;const e=!o.account.mandatoryDisposition,r=m.user.voicePause||m.user.chatPause||m.user.mailPause||m.user.openchannelPause||m.user.faxPause;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),onRemoving:function(){m.user&&o.account.mandatoryDisposition&&!r&&s.user.unpause({id:m.user.id}).$promise.catch((function(e){console.error(e)}))},clickOutsideToClose:e,escapeToClose:e,locals:{user:m.user,channel:"mail",interaction:t}})}else e.$parent.vm.addInteractionTab("mail",t)}})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"MAILACCOUNT:SEND",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}{const e={id:o.id,channel:"mail",account:t.account,message:t.message};f.update(e)}}}))})),e.$on("$destroy",(function(){c.removeAllListeners("mailMessage:save"),c.removeAllListeners("mailMessage:update"),c.removeAllListeners("mailInteraction:save"),c.removeAllListeners("mailInteractionTags:save"),c.removeAllListeners("mailInteraction:update"),c.removeAllListeners("user_has_mail_interactions:save"),c.removeAllListeners("user_has_mail_interactions:remove"),m.interactionsInterval&&t.cancel(m.interactionsInterval)}))}Oo.$inject=["$scope","$interval","$mdDialog","$document","$window","$translate","api","Auth","socket","toasty","draftManager"];const Ro=Oo;function No(e,t,n,a,o,r,i,s){const l=this;function c(e){l.searchInProgress=!1,l.contacts=e||{count:0,rows:[]}}function d(e){l.searchInProgress=!0,r.cmContact.describe({id:l.query.ListId}).$promise.then((function(e){return u()(e.toJSON()).omit("UserId").values().map((function(e){return function(e){const t={name:u().startCase(e.displayName),column:e.columnName,options:{}};if(e.custom)switch(e.custom.type){case"text":t.type="text";break;case"select":t.type="multiselect",t.values=u().map(JSON.parse(e.custom.values),(function(e,t){return{id:t,name:e.value,value:e.value}})),t.options.field="name";break;case"switch":t.type="select",t.values=[{id:1,translate:"DASHBOARDS.ENABLED"},{id:0,translate:"DASHBOARDS.DISABLED"}],t.options.excludedOperators=["$ne"];break;case"number":t.type="number";break;case"datetime":t.type="date"}else switch(e.columnName){case"dateOfBirth":t.type="date";break;case"CompanyId":t.name="Company",t.type="autocomplete",t.options.route={model:"cmCompany",action:"get",params:{fields:"id,name",nolimit:!0}},t.options.searchFields=["name"],t.options.excludedOperators=["$ne"];break;case"ListId":t.name="List",t.type="autocomplete",t.options.route={model:"user",action:"getLists",params:{id:l.currentUser.id,fields:"id,name",nolimit:!0}},t.options.searchFields=["name"],t.options.excludedOperators=["$ne"];break;default:u().includes(e.type.toLowerCase(),"int")?t.type="number":u().includes(e.type.toLowerCase(),"date")?t.type="date":t.type="text"}return t}(e)})).value()})).then((function(e){l.advancedSearch.fields=e;const t={name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}};let n=u().findIndex(e,(function(e){return u().startsWith(e.column,"cf_")}))||e.length-1;n<0&&(n=e.length),l.advancedSearch.fields.splice(n,0,t)})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"DESCRIBE_CM_CONTACTS",msg:e.data?JSON.stringify(e.data.message):e.toString()})})),e||(l.query.page=1),l.query.offset=(l.query.page-1)*l.query.limit;let t=i.localStorage.getItem("motion2.home.mycontacts:"+l.currentUser.id);t=t?JSON.parse(t):{},t.query=l.query,i.localStorage.setItem("motion2.home.mycontacts:"+l.currentUser.id,JSON.stringify(t)),l.query.search&&(l.advancedQuery=u().omit(l.query,"id")),l.promise=(l.query.search?r.cmContact.get(l.advancedQuery,c).$promise:r.user.getContacts(l.query,c).$promise).catch((()=>{s.error({title:"Search Error",msg:"An error occurred while searching data"}),l.searchInProgress=!1}))}l.currentUser=o.getCurrentUser(),l.lists={},l.contacts={count:0,rows:[]},l.tags={count:0,rows:[]},l.query={includeAll:!0,id:l.currentUser.id,sort:"-updatedAt",limit:10,page:1},l.advancedSearch={fields:[]},l.sectionColor="red",l.getContacts=d,l.refreshContacts=function(){d()},l.mergeContact=function(t,n){a.show({controller:"MergeContactDialogController",controllerAs:"vm",templateUrl:Ra,parent:angular.element(e.body),targetEvent:t,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:n.id})}],lists:["apiResolver",function(e){return e.resolve("user@getLists",{id:l.currentUser.id,fields:"id,name"})}]},locals:{contacts:l.contacts.rows}})},l.duplicateContact=function(t,n){a.show({controller:"DuplicateContactDialogController",controllerAs:"vm",templateUrl:Oa,parent:angular.element(e.body),targetEvent:t,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:n.id})}],lists:["apiResolver",function(e){return e.resolve("user@getLists",{id:l.currentUser.id,fields:"id,name"})}]},locals:{contacts:l.contacts.rows}})},l.openContact=function(e,n){t.$parent.vm.addContactTab(n)},l.call=t.$parent.vm.call,l.onInit=function(){r.cmList.get({fields:"id,name,dialPrefix",sort:"name",nolimit:!0}).$promise.then((function(e){return l.lists=e||{count:0,rows:[]},l.listsMap=u().keyBy(l.lists.rows,"id"),r.tag.get().$promise})).then((function(e){l.tags=e||{count:0,rows:[]}})).then((function(){l.quickFilters=[{name:"List",key:"ListId",type:"multiselect",label:"CONTACTMANAGER.SELECT_LIST",options:l.lists.rows,clearAll:!1},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:l.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=i.localStorage.getItem("motion2.home.mycontacts:"+l.currentUser.id);if(e)try{e=JSON.parse(e),e.query&&(l.query=u().merge(l.query,e.query),u().isEmpty(l.lists.rows)?l.query.ListId=[]:u().isEmpty(l.query.ListId)&&(l.query.ListId=u()(l.lists.rows).map("id").take().value()))}catch(e){console.error(e)}else l.query.ListId=u().map(l.lists.rows,"id");l.isSearchBarVisible=!(l.query.search||!l.query.filter),d()}))},l.openAdvancedSearch=function(){a.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(e.body),clickOutsideToClose:!1,locals:{color:l.sectionColor,fields:l.advancedSearch.fields,storagePath:"home.mycontacts"},fullscreen:!0}).then((function(e){l.isSearchBarVisible=!(e.value||!l.query.filter),e.apply&&(l.query.search=e.value?e.value+="||User:=$eq["+l.currentUser.id+"]":e.value,d())})).catch((function(e){s.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}}No.$inject=["$document","$scope","$timeout","$mdDialog","Auth","api","$window","toasty"];const Lo=No;function $o(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){!m.reloadingInteractions&&m.setting.openchannelInteractionsReloadTimeout>0&&S(!0),m.searchInProgress=!1,m.reloadingInteractions=!1,m.openchannelInteractions=e||{count:0,rows:[]};for(let e=0;e<m.openchannelInteractions.rows.length;e++)h(m.openchannelInteractions.rows[e])}function g(e){m.searchInProgress=!0,e||(m.query.page=1),m.query.offset=(m.query.page-1)*m.query.limit;let t=r.localStorage.getItem("motion2.home.openchannel:"+m.user.id);t=t?JSON.parse(t):{},t.query=m.query,r.localStorage.setItem("motion2.home.openchannel:"+m.user.id,JSON.stringify(t)),m.promise=s.openchannelInteraction.get(m.query,p).$promise.catch((()=>{d.error({title:"Search Error",msg:"An error occurred while searching data"}),m.searchInProgress=!1}))}function h(e){"Unknown"===e.contactName&&(e.contactName=i.instant("APP.UNKNOWN"))}function _(e){let t;const n=u().find(m.openchannelInteractions.rows,{id:e.OpenchannelInteractionId});n&&n.Users&&(t=u().find(n.Users,{id:e.UserId}),t||n.Users.push({id:e.UserId}))}function b(e){const t=u().find(m.openchannelInteractions.rows,{id:e.OpenchannelInteractionId});t&&t.Users&&u().remove(t.Users,{id:e.UserId})}function y(e){if(e){const t=u().find(m.openchannelInteractions.rows,{id:e.id});if(t){if(t.Users=[],e.closed&&(t.unreadMessages=0),m.query.sort){const e=u().startsWith(m.query.sort,"-")?"desc":"asc";m.openchannelInteractions.rows=u().orderBy(m.openchannelInteractions.rows,u().trimStart(m.query.sort,"-"),e)}u().merge(t,u().pick(e,u().keys(t)))}else g(m.query.page)}}function v(e){if(e){const t=u().find(m.openchannelInteractions.rows,{id:e.id});t&&(t.Tags=e.tags||[],u().merge(t,u().pick(e,u().keys(t))))}}function A(e){if(e&&!e.secret){const t=u().find(m.openchannelInteractions.rows,{id:e.OpenchannelInteractionId});if(t){const n=u().find(t.Messages,{id:e.id});n?u().merge(n,u().pick(e,u().keys(n))):(u().isNil(t.Messages)&&(t.Messages={count:0}),e.read||(t.Messages.count+=1))}}}function S(e){e&&m.interactionsInterval&&t.cancel(m.interactionsInterval),m.interactionsInterval=t((function(){m.reloadingInteractions=!0,m.searchInProgress||g()}),1e3*m.setting.openchannelInteractionsReloadTimeout)}m.user=l.getCurrentUser(),m.license={},m.setting={},m.tags={count:0,rows:[]},m.openchannelInteractions={count:0,rows:[]},m.query={includeAll:!0,sort:"-updatedAt",limit:10,page:1,read:null,closed:null},m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Account",column:"OpenchannelAccountId",type:"multiselect",options:{route:{model:"user",action:"getOpenchannelAccounts",params:{id:m.user.id,nolimit:!0}}}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},m.sectionColor="amber",m.onInit=function(e,t){return m.license=e,m.setting=t,s.user["get"+u().upperFirst("openchannelAccounts")]({id:m.user.id,nolimit:!0}).$promise.then((function(e){return m.openchannelAccounts=e||{count:0,rows:[]},s.tag.get().$promise})).then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Account",key:"OpenchannelAccountId",type:"multiselect",label:"DASHBOARDS.SELECT_ACCOUNT",options:m.openchannelAccounts.rows,clearAll:!1},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:m.user.id,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.openchannel:"+m.user.id);if(e)try{e=JSON.parse(e),e.query&&(m.query=u().merge(m.query,e.query),u().isEmpty(m.openchannelAccounts.rows)?m.query.OpenchannelAccountId=[]:u().isEmpty(m.query.OpenchannelAccountId)&&(m.query.OpenchannelAccountId=u()(m.openchannelAccounts.rows).map("id").take().value()),m.query.sort&&m.query.sort.indexOf("lastMessage")>=0&&(m.query=u().omit(m.query,"sort")),m.query.includeAll=!0,m.isSearchBarVisible=!(m.query.search||!m.query.filter))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()},t={OpenchannelAccountId:u().map(m.openchannelAccounts.rows,"id"),createdAt:e};m.query=u().merge(m.query,t)}c.on("openchannelInteraction:save",y),c.on("openchannelInteraction:update",y),c.on("openchannelInteractionTags:save",v),c.on("openchannelMessage:save",A),c.on("openchannelMessage:update",A),c.on("user_has_openchannel_interactions:save",_),c.on("user_has_openchannel_interactions:remove",b),g(m.query.page),m.setting.openchannelInteractionsReloadTimeout>0&&S()}))},m.success=p,m.getOpenchannelInteractions=g,m.showOpenchannelInteraction=function(t,n){e.$parent.vm.addInteractionTab("openchannel",n)},m.downloadOpenchannelInteraction=function(e,t,n){s.openchannelInteraction.download({id:t.id,attachments:n}).$promise.then((function(e){const n=[e.buffer],a="openchannel-interaction"+t.id+".zip",o=new Blob(n,{type:e.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"downloadOpenchannelInteraction",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.disposeInteraction=function(e,t){const o=m.user.voicePause||m.user.chatPause||m.user.mailPause||m.user.openchannelPause||m.user.faxPause,r=!t.Account.mandatoryDisposition;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),clickOutsideToClose:r,escapeToClose:r,onRemoving:function(){m.user&&t.Account.mandatoryDisposition&&!o&&s.user.unpause({id:m.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{user:m.user,channel:"openchannel",interaction:t}})},m.getContactLabel=h,m.getAgentLabel=function(e){if(e.UserId)return e.UserId===m.user.id?i.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">";return i.instant("DASHBOARDS.NOT_ASSIGNED")},m.getOpenchannelAccountLabel=function(e){if(e.Account)return e.Account.key;return i.instant("APP.UNKNOWN")},m.composeOpenchannelInteraction=function(t,o){n.show({controller:"ComposeOpenchannelInteractionDialogController",controllerAs:"vm",templateUrl:Ua,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{account:o,message:{},type:"new",interaction:{}},fullscreen:!0}).then((function(t){if(t){if(!t.message||!t.message.savedAsDraft){const n=t;return s.openchannelAccount.send({id:o.id},n).$promise.then((function(t){d.success({title:"Message properly sent!",msg:"Message has been sent!"}),e.$parent.vm.addInteractionTab("openchannel",t)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"OPENCHANNELACCOUNT:SEND",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}{const e={channel:"openchannel",account:o,message:t.message,contact:t.contact};f.add(e)}}}))},m.openAdvancedSearch=function(){n.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{color:m.sectionColor,fields:m.advancedSearch.fields,storagePath:"home.openchannel"},fullscreen:!0}).then((function(e){m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply&&(m.query.search=e.value,g())})).catch((function(e){d.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},e.$on("$destroy",(function(){c.removeAllListeners("openchannelMessage:save"),c.removeAllListeners("openchannelMessage:update"),c.removeAllListeners("openchannelInteraction:save"),c.removeAllListeners("openchannelInteractionTags:save"),c.removeAllListeners("openchannelInteraction:update"),c.removeAllListeners("user_has_openchannel_interactions:save"),c.removeAllListeners("user_has_openchannel_interactions:remove"),m.interactionsInterval&&t.cancel(m.interactionsInterval)}))}$o.$inject=["$scope","$interval","$mdDialog","$document","$window","$translate","api","Auth","socket","toasty","draftManager"];const Uo=$o;function jo(e,t,n,a,o,r,i){const s=this;function l(e,t,n){s.license=e,s.setting=t,s.plugin=n}s.currentUser=i.getCurrentUser(),s.plugin={},t.$on("pluginUpdated",(function(e,t){s.plugin=t.plugin})),s.onInit=l,s.getTrustedURL=function(){return r.trustAsResourceUrl(s.plugin.agentUrl)},l()}jo.$inject=["$document","$scope","$timeout","$mdDialog","$stateParams","$sce","Auth"];const Fo=jo;function qo(e,t,n,a,o,r,i,s,l){const c=this;function d(){c.agentsQuery.offset=(c.agentsQuery.page-1)*c.agentsQuery.limit,l.update("motion2.home.presence.agents:"+c.currentUser.id,c.agentsQuery,"query"),o.user.getPresence(c.agentsQuery).$promise.then((function(e){c.agents={count:e.count,rows:u().filter(e.rows,(function(e){return e.id!==c.currentUser.id}))}})).catch((function(){s.error({title:n.instant("DASHBOARDS.AGENT_PRESENCE"),msg:n.instant("CONTACTMANAGER.NOTIFICATIONS.NO_DATA_ERROR")})}))}function f(){c.queuesQuery.offset=(c.queuesQuery.page-1)*c.queuesQuery.limit,l.update("motion2.home.presence.queues:"+c.currentUser.id,c.queuesQuery,"query"),o.voiceQueue.get(c.queuesQuery).$promise.then((function(e){return c.voiceQueues=e||{rows:[],count:0},o.rpc.getVoiceQueuesChannels().$promise.then((function(e){e.rows.forEach((function(e){const t=u().find(c.voiceQueues.rows,["name",e.name]);t&&(t.calls||(t.calls=[]),t.calls.push(e))}))}))})).catch((function(){s.error({title:n.instant("VOICE.VOICEQUEUES"),msg:n.instant("CONTACTMANAGER.NOTIFICATIONS.NO_DATA_ERROR")})}))}function m(e){return 0===c.selectedTab?e:"xcallyQueueExtension"+e}function p(e,t,n,a){const o=u().find(c.agents.rows,["id",e]);o&&(o.status=!1===t?"offline":a?"pause":"unavailable"===n?n:u().includes(["idle","unknown","ringing",null,void 0],n)?"online":"busy")}function g(e){e.id!==c.currentUser.id&&p(e.id,e.online,e.voiceStatus,e.voicePause)}c.currentUser=r.getCurrentUser(),c.agents={count:0,rows:[]},c.agentsQuery={fields:"id,name,internal,online",role:"agent",sort:"name",limit:10,page:1},c.queuesQuery={fields:"id,name",type:"inbound",sort:"name",limit:10,page:1},c.onAgentsTabSelection=function(){if(c.agentsQuery.filter||c.agentsQuery.teams||c.agentsQuery.queues)return;u().merge(c.agentsQuery,l.get("motion2.home.presence.agents:"+c.currentUser.id,"query")),c.isSearchBarVisible=!!c.agentsQuery.filter,a.all([a((function(e,t){o.team.get({fields:"id,name",sort:"name",nolimit:!0}).$promise.then((function(t){c.teams=t||{rows:[],count:0},e()})).catch((function(){s.error({title:n.instant("STAFF.TEAMS"),msg:n.instant("CONTACTMANAGER.NOTIFICATIONS.NO_DATA_ERROR")}),t()}))})),a((function(e,t){o.voiceQueue.get({fields:"id,name",type:"inbound",sort:"name",nolimit:!0}).$promise.then((function(t){c.queues=t||{rows:[],count:0},e()})).catch((function(){s.error({title:n.instant("VOICE.VOICEQUEUES"),msg:n.instant("CONTACTMANAGER.NOTIFICATIONS.NO_DATA_ERROR")}),t()}))}))]).then((function(){c.quickFilters=[{name:"Team",key:"teams",type:"multiselect",label:"DASHBOARDS.SELECT_TEAM",options:c.teams.rows},{name:"Queue",key:"queues",type:"multiselect",label:"DASHBOARDS.SELECT_QUEUE",options:c.queues.rows}],d()})).catch((function(){s.error({title:n.instant("DASHBOARDS.AGENT_PRESENCE"),msg:n.instant("DASHBOARDS.ERRORS.FAILED_INITIALIZATION")})}))},c.onQueuesTabSelection=function(){if(c.queuesQuery.filter)return;u().merge(c.queuesQuery,l.get("motion2.home.presence.queues:"+c.currentUser.id,"query")),c.isSearchBarVisible=!!c.queuesQuery.filter,f()},c.getAgents=d,c.getVoiceQueues=f,c.originateCall=function(e){t.$broadcast("webrtc::call",{target:m(e)})},c.transferCall=function(e){t.$broadcast("webrtc::transfer",{target:m(e)})},i.on("user:presence",(function(e){if(e.id===c.currentUser.id)return;p(e.id,e.online,e.voiceStatus,e.voicePause)})),i.on("user:update",g),i.on("voice_queue_presence:save",(function(e){if(!c.voiceQueues&&c.voiceQueues.rows)return;const t=u().find(c.voiceQueues.rows,["name",e.name]);if(!t)return;t.calls||(t.calls=[]);if(u().some(t.calls,["uniqueid",e.uniqueid]))return;t.calls.push(e)})),i.on("voice_queue_presence:remove",(function(e){const t=u().find(c.voiceQueues.rows,["name",e.name]);if(!t)return;u().remove(t.calls,["uniqueid",e.uniqueid])})),e.$on("$destroy",(function(){i.removeListener("user:update",g),i.removeAllListeners("user:presence"),i.removeAllListeners("voice_queue_presence:save"),i.removeAllListeners("voice_queue_presence:remove")}))}qo.$inject=["$scope","$rootScope","$translate","$q","api","Auth","socket","toasty","localStorageManager"];const Yo=qo;function Ho(e,t,n,a,r,i){const s=this;function l(e){s.searchInProgress=!1,s.voiceRecordings=e||{count:0,rows:[]}}function c(){s.searchInProgress=!0,s.query.offset=(s.query.page-1)*s.query.limit;const e={query:s.query};t.localStorage.setItem("motion2.home.recordings:"+s.currentUser.id,JSON.stringify(e)),s.promise=a.voiceRecording.get(s.query,l).$promise.catch((()=>{r.error({title:"Search Error",msg:"An error occurred while searching data"}),s.searchInProgress=!1}))}s.currentUser=i.getCurrentUser(),s.voiceRecordings={},s.table="voiceRecordings",s.query={UserId:s.currentUser.id,fields:"createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId",sort:"-updatedAt",limit:10,page:1,type:null},s.downloadfile=function(e){return a.voiceRecording.download({id:e.id,exists:!0}).$promise.then((function(t){const n=[t.buffer],a=new Blob(n,{type:t.type}),o=window.document.createElement("a");o.setAttribute("href",URL.createObjectURL(a)),o.setAttribute("download",e.uniqueid+e.format),o.click()})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceRecording",msg:e.data?JSON.stringify(e.data):e.toString()})}))},s.downloadtranscribe=function(e){return a.voiceRecording.downloadTranscribe({id:e.id}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=e.uniqueid;const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceRecording",msg:e.data?JSON.stringify(e.data):e.toString()})}))},s.success=l,s.getVoiceRecordings=c,s.onInit=function(){s.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Type",key:"type",type:"select",label:"VOICE.SELECT_TYPE",customOptions:[{value:"internal",translate:"VOICE.INTERNAL"},{value:"inbound",translate:"VOICE.INBOUND"},{value:"outbound",translate:"VOICE.OUTBOUND"},{value:"dialer",translate:"VOICE.DIALER"},{value:null,translate:"VOICE.ALL"}]}];let e=t.localStorage.getItem("motion2.home.recordings:"+s.currentUser.id);if(e)try{e=JSON.parse(e),e.query&&(s.query=u().merge(s.query,e.query))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()};s.query.createdAt=e}s.isSearchBarVisible=!!s.query.filter,c()}}Ho.$inject=["$scope","$window","$timeout","api","toasty","Auth"];const Bo=Ho,Go=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html/dialog.html";function Vo(e,t,n,a,r,i,s,l){const c=this;function d(e){c.searchInProgress=!1,c.scheduledCalls=e||{count:0,rows:[]}}c.currentUser=l.getCurrentUser(),c.priorities=["Lowest","Low","Medium","High","Highest"],c.crudPermissions={readOnly:!1,canEdit:!0,canDelete:!0},c.scheduledCalls={},c.query={id:c.currentUser.id,fields:"id,phone,scheduledat,recallme,priority,UserId,OwnerId",sort:"scheduledat",limit:10,page:1},c.queueCampaigns={rows:[],count:0},c.success=d,c.getScheduledCalls=function(){c.searchInProgress=!0,c.query.id=c.currentUser.id,c.query.includeAll=!0,c.query.offset=(c.query.page-1)*c.query.limit;const e={query:c.query};t.localStorage.setItem("motion2.home.scheduled:"+c.currentUser.id,JSON.stringify(e)),c.promise=s.user.getScheduledCalls(c.query,d).$promise.catch((()=>{i.error({title:"Search Error",msg:"An error occurred while searching data"}),c.searchInProgress=!1}))},c.onInit=function(){s.user.getQueues({id:l.getCurrentUser().id,fields:"id,name",channel:"voice",type:"outbound",nolimit:!0}).$promise.then((function(e){c.queueCampaigns=e||{count:0,rows:[]}})).then((function(){c.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Campaigns",key:"VoiceQueueId",type:"multiselect",label:"MOTIONDIALER.SELECT_CAMPAIGN",options:c.queueCampaigns.rows}]})).catch((function(e){console.error(e)})).finally((function(){let e=t.localStorage.getItem("motion2.home.scheduled:"+c.currentUser.id);if(e)try{e=JSON.parse(e),e.query&&(c.query=u().omit(e.query,["filter"]))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()};c.query.createdAt=e}c.getScheduledCalls()}))},c.isDateBeforeToday=function(e){return o()(e).isBefore(o()())},c.createOrEditQueueCampaignHopper=function(e,t){a.show({controller:"CreateOrEditHopperVoiceQueueIdDialogController",controllerAs:"vm",templateUrl:Go,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{queueCampaign:null,hopper:t,hoppers:c.scheduledCalls.rows,license:null,setting:null,crudPermissions:c.crudPermissions}})},c.deleteConfirm=function(e,t){const n=a.confirm().title("Are you sure want to delete the scheduled call?").htmlContent("<b>Scheduled call</b> will be deleted.").ariaLabel("delete scheduled call").targetEvent(t).ok("OK").cancel("CANCEL");a.show(n).then((function(){!function(e){s.cmHopper.delete({id:e.id}).$promise.then((function(){u().remove(c.scheduledCalls.rows,{id:e.id}),c.scheduledCalls.count-=1,c.scheduledCalls.rows.length||c.getScheduledCalls(),i.success({title:"Scheduled call deleted!",msg:e.name?"Scheduled call has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){c.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETE_HOPPER"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETE_HOPPER",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}(e)}),(function(){console.log("CANCEL")}))};let f=!0,m=1;e.$watch("vm.query.filter",(function(e,t){f?n((function(){f=!1})):(t||(m=c.query.page),e!==t&&(c.query.page=1),e||(c.query.page=m),c.getScheduledCalls())}))}Vo.$inject=["$scope","$window","$timeout","$mdDialog","$document","toasty","api","Auth"];const Wo=Vo;function Qo(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){!m.reloadingInteractions&&m.setting.smsInteractionsReloadTimeout>0&&S(!0),m.searchInProgress=!1,m.reloadingInteractions=!1,m.smsInteractions=e||{count:0,rows:[]};for(let e=0;e<m.smsInteractions.rows.length;e++)h(m.smsInteractions.rows[e])}function g(e){m.searchInProgress=!0,e||(m.query.page=1),m.query.offset=(m.query.page-1)*m.query.limit;let t=r.localStorage.getItem("motion2.home.sms:"+m.user.id);t=t?JSON.parse(t):{},t.query=m.query,r.localStorage.setItem("motion2.home.sms:"+m.user.id,JSON.stringify(t)),m.promise=s.smsInteraction.get(m.query,p).$promise.catch((()=>{d.error({title:"Search Error",msg:"An error occurred while searching data"}),m.searchInProgress=!1}))}function h(e){e.contactInfo=e.Contact?e.Contact.mobile:void 0,"Unknown"===e.contactName&&(e.contactName=i.instant("APP.UNKNOWN"))}function _(e){let t;const n=u().find(m.smsInteractions.rows,{id:e.SmsInteractionId});n&&n.Users&&(t=u().find(n.Users,{id:e.UserId}),t||n.Users.push({id:e.UserId}))}function b(e){const t=u().find(m.smsInteractions.rows,{id:e.SmsInteractionId});t&&t.Users&&u().remove(t.Users,{id:e.UserId})}function y(e){if(e){const t=u().find(m.smsInteractions.rows,{id:e.id});if(t){if(t.Users=[],e.closed&&(t.unreadMessages=0),m.query.sort){const e=u().startsWith(m.query.sort,"-")?"desc":"asc";m.smsInteractions.rows=u().orderBy(m.smsInteractions.rows,u().trimStart(m.query.sort,"-"),e)}u().merge(t,u().pick(e,u().keys(t)))}else g(m.query.page)}}function v(e){if(e){const t=u().find(m.smsInteractions.rows,{id:e.id});t&&(t.Tags=e.tags||[],u().merge(t,u().pick(e,u().keys(t))))}}function A(e){if(e&&!e.secret){const t=u().find(m.smsInteractions.rows,{id:e.SmsInteractionId});if(t){const n=u().find(t.Messages,{id:e.id});n?u().merge(n,u().pick(e,u().keys(n))):(u().isNil(t.Messages)&&(t.Messages={count:0}),e.read||(t.Messages.count+=1))}}}function S(e){e&&m.interactionsInterval&&t.cancel(m.interactionsInterval),m.interactionsInterval=t((function(){m.reloadingInteractions=!0,m.searchInProgress||g()}),1e3*m.setting.smsInteractionsReloadTimeout)}m.user=l.getCurrentUser(),m.license={},m.setting={},m.tags={count:0,rows:[]},m.smsInteractions={count:0,rows:[]},m.query={includeAll:!0,sort:"-updatedAt",limit:10,page:1,read:null,closed:null},m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Account",column:"SmsAccountId",type:"multiselect",options:{route:{model:"user",action:"getSmsAccounts",params:{id:m.user.id,nolimit:!0}}}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},m.sectionColor="orange",m.onInit=function(e,t){return m.license=e,m.setting=t,s.user["get"+u().upperFirst("smsAccounts")]({id:m.user.id,nolimit:!0}).$promise.then((function(e){return m.smsAccounts=e||{count:0,rows:[]},s.tag.get().$promise})).then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Account",key:"SmsAccountId",type:"multiselect",label:"DASHBOARDS.SELECT_ACCOUNT",options:m.smsAccounts.rows,clearAll:!1},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:m.user.id,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.sms:"+m.user.id);if(e)try{e=JSON.parse(e),e.query&&(m.query=u().merge(m.query,e.query),u().isEmpty(m.smsAccounts.rows)?m.query.SmsAccountId=[]:u().isEmpty(m.query.SmsAccountId)&&(m.query.SmsAccountId=u()(m.smsAccounts.rows).map("id").take().value()),m.query.sort&&m.query.sort.indexOf("lastMessage")>=0&&(m.query=u().omit(m.query,"sort")),m.query.includeAll=!0,m.isSearchBarVisible=!(m.query.search||!m.query.filter))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()},t={SmsAccountId:u().map(m.smsAccounts.rows,"id"),createdAt:e};m.query=u().merge(m.query,t)}c.on("smsInteraction:save",y),c.on("smsInteraction:update",y),c.on("smsInteractionTags:save",v),c.on("smsMessage:save",A),c.on("smsMessage:update",A),c.on("user_has_sms_interactions:save",_),c.on("user_has_sms_interactions:remove",b),g(m.query.page),m.setting.smsInteractionsReloadTimeout>0&&S()}))},m.success=p,m.getSmsInteractions=g,m.showSmsInteraction=function(t,n){e.$parent.vm.addInteractionTab("sms",n)},m.downloadSmsInteraction=function(e,t,n){s.smsInteraction.download({id:t.id,attachments:n}).$promise.then((function(e){const n=[e.buffer],a="sms-interaction"+t.id+".zip",o=new Blob(n,{type:e.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"downloadSmsInteraction",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.disposeInteraction=function(e,t){const o=m.user.voicePause||m.user.chatPause||m.user.mailPause||m.user.openchannelPause||m.user.faxPause,r=!t.Account.mandatoryDisposition;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),clickOutsideToClose:r,escapeToClose:r,onRemoving:function(){m.user&&t.Account.mandatoryDisposition&&!o&&s.user.unpause({id:m.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{user:m.user,channel:"sms",interaction:t}})},m.getContactLabel=h,m.getAgentLabel=function(e){if(e.UserId)return e.UserId===m.user.id?i.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">";return i.instant("DASHBOARDS.NOT_ASSIGNED")},m.getSmsAccountLabel=function(e){if(e.Account)return e.Account.key;return i.instant("APP.UNKNOWN")},m.composeSmsInteraction=function(t,o){n.show({controller:"ComposeSmsInteractionDialogController",controllerAs:"vm",templateUrl:ja,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{account:o,message:{},type:"new",interaction:{}},fullscreen:!0}).then((function(t){if(t){if(!t.message||!t.message.savedAsDraft){const n=t;return s.smsAccount.send({id:o.id},n).$promise.then((function(t){d.success({title:"Message properly sent!",msg:"Message has been sent!"}),e.$parent.vm.addInteractionTab("sms",t)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SMSACCOUNT:SEND",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}{const e={channel:"sms",account:o,message:t.message,contact:t.contact};f.add(e)}}}))},m.openAdvancedSearch=function(){n.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{color:m.sectionColor,fields:m.advancedSearch.fields,storagePath:"home.sms"},fullscreen:!0}).then((function(e){m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply&&(m.query.search=e.value,g())})).catch((function(e){d.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},e.$on("$destroy",(function(){c.removeAllListeners("smsMessage:save"),c.removeAllListeners("smsMessage:update"),c.removeAllListeners("smsInteraction:save"),c.removeAllListeners("smsInteractionTags:save"),c.removeAllListeners("smsInteraction:update"),c.removeAllListeners("user_has_sms_interactions:save"),c.removeAllListeners("user_has_sms_interactions:remove"),m.interactionsInterval&&t.cancel(m.interactionsInterval)}))}Qo.$inject=["$scope","$interval","$mdDialog","$document","$window","$translate","api","Auth","socket","toasty","draftManager"];const zo=Qo,Ko=n.p+"templates/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog.html";function Jo(e,t,n,a,r,i){const s=this;function l(e){s.searchInProgress=!1,s.voiceCalls=e||{count:0,rows:[]}}function c(){s.searchInProgress=!0,s.query.offset=(s.query.page-1)*s.query.limit;const e={query:s.query};i.localStorage.setItem("motion2.home.voice:"+s.currentUser.id,JSON.stringify(e)),s.promise=n.voiceCallReport.get(s.query,l).$promise.catch((()=>{a.error({title:"Search Error",msg:"An error occurred while searching data"}),s.searchInProgress=!1}))}s.currentUser=r.getCurrentUser(),s.voiceCalls={},s.table="voiceCalls",s.query={UserId:s.currentUser.id,fields:"id,type,uniqueid,tag,starttime,endtime,source,destination,userDisposition,userSecondDisposition,userThirdDisposition,note,duration,billableseconds,answertime",sort:"-updatedAt",limit:10,page:1,type:null},s.success=l,s.getVoiceCalls=c,s.onInit=function(){return n.tag.get().$promise.then((function(e){s.tags=e||{count:0,rows:[]}})).then((function(){s.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Type",key:"type",type:"select",label:"VOICE.SELECT_TYPE",customOptions:[{value:"internal",translate:"VOICE.INTERNAL"},{value:"inbound",translate:"VOICE.INBOUND"},{value:"outbound",translate:"VOICE.OUTBOUND"},{value:"dialer",translate:"VOICE.DIALER"},{value:null,translate:"VOICE.ALL"}]}]})).catch((function(e){a.error({title:"Init error",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()}),s.tags={count:0,rows:[]}})).finally((function(){let e=i.localStorage.getItem("motion2.home.voice:"+s.currentUser.id);if(e)try{e=JSON.parse(e),e.query&&(s.query=u().merge(s.query,e.query))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()};s.query.createdAt=e}s.isSearchBarVisible=!!s.query.filter,c()}))},s.showDetails=function(n){e.show({controller:"AgentHomeVoiceDetailsController",controllerAs:"vm",templateUrl:Ko,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{call:n}})}}Jo.$inject=["$mdDialog","$document","api","toasty","Auth","$window"];const Xo=Jo;function Zo(e,t){this.call=t,this.closeDialog=function(){e.hide()}}Zo.$inject=["$mdDialog","call"];const er=Zo;function tr(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){!m.reloadingInteractions&&m.setting.whatsappInteractionsReloadTimeout>0&&S(!0),m.searchInProgress=!1,m.reloadingInteractions=!1,m.whatsappInteractions=e||{count:0,rows:[]};for(let e=0;e<m.whatsappInteractions.rows.length;e++)h(m.whatsappInteractions.rows[e])}function g(e){m.searchInProgress=!0,e||(m.query.page=1),m.query.offset=(m.query.page-1)*m.query.limit;let t=r.localStorage.getItem("motion2.home.whatsapp:"+m.user.id);t=t?JSON.parse(t):{},t.query=m.query,r.localStorage.setItem("motion2.home.whatsapp:"+m.user.id,JSON.stringify(t)),m.promise=s.whatsappInteraction.get(m.query,p).$promise.catch((()=>{d.error({title:"Search Error",msg:"An error occurred while searching data"}),m.searchInProgress=!1}))}function h(e){e.contactInfo=e.Contact?e.Contact.mobile:void 0,"Unknown"===e.contactName&&(e.contactName=i.instant("APP.UNKNOWN"))}function _(e){let t;const n=u().find(m.whatsappInteractions.rows,{id:e.WhatsappInteractionId});n&&n.Users&&(t=u().find(n.Users,{id:e.UserId}),t||n.Users.push({id:e.UserId}))}function b(e){const t=u().find(m.whatsappInteractions.rows,{id:e.WhatsappInteractionId});t&&t.Users&&u().remove(t.Users,{id:e.UserId})}function y(e){if(e){const t=u().find(m.whatsappInteractions.rows,{id:e.id});if(t){if(t.Users=[],e.closed&&(t.unreadMessages=0),m.query.sort){const e=u().startsWith(m.query.sort,"-")?"desc":"asc";m.whatsappInteractions.rows=u().orderBy(m.whatsappInteractions.rows,u().trimStart(m.query.sort,"-"),e)}u().merge(t,u().pick(e,u().keys(t)))}else g(m.query.page)}}function v(e){if(e){const t=u().find(m.whatsappInteractions.rows,{id:e.id});t&&(t.Tags=e.tags||[],u().merge(t,u().pick(e,u().keys(t))))}}function A(e){if(e&&!e.secret){const t=u().find(m.whatsappInteractions.rows,{id:e.WhatsappInteractionId});if(t){const n=u().find(t.Messages,{id:e.id});n?u().merge(n,u().pick(e,u().keys(n))):(u().isNil(t.Messages)&&(t.Messages={count:0}),e.read||(t.Messages.count+=1))}}}function S(e){e&&m.interactionsInterval&&t.cancel(m.interactionsInterval),m.interactionsInterval=t((function(){m.reloadingInteractions=!0,m.searchInProgress||g()}),1e3*m.setting.whatsappInteractionsReloadTimeout)}m.user=l.getCurrentUser(),m.license={},m.setting={},m.tags={count:0,rows:[]},m.whatsappInteractions={count:0,rows:[]},m.query={includeAll:!0,sort:"-updatedAt",limit:10,page:1,read:null,closed:null},m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Account",column:"WhatsappAccountId",type:"multiselect",options:{route:{model:"user",action:"getWhatsappAccounts",params:{id:m.user.id,nolimit:!0}}}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},m.sectionColor="lime-A700",m.onInit=function(e,t){return m.license=e,m.setting=t,s.user["get"+u().upperFirst("whatsappAccounts")]({id:m.user.id,nolimit:!0}).$promise.then((function(e){return m.whatsappAccounts=e||{count:0,rows:[]},s.tag.get().$promise})).then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Account",key:"WhatsappAccountId",type:"multiselect",label:"DASHBOARDS.SELECT_ACCOUNT",options:m.whatsappAccounts.rows,clearAll:!1},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:m.user.id,translate:"DASHBOARDS.ME"},{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).catch((function(e){console.error(e)})).finally((function(){let e=r.localStorage.getItem("motion2.home.whatsapp:"+m.user.id);if(e)try{e=JSON.parse(e),e.query&&(m.query=u().merge(m.query,e.query),u().isEmpty(m.whatsappAccounts.rows)?m.query.WhatsappAccountId=[]:u().isEmpty(m.query.WhatsappAccountId)&&(m.query.WhatsappAccountId=u()(m.whatsappAccounts.rows).map("id").take().value()),m.query.sort&&m.query.sort.indexOf("lastMessage")>=0&&(m.query=u().omit(m.query,"sort")),m.query.includeAll=!0,m.isSearchBarVisible=!(m.query.search||!m.query.filter))}catch(e){console.error(e)}else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()},t={WhatsappAccountId:u().map(m.whatsappAccounts.rows,"id"),createdAt:e};m.query=u().merge(m.query,t)}c.on("whatsappInteraction:save",y),c.on("whatsappInteraction:update",y),c.on("whatsappInteractionTags:save",v),c.on("whatsappMessage:save",A),c.on("whatsappMessage:update",A),c.on("user_has_whatsapp_interactions:save",_),c.on("user_has_whatsapp_interactions:remove",b),g(m.query.page),m.setting.whatsappInteractionsReloadTimeout>0&&S()}))},m.success=p,m.getWhatsappInteractions=g,m.showWhatsappInteraction=function(t,n){e.$parent.vm.addInteractionTab("whatsapp",n)},m.downloadWhatsappInteraction=function(e,t,n){s.whatsappInteraction.download({id:t.id,attachments:n}).$promise.then((function(e){const n=[e.buffer],a="whatsapp-interaction"+t.id+".zip",o=new Blob(n,{type:e.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"downloadWhatsappInteraction",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.disposeInteraction=function(e,t){const o=m.user.voicePause||m.user.chatPause||m.user.mailPause||m.user.openchannelPause||m.user.faxPause,r=!t.Account.mandatoryDisposition;n.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(a.body),clickOutsideToClose:r,escapeToClose:r,onRemoving:function(){m.user&&t.Account.mandatoryDisposition&&!o&&s.user.unpause({id:m.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{user:m.user,channel:"whatsapp",interaction:t}})},m.getContactLabel=h,m.getAgentLabel=function(e){if(e.UserId)return e.UserId===m.user.id?i.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">";return i.instant("DASHBOARDS.NOT_ASSIGNED")},m.getWhatsappAccountLabel=function(e){if(e.Account)return e.Account.key;return i.instant("APP.UNKNOWN")},m.composeWhatsappInteraction=function(t,o){n.show({controller:"ComposeWhatsappInteractionDialogController",controllerAs:"vm",templateUrl:Fa,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{account:o,message:{},type:"new",interaction:{}},fullscreen:!0}).then((function(t){if(t){if(!t.message||!t.message.savedAsDraft){const n=t;return s.whatsappAccount.send({id:o.id},n).$promise.then((function(t){d.success({title:"Message properly sent!",msg:"Message has been sent!"}),e.$parent.vm.addInteractionTab("whatsapp",t)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)d.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"WHATSAPPACCOUNT:SEND",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}{const e={channel:"whatsapp",account:o,message:t.message,contact:t.contact};f.add(e)}}}))},m.openAdvancedSearch=function(){n.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(a.body),clickOutsideToClose:!1,locals:{color:m.sectionColor,fields:m.advancedSearch.fields,storagePath:"home.whatsapp"},fullscreen:!0}).then((function(e){m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply&&(m.query.search=e.value,g())})).catch((function(e){d.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},e.$on("$destroy",(function(){c.removeAllListeners("whatsappMessage:save"),c.removeAllListeners("whatsappMessage:update"),c.removeAllListeners("whatsappInteraction:save"),c.removeAllListeners("whatsappInteractionTags:save"),c.removeAllListeners("whatsappInteraction:update"),c.removeAllListeners("user_has_whatsapp_interactions:save"),c.removeAllListeners("user_has_whatsapp_interactions:remove"),m.interactionsInterval&&t.cancel(m.interactionsInterval)}))}tr.$inject=["$scope","$interval","$mdDialog","$document","$window","$translate","api","Auth","socket","toasty","draftManager"];const nr=tr;function ar(e,t){const n=this;n.setting={},n.messages={count:0,rows:[]},n.showInteraction=!1,n.init=function(e,t){n.setting=t,n.tab=e,n.tab.saved=!0},n.getTrustedURL=function(){return t.trustAsResourceUrl(n.tab.src)}}ar.$inject=["$scope","$sce"];const or=ar,rr=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog.html",ir=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog.html";function sr(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h){const _=this;_.baseUrl=l.baseUrl;const b=26214400;function y(){const e=_.user.voicePause||_.user.chatPause||_.user.mailPause||_.user.openchannelPause||_.user.faxPause,t=!_.tab.interaction.Account.mandatoryDisposition;o.show({controller:"DisposeInteractionDialogController",controllerAs:"vm",templateUrl:Ea,parent:angular.element(n.body),clickOutsideToClose:t,escapeToClose:t,onRemoving:function(){_.user&&_.interaction.Account.mandatoryDisposition&&!e&&l.user.unpause({id:_.user.id}).$promise.catch((function(e){console.error(e)}))},locals:{user:_.user,channel:_.tab.channel,interaction:_.tab.interaction}}).then((function(e){_.tab.saved=Boolean(e),e&&a.$parent.$parent.$parent.vm.closeTab(_.tab)}))}function v(e,t){_.tab.message=t,o.show({controller:"ComposeMailInteractionDialogController",controllerAs:"vm",templateUrl:$a,parent:angular.element(n.body),clickOutsideToClose:!1,locals:{account:_.account,message:_.tab.message,type:e,interaction:_.interaction},fullscreen:!0,multiple:Boolean(_.tab.spy)}).then((function(e){if(e)if(e.message&&e.message.savedAsDraft)_.draft?p.update({id:_.draft.id,channel:"mail",account:_.account,message:e.message,contact:_.contact,interaction:_.interaction}):p.add({channel:"mail",account:_.account,message:e.message,contact:_.contact,interaction:_.interaction}),_.draft=p.getByInteraction(_.tab.interaction.id);else{const t=e;t&&S(t),t.Interaction&&_.interaction&&_.interaction.id&&(t.Interaction.id=_.interaction.id,l.mailInteraction.update(t.Interaction).$promise.then((function(e){e&&e.closed?(_.tab.saved=!0,_.interaction.closed=!0,y()):null!==t.Interaction.substatus&&(_.tab.saved=!0,_.tab.interaction.substatus=t.Interaction.substatus,a.$parent.$parent.$parent.vm.closeTab(_.tab))})).catch((function(e){console.error(e)})))}})).finally((function(){_.tab.isDraft=!1}))}function A(){"mail"!==_.tab.channel&&t((function(){const e=angular.element(n.find("md-content[name*='interaction-content-"+_.tab.id+"']"));e&&e[0]&&(e[0].scrollTop=e[0].scrollHeight)}),0)}function S(e){if(e)return e["chat"===_.tab.channel?"ChatWebsiteId":u().capitalize(_.tab.channel)+"AccountId"]=_.interaction["chat"===_.tab.channel?"ChatWebsiteId":u().capitalize(_.tab.channel)+"AccountId"],e[u().capitalize(_.tab.channel)+"InteractionId"]=_.interaction.id,e.UserId=_.user.id,e.ContactId=_.interaction.ContactId,e.direction="out",e.secret=Boolean(_.tab.spy||e.secret),l[_.tab.channel+"Message"].save(e).$promise.then((function(t){if(t&&t.id&&!u().isEmpty(e.attachments)){const n=[];for(let a=0;a<e.attachments.length;a++){const o=e.attachments[a];o.MailMessageId?n.push(l.attachment.clone({id:o.id},{name:o.name,basename:o.basename,type:o.type,MailMessageId:t.id}).$promise):n.push(l.attachment.update({id:o.id},{MailMessageId:t.id}).$promise)}return r.all(n)}})).catch((function(e){c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:SENDMESSAGE",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){"mail"===_.tab.channel&&e.isDraft&&(p.removeByInteraction(_.interaction.id),_.draft=null),_.tab.areaText="",A()}))}function w(e){switch(_.tab.channel){case"mail":_.draft.content.originalMessage=e?u().find(_.interaction.Messages,["id",e]):_.interaction.Messages[_.interaction.Messages.length-1],v(_.draft.type,_.draft.content)}}function E(e){_.journeyIsLoading=!0;const t=u().merge(_.journeyOptions,{id:_.contact.id,offset:e||0});return g.get(_.journey,t).then((function(e){_.journey=e.journey,_.canLoadMoreJourney=e.loadMore})).finally((function(){_.journeyIsLoading=!1}))}_.baseUrl=l.baseUrl,_.showFooter=!1,_.BTNLoadMore=0,_.showInteraction=!1,_.user=d.getCurrentUser(),_.detectBrowser=m.detectBrowser(),_.journey=[],_.acceptedMessages=[],_.ngFlowOptions={target:`${_.baseUrl}api/attachments`,singleFile:!0,maxChunkRetries:1,chunkSize:b,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},_.ngFlow={flow:{}},_.selectedMailShowDetails={},_.selectedMailShowSystemMessage={},_.setting={},_.ctrlMethods={},_.embedOptions={fontSmiley:!0,sanitizeHtml:!0,emoji:!0,link:!0,linkTarget:"_blank"},_.journeyOptions=g.getQuery(),_.quickFilters=g.getQuickFilters(),_.init=function(e,t){_.tab=e,_.tab.saved=!0,_.tab.badges=0,_.setting=t||{},_.tab&&_.tab.channel&&_.tab.interaction&&(_.interaction=_.tab.interaction,l[_.tab.channel+"Interaction"].get({id:_.tab.interaction.id,includeAll:!0}).$promise.then((function(e){return e&&(_.interaction=e,_.tab.interaction=e),_.tab.saved=_.interaction.closed,_.queryMessage={id:_.interaction.id,includeAll:!0},"mail"===_.tab.channel?(_.queryMessage.sort="-id",_.queryMessage.offset=0,_.queryMessage.limit=3,_.queryMessage.inlineCss=!0):(_.queryMessage.sort="id",_.queryMessage.nolimit=!0),l[_.tab.channel+"Interaction"].getMessages(_.queryMessage).$promise})).then((function(e){return e&&(_.BTNLoadMore=e.count-_.queryMessage.limit),_.messages=e||{count:0,rows:[]},l["chat"===_.tab.channel?"chatWebsite":_.tab.channel+"Account"].get({id:_.interaction["chat"===_.tab.channel?"ChatWebsiteId":u().capitalize(_.tab.channel)+"AccountId"]}).$promise})).then((function(e){if(_.account=e,_.tab.title=_.account.key||_.account.name,_.interaction.ContactId)return l.cmContact.get({id:_.interaction.ContactId}).$promise})).then((function(e){return e&&(_.contact=e),_.showInteraction=!0,_.contact?_.tab.title+=" - "+(_.user.privacyEnabled?h.mask(_.contact.firstName):_.contact.firstName):_.tab.title+=" - "+s.instant(_.tab.channel.toUpperCase()+".UNKNOWN"),l.user.get({fields:"id,fullname",nolimit:!0}).$promise})).then((function(e){_.users=e||{count:0,rows:[]},_.usersMap=u().mapValues(u().keyBy(_.users.rows,"id"),"fullname")})).then((function(){if(_.tab.channel&&_.interaction)return l.user["add"+u().upperFirst(_.tab.channel)+"Interactions"]({id:_.user.id,ids:[_.interaction.id]})})).then((function(){return l.mailSubstatus.get({sort:"name",nolimit:!0}).$promise})).then((function(e){_.subStatuses=e||{count:0,rows:[]}})).catch((function(){_.showInteraction=!0})).finally((function(){_.contact&&E(),function(){if(!_.tab.spy&&!_.interaction.closed)for(let e=0;e<_.messages.rows.length;e+=1)"in"!==_.messages.rows[e].direction||_.messages.rows[e].read||(l[_.tab.channel+"Message"].accept({id:_.messages.rows[e].id,UserId:_.user.id}),_.acceptedMessages.push(_.messages.rows[e].id))}(),A(),f.on(_.tab.channel+"Message:save",_.onMessageSave),f.on(_.tab.channel+"Message:update",_.onMessageSave),f.on(_.tab.channel+"Interaction:save",_.onInteractionSave),f.on(_.tab.channel+"Interaction:update",_.onInteractionSave),f.on("user_has_"+_.tab.channel+"_interactions:save",_.onInteractionOpen),f.on("user_has_"+_.tab.channel+"_interactions:remove",_.onInteractionClose),_.tab.areaText=_.tab.areaText?_.tab.areaText:"",_.showFooter=!0,"mail"===_.tab.channel&&(_.draft=p.getByInteraction(_.tab.interaction.id),_.tab.isDraft&&(_.tab.interaction.closed?(p.removeByInteraction(_.tab.interaction.id),_.draft=null):w()))})))},_.getLabelByMessage=function(e){const t="loading...";if(e)return"in"===e.direction?e.Contact?e.Contact.firstName||"Anonymous":t:e.UserId?_.usersMap?_.usersMap[e.UserId]:t:"System"},_.openContact=function(e,t){try{_.tab&&!_.tab.spy&&a.$parent.$parent.$parent.vm.addContactTab(t||_.contact)}catch(e){c.error({title:"ERROR OPEN CONTACT",msg:"Unable to open the contact"})}},_.openInteraction=function(e){try{if(e.MailAccountId)return a.$parent.$parent.$parent.vm.addInteractionTab("mail",e);if(e.ChatWebsiteId)return a.$parent.$parent.$parent.vm.addInteractionTab("chat",e);if(e.SmsAccountId)return a.$parent.$parent.$parent.vm.addInteractionTab("sms",e);if(e.WhatsappAccountId)return a.$parent.$parent.$parent.vm.addInteractionTab("whatsapp",e);if(e.OpenchannelAccountId)return a.$parent.$parent.$parent.vm.addInteractionTab("openchannel",e);if(e.FaxAccountId)return a.$parent.$parent.$parent.vm.addInteractionTab("fax",e)}catch(e){c.error({title:"ERROR OPEN INTERACTION",msg:"Customer Journey can't open the interaction"})}},_.disposeInteraction=y,_.tagInteraction=function(){o.show({controller:"TagInteractionDialogController",controllerAs:"vm",templateUrl:rr,parent:angular.element(n.body),clickOutsideToClose:!0,multiple:Boolean(_.tab.spy),resolve:{tags:["apiResolver",function(e){return e.resolve("tag@get",{sort:"name",nolimit:!0,fields:"id,name,color"})}]},locals:{channel:_.tab.channel,interaction:_.tab.interaction}})},_.composeMailInteraction=function(e,t){if(t.inReplyTo){const n=u().find(_.messages.rows,{messageId:t.inReplyTo});if(!n)return l.mailMessage.get({messageId:t.inReplyTo}).$promise.then((function(t){v(e,t&&t.count?t.rows[0]:void 0)})).catch((function(t){console.error(t),v(e,void 0)}));v(e,n)}else v(e,t)},_.composeFaxInteraction=function(e){const t={to:[]};t.to.push(_.contact.fax),o.show({controller:"ComposeFaxInteractionDialogController",controllerAs:"vm",templateUrl:La,parent:angular.element(n.body),clickOutsideToClose:!1,locals:{account:_.account,message:t,type:e},fullscreen:!0}).then((function(e){return l.faxAccount.send({id:_.account.id},e).$promise.then((function(e){c.success({title:"Message properly sent!",msg:"Message has been sent!"}),a.$parent.vm.addInteractionTab("fax",e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:"FAX:SEND",msg:e.data?JSON.stringify(e.data):e.message||e.toString()})}))}))},_.composeSmsInteraction=function(e,t){o.show({controller:"ComposeSmsInteractionDialogController",controllerAs:"vm",templateUrl:ja,parent:angular.element(n.body),clickOutsideToClose:!1,locals:{account:_.account,message:t,type:e},fullscreen:!0,multiple:Boolean(_.tab.spy)}).then((function(e){e&&S(e)}))},_.composeWhatsappInteraction=function(e,t){o.show({controller:"ComposeWhatsappInteractionDialogController",controllerAs:"vm",templateUrl:Fa,parent:angular.element(n.body),clickOutsideToClose:!1,locals:{account:_.account,message:t,type:e},fullscreen:!0,multiple:Boolean(_.tab.spy)}).then((function(e){e&&S(e)}))},_.transferLastMessage=function(){if(_.interaction){const e=u().findLast(_.messages.rows,(function(e){return"in"===e.direction}));e?o.show({controller:"TransferMessageDialogController",controllerAs:"vm",templateUrl:ir,parent:angular.element(n.body),clickOutsideToClose:!1,locals:{account:_.account,interaction:_.interaction,message:e,channel:_.tab.channel}}).then((function(e){_.tab.saved=Boolean(e),e&&a.$parent.$parent.$parent.vm.closeTab(_.tab)})):c.error({title:"Invalid transfer",msg:"Message not found!"})}},_.downloadMessage=function(e,t){_.tab.channel&&e.id&&l[_.tab.channel+"Message"].download({id:e.id,attachments:t}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=_.tab.channel+"-message"+e.id+".eml";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.downloadMessage.get",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},_.downloadInteraction=function(e,t){_.tab.channel&&e.id&&l[_.tab.channel+"Interaction"].download({id:e.id,attachments:t}).$promise.then((function(t){const n=[t.buffer],a=_.tab.channel+"-interaction"+e.id+".zip",o=new Blob(n,{type:t.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.inteactionMessage.get",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},_.openDraft=w,_.createVidaooSession=function(e){const t={id:e.id};return l.chatInteraction.createVidaooSession(t).$promise.then((function(){c.success({title:"Start Video Call",msg:"Session properly created."})})).catch((function(){c.error({title:"Start Video Call",msg:"Unable to create session!"})}))},_.reply=function(e,t){if(e&&13===e.keyCode&&e.shiftKey)return;if(e&&13!==e.keyCode)return;if(""===t.trim())return;S(function(e){const t={},n="chat"===_.tab.channel?"ChatWebsiteId":u().capitalize(_.tab.channel)+"AccountId";t[n]=_.interaction[n].toString(),t[u().capitalize(_.tab.channel)+"InteractionId"]=_.interaction.id,("sms"===_.tab.channel||"whatsapp"===_.tab.channel)&&(t.phone=_.interaction.phone);e&&(t.UserId=_.user.id,t.ContactId=_.interaction.ContactId,t.body=e);return t}(t.replace(/\n$/,"")))},_.upload=function(){_.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},_.ngFlow.flow.upload()},_.fileAdded=function(e){if(e.size>b)return c.error({title:"File too big",msg:"The max allowed size is 25MB"}),!1;return!0},_.fileSuccess=function(e,t){const n=JSON.parse(t);let a=n.name;"chat"===_.tab.channel&&(a='<a href="'+(_.account.remote?_.account.remote:i.protocol()+"://"+i.host())+"/api/chat/interactions/"+_.interaction.id+"/attachment_download?attachId="+n.id+"&token="+_.account.token+'" target="_self">'+n.name+"</a>");S({body:a,AttachmentId:n.id})},_.onMessageSave=function(e){if(e&&_.interaction.id!=e[u().capitalize(_.tab.channel)+"InteractionId"])return;let t=!1;_.messages?t=u().find(_.messages.rows,{id:e.id}):_.messages={rows:[],count:0};t?u().merge(t,e):("mail"===_.tab.channel?_.messages.rows.unshift(e):_.messages.rows.push(e),A())},_.onInteractionSave=function(e){if(e&&_.interaction.id!==e.id)return;e.closed&&(_.tab.saved=!0);u().merge(_.interaction,e)},_.searchTextChange=function(e){const t=r.defer();let n=[];const a={},o="chat"===_.tab.channel?"ChatWebsiteId":u().capitalize(_.tab.channel)+"AccountId";return a.filter=e,a[o]=_.account.id,l.cannedAnswer.get(a).$promise.then((function(t){return n=u().concat(n,t.rows),l.cannedAnswer.get({filter:e}).$promise})).then((function(e){n=u().concat(n,u().filter(e.rows,(function(e){return!(e.MailAccountId||e.FaxAccountId||e.SmsAccountId||e.WhatsappAccountId||e.OpenchannelAccountId||e.ChatWebsiteId)}))),t.resolve(n)})).catch((function(e){t.reject(e)})),t.promise},_.selectedItemChange=function(e){if(e){try{u().templateSettings.interpolate=/{{([\s\S]+?)}}/g;const t=u().template(e.value),n={user:_.user,account:_.account,interaction:_.interaction,contact:_.interaction&&_.interaction.Contact?_.interaction.Contact:{}};""!==_.tab.areaText&&(_.tab.areaText+=" "),_.tab.areaText+=t(n),_.ctrlMethods.setText(_.tab.areaText)}catch(t){""!==_.tab.areaText&&(_.tab.areaText+=" "),_.tab.areaText+=e.value,_.ctrlMethods.setText(_.tab.areaText)}_.selectedItem=null,_.changeDisplayCannedAnswerInputValue()}},_.getMessagesAlignment=function(e){if(e.secret&&_.user.id!=e.UserId)return"in";switch(_.setting.messagesAlignment){case"left":return"in"==e.direction?e.direction:"out-left-aligned";case"right":return"in"==e.direction?"in-right-aligned":e.direction;default:return e.direction}},_.displayCannedAnswerInput=!1,_.changeDisplayCannedAnswerInputValue=function(){_.displayCannedAnswerInput=!_.displayCannedAnswerInput},_.setAs=function(e){_.tab.channel&&_.interaction&&_.interaction.id&&l[_.tab.channel+"Interaction"].update({id:_.interaction.id,substatus:e}).$promise.catch((function(e){console.error(e)}))},_.markAsUnread=function(){if(_.tab.channel&&_.interaction&&_.interaction.id)if(_.acceptedMessages.length)for(let e=0;e<_.acceptedMessages.length;e+=1)l[_.tab.channel+"Message"].update({id:_.acceptedMessages[e],read:!1,UserId:null});else for(let e=0;e<_.messages.rows.length;e+=1)if("in"===_.messages.rows[e].direction){_.messages.rows[e].UserId===_.user.id?l[_.tab.channel+"Message"].update({id:_.messages.rows[e].id,read:!1,UserId:null}):c.error({title:"You can't mark as unread",msg:"You are not the owner of the last message!"});break}_.tab.saved=!0,a.$parent.$parent.$parent.vm.closeTab(_.tab)},_.getAttachments=function(e){return l.attachment.get({MailMessageId:e.id}).$promise.then((function(t){t&&t.rows&&(e.attachments=t.rows)})).catch((function(e){c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"ATTACHMENTS:GET",msg:e.data?JSON.stringify(e.data):e.toString()})}))},_.getAttachment=function(e){return l.attachment.download({id:e.id}).$promise.then((function(t){if(t){const n=new Blob([t.buffer],{type:t.type}),a=document.createElement("a"),o=window.URL.createObjectURL(n);a.href=o,a.target="_self",a.download=e.name,document.body.appendChild(a),a.click(),setTimeout((function(){document.body.removeChild(a),window.URL.revokeObjectURL(o)}),100)}})).catch((function(e){c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"ATTACHMENTS:GET",msg:e.data?JSON.stringify(e.data):e.toString()})}))},_.htmlToPlaintext=function(e){return e?String(e).replace(/<[^>]+>/gm,""):""},_.onInteractionOpen=function(e){let t;_.interaction.id==e[u().upperFirst(_.tab.channel)+"InteractionId"]&&(_.interaction.Users&&(t=u().find(_.interaction.Users,{id:e.UserId})),t||_.interaction.Users.push({id:e.UserId}))},_.onInteractionClose=function(e){_.interaction.id==e[u().upperFirst(_.tab.channel)+"InteractionId"]&&_.interaction.Users&&u().remove(_.interaction.Users,{id:e.UserId})},_.getCustomerJourney=E,_.loadNextPage=function(){const e=r.defer();if(_.queryMessage)return _.queryMessage.offset=_.messages.rows.length,l[_.tab.channel+"Interaction"].getMessages(_.queryMessage).$promise.then((function(t){for(let e=0;e<t.rows.length;e+=1)_.messages.rows.push(t.rows[e]),_.interaction.closed||"in"!==t.rows[e].direction||t.rows[e].read||(l[_.tab.channel+"Message"].accept({id:t.rows[e].id,UserId:_.user.id}),_.acceptedMessages.push(t.rows[e].id));return t.rows.length>0&&(_.BTNLoadMore=_.BTNLoadMore-t.rows.length),e.resolve(t)})).catch((function(t){return e.reject(t)}));return e.reject()},_.interactionTimelineOptions={scrollEl:"#interaction-content"},_.loadMoreJourney=function(){return r((function(e){return e(E(_.journey.length))}))},_.journeyTimelineOptions={scrollEl:"#journey-content"},a.$on("$destroy",(function(){f.removeAllListeners(_.tab.channel+"Message:save"),f.removeAllListeners(_.tab.channel+"Message:update"),f.removeAllListeners(_.tab.channel+"Interaction:save"),f.removeAllListeners(_.tab.channel+"Interaction:update"),f.removeAllListeners("user_has_"+_.tab.channel+"_interactions:save"),f.removeAllListeners("user_has_"+_.tab.channel+"_interactions:remove")}))}function lr(e){return{scope:{ngBindHtmlUnsafe:"="},template:"<div ng-bind-html='trustedHtml'></div>",link:function(t){t.updateView=function(){const n=u().replace(t.ngBindHtmlUnsafe,'<div id="xm-mail-content"',function(){const e="xm-mail-content-"+Math.floor(9999*Math.random()+1);return'<a style="cursor:pointer" class="toggle-details md-accent-color" onclick="document.getElementById(\''+e+"').style.display='block'; this.parentNode.removeChild(this)\">See More</a><div id=\""+e+'" style="display:none"'}());t.trustedHtml=e.trustAsHtml(n)},t.$watch("ngBindHtmlUnsafe",(function(e){t.updateView(e)}))}}}lr.$inject=["$sce"],sr.$inject=["$cookies","$timeout","$document","$scope","$mdDialog","$q","$location","$translate","api","toasty","Auth","socket","msUtils","draftManager","customerJourneyManager","privacyManager"];const cr=function(){return{watchEmbedData:!1,sanitizeHtml:!1,fontSmiley:!1,emoji:!0,link:!0,linkTarget:"_blank",pdf:{embed:!0},image:{embed:!0},audio:{embed:!0},basicVideo:!1,gdevAuth:"xxxxxxxx",video:{embed:!1,width:null,height:null,ytTheme:"dark",details:!1,thumbnailQuality:"medium",autoPlay:!0},twitchtvEmbed:!0,dailymotionEmbed:!0,tedEmbed:!0,dotsubEmbed:!0,liveleakEmbed:!0,ustreamEmbed:!0,soundCloudEmbed:!0,soundCloudOptions:{height:160,themeColor:"f50000",autoPlay:!1,hideRelated:!1,showComments:!0,showUser:!0,showReposts:!1,visual:!1,download:!1},spotifyEmbed:!0,tweetEmbed:!0,tweetOptions:{maxWidth:550,hideMedia:!1,hideThread:!1,align:"none",lang:"en"},code:{highlight:!0,lineNumbers:!1},codepenEmbed:!0,codepenHeight:300,jsfiddleEmbed:!0,jsfiddleHeight:300,jsbinEmbed:!0,jsbinHeight:300,plunkerEmbed:!0,githubgistEmbed:!0,ideoneEmbed:!0,ideoneHeight:300}};function ur(e,t,n,a,o,r,i,s,l){const c=this,d=26214400;c.baseUrl=s.baseUrl,c.separatorKeys=[a.KEY_CODE.ENTER,a.KEY_CODE.COMMA,a.KEY_CODE.TAB],c.message={from:o.localstationid,to:u().isNil(r.to)||u().isEmpty(r.to)?[]:r.to,attachments:[]},c.ngFlowOptions={target:`${c.baseUrl}api/attachments`,singleFile:!0,maxChunkRetries:1,chunkSize:d,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},c.ngFlow={flow:{}},c.send=function(){1===c.message.attachments.length?c.message.to.length?(r.draft=void 0,n.hide({from:c.message.from,to:c.message.to,attach:c.message.attachments.length,attachments:c.message.attachments})):l.error("To is mandatory"):l.error("Attachment is mandatory")},c.upload=function(){c.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},c.ngFlow.flow.upload()},c.fileSuccess=function(e,t){try{(t=JSON.parse(t)).size=e.size,c.message.attachments.push(t)}catch(e){console.error(e)}},c.fileAdded=function(e){const t=["pdf","tif"];if(!u().includes(t,e.getExtension()))return l.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extensions: "+t.join()}),!1;if(e.size>d)return l.error({title:"File too big",msg:"The max allowed size is 25MB"}),!1;return!0},c.getContact=function(e){let t="";e.firstName&&e.firstName!==e.fax&&(t+=e.firstName+" ");e.lastName&&e.lastName!==e.fax&&(t+=e.lastName+" ");return t+="<"+e.fax+">"},c.contactSearch=function(e){return o&&o.ListId?s.cmContact.get({ListId:o.ListId,nolimit:!0,filter:e,fields:"firstName,lastName,fax"}).$promise.then((function(e){return e.rows})):[]},c.transformContact=function(e){const t=e;if(u().isObject(e))return e.fax;if(function(e){return!/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/.test(e)}(t))return t;return l.error("Fax "+t+" is not valid"),null},c.closeDialog=function(){r.draft=c.message,n.cancel()}}ur.$inject=["$cookies","$window","$mdDialog","$mdConstant","account","message","type","api","toasty"];const dr=ur;function fr(e,t,n,a,r,i,s,l,c,d,f,m,p,g){const h=this,_=26214400;h.baseUrl=c.baseUrl,h.currentUser=m.getCurrentUser(),h.secret="note"===l,h.hiddenCC=!0,h.hiddenBCC=!0,h.verifySmtp=!0,h.errors=[],h.separatorKeys=[a.KEY_CODE.ENTER,a.KEY_CODE.COMMA,a.KEY_CODE.TAB],h.searchTextChange=function(e){const t=f.defer();let n=[];return c.cannedAnswer.get({filter:e,MailAccountId:i.id}).$promise.then((function(t){return n=u().concat(n,t.rows),c.cannedAnswer.get({filter:e}).$promise})).then((function(e){n=u().concat(n,u().filter(e.rows,(function(e){return!(e.MailAccountId||e.FaxAccountId||e.SmsAccountId||e.WhatsappAccountId||e.OpenchannelAccountId||e.ChatWebsiteId)}))),t.resolve(n)})).catch((function(e){t.reject(e)})),t.promise},h.selectedItemChange=function(e){if(e&&e.value&&h.ckEditorInstance)try{const t=u().template(e.value),n={user:h.currentUser,account:i,interaction:p,contact:p&&p.Contact?p.Contact:{}};h.ckEditorInstance.insertHtml(t(n))}catch(t){console.error(t),h.ckEditorInstance.insertHtml(e.value)}document.getElementById("html-area").focus(),h.selectedItem=null},h.onReadyEditor=function(){try{h.ckEditorInstance=window.CKEDITOR.instances["html-area"]}catch(e){console.error("Unable to get Html Editor instance",e)}},u().templateSettings.interpolate=/{{([\s\S]+?)}}/g,h.fromTemplate=u().template("{{ name }} <{{ email }}>"),h.replyTemplate=u().template("On {{ date }}, at {{ time }}, {{ from }} wrote:"),h.forwardTemplate=u().template("Begin forwarded message:<br><br><strong>From:</strong> {{ from }}<br><strong>Subject:</strong> {{ subject }}<br><strong>Date:</strong> {{ date }}, at {{ time }}<br><strong>To:</strong> {{ to }}"),h.message={from:h.fromTemplate({name:i.name,email:i.email||i.Smtp.user}),to:[],cc:[],bcc:[],body:S(),type:l,attachments:[],showLastMessage:!0},h.draft=null,h.ckeditor={skin:"office2013",startupFocus:!0,language:"en",allowedContent:!0,extraPlugins:"font,colorbutton,autogrow,autoembed,autocorrect,googlethisterm,pastebase64",toolbarGroups:[{name:"styles",groups:["styles"]},{name:"clipboard",groups:["undo"]},{name:"colors",groups:["colors"]},{name:"basicstyles",groups:["basicstyles"]},{name:"paragraph",groups:["list","indent","align"]}],autoGrow_onStartup:!0,autoGrow_minHeight:h.secret?160:300,autoGrow_maxHeight:t.innerHeight-400,autocorrect_enabled:!0,disableNativeSpellChecker:!1,enterMode:window.CKEDITOR.ENTER_BR,font_defaultLabel:i.fontFamily?i.fontFamily.split(",")[0]:"Arial",fontSize_defaultLabel:i.fontSize||"12",removePlugins:"magicline"};const b=[];for(let e=8;e<=72;e++)b.push(e+"/"+e+"pt");h.ckeditor.fontSize_sizes=b.join(";"),h.ngFlowOptions={target:`${h.baseUrl}api/attachments`,singleFile:!0,maxChunkRetries:1,chunkSize:_,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},h.ngFlow={flow:{}},h.reply=function(e){angular.isDefined(s)&&(h.message.type="reply",h.message.to="in"===s.direction?s.from.split(","):s.to.split(","),h.message.subject=u().startsWith(s.subject,"Re:")?s.subject:"Re: "+s.subject,h.message.inReplyTo=s.messageId,h.message.body=S(),h.message.attachments=[],e&&s.cc&&(h.hiddenCC=!1,h.message.cc=s.cc.split(",")),h.message.showLastMessage=!1)},h.newMail=function(){angular.isDefined(s)&&(h.message.type="new",h.message.to=s.to?s.to.split(","):[])},h.forward=function(){if(angular.isDefined(s)){if(h.message.type="forward",h.message.subject=u().startsWith(s.subject,"Fwd:")?s.subject:"Fwd: "+s.subject,h.message.body=S(),s.Attachments&&s.Attachments.length)for(let e=0;e<s.Attachments.length;e++)h.message.attachments.push(s.Attachments[e]);h.message.showLastMessage=!1}},h.editDraft=function(){h.isDraft=!0,angular.isDefined(s)&&(s.savedAsDraft=!1,h.message=angular.copy(s),u().isEmpty(h.message.cc)||(h.hiddenCC=!1),u().isEmpty(h.message.bcc)||(h.hiddenBCC=!1))},h.send=function(e,t,a){if(!y&&h.message.to&&h.message.body)if(h.message.to.length)if(u().isEmpty(h.message.subject)){const o=n.confirm({skipHide:!0}).title("Warning").textContent("This message has no subject. Are you sure you want to send it?").ariaLabel("Warning").targetEvent(e).ok("Send Anyway").cancel("Cancel");n.show(o).then((function(){v(t,a)}))}else v(t,a);else d.error("To is mandatory");y=!1},h.note=function(){h.type="note",h.secret=!0,h.message.body='<div style="font-family:'+i.fontFamily+";font-size:"+i.fontSize+'pt"><p></p></div>'},h.addNote=function(){h.message.body&&n.hide({secret:!0,body:h.message.body,attach:h.message.attachments.length,attachments:h.message.attachments})},h.upload=function(){h.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},h.ngFlow.flow.upload()},h.fileSuccess=function(e,t){try{(t=JSON.parse(t)).size=e.size,h.message.attachments.push(t)}catch(e){console.error(e)}},h.removeAttachment=function(e){h.message.attachments=u().reject(h.message.attachments,{id:e.id}),e.MailMessageId||c.attachment.delete({id:e.id}).$promise.catch((function(e){d.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.attachment.delete",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},h.fileAdded=function(e){if(e.size>_)return d.error({title:"File too big",msg:"The max allowed size is 25MB"}),!1;return!0},h.getContact=function(e){let t="";e.firstName&&e.firstName!==e.email&&(t+=e.firstName+" ");e.lastName&&e.lastName!==e.email&&(t+=e.lastName+" ");return t+="<"+e.email+">"},h.contactSearch=function(e){return i&&i.ListId?c.cmContact.get({ListId:i.ListId,nolimit:!0,filter:e,fields:"firstName,lastName,email"}).$promise.then((function(e){return e.rows})):[]},h.transformContact=function(e,t){if(u().isObject(e))return h.contact=e,e.email;if(u().isString(e)){if(A(e))return h.contact={email:e},e;{const n=e.split(",");for(let e=0;e<n.length;e+=1)A(n[e])?u().isArray(t)&&u().indexOf(t,n[e])<0&&t.push(n[e]):d.error("Email "+n[e]+" is not valid");return h.contact={email:e.split(",")[0]},null}}return d.error("Email field is not valid"),null},h.saveDraft=function(){h.message.savedAsDraft=!0,h.draft=g.getByInteraction(p.id);const e={account:i,message:h.message,contact:h.contact,interaction:p};if(h.draft&&!h.isDraft){const t=n.confirm({multiple:!0}).title(r.instant("DASHBOARDS.DRAFT_SAVE_WARNING_TITLE")).content(r.instant("DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE")).ariaLabel("Save draft").ok(r.instant("DASHBOARDS.OVERWRITE")).cancel(r.instant("APP.CANCEL"));n.show(t).then((function(){n.hide(e)}))}else n.hide(e)},h.closeDialog=function(){n.cancel()},h.loadLastMessage=function(){h.message.body+=w(h.message.type)},h.keyPress=function(e){13===e.keyCode&&(y=!0)};let y=!1;switch(l){case"reply":h.reply(!1);break;case"replyAll":h.reply(!0);break;case"forward":h.forward();break;case"draft":h.editDraft();break;case"new":h.newMail();break;case"note":h.note()}function v(e,t){const a={from:h.message.from,to:h.message.to.join(","),cc:h.message.cc.join(","),bcc:h.message.bcc.join(","),subject:h.message.subject,body:h.message.showLastMessage?h.message.body:h.message.body+w(h.message.type),inReplyTo:h.message.inReplyTo,attach:h.message.attachments.length,attachments:h.message.attachments,Interaction:{lastMsgDirection:"out",substatus:t},isDraft:h.isDraft};a.html='<div id="xm-mail-content">'+u().replace(a.body,'<div id="xm-mail-content"',"<div")+"</div>",e&&(a.Interaction.closed=!0),n.hide(a)}function A(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function S(){return'<div style="font-family:'+i.fontFamily+";font-size:"+i.fontSize+'pt">'+function(){if(u().isNil(i.template))return"";try{return u().template(i.template)({user:h.currentUser,account:i,interaction:p,contact:p&&p.Contact?p.Contact:{}})}catch(e){return console.error(e),""}}()+"</div>"}function w(e){let t='<div id="xm-mail-content"><blockquote type="cite">';switch(e){case"reply":case"replyAll":t+=h.replyTemplate({date:o()(s.createdAt).format("D MMM YYYY")||"",time:o()(s.createdAt).format("HH:mm")||"",from:u().escape(s.from)||""});break;case"forward":t+=h.forwardTemplate({date:o()(s.createdAt).format("D MMM YYYY")||"",time:o()(s.createdAt).format("HH:mm")||"",from:u().escape(s.from)||"",to:u().escape(s.to)||"",subject:u().escape(s.subject)||""})}const n=h.message.showLastMessage&&s.originalMessage?s.originalMessage.body:s.body;return t+="<br><br>",t+=function(e){const t=e.match(/<body[^>]*>([^]*)<\/body/m);return t?t[1]:e}(n?u().replace(n,'<div id="xm-mail-content"',"<div"):""),t+="</blockquote></div>",e?t:""}c.mailSubstatus.get({nolimit:!0}).$promise.then((function(e){h.subStatuses=e||{count:0,rows:[]}})).catch((function(e){console.error(e)})),h.secret||c.mailAccount.verifySmtp({id:i.id}).$promise.catch((function(e){h.verifySmtp=!1,h.errors.push({message:e.data,type:e.status}),h.errors.push({message:"You can't reply or send an email. Please contact the administrator!",type:"500"})}))}fr.$inject=["$cookies","$window","$mdDialog","$mdConstant","$translate","account","message","type","api","toasty","$q","Auth","interaction","draftManager"];const mr=fr;function pr(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;switch(p.currentUser=m.getCurrentUser(),p.errors=[],p.separatorKeys=[o.KEY_CODE.ENTER,o.KEY_CODE.COMMA,o.KEY_CODE.TAB],p.searchTextChange=function(e){const t=d.defer();let n=[];return l.cannedAnswer.get({filter:e,OpenchannelAccountId:r.id}).$promise.then((function(t){return n=u().concat(n,t.rows),l.cannedAnswer.get({filter:e}).$promise})).then((function(e){n=u().concat(n,u().filter(e.rows,(function(e){return!(e.MailAccountId||e.FaxAccountId||e.SmsAccountId||e.WhatsappAccountId||e.OpenchannelAccountId||e.ChatWebsiteId)}))),t.resolve(n)})).catch((function(e){t.reject(e)})),t.promise},p.selectedItemChange=function(e){if(e){try{u().templateSettings.interpolate=/{{([\s\S]+?)}}/g;const t=u().template(e.value),n={user:p.currentUser,account:r};p.message.body+=" "+t(n),p.ctrlMethods.setText(p.message.body)}catch(t){p.message.body+=" "+e.value,p.ctrlMethods.setText(p.message.body)}p.selectedItem=null}},p.note=function(){p.secret=!0},p.addNote=function(){p.message.body&&a.hide({secret:!0,body:p.message.body})},p.ctrlMethods={},p.message={from:r.phone,to:u().isNil(i.to)||u().isEmpty(i.to)?[]:i.to,body:""},p.send=function(){p.message.to&&p.message.body&&(p.message.to.length?(e=p.message.body,a.hide({to:p.message.to.join(","),body:e})):c.error("To is mandatory"));var e},p.getContact=function(e){let t="";e.firstName&&e.firstName!==e[r.mapKey]&&(t+=e.firstName+" ");e.lastName&&e.lastName!==e[r.mapKey]&&(t+=e.lastName+" ");return t+="<"+e[r.mapKey]+">"},p.closeDialog=function(){a.cancel()},p.contactSearch=function(e){if(r&&r.ListId){let t="firstName,lastName,phone,mobile";return r.mapKey&&(t+=","+r.mapKey),l.cmContact.get({ListId:r.ListId,nolimit:!0,filter:e,fields:t}).$promise.then((function(e){return e.rows}))}return[]},p.transformContact=function(e){const t=e;if(u().isObject(t))return e[r.mapKey];return t},s){case"note":p.note()}}pr.$inject=["$cookies","$timeout","$window","$mdDialog","$mdConstant","account","message","type","api","toasty","$q","$translate","Auth"];const gr=pr;function hr(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;switch(p.currentUser=m.getCurrentUser(),p.errors=[],p.separatorKeys=[o.KEY_CODE.ENTER,o.KEY_CODE.COMMA,o.KEY_CODE.TAB],p.searchTextChange=function(e){const t=d.defer();let n=[];return l.cannedAnswer.get({filter:e,SmsAccountId:r.id}).$promise.then((function(t){return n=u().concat(n,t.rows),l.cannedAnswer.get({filter:e}).$promise})).then((function(e){n=u().concat(n,u().filter(e.rows,(function(e){return!(e.MailAccountId||e.FaxAccountId||e.SmsAccountId||e.OpenchannelAccountId||e.ChatWebsiteId)}))),t.resolve(n)})).catch((function(e){t.reject(e)})),t.promise},p.selectedItemChange=function(e){if(e){try{u().templateSettings.interpolate=/{{([\s\S]+?)}}/g;const t=u().template(e.value),n={user:p.currentUser,account:r};p.message.body+=" "+t(n),p.ctrlMethods.setText(p.message.body)}catch(t){p.message.body+=" "+e.value,p.ctrlMethods.setText(p.message.body)}p.selectedItem=null}},p.note=function(){p.secret=!0},p.addNote=function(){p.message.body&&a.hide({secret:!0,body:p.message.body})},p.ctrlMethods={},p.message={from:r.phone,to:u().isNil(i.to)||u().isEmpty(i.to)?[]:i.to,body:""},p.send=function(){p.message.to&&p.message.body&&(p.message.to.length?(e=p.message.body,a.hide({to:p.message.to.join(","),body:e})):c.error("To is mandatory"));var e},p.getContact=function(e){let t="";e.firstName&&e.firstName!==e.mobile&&(t+=e.firstName+" ");e.lastName&&e.lastName!==e.mobile&&(t+=e.lastName+" ");return t+="<"+e.mobile+">"},p.closeDialog=function(){a.cancel()},p.contactSearch=function(e){if(r&&r.ListId)return l.cmContact.get({ListId:r.ListId,nolimit:!0,filter:e,fields:"firstName,lastName,mobile"}).$promise.then((function(e){return e.rows}));return[]},p.transformContact=function(e){const t=e;if(u().isObject(t))return e.mobile;if(function(e){return/^(\+|\d)[0-9]{7,16}$/.test(e)}(t))return t;return c.error("Mobile "+t+" is not valid"),null},s){case"note":p.note()}}hr.$inject=["$cookies","$timeout","$window","$mdDialog","$mdConstant","account","message","type","api","toasty","$q","$translate","Auth"];const _r=hr;function br(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;switch(p.currentUser=m.getCurrentUser(),p.errors=[],p.separatorKeys=[o.KEY_CODE.ENTER,o.KEY_CODE.COMMA,o.KEY_CODE.TAB],p.searchTextChange=function(e){const t=d.defer();let n=[];return l.cannedAnswer.get({filter:e,WhatsappAccountId:r.id}).$promise.then((function(t){return n=u().concat(n,t.rows),l.cannedAnswer.get({filter:e}).$promise})).then((function(e){n=u().concat(n,u().filter(e.rows,(function(e){return!(e.MailAccountId||e.FaxAccountId||e.WhatsappAccountId||e.OpenchannelAccountId||e.ChatWebsiteId)}))),t.resolve(n)})).catch((function(e){t.reject(e)})),t.promise},p.selectedItemChange=function(e){if(e){try{u().templateSettings.interpolate=/{{([\s\S]+?)}}/g;const t=u().template(e.value),n={user:p.currentUser,account:r};p.message.body+=" "+t(n),p.ctrlMethods.setText(p.message.body)}catch(t){p.message.body+=" "+e.value,p.ctrlMethods.setText(p.message.body)}p.selectedItem=null}},p.note=function(){p.secret=!0},p.addNote=function(){p.message.body&&a.hide({secret:!0,body:p.message.body})},p.ctrlMethods={},p.message={from:r.phone,to:u().isNil(i.to)||u().isEmpty(i.to)?[]:i.to,body:""},p.send=function(){p.message.to&&p.message.body&&(p.message.to.length?(e=p.message.body,a.hide({to:p.message.to.join(","),body:e})):c.error("To is mandatory"));var e},p.getContact=function(e){let t="";e.firstName&&e.firstName!==e.mobile&&(t+=e.firstName+" ");e.lastName&&e.lastName!==e.mobile&&(t+=e.lastName+" ");return t+="<"+e.mobile+">"},p.closeDialog=function(){a.cancel()},p.contactSearch=function(e){if(r&&r.ListId)return l.cmContact.get({ListId:r.ListId,nolimit:!0,filter:e,fields:"firstName,lastName,mobile"}).$promise.then((function(e){return e.rows}));return[]},p.transformContact=function(e){const t=e;if(u().isObject(t))return e.mobile;if(function(e){return/^(\+|\d)[0-9]{7,16}$/.test(e)}(t))return t;return c.error("Mobile "+t+" is not valid"),null},s){case"note":p.note()}}br.$inject=["$cookies","$timeout","$window","$mdDialog","$mdConstant","account","message","type","api","toasty","$q","$translate","Auth"];const yr=br;function vr(e,t,n,a,o,r,i){const s=this;function l(t){e.hide(t)}s.errors=[],s.dispositions=[],s.interaction=angular.copy(a),s.interaction.disposition||(s.interaction.disposition=null),s.channel=o,s.apiRoute=s.channel+"Interaction",s.apiAccountRoute=s.channel+("chat"===s.channel?"Website":"Account"),s.accountProperty=u().capitalize(s.channel)+("chat"===s.channel?"Website":"Account")+"Id",s.firstLevelDisposition=null,s.mandatoryDisposition=!1,s.mandatoryDispositionPause="",s.wasUserInPause=r.voicePause||r.chatPause||r.mailPause||r.openchannelPause||r.faxPause,s.onInit=function(){let e=[];const t={fields:"id,name,level,ParentId",sort:"name",nolimit:!0};t[s.accountProperty]=a[s.accountProperty],n[s.apiAccountRoute].get({id:a[s.accountProperty]}).$promise.then((function(e){return s.mandatoryDisposition=e.mandatoryDisposition,s.mandatoryDisposition&&(s.mandatoryDispositionPause=e.mandatoryDispositionPause.name),n.disposition.get(t).$promise})).then((function(t){return t.rows.length&&(e=u().concat(e,t.rows)),n.disposition.get({MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0}).$promise})).then((function(t){t.rows.length&&(e=u().concat(e,t.rows))})).catch((function(e){console.error(e)})).finally((function(){s.dispositions=u().orderBy(e,["name"],["asc"]),s.mandatoryDisposition&&!s.wasUserInPause&&n.user.pause({id:r.id,type:s.mandatoryDispositionPause||"DEFAULT PAUSE"}).$promise.then((function(){})).catch((function(e){console.error(e)}))}))},s.onDispositionChange=function(e){"first"===e?(s.anySecondLevelDisposition=!!s.firstLevelDisposition&&u().some(s.dispositions,["ParentId",s.firstLevelDisposition.id]),s.firstLevelDisposition||(s.secondLevelDisposition=void 0)):"second"===e&&(s.anyThirdLevelDisposition=u().some(s.dispositions,["ParentId",s.secondLevelDisposition.id]))},s.clearDispositionSelection=function(e){"second"===e?(s.secondLevelDisposition=void 0,s.thirdLevelDisposition=void 0):"third"===e&&(s.thirdLevelDisposition=void 0)},s.saveDisposition=function(){s.errors=[],s.interaction.UserId=r.id,s.interaction.closed=!0,s.interaction.closeReason="agent",s.interaction.disposition=s.firstLevelDisposition?s.firstLevelDisposition.name:null,s.interaction.secondDisposition=s.secondLevelDisposition?s.secondLevelDisposition.name:void 0,s.interaction.thirdDisposition=s.thirdLevelDisposition?s.thirdLevelDisposition.name:void 0,n[s.apiRoute]?n[s.apiRoute].update(u().pick(s.interaction,["MailAccountId","FaxAccountId","SmsAccountId","WhatsappAccountId","ChatWebsiteId","OpenchannelAccountId","closed","closeReason","disposition","secondDisposition","thirdDisposition","id","note","UserId"])).$promise.then((function(e){s.interaction=e,"mail"===s.channel&&i.removeByInteraction(s.interaction.id),t.success({title:"Interaction properly closed!",msg:"Interaction has been closed!"})})).then((function(){l(!0)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){s.errors=e.data.errors||[{message:e.toString(),type:"api.variable.update"}];for(let n=0;n<e.data.errors.length;n++)t.error({title:e.data.errors[n].type,msg:e.data.errors[n].message})}else t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.variable.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})})):l(!1)},s.closeDialog=l}vr.$inject=["$mdDialog","toasty","api","interaction","channel","user","draftManager"];const Ar=vr;function Sr(e,t,n,a,o,r){const i=this;function s(t){e.hide(t)}i.errors=[],i.tags=r,i.interaction=angular.copy(a),i.interaction.Tags=u().map(i.interaction.Tags,(function(e){return{id:e.id,name:e.name,color:e.color}})),i.channel=o,i.autocompleteRequireMatch=!0,i.saveTag=function(){if(i.errors=[],n[i.apiRoute])return n[i.apiRoute].addTags({id:i.interaction.id,ids:u().map(i.interaction.Tags,"id")}).$promise.then((function(){t.success({title:"Interaction properly tagged!",msg:"Interaction has been tagged!"}),a.Tags=i.interaction.Tags,s(!0)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let n=0;n<e.data.errors.length;n+=1)t.error({title:e.data.errors[n].type,msg:e.data.errors[n].message});else t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.variable.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));s(!1)},i.closeDialog=s,i.apiRoute=i.channel+"Interaction"}Sr.$inject=["$mdDialog","toasty","api","interaction","channel","tags"];const wr=Sr;function Er(e,t,n,a,o,r,i,s){const l=this;function c(t){e.hide(t)}l.currentUser=n.getCurrentUser(),l.channel=r.toLowerCase(),l.message=i,l.account=s,l.transfer={id:0,type:l.account.queueTransfer?"queue":"agent"},l.queues={count:0,rows:[]},l.agents=l.queues,l.queueMethod=l.channel+"Queue",l.queueNotifyMethod=l.channel+"QueueNotify",l.onTransfer=function(){c(!0),t((function(){return a.rpc["agent"===l.transfer.type?"agentNotify":l.queueNotifyMethod]({id:l.transfer.id,messageId:l.message.id,channel:l.channel}).$promise.then((function(){o.success({title:"Trasfer properly done!",msg:"Transfer "+l.transfer.type+" has been done!"})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){l.errors=e.data.errors||[{message:e.toString(),type:"api.rpc.notify"}];for(let t=0;t<e.data.errors.length;t++)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.rpc.notify",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}),5e3)},l.closeDialog=c,l.init=function(){return a.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:!0}).$promise.then((function(e){return l.agents=e||{count:0,rows:[]},a[l.queueMethod].get({fields:"id,name",sort:"name",nolimit:!0}).$promise})).then((function(e){l.queues=e||{count:0,rows:[]}})).catch((function(e){console.error(e)}))},l.init()}Er.$inject=["$mdDialog","$timeout","Auth","api","toasty","channel","message","account"];const Cr=Er;function Tr(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(){try{e.$parent.$parent.$parent.vm.updateLocalStorage()}catch(e){i.error({title:"ERROR UPDATE LOCAL TABS",msg:"Error updating locally stored tabs"})}}function g(e,n){const a=[],l=[],c=s.getCurrentUser();(function(e){const n=t.defer();return m.project.sendUnpauseOnSubmit?r.user.unpause({id:e.id}).$promise.then((function(){n.resolve()})).catch((function(){console.log("err"),n.resolve()})):n.resolve(),n.promise})(c).then((function(){return r.jscriptySessionReport.save({starttime:m.starttime,membername:m.call&&m.call.membername?m.call.membername:c.name,calleridname:m.call&&m.call.calleridname?m.call.calleridname:void 0,calleridnum:m.call&&m.call.calleridnum?m.call.calleridnum:void 0,queue:m.call&&m.call.queue?m.call.queue:void 0,uniqueid:m.call&&m.call.uniqueid?m.call.uniqueid:void 0,VoiceQueueId:m.call&&m.call["xmd-voicequeueid"]?m.call["xmd-voicequeueid"]:void 0,ProjectId:m.project&&m.project.id?m.project.id:void 0,projectname:m.project&&m.project.name?m.project.name:void 0,ContactId:m.contact&&m.contact.id?m.contact.id:void 0,completed:n}).$promise})).then((function(e){if(e){const t=m.getResponseSheetHeaders(),n=m.getResponseSheetRow(),i=m.getQuestionWithResponseList();for(let s=0;s<t.length;s+=1)if(!u().isEmpty(String(n[s]))){try{a.push(r.jscriptyQuestionReport.save({question:t[s],answer:"date"===i[s].type?o()(String(n[s])).format("YYYY-MM-DD"):"time"===i[s].type?o()(String(n[s])).format("HH:mm"):String(n[s]),questionId:i[s].id,membername:m.call&&m.call.membername?m.call.membername:c.name,calleridname:m.call&&m.call.calleridname?m.call.calleridname:void 0,calleridnum:m.call&&m.call.calleridnum?m.call.calleridnum:void 0,queue:m.call&&m.call.queue?m.call.queue:void 0,uniqueid:m.call&&m.call.uniqueid?m.call.uniqueid:void 0,SessionId:e.id,ProjectId:m.project.id,projectname:m.project.name}))}catch(e){console.error("Unable to convert question",e)}const u=String(n[s]).split(";");for(let n=0;n<u.length;n+=1){const a=u[n].trim();try{l.push(r.jscriptyAnswerReport.save({question:t[s],questionId:i[s].id,answer:"date"===i[s].type?o()(a).format("YYYY-MM-DD"):"time"===i[s].type?o()(a).format("HH:mm"):a,membername:m.call&&m.call.membername?m.call.membername:c.name,calleridname:m.call&&m.call.calleridname?m.call.calleridname:void 0,calleridnum:m.call&&m.call.calleridnum?m.call.calleridnum:void 0,queue:m.call&&m.call.queue?m.call.queue:void 0,uniqueid:m.call&&m.call.uniqueid?m.call.uniqueid:void 0,SessionId:e.id,ProjectId:m.project.id,projectname:m.project.name}))}catch(e){console.error("Unable to convert answer",e)}}}}return t.all(a).then((function(){return t.all(l).then((function(){return e}))}))})).then((function(t){t?e.resolve(!0):e.reject()})).catch((function(t){if(t.data&&t.data.errors&&t.data.errors.length){m.errors=t.data.errors||[{message:t.toString(),type:"api.contact.save"}];for(let e=0;e<t.data.errors.length;e+=1)i.error({title:t.data.errors[e].type,msg:t.data.errors[e].message})}else i.error({title:t.status?"API:"+t.status+" - "+t.statusText:"api.contact.save",msg:t.data?JSON.stringify(t.data.message):t.toString()});e.reject()}))}m.formViewer={},m.showResetButton=!0,m.showIncompleteSubmitButton=!1,m.detectBrowser=f.detectBrowser(),m.onSubmit=function(a,o){const r=t.defer();if(o){const e=n.confirm().title("Would you like to save your survey?").textContent("").ariaLabel("survey").targetEvent(a).ok("YES").cancel("NO");n.show(e).then((function(){g(r,!1)}),(function(){r.resolve()}))}else g(r,!0);return r.promise.then((function(t){t&&(i.success({title:"Session saved",msg:"Your survey session has been properly saved!"}),function(t){try{e.$parent.$parent.$parent.vm.removeTab(t)}catch(e){i.error({title:"ERROR REMOVE TAB",msg:"Error while removing tab"})}}(m.tab))})).catch((function(){i.error({title:"Session save error",msg:"There has been an error while trying to save your survey session!"})}))},m.openContact=function(t,n){try{e.$parent.$parent.$parent.vm.addContactTab(n)}catch(e){i.error({title:"ERROR OPEN CONTACT",msg:"Jscripty can't open the contact"})}},m.isJsonString=function(e){if(u().isNil(e))return!1;try{JSON.parse(e)}catch(e){return!1}return!0},m.getResponseSheet=function(){return a.getResponseSheet(m.project.formData,m.project.responseData,!1)},m.getResponseSheetRow=function(){return a.getResponseSheetRow(m.project.formData,m.project.responseData)},m.getResponseSheetHeaders=function(){return a.getResponseSheetHeaders(m.project.formData,!1)},m.getQuestionWithResponseList=function(){return a.getQuestionWithResponseList(m.project.formData,m.project.responseData)},m.init=function(t){m.tab=t,m.tab&&(m.call=m.tab.call,m.starttime=m.tab.openedAt,m.contact=m.tab.contact,m.project=m.tab.project,m.project&&(u().isObjectLike(m.project.formData)||(m.isJsonString(m.project.formData)?m.project.formData=JSON.parse(m.project.formData):m.project.formData=void 0),m.project.responseData=m.project.responseData||{},void 0!==m.project.currentPage&&d((function(){c.$broadcast("mwForm.pageEvents.changePage",{page:m.project.currentPage})})),e.$on("mwForm.pageEvents.pageCurrentChanged",(function(e,t){if(t.currentPage&&(m.project.currentPage=t.currentPage.number-1,p(),m.project.enableUncompleteSave&&(t.currentPage.number>=1&&t.currentPage.number<m.project.formData.pages.length?m.showIncompleteSubmitButton=!0:m.showIncompleteSubmitButton=!1),m.project.formData&&m.project.formData.pages))for(let e=0,n=m.project.formData.pages.length;e<n;e++)if(t.currentPage.number<e+1&&m.project.formData.pages[e].elements)for(let t=0,n=m.project.formData.pages[e].elements.length;t<n;t++)"question"===m.project.formData.pages[e].elements[t].type&&m.project.formData.pages[e].elements[t].question&&delete m.project.responseData[m.project.formData.pages[e].elements[t].question.id]}))))},m.resetViewer=function(e){if(m.formViewer.reset){const t=n.confirm().title(l.instant("JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION")).content(l.instant("JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST")).textContent("").ariaLabel("survey").targetEvent(e).ok(l.instant("APP.YES")).cancel(l.instant("APP.NO"));n.show(t).then((function(){m.showIncompleteSubmitButton=!1,m.project.currentPage=void 0,p(),m.formViewer.reset()}))}}}Tr.$inject=["$scope","$q","$mdDialog","mwFormResponseUtils","api","toasty","Auth","$translate","$rootScope","$timeout","msUtils"];const Ir=Tr;function kr(e,t,n,a,o){const r=this;function i(){return function(n){if(404===n.status)t.info({title:e.instant("DASHBOARDS.ATTENTION"),msg:e.instant("DASHBOARDS.ACCEPT_ELSEWHERE")});else if(n.data&&n.data.errors&&n.data.errors.length){r.errors=n.data.errors||[{message:n.toString(),type:"api.openchannelMessage.accept"}];for(let e=0;e<n.data.errors.length;e+=1)t.error({title:n.data.errors[e].type,msg:n.data.errors[e].message})}else t.error({title:n.status?"API:"+n.status+" - "+n.statusText:"api.openchannelMessage.accept",msg:n.data?JSON.stringify(n.data.message):n.toString()})}}r.notification=n,r.user=o.getCurrentUser(),r.accept=function(){if(a[r.notification.channel+"Message"])return a[r.notification.channel+"Message"].accept({id:r.notification.id,UserId:r.user.id,manual:!0}).$promise.then((function(){t.success({title:"Message properly accepted!",msg:"Message has been accepted!"})})).catch(i());t.error({title:"API:ERROR",msg:"API accept message not found: "+r.notification.channel+"Message"})},r.reject=function(){if(a[r.notification.channel+"Message"])return a[r.notification.channel+"Message"].reject({id:r.notification.id,UserId:r.user.id}).$promise.then((function(){t.success({title:"Message properly rejected!",msg:"Message has been rejected!"})})).catch(i());t.error({title:"API:ERROR",msg:"API reject message not found: "+r.notification.channel+"Message"})}}kr.$inject=["$translate","toasty","notification","api","Auth"];const Dr=kr;const xr=function(){const e=this;e.init=function(t){e.tab=t,e.tab&&(e.tab.saved=!0,e.html=e.tab.html)}},Mr=n.p+"templates/main/apps/dashboards/views/general/user/user.general.html/user.general.html",Pr=n.p+"templates/main/apps/dashboards/views/general/agent/agent.general.html/agent.general.html";function Or(e){e.state("app.dashboards.general",{url:"/general",views:{"content@app":{templateProvider:["$stateParams","$templateFactory","Auth",function(e,t,n){return n.isAgent()?t.fromUrl(Pr,e):t.fromUrl(Mr,e)}],controllerProvider:["Auth",function(e){return e.isAgent()?"AgentDashboardGeneralController as vm":"UserDashboardGeneralController as vm"}]}},resolve:{globalUserLists:["apiResolver","Auth",function(e,t){return e.resolve("user@getLists",{id:t.getCurrentUser().id,sort:"name",nolimit:!0})}],globalLists:["apiResolver",function(e){return e.resolve("cmList@get",{sort:"name",nolimit:!0})}],globalTags:["apiResolver",function(e){return e.resolve("tag@get",{sort:"name",nolimit:!0})}],globalCompanies:["apiResolver",function(e){return e.resolve("cmCompany@get",{sort:"name",nolimit:!0})}]},authenticate:!0,bodyClass:"dashboards"})}Or.$inject=["$stateProvider"],angular.module("app.dashboards.general",["ngMaterialDateRangePicker","app.dashboards.general.user"]).config(Or).controller("AgentDashboardGeneralController",xa).provider("desktopNotification",(function(){const e={autoClose:!0,duration:5,showOnPageHidden:!1};return{config:function(t){for(const n in t)void 0!==e[n]&&void 0!==t[n]&&(e[n]=t[n])},$get:["$q","$timeout","$window","PERMISSIONS",function(t,n,a,o){const r=a.Notification||a.mozNotification||a.webkitNotification;return{isSupported:i,currentPermission:s,requestPermission:function(){if(!i())return t.reject("Notification API not supported");const e=t.defer();Promise.resolve(r.requestPermission)==r.requestPermission?r.requestPermission().then((function(t){o.GRANTED===t?e.resolve(t):e.reject(t)})):r.requestPermission((function(t){o.GRANTED===t?e.resolve(t):e.reject(t)}));return e.promise},show:function(t,a){if(a=a||{},!i()||!l(t,a)||c(a.showOnPageHidden)||s()!==o.GRANTED)return;const u=new r(t,a),d=a.duration||e.duration,f=void 0===a.autoClose?e.autoClose:a.autoClose;u.onclick=function(){a.onClick&&a.onClick(),a.focusOnclick&&window.focus(),a.closeOnClick&&u.close()},f&&function(e,t){const a=1e3*t;n(e.close.bind(e),a,!1)}(u,d);return u},permissions:{default:o.DEFAULT,granted:o.GRANTED,denied:o.DENIED}};function i(){return!(void 0===r)}function s(){return(r||{}).permission}function l(e,t){const n=angular.isString(e),a=!t.onClick||angular.isFunction(t.onClick);return n&&a}function c(t){if(t||e.showOnPageHidden)return!(window.document.hidden||window.document.mozHidden||window.document.webkitHidden)}}]}})).provider("msNavigationAgentService",(function(){const e=angular.injector(["ng"]).get("$log"),t=[];function n(n,o){if(!angular.isString(n))return void e.error("path must be a string (eg. `dashboard.project`)");const r=n.split("."),i=r[r.length-1],s=function(e){let n=t;if(1===e.length)return n;e.pop();for(let t=0;t<e.length;t++){const a=e[t];let o=!0;for(let e=0;e<n.length;e++)if(n[e]._id===a){n=n[e].children,o=!1;break}if(o){const t={_id:a,_path:e.join("."),title:a,weight:1,children:[]};n.push(t),n=t.children}}return n}(r);let l=!1;for(let e=0;e<s.length;e++)if(s[e]._id===i){l=s[e];break}l?(angular.extend(l,o),l.uisref=a(l)):(o.children=[],!angular.isUndefined(o.weight)&&angular.isNumber(o.weight)||(o.weight=1),o._id=i,o._path=n,o.uisref=a(o),s.push(o))}function a(e){let t="";return angular.isDefined(e.state)&&(t=e.state,angular.isDefined(e.stateParams)&&angular.isObject(e.stateParams)&&(t=t+"("+angular.toJson(e.stateParams)+")")),t}this.saveItem=n,this.deleteItem=function(n){if(!angular.isString(n))return void e.error("path must be a string (eg. `dashboard.project`)");let a=t;const o=n.split(".");for(let e=0;e<o.length;e++){const t=o[e];for(let e=0;e<a.length;e++)if(a[e]._id===t){if(a[e]._path===n)return a.splice(e,1),!0;a=a[e].children;break}}return!1},this.$get=function(){return{saveItem:n,getNavigation:function(e){if(e){for(let n=0;n<t.length;n++)if(t[n]._id===e)return[t[n]];return null}return t}}}})).constant("PERMISSIONS",{DEFAULT:"default",GRANTED:"granted",DENIED:"denied"}).controller("AgentGeneralBotController",Pa).controller("AgentGeneralContactController",Ha).controller("DisposeCallDialogController",Ga).controller("RescheduleCallDialogController",Wa).controller("ContactSelectionController",za).controller("AgentHomeAbandonedController",Ja).controller("AgentHomeAbandonedBullController",eo).controller("DisposeAbandonedCallDialogController",no).controller("AgentHomeAbandonedVoiceController",oo).controller("AgentGeneralHomeController",io).controller("AgentHomeChatController",co).controller("AgentHomeContactsController",fo).controller("AgentHomeDashboardController",po).controller("AgentHomeDashboardBullController",ho).controller("AgentHomeDashboardMultiChannelChatController",bo).controller("AgentHomeDashboardMultiChannelFaxController",vo).controller("AgentHomeDashboardMultiChannelMailController",So).controller("AgentHomeDashboardMultiChannelOpenchannelController",Eo).controller("AgentHomeDashboardMultiChannelSmsController",To).controller("AgentHomeDashboardVoiceController",ko).controller("AgentHomeDashboardMultiChannelWhatsappController",xo).controller("AgentHomeFaxController",Po).controller("AgentHomeMailController",Ro).controller("AgentHomeMyContactsController",Lo).controller("AgentHomeOpenchannelController",Uo).controller("AgentHomePluginsController",Fo).controller("AgentHomePresenceController",Yo).controller("AgentHomeRecordingsController",Bo).controller("AgentHomeScheduledCallsController",Wo).controller("AgentHomeSmsController",zo).controller("AgentHomeVoiceController",Xo).controller("AgentHomeVoiceDetailsController",er).controller("AgentHomeWhatsappController",nr).controller("AgentGeneralIframeController",or).directive("ngBindHtmlUnsafe",lr).controller("AgentGeneralInteractionController",sr).factory("Emojis",cr).controller("ComposeFaxInteractionDialogController",dr).controller("ComposeMailInteractionDialogController",mr).controller("ComposeOpenchannelInteractionDialogController",gr).controller("ComposeSmsInteractionDialogController",_r).controller("ComposeWhatsappInteractionDialogController",yr).controller("DisposeInteractionDialogController",Ar).controller("TagInteractionDialogController",wr).controller("TransferMessageDialogController",Cr).controller("AgentGeneralJscriptyController",Ir).controller("NotificationController",Dr).controller("AgentGeneralPopupController",xr);const Rr=n.p+"templates/main/apps/dashboards/views/custom/custom.html/custom.html",Nr=n.p+"templates/core/directives/ms-widget-engine/ms-widget-engine-counter/ms-widget-engine.counter.html/ms-widget-engine.counter.html",Lr=n.p+"templates/core/directives/ms-widget-engine/ms-widget-engine-pie-chart/ms-widget-engine.pie-chart.html/ms-widget-engine.pie-chart.html",$r=n.p+"templates/core/directives/ms-widget-engine/ms-widget-engine-multibar-chart/ms-widget-engine.multibar-chart.html/ms-widget-engine.multibar-chart.html",Ur=n.p+"templates/core/directives/ms-widget-engine/ms-widget-engine-web-report/ms-widget-engine.web-report.html/ms-widget-engine.web-report.html";Fr.$inject=["$state","$interval","$scope","api","socket","Auth","voiceQueues","userProfile","userProfileSection"];const jr={counter:Nr,"pie-chart":Lr,"multibar-chart":$r,"web-report":Ur};function Fr(e,t,n,a,o,r,i,s,l){const c=this;c.currentUser=r.getCurrentUser(),c.userProfile=s,c.userProfileSection=l&&1==l.count?l.rows[0]:null,c.crudPermissions=r.parseCrudPermissions(c.userProfileSection?c.userProfileSection.crudPermissions:null),c.customDashboard={},c.voiceQueues=i&&i.count?i:{count:0,rows:[]},c.voiceQueuesSelected=i&&i.count?u().map(i.rows,"id"):[],c.interval=t((function(){}),1e3),c.onChangeVoiceQueues=function(){for(let e=0;e<c.customDashboard.widgets.length;e+=1)c.customDashboard.widgets[e].voiceQueuesSelected=c.voiceQueuesSelected},c.goToEdit=function(){e.go("app.tools.customDashboards.edit",{id:c.customDashboard.id,tab:1})},o.onWithoutApply("voice_queue:save",(function(e){const t=u().find(c.voiceQueues.rows,{id:e.id});t&&u().merge(t,u().pick(e,u().keys(t)))})),a.dashboard.get({id:e.params.id}).$promise.then((function(e){if(e)return c.customDashboard=e,c.customDashboard.widgets=[],c.customDashboard.preview=!0,c.customDashboard.draggable={enabled:!1},c.customDashboard.resizable={enabled:!1},a.dashboard.getItems({id:c.customDashboard.id}).$promise})).then((function(e){if(e&&e.count&&e.rows)for(let t=0;t<e.rows.length;t+=1)e.rows[t].templateUrl=jr[e.rows[t].type],e.rows[t].voiceQueues=c.voiceQueues,e.rows[t].voiceQueuesSelected=c.voiceQueuesSelected,c.customDashboard.widgets.push(e.rows[t])})).catch((function(){c.customDashboard=void 0})),n.$on("$destroy",(function(){o.removeAllListeners("voice_queue:save"),c.interval&&t.cancel(c.interval)}))}const qr=Fr;function Yr(e){e.state("app.dashboards.custom",{url:"/custom/:id",views:{"content@app":{templateUrl:Rr,controller:"DashboardCustomController as vm"}},resolve:{voiceQueues:["apiResolver","Auth",function(e,t){let n;return(t.hasRole("admin")?e.resolve("voiceQueue@get",{fields:"id,name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",mergeResources:!0,fields:"id,name",channel:"voice",nolimit:!0})).then((function(t){return n=t,e.resolve("rpc@getVoiceQueues")})).then((function(e){if(e)for(let t,a=0;a<e.rows.length;a+=1)t=u().find(n.rows,{id:e.rows[a].id}),t&&u().merge(t,u().pick(e.rows[a],["waiting","total","talking","answered","unmanaged","abandoned"]));return n}))}],userProfile:["apiResolver","Auth",function(e,t){return e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:100})}]},authenticate:!0,bodyClass:"dashboards"})}function Hr(e,t){e.state("app.dashboards",{abstract:!0,url:"/dashboards"}),t.addPart("app/main/apps/dashboards")}Yr.$inject=["$stateProvider"],angular.module("app.dashboards.custom",[]).config(Yr).controller("DashboardCustomController",qr),Hr.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.dashboards",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.dashboards.general","app.dashboards.custom"]).config(Hr);const Br=n.p+"templates/main/apps/staff/views/agents/edit/teamadd/teamadd.html/teamadd.html",Gr=n.p+"templates/main/apps/staff/views/agents/create/dialog.html/dialog.html";function Vr(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.agents=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="agents",b.listOrder="",b.listOrderAsc=null,b.selectedAgents=[],b.query={fields:"createdAt,updatedAt,id,role,fullname,name,alias,showWebBar,email,phone,mobile,userpic,password,hotdesk,autointernal,internal,loginInPause,description,dtlscertfile,dtlsprivatekey,voicemail,transport,host,nat,type,allow,callerid,context,callgroup,pickupgroup,chanspy,videosupport,extensionMonitor,chatCapacity,mailCapacity,smsCapacity,openchannelCapacity,faxCapacity,whatsappCapacity,phoneBarEnableSettings,phoneBarAutoAnswer,phoneBarAutoAnswerDelay,phoneBarRingInUse,phoneBarEnableRecording,phoneBarEnableDtmfTone,phoneBarDnd,phoneBarUnansweredCallBadge,phoneBarEnableJaws,phoneBarOutboundProxy,phoneBarUnconditional,phoneBarUnconditionalNumber,phoneBarRemoteControl,phoneBarRemoteControlPort,phoneBarExpires,phoneBarListenPort,permissions,allowmessenger,phoneBarPrefixRequired,passwordResetAt,disabled,blocked,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording,privacyEnabled",role:"agent",sort:"-updatedAt",limit:10,page:1},b.arrayshowWebBar=u().keyBy([{option:"Phonebar",value:"0"},{option:"External",value:"1"},{option:"WebRTC",value:"2"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytransport=u().keyBy([{option:"udp",value:"'udp'"},{option:"tcp",value:"'tcp'"},{option:"ws",value:"'ws'",ngIf:"vm.agent.showWebBar == 1"},{option:"wss",value:"'wss'",ngIf:"vm.agent.showWebBar == 1"},{option:"tls",value:"'tls'",ngIf:"vm.agent.showWebBar == 1"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraynat=u().keyBy([{option:"force_rport",value:"'force_rport'"},{option:"comedia",value:"'comedia'"},{option:"yes",value:"'yes'"},{option:"no",value:"'no'"},{option:"never",value:"'never'"},{option:"route",value:"'route'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytype=u().keyBy([{option:"Friend",value:"'friend'"},{option:"User",value:"'user'"},{option:"Peer",value:"'peer'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayallow=u().keyBy([{option:"ulaw",value:"'ulaw'"},{option:"alaw",value:"'alaw'"},{option:"gsm",value:"'gsm'"},{option:"g722",value:"'g722'"},{option:"g729",value:"'g729'"},{option:"opus",value:"'opus'"},{option:"h264",value:"'h264'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayvideosupport=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"},{option:"Always",value:"'always'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayextensionMonitor=u().keyBy([{option:"Inactive",value:"''"},{option:"wav",value:"'wav'"},{option:"wav49",value:"'WAV'"},{option:"gsm",value:"'gsm'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.staff.agents.edit",{id:e.id,agent:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"AgentteamaddController",controllerAs:"vm",templateUrl:Br,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:b.agents?b.agents.rows:[],crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("agent")+"?").htmlContent("<b>"+(e.name||"agent")+"</b> will be deleted.").ariaLabel("delete agent").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getAgents=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.user.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Agents",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditAgent=function(e,t){o.show({controller:"CreateOrEditAgentDialogController",controllerAs:"vm",templateUrl:Gr,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{agent:t,agents:b.agents.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteAgent=S,b.exportSelectedAgents=function(){const e=angular.copy(b.selectedAgents);return b.selectedAgents=[],e},b.deleteSelectedAgents=function(e){const t=o.confirm().title("Are you sure want to delete the selected agents?").htmlContent("<b>"+b.selectedAgents.length+" selected</b> will be deleted.").ariaLabel("delete Agents").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedAgents.forEach((function(e){S(e)})),b.selectedAgents=[]}))},b.deselectAgents=function(){b.selectedAgents=[]},b.selectAllAgents=function(){b.selectedAgents=b.agents.rows};let y=!0,v=1;function A(e){b.agents=e||{count:0,rows:[]}}function S(e){f.user.delete({id:e.id}).$promise.then((function(){u().remove(b.agents.rows,{id:e.id}),b.agents.count-=1,b.agents.rows.length||b.getAgents(),p.success({title:u().startCase("Agent")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEuser"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEuser",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getAgents())}))}Vr.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","agents","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Wr=Vr;function Qr(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="STAFF.EDIT_AGENT",g.agent=angular.copy(l),g.agents=s,g.newAgent=!1,g.agent||(g.agent={role:"agent",showWebBar:"0",autointernal:!0,type:"friend",context:"from-sip",phoneBarRemoteControl:!0,phoneBarRemoteControlPort:9888,allowmessenger:!0},g.title="STAFF.NEW_AGENT",g.newAgent=!0),g.addNewAgent=function(){g.errors=[],c.user.save(g.agent).$promise.then((function(e){g.agents.unshift(e.toJSON()),i.success({title:"Agent properly created",msg:g.agent.name?g.agent.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveAgent=function(){g.errors=[],c.user.update({id:g.agent.id},g.agent).$promise.then((function(e){const t=u().find(g.agents,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Agent properly saved!",msg:g.agent.name?g.agent.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteAgent=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The agent will be deleted.").ariaLabel("Delete Agent").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.user.delete({id:g.agent.id}).$promise.then((function(){u().remove(g.agents,{id:g.agent.id}),i.success({title:"Agent properly deleted!",msg:(g.agent.name||"agent")+" has been deleted!"}),h(g.agent)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Qr.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","agents","agent","api","Auth","license","setting","crudPermissions"];const zr=Qr;function Kr(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.agent={},a.crudPermissions,a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.agent.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.agent.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e,t){a.agent=angular.copy(e),a.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},a.ngFlowOptions.target=`${a.baseUrl}api/users/`+a.agent.id+"/avatar",a.agent.images=[]}}Kr.$inject=["$cookies","toasty","api"];const Jr=Kr;function Xr(e,t,n,a,o,r,i){const s=this;function l(){t.hide()}s.currentUser=i.getCurrentUser(),s.errors=[],s.setting=r,s.passwordPattern=s.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",s.agent=o,s.password="",s.oldPassword="",s.savePassword=function(){s.errors=[];const e={id:s.agent.id,newPassword:s.password};s.currentUser.id==s.agent.id&&(e.oldPassword=s.oldPassword);a.user.changePassword(e).$promise.then((function(){n.success({title:"Agent password properly updated!"}),l()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.agent.save",msg:e.data?JSON.stringify(e.data.message):e.toString()}),s.errors=e.data.errors||[{message:e.toString(),type:"api.agent.changePassword"}]}))},s.closeDialog=l,e.$watch("vm.password",(function(t){u().isNil(s.oldPassword)||(t===s.oldPassword?e.agentForm.password.$setValidity("oldPasswordMatch",!1):e.agentForm.password.$setValidity("oldPasswordMatch",!0))}))}Xr.$inject=["$scope","$mdDialog","toasty","api","agent","setting","Auth"];const Zr=Xr;function ei(e,t,n,a,o){const r=this;r.agent={},r.navigation=a.getNavigation(),r.crudPermissions,r.init=function(e,t){r.agent=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1}},r.onChange=function(e,t){if((t||e).enabled){if(t)t.enabled=!0,r.agent.permissions.push(t.id);else for(let t=0;t<e.children.length;t++)e.children[t].enabled=!0,r.agent.permissions.push(e.children[t].id);e.enabled=!0,r.agent.permissions.push(e.id)}else if(t)t.enabled=!1,u().remove(r.agent.permissions,(function(e){return t.id===e})),u().filter(e.children,{enabled:!1}).length===e.children.length&&(e.enabled=!1,u().remove(r.agent.permissions,(function(t){return e.id===t})));else{e.enabled=!1,u().remove(r.agent.permissions,(function(t){return e.id===t}));for(let t=0;t<e.children.length;t++)e.children[t].enabled=!1,u().remove(r.agent.permissions,(function(n){return e.children[t].id===n}))}return n.user.update({id:r.agent.id,permissions:u().uniq(r.agent.permissions)}).$promise.then((function(){o.success({title:"agent updated!",msg:r.agent.name?r.agent.name+" has been updated!":""})})).catch((function(e){console.error(e)}))}}ei.$inject=["$document","$mdDialog","api","msNavigationAgentService","toasty"];const ti=ei;function ni(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a[d.apiName].get({fields:"id,name,strategy,type",channel:"bull"===d.channel?"voice":d.channel,type:d.direction,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.user.getQueues({id:d.agent.id,fields:"id,name,strategy,type,penalty",nolimit:!0,type:d.direction,channel:d.channel}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return"voice"===d.channel&&(t.penalty=void 0!==t&&void 0!==e.UserVoiceQueue?"penalty "+e.UserVoiceQueue.penalty:"penalty 0"),t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.agent=o,d.crudPermissions=c,d.penalty=0,d.channel=r,d.direction=i,d.apiName=d.channel+"Queue",d.title=s.instant("STAFF.QUEUEADD_AGENT_"+d.channel.toUpperCase()+"_"+d.direction.toUpperCase()),d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"type",line3:"voice"===d.channel?"penalty":"",labelAll:s.instant("STAFF.ALL_QUEUES_"+d.channel.toUpperCase()+"_"+d.direction.toUpperCase()),labelSelected:s.instant("STAFF.SELECTED_QUEUES_"+d.channel.toUpperCase()+"_"+d.direction.toUpperCase()),transferCallback:function(e,t){t?e.forEach((function(e){e.penalty=void 0})):e.forEach((function(e){e.penalty="penalty "+d.penalty}));const n=u().xorWith(d.startingSelectedItems,d.selectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));d.pendingChanges=!u().isEmpty(n)}},d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){let n;switch(d.channel){case"voice":switch(d.direction){case"inbound":n="VoiceQueues";break;case"outbound":n="QueueCampaigns"}break;case"chat":n="ChatQueues";break;case"mail":n="MailQueues";break;case"sms":n="SmsQueues";break;case"openchannel":n="OpenchannelQueues";break;case"fax":n="FaxQueues"}a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:n}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveQueues=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceWith(d.selectedItems,d.startingSelectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));return(r=e,t((function(e,t){u().isEmpty(r)?e():a.user.removeQueues({id:d.agent.id,ids:u().map(r,"id"),channel:d.channel}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(n,o){if(u().isEmpty(e))n();else if("voice"===d.channel){const r=[],i=u().groupBy(e,"penalty");for(let t=0;t<Object.keys(i).length;t++){const n=Object.keys(i)[t],o=u().filter(e,["penalty",n]);r.push(a.user.addQueues({id:d.agent.id,ids:u().map(o,"id"),channel:d.channel,penalty:u().trim(n,"penalty ")}).$promise)}t.all(r).then((function(){n()})).catch((function(e){o(e)}))}else a.user.addQueues({id:d.agent.id,ids:u().map(e,"id"),channel:d.channel}).$promise.then((function(){n()})).catch((function(e){o(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Queues association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:QUEUES_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()}}ni.$inject=["$mdDialog","$q","toasty","api","agent","channel","direction","$translate","Auth","crudPermissions"];const ai=ni;function oi(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.user.getTeams({id:l.agent.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.agent=o,l.crudPermissions=s,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(){const e=u().xorBy(l.startingSelectedItems,l.selectedItems,"id");l.pendingChanges=!u().isEmpty(e)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceBy(l.selectedItems,l.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.user.removeTeams({id:l.agent.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.user.addTeams({id:l.agent.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}oi.$inject=["$mdDialog","$q","toasty","api","agent","$translate","Auth","crudPermissions"];const ri=oi,ii=n.p+"templates/main/apps/staff/views/agents/edit/queueadd/queueadd.html/queueadd.html",si=n.p+"templates/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword.html";function li(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.agent=d||e.params.agent||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.queueaddchannel=function(e,t,o,r){n.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(a.body),targetEvent:o,clickOutsideToClose:!0,locals:{agent:e,agents:m.agents?m.agents.rows:[],channel:t,direction:r||"inbound",crudPermissions:m.crudPermissions}})},m.teamadddialog=function(e,t){n.show({controller:"AgentteamaddController",controllerAs:"vm",templateUrl:Br,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:m.agents?m.agents.rows:[],crudPermissions:m.crudPermissions}})},m.changepassworddialog=function(e,t){n.show({controller:"AgentchangepasswordController",controllerAs:"vm",templateUrl:si,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,setting:i,agents:m.agents?m.agents.rows:[],crudPermissions:m.crudPermissions}})},m.onEnableScreenRecordingByAgentSelection=function(){["phoneBarEnableAutomaticScreenRecording"].forEach((function(e){m.agent.phoneBarEnableScreenRecordingByAgent&&(m.agent[e]=!m.agent.phoneBarEnableScreenRecordingByAgent)}))},m.onEnableAutomaticScreenRecordingSelection=function(){["phoneBarEnableScreenRecordingByAgent"].forEach((function(e){m.agent.phoneBarEnableAutomaticScreenRecording&&(m.agent[e]=!m.agent.phoneBarEnableAutomaticScreenRecording)}))},m.alert=l.info,m.gotoAgents=function(){e.go("app.staff.agents",{},{reload:"app.staff.agents"})},m.saveAgent=function(){m.agent=u().omit(m.agent,"userpic"),s.user.update({id:m.agent.id},m.agent).$promise.then((function(){l.success({title:"Agent updated!",msg:m.agent.name?m.agent.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETuser",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.contexts,{id:e.resourceId})}));let n=null;if(m.agent&&(n=u().find(m.contexts,{name:m.agent.context})),n&&!u().some(t,["id",n.id])){const e=u().find(m.contexts,{id:n.id});e.canSelect=!1,t.push(e)}m.contexts=t})):s.voiceContext.get({fields:"id,name",sort:"name",defaultEntry:!0}).$promise.then((function(e){m.contexts=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}li.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","agent","userProfileSection"];const ci=li;function ui(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="STAFF.EDIT_TEAM",g.team=angular.copy(l),g.teams=s,g.newTeam=!1,g.team||(g.team={},g.title="STAFF.NEW_TEAM",g.newTeam=!0),g.addNewTeam=function(){g.errors=[],c.team.save(g.team).$promise.then((function(e){g.teams.unshift(e.toJSON()),i.success({title:"Team properly created",msg:g.team.name?g.team.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.team.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.team.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveTeam=function(){g.errors=[],c.team.update({id:g.team.id},g.team).$promise.then((function(e){const t=u().find(g.teams,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Team properly saved!",msg:g.team.name?g.team.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.team.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.team.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteTeam=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The team will be deleted.").ariaLabel("Delete Team").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.team.delete({id:g.team.id}).$promise.then((function(){u().remove(g.teams,{id:g.team.id}),i.success({title:"Team properly deleted!",msg:(g.team.name||"team")+" has been deleted!"}),h(g.team)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.team.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.team.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}ui.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","teams","team","api","Auth","license","setting","crudPermissions"];const di=ui;function fi(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.team.getAgents({id:d.team.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserTeam?"penalty "+e.UserTeam.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.team=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.team.removeAgents({id:d.team.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.team.addAgents({id:d.team.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}fi.$inject=["$mdDialog","$q","toasty","api","team","teams","realtime","$translate","Auth","crudPermissions"];const mi=fi,pi=n.p+"templates/main/apps/staff/views/teams/create/dialog.html/dialog.html",gi=n.p+"templates/main/apps/staff/views/teams/edit/agentadd/agentadd.html/agentadd.html";function hi(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.teams=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="teams",b.listOrder="",b.listOrderAsc=null,b.selectedTeams=[],b.query={fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditTeamDialogController",controllerAs:"vm",templateUrl:pi,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{team:e,teams:b.teams.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"TeamagentaddController",controllerAs:"vm",templateUrl:gi,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{team:e,teams:b.teams?b.teams.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("team")+"?").htmlContent("<b>"+(e.name||"team")+"</b> will be deleted.").ariaLabel("delete team").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getTeams=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.team.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Teams",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditTeam=function(e,t){o.show({controller:"CreateOrEditTeamDialogController",controllerAs:"vm",templateUrl:pi,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{team:t,teams:b.teams.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteTeam=S,b.exportSelectedTeams=function(){const e=angular.copy(b.selectedTeams);return b.selectedTeams=[],e},b.deleteSelectedTeams=function(e){const t=o.confirm().title("Are you sure want to delete the selected teams?").htmlContent("<b>"+b.selectedTeams.length+" selected</b> will be deleted.").ariaLabel("delete Teams").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedTeams.forEach((function(e){S(e)})),b.selectedTeams=[]}))},b.deselectTeams=function(){b.selectedTeams=[]},b.selectAllTeams=function(){b.selectedTeams=b.teams.rows};let y=!0,v=1;function A(e){b.teams=e||{count:0,rows:[]}}function S(e){f.team.delete({id:e.id}).$promise.then((function(){u().remove(b.teams.rows,{id:e.id}),b.teams.count-=1,b.teams.rows.length||b.getTeams(),p.success({title:u().startCase("Team")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEteam"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEteam",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getTeams())}))}hi.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","teams","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const _i=hi;function bi(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="STAFF.EDIT_TELEPHONE",g.telephone=angular.copy(l),g.telephones=s,g.newTelephone=!1,g.telephone||(g.telephone={role:"telephone",autointernal:!0,context:"from-sip"},g.title="STAFF.NEW_TELEPHONE",g.newTelephone=!0),g.addNewTelephone=function(){g.errors=[],c.user.save(g.telephone).$promise.then((function(e){g.telephones.unshift(e.toJSON()),i.success({title:"Telephone properly created",msg:g.telephone.name?g.telephone.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveTelephone=function(){g.errors=[],c.user.update({id:g.telephone.id},g.telephone).$promise.then((function(e){const t=u().find(g.telephones,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Telephone properly saved!",msg:g.telephone.name?g.telephone.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteTelephone=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The telephone will be deleted.").ariaLabel("Delete Telephone").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.user.delete({id:g.telephone.id}).$promise.then((function(){u().remove(g.telephones,{id:g.telephone.id}),i.success({title:"Telephone properly deleted!",msg:(g.telephone.name||"telephone")+" has been deleted!"}),h(g.telephone)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}bi.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","telephones","telephone","api","Auth","license","setting","crudPermissions"];const yi=bi;function vi(e,t,n,a,o,r,i){const s=this;function l(){t.hide()}s.currentUser=i.getCurrentUser(),s.errors=[],s.setting=r,s.passwordPattern=s.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",s.telephone=o,s.password="",s.oldPassword="",s.savePassword=function(){s.errors=[];const e={id:s.telephone.id,newPassword:s.password};s.currentUser.id==s.telephone.id&&(e.oldPassword=s.oldPassword);a.user.changePassword(e).$promise.then((function(){n.success({title:"Telephone password properly updated!"}),l()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.telephone.save",msg:e.data?JSON.stringify(e.data.message):e.toString()}),s.errors=e.data.errors||[{message:e.toString(),type:"api.telephone.changePassword"}]}))},s.closeDialog=l,e.$watch("vm.password",(function(t){u().isNil(s.oldPassword)||(t===s.oldPassword?e.telephoneForm.password.$setValidity("oldPasswordMatch",!1):e.telephoneForm.password.$setValidity("oldPasswordMatch",!0))}))}vi.$inject=["$scope","$mdDialog","toasty","api","telephone","setting","Auth"];const Ai=vi,Si=n.p+"templates/main/apps/staff/views/telephones/edit/changepassword/changepassword.html/changepassword.html";function wi(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.telephone=d||e.params.telephone||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.changepassworddialog=function(e,t){n.show({controller:"TelephonechangepasswordController",controllerAs:"vm",templateUrl:Si,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{telephone:e,setting:i,telephones:m.telephones?m.telephones.rows:[],crudPermissions:m.crudPermissions}})},m.alert=l.info,m.gotoTelephones=function(){e.go("app.staff.telephones",{},{reload:"app.staff.telephones"})},m.saveTelephone=function(){s.user.update({id:m.telephone.id},m.telephone).$promise.then((function(){l.success({title:"Telephone updated!",msg:m.telephone.name?m.telephone.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETuser",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.contexts,{id:e.resourceId})}));let n=null;if(m.telephone&&(n=u().find(m.contexts,{name:m.telephone.context})),n&&!u().some(t,["id",n.id])){const e=u().find(m.contexts,{id:n.id});e.canSelect=!1,t.push(e)}m.contexts=t})):s.voiceContext.get({fields:"id,name",sort:"name",defaultEntry:!0}).$promise.then((function(e){m.contexts=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}wi.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","telephone","userProfileSection"];const Ei=wi,Ci=n.p+"templates/main/apps/staff/views/telephones/create/dialog.html/dialog.html";function Ti(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.telephones=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="telephones",b.listOrder="",b.listOrderAsc=null,b.selectedTelephones=[],b.query={fields:"createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile",role:"telephone",sort:"-updatedAt",limit:10,page:1},b.arraytransport=u().keyBy([{option:"udp",value:"'udp'"},{option:"tcp",value:"'tcp'"},{option:"ws",value:"'ws'"},{option:"wss",value:"'wss'"},{option:"tls",value:"'tls'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraynat=u().keyBy([{option:"force_rport",value:"'force_rport'"},{option:"comedia",value:"'comedia'"},{option:"yes",value:"'yes'"},{option:"no",value:"'no'"},{option:"never",value:"'never'"},{option:"route",value:"'route'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayallow=u().keyBy([{option:"ulaw",value:"'ulaw'"},{option:"alaw",value:"'alaw'"},{option:"gsm",value:"'gsm'"},{option:"g722",value:"'g722'"},{option:"g729",value:"'g729'"},{option:"opus",value:"'opus'"},{option:"h264",value:"'h264'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayvideosupport=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"},{option:"Always",value:"'always'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayencryption=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.staff.telephones.edit",{id:e.id,telephone:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("telephone")+"?").htmlContent("<b>"+(e.name||"telephone")+"</b> will be deleted.").ariaLabel("delete telephone").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getTelephones=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.user.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Telephones",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditTelephone=function(e,t){o.show({controller:"CreateOrEditTelephoneDialogController",controllerAs:"vm",templateUrl:Ci,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{telephone:t,telephones:b.telephones.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteTelephone=S,b.exportSelectedTelephones=function(){const e=angular.copy(b.selectedTelephones);return b.selectedTelephones=[],e},b.deleteSelectedTelephones=function(e){const t=o.confirm().title("Are you sure want to delete the selected telephones?").htmlContent("<b>"+b.selectedTelephones.length+" selected</b> will be deleted.").ariaLabel("delete Telephones").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedTelephones.forEach((function(e){S(e)})),b.selectedTelephones=[]}))},b.deselectTelephones=function(){b.selectedTelephones=[]},b.selectAllTelephones=function(){b.selectedTelephones=b.telephones.rows};let y=!0,v=1;function A(e){b.telephones=e||{count:0,rows:[]}}function S(e){f.user.delete({id:e.id}).$promise.then((function(){u().remove(b.telephones.rows,{id:e.id}),b.telephones.count-=1,b.telephones.rows.length||b.getTelephones(),p.success({title:u().startCase("Telephone")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEuser"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEuser",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getTelephones())}))}Ti.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","telephones","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Ii=Ti;function ki(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="STAFF.EDIT_USERPROFILE",g.userProfile=angular.copy(l),g.userProfiles=s,g.newUserProfile=!1,g.userProfile||(g.userProfile={crudPermissions:["r"]},g.title="STAFF.NEW_USERPROFILE",g.newUserProfile=!0),g.addNewUserProfile=function(){g.errors=[],c.userProfile.save(g.userProfile).$promise.then((function(e){!function(e){const t=[];e.crudPermissions.forEach((function(e){let n;switch(e){case"r":n="READ_PERMISSION";break;case"e":n="EDIT_PERMISSION";break;case"d":n="DELETE_PERMISSION"}t.push(r.instant("STAFF."+n))})),e.selectedcrudPermissions=t.join(", ")}(e),g.userProfiles.unshift(e.toJSON()),i.success({title:"UserProfile properly created",msg:g.userProfile.name?g.userProfile.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.userProfile.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.userProfile.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveUserProfile=function(){g.errors=[],c.userProfile.update({id:g.userProfile.id},g.userProfile).$promise.then((function(e){const t=u().find(g.userProfiles,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"UserProfile properly saved!",msg:g.userProfile.name?g.userProfile.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.userProfile.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.userProfile.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteUserProfile=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The userProfile will be deleted.").ariaLabel("Delete UserProfile").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.userProfile.delete({id:g.userProfile.id}).$promise.then((function(){u().remove(g.userProfiles,{id:g.userProfile.id}),i.success({title:"UserProfile properly deleted!",msg:(g.userProfile.name||"userProfile")+" has been deleted!"}),h(g.userProfile)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.userProfile.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.userProfile.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}ki.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","userProfiles","userProfile","api","Auth","license","setting","crudPermissions"];const Di=ki;function xi(e,t,n,a,o,r,i){const s=this;function l(t){e.hide(t)}s.newUserProfile=!0,s.userProfile=angular.copy(o),s.userProfiles=r,s.title=i.instant("STAFF.CLONE_USERPROFILE"),o&&o.name&&(s.title+=": "+o.name),s.cloneUserProfile=function(){return a.userProfile.clone({id:o.id},s.userProfile).$promise.then((function(e){!function(e){const t=[];e.crudPermissions.forEach((function(e){let n;switch(e){case"r":n="READ_PERMISSION";break;case"e":n="EDIT_PERMISSION";break;case"d":n="DELETE_PERMISSION"}t.push(i.instant("STAFF."+n))})),e.selectedcrudPermissions=t.join(", ")}(e),s.userProfiles.unshift(e.toJSON()),n.success({title:"UserProfile properly cloned",msg:s.userProfile.name?s.userProfile.name+" has been cloned!":""}),t.go("app.staff.userProfiles.edit",{id:e.id}),l(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){s.errors=e.data.errors||[{message:e.toString(),type:"api.userProfile.clone"}];for(let t=0;t<e.data.errors.length;t+=1)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.userProfile.clone",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},s.closeDialog=l}xi.$inject=["$mdDialog","$state","toasty","api","userProfile","userProfiles","$translate"];const Mi=xi,Pi=n.p+"templates/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html/permissionsmanage.html";function Oi(e,t,n,a,o,r,i,s){const l=this;function c(e,t){switch(e.allResourcesEnabled=function(e){return"full"===e}(t),t){case"full":return u().find(l.statusList,["tag","full"]);case"partial":return u().find(l.statusList,["tag","partial"]);case"disabled":return u().find(l.statusList,["tag","disabled"]);case"unlicensed":return u().find(l.statusList,["tag","unlicensed"]);case"unknown":default:return u().find(l.statusList,["tag","unknown"])}}function d(e){return a((function(t,n){void 0!==e.channel&&u().includes(e.route,"Queue")?function(e){return a((function(t,n){const a=void 0!==e.channel&&"bull"===e.channel?"outbound":"inbound";return o[e.route].get({fields:"id,name,strategy,type",channel:"bull"===e.channel?"voice":e.channel,type:a,nolimit:!0}).$promise.then((function(e){t(e)})).catch((function(e){n(e)}))}))}(e).then((function(e){t(e)})).catch((function(e){n(e)})):function(e){return a((function(t,n){let a,r,i=!1,s=!1;switch(e.route){case"voiceExtension":switch(e.title){case"InboundRoutes":a="inbound";break;case"OutboundRoutes":a="outbound";break;case"InternalRoutes":a="internal"}break;case"interval":i=!0;break;case"disposition":s=!0;break;case"user":switch(e.title){case"Agents":r="agent";break;case"Telephones":r="telephone";break;case"Users":r="user"}}if("Reports"===e.title){if(!e.reportType)return o.analyticDefaultReport.get({nolimit:!0}).$promise.then((function(e){o.analyticCustomReport.get({nolimit:!0}).$promise.then((function(n){const a=u().union(e.rows,n.rows);t({count:a.length,rows:a.rows})}))})).catch((function(e){n(e)}));switch(e.reportType){case"default":e.route="analyticDefaultReport";break;case"custom":e.route="analyticCustomReport"}}return o[e.route].get({role:r||void 0,type:a||void 0,VoiceExtensionId:a?"null":void 0,IntervalId:i?"null":void 0,MailAccountId:s?"null":void 0,FaxAccountId:s?"null":void 0,SmsAccountId:s?"null":void 0,OpenchannelAccountId:s?"null":void 0,ChatWebsiteId:s?"null":void 0,WhatsappAccountId:s?"null":void 0,ListId:s?"null":void 0,nolimit:!0}).$promise.then((function(e){t(e)})).catch((function(e){n(e)}))}))}(e).then((function(e){t(e)})).catch((function(e){n(e)}))}))}function f(e,t,n){const r=e&&e.length>0?e[0]:null;if(!r)return n;const i=u().find(t,["sectionId",r.id]);return i?(t=u().remove(t,["sectionId",r.id]),(s=r,l=i.id,a((function(e,t){o.userProfileResource.get({sectionId:l}).$promise.then((function(e){return d(s).then((function(t){return u().differenceBy(e.rows,t.rows,"id")}))})).then((function(n){u().isEmpty(n)?e():t()})).catch((function(e){t(e)}))}))).then((function(){return n="full",f(e.shift(),t,n)})).catch((function(e){return a.reject(e)}))):void 0;var s,l}function m(e){const t="Marketplace"===e.title?"AppZone":e.title;l.license?void 0===e.permissions||e.permissions.association?void 0===e.license||l.license[e.license]?o.userProfileSection.get({userProfileId:l.userProfile.id,category:t}).$promise.then((function(t){const n=t&&t.rows&&t.rows.length>0?t.rows:[];if("Dashboards"===e.title)return u().isEmpty(n)?"disabled":n[0].autoAssociation?"full":o.userProfileResource.get({sectionId:n[0].id,resourceId:101}).$promise.then((function(e){return(e&&e.rows?e.rows[0]:null)?"full":"partial"}));{const t=u().filter(e.children,(function(e){return void 0!==e.permissions&&e.permissions.hidden?void 0:e}));if(n.length===t.length){if(u().every(n,["autoAssociation",!0]))return"full";return f(u().filter(t,(function(e){return void 0===e.permissions||e.permissions.association?e:void 0})),n,"partial")}return 0===n.length?"disabled":"partial"}})).then((function(t){e.status=c(e,t)})).catch((function(n){const a=n?"unknown":"partial";e.status=c(e,a),n&&s.error({title:n.status?"API:"+n.status+" - "+n.statusText:"USERPROFILE:GETRESOURCES("+t.toUpperCase()+")",msg:n.status?JSON.stringify(n.data):n.toString()})})):e.status=c(e,"unlicensed"):o.userProfileSection.get({userProfileId:l.userProfile.id,sectionId:e.id}).$promise.then((function(t){const n=(t&&1===t.rows.length?t.rows[0]:null)?"full":"disabled";e.status=c(e,n)})):e.status=c(e,"unknown")}l.userProfile={},l.license={},l.navigation=r.getNavigation(),l.modules=l.navigation[0].children,l.statusList=[{id:0,name:"Fully Enabled",color:"green-A700-bg",info:"All resources enabled",tag:"full"},{id:1,name:"Partially Enabled",color:"orange-A700-bg",info:"Some resources enabled",tag:"partial"},{id:2,name:"Disabled",color:"grey-A400-bg",info:"No resources enabled",tag:"disabled"},{id:3,name:"Unlicensed",color:"red-A700-bg",info:"Module not included in the license",tag:"unlicensed"},{id:4,name:"Unknown",color:"grey-A700-bg",info:"Unknown status",tag:"unknown"}],l.dashboardSections=[{title:"Dashboards",translate:"DASHBOARDS.DASHBOARDS",id:100}],l.init=function(e,t){l.userProfile=e,l.license=t},l.onChangeEnableAllResources=function(e){const a=void 0!==e.permissions&&!e.permissions.association,r="Marketplace"===e.title?"AppZone":e.title;if("Fully Enabled"!==e.status.name){const i=[];if(a)return i.push({category:r,sectionId:e.id,name:r,enabled:!0,crudPermissions:"red"}),o.userProfile.addSections({id:l.userProfile.id},i).$promise.then((function(){e.status=c(e,"full"),s.success({title:n.instant("STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE",{sectionName:n.instant(e.translate),userProfileName:l.userProfile.name}),msg:n.instant("STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES",{sectionName:n.instant(e.translate),userProfileName:l.userProfile.name})})})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:USERPROFILE.ADDSECTIONS",msg:e.status?JSON.stringify(e.data):e.toString()})}));{const a=t.confirm({multiple:!0}).title("Warning").textContent(n.instant("STAFF.PERMISSIONS_WARNING_ENABLE_ALL",{sectionName:n.instant(e.translate)})).ariaLabel("Warning").ok(n.instant("STAFF.CONFIRM")).cancel(n.instant("APP.CANCEL"));t.show(a).then((function(){switch(r){case"Dashboards":u().map(l.dashboardSections,(function(e){i.push({category:r,sectionId:e.id,name:e.title,enabled:!0,autoAssociation:!0,crudPermissions:u().map(l.userProfile.crudPermissions).join("")})}));break;default:u().map(e.children,(function(e){if(!!(void 0===e.permissions||!e.permissions.hidden)){let t=e.title;switch(r){case"CallySquare":t="Projects"===t?"SquareProjects":t}i.push({category:r,sectionId:e.id,name:t,enabled:!0,autoAssociation:!0,crudPermissions:u().map(l.userProfile.crudPermissions).join("")})}}))}return o.userProfile.addSections({id:l.userProfile.id},i).$promise.then((function(){e.status=c(e,"full"),s.success({title:n.instant("STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE",{sectionName:n.instant(e.translate),userProfileName:l.userProfile.name}),msg:n.instant("STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE",{sectionName:n.instant(e.translate),userProfileName:l.userProfile.name})})}))})).catch((function(t){t?s.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:USERPROFILE.ADDSECTIONS",msg:t.status?JSON.stringify(t.data):t.toString()}):e.status=c(e,e.status.tag)}))}}else if("Fully Enabled"===e.status.name){e.status=c(e,"disabled");let t=[];switch(r){case"Settings":case"Help":t=[e.id];break;case"Dashboards":t=u().map(l.dashboardSections,(function(e){return e.id}));break;default:t=u().map(e.children,(function(e){return e.id}))}return o.userProfile.removeSections({id:l.userProfile.id,ids:t}).$promise.then((function(){s.success({title:n.instant("STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE",{sectionName:n.instant(e.translate),userProfileName:l.userProfile.name}),msg:n.instant("STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE",{sectionName:n.instant(e.translate),userProfileName:l.userProfile.name})})})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:USERPROFILE.REMOVESECTIONS",msg:e.status?JSON.stringify(e.data):e.toString()})}))}},l.manageResources=function(n,a){t.show({controller:"UserProfilepermissionsmanageController",controllerAs:"vm",templateUrl:Pi,parent:angular.element(e.body),targetEvent:a,clickOutsideToClose:!1,locals:{userProfile:l.userProfile,userProfiles:[],section:n}}).then((function(){m(n)}))},l.checkSectionResources=m}Oi.$inject=["$document","$mdDialog","$translate","$q","api","msNavigationService","Auth","toasty"];const Ri=Oi;function Ni(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){const e=void 0!==d.selectedSection.pending&&d.selectedSection.pending;return n((function(t,n){o.userProfileSection.get({userProfileId:d.userProfile.id,sectionId:d.selectedSection.id}).$promise.then((function(n){const a=n&&n.rows?n.rows[0]:null;e||(d.selectedSection.enabled=!!a&&!!a.enabled,d.selectedSection.autoAssociation=!!a&&!!a.autoAssociation,d.selectedSection.crudPermissions=h(a?a.crudPermissions:d.userProfile.crudPermissions)),t(a)})).catch((function(e){n(e)}))}))}function m(){return n((function(e,t){d.loadedSection?o.userProfileResource.get({sectionId:d.loadedSection.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)})):e(null)}))}function p(){return n((function(e,t){void 0!==d.selectedSection.channel&&u().includes(d.selectedSection.route,"Queue")?n((function(e,t){const n=void 0!==d.selectedSection.channel&&"bull"===d.selectedSection.channel?"outbound":"inbound";return o[d.selectedSection.route].get({fields:"id,name,strategy,type",channel:"bull"===d.selectedSection.channel?"voice":d.selectedSection.channel,type:n,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(t){e(t)})).catch((function(e){t(e)})):n((function(e,t){let n,a,r=!1,i=!1;if("voiceExtension"===d.selectedSection.route)switch(d.selectedSection.title){case"InboundRoutes":n="inbound";break;case"OutboundRoutes":n="outbound";break;case"InternalRoutes":n="internal"}if("user"===d.selectedSection.route)switch(d.selectedSection.title){case"Agents":a="agent";break;case"Telephones":a="telephone";break;case"Users":a="user"}if("interval"===d.selectedSection.route&&(r=!0),"disposition"===d.selectedSection.route&&(i=!0),"Reports"===d.selectedSection.title&&(d.selectedSection.route="default"===d.selectedSection.reportType?"analyticDefaultReport":"analyticCustomReport"),"Dashboards"!==d.selectedSection.title)return o[d.selectedSection.route].get({role:a||void 0,type:n||void 0,VoiceExtensionId:n?"null":void 0,IntervalId:r?"null":void 0,MailAccountId:i?"null":void 0,FaxAccountId:i?"null":void 0,SmsAccountId:i?"null":void 0,OpenchannelAccountId:i?"null":void 0,ChatWebsiteId:i?"null":void 0,WhatsappAccountId:i?"null":void 0,ListId:i?"null":void 0,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}));e({count:1,rows:[{id:101,name:s.instant("APP.GENERAL")}]})})).then((function(t){e(t)})).catch((function(e){t(e)}))}))}function g(){const e=void 0!==d.selectedSection.pending&&d.selectedSection.pending;let t=[];return m().then((function(e){return t=e&&e.rows?e.rows:[],"Reports"===d.selectedSection.title&&(d.associatedReports=d.associatedReports?d.associatedReports:t,t=function(e){return u().filter(e,{type:"default"===d.selectedSection.reportType?"DefaultReports":"CustomReports"})}(d.associatedReports)),void 0===d.selectedSection.permissions||d.selectedSection.permissions.association?p():{rows:[]}})).then((function(n){d.items=n.rows?u().map(n.rows,(function(e){return"Reports"===d.selectedSection.title&&(e.fullPath=function(e){let t=d.treeStructure[0].text;return t=y(t,e,d.treeStructure[0]),t}(e.parent).replace(" ","_")),e.isValid=!0,e})):[],e||(d.selectedSection.selectedItems=u().map(t,(function(e){return u().find(d.items,{id:e.resourceId})})));const a=u().differenceBy(d.selectedSection.selectedItems,d.items,"id");let o;switch(u().isEmpty(a)||(d.selectedSection.selectedItems=u().pullAllBy(d.selectedSection.selectedItems,a,"id")),d.selectedSection.title){case"Contexts":case"MusicOnHolds":d.selectedSection.selectedItems=u().filter(d.items,(function(e){if(e.defaultEntry)return e.isValid=!1,e;if(void 0!==u().find(t,{resourceId:e.id}))return e.isValid=!0,e}));break;case"Reports":r=d.allReportsSelected,o=u().filter(r,(function(e){return u().startsWith(e.parent,"default"===d.selectedSection.reportType?"motion":"custom")})),d.selectedSection.selectedItems=v(d.selectedSection.selectedItems),d.selectedSection.selectedItems=u().unionBy(d.selectedSection.selectedItems,o,"id")}var r;d.dualMultiselectOptions.selectedItems=d.selectedSection.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.items,d.dualMultiselectOptions.selectedItems,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET"+d.selectedSection.title.toUpperCase(),msg:e.status?JSON.stringify(e.data):e.toString()})}))}function h(e){return e&&(d.selectedSection.allowEdit=!!u().includes(e,"e"),d.selectedSection.allowDelete=!!u().includes(e,"d")),function(){const e=["r"];if(d.selectedSection.allowEdit)e.push("e");else{u().indexOf(e,["e"])>0&&d.selectedSection.crudPermissions.replace("e","")}if(d.selectedSection.allowDelete)e.push("d");else{u().indexOf(e,["d"])>0&&d.selectedSection.crudPermissions.replace("d","")}return e}()}function _(e){const t=u().findIndex(d.subsections,(function(e){return e.id==d.selectedSection.id}));d.subsections[t].pending=e,b()}function b(){return d.pendingChanges=u().some(d.subsections,["pending",!0])}function y(e,t,n){return!n||u().isEmpty(n.children)?e:y(e+=(n=u().find(n.children,(function(e){return u().includes(t,e.id)?e:void 0})))?"/"+n.text:"",t,n)}function v(e){return u().remove(e,(function(e){return u().startsWith(e.parent,"default"===d.selectedSection.reportType?"motion":"custom")}))}function A(){u().isEmpty(d.selectedSection.selectedItems)?d.allReportsSelected=u().remove(d.allReportsSelected,(function(e){return e.type===("default"===d.selectedSection.reportType?"CustomReports":"DefaultReports")})):d.selectedSection.selectedItems.forEach((function(e){u().some(d.allReportsSelected,{id:e.id,parent:e.parent})||d.allReportsSelected.push(e)}))}function S(e,t){if("Reports"===e){if(t.parent){return(u().startsWith(t.parent,"motion")?"Default":"Custom")+e}return t.type}return e}d.userProfile=r,d.penalty=0,d.section=angular.copy(c),d.title=s.instant("STAFF.PERMISSIONS_SECTION_TITLE",{sectionName:s.instant(d.section.translate)}),d.items=[],d.selectedItems=[],d.subsections=u().filter(d.section.children,(function(e){return void 0!==e.permissions&&e.permissions.hidden?void 0:e})),d.dashboardSections=[{title:"Dashboards",translate:"DASHBOARDS.DASHBOARDS",id:100}],d.dashboardItems=[],"Dashboards"===d.section.title&&(d.dashboardItems=d.subsections,d.subsections=d.dashboardSections),d.selectedSection=null,d.loadedSection=null,d.allReportsSelected=[],d.closeDialog=function(e){if(d.pendingChanges){const n=t.confirm({multiple:!0}).title("Warning").textContent(s.instant("STAFF.PERMISSIONS_WARNING_CLOSE")).ariaLabel("Warning").targetEvent(e).ok(s.instant("APP.CLOSE")).cancel(s.instant("APP.CANCEL"));t.show(n).then((function(){t.hide()}))}else t.hide()},d.onChangeSection=function(){return f().then((function(e){if(d.loadedSection=e,"Reports"===d.selectedSection.title)return n((function(e,t){o.analyticTreeReport.get({}).$promise.then((function(t){d.treeReports=t.rows||[],e(d.treeReports)})).catch((function(e){t(e)}))})).then((function(){if(!d.selectedSection.reportType)return m().then((function(e){d.allReportsSelected=e?u().map(e.rows,(function(e){return{id:e.resourceId,name:e.name,type:e.type}})):[]}))})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TREE_REPORT_STRUCTURE",msg:e.data?JSON.stringify(e.data):e.toString()})}));g()})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET"+d.selectedSection.title.toUpperCase(),msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.onChangeVisibility=function(){d.selectedSection.enabled=!d.selectedSection.enabled,_(!0)},d.onChangeAutoAssociation=function(){if(!d.selectedSection.autoAssociation){const e=[];for(let t=0;t<d.dualMultiselectOptions.items.length;t++)e.push(d.dualMultiselectOptions.items[t]),d.dualMultiselectOptions.selectedItems.push(d.dualMultiselectOptions.items[t]);d.dualMultiselectOptions.items=[],d.dualMultiselectOptions.transferCallback(e,!1)}_(!0)},d.onChangeReportType=function(){d.treeStructure=function(){let e={};e="default"===d.selectedSection.reportType?d.treeReports[0]?angular.fromJson(d.treeReports[0].tree):[]:d.treeReports[1]?angular.fromJson(d.treeReports[1].tree):[];return e}(),d.selectedSection.selectedItems&&(d.allReportsSelected=v(d.allReportsSelected),A());g()},d.setPermission=function(e){"edit"===e?d.selectedSection.allowEdit=!d.selectedSection.allowEdit:"delete"===e&&(d.selectedSection.allowDelete=!d.selectedSection.allowDelete);d.selectedSection.crudPermissions=h(),_(!0)},d.saveSection=function(){const t="Marketplace"===d.section.title?"AppZone":d.section.title,n=u()(d.subsections).filter({pending:!0}).map((function(e){const n="CallySquare"===t&&"Projects"===e.title?"SquareProjects":e.title,a="Reports"===n?d.allReportsSelected:e.selectedItems;return"Integrations"===t&&(e.autoAssociation=!0),{category:t,sectionId:e.id,name:n,enabled:e.enabled,autoAssociation:e.autoAssociation,crudPermissions:u().map(e.crudPermissions).join(""),Resources:u().map(a,(function(e){return{name:e.name,resourceId:e.id,type:S(n,e)}}))}})).value();return o.userProfile.addSections({id:d.userProfile.id},n).$promise.then((function(){d.subsections.forEach((function(e){e.pending=void 0})),d.associatedReports=null,b(),"Reports"!==d.selectedSection.title||d.selectedSection.reportType||e.userProfileForm.$setPristine(),a.success({title:s.instant("STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE",{sectionName:s.instant(t.translate)}),msg:s.instant("STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE")})})).then((function(){return f().then((function(e){d.loadedSection=e}))})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:USERPROFILE.ADDSECTIONS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",line4:"fullPath",labelAll:s.instant("STAFF.PERMISSIONS_ALL_RESOURCES"),labelSelected:s.instant("STAFF.PERMISSIONS_SELECTED_RESOURCES"),transferCallback:function(e,t){_(!0),t?(d.selectedSection.selectedItems=u().pullAllBy(d.selectedSection.selectedItems,e,"id"),d.selectedSection.autoAssociation=!1):d.selectedSection.selectedItems=u().unionBy(d.selectedSection.selectedItems,e,"id"),"Reports"===d.selectedSection.title&&A()}}}Ni.$inject=["$scope","$mdDialog","$q","toasty","api","userProfile","userProfiles","$translate","Auth","section"];const Li=Ni,$i=n.p+"templates/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone.html";function Ui(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.userProfile=u||e.params.userProfile||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.permissionsmanagedialog=function(e,t){n.show({controller:"UserProfilepermissionsmanageController",controllerAs:"vm",templateUrl:Pi,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{userProfile:e,userProfiles:f.userProfiles?f.userProfiles.rows:[],crudPermissions:f.crudPermissions}})},f.clonedialog=function(e,t){n.show({controller:"UserProfilecloneController",controllerAs:"vm",templateUrl:$i,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{userProfile:e,userProfiles:f.userProfiles?f.userProfiles.rows:[],crudPermissions:f.crudPermissions}})},f.alert=l.info,f.gotoUserProfiles=function(){e.go("app.staff.userProfiles",{},{reload:"app.staff.userProfiles"})},f.saveUserProfile=function(){s.userProfile.update({id:f.userProfile.id},f.userProfile).$promise.then((function(){l.success({title:"UserProfile updated!",msg:f.userProfile.name?f.userProfile.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETuserProfile",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}Ui.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","userProfile","userProfileSection"];const ji=Ui,Fi=n.p+"templates/main/apps/staff/views/userProfiles/create/dialog.html/dialog.html";function qi(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.userProfiles=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="userProfiles",b.listOrder="",b.listOrderAsc=null,b.selectedUserProfiles=[],b.query={fields:"createdAt,updatedAt,id,name,description,crudPermissions,privacyEnabled",sort:"-updatedAt",limit:10,page:1},b.arraycrudPermissions=u().keyBy([{option:"Read_permission",value:"'r'",disabled:!0},{option:"Edit_permission",value:"'e'"},{option:"Delete_permission",value:"'d'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.userProfiles&&b.userProfiles.count>0&&b.userProfiles.rows.forEach((function(e){const t=[];e.crudPermissions.forEach((function(e){t.push(b.arraycrudPermissions[e].option)}));const n=[];t.forEach((function(e){n.push(s.instant("STAFF."+e.toUpperCase()))})),e.selectedcrudPermissions=n.join(", ")})),b.editstate=function(e){n.go("app.staff.userProfiles.edit",{id:e.id,userProfile:e,crudPermissions:b.crudPermissions})},b.clonedialog=function(e,t){o.show({controller:"UserProfilecloneController",controllerAs:"vm",templateUrl:$i,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{userProfile:e,userProfiles:b.userProfiles?b.userProfiles.rows:[],crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("userProfile")+"?").htmlContent("<b>"+(e.name||"userProfile")+"</b> will be deleted.").ariaLabel("delete userProfile").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getUserProfiles=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.userProfile.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="UserProfiles",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditUserProfile=function(e,t){o.show({controller:"CreateOrEditUserProfileDialogController",controllerAs:"vm",templateUrl:Fi,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{userProfile:t,userProfiles:b.userProfiles.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteUserProfile=S,b.exportSelectedUserProfiles=function(){const e=angular.copy(b.selectedUserProfiles);return b.selectedUserProfiles=[],e},b.deleteSelectedUserProfiles=function(e){const t=o.confirm().title("Are you sure want to delete the selected userProfiles?").htmlContent("<b>"+b.selectedUserProfiles.length+" selected</b> will be deleted.").ariaLabel("delete UserProfiles").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedUserProfiles.forEach((function(e){S(e)})),b.selectedUserProfiles=[]}))},b.deselectUserProfiles=function(){b.selectedUserProfiles=[]},b.selectAllUserProfiles=function(){b.selectedUserProfiles=b.userProfiles.rows};let y=!0,v=1;function A(e){b.userProfiles=e||{count:0,rows:[]}}function S(e){f.userProfile.delete({id:e.id}).$promise.then((function(){u().remove(b.userProfiles.rows,{id:e.id}),b.userProfiles.count-=1,b.userProfiles.rows.length||b.getUserProfiles(),p.success({title:u().startCase("UserProfile")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEuserProfile"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEuserProfile",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getUserProfiles())}))}qi.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","userProfiles","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Yi=qi;function Hi(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="STAFF.EDIT_USER",g.user=angular.copy(l),g.users=s,g.newUser=!1,g.user||(g.user={role:"user",autointernal:!0,context:"from-sip"},g.title="STAFF.NEW_USER",g.newUser=!0),g.addNewUser=function(){g.errors=[],c.user.save(g.user).$promise.then((function(e){g.users.unshift(e.toJSON()),i.success({title:"User properly created",msg:g.user.name?g.user.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveUser=function(){g.errors=[],c.user.update({id:g.user.id},g.user).$promise.then((function(e){const t=u().find(g.users,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"User properly saved!",msg:g.user.name?g.user.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteUser=function(e){if(d.getCurrentUser().id===g.user.id)return i.error({title:"User not deleted!",msg:"You can't remove yourself"});g.errors=[];const t=a.confirm().title("Are you sure?").content("The user will be deleted.").ariaLabel("Delete User").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.user.delete({id:g.user.id}).$promise.then((function(){u().remove(g.users,{id:g.user.id}),i.success({title:"User properly deleted!",msg:(g.user.name||"user")+" has been deleted!"}),h(g.user)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.user.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,c.userProfile.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.userProfiles=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERPROFILES",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Hi.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","users","user","api","Auth","license","setting","crudPermissions"];const Bi=Hi;function Gi(e,t,n,a,o){const r=this;function i(){e.hide()}r.currentUser=o.getCurrentUser(),r.errors=[],r.user=a,r.generateApiKey=function(){r.errors=[],n.user.createApiKey({id:r.user.id}).$promise.then((function(e){r.user.apiKey=e.api_key||"N/A",t.success({title:"User API key updated!"}),i()})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.createApiKey",msg:e.data?JSON.stringify(e.data.message):e.toString()}),r.errors=e.data.errors||[{message:e.toString(),type:"api.user.createApiKey"}]}))},r.removeApiKey=function(){r.errors=[],n.user.removeApiKey({id:r.user.id}).$promise.then((function(){r.user.apiKey="N/A",t.success({title:"User API key removed!"}),i()})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.removeApiKey",msg:e.data?JSON.stringify(e.data.message):e.toString()}),r.errors=e.data.errors||[{message:e.toString(),type:"api.user.removeApiKey"}]}))},r.closeDialog=i}Gi.$inject=["$mdDialog","toasty","api","user","Auth"];const Vi=Gi;function Wi(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.user={},a.crudPermissions,a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.user.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.user.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e,t){a.user=angular.copy(e),a.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},a.ngFlowOptions.target=`${a.baseUrl}api/users/`+a.user.id+"/avatar",a.user.images=[]}}Wi.$inject=["$cookies","toasty","api"];const Qi=Wi;function zi(e,t,n,a,o,r,i){const s=this;function l(){t.hide()}s.currentUser=i.getCurrentUser(),s.errors=[],s.setting=r,s.passwordPattern=s.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",s.user=o,s.password="",s.oldPassword="",s.savePassword=function(){s.errors=[];const e={id:s.user.id,newPassword:s.password};s.currentUser.id==s.user.id&&(e.oldPassword=s.oldPassword);a.user.changePassword(e).$promise.then((function(){n.success({title:"User password properly updated!"}),l()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.save",msg:e.data?JSON.stringify(e.data.message):e.toString()}),s.errors=e.data.errors||[{message:e.toString(),type:"api.user.changePassword"}]}))},s.closeDialog=l,e.$watch("vm.password",(function(t){u().isNil(s.oldPassword)||(t===s.oldPassword?e.userForm.password.$setValidity("oldPasswordMatch",!1):e.userForm.password.$setValidity("oldPasswordMatch",!0))}))}zi.$inject=["$scope","$mdDialog","toasty","api","user","setting","Auth"];const Ki=zi,Ji=n.p+"templates/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager.html",Xi=n.p+"templates/main/apps/staff/views/users/edit/changepassword/changepassword.html/changepassword.html";function Zi(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.user=d||e.params.user||{},m.userProfileSection=f&&1===f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.apikeymanagerdialog=function(e,t){n.show({controller:"UserapikeymanagerController",controllerAs:"vm",templateUrl:Ji,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{user:e,users:m.users?m.users.rows:[],crudPermissions:m.crudPermissions}})},m.changepassworddialog=function(e,t){n.show({controller:"UserchangepasswordController",controllerAs:"vm",templateUrl:Xi,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{user:e,setting:i,users:m.users?m.users.rows:[],crudPermissions:m.crudPermissions}})},m.alert=l.info,m.gotoUsers=function(){e.go("app.staff.users",{},{reload:"app.staff.users"})},m.saveUser=function(){m.user=u().omit(m.user,"userpic"),s.user.update({id:m.user.id},m.user).$promise.then((function(){l.success({title:"User updated!",msg:m.user.name?m.user.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETuser",msg:e.data?JSON.stringify(e.data):e.toString()})}))},s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})),s.userProfile.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.userProfiles=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERPROFILES",msg:e.data?JSON.stringify(e.data):e.toString()})})),s.user.getApiKey({id:m.user.id}).$promise.then((function(e){m.user.apiKey=e.api_key?e.api_key:"N/A"})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_APIKEY",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Zi.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","user","userProfileSection"];const es=Zi,ts=n.p+"templates/main/apps/staff/views/users/create/dialog.html/dialog.html";function ns(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.users=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1===d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="users",b.listOrder="",b.listOrderAsc=null,b.selectedUsers=[],b.query={fields:"createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked",role:"admin,user",sort:"-updatedAt",limit:10,page:1},b.arrayrole=u().keyBy([{option:"Admin",value:"'admin'"},{option:"User",value:"'user'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytransport=u().keyBy([{option:"udp",value:"'udp'"},{option:"tcp",value:"'tcp'"},{option:"ws",value:"'ws'"},{option:"wss",value:"'wss'"},{option:"tls",value:"'tls'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraynat=u().keyBy([{option:"force_rport",value:"'force_rport'"},{option:"comedia",value:"'comedia'"},{option:"yes",value:"'yes'"},{option:"no",value:"'no'"},{option:"never",value:"'never'"},{option:"route",value:"'route'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayallow=u().keyBy([{option:"ulaw",value:"'ulaw'"},{option:"alaw",value:"'alaw'"},{option:"gsm",value:"'gsm'"},{option:"g722",value:"'g722'"},{option:"g729",value:"'g729'"},{option:"opus",value:"'opus'"},{option:"h264",value:"'h264'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayvideosupport=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"},{option:"Always",value:"'always'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.staff.users.edit",{id:e.id,user:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("user")+"?").htmlContent("<b>"+(e.name||"user")+"</b> will be deleted.").ariaLabel("delete user").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getUsers=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.user.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Users",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditUser=function(e,t){o.show({controller:"CreateOrEditUserDialogController",controllerAs:"vm",templateUrl:ts,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{user:t,users:b.users.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteUser=S,b.exportSelectedUsers=function(){const e=angular.copy(b.selectedUsers);return b.selectedUsers=[],e},b.deleteSelectedUsers=function(e){const t=o.confirm().title("Are you sure want to delete the selected users?").htmlContent("<b>"+b.selectedUsers.length+" selected</b> will be deleted.").ariaLabel("delete Users").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedUsers.forEach((function(e){S(e)})),b.selectedUsers=[]}))},b.deselectUsers=function(){b.selectedUsers=[]},b.selectAllUsers=function(){b.selectedUsers=b.users.rows},f.userProfile.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.userProfiles=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERPROFILES",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.users=e||{count:0,rows:[]}}function S(e){f.user.delete({id:e.id}).$promise.then((function(){u().remove(b.users.rows,{id:e.id}),b.users.count-=1,b.users.rows.length||b.getUsers(),p.success({title:u().startCase("User")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEuser"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEuser",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getUsers())}))}ns.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","users","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const as=ns,os=n.p+"templates/main/apps/staff/views/users/users.html/users.html",rs=n.p+"templates/main/apps/staff/views/users/edit/view.html/view.html",is=n.p+"templates/main/apps/staff/views/agents/agents.html/agents.html",ss=n.p+"templates/main/apps/staff/views/agents/edit/view.html/view.html",ls=n.p+"templates/main/apps/staff/views/telephones/telephones.html/telephones.html",cs=n.p+"templates/main/apps/staff/views/telephones/edit/view.html/view.html",us=n.p+"templates/main/apps/staff/views/teams/teams.html/teams.html",ds=n.p+"templates/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles.html",fs=n.p+"templates/main/apps/staff/views/userProfiles/edit/view.html/view.html";function ms(e,t){e.state("app.staff",{abstract:!0,url:"/staff"}).state("app.staff.users",{url:"/users",views:{"content@app":{templateUrl:os,controller:"UsersController as vm"}},resolve:{users:["apiResolver",function(e){return e.resolve("user@get",{fields:"createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked",role:"admin,user",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:201})}]},authenticate:!0,permissionId:201,bodyClass:"staff"}).state("app.staff.users.edit",{url:"/:id?tab",params:{user:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:rs,controller:"UserController as vm"}},resolve:{user:["apiResolver","$stateParams",function(e,t){return e.resolve("user@get",{fields:"createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:201})}]},authenticate:!0,permissionId:201,bodyClass:"staff"}).state("app.staff.agents",{url:"/agents",views:{"content@app":{templateUrl:is,controller:"AgentsController as vm"}},resolve:{agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"createdAt,updatedAt,id,role,fullname,name,alias,showWebBar,email,phone,mobile,userpic,password,hotdesk,autointernal,internal,loginInPause,description,dtlscertfile,dtlsprivatekey,voicemail,transport,host,nat,type,allow,callerid,context,callgroup,pickupgroup,chanspy,videosupport,extensionMonitor,chatCapacity,mailCapacity,smsCapacity,openchannelCapacity,faxCapacity,whatsappCapacity,phoneBarEnableSettings,phoneBarAutoAnswer,phoneBarAutoAnswerDelay,phoneBarRingInUse,phoneBarEnableRecording,phoneBarEnableDtmfTone,phoneBarDnd,phoneBarUnansweredCallBadge,phoneBarEnableJaws,phoneBarOutboundProxy,phoneBarUnconditional,phoneBarUnconditionalNumber,phoneBarRemoteControl,phoneBarRemoteControlPort,phoneBarExpires,phoneBarListenPort,permissions,allowmessenger,phoneBarPrefixRequired,passwordResetAt,disabled,blocked,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording,privacyEnabled",role:"agent",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"createdAt,updatedAt,id,role,fullname,name,alias,showWebBar,email,phone,mobile,userpic,password,hotdesk,autointernal,internal,loginInPause,description,dtlscertfile,dtlsprivatekey,voicemail,transport,host,nat,type,allow,callerid,context,callgroup,pickupgroup,chanspy,videosupport,extensionMonitor,chatCapacity,mailCapacity,smsCapacity,openchannelCapacity,faxCapacity,whatsappCapacity,phoneBarEnableSettings,phoneBarAutoAnswer,phoneBarAutoAnswerDelay,phoneBarRingInUse,phoneBarEnableRecording,phoneBarEnableDtmfTone,phoneBarDnd,phoneBarUnansweredCallBadge,phoneBarEnableJaws,phoneBarOutboundProxy,phoneBarUnconditional,phoneBarUnconditionalNumber,phoneBarRemoteControl,phoneBarRemoteControlPort,phoneBarExpires,phoneBarListenPort,permissions,allowmessenger,phoneBarPrefixRequired,passwordResetAt,disabled,blocked,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording,privacyEnabled",role:"agent",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}]},authenticate:!0,permissionId:202,bodyClass:"staff"}).state("app.staff.agents.edit",{url:"/:id?tab",params:{agent:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:ss,controller:"AgentController as vm"}},resolve:{agent:["apiResolver","$stateParams",function(e,t){return e.resolve("user@get",{fields:"createdAt,updatedAt,id,role,fullname,name,alias,showWebBar,email,phone,mobile,userpic,password,hotdesk,autointernal,internal,loginInPause,description,dtlscertfile,dtlsprivatekey,voicemail,transport,host,nat,type,allow,callerid,context,callgroup,pickupgroup,chanspy,videosupport,extensionMonitor,chatCapacity,mailCapacity,smsCapacity,openchannelCapacity,faxCapacity,whatsappCapacity,phoneBarEnableSettings,phoneBarAutoAnswer,phoneBarAutoAnswerDelay,phoneBarRingInUse,phoneBarEnableRecording,phoneBarEnableDtmfTone,phoneBarDnd,phoneBarUnansweredCallBadge,phoneBarEnableJaws,phoneBarOutboundProxy,phoneBarUnconditional,phoneBarUnconditionalNumber,phoneBarRemoteControl,phoneBarRemoteControlPort,phoneBarExpires,phoneBarListenPort,permissions,allowmessenger,phoneBarPrefixRequired,passwordResetAt,disabled,blocked,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording,privacyEnabled",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}]},authenticate:!0,permissionId:202,bodyClass:"staff"}).state("app.staff.telephones",{url:"/telephones",views:{"content@app":{templateUrl:ls,controller:"TelephonesController as vm"}},resolve:{telephones:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile",role:"telephone",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Telephones",fields:"createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile",role:"telephone",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:203})}]},authenticate:!0,permissionId:203,bodyClass:"staff"}).state("app.staff.telephones.edit",{url:"/:id?tab",params:{telephone:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:cs,controller:"TelephoneController as vm"}},resolve:{telephone:["apiResolver","$stateParams",function(e,t){return e.resolve("user@get",{fields:"createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:203})}]},authenticate:!0,permissionId:203,bodyClass:"staff"}).state("app.staff.teams",{url:"/teams",views:{"content@app":{templateUrl:us,controller:"TeamsController as vm"}},resolve:{teams:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("team@get",{fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Teams",fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:204})}]},authenticate:!0,permissionId:204,bodyClass:"staff"}).state("app.staff.userProfiles",{url:"/userProfiles",views:{"content@app":{templateUrl:ds,controller:"UserProfilesController as vm"}},resolve:{userProfiles:["apiResolver",function(e){return e.resolve("userProfile@get",{fields:"createdAt,updatedAt,id,name,description,crudPermissions,privacyEnabled",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:205})}]},authenticate:!0,permissionId:205,bodyClass:"staff"}).state("app.staff.userProfiles.edit",{url:"/:id?tab",params:{userProfile:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:fs,controller:"UserProfileController as vm"}},resolve:{userProfile:["apiResolver","$stateParams",function(e,t){return e.resolve("userProfile@get",{fields:"createdAt,updatedAt,id,name,description,crudPermissions,privacyEnabled",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:205})}]},authenticate:!0,permissionId:205,bodyClass:"staff"}),t.addPart("app/main/apps/staff")}ms.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.staff",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter"]).config(ms).controller("AgentsController",Wr).controller("CreateOrEditAgentDialogController",zr).controller("Agentchange_avatarController",Jr).controller("AgentchangepasswordController",Zr).controller("AgentPermissionsController",ti).controller("AgentqueueaddController",ai).controller("AgentteamaddController",ri).controller("AgentController",ci).controller("CreateOrEditTeamDialogController",di).controller("TeamagentaddController",mi).controller("TeamsController",_i).controller("CreateOrEditTelephoneDialogController",yi).controller("TelephonechangepasswordController",Ai).controller("TelephoneController",Ei).controller("TelephonesController",Ii).controller("CreateOrEditUserProfileDialogController",Di).controller("UserProfilecloneController",Mi).controller("UserProfilePermissionsController",Ri).controller("UserProfilepermissionsmanageController",Li).controller("UserProfileController",ji).controller("UserProfilesController",Yi).controller("CreateOrEditUserDialogController",Bi).controller("UserapikeymanagerController",Vi).controller("Userchange_avatarController",Qi).controller("UserchangepasswordController",Ki).controller("UserController",es).controller("UsersController",as);const ps=n.p+"templates/main/apps/contactmanager/views/contacts/import/import.html/import.html",gs=n.p+"templates/main/apps/contactmanager/views/contacts/create/dialog.html/dialog.html";function hs(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this;v.baseUrl=c.baseUrl,v.currentUser=b.getCurrentUser(),v.license=y,v.userProfile=s,v.userProfileSection=l&&1===l.count?l.rows[0]:null,v.crudPermissions=b.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null);const A=62914560;v.ngFlowOptions={target:`${v.baseUrl}api/cm/contacts/upload`,singleFile:!0,maxChunkRetries:1,chunkSize:A,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},v.contacts=d||{count:0,rows:[]},v.options={hidden:!1,hover:!1,isOpen:!1},v.table="cm_contacts",v.selectedContacts=[],v.lists=f||{rows:[],count:0},v.companies=p||{rows:[],count:0},v.tags=h||{rows:[],count:0},v.listsMap=m,v.companiesMap=g,v.selectedTags=[],v.selectedList=null,v.selectedCompany=null,v.query=u().merge({includeAll:!0,sort:"-updatedAt",limit:10,offset:0,page:1},o),v.editdialog=function(e){a.go("app.contactmanager.contacts.edit",{id:e.id,crudPermissions:v.crudPermissions})},v.deleteconfirm=function(e,t){const n=r.confirm().title("Are you sure want to delete the contact?").htmlContent("<b>"+(e.firstName||e.email||e.phone||"Contact")+"</b> will be deleted.").ariaLabel("delete contact").targetEvent(t).ok("OK").cancel("CANCEL");r.show(n).then((function(){C(e)}))},v.success=E,v.getContacts=function(){v.query.offset=(v.query.page-1)*v.query.limit,b.hasRole("admin")?v.promise=c.cmContact.get(v.query,E).$promise:(v.query.id=v.userProfile.id,v.query.ListId=v.query.ListId?v.query.ListId:u().map(v.lists.rows,"id"),v.query.CompanyId=v.query.CompanyId?v.query.CompanyId:u()(v.companies.rows).filter({canSelect:void 0}).map("id").value(),v.query.section="Contacts",v.promise=c.userProfile.getResources(v.query,E).$promise)},v.getAssignedCompanies=function(){if(!b.hasRole("admin")){const e=u()(v.contacts.rows).map((function(e){return{id:e.CompanyId}})).uniqBy("id").filter((function(e){return e.id&&e.id>0})).pullAllBy(v.companies.rows,"id").value();if(!u().isEmpty(e)){const t=[];e.forEach((function(e){t.push(c.cmCompany.get({id:e.id,fields:"id,name"}).$promise)})),i.all(t).then((function(e){e.forEach((function(e){const t=e.toJSON();t.canSelect=!1,v.companies.rows.push(t);const n={};n[t.id]=t.name,v.companiesMap=u().assignIn(v.companiesMap,n)}))})).catch((function(e){_.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_COMPANY",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}}},v.mergeContact=function(e,n){r.show({controller:"MergeContactDialogController",controllerAs:"vm",templateUrl:Ra,parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:n.id})}],lists:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmList@get",{fields:"id,name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Lists",fields:"id,name",nolimit:!0})}]},locals:{contacts:v.contacts.rows}})},v.duplicateContact=function(e,n){r.show({controller:"DuplicateContactDialogController",controllerAs:"vm",templateUrl:Oa,parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0,resolve:{contact:["apiResolver",function(e){return e.resolve("cmContact@get",{id:n.id})}],lists:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmList@get",{fields:"id,name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Lists",fields:"id,name",nolimit:!0})}]},locals:{contacts:v.contacts.rows}})},v.createOrEditContact=function(e,n){n&&n.dateOfBirth&&(n.dateOfBirth=new Date(n.dateOfBirth));r.show({controller:"CreateOrEditContactDialogController",controllerAs:"vm",templateUrl:gs,parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0,locals:{ListId:v.query.ListId||a.params.ListId,CompanyId:v.query.CompanyId||a.params.CompanyId,contact:n,contacts:v.contacts.rows,companies:v.companies,lists:v.lists,setting:null,crudPermissions:v.crudPermissions}})},v.deleteContact=C,v.exportSelectedContacts=function(){const e=angular.copy(v.selectedContacts);return v.selectedContacts=[],e},v.deleteSelectedContacts=function(e){const t=r.confirm().title("Are you sure want to delete the selected contacts?").htmlContent("<b>"+v.selectedContacts.length+" selected</b> will be deleted.").ariaLabel("delete Contacts").targetEvent(e).ok("OK").cancel("CANCEL");r.show(t).then((function(){v.selectedContacts.forEach((function(e){C(e)})),v.selectedContacts=[]}))},v.deselectContacts=function(){v.selectedContacts=[]},v.selectAllContacts=function(){v.selectedContacts=v.contacts.rows},v.createTag=function(e){const t=r.prompt().title("What would you name your tag?").placeholder("Tag name").ariaLabel("Tag name").targetEvent(e).ok("Ok").cancel("Cancel");return r.show(t).then((function(e){if(e)return c.tag.save({name:e});_.error({title:"Error creating tag!",msg:"Invalid tag name."})})).then((function(e){e&&(v.tags.rows.push(e),_.success({title:"Tag properly created!",msg:e.tag?e.name+" has been created!":""}))}))},v.createList=function(e){const t=r.prompt().title("What would you name your list?").placeholder("List name").ariaLabel("List name").targetEvent(e).ok("Ok").cancel("Cancel");return r.show(t).then((function(e){if(e)return c.cmList.save({name:e});_.error({title:"Error creating list!",msg:"Invalid list name."})})).then((function(e){e&&(v.lists.rows.push(e),_.success({title:"List properly created!",msg:e.name?e.name+" has been created!":""}))}))},v.createCompany=function(e){const t=r.prompt().title("What would you name your company?").placeholder("Company name").ariaLabel("Company name").targetEvent(e).ok("Ok").cancel("Cancel");return r.show(t).then((function(e){if(e)return c.cmCompany.save({name:e});_.error({title:"Error creating company!",msg:"Invalid company name."})})).then((function(e){e&&(v.companies.rows.push(e),_.success({title:"Company properly created!",msg:e.name?e.name+" has been created!":""}))}))},v.importContacts=function(e,n){const a=JSON.parse(n);r.show({controller:"ImportContactsDialogController",controllerAs:"vm",templateUrl:ps,parent:angular.element(t.body),clickOutsideToClose:!1,locals:{lists:f,companies:p,file:a.file,fields:a.fields,license:v.license}}).then((function(){v.getContacts()})).catch((function(){console.error()}))},v.hasPermission=function(){return b.hasPermission(303)||b.hasRole("admin")},v.fileAdded=function(e){const t=["csv"];if(!u().includes(t,e.getExtension()))return _.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+t.join()}),!1;if(e.size>A)return _.error({title:"File too big",msg:"The max allowed size is 60MB"}),!1;return!0},a.params.ListId&&(v.selectedList=a.params.ListId),a.params.CompanyId&&(v.selectedCompany=a.params.CompanyId),e.$watch("vm.options.isOpen",(function(t){t?n((function(){e.tooltipVisible=v.options.isOpen}),600):e.tooltipVisible=v.options.isOpen}));let S=!0,w=1;function E(e){v.contacts=e||{count:0,rows:[]}}function C(e){c.cmContact.delete({id:e.id}).$promise.then((function(){u().remove(v.contacts.rows,{id:e.id}),v.contacts.count-=1,v.contacts.rows.length||v.getContacts(),_.success({title:"Contact deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){v.errors=e.data.errors||[{message:e.toString(),type:"api.contact.delete"}];for(let t=0;t<e.data.errors.length;t++)_.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else _.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.contact.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){S?n((function(){S=!1})):(t||(w=v.query.page),e!==t&&(v.query.page=1),e||(v.query.page=w),v.getContacts())}),!0),e.$watch("vm.selectedList",(function(e,t){e!==t&&(v.query.ListId=v.selectedList||void 0,v.getContacts())})),e.$watch("vm.selectedCompany",(function(e,t){e!==t&&(v.query.CompanyId=v.selectedCompany||void 0,v.getContacts())})),e.$watch("vm.selectedTags",(function(e,t){(e.length||t.length)&&v.getContacts()}))}hs.$inject=["$scope","$document","$timeout","$state","$stateParams","$mdDialog","$q","userProfile","userProfileSection","api","contacts","lists","listsMap","companies","companiesMap","tags","toasty","Auth","license"];const _s=hs;function bs(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){e.hide()}d.errors=[],d.title="CONTACTMANAGER.EDIT_CONTACT",d.crudPermissions=c,d.contact=angular.copy(r),d.contacts=n||{rows:[],count:0},d.lists=a||{rows:[],count:0},d.companies=o||{rows:[],count:0},d.customFields={rows:[],count:0},d.newContact=!1,d.contact?(delete d.contact.List,d.ListId=d.contact.ListId||void 0):(d.contact={ListId:i?parseInt(i,10):void 0,CompanyId:s?parseInt(s,10):void 0},d.title="CONTACTMANAGER.NEW_CONTACT",d.newContact=!0),d.addNewContact=function(){d.errors=[],l.cmContact.save(d.contact).$promise.then((function(e){d.contacts.unshift(e),t.success({title:"Contact properly created",msg:d.contact.name?d.contact.name+" has been created!":""}),f()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){d.errors=e.data.errors||[{message:e.toString(),type:"api.user.save"}];for(let n=0;n<e.data.errors.length;n++)t.error({title:e.data.errors[n].type,msg:e.data.errors[n].message})}else t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.contacts.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},d.saveContact=function(){d.errors=[],l.cmContact.update({id:d.contact.id},d.contact).$promise.then((function(e){const n=u().find(d.contacts,{id:e.id});n&&u().merge(n,e),t.success({title:"Contact properly saved!",msg:d.contact.name?d.contact.name+" has been saved!":""}),f()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){d.errors=e.data.errors||[{message:e.toString(),type:"api.contact.update"}];for(let n=0;n<e.data.errors.length;n++)t.error({title:e.data.errors[n].type,msg:e.data.errors[n].message})}else t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.contact.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},d.deleteContact=function(n){d.errors=[];const a=e.confirm().title("Are you sure?").content("The contact will be deleted.").ariaLabel("Delete Contact").ok("Delete").cancel("Cancel").targetEvent(n);e.show(a).then((function(){l.cmContact.delete({id:d.contact.id}).$promise.then((function(){u().remove(d.contacts,{id:d.contact.id}),t.success({title:"Contact properly deleted!",msg:d.contact.name?d.contact.name+" has been deleted!":""}),f()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.contact.delete"}]}))}),(function(){}))},d.closeDialog=f,d.getCustomFields=function(e){if(e)return l.cmList.getCustomFields({id:e}).$promise.then((function(e){if(e){d.customFields=e;const t=u().map(d.customFields.rows,(function(e){return"cf_"+e.id}));l.cmContact.get({id:d.contact.id,attributes:t,raw:!0}).$promise.then((function(e){d.contact=u().merge(d.contact,e)}))}})).catch((function(e){console.error(e)}));d.customFields={rows:[],count:0}},d.getDateFromString=function(e){return null===e?void 0:new Date(e)}}bs.$inject=["$mdDialog","toasty","contacts","lists","companies","contact","ListId","CompanyId","api","crudPermissions"];const ys=bs;function vs(e,t,n,a,o,r){const i=this;function s(){e.hide()}i.errors=[],i.title="CONTACTMANAGER.COPY_CONTACT",i.contact=angular.copy(n),i.lists=o||{rows:[],count:0},i.addNewContact=function(){i.errors=[],delete i.contact.id,i.contact.tags&&!i.contact.tags.length&&delete i.contact.tags;r.cmContact.save(i.contact).$promise.then((function(e){a.unshift(e),t.success({title:"Contact properly created",msg:i.contact.name?i.contact.name+" has been created!":""}),s()})).catch((function(e){console.error(e),i.errors=e.data.errors||[{message:e.toString(),type:"api.contact.save"}]}))},i.closeDialog=s}vs.$inject=["$mdDialog","toasty","contact","contacts","lists","api"];const As=vs;function Ss(e,t,n,a,o,r,i,s,l){const c=this;function d(e){a.hide(e)}c.errors=[],c.title="CONTACTMANAGER.EDIT_HOPPER",c.hopper=angular.copy(i),c.hoppers=r,c.newHopper=!1,c.crudPermissions=l,c.hopper||(c.hopper={},c.title="CONTACTMANAGER.NEW_HOPPER",c.newHopper=!0),c.saveHopper=function(){c.errors=[],s.cmHopper.update({id:c.hopper.id},c.hopper).$promise.then((function(e){const t=u().find(c.hoppers,{id:e.id});t&&u().merge(t,e),o.success({title:"Hopper properly saved!",msg:c.hopper.name?c.hopper.name+" has been saved!":""}),d(e)})).catch((function(e){console.error(e),c.errors=e.data.errors||[{message:e.toString(),type:"api.cmHopper.update"}]}))},c.getDateFromString=function(e){return null===e?void 0:new Date(e)},c.closeDialog=d}Ss.$inject=["$scope","$state","$location","$mdDialog","toasty","hoppers","hopper","api","crudPermissions"];const ws=Ss,Es=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog.html";function Cs(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_,b,y,v,A,S){const w=this;function E(e){return function(t){w[e]=t||{count:0,rows:[]}}}function C(){w.queryHopper.offset=(w.queryHopper.page-1)*w.queryHopper.limit,w.queryHopper.id=w.contact.id,w.promise=s.cmContact.getHoppers(w.queryHopper,E("hoppers")).$promise}function T(){w.queryFinal.offset=(w.queryFinal.page-1)*w.queryFinal.limit,w.queryFinal.id=w.contact.id,w.promise=s.cmContact.getHopperFinals(w.queryFinal,E("finals")).$promise}function I(){w.queryHistory.offset=(w.queryHistory.page-1)*w.queryHistory.limit,w.queryHistory.id=w.contact.id,w.promise=s.cmContact.getHopperHistories(w.queryHistory,E("histories")).$promise}function k(e){w.journeyIsLoading=!0;const t=u().merge(w.journeyOptions,{id:w.contact.id,offset:e||0});return S.get(w.journey,t).then((function(e){w.journey=e.journey,w.canLoadMoreJourney=e.loadMore})).finally((function(){w.journeyIsLoading=!1}))}w.currentUser=v.getCurrentUser(),w.license=y,w.journey=[],w.contact=l||{},w.hoppers=c||{rows:[],count:0},w.finals=d||{rows:[],count:0},w.histories=f||{rows:[],count:0},w.companies=p||{rows:[],count:0},w.lists=g||{rows:[],count:0},w.customFields=h||{rows:[],count:0},w.tags=_||{rows:[],count:0},w.jscriptySessions=b||{rows:[],count:0},w.journeyOptions=S.getQuery(),w.quickFilters=S.getQuickFilters(),w.journeyTimelineOptions={scrollEl:"#journey-content"},w.userProfileSection=A&&1==A.count?A.rows[0]:null,w.crudPermissions=v.parseCrudPermissions(w.userProfileSection?w.userProfileSection.crudPermissions:null),w.arraypriority=u().keyBy([{option:"Highest",value:"'4'"},{option:"High",value:"'3'"},{option:"Medium",value:"'2'"},{option:"Low",value:"'1'"},{option:"Lowest",value:"'0'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),w.queryHopper={fields:"id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId",sort:"-updatedAt",limit:10,page:1},w.queryFinal={fields:"id,uniqueid,calleridnum,statedesc,starttime,disposition",sort:"-id",limit:10,page:1},w.queryHistory={fields:"id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime",sort:"-id",limit:10,page:1},w.queryJscriptySession={fields:"id,starttime,endtime,membername,projectname",sort:"-starttime",limit:10,page:1},w.selectedTab=n.params.tab||0,w.onInit=function(){v.hasRole("admin")||(function(){if(!u().some(w.companies.rows,{id:w.contact.CompanyId}))s.cmCompany.get({id:w.contact.CompanyId,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,w.companies.rows.push(t)})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_COMPANY",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}(),function(){const e=u().map(w.contact.Tags,(function(e){return{id:e.id,name:e.name}}));if(!u().isEmpty(e))for(let t=0;t<e.length;t++)u().some(w.tags.rows,{id:e.id})||(e[t].canSelect=!1,w.tags.rows.push(e[t]))}());return s.user.get({fields:"id,fullname",nolimit:!0}).$promise.then((function(e){w.users=e||{count:0,rows:[]},w.usersMap=u().mapValues(u().keyBy(w.users.rows,"id"),"fullname"),w.Tags=u().map(w.contact.Tags,"id")})).finally((function(){w.contact&&k()}))},w.gotoContacts=function(){n.go("app.contactmanager.contacts",{},{reload:!0,notify:!0})},w.duplicateContact=function(e){o.show({controller:"DuplicateContactDialogController",controllerAs:"vm",templateUrl:Oa,parent:angular.element(a.body),targetEvent:e,clickOutsideToClose:!0,resolve:{lists:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmList@get",{fields:"id,name"}):e.resolve("userProfile@getResources",{id:w.currentUser.userProfileId,section:"Lists",fields:"id,name"})}]},locals:{contacts:m.rows,contact:l}})},w.saveContact=function(){s.cmContact.update({id:w.contact.id},w.contact).$promise.then((function(){i.success({title:"Contact updated!",msg:w.contact.name?w.contact.name+" has been updated!":""})})).then((function(){return s.cmContact.setTags({id:w.contact.id,ids:w.Tags}).$promise})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATEcontact",msg:e.data?JSON.stringify(e.data):e.toString()})}))},w.editCompany=function(e,t){const n=u().find(w.companies.rows,{id:t});o.show({controller:"CreateOrEditCompanyDialogController",controllerAs:"vm",templateUrl:gs,parent:angular.element(a.body),targetEvent:e,clickOutsideToClose:!0,locals:{companies:[],license:null,setting:null,crudPermissions:!1===n.canSelect?{readOnly:!0,canEdit:!1,canDelete:!1}:s.userProfileSection.get({userProfileId:w.currentUser.userProfileId,sectionId:302}).$promise.then((function(e){const t=e.rows?e.rows[0]:null;return v.parseCrudPermissions(t?t.crudPermissions:null)})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"API:GET_COMPANY_SECTION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},resolve:{company:["apiResolver",function(e){return e.resolve("cmCompany@get",{id:t})}]}})},w.onSelectList=function(e){if(w.contact.ListId){const t=o.confirm().title("You are selecting the list number: "+w.contact.ListId).textContent("Warning! You won't select a different list for the contact "+w.contact.firstName||0).targetEvent(e).ok("Ok").cancel("Cancel");return o.show(t).then(w.onSelectListSuccess).catch((function(){w.contact.ListId=null}))}},w.onSelectListSuccess=function(){return s.cmList.getCustomFields({id:w.contact.ListId}).$promise.then((function(e){w.customFields=e||{rows:[],count:0}})).catch((function(e){console.error(e)}))},w.getDateFromString=function(e){return null===e?void 0:new Date(e)},w.getHoppers=C,w.getFinals=T,w.getHistories=I,w.getJscriptySessions=function(){w.queryJscriptySession.offset=(w.queryJscriptySession.page-1)*w.queryJscriptySession.limit,w.queryJscriptySession.id=w.contact.id,w.promise=s.cmContact.getJscriptySessions(w.queryJscriptySession,E("jscriptySessions")).$promise},w.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the agent?").htmlContent("<b>"+(e.phone||"hopper")+"</b> will be deleted.").ariaLabel("delete hopper").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){!function(e){s.cmHopper.delete({id:e.id}).$promise.then((function(){u().remove(w.hoppers.rows,{id:e.id}),w.hoppers.count--,w.hoppers.rows.length||w.getHoppers(),i.success({title:"Hopper deleted!",msg:e.phone?e.phone+" has been deleted!":""})})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEhopper",msg:e.data?JSON.stringify(e.data):e.toString()})}))}(e)}),(function(){console.log("CANCEL")}))},w.editHopper=function(e,t){o.show({controller:"CreateOrEditHopperVoiceQueueIdDialogController",controllerAs:"vm",templateUrl:Go,parent:angular.element(a.body),targetEvent:e,clickOutsideToClose:!0,locals:{hopper:t,hoppers:w.hoppers.rows,license:null,setting:null,crudPermissions:w.crudPermissions}})},w.createOrEditIvrCampaignHopper=function(e,t){o.show({controller:"CreateOrEditHopperCampaignIdDialogController",controllerAs:"vm",templateUrl:Es,parent:angular.element(a.body),targetEvent:e,clickOutsideToClose:!0,locals:{hopper:t,hoppers:w.hoppers.rows,license:null,setting:null,crudPermissions:w.crudPermissions}})},w.getCustomerJourney=k,w.loadMoreJourney=function(){return r((function(e){return e(k(w.journey.length))}))};let D=!0,x=1;e.$watch("vm.queryHopper.filter",(function(e,n){D?t((function(){D=!1})):(n||(x=w.queryHopper.page),e!==n&&(w.queryHopper.page=1),e||(w.queryHopper.page=x),C())})),e.$watch("vm.queryFinal.filter",(function(e,n){D?t((function(){D=!1})):(n||(x=w.queryFinal.page),e!==n&&(w.queryFinal.page=1),e||(w.queryFinal.page=x),T())})),e.$watch("vm.queryHistory.filter",(function(e,n){D?t((function(){D=!1})):(n||(x=w.queryHistory.page),e!==n&&(w.queryHistory.page=1),e||(w.queryHistory.page=x),I())}))}Cs.$inject=["$scope","$timeout","$state","$document","$mdDialog","$q","toasty","api","contact","hoppers","finals","histories","contacts","companies","lists","customFields","tags","jscriptySessions","license","Auth","userProfileSection","customerJourneyManager"];const Ts=Cs;function Is(e,t,n,a,r,i,s,l,c,u,d,f,m,p){const g=this;g.processing=!1,g.stopping=!0,g.license=p,g.pid=0,g.result={finish:!1,rows:0,affectedRows:0,failedRows:0,duplicatedRows:0,errors:[]},g.contactFields=[{key:"firstName",required:!0},{key:"lastName",required:!1},{key:"phone",required:!0},{key:"mobile",required:!1},{key:"email",required:!1},{key:"dateOfBirth",required:!1},{key:"country",required:!1},{key:"city",required:!1},{key:"street",required:!1},{key:"postalCode",required:!1},{key:"fax",required:!1}],g.motionBullFields=[{key:"UserId",required:!1},{key:"scheduledat",required:!1},{key:"priority",required:!1}],g.binding={},g.duplicate=[],g.lists=i||{rows:[],count:0},g.companies=s||{rows:[],count:0},g.customFields={rows:[],count:0},g.fields=m||[],g.closeDialog=function(){u.removeAllListeners("contact:import:"+h),t.hide()},g.onChangeList=function(){return c.cmList.getCustomFields({id:g.ListId}).$promise.then((function(e){g.customFields=e})).catch((function(e){console.error(e)}))},g.uploadCsv=function(){g.processing=o()(),c.cmContact.import({id:f.filename,binding:g.binding,ListId:g.ListId,CompanyId:g.CompanyId,duplicates:g.duplicates,socket_timestamp:h}).$promise.then((function(e){g.stopping=!1,e&&e.pid&&(g.pid=e.pid)})).catch((function(){g.processing=!1,l.error({title:"Import process failed!",msg:"Please retry with a new file"})}))},g.getHeaderErrors=function(){const e=m;return e.push("contact_import_error"),e},g.getArrayErrors=function(){const e=[];for(let t=0;t<g.result.errors.length;t+=1){const n=g.result.errors[t].row;n.contact_import_error=g.result.errors[t].message,e.push(n)}return e},g.stopUpload=function(){if(g.stopping=!0,g.pid)return c.system.killProcess({pid:g.pid}).$promise.then((function(){l.success({title:"CSV import process stopped!",msg:"Import has been stopped!"})})).catch((function(){l.error({title:"CSV stop import process failed!",msg:"pid is unknown"})}))};const h=o()().unix();u.on("contact:import:"+h,(function(e){r((function(){if(g.result.rows=e.rows,e.errors)for(let t=0;t<e.errors.length;t++)g.result.errors.push(e.errors[t]);if(e.finish){g.result.finish=!0,g.result.affectedRows=e.affectedRows,g.result.failedRows=g.result.errors.length;const t=g.result.rows-g.result.affectedRows-g.result.errors.length;t&&t>0&&(g.duplicates.length?g.result.duplicatedRows=t:g.result.failedRows+=t),g.result.elapsed=o()().diff(g.processing,"seconds")}}))})),d.$on("$destroy",(function(){u.removeAllListeners("contact:import:"+h)}))}Is.$inject=["$cookies","$mdDialog","$interval","$q","$timeout","lists","companies","toasty","api","socket","$scope","file","fields","license"];const ks=Is;function Ds(e,t,n,a,o,r,i){const s=this;s.errors=[],s.title="CONTACTMANAGER.MERGE_CONTACT",s.contact=angular.copy(a),s.lists=r||[],s.change=function(){s.searchTerm?i.cmContact.get({fields:"id,firstName,lastName,phone,email",filter:s.searchTerm,ListId:a.ListId}).$promise.then((function(e){s.contacts=e.rows})).catch((function(e){console.error(e)})):s.contacts=[]},s.showConfirm=function(t,a,r){const s=e.confirm({multiple:!0}).title("Would you like to merge your contacs?").textContent("All unfilled values of the contact #"+r.id+" will be overwritten by the fields of the contact #"+a.id+".").targetEvent(t).ok("Ok").cancel("Cancel");e.show(s).then((function(){return i.cmContact.merge({to:r.id,from:a.id}).$promise})).then((function(t){e.hide({new:t,to:r,from:a}),u().remove(o,{id:r.id}),u().remove(o,{id:a.id}),o.unshift(t)})).then((function(){n.success({title:"Contact properly merged!"})})).catch((function(e){e&&e.status&&n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:MERGE_CONTACT",msg:e.data?JSON.stringify(e.data):e.toString()})}))},s.closeDialog=function(){e.hide()}}Ds.$inject=["$mdDialog","$scope","toasty","contact","contacts","lists","api"];const xs=Ds,Ms=n.p+"templates/main/apps/contactmanager/views/contacts/contacts.html/contacts.html",Ps=n.p+"templates/main/apps/contactmanager/views/contacts/edit/view.html/view.html";function Os(e){e.state("app.contactmanager.contacts",{url:"/contacts?ListId&CompanyId",views:{"content@app":{templateUrl:Ms,controller:"ContactsController as vm"}},resolve:{contacts:["apiResolver","Auth","$stateParams",function(e,t,n){return t.hasRole("admin")?e.resolve("cmContact@get",u().merge({includeAll:!0,sort:"-updatedAt",limit:10,offset:0},n)):e.resolve("userProfile@getResources",u().merge({id:t.getCurrentUser().userProfileId,section:"Contacts",includeAll:!0,sort:"-updatedAt",limit:10,offset:0},n))}],lists:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmList@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Lists",fields:"id,name",sort:"-updatedAt",nolimit:!0})}],listsMap:["lists",function(e){const t={};for(let n=0;n<e.rows.length;n++)t[e.rows[n].id]=e.rows[n].name;return t}],companies:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmCompany@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Companies",fields:"id,name",sort:"name",nolimit:!0})}],companiesMap:["companies",function(e){const t={};for(let n=0;n<e.rows.length;n++)t[e.rows[n].id]=e.rows[n].name;return t}],tags:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("tag@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Tags",fields:"id,name",sort:"name",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:303})}]},authenticate:!0,permissionId:303,bodyClass:"contactmanager"}).state("app.contactmanager.contacts.edit",{url:"/:id?tab",params:{crudPermissions:void 0},views:{"content@app":{templateUrl:Ps,controller:"ContactController as vm"}},resolve:{contact:["apiResolver","$stateParams",function(e,t){return e.resolve("cmContact@get",{id:t.id}).then((function(e){return e.dateOfBirth&&(e.dateOfBirth=new Date(e.dateOfBirth)),e})).catch((function(e){console.error(e)}))}],hoppers:["apiResolver","$stateParams",function(e,t){return e.resolve("cmContact@getHoppers",{id:t.id,fields:"id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId",sort:"-updatedAt",limit:10,offset:0})}],finals:["apiResolver","$stateParams",function(e,t){return e.resolve("cmContact@getHopperFinals",{id:t.id,fields:"id,uniqueid,calleridnum,statedesc,starttime,disposition",sort:"-updatedAt",limit:10,offset:0})}],histories:["apiResolver","$stateParams",function(e,t){return e.resolve("cmContact@getHopperHistories",{id:t.id,fields:"id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime",sort:"-updatedAt",limit:10,offset:0})}],jscriptySessions:["apiResolver","$stateParams",function(e,t){return e.resolve("cmContact@getJscriptySessions",{id:t.id,fields:"id,starttime,endtime,membername,projectname",sort:"-starttime",limit:10,offset:0})}],companies:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmCompany@get"):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Companies"})}],lists:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmList@get",{fields:"id,name",sort:"-updatedAt",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Lists",fields:"id,name",sort:"-updatedAt",nolimit:!0})}],customFields:["apiResolver","contact",function(e,t){return t.ListId?e.resolve("cmList@getCustomFields",{id:t.ListId}):null}],tags:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("tag@get"):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Tags"})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:303})}]},authenticate:!0,permissionId:303,bodyClass:"contactmanager"})}Os.$inject=["$stateProvider"],angular.module("app.contactmanager.contacts",[]).config(Os).controller("ContactsController",_s).controller("CreateOrEditContactDialogController",ys).controller("DuplicateContactDialogController",As).controller("EditHopperDialogController",ws).controller("ContactController",Ts).controller("ImportContactsDialogController",ks).controller("MergeContactDialogController",xs);const Rs=n.p+"templates/main/apps/contactmanager/views/companies/create/dialog.html/dialog.html";function Ns(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.companies=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="companies",b.listOrder="",b.listOrderAsc=null,b.selectedCompanies=[],b.query={fields:"createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.contactmanager.companies.edit",{id:e.id,company:e,crudPermissions:b.crudPermissions})},b.gotocontactsgoto=function(e){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:303}).$promise.then((function(t){const a=t&&t.rows?t.rows[0]:null;a&&a.enabled?n.go("app.contactmanager.contacts",{CompanyId:e.id}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.contactmanager.contacts",{CompanyId:e.id})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("company")+"?").htmlContent("<b>"+(e.name||"company")+"</b> will be deleted.").ariaLabel("delete company").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getCompanies=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.cmCompany.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Companies",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditCompany=function(e,t){o.show({controller:"CreateOrEditCompanyDialogController",controllerAs:"vm",templateUrl:Rs,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{company:t,companies:b.companies.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteCompany=S,b.exportSelectedCompanies=function(){const e=angular.copy(b.selectedCompanies);return b.selectedCompanies=[],e},b.deleteSelectedCompanies=function(e){const t=o.confirm().title("Are you sure want to delete the selected companies?").htmlContent("<b>"+b.selectedCompanies.length+" selected</b> will be deleted.").ariaLabel("delete Companys").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedCompanies.forEach((function(e){S(e)})),b.selectedCompanies=[]}))},b.deselectCompanies=function(){b.selectedCompanies=[]},b.selectAllCompanies=function(){b.selectedCompanies=b.companies.rows};let y=!0,v=1;function A(e){b.companies=e||{count:0,rows:[]}}function S(e){f.cmCompany.delete({id:e.id}).$promise.then((function(){u().remove(b.companies.rows,{id:e.id}),b.companies.count-=1,b.companies.rows.length||b.getCompanies(),p.success({title:u().startCase("Company")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEcmCompany"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEcmCompany",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getCompanies())}))}Ns.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","companies","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Ls=Ns;function $s(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CONTACTMANAGER.EDIT_COMPANY",g.company=angular.copy(l),g.companies=s,g.newCompany=!1,g.company||(g.company={},g.title="CONTACTMANAGER.NEW_COMPANY",g.newCompany=!0),g.addNewCompany=function(){g.errors=[],c.cmCompany.save(g.company).$promise.then((function(e){g.companies.unshift(e.toJSON()),i.success({title:"Company properly created",msg:g.company.name?g.company.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCompany.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCompany.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveCompany=function(){g.errors=[],c.cmCompany.update({id:g.company.id},g.company).$promise.then((function(e){const t=u().find(g.companies,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Company properly saved!",msg:g.company.name?g.company.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCompany.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCompany.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteCompany=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The company will be deleted.").ariaLabel("Delete Company").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cmCompany.delete({id:g.company.id}).$promise.then((function(){u().remove(g.companies,{id:g.company.id}),i.success({title:"Company properly deleted!",msg:(g.company.name||"company")+" has been deleted!"}),h(g.company)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCompany.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCompany.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}$s.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","companies","company","api","Auth","license","setting","crudPermissions"];const Us=$s;function js(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.company=u||e.params.company||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.gotogoto=function(t){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:303}).$promise.then((function(n){const a=n&&n.rows?n.rows[0]:null;a&&a.enabled?e.go("app.contactmanager.contacts",{CompanyId:t.id}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.contactmanager.contacts",{CompanyId:t.id})},f.alert=l.info,f.gotoCompanies=function(){e.go("app.contactmanager.companies",{},{reload:"app.contactmanager.companies"})},f.saveCompany=function(){s.cmCompany.update({id:f.company.id},f.company).$promise.then((function(){l.success({title:"Company updated!",msg:f.company.name?f.company.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcmCompany",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}js.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","company","userProfileSection"];const Fs=js;function qs(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD",g.sortable={animation:800,sort:!0,onSort:function(){e.globalCustomFieldForm.$pristine=!1}},g.globalCustomField=l,g.globalCustomFields=s,g.newGlobalCustomField=!1,g.globalCustomField||(g.globalCustomField={type:"text",actionType:"voice"},g.title="CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD",g.newGlobalCustomField=!0),e.$watch("vm.globalCustomField.type",(function(e,t){if(e!==t)switch(e){case"text":g.globalCustomField.values="";break;case"select":g.globalCustomField.values=[]}})),g.addNewGlobalCustomField=function(){g.errors=[],c.cmCustomField.save(g.globalCustomField).$promise.then((function(e){g.globalCustomFields.unshift(e.toJSON()),i.success({title:"GlobalCustomField properly created",msg:g.globalCustomField.name?g.globalCustomField.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCustomField.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCustomField.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveGlobalCustomField=function(){g.errors=[],c.cmCustomField.update({id:g.globalCustomField.id},g.globalCustomField).$promise.then((function(e){const t=u().find(g.globalCustomFields,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"GlobalCustomField properly saved!",msg:g.globalCustomField.name?g.globalCustomField.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCustomField.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCustomField.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteGlobalCustomField=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The globalCustomField will be deleted.").ariaLabel("Delete GlobalCustomField").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cmCustomField.delete({id:g.globalCustomField.id}).$promise.then((function(){u().remove(g.globalCustomFields,{id:g.globalCustomField.id}),i.success({title:"GlobalCustomField properly deleted!",msg:(g.globalCustomField.name||"globalCustomField")+" has been deleted!"}),h(g.globalCustomField)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCustomField.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCustomField.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.addItem=function(t){t.push({value:"New Item"}),e.globalCustomFieldForm.$pristine=!1},g.removeItem=function(t,n){t.splice(n,1),e.globalCustomFieldForm.$pristine=!1},g.removeItems=function(t){const n=t.length;for(let e=0;e<n;e++)t.splice(0,1);e.globalCustomFieldForm.$pristine=!1},g.closeDialog=h}qs.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","globalCustomFields","globalCustomField","api","Auth","license","setting","crudPermissions"];const Ys=qs,Hs=n.p+"templates/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog.html";function Bs(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.globalCustomFields=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="globalCustomFields",b.listOrder="",b.listOrderAsc=null,b.selectedGlobalCustomFields=[],b.query={fields:"createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType",sort:"-updatedAt",ListId:"null",limit:10,page:1},b.arraytype=u().keyBy([{option:"Text",value:"'text'"},{option:"Select",value:"'select'"},{option:"Number",value:"'number'"},{option:"Switch",value:"'switch'"},{option:"Datetime",value:"'datetime'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayactionType=u().keyBy([{option:"Voice",value:"'voice'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editdialog=function(e,t){o.show({controller:"CreateOrEditGlobalCustomFieldDialogController",controllerAs:"vm",templateUrl:Hs,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{globalCustomField:e,globalCustomFields:b.globalCustomFields.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("globalCustomField")+"?").htmlContent("<b>"+(e.name||"globalCustomField")+"</b> will be deleted.").ariaLabel("delete globalCustomField").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getGlobalCustomFields=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.cmCustomField.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="GlobalCustomFields",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditGlobalCustomField=function(e,t){o.show({controller:"CreateOrEditGlobalCustomFieldDialogController",controllerAs:"vm",templateUrl:Hs,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{globalCustomField:t,globalCustomFields:b.globalCustomFields.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteGlobalCustomField=S,b.exportSelectedGlobalCustomFields=function(){const e=angular.copy(b.selectedGlobalCustomFields);return b.selectedGlobalCustomFields=[],e},b.deleteSelectedGlobalCustomFields=function(e){const t=o.confirm().title("Are you sure want to delete the selected globalCustomFields?").htmlContent("<b>"+b.selectedGlobalCustomFields.length+" selected</b> will be deleted.").ariaLabel("delete GlobalCustomFields").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedGlobalCustomFields.forEach((function(e){S(e)})),b.selectedGlobalCustomFields=[]}))},b.deselectGlobalCustomFields=function(){b.selectedGlobalCustomFields=[]},b.selectAllGlobalCustomFields=function(){b.selectedGlobalCustomFields=b.globalCustomFields.rows};let y=!0,v=1;function A(e){b.globalCustomFields=e||{count:0,rows:[]}}function S(e){f.cmCustomField.delete({id:e.id}).$promise.then((function(){u().remove(b.globalCustomFields.rows,{id:e.id}),b.globalCustomFields.count-=1,b.globalCustomFields.rows.length||b.getGlobalCustomFields(),p.success({title:u().startCase("GlobalCustomField")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEcmCustomField"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEcmCustomField",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getGlobalCustomFields())}))}Bs.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","globalCustomFields","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Gs=Bs;function Vs(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CONTACTMANAGER.EDIT_LIST",g.list=angular.copy(l),g.lists=s,g.newList=!1,g.list||(g.list={},g.title="CONTACTMANAGER.NEW_LIST",g.newList=!0),g.addNewList=function(){g.errors=[],c.cmList.save(g.list).$promise.then((function(e){g.lists.unshift(e.toJSON()),i.success({title:"List properly created",msg:g.list.name?g.list.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmList.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmList.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveList=function(){g.errors=[],c.cmList.update({id:g.list.id},g.list).$promise.then((function(e){const t=u().find(g.lists,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"List properly saved!",msg:g.list.name?g.list.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmList.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmList.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteList=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The list will be deleted.").ariaLabel("Delete List").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cmList.delete({id:g.list.id}).$promise.then((function(){u().remove(g.lists,{id:g.list.id}),i.success({title:"List properly deleted!",msg:(g.list.name||"list")+" has been deleted!"}),h(g.list)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmList.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmList.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Vs.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","lists","list","api","Auth","license","setting","crudPermissions"];const Ws=Vs;function Qs(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.cmList.getAgents({id:d.list.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserList?"penalty "+e.UserList.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.list=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.cmList.removeAgents({id:d.list.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.cmList.addAgents({id:d.list.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}Qs.$inject=["$mdDialog","$q","toasty","api","list","lists","realtime","$translate","Auth","crudPermissions"];const zs=Qs,Ks=n.p+"templates/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog.html";function Js(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.listCustomFields=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.cmList.getCustomFields(f.query,m).$promise}function g(e){c.cmCustomField.delete({id:e.id}).$promise.then((function(){u().remove(f.listCustomFields.rows,{id:e.id}),f.listCustomFields.count-=1,f.listCustomFields.rows.length||p(),l.success({title:"CustomField deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETcmList"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcmList",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.list={},f.listCustomFields={count:0,rows:[]},f.selectedListCustomFields=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType",limit:10,page:1},f.arraytype=u().keyBy([{option:"Text",value:"'text'"},{option:"Select",value:"'select'"},{option:"Number",value:"'number'"},{option:"Switch",value:"'switch'"},{option:"Datetime",value:"'datetime'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),f.arrayactionType=u().keyBy([{option:"Voice",value:"'voice'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),f.init=function(e,t){f.list=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.ListId=f.list.id,f.query.id=f.list.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the customField?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("customField #")+e.id||"customField")+"</b> will be deleted.").ariaLabel("delete customField").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getListCustomFields=p,f.createOrEditListCustomField=function(e,t){i.show({controller:"CreateOrEditCustomFieldDialogController",controllerAs:"vm",templateUrl:Ks,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{list:f.list,customField:t,customFields:f.listCustomFields.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedListCustomFields=function(){const e=angular.copy(f.selectedListCustomFields);return f.selectedListCustomFields=[],e},f.deleteListCustomField=g,f.deleteSelectedListCustomFields=function(e){const t=i.confirm().title("Are you sure want to delete the selected customFields?").htmlContent("<b>"+f.selectedListCustomFields.length+" selected</b> will be deleted.").ariaLabel("delete customFields").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedListCustomFields.forEach((function(e){g(e)})),f.selectedListCustomFields=[]}))}}Js.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Xs=Js;function Zs(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CONTACTMANAGER.EDIT_CUSTOMFIELD",g.sortable={animation:800,sort:!0,onSort:function(){e.customFieldForm.$pristine=!1}},g.customField=l,g.customFields=s,g.newCustomField=!1,g.customField||(g.customField={type:"text",actionType:"voice"},g.title="CONTACTMANAGER.NEW_CUSTOMFIELD",g.newCustomField=!0),t.params.id&&(g.customField.ListId=t.params.id),e.$watch("vm.customField.type",(function(e,t){if(e!==t)switch(e){case"text":g.customField.values="";break;case"select":g.customField.values=[]}})),g.addNewCustomField=function(){g.errors=[],c.cmList.addCustomField({id:t.params.id},g.customField).$promise.then((function(e){g.customFields.unshift(e.toJSON()),i.success({title:"CustomField properly created",msg:g.customField.name?g.customField.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCustomField.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCustomField.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveCustomField=function(){g.errors=[],c.cmCustomField.update({id:g.customField.id},g.customField).$promise.then((function(e){const t=u().find(g.customFields,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"CustomField properly saved!",msg:g.customField.name?g.customField.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCustomField.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCustomField.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteCustomField=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The customField will be deleted.").ariaLabel("Delete CustomField").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cmCustomField.delete({id:g.customField.id}).$promise.then((function(){u().remove(g.customFields,{id:g.customField.id}),i.success({title:"CustomField properly deleted!",msg:(g.customField.name||"customField")+" has been deleted!"}),h(g.customField)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cmCustomField.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmCustomField.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.addItem=function(t){t.push({value:"New Item"}),e.customFieldForm.$pristine=!1},g.removeItem=function(t,n){t.splice(n,1),e.customFieldForm.$pristine=!1},g.removeItems=function(t){const n=t.length;for(let e=0;e<n;e++)t.splice(0,1);e.customFieldForm.$pristine=!1},g.closeDialog=h}Zs.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","customFields","customField","api","Auth","license","setting","crudPermissions"];const el=Zs,tl=n.p+"templates/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd.html";function nl(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.list=u||e.params.list||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.gotogoto=function(t){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:303}).$promise.then((function(n){const a=n&&n.rows?n.rows[0]:null;a&&a.enabled?e.go("app.contactmanager.contacts",{ListId:t.id}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.contactmanager.contacts",{ListId:t.id})},f.agentadddialog=function(e,t){n.show({controller:"ListagentaddController",controllerAs:"vm",templateUrl:tl,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{list:e,lists:f.lists?f.lists.rows:[],crudPermissions:f.crudPermissions,realtime:!1}})},f.alert=l.info,f.gotoLists=function(){e.go("app.contactmanager.lists",{},{reload:"app.contactmanager.lists"})},f.saveList=function(){s.cmList.update({id:f.list.id},f.list).$promise.then((function(){l.success({title:"List updated!",msg:f.list.name?f.list.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcmList",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}nl.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","list","userProfileSection"];const al=nl,ol=n.p+"templates/main/apps/tools/views/dispositions/create/dialog.html/dialog.html";function rl(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.dispositions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=l.cmList.getDispositions(f.query,m).$promise}function g(e){l.disposition.delete({id:e.id}).$promise.then((function(){p(),c.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.dispositions={count:0,rows:[]},f.selectedDispositions=[],f.crudPermissions,f.levels={first:"1st",second:"2nd",third:"3rd"},f.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},f.init=function(e,t){f.list=e||{},f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.ListId=f.list.id,f.query.id=f.list.id,p()},f.deleteConfirm=function(e,t){const n=u().some(f.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){g(e)}))},f.success=m,f.getDispositions=p,f.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:{id:f.list.id,field:"ListId",route:"cmList"},license:null,setting:null,crudPermissions:f.crudPermissions}}).then((function(e){e&&p()}))},f.deleteDisposition=g,f.exportSelectedDispositions=function(){const e=angular.copy(f.selectedDispositions);return f.selectedDispositions=[],e},f.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:f.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){f.selectedDispositions.forEach((function(e){g(e)})),f.selectedDispositions=[]}))},f.deselectDispositions=function(){f.selectedDispositions=[]},f.selectAllDispositions=function(){f.selectedDispositions=f.dispositions.rows}}rl.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","api","toasty","Auth"];const il=rl,sl=n.p+"templates/main/apps/contactmanager/views/lists/create/dialog.html/dialog.html";function ll(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.lists=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="lists",b.listOrder="",b.listOrderAsc=null,b.selectedLists=[],b.query={fields:"createdAt,updatedAt,id,name,description,dialPrefix",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.contactmanager.lists.edit",{id:e.id,list:e,crudPermissions:b.crudPermissions})},b.gotocontactsgoto=function(e){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:303}).$promise.then((function(t){const a=t&&t.rows?t.rows[0]:null;a&&a.enabled?n.go("app.contactmanager.contacts",{ListId:e.id}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.contactmanager.contacts",{ListId:e.id})},b.exportcsvcontactsexport=function(e){return f.cmList.getContactsCsv({id:e.id,nolimit:!0}).$promise.then((function(t){if(void 0!==t.length){const n=[t.buffer],a=new Blob(n,{type:t.type}),o=window.document.createElement("a");o.setAttribute("href",URL.createObjectURL(a)),o.setAttribute("download","exportContacts_"+e.id+".csv"),o.click()}else p.info({title:"EXPORT",msg:"The list is empty"})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcmList",msg:e.data?JSON.stringify(e.data):e.toString()})}))},b.agentadddialog=function(e,t){o.show({controller:"ListagentaddController",controllerAs:"vm",templateUrl:tl,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{list:e,lists:b.lists?b.lists.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("list")+"?").htmlContent("<b>"+(e.name||"list")+"</b> will be deleted.").ariaLabel("delete list").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getLists=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.cmList.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Lists",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditList=function(e,t){o.show({controller:"CreateOrEditListDialogController",controllerAs:"vm",templateUrl:sl,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{list:t,lists:b.lists.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteList=S,b.exportSelectedLists=function(){const e=angular.copy(b.selectedLists);return b.selectedLists=[],e},b.deleteSelectedLists=function(e){const t=o.confirm().title("Are you sure want to delete the selected lists?").htmlContent("<b>"+b.selectedLists.length+" selected</b> will be deleted.").ariaLabel("delete Lists").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedLists.forEach((function(e){S(e)})),b.selectedLists=[]}))},b.deselectLists=function(){b.selectedLists=[]},b.selectAllLists=function(){b.selectedLists=b.lists.rows};let y=!0,v=1;function A(e){b.lists=e||{count:0,rows:[]}}function S(e){f.cmList.delete({id:e.id}).$promise.then((function(){u().remove(b.lists.rows,{id:e.id}),b.lists.count-=1,b.lists.rows.length||b.getLists(),p.success({title:u().startCase("List")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEcmList"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEcmList",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getLists())}))}ll.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","lists","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const cl=ll,ul=n.p+"templates/main/apps/contactmanager/views/lists/lists.html/lists.html",dl=n.p+"templates/main/apps/contactmanager/views/lists/edit/view.html/view.html",fl=n.p+"templates/main/apps/contactmanager/views/companies/companies.html/companies.html",ml=n.p+"templates/main/apps/contactmanager/views/companies/edit/view.html/view.html",pl=n.p+"templates/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields.html";function gl(e,t){e.state("app.contactmanager",{abstract:!0,url:"/contactmanager"}).state("app.contactmanager.lists",{url:"/lists",views:{"content@app":{templateUrl:ul,controller:"ListsController as vm"}},resolve:{lists:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmList@get",{fields:"createdAt,updatedAt,id,name,description,dialPrefix",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Lists",fields:"createdAt,updatedAt,id,name,description,dialPrefix",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:301})}]},authenticate:!0,permissionId:301,bodyClass:"contactmanager"}).state("app.contactmanager.lists.edit",{url:"/:id?tab",params:{list:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:dl,controller:"ListController as vm"}},resolve:{list:["apiResolver","$stateParams",function(e,t){return e.resolve("cmList@get",{fields:"createdAt,updatedAt,id,name,description,dialPrefix",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:301})}]},authenticate:!0,permissionId:301,bodyClass:"contactmanager"}).state("app.contactmanager.companies",{url:"/companies",views:{"content@app":{templateUrl:fl,controller:"CompaniesController as vm"}},resolve:{companies:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmCompany@get",{fields:"createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Companies",fields:"createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:302})}]},authenticate:!0,permissionId:302,bodyClass:"contactmanager"}).state("app.contactmanager.companies.edit",{url:"/:id?tab",params:{company:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:ml,controller:"CompanyController as vm"}},resolve:{company:["apiResolver","$stateParams",function(e,t){return e.resolve("cmCompany@get",{fields:"createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:302})}]},authenticate:!0,permissionId:302,bodyClass:"contactmanager"}).state("app.contactmanager.globalCustomFields",{url:"/globalCustomFields",views:{"content@app":{templateUrl:pl,controller:"GlobalCustomFieldsController as vm"}},resolve:{globalCustomFields:["apiResolver",function(e){return e.resolve("cmCustomField@get",{fields:"createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType",sort:"-updatedAt",ListId:"null",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:304})}]},authenticate:!0,permissionId:304,bodyClass:"contactmanager"}),t.addPart("app/main/apps/contactmanager")}function hl(e,t,n,a,r,i,s,l,c,d,f,m,p,g){const h=this;function _(){return[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Agent",key:"lastAssignedTo",type:"select",label:"DASHBOARDS.SELECT_AGENT",options:h.agents.rows,customOptions:[{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}],ngValue:"name"},{name:"Campaign",key:"queue",type:"multiselect",label:"DASHBOARDS.SELECT_CAMPAIGN",options:h.queues.rows,ngValue:"name"}]}function b(){var e,t;if(h.refresh=!1,0===h.queues.count)return y(null);if(h.query.queue=1===h.queues.count?h.queues.rows[0].name:h.query.queue,void 0===h.query.queue&&(h.query.queue=u().map(h.queues.rows,"name")),u().isEmpty(h.query.queue))return y(null);const n="number"==typeof(null===(e=h.query)||void 0===e?void 0:e.limit)?h.query.limit:0,a="number"==typeof(null===(t=h.query)||void 0===t?void 0:t.page)?h.query.page:1;h.query.offset=(a-1)*n,r.localStorage.setItem("motion2.realtime.abandoned.voice.abandonedCalls:"+h.currentUser.id,JSON.stringify({query:u().omit(h.query,"queue")})),h.promise=s.voiceQueueReport.getVoiceQueuesReport(h.query,y).$promise}function y(e){h.abandonedCalls=e||{count:0,rows:[]},h.refresh=!0}h.currentUser=d.getCurrentUser(),h.agents=p||[],h.dispositions=g.rows,h.abandonedCalls={count:0,rows:[]},h.showTooltip=!1,h.refresh=!0,h.userProfile=l,h.userProfileSection=c&&1==c.count?c.rows[0]:null,h.crudPermissions=d.parseCrudPermissions(h.userProfileSection?h.userProfileSection.crudPermissions:null),h.query={fields:"id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition",type:"inbound",queuecallerexitreason:"TIMEOUT,ABANDONED",sort:"-updatedAt",limit:10,page:1},h.getAbandonedCalls=b,h.refreshAbandonedCalls=function(){h.showTooltip=!1,b()},h.assignTo=function(e,t){e&&s.voiceQueueReport.update({id:e.id,lastAssignedTo:t?t.name:null,assigned:!!t}).$promise.catch((function(e){console.log(e)}))},h.dispose=function(e){n.show({controller:"DisposeAbandonedCallDialogController",controllerAs:"vm",templateUrl:Xa,parent:angular.element(a.body),targetEvent:e,locals:{dispositions:h.dispositions,call:e}}).then((function(t){if(t){const n={id:e.id,disposition:t.firstLevel||null,secondDisposition:t.secondLevel||null,thirdDisposition:t.thirdLevel||null};s.voiceQueueReport.update(n).$promise.catch((function(e){console.log(e)}))}}))},h.onSaveVoiceQueueReport=function(e){e&&h.queuesMap&&"inbound"===h.query.type&&h.queuesMap[e.queue]&&(h.showTooltip=!0)},h.onUpdateVoiceQueueReport=function(e){if(e){const t=u().findIndex(h.abandonedCalls.rows,["id",e.id]);t>=0&&u().merge(h.abandonedCalls.rows[t],e)}},f.onWithoutApply("voiceQueueReport:save",h.onSaveVoiceQueueReport),f.on("voiceQueueReport:update",h.onUpdateVoiceQueueReport),function(){let e=r.localStorage.getItem("motion2.realtime.abandoned.voice.abandonedCalls:"+h.currentUser.id);if(e)e=JSON.parse(e),e&&e.query&&(h.query=u().merge(e.query,u().omit(h.query,["sort","limit","page"])),h.query=u().omit(h.query,"filter"));else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()};h.query.createdAt=e}d.hasRole("admin")?s.user.getQueues({id:d.getCurrentUser().id,fields:"id,name",channel:"voice",type:"inbound",nolimit:!0}).$promise.then((function(e){h.queues=e||{count:0,rows:[]},h.queuesMap=u().mapValues(u().keyBy(h.queues.rows,"name"),"name")})).catch((function(e){console.error(e)})).finally((function(){h.quickFilters=_(),b()})):s.userProfile.getResources({id:h.currentUser.userProfileId,section:"VoiceQueues",channel:"voice",type:"inbound",sort:"-updatedAt",nolimit:!0}).$promise.then((function(e){h.queues=e||{count:0,rows:[]},h.queuesMap=u().mapValues(u().keyBy(h.queues.rows,"name"),"name")})).catch((function(e){console.error(e)})).finally((function(){h.quickFilters=_(),b()}))}(),e.$on("$destroy",(function(){f.removeAllListeners("voiceQueueReport:save"),f.removeAllListeners("voiceQueueReport:update")}))}gl.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.contactmanager",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.contactmanager.contacts"]).config(gl).controller("CompaniesController",Ls).controller("CreateOrEditCompanyDialogController",Us).controller("CompanyController",Fs).controller("CreateOrEditGlobalCustomFieldDialogController",Ys).controller("GlobalCustomFieldsController",Gs).controller("CreateOrEditListDialogController",Ws).controller("ListagentaddController",zs).controller("ListCustomFieldsController",Xs).controller("CreateOrEditCustomFieldDialogController",el).controller("ListController",al).controller("ListDispositionsController",il).controller("ListsController",cl),hl.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","userProfile","userProfileSection","Auth","socket","toasty","agents","dispositions"];const _l=hl;function bl(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"voice",direction:"inbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}bl.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const yl=bl;function vl(e,t,n,a,o,r){const i=this;i.calls=o||{rows:[],count:0},i.query={limit:10,page:1},i.channelStatus=r.channelStatusOut,a.on("voice_outbound_channel:save",i.onSave),a.on("voice_outbound_channel:remove",i.onRemove),e.$on("$destroy",(function(){a.removeAllListeners("voice_outbound_channel:save"),a.removeAllListeners("voice_outbound_channel:remove")})),i.onSave=function(e){const t=u().find(i.calls.rows,{channel:e.channel});e.channelstatedesc=e.dialstatus?"up":"ring",t?u().merge(t,e):e.channel&&i.calls.rows.push(e)},i.onRemove=function(e){const n=u().findIndex(i.calls.rows,{channel:e.channel});n>=0&&(i.calls.rows[n].status="hangup"),t((function(){i.calls.rows.splice(n,1)}),5e3)}}vl.$inject=["$scope","$timeout","api","socket","rpcCalls","helperClasses"];const Al=vl;function Sl(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;p.currentUser=m.getCurrentUser(),p.queues=o?u().keyBy(o.rows?o.rows:[],"name"):{},p.rpcVoiceQueuesChannelsTmp=r?u().keyBy(r.rows?u().filter(r.rows,{type:"inbound"}):[],"uniqueid"):{},p.rpcVoiceQueuesChannels={},p.userProfile=d,p.userProfileSection=f&&1==f.count?f.rows[0]:null,p.crudPermissions=m.parseCrudPermissions(p.userProfileSection?p.userProfileSection.crudPermissions:null),p.queryChannels={limit:10,page:1},p.getAvailableAgents=function(){p.availableAgents=null,i.rpc.getAgents().$promise.then((function(e){const t=[],n=e?e.rows:[],o=u().filter(n,{online:!0,voicePause:!1,voiceStatus:"idle"});for(let e=0;e<o.length;e++){const n=u().find(a.rows,["id",o[e].id]);n&&t.push(n)}p.availableAgents=t})).catch((function(e){c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},p.getSize=function(e){return u().size(e)},p.$onInit=function(){u().forIn(p.rpcVoiceQueuesChannelsTmp,(function(e,t){u().find(p.queues,{name:e.name})&&(p.rpcVoiceQueuesChannels[t]=e)}))},p.onSave=function(e){"inbound"===e.type&&u().find(p.queues,{name:e.name})&&(p.rpcVoiceQueuesChannels[e.uniqueid]=e)},p.onRemove=function(e){p.rpcVoiceQueuesChannels[e.uniqueid]&&delete p.rpcVoiceQueuesChannels[e.uniqueid]},p.hangup=function(e){return i.rpc.getVoiceQueuesChannelHangup({uniqueid:e}).$promise.then((function(t){c.success({title:"Channel "+e+" properly hangup!",msg:t.message||""})})).catch((function(e){c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},p.redirectToAgent=function(e,t,n){return i.rpc.getVoiceQueuesChannelRedirect({uniqueid:e,exten:t,context:n}).$promise.then((function(t){c.success({title:"Channel "+e+" properly redirect!",msg:t.message||""})})).catch((function(e){c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},p.redirectToNumber=function(e,t){const a=n.prompt().title("Which number do you want transfer the call to?").placeholder("Number").targetEvent(e).ok("Ok").cancel("Cancel");return n.show(a).then((function(e){return i.rpc.getVoiceQueuesChannelRedirect({uniqueid:t,exten:e}).$promise})).then((function(e){c.success({title:"Channel "+t+" properly redirect!",msg:e.message||""})})).catch((function(e){e&&c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},s.on("voice_queue_channel:save",p.onSave),s.on("voice_queue_channel:remove",p.onRemove),e.$on("$destroy",(function(){s.removeAllListeners("voice_queue_channel:save"),s.removeAllListeners("voice_queue_channel:remove")}))}Sl.$inject=["$scope","$timeout","$mdDialog","agents","queues","rpcVoiceQueuesChannels","api","socket","helperClasses","toasty","userProfile","userProfileSection","Auth"];const wl=Sl;function El(e,t,n,a,o,r,i,s,l,c){const d=this,f=["total","answered","unmanaged","abandoned","sumHoldTime","sumDuration","sumBillable"];function m(){u().forIn(d.queues,(function(e,t){d.rpcQueues[t]&&u().merge(e,u().pick(d.rpcQueues[t],f))}))}function p(e){d.count=e.count,d.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},m()}d.count=a.count,d.queues=a?u().keyBy(a.rows?a.rows:[],"id"):{},d.rpcQueues=o?u().keyBy(o.rows?o.rows:[],"id"):{},d.userProfile=s,d.userProfileSection=l&&1==l.count?l.rows[0]:null,d.crudPermissions=c.parseCrudPermissions(d.userProfileSection?d.userProfileSection.crudPermissions:null),c.hasRole("admin")?d.query={type:"inbound",fields:"id,name",sort:"-updatedAt",limit:10,page:1}:d.query={id:c.getCurrentUser().id,channel:"voice",type:"inbound",fields:"id,name",sort:"-updatedAt",limit:10,page:1},d.success=p,d.getQueues=function(){d.query.offset=(d.query.page-1)*d.query.limit,c.hasRole("admin")?d.promise=r.voiceQueue.get(d.query,p).$promise:(d.query.id=d.userProfile.id,d.query.section="VoiceQueues",d.promise=r.userProfile.getResources(d.query,p).$promise)},d.onSave=function(e){d.queues[e.id]&&u().merge(d.queues[e.id],u().pick(e,f))},d.$onInit=m,i.onWithoutApply("voice_queue:save",d.onSave),d.interval=n((function(){}),999),e.$on("$destroy",(function(){i.removeAllListeners("voice_queue:save"),d.interval&&n.cancel(d.interval)}))}El.$inject=["$scope","$timeout","$interval","queues","rpcQueues","api","socket","userProfile","userProfileSection","Auth"];const Cl=El,Tl=n.p+"templates/main/apps/voice/views/voiceQueues/create/dialog.html/dialog.html",Il=n.p+"templates/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd.html";function kl(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.voiceQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].VoiceQueueId].paused++,g.queues[e[t].rows[n].VoiceQueueId].loggedInDb++,g.queues[e[t].rows[n].VoiceQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].VoiceQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"inbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"voice",type:"inbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.voiceQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="VoiceQueues",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditVoiceQueue=function(e,t){n.show({controller:"CreateOrEditVoiceQueueDialogController",controllerAs:"vm",templateUrl:Tl,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{voiceQueue:t,voiceQueues:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.agentAdd=function(e,t){n.show({controller:"VoiceQueueagentaddController",controllerAs:"vm",templateUrl:Il,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{voiceQueue:t,voiceQueues:g.queues?g.queues.rows:[],realtime:!0,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.voiceQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&u().merge(g.queues[e.id],u().pick(e,h))},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.VoiceQueueId]&&(g.queues[e.VoiceQueueId].loggedInDb+=1,g.queues[e.VoiceQueueId].agents[e.UserId]=e.VoiceQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.VoiceQueueId]&&g.queues[e.VoiceQueueId].loggedInDb>0&&(g.queues[e.VoiceQueueId].loggedInDb-=1,delete g.queues[e.VoiceQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.onWithoutApply("voice_queue:save",g.onSave),g.interval=r((function(){}),999),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("voice_queue:save"),g.interval&&r.cancel(g.interval),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}kl.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const Dl=kl;const xl=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function Ml(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.voice.realtime.agents":a.selectedTab=0;break;case"app.voice.realtime.telephones":a.selectedTab=1;break;case"app.voice.realtime.trunks":a.selectedTab=2;break;case"app.voice.realtime.queues":a.selectedTab=3;break;case"app.voice.realtime.queue_calls":a.selectedTab=4;break;case"app.voice.realtime.abandonedcalls":a.selectedTab=5;break;case"app.voice.realtime.queue_params":a.selectedTab=6;break;case"app.voice.realtime.outbound_calls":a.selectedTab=7;break;default:a.selectedTab=0,t.go("app.voice.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.voice.realtime.agents");break;case 1:t.go("app.voice.realtime.telephones");break;case 2:t.go("app.voice.realtime.trunks");break;case 3:t.go("app.voice.realtime.queues");break;case 4:t.go("app.voice.realtime.queue_calls");break;case 5:t.go("app.voice.realtime.abandonedcalls");break;case 6:t.go("app.voice.realtime.queue_params");break;case 7:t.go("app.voice.realtime.outbound_calls");break;default:t.go("app.voice.realtime.agents")}}))}Ml.$inject=["$scope","$state","socket"];const Pl=Ml;function Ol(e,t,n,a,o,r,i,s,l,c,d){const f=this,m=["fullname","internal","state","status"];function p(){u().forIn(f.telephones,(function(e,t){f.rpcTelephones[t]&&u().merge(e,u().pick(f.rpcTelephones[t],m))}))}function g(e){f.telephones=e?u().keyBy(e.rows?e.rows:[],"id"):{},p()}f.count=a.count,f.attributes=["fullname","internal","state","status","address"],f.telephones=a?u().keyBy(a.rows?a.rows:[],"id"):{},f.rpcTelephones=o?u().keyBy(o.rows?o.rows:[],"id"):{},f.userProfile=l,f.userProfileSection=c&&1==c.count?c.rows[0]:null,f.crudPermissions=d.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.query={fields:"id,fullname,internal",role:"telephone",sort:"-updatedAt",limit:10,page:1},f.statusClass=s.status,f.stateClass=s.state,f.success=g,f.$onInit=p,f.showInfo=function(e){n.show(n.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},f.getTelephones=function(){f.query.offset=(f.query.page-1)*f.query.limit,d.hasRole("admin")?f.promise=r.user.get(f.query,g).$promise:(f.query.id=f.userProfile.id,f.query.section="Telephones",f.promise=r.userProfile.getResources(f.query,g).$promise)},f.onSave=function(e){f.telephones[e.id]&&u().merge(f.telephones[e.id],u().pick(e,m))},i.on("telephone:save",f.onSave),e.$on("$destroy",(function(){i.removeAllListeners("telephone:save")}))}Ol.$inject=["$scope","$timeout","$mdDialog","telephones","rpcTelephones","api","socket","helperClasses","userProfile","userProfileSection","Auth"];const Rl=Ol;function Nl(e,t,n,a,o,r,i,s,l,c,d,f){const m=this,p=["status","stateRegistry","registry","host","port","internal","state","status"];function g(){let e;for(let t=0;t<m.trunks.length;t+=1)e=u().findIndex(m.rpcTrunks,["id",m.trunks[t].id]),e>=0&&u().merge(m.trunks[t],u().pick(m.rpcTrunks[e],p))}function h(e,t,n){t>=0&&u().merge(e[t],u().pick(n,p))}function _(e){m.count=e.count,m.trunks=e&&e.rows?e.rows:[],g()}m.currentUser=f.getCurrentUser(),m.count=a.count,m.trunks=a?a.rows:[],m.rpcTrunks=o&&o.rows?o.rows:[],m.query={fields:"id,name",active:!0,sort:"-updatedAt",limit:10,page:1},m.statusClass=s.status,m.stateClass=s.state,m.userProfile=c,m.userProfileSection=d&&1==d.count?d.rows[0]:null,m.crudPermissions=f.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.success=_,m.$onInit=g,m.showInfo=function(e){n.show(n.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},m.getTrunks=function(){m.query.offset=(m.query.page-1)*m.query.limit,f.hasRole("admin")?m.promise=r.trunk.get(m.query,_).$promise:(m.query.id=m.userProfile.id,m.query.section="Trunks",m.promise=r.userProfile.getResources(m.query,_).$promise)},m.goToTrunk=function(e,t){l.go("app.tools.trunks.edit",{id:t.id})},m.onSave=function(e){const t=u().findIndex(m.trunks,["id",e.id]),n=u().findIndex(m.rpcTrunks,["id",e.id]);h(m.trunks,t,e),h(m.rpcTrunks,n,e)},i.on("trunk:save",m.onSave),e.$on("$destroy",(function(){i.removeAllListeners("trunk:save")}))}Nl.$inject=["$scope","$timeout","$mdDialog","trunks","rpcTrunks","api","socket","helperClasses","$state","userProfile","userProfileSection","Auth"];const Ll=Nl,$l=n.p+"templates/main/apps/voice/views/realtime/realtime.html/realtime.html",Ul=n.p+"templates/main/apps/voice/views/realtime/agents/view.html/view.html",jl=n.p+"templates/main/apps/voice/views/realtime/telephones/view.html/view.html",Fl=n.p+"templates/main/apps/voice/views/realtime/trunks/view.html/view.html",ql=n.p+"templates/main/apps/voice/views/realtime/queues/view.html/view.html",Yl=n.p+"templates/main/apps/voice/views/realtime/queue_calls/view.html/view.html",Hl=n.p+"templates/main/apps/voice/views/realtime/abandonedcalls/view.html/view.html",Bl=n.p+"templates/main/apps/voice/views/realtime/queue_params/view.html/view.html",Gl=n.p+"templates/main/apps/voice/views/realtime/outbound_calls/view.html/view.html";function Vl(e){e.state("app.voice.realtime",{url:"/realtime",views:{"content@app":{templateUrl:$l,controller:"VoiceRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:411})}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.agents",{url:"/agents",controller:"AgentsVoiceRealtimeController as vm",templateUrl:Ul,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.telephones",{url:"/telephones",controller:"TelephonesVoiceRealtimeController as vm",templateUrl:jl,resolve:{telephones:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,fullname,userpic,internal",role:"telephone",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Telephones",fields:"id,fullname,userpic,internal",role:"telephone",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:203})}],rpcTelephones:["apiResolver",function(e){return e.resolve("rpc@getTelephones")}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.trunks",{url:"/trunks",controller:"TrunksVoiceRealtimeController as vm",templateUrl:Fl,resolve:{trunks:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("trunk@get",{fields:"id,name",active:!0,sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Trunks",fields:"id,name",active:!0,sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1011})}],rpcTrunks:["apiResolver",function(e){return e.resolve("rpc@getTrunks")}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.queues",{url:"/queues",controller:"QueuesVoiceRealtimeController as vm",templateUrl:ql,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"inbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",channel:"voice",type:"inbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:401})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueues")}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.queue_calls",{url:"/queue_calls",controller:"QueueCallsVoiceRealtimeController as vm",templateUrl:Yl,resolve:{agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,role,context",role:"agent",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,role,context",role:"agent",nolimit:!0})}],queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"inbound",sort:"-updatedAt",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",channel:"voice",type:"inbound",sort:"-updatedAt",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:401})}],rpcVoiceQueuesChannels:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueuesChannels")}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.abandonedcalls",{url:"/abandonedcalls",controller:"AbandonedCallsVoiceRealtimeController as vm",templateUrl:Hl,resolve:{agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,role,context",role:"agent",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,role,context",role:"agent",nolimit:!0})}],queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"inbound",sort:"-updatedAt",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",channel:"voice",type:"inbound",sort:"-updatedAt",nolimit:!0})}],dispositions:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("disposition@get",{fields:"createdAt,updatedAt,id,name,level,ParentId",sort:"name",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Dispositions",fields:"createdAt,updatedAt,id,name",sort:"name",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:401})}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.queue_params",{url:"/queue_params",controller:"QueueParamsVoiceRealtimeController as vm",templateUrl:Bl,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"inbound",fields:"id,name",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",channel:"voice",type:"inbound",sort:"-updatedAt",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:401})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueues")}]},authenticate:!0,permissionId:411}).state("app.voice.realtime.outbound_calls",{url:"/outbound_calls",controller:"OutboundCallsVoiceRealtimeController as vm",templateUrl:Gl,resolve:{rpcCalls:["apiResolver",function(e){return e.resolve("rpc@getOutboundChannels")}]},authenticate:!0,permissionId:411})}Vl.$inject=["$stateProvider"],angular.module("app.voice.realtime",[]).config(Vl).controller("AbandonedCallsVoiceRealtimeController",_l).controller("AgentsVoiceRealtimeController",yl).controller("OutboundCallsVoiceRealtimeController",Al).controller("QueueCallsVoiceRealtimeController",wl).controller("QueueParamsVoiceRealtimeController",Cl).controller("QueuesVoiceRealtimeController",Dl).factory("helperClasses",xl).controller("VoiceRealtimeController",Pl).controller("TelephonesVoiceRealtimeController",Rl).controller("TrunksVoiceRealtimeController",Ll);const Wl=n.p+"templates/main/apps/voice/views/chanSpies/create/dialog.html/dialog.html";function Ql(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.chanSpies=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="chanSpies",b.listOrder="",b.listOrderAsc=null,b.selectedChanSpies=[],b.query={fields:"createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description",sort:"-updatedAt",limit:10,page:1},b.arrayoptions=u().keyBy([{option:"b: Only spy on channels involved in a bridged call.",value:"'b'"},{option:"B: Instead of whispering on a single channel barge in on both channels involved in the call.",value:"'B'"},{option:"E: Exit when the spied-on channel hangs up.",value:"'E'"},{option:"o: Only listen to audio coming from this channel.",value:"'o'"},{option:"q: Don't play a beep when beginning to spy on a channel, or speak the selected channel name.",value:"'q'"},{option:"s: Skip the playback of the channel type (i.e. SIP, IAX, etc) when speaking the selected channel name.",value:"'s'"},{option:"S: Stop when no more channels are left to spy on.",value:"'S'"},{option:"w: Enable whisper mode, so the spying channel can talk to the spied-on channel.",value:"'w'"},{option:"W: Enable private whisper mode, so the spying channel can talk to the spied-on channel but cannot listen to that channel.",value:"'W'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayrecordingFormat=u().keyBy([{option:"wav",value:"'wav'"},{option:"gsm",value:"'gsm'"},{option:"wav49",value:"'WAV'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editdialog=function(e,t){o.show({controller:"CreateOrEditchanSpyDialogController",controllerAs:"vm",templateUrl:Wl,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{chanSpy:e,chanSpies:b.chanSpies.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("chanSpy")+"?").htmlContent("<b>"+(e.name||"chanSpy")+"</b> will be deleted.").ariaLabel("delete chanSpy").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getChanSpies=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceChanSpy.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ChanSpies",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditchanSpy=function(e,t){o.show({controller:"CreateOrEditchanSpyDialogController",controllerAs:"vm",templateUrl:Wl,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{chanSpy:t,chanSpies:b.chanSpies.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deletechanSpy=S,b.exportSelectedChanSpies=function(){const e=angular.copy(b.selectedChanSpies);return b.selectedChanSpies=[],e},b.deleteSelectedChanSpies=function(e){const t=o.confirm().title("Are you sure want to delete the selected chanSpies?").htmlContent("<b>"+b.selectedChanSpies.length+" selected</b> will be deleted.").ariaLabel("delete chanSpys").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedChanSpies.forEach((function(e){S(e)})),b.selectedChanSpies=[]}))},b.deselectChanSpies=function(){b.selectedChanSpies=[]},b.selectAllChanSpies=function(){b.selectedChanSpies=b.chanSpies.rows};let y=!0,v=1;function A(e){b.chanSpies=e||{count:0,rows:[]}}function S(e){f.voiceChanSpy.delete({id:e.id}).$promise.then((function(){u().remove(b.chanSpies.rows,{id:e.id}),b.chanSpies.count-=1,b.chanSpies.rows.length||b.getChanSpies(),p.success({title:u().startCase("chanSpy")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceChanSpy"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceChanSpy",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getChanSpies())}))}Ql.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","chanSpies","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const zl=Ql;function Kl(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_CHANSPY",g.chanSpy=angular.copy(l),g.chanSpies=s,g.newchanSpy=!1,g.chanSpy||(g.chanSpy={recordingFormat:"wav"},g.title="VOICE.NEW_CHANSPY",g.newchanSpy=!0),g.addNewchanSpy=function(){g.errors=[],c.voiceChanSpy.save(g.chanSpy).$promise.then((function(e){g.chanSpies.unshift(e.toJSON()),i.success({title:"chanSpy properly created",msg:g.chanSpy.name?g.chanSpy.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceChanSpy.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceChanSpy.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.savechanSpy=function(){g.errors=[],c.voiceChanSpy.update({id:g.chanSpy.id},g.chanSpy).$promise.then((function(e){const t=u().find(g.chanSpies,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"chanSpy properly saved!",msg:g.chanSpy.name?g.chanSpy.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceChanSpy.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceChanSpy.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deletechanSpy=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The chanSpy will be deleted.").ariaLabel("Delete chanSpy").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceChanSpy.delete({id:g.chanSpy.id}).$promise.then((function(){u().remove(g.chanSpies,{id:g.chanSpy.id}),i.success({title:"chanSpy properly deleted!",msg:(g.chanSpy.name||"chanSpy")+" has been deleted!"}),h(g.chanSpy)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceChanSpy.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceChanSpy.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Kl.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","chanSpies","chanSpy","api","Auth","license","setting","crudPermissions"];const Jl=Kl,Xl=n.p+"templates/main/apps/voice/views/contexts/create/dialog.html/dialog.html";function Zl(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.contexts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="contexts",b.listOrder="",b.listOrderAsc=null,b.selectedContexts=[],b.query={fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",defaultEntry:!1,limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditContextDialogController",controllerAs:"vm",templateUrl:Xl,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{context:e,contexts:b.contexts.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("context")+"?").htmlContent("<b>"+(e.name||"context")+"</b> will be deleted.").ariaLabel("delete context").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getContexts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceContext.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Contexts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditContext=function(e,t){o.show({controller:"CreateOrEditContextDialogController",controllerAs:"vm",templateUrl:Xl,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{context:t,contexts:b.contexts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteContext=S,b.exportSelectedContexts=function(){const e=angular.copy(b.selectedContexts);return b.selectedContexts=[],e},b.deleteSelectedContexts=function(e){const t=o.confirm().title("Are you sure want to delete the selected contexts?").htmlContent("<b>"+b.selectedContexts.length+" selected</b> will be deleted.").ariaLabel("delete Contexts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedContexts.forEach((function(e){S(e)})),b.selectedContexts=[]}))},b.deselectContexts=function(){b.selectedContexts=[]},b.selectAllContexts=function(){b.selectedContexts=b.contexts.rows};let y=!0,v=1;function A(e){b.contexts=e||{count:0,rows:[]}}function S(e){f.voiceContext.delete({id:e.id}).$promise.then((function(){u().remove(b.contexts.rows,{id:e.id}),b.contexts.count-=1,b.contexts.rows.length||b.getContexts(),p.success({title:u().startCase("Context")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceContext"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceContext",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getContexts())}))}Zl.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","contexts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const ec=Zl;function tc(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_CONTEXT",g.context=angular.copy(l),g.contexts=s,g.newContext=!1,g.context||(g.context={},g.title="VOICE.NEW_CONTEXT",g.newContext=!0),g.addNewContext=function(){g.errors=[],c.voiceContext.save(g.context).$promise.then((function(e){g.contexts.unshift(e.toJSON()),i.success({title:"Context properly created",msg:g.context.name?g.context.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceContext.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceContext.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveContext=function(){g.errors=[],c.voiceContext.update({id:g.context.id},g.context).$promise.then((function(e){const t=u().find(g.contexts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Context properly saved!",msg:g.context.name?g.context.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceContext.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceContext.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteContext=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The context will be deleted.").ariaLabel("Delete Context").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceContext.delete({id:g.context.id}).$promise.then((function(){u().remove(g.contexts,{id:g.context.id}),i.success({title:"Context properly deleted!",msg:(g.context.name||"context")+" has been deleted!"}),h(g.context)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceContext.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceContext.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}tc.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","contexts","context","api","Auth","license","setting","crudPermissions"];const nc=tc;function ac(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_INBOUNDROUTE",g.inboundroute=angular.copy(l),g.inboundroutes=s,g.newInboundRoute=!1,g.inboundroute||(g.inboundroute={appdata:"Inbound Call",type:"inbound",context:"from-voip-provider"},g.title="VOICE.NEW_INBOUNDROUTE",g.newInboundRoute=!0),g.addNewInboundRoute=function(){g.errors=[],c.voiceExtension.save(g.inboundroute).$promise.then((function(e){g.inboundroutes.unshift(e.toJSON()),i.success({title:"InboundRoute properly created",msg:g.inboundroute.name?g.inboundroute.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveInboundRoute=function(){g.errors=[],c.voiceExtension.update({id:g.inboundroute.id},g.inboundroute).$promise.then((function(e){const t=u().find(g.inboundroutes,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"InboundRoute properly saved!",msg:g.inboundroute.name?g.inboundroute.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteInboundRoute=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The inboundroute will be deleted.").ariaLabel("Delete InboundRoute").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceExtension.delete({id:g.inboundroute.id}).$promise.then((function(){u().remove(g.inboundroutes,{id:g.inboundroute.id}),i.success({title:"InboundRoute properly deleted!",msg:(g.inboundroute.name||"inboundroute")+" has been deleted!"}),h(g.inboundroute)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){g.contexts=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){g.contexts=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.contexts,{id:e.resourceId})}));let n=null;if(g.inboundroute&&(n=u().find(g.contexts,{name:g.inboundroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(g.contexts,{id:n.id});e.canSelect=!1,t.push(e)}g.contexts=t})):c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){g.contexts=e.rows||[]}))})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}ac.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","inboundroutes","inboundroute","api","Auth","license","setting","crudPermissions"];const oc=ac,rc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog.html",ic=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog.html",sc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog.html",lc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html/dialog.html",cc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog.html",uc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog.html",dc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog.html",fc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html/dialog.html",mc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog.html",pc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog.html",gc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html/dialog.html",hc=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog.html",_c=n.p+"templates/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog.html";yc.$inject=["api","$mdDialog","$document","toasty","Auth"];const bc={agi:rc,custom:ic,dial:sc,externaldial:lc,goto:cc,hangup:uc,internaldial:dc,interval:fc,playback:mc,queue:pc,ringgroup:gc,set:hc,voicemail:_c};function yc(e,t,n,a,o){const r=this;function i(e,o){if(r.inboundrouteApps.rows.length){const i=r.inboundrouteApps.rows[o]?r.inboundrouteApps.rows[o]:r.inboundrouteApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditInboundApp${l}DialogController`,controllerAs:"vm",templateUrl:bc[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{inboundrouteApp:i,inboundroute:r.inboundroute,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.inboundrouteApps.rows[o]=e:r.inboundrouteApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){const t=["queue","playback"];let n=2,a=[];a.push({type:"inbound",app:"Set",appdata:"CDR(type)=inbound",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:n++,VoiceExtensionId:r.inboundroute.id}),a.push({type:"inbound",app:"Set",appdata:"XCALLY-MOTION-ANSWER=0",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:n++,VoiceExtensionId:r.inboundroute.id}),a.push({type:"inbound",app:"Set",appdata:"XCALLY-MOTION-PROGRESS=0",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:n++,VoiceExtensionId:r.inboundroute.id}),a.push({type:"inbound",app:"Set",appdata:"MONITOR_OPTIONS=ab",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:n++,VoiceExtensionId:r.inboundroute.id});for(let e=0,o=0;e<r.inboundrouteApps.rows.length;e++,o=0){const i=r.inboundrouteApps.rows[e],s=[],l=[];i.intervals="*,*,*,*"!==i.interval?[i.interval]:i.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:i.IntervalId}),"interval"):[],i.context=r.inboundroute.context,i.exten=r.inboundroute.exten,i.type&&(i.type=i.type.toLowerCase()),void 0!==i.answer&&t.includes(i.app.toLowerCase())&&"custom"!==i.appType&&(i.answer?(s.push({type:i.type.toLowerCase(),app:"ExecIf",appdata:"$[${XCALLY-MOTION-ANSWER}=0]?Answer",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.inboundroute.id}),s.push({type:i.type.toLowerCase(),app:"Set",appdata:"XCALLY-MOTION-ANSWER=1",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.inboundroute.id})):(s.push({type:i.type.toLowerCase(),app:"ExecIf",appdata:"$[${XCALLY-MOTION-PROGRESS}=0]?Progress",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.inboundroute.id}),s.push({type:i.type.toLowerCase(),app:"Set",appdata:"XCALLY-MOTION-PROGRESS=1",context:r.inboundroute.context,exten:r.inboundroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.inboundroute.id})));for(let e=0;e<i.intervals.length;e++){const t=n+i.intervals.length,a=e===i.intervals.length-1?n+s.length+l.length+2:n+e+1;s.splice(e,0,{type:"inbound",app:"GotoIfTime",appdata:i.intervals[e]+"?"+r.inboundroute.context+",${EXTEN},"+t+":"+r.inboundroute.context+",${EXTEN},"+a,exten:r.inboundroute.exten,context:r.inboundroute.context,priority:n+e,VoiceExtensionId:r.inboundroute.id})}i.priority=s.length?u().last(s).priority+1:n,n=(l.length?u().last(l).priority:i.priority)+1,a=u().concat(a,s,[i],l)}a.push({type:"inbound",app:"Hangup",exten:r.inboundroute.exten,context:r.inboundroute.context,priority:n,VoiceExtensionId:r.inboundroute.id}),e.voiceExtension.addApplications({id:r.inboundroute.id},u().sortBy(a,"priority")).$promise.then((function(e){r.inboundrouteApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.inboundrouteApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.inboundroute={},r.inboundrouteApps={count:0,rows:[]},r.selectedInboundRouteApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",types:["always","custom","list"],fields:[],isApp:!1},{app:"Queue",appType:"queue",context:"from-voip-provider",type:"Inbound",appdata:",xX,,,300,,,,,",icon:"icon-apps",options:"xX",interval:"*,*,*,*",answer:!0,isApp:!0,extraApi:[{name:"sounds",field:{name:"sound",key:"save_name",prefix:"/var/opt/motion2/server/files/sounds/converted/"},route:"sound",filters:{fields:"id,name,save_name",sort:"name",nolimit:!0},permissions:{section:1007}},{name:"queues",field:{name:"queue",key:"name"},route:"voiceQueue",filters:{type:"inbound",fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:401}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",required:!0,param:0},{title:"Options",name:"options",type:"text",param:1},{title:"Url",name:"URL",type:"text",param:2},{title:"Announce_Overrides",name:"sound",type:"apiselect",values:"sounds",value:"'/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}'",option:"sound.name",defaultValues:[{value:"''",option:"None"}],param:3},{title:"Timeout",name:"timeout",type:"number",min:0,param:4},{title:"Agi",name:"agi",type:"text",param:5},{title:"Macro",name:"macro",type:"text",param:6},{title:"GoSub",name:"gosub",type:"text",param:7},{title:"Rule",name:"rule",type:"text",param:8},{title:"Position",name:"position",type:"number",min:0,param:9},{title:"Answer",name:"answer",type:"switch",general:!0}]},{app:"Playback",appType:"playback",context:"from-voip-provider",type:"Inbound",icon:"icon-apps",interval:"*,*,*,*",answer:!0,isApp:!0,extraApi:[{name:"sounds",field:{name:"sound",key:"save_name",prefix:"/var/opt/motion2/server/files/sounds/converted/"},route:"sound",filters:{fields:"id,name,save_name",sort:"name",nolimit:!0},permissions:{section:1007}}],fields:[{title:"Audio_Files",name:"appdata",type:"apiselect",values:"sounds",value:"'/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}'",option:"appdata.name",required:!0,param:0},{title:"Options",name:"options",type:"text",param:1},{title:"Answer",name:"answer",type:"switch",general:!0}]},{app:"Dial",appType:"dial",context:"from-voip-provider",type:"Inbound",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,fields:[{title:"Technology/Resource",name:"tech",type:"text",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"Dial",appType:"internalDial",context:"from-voip-provider",type:"Inbound",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,extraApi:[{name:"users",field:{name:"user",key:"name",prefix:"SIP/"},route:"user",filters:{fields:"id,name,role",sort:"name",nolimit:!0},permissions:{sections:[{id:202,role:"agent"},{id:203,role:"telephone"}]}}],fields:[{title:"User",name:"user",type:"apiselect",values:"users",value:"'SIP/{{user.name}}'",option:"user.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"Dial",appType:"externalDial",context:"from-voip-provider",type:"inbound",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,extraApi:[{name:"trunks",field:{name:"trunk",key:"name"},route:"trunk",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1011}}],fields:[{title:"Trunk",name:"trunk",type:"apiselect",values:"trunks",value:"trunk.name",option:"trunk.name",required:!0,param:0},{title:"Phone",name:"phone",required:!0,type:"text"},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"Dial",appType:"ringGroup",context:"from-voip-provider",type:"inbound",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,extraApi:[{name:"users",field:{name:"multipleUsers",key:"name",prefix:"SIP/"},route:"user",filters:{fields:"id,name,role",sort:"name",nolimit:!0},permissions:{sections:[{id:202,role:"agent"},{id:203,role:"telephone"}]}}],fields:[{title:"User",name:"multipleUsers",type:"apiselect",multiple:!0,values:"users",value:"'SIP/{{multipleUsers.name}}'",option:"multipleUsers.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"AGI",alias:"CallySquare",appType:"agi",context:"from-voip-provider",type:"inbound",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"projects",field:{name:"project",key:"name",prefix:"agi://127.0.0.1/square,"},route:"squareProject",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1103}}],fields:[{title:"Project",name:"project",type:"apiselect",values:"projects",value:"'agi://127.0.0.1/square,{{project.name}}'",option:"project.name",required:!0,param:0}]},{app:"goto",appType:"goTo",context:"from-voip-provider",type:"Inbound",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"contexts",field:{name:"context",key:"name"},route:"voiceContext",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:405}}],fields:[{title:"Context",name:"context",type:"apiselect",values:"contexts",value:"context.name",option:"context.name",required:!0,param:0},{title:"Extension",name:"extension",type:"text",required:!0,param:1},{title:"Priority",name:"priority",type:"text",required:!0,param:2}]},{app:"hangup",appType:"hangup",context:"from-voip-provider",type:"Inbound",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Hangup_Cause",name:"appdata",type:"select",param:0,values:[{option:"HANGUPCAUSE_1",value:"'1'"},{option:"HANGUPCAUSE_16",value:"'16'"},{option:"HANGUPCAUSE_17",value:"'17'"},{option:"HANGUPCAUSE_18",value:"'18'"},{option:"HANGUPCAUSE_21",value:"'21'"},{option:"HANGUPCAUSE_22",value:"'22'"},{option:"HANGUPCAUSE_27",value:"'27'"},{option:"HANGUPCAUSE_38",value:"'38'"},{option:"HANGUPCAUSE_41",value:"'41'"}],translate:!0,required:!0,general:!0}]},{app:"Set",appType:"set",context:"from-voip-provider",type:"Inbound",separator:"=",icon:"icon-apps",interval:"*,*,*,*",extraApi:[{name:"variables",field:{name:"name",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],isApp:!0,fields:[{title:"Variable",name:"name",type:"apiselect",values:"variables",value:"name.name",option:"name.name",required:!0,param:0},{title:"Value",name:"value",type:"text",required:!0,param:1}]},{app:null,appType:"custom",icon:"icon-apps",type:"Inbound",interval:"*,*,*,*",isApp:!0,fields:[{title:"Application_Name",name:"app",type:"text",required:!0,param:0},{title:"Arguments",name:"appdata",type:"text",param:1}]},{app:"Voicemail",appType:"voicemail",context:"from-voip-provider",icon:"icon-apps",type:"Inbound",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"voiceMails",field:{name:"voiceMail",key:"mailbox",suffix:"@from-voicemail"},route:"voiceMail",filters:{fields:"id,mailbox",sort:"mailbox",nolimit:!0},permissions:{section:406}}],fields:[{title:"Mailbox@Context",name:"voiceMail",type:"apiselect",values:"voiceMails",value:"'{{voiceMail.mailbox}}@from-voicemail'",option:"voiceMail.mailbox",required:!0,param:0},{title:"Options",name:"options",type:"text",param:1}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:"opt1"},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(){s()}},r.init=function(e,t){r.inboundroute=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.VoiceExtensionId=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getInboundRouteApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.inboundrouteApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getInboundRouteApps=function(){r.promise=e.voiceExtension.get(r.query,l).$promise},r.editInboundRouteApp=i,r.editInterval=function(e,a){if(r.inboundrouteApps.rows.length){const o=r.inboundrouteApps.rows[a]?r.inboundrouteApps.rows[a]:r.inboundrouteApps.rows[0];t.show({controller:"EditInboundAppintervalDialogController",controllerAs:"vm",templateUrl:fc,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteInboundRouteApp=function(e){u().remove(r.inboundrouteApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedInboundRouteApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedInboundRouteApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedInboundRouteApps.forEach((function(e){u().remove(r.inboundrouteApps.rows,{id:e.id})})),r.selectedInboundRouteApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const vc=yc;function Ac(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.agi=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agi.appdata)switch(l.agi.appType?l.agi.appType.toLowerCase():l.agi.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agi.appdata.split(",");l.agi.key=e[0],l.agi.language=e[1],l.agi.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agi.appdata.split(",");l.agi.projectId=e[0],l.agi.clientEmail=e[1],l.agi.privateKey=e[2],l.agi.language=e[3],l.agi.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agi.appdata.split(",");l.agi.accesskeyid=e[0],l.agi.secretaccesskey=e[1],l.agi.lexregion=e[2],l.agi.botname=e[3],l.agi.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agi.appdata.split(",");l.agi.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agi.text=e.slice(1,e.length).join(",")}break;case"message":l.agi.text=l.agi.appdata;break;case"set":l.agi.name=l.agi.appdata.split("=")[0],l.agi.value=l.agi.appdata.split("=")[1];break;case"agi":l.agi.project=l.agi.appdata;break;default:{const e=l.agi.appdata.split(",");l.agi.project=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.agi.type&&"outbound"===l.agi.type.toLowerCase()&&"outbounddial"===l.agi.appType.toLowerCase()&&(l.agi.prefix=l.agi.phone?l.agi.phone.split("$")[0]:void 0,l.agi.callerId=l.agi.callerID?"CALLERID(all)="+l.agi.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.agi.type&&"outbound"===l.agi.type.toLowerCase()&&"outboundDial"===l.agi.appType&&(l.agi.phone=o.cutdigits?(l.agi.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agi.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agi.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agi.options+="U(xcally-mixmonitor-context)"):l.agi.options=l.agi.options.replace("U(xcally-mixmonitor-context)",""));if(l.agi.appType&&"custom"===l.agi.appType);else switch((l.agi.app||l.agi.appType).toLowerCase()){case"set":l.agi.appdata=l.agi.name+"="+l.agi.value;break;case"custom":break;default:e[0]=l.agi.project,l.agi.appdata=e.join(",")}c(l.agi)},l.closeDialog=c,i.hasRole("admin")?r.squareProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.projects=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.squareProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.projects=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1103}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.projects,{id:e.resourceId})}));let n=null;if(l.agi&&(n=u().find(l.projects,{name:l.agi.project})),n&&!u().some(t,["id",n.id])){const e=u().find(l.projects,{id:n.id});e.canSelect=!1,t.push(e)}l.projects=t}))}else{const e=[];let t=null;l.agi&&(t=u().find(l.projects,{name:l.agi.project}));for(let n=0;n<l.projects.length;n++)t&&l.projects[n].id===t.id&&(l.projects[n].canSelect=!1,e.push(l.projects[n]));l.projects=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Ac.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Sc=Ac;function wc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.custom=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.custom.appdata)switch(l.custom.appType?l.custom.appType.toLowerCase():l.custom.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.custom.appdata.split(",");l.custom.key=e[0],l.custom.language=e[1],l.custom.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.custom.appdata.split(",");l.custom.projectId=e[0],l.custom.clientEmail=e[1],l.custom.privateKey=e[2],l.custom.language=e[3],l.custom.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.custom.appdata.split(",");l.custom.accesskeyid=e[0],l.custom.secretaccesskey=e[1],l.custom.lexregion=e[2],l.custom.botname=e[3],l.custom.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.custom.appdata.split(",");l.custom.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.custom.text=e.slice(1,e.length).join(",")}break;case"message":l.custom.text=l.custom.appdata;break;case"set":l.custom.name=l.custom.appdata.split("=")[0],l.custom.value=l.custom.appdata.split("=")[1];break;case"agi":l.custom.project=l.custom.appdata;break;default:{const e=l.custom.appdata.split(",");l.custom.app=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.custom.appdata=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.custom.type&&"outbound"===l.custom.type.toLowerCase()&&"outbounddial"===l.custom.appType.toLowerCase()&&(l.custom.prefix=l.custom.phone?l.custom.phone.split("$")[0]:void 0,l.custom.callerId=l.custom.callerID?"CALLERID(all)="+l.custom.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.custom.type&&"outbound"===l.custom.type.toLowerCase()&&"outboundDial"===l.custom.appType&&(l.custom.phone=o.cutdigits?(l.custom.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.custom.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.custom.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.custom.options+="U(xcally-mixmonitor-context)"):l.custom.options=l.custom.options.replace("U(xcally-mixmonitor-context)",""));if(l.custom.appType&&"custom"===l.custom.appType);else switch((l.custom.app||l.custom.appType).toLowerCase()){case"set":l.custom.appdata=l.custom.name+"="+l.custom.value;break;case"custom":break;default:e[0]=l.custom.app,e[1]=l.custom.appdata,l.custom.appdata=e.join(",")}c(l.custom)},l.closeDialog=c}wc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Ec=wc;function Cc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.dial=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dial.appdata)switch(l.dial.appType?l.dial.appType.toLowerCase():l.dial.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dial.appdata.split(",");l.dial.key=e[0],l.dial.language=e[1],l.dial.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dial.appdata.split(",");l.dial.projectId=e[0],l.dial.clientEmail=e[1],l.dial.privateKey=e[2],l.dial.language=e[3],l.dial.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dial.appdata.split(",");l.dial.accesskeyid=e[0],l.dial.secretaccesskey=e[1],l.dial.lexregion=e[2],l.dial.botname=e[3],l.dial.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dial.appdata.split(",");l.dial.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dial.text=e.slice(1,e.length).join(",")}break;case"message":l.dial.text=l.dial.appdata;break;case"set":l.dial.name=l.dial.appdata.split("=")[0],l.dial.value=l.dial.appdata.split("=")[1];break;case"agi":l.dial.project=l.dial.appdata;break;default:{const e=l.dial.appdata.split(",");l.dial.tech=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dial.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dial.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.dial.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}function c(t){e.hide(t)}l.dial.type&&"outbound"===l.dial.type.toLowerCase()&&"outbounddial"===l.dial.appType.toLowerCase()&&(l.dial.prefix=l.dial.phone?l.dial.phone.split("$")[0]:void 0,l.dial.callerId=l.dial.callerID?"CALLERID(all)="+l.dial.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.dial.type&&"outbound"===l.dial.type.toLowerCase()&&"outboundDial"===l.dial.appType&&(l.dial.phone=o.cutdigits?(l.dial.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dial.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dial.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dial.options+="U(xcally-mixmonitor-context)"):l.dial.options=l.dial.options.replace("U(xcally-mixmonitor-context)",""));if(l.dial.appType&&"custom"===l.dial.appType);else switch((l.dial.app||l.dial.appType).toLowerCase()){case"set":l.dial.appdata=l.dial.name+"="+l.dial.value;break;case"custom":break;default:e[0]=l.dial.tech,e[1]=l.dial.timeout,e[2]=l.dial.options,e[3]=l.dial.url,l.dial.appdata=e.join(",")}c(l.dial)},l.closeDialog=c}Cc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Tc=Cc;function Ic(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.externaldial=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.externaldial.appdata)switch(l.externaldial.appType?l.externaldial.appType.toLowerCase():l.externaldial.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.externaldial.appdata.split(",");l.externaldial.key=e[0],l.externaldial.language=e[1],l.externaldial.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.externaldial.appdata.split(",");l.externaldial.projectId=e[0],l.externaldial.clientEmail=e[1],l.externaldial.privateKey=e[2],l.externaldial.language=e[3],l.externaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.externaldial.appdata.split(",");l.externaldial.accesskeyid=e[0],l.externaldial.secretaccesskey=e[1],l.externaldial.lexregion=e[2],l.externaldial.botname=e[3],l.externaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.externaldial.appdata.split(",");l.externaldial.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.externaldial.text=e.slice(1,e.length).join(",")}break;case"message":l.externaldial.text=l.externaldial.appdata;break;case"set":l.externaldial.name=l.externaldial.appdata.split("=")[0],l.externaldial.value=l.externaldial.appdata.split("=")[1];break;case"agi":l.externaldial.project=l.externaldial.appdata;break;default:{const e=l.externaldial.appdata.split(",");l.externaldial.trunk=e[0].split("/")[1],l.externaldial.phone=e[0].split("/")[2],l.externaldial.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.externaldial.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.externaldial.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}function c(t){e.hide(t)}l.externaldial.type&&"outbound"===l.externaldial.type.toLowerCase()&&"outbounddial"===l.externaldial.appType.toLowerCase()&&(l.externaldial.prefix=l.externaldial.phone?l.externaldial.phone.split("$")[0]:void 0,l.externaldial.callerId=l.externaldial.callerID?"CALLERID(all)="+l.externaldial.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.externaldial.type&&"outbound"===l.externaldial.type.toLowerCase()&&"outboundDial"===l.externaldial.appType&&(l.externaldial.phone=o.cutdigits?(l.externaldial.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.externaldial.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.externaldial.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.externaldial.options+="U(xcally-mixmonitor-context)"):l.externaldial.options=l.externaldial.options.replace("U(xcally-mixmonitor-context)",""));if(l.externaldial.appType&&"custom"===l.externaldial.appType);else switch((l.externaldial.app||l.externaldial.appType).toLowerCase()){case"set":l.externaldial.appdata=l.externaldial.name+"="+l.externaldial.value;break;case"custom":break;default:e[0]=["SIP",l.externaldial.trunk,l.externaldial.phone].join("/"),e[1]=l.externaldial.timeout,e[2]=l.externaldial.options,e[3]=l.externaldial.url,l.externaldial.appdata=e.join(",")}c(l.externaldial)},l.closeDialog=c,i.hasRole("admin")?r.trunk.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.trunks=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.trunk.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.trunks=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.trunks,{id:e.resourceId})}));let n=null;if(l.externaldial&&(n=u().find(l.trunks,{name:l.externaldial.trunk})),n&&!u().some(t,["id",n.id])){const e=u().find(l.trunks,{id:n.id});e.canSelect=!1,t.push(e)}l.trunks=t}))}else{const e=[];let t=null;l.externaldial&&(t=u().find(l.trunks,{name:l.externaldial.trunk}));for(let n=0;n<l.trunks.length;n++)t&&l.trunks[n].id===t.id&&(l.trunks[n].canSelect=!1,e.push(l.trunks[n]));l.trunks=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Ic.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const kc=Ic;function Dc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.goto=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.goto.appdata)switch(l.goto.appType?l.goto.appType.toLowerCase():l.goto.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.goto.appdata.split(",");l.goto.key=e[0],l.goto.language=e[1],l.goto.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.goto.appdata.split(",");l.goto.projectId=e[0],l.goto.clientEmail=e[1],l.goto.privateKey=e[2],l.goto.language=e[3],l.goto.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.goto.appdata.split(",");l.goto.accesskeyid=e[0],l.goto.secretaccesskey=e[1],l.goto.lexregion=e[2],l.goto.botname=e[3],l.goto.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.goto.appdata.split(",");l.goto.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.goto.text=e.slice(1,e.length).join(",")}break;case"message":l.goto.text=l.goto.appdata;break;case"set":l.goto.name=l.goto.appdata.split("=")[0],l.goto.value=l.goto.appdata.split("=")[1];break;case"agi":l.goto.project=l.goto.appdata;break;default:{const e=l.goto.appdata.split(",");l.goto.context=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.goto.extension=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.goto.priority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.goto.type&&"outbound"===l.goto.type.toLowerCase()&&"outbounddial"===l.goto.appType.toLowerCase()&&(l.goto.prefix=l.goto.phone?l.goto.phone.split("$")[0]:void 0,l.goto.callerId=l.goto.callerID?"CALLERID(all)="+l.goto.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.goto.type&&"outbound"===l.goto.type.toLowerCase()&&"outboundDial"===l.goto.appType&&(l.goto.phone=o.cutdigits?(l.goto.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.goto.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.goto.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.goto.options+="U(xcally-mixmonitor-context)"):l.goto.options=l.goto.options.replace("U(xcally-mixmonitor-context)",""));if(l.goto.appType&&"custom"===l.goto.appType);else switch((l.goto.app||l.goto.appType).toLowerCase()){case"set":l.goto.appdata=l.goto.name+"="+l.goto.value;break;case"custom":break;default:e[0]=l.goto.context,e[1]=l.goto.extension,e[2]=l.goto.priority,l.goto.appdata=e.join(",")}c(l.goto)},l.closeDialog=c,i.hasRole("admin")?r.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.contexts=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.contexts=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.contexts,{id:e.resourceId})}));let n=null;if(l.goto&&(n=u().find(l.contexts,{name:l.goto.context})),n&&!u().some(t,["id",n.id])){const e=u().find(l.contexts,{id:n.id});e.canSelect=!1,t.push(e)}l.contexts=t})):r.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){l.contexts=e.rows||[]}))})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Dc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const xc=Dc;function Mc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.hangup=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.hangup.appdata)switch(l.hangup.appType?l.hangup.appType.toLowerCase():l.hangup.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.hangup.appdata.split(",");l.hangup.key=e[0],l.hangup.language=e[1],l.hangup.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.hangup.appdata.split(",");l.hangup.projectId=e[0],l.hangup.clientEmail=e[1],l.hangup.privateKey=e[2],l.hangup.language=e[3],l.hangup.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.hangup.appdata.split(",");l.hangup.accesskeyid=e[0],l.hangup.secretaccesskey=e[1],l.hangup.lexregion=e[2],l.hangup.botname=e[3],l.hangup.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.hangup.appdata.split(",");l.hangup.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.hangup.text=e.slice(1,e.length).join(",")}break;case"message":l.hangup.text=l.hangup.appdata;break;case"set":l.hangup.name=l.hangup.appdata.split("=")[0],l.hangup.value=l.hangup.appdata.split("=")[1];break;case"agi":l.hangup.project=l.hangup.appdata;break;default:{const e=l.hangup.appdata.split(",");l.hangup.appdata=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.hangup.type&&"outbound"===l.hangup.type.toLowerCase()&&"outbounddial"===l.hangup.appType.toLowerCase()&&(l.hangup.prefix=l.hangup.phone?l.hangup.phone.split("$")[0]:void 0,l.hangup.callerId=l.hangup.callerID?"CALLERID(all)="+l.hangup.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.hangup.type&&"outbound"===l.hangup.type.toLowerCase()&&"outboundDial"===l.hangup.appType&&(l.hangup.phone=o.cutdigits?(l.hangup.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.hangup.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.hangup.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.hangup.options+="U(xcally-mixmonitor-context)"):l.hangup.options=l.hangup.options.replace("U(xcally-mixmonitor-context)",""));if(l.hangup.appType&&"custom"===l.hangup.appType);else switch((l.hangup.app||l.hangup.appType).toLowerCase()){case"set":l.hangup.appdata=l.hangup.name+"="+l.hangup.value;break;case"custom":break;default:e[0]=l.hangup.appdata,l.hangup.appdata=e.join(",")}c(l.hangup)},l.closeDialog=c}Mc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Pc=Mc;function Oc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.internaldial=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.internaldial.appdata)switch(l.internaldial.appType?l.internaldial.appType.toLowerCase():l.internaldial.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.internaldial.appdata.split(",");l.internaldial.key=e[0],l.internaldial.language=e[1],l.internaldial.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.internaldial.appdata.split(",");l.internaldial.projectId=e[0],l.internaldial.clientEmail=e[1],l.internaldial.privateKey=e[2],l.internaldial.language=e[3],l.internaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.internaldial.appdata.split(",");l.internaldial.accesskeyid=e[0],l.internaldial.secretaccesskey=e[1],l.internaldial.lexregion=e[2],l.internaldial.botname=e[3],l.internaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.internaldial.appdata.split(",");l.internaldial.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.internaldial.text=e.slice(1,e.length).join(",")}break;case"message":l.internaldial.text=l.internaldial.appdata;break;case"set":l.internaldial.name=l.internaldial.appdata.split("=")[0],l.internaldial.value=l.internaldial.appdata.split("=")[1];break;case"agi":l.internaldial.project=l.internaldial.appdata;break;default:{const e=l.internaldial.appdata.split(",");l.internaldial.user=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.internaldial.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.internaldial.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.internaldial.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}l.internaldial.type&&"outbound"===l.internaldial.type.toLowerCase()&&"outbounddial"===l.internaldial.appType.toLowerCase()&&(l.internaldial.prefix=l.internaldial.phone?l.internaldial.phone.split("$")[0]:void 0,l.internaldial.callerId=l.internaldial.callerID?"CALLERID(all)="+l.internaldial.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.internaldial.type&&"outbound"===l.internaldial.type.toLowerCase()&&"outboundDial"===l.internaldial.appType&&(l.internaldial.phone=o.cutdigits?(l.internaldial.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.internaldial.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.internaldial.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.internaldial.options+="U(xcally-mixmonitor-context)"):l.internaldial.options=l.internaldial.options.replace("U(xcally-mixmonitor-context)",""));if(l.internaldial.appType&&"custom"===l.internaldial.appType);else switch((l.internaldial.app||l.internaldial.appType).toLowerCase()){case"set":l.internaldial.appdata=l.internaldial.name+"="+l.internaldial.value;break;case"custom":break;default:e[0]=l.internaldial.user,e[1]=l.internaldial.timeout,e[2]=l.internaldial.options,e[3]=l.internaldial.url,l.internaldial.appdata=e.join(",")}f(l.internaldial)},l.closeDialog=f;const c=[{id:202,role:"agent"},{id:203,role:"telephone"}];let d=null;function f(t){e.hide(t)}i.hasRole("admin")?r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){l.users=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){d=e.rows||[]})).then((function(){const e=[];for(let t=0;t<c.length;t++)e.push(r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:c[t].id}).$promise);return t.all(e)})).then((function(e){const n=u().map(e,(function(e){return e&&e.rows?e.rows[0]:null})),a=[];for(let e=0;e<c.length;e++){const t=u().find(n,["sectionId",c[e].id]);if(t)if(t.autoAssociation){const t=[];d.forEach((function(n){n.role===c[e].role&&t.push(n)})),a.push({rows:t,count:t.length})}else a.push(r.userProfileResource.get({sectionId:t.id}).$promise)}return t.all(a)})).then((function(e){const t=[];let n=null;l.internaldial&&(n=u().find(d,{name:l.internaldial.user}));for(let n=0;n<e.length;n++){(e[n].rows||[]).forEach((function(e){t.push(e)}))}n&&!u().some(t,["resourceId",n.id])&&d.forEach((function(e){e.id===n.id&&(e.canSelect=!1,t.push(e))})),l.users=t})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETusers",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Oc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Rc=Oc;function Nc(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}Nc.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const Lc=Nc;function $c(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.playback=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.playback.appdata)switch(l.playback.appType?l.playback.appType.toLowerCase():l.playback.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.playback.appdata.split(",");l.playback.key=e[0],l.playback.language=e[1],l.playback.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.playback.appdata.split(",");l.playback.projectId=e[0],l.playback.clientEmail=e[1],l.playback.privateKey=e[2],l.playback.language=e[3],l.playback.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.playback.appdata.split(",");l.playback.accesskeyid=e[0],l.playback.secretaccesskey=e[1],l.playback.lexregion=e[2],l.playback.botname=e[3],l.playback.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.playback.appdata.split(",");l.playback.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.playback.text=e.slice(1,e.length).join(",")}break;case"message":l.playback.text=l.playback.appdata;break;case"set":l.playback.name=l.playback.appdata.split("=")[0],l.playback.value=l.playback.appdata.split("=")[1];break;case"agi":l.playback.project=l.playback.appdata;break;default:{const e=l.playback.appdata.split(",");l.playback.appdata=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.playback.options=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.playback.type&&"outbound"===l.playback.type.toLowerCase()&&"outbounddial"===l.playback.appType.toLowerCase()&&(l.playback.prefix=l.playback.phone?l.playback.phone.split("$")[0]:void 0,l.playback.callerId=l.playback.callerID?"CALLERID(all)="+l.playback.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.playback.type&&"outbound"===l.playback.type.toLowerCase()&&"outboundDial"===l.playback.appType&&(l.playback.phone=o.cutdigits?(l.playback.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.playback.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.playback.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.playback.options+="U(xcally-mixmonitor-context)"):l.playback.options=l.playback.options.replace("U(xcally-mixmonitor-context)",""));if(l.playback.appType&&"custom"===l.playback.appType);else switch((l.playback.app||l.playback.appType).toLowerCase()){case"set":l.playback.appdata=l.playback.name+"="+l.playback.value;break;case"custom":break;default:e[0]=l.playback.appdata,e[1]=l.playback.options,l.playback.appdata=e.join(",")}c(l.playback)},l.closeDialog=c,i.hasRole("admin")?r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SOUNDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1007}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.sounds,{id:e.resourceId})}));let n=null;if(l.playback&&(n=u().find(l.sounds,{save_name:l.playback.sound})),n&&!u().some(t,["id",n.id])){const e=u().find(l.sounds,{id:n.id});e.canSelect=!1,t.push(e)}l.sounds=t}))}else{const e=[];let t=null;l.playback&&(t=u().find(l.sounds,{save_name:l.playback.sound}));for(let n=0;n<l.sounds.length;n++)t&&l.sounds[n].id===t.id&&(l.sounds[n].canSelect=!1,e.push(l.sounds[n]));l.sounds=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsounds",msg:e.data?JSON.stringify(e.data):e.toString()})}))}$c.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Uc=$c;function jc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.text=e.slice(1,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.options=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.queue.URL=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.queue.sound=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.queue.timeout=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10),l.queue.agi=u().isEmpty(e[5])||isNaN(e[5])?e[5]:parseInt(e[5],10),l.queue.macro=u().isEmpty(e[6])||isNaN(e[6])?e[6]:parseInt(e[6],10),l.queue.gosub=u().isEmpty(e[7])||isNaN(e[7])?e[7]:parseInt(e[7],10),l.queue.rule=u().isEmpty(e[8])||isNaN(e[8])?e[8]:parseInt(e[8],10),l.queue.position=u().isEmpty(e[9])||isNaN(e[9])?e[9]:parseInt(e[9],10)}}function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.options,e[2]=l.queue.URL,e[3]=l.queue.sound,e[4]=l.queue.timeout,e[5]=l.queue.agi,e[6]=l.queue.macro,e[7]=l.queue.gosub,e[8]=l.queue.rule,e[9]=l.queue.position,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SOUNDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1007}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.sounds,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.sounds,{save_name:l.queue.sound})),n&&!u().some(t,["id",n.id])){const e=u().find(l.sounds,{id:n.id});e.canSelect=!1,t.push(e)}l.sounds=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.sounds,{save_name:l.queue.sound}));for(let n=0;n<l.sounds.length;n++)t&&l.sounds[n].id===t.id&&(l.sounds[n].canSelect=!1,e.push(l.sounds[n]));l.sounds=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsounds",msg:e.data?JSON.stringify(e.data):e.toString()})})),i.hasRole("admin")?r.voiceQueue.get({type:"inbound",fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.voiceQueue.get({type:"inbound",fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:401}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}jc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Fc=jc;function qc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.ringgroup=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.ringgroup.appdata)switch(l.ringgroup.appType?l.ringgroup.appType.toLowerCase():l.ringgroup.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.ringgroup.appdata.split(",");l.ringgroup.key=e[0],l.ringgroup.language=e[1],l.ringgroup.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.ringgroup.appdata.split(",");l.ringgroup.projectId=e[0],l.ringgroup.clientEmail=e[1],l.ringgroup.privateKey=e[2],l.ringgroup.language=e[3],l.ringgroup.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.ringgroup.appdata.split(",");l.ringgroup.accesskeyid=e[0],l.ringgroup.secretaccesskey=e[1],l.ringgroup.lexregion=e[2],l.ringgroup.botname=e[3],l.ringgroup.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.ringgroup.appdata.split(",");l.ringgroup.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.ringgroup.text=e.slice(1,e.length).join(",")}break;case"message":l.ringgroup.text=l.ringgroup.appdata;break;case"set":l.ringgroup.name=l.ringgroup.appdata.split("=")[0],l.ringgroup.value=l.ringgroup.appdata.split("=")[1];break;case"agi":l.ringgroup.project=l.ringgroup.appdata;break;default:{const e=l.ringgroup.appdata.split(",");l.ringgroup.multipleUsers=e[0].split("&"),l.ringgroup.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.ringgroup.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.ringgroup.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}l.ringgroup.type&&"outbound"===l.ringgroup.type.toLowerCase()&&"outbounddial"===l.ringgroup.appType.toLowerCase()&&(l.ringgroup.prefix=l.ringgroup.phone?l.ringgroup.phone.split("$")[0]:void 0,l.ringgroup.callerId=l.ringgroup.callerID?"CALLERID(all)="+l.ringgroup.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.ringgroup.type&&"outbound"===l.ringgroup.type.toLowerCase()&&"outboundDial"===l.ringgroup.appType&&(l.ringgroup.phone=o.cutdigits?(l.ringgroup.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.ringgroup.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.ringgroup.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.ringgroup.options+="U(xcally-mixmonitor-context)"):l.ringgroup.options=l.ringgroup.options.replace("U(xcally-mixmonitor-context)",""));if(l.ringgroup.appType&&"custom"===l.ringgroup.appType);else switch((l.ringgroup.app||l.ringgroup.appType).toLowerCase()){case"set":l.ringgroup.appdata=l.ringgroup.name+"="+l.ringgroup.value;break;case"custom":break;default:e[0]=l.ringgroup.multipleUsers.join("&"),e[1]=l.ringgroup.timeout,e[2]=l.ringgroup.options,e[3]=l.ringgroup.url,l.ringgroup.appdata=e.join(",")}f(l.ringgroup)},l.closeDialog=f;const c=[{id:202,role:"agent"},{id:203,role:"telephone"}];let d=null;function f(t){e.hide(t)}i.hasRole("admin")?r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){l.users=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){d=e.rows||[]})).then((function(){const e=[];for(let t=0;t<c.length;t++)e.push(r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:c[t].id}).$promise);return t.all(e)})).then((function(e){const n=u().map(e,(function(e){return e&&e.rows?e.rows[0]:null})),a=[];for(let e=0;e<c.length;e++){const t=u().find(n,["sectionId",c[e].id]);if(t)if(t.autoAssociation){const t=[];d.forEach((function(n){n.role===c[e].role&&t.push(n)})),a.push({rows:t,count:t.length})}else a.push(r.userProfileResource.get({sectionId:t.id}).$promise)}return t.all(a)})).then((function(e){const t=[];let n=null;l.ringgroup&&(n=u().find(d,{name:l.ringgroup.multipleUsers}));for(let n=0;n<e.length;n++){(e[n].rows||[]).forEach((function(e){t.push(e)}))}n&&!u().some(t,["resourceId",n.id])&&d.forEach((function(e){e.id===n.id&&(e.canSelect=!1,t.push(e))})),l.users=t})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETusers",msg:e.data?JSON.stringify(e.data):e.toString()})}))}qc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Yc=qc;function Hc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.set=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.set.appdata)switch(l.set.appType?l.set.appType.toLowerCase():l.set.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.set.appdata.split(",");l.set.key=e[0],l.set.language=e[1],l.set.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.set.appdata.split(",");l.set.projectId=e[0],l.set.clientEmail=e[1],l.set.privateKey=e[2],l.set.language=e[3],l.set.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.set.appdata.split(",");l.set.accesskeyid=e[0],l.set.secretaccesskey=e[1],l.set.lexregion=e[2],l.set.botname=e[3],l.set.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.set.appdata.split(",");l.set.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.set.text=e.slice(1,e.length).join(",")}break;case"message":l.set.text=l.set.appdata;break;case"set":l.set.name=l.set.appdata.split("=")[0],l.set.value=l.set.appdata.split("=")[1];break;case"agi":l.set.project=l.set.appdata;break;default:{const e=l.set.appdata.split("=");l.set.name=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.set.value=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.set.type&&"outbound"===l.set.type.toLowerCase()&&"outbounddial"===l.set.appType.toLowerCase()&&(l.set.prefix=l.set.phone?l.set.phone.split("$")[0]:void 0,l.set.callerId=l.set.callerID?"CALLERID(all)="+l.set.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.set.type&&"outbound"===l.set.type.toLowerCase()&&"outboundDial"===l.set.appType&&(l.set.phone=o.cutdigits?(l.set.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.set.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.set.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.set.options+="U(xcally-mixmonitor-context)"):l.set.options=l.set.options.replace("U(xcally-mixmonitor-context)",""));if(l.set.appType&&"custom"===l.set.appType);else switch((l.set.app||l.set.appType).toLowerCase()){case"set":l.set.appdata=l.set.name+"="+l.set.value;break;case"custom":break;default:e[0]=l.set.name,e[1]=l.set.value,l.set.appdata=e.join("=")}c(l.set)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.set&&(n=u().find(l.variables,{name:l.set.name})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.set&&(t=u().find(l.variables,{name:l.set.name}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Hc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Bc=Hc;function Gc(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.voicemail=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.voicemail.appdata)switch(l.voicemail.appType?l.voicemail.appType.toLowerCase():l.voicemail.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.voicemail.appdata.split(",");l.voicemail.key=e[0],l.voicemail.language=e[1],l.voicemail.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.voicemail.appdata.split(",");l.voicemail.projectId=e[0],l.voicemail.clientEmail=e[1],l.voicemail.privateKey=e[2],l.voicemail.language=e[3],l.voicemail.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.voicemail.appdata.split(",");l.voicemail.accesskeyid=e[0],l.voicemail.secretaccesskey=e[1],l.voicemail.lexregion=e[2],l.voicemail.botname=e[3],l.voicemail.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.voicemail.appdata.split(",");l.voicemail.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.voicemail.text=e.slice(1,e.length).join(",")}break;case"message":l.voicemail.text=l.voicemail.appdata;break;case"set":l.voicemail.name=l.voicemail.appdata.split("=")[0],l.voicemail.value=l.voicemail.appdata.split("=")[1];break;case"agi":l.voicemail.project=l.voicemail.appdata;break;default:{const e=l.voicemail.appdata.split(",");l.voicemail.voiceMail=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.voicemail.options=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.voicemail.type&&"outbound"===l.voicemail.type.toLowerCase()&&"outbounddial"===l.voicemail.appType.toLowerCase()&&(l.voicemail.prefix=l.voicemail.phone?l.voicemail.phone.split("$")[0]:void 0,l.voicemail.callerId=l.voicemail.callerID?"CALLERID(all)="+l.voicemail.callerID:void 0),l.saveInboundRouteApp=function(){l.errors=[];const e=[];l.voicemail.type&&"outbound"===l.voicemail.type.toLowerCase()&&"outboundDial"===l.voicemail.appType&&(l.voicemail.phone=o.cutdigits?(l.voicemail.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.voicemail.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.voicemail.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.voicemail.options+="U(xcally-mixmonitor-context)"):l.voicemail.options=l.voicemail.options.replace("U(xcally-mixmonitor-context)",""));if(l.voicemail.appType&&"custom"===l.voicemail.appType);else switch((l.voicemail.app||l.voicemail.appType).toLowerCase()){case"set":l.voicemail.appdata=l.voicemail.name+"="+l.voicemail.value;break;case"custom":break;default:e[0]=l.voicemail.voiceMail,e[1]=l.voicemail.options,l.voicemail.appdata=e.join(",")}c(l.voicemail)},l.closeDialog=c,i.hasRole("admin")?r.voiceMail.get({fields:"id,mailbox",sort:"mailbox",nolimit:"true"}).$promise.then((function(e){l.voiceMails=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VOICEMAILS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.voiceMail.get({fields:"id,mailbox",sort:"mailbox",nolimit:"true"}).$promise.then((function(e){l.voiceMails=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:406}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.voiceMails,{id:e.resourceId})}));let n=null;if(l.voicemail&&(n=u().find(l.voiceMails,{mailbox:l.voicemail.voiceMail})),n&&!u().some(t,["id",n.id])){const e=u().find(l.voiceMails,{id:n.id});e.canSelect=!1,t.push(e)}l.voiceMails=t}))}else{const e=[];let t=null;l.voicemail&&(t=u().find(l.voiceMails,{mailbox:l.voicemail.voiceMail}));for(let n=0;n<l.voiceMails.length;n++)t&&l.voiceMails[n].id===t.id&&(l.voiceMails[n].canSelect=!1,e.push(l.voiceMails[n]));l.voiceMails=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceMails",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Gc.$inject=["$mdDialog","$q","toasty","inboundrouteApp","inboundroute","api","Auth","crudPermissions"];const Vc=Gc;function Wc(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.inboundroute=d||e.params.inboundroute||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.alert=l.info,m.gotoInboundRoutes=function(){e.go("app.voice.inboundroutes",{},{reload:"app.voice.inboundroutes"})},m.saveInboundRoute=function(){s.voiceExtension.update({id:m.inboundroute.id},m.inboundroute).$promise.then((function(){l.success({title:"InboundRoute updated!",msg:m.inboundroute.name?m.inboundroute.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceExtension",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.contexts=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.contexts,{id:e.resourceId})}));let n=null;if(m.inboundroute&&(n=u().find(m.contexts,{name:m.inboundroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(m.contexts,{id:n.id});e.canSelect=!1,t.push(e)}m.contexts=t})):s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){m.contexts=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Wc.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","inboundroute","userProfileSection"];const Qc=Wc,zc=n.p+"templates/main/apps/voice/views/inboundroutes/create/dialog.html/dialog.html";function Kc(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.inboundroutes=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="inboundroutes",b.listOrder="",b.listOrderAsc=null,b.selectedInboundRoutes=[],b.query={fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",type:"inbound",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,page:1},b.editstate=function(e){n.go("app.voice.inboundroutes.edit",{id:e.id,inboundroute:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("inboundroute")+"?").htmlContent("<b>"+(e.name||"inboundroute")+"</b> will be deleted.").ariaLabel("delete inboundroute").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getInboundRoutes=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceExtension.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="InboundRoutes",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditInboundRoute=function(e,t){o.show({controller:"CreateOrEditInboundRouteDialogController",controllerAs:"vm",templateUrl:zc,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{inboundroute:t,inboundroutes:b.inboundroutes.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteInboundRoute=S,b.exportSelectedInboundRoutes=function(){const e=angular.copy(b.selectedInboundRoutes);return b.selectedInboundRoutes=[],e},b.deleteSelectedInboundRoutes=function(e){const t=o.confirm().title("Are you sure want to delete the selected inboundroutes?").htmlContent("<b>"+b.selectedInboundRoutes.length+" selected</b> will be deleted.").ariaLabel("delete InboundRoutes").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedInboundRoutes.forEach((function(e){S(e)})),b.selectedInboundRoutes=[]}))},b.deselectInboundRoutes=function(){b.selectedInboundRoutes=[]},b.selectAllInboundRoutes=function(){b.selectedInboundRoutes=b.inboundroutes.rows},g.hasRole("admin")?f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){b.contexts=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){b.contexts=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.contexts,{id:e.resourceId})}));let n=null;if(b.inboundroute&&(n=u().find(b.contexts,{name:b.inboundroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(b.contexts,{id:n.id});e.canSelect=!1,t.push(e)}b.contexts=t})):f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){b.contexts=e.rows||[]}))})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.inboundroutes=e||{count:0,rows:[]}}function S(e){f.voiceExtension.delete({id:e.id}).$promise.then((function(){u().remove(b.inboundroutes.rows,{id:e.id}),b.inboundroutes.count-=1,b.inboundroutes.rows.length||b.getInboundRoutes(),p.success({title:u().startCase("InboundRoute")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceExtension"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceExtension",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getInboundRoutes())}))}Kc.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","inboundroutes","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Jc=Kc;function Xc(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_INTERNALROUTE",g.internalroute=angular.copy(l),g.internalroutes=s,g.newInternalRoute=!1,g.internalroute||(g.internalroute={appdata:"Internal Call",type:"internal",context:"from-sip"},g.title="VOICE.NEW_INTERNALROUTE",g.newInternalRoute=!0),g.addNewInternalRoute=function(){g.errors=[],c.voiceExtension.save(g.internalroute).$promise.then((function(e){g.internalroutes.unshift(e.toJSON()),i.success({title:"InternalRoute properly created",msg:g.internalroute.name?g.internalroute.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveInternalRoute=function(){g.errors=[],c.voiceExtension.update({id:g.internalroute.id},g.internalroute).$promise.then((function(e){const t=u().find(g.internalroutes,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"InternalRoute properly saved!",msg:g.internalroute.name?g.internalroute.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteInternalRoute=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The internalroute will be deleted.").ariaLabel("Delete InternalRoute").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceExtension.delete({id:g.internalroute.id}).$promise.then((function(){u().remove(g.internalroutes,{id:g.internalroute.id}),i.success({title:"InternalRoute properly deleted!",msg:(g.internalroute.name||"internalroute")+" has been deleted!"}),h(g.internalroute)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){g.contexts=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){g.contexts=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.contexts,{id:e.resourceId})}));let n=null;if(g.internalroute&&(n=u().find(g.contexts,{name:g.internalroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(g.contexts,{id:n.id});e.canSelect=!1,t.push(e)}g.contexts=t})):c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){g.contexts=e.rows||[]}))})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Xc.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","internalroutes","internalroute","api","Auth","license","setting","crudPermissions"];const Zc=Xc,eu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog.html",tu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog.html",nu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog.html",au=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog.html",ou=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog.html",ru=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog.html",iu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog.html",su=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html/dialog.html",lu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog.html",cu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog.html",uu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog.html",du=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog.html",fu=n.p+"templates/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog.html";pu.$inject=["api","$mdDialog","$document","toasty","Auth"];const mu={agi:eu,custom:tu,dial:nu,externaldial:au,goto:ou,hangup:ru,internaldial:iu,interval:su,playback:lu,queue:cu,ringgroup:uu,set:du,voicemail:fu};function pu(e,t,n,a,o){const r=this;function i(e,o){if(r.internalrouteApps.rows.length){const i=r.internalrouteApps.rows[o]?r.internalrouteApps.rows[o]:r.internalrouteApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditInternalApp${l}DialogController`,controllerAs:"vm",templateUrl:mu[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{internalrouteApp:i,internalroute:r.internalroute,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.internalrouteApps.rows[o]=e:r.internalrouteApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){const t=["queue","playback"];let n=2,a=[];a.push({type:"internal",app:"Set",appdata:"CDR(type)=internal",context:r.internalroute.context,exten:r.internalroute.exten,priority:n++,VoiceExtensionId:r.internalroute.id}),a.push({type:"internal",app:"Set",appdata:"XCALLY-MOTION-ANSWER=0",context:r.internalroute.context,exten:r.internalroute.exten,priority:n++,VoiceExtensionId:r.internalroute.id}),a.push({type:"internal",app:"Set",appdata:"XCALLY-MOTION-PROGRESS=0",context:r.internalroute.context,exten:r.internalroute.exten,priority:n++,VoiceExtensionId:r.internalroute.id}),a.push({type:"internal",app:"Set",appdata:"MONITOR_OPTIONS=ab",context:r.internalroute.context,exten:r.internalroute.exten,priority:n++,VoiceExtensionId:r.internalroute.id}),r.internalrouteApps.rows=r.internalrouteApps.rows.filter((e=>{switch(e.appType){case"queue":return",xX,,,300,,,,,"!==e.appdata;case"custom":return!!e.app;default:return!!e.appdata}}));for(let e=0,o=0;e<r.internalrouteApps.rows.length;e++,o=0){const i=r.internalrouteApps.rows[e],s=[],l=[];i.intervals="*,*,*,*"!==i.interval?[i.interval]:i.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:i.IntervalId}),"interval"):[],i.context=r.internalroute.context,i.exten=r.internalroute.exten,i.type&&(i.type=i.type.toLowerCase()),void 0!==i.answer&&t.includes(i.app.toLowerCase())&&"custom"!==i.appType&&(i.answer?(s.push({type:i.type.toLowerCase(),app:"ExecIf",appdata:"$[${XCALLY-MOTION-ANSWER}=0]?Answer",context:r.internalroute.context,exten:r.internalroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.internalroute.id}),s.push({type:i.type.toLowerCase(),app:"Set",appdata:"XCALLY-MOTION-ANSWER=1",context:r.internalroute.context,exten:r.internalroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.internalroute.id})):(s.push({type:i.type.toLowerCase(),app:"ExecIf",appdata:"$[${XCALLY-MOTION-PROGRESS}=0]?Progress",context:r.internalroute.context,exten:r.internalroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.internalroute.id}),s.push({type:i.type.toLowerCase(),app:"Set",appdata:"XCALLY-MOTION-PROGRESS=1",context:r.internalroute.context,exten:r.internalroute.exten,priority:i.intervals.length+n+o++,VoiceExtensionId:r.internalroute.id})));for(let e=0;e<i.intervals.length;e++){const t=n+i.intervals.length,a=e===i.intervals.length-1?n+s.length+l.length+2:n+e+1;s.splice(e,0,{type:"internal",app:"GotoIfTime",appdata:i.intervals[e]+"?"+r.internalroute.context+",${EXTEN},"+t+":"+r.internalroute.context+",${EXTEN},"+a,exten:r.internalroute.exten,context:r.internalroute.context,priority:n+e,VoiceExtensionId:r.internalroute.id})}i.priority=s.length?u().last(s).priority+1:n,n=(l.length?u().last(l).priority:i.priority)+1,a=u().concat(a,s,[i],l)}a.push({type:"internal",app:"Hangup",exten:r.internalroute.exten,context:r.internalroute.context,priority:n,VoiceExtensionId:r.internalroute.id}),e.voiceExtension.addApplications({id:r.internalroute.id},u().sortBy(a,"priority")).$promise.then((function(e){r.internalrouteApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.internalrouteApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.internalroute={},r.internalrouteApps={count:0,rows:[]},r.selectedInternalRouteApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",type:"Internal",types:["always","custom","list"],fields:[],isApp:!1},{app:"Queue",appType:"queue",context:"from-sip",type:"Internal",options:"xX",appdata:",xX,,,300,,,,,",icon:"icon-apps",interval:"*,*,*,*",answer:!0,isApp:!0,extraApi:[{name:"sounds",field:{name:"sound",key:"save_name",prefix:"/var/opt/motion2/server/files/sounds/converted/"},route:"sound",filters:{fields:"id,name,save_name",sort:"name",nolimit:!0},permissions:{section:1007}},{name:"queues",field:{name:"queue",key:"name"},route:"voiceQueue",filters:{type:"inbound",fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:401}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",required:!0,param:0},{title:"Options",name:"options",type:"text",param:1},{title:"Url",name:"URL",type:"text",param:2},{title:"Announce_Overrides",name:"sound",type:"apiselect",values:"sounds",value:"'/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}'",option:"sound.name",defaultValues:[{value:"''",option:"None"}],param:3},{title:"Timeout",name:"timeout",type:"number",min:0,param:4},{title:"Agi",name:"agi",type:"text",param:5},{title:"Macro",name:"macro",type:"text",param:6},{title:"GoSub",name:"gosub",type:"text",param:7},{title:"Rule",name:"rule",type:"text",param:8},{title:"Position",name:"position",type:"number",min:0,param:9},{title:"Answer",name:"answer",type:"switch",general:!0}]},{app:"Playback",appType:"playback",context:"from-sip",type:"Internal",icon:"icon-apps",interval:"*,*,*,*",answer:!0,isApp:!0,extraApi:[{name:"sounds",field:{name:"appdata",key:"save_name",prefix:"/var/opt/motion2/server/files/sounds/converted/"},route:"sound",filters:{fields:"id,name,save_name",sort:"name",nolimit:!0},permissions:{section:1007}}],fields:[{title:"Audio_Files",name:"appdata",type:"apiselect",values:"sounds",value:"'/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}'",option:"appdata.name",required:!0,param:0},{title:"Options",name:"options",type:"text",param:1},{title:"Answer",name:"answer",type:"switch",general:!0}]},{app:"Dial",appType:"dial",context:"from-sip",type:"Internal",icon:"icon-apps",options:"xX",interval:"*,*,*,*",isApp:!0,fields:[{title:"Technology/Resource",name:"tech",type:"text",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"Dial",appType:"internalDial",context:"from-sip",type:"Internal",icon:"icon-apps",options:"xX",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"users",field:{name:"user",key:"name",prefix:"SIP/"},route:"user",filters:{fields:"id,name,role",sort:"name",nolimit:!0},permissions:{sections:[{id:202,role:"agent"},{id:203,role:"telephone"}]}}],fields:[{title:"User",name:"user",type:"apiselect",values:"users",value:"'SIP/{{user.name}}'",option:"user.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"Dial",appType:"externalDial",context:"from-sip",type:"Internal",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,extraApi:[{name:"trunks",field:{name:"trunk",key:"name"},route:"trunk",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1011}}],fields:[{title:"Trunk",name:"trunk",type:"apiselect",values:"trunks",value:"trunk.name",option:"trunk.name",required:!0,param:0},{title:"Phone",name:"phone",type:"text"},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"Dial",appType:"ringGroup",context:"from-sip",type:"Internal",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,extraApi:[{name:"users",field:{name:"multipleUsers",key:"name",prefix:"SIP/"},route:"user",filters:{fields:"id,name,role",sort:"name",nolimit:!0},permissions:{sections:[{id:202,role:"agent"},{id:203,role:"telephone"}]}}],fields:[{title:"User",name:"multipleUsers",type:"apiselect",multiple:!0,values:"users",value:"'SIP/{{multipleUsers.name}}'",option:"multipleUsers.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:"AGI",alias:"CallySquare",appType:"agi",context:"from-sip",type:"Internal",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"projects",field:{name:"project",key:"name",prefix:"agi://127.0.0.1/square,"},route:"squareProject",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1103}}],fields:[{title:"Project",name:"project",type:"apiselect",values:"projects",value:"'agi://127.0.0.1/square,{{project.name}}'",option:"project.name",required:!0,param:0}]},{app:"goto",appType:"goTo",context:"from-sip",type:"Internal",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"contexts",field:{name:"context",key:"name"},route:"voiceContext",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:405}}],fields:[{title:"Context",name:"context",type:"apiselect",values:"contexts",value:"context.name",option:"context.name",required:!0,param:0},{title:"Extension",name:"extension",type:"text",required:!0,param:1},{title:"Priority",name:"priority",type:"text",required:!0,param:2}]},{app:"hangup",appType:"hangup",context:"from-sip",type:"Internal",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Hangup_Cause",name:"appdata",type:"select",param:0,values:[{option:"HANGUPCAUSE_1",value:"'1'"},{option:"HANGUPCAUSE_16",value:"'16'"},{option:"HANGUPCAUSE_17",value:"'17'"},{option:"HANGUPCAUSE_18",value:"'18'"},{option:"HANGUPCAUSE_21",value:"'21'"},{option:"HANGUPCAUSE_22",value:"'22'"},{option:"HANGUPCAUSE_27",value:"'27'"},{option:"HANGUPCAUSE_38",value:"'38'"},{option:"HANGUPCAUSE_41",value:"'41'"}],translate:!0,required:!0,general:!0}]},{app:"Set",appType:"set",context:"from-sip",type:"Internal",separator:"=",icon:"icon-apps",interval:"*,*,*,*",extraApi:[{name:"variables",field:{name:"name",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],isApp:!0,fields:[{title:"Variable",name:"name",type:"apiselect",values:"variables",value:"name.name",option:"name.name",required:!0,param:0},{title:"Value",name:"value",type:"text",required:!0,param:1}]},{app:null,appType:"custom",icon:"icon-apps",type:"Internal",interval:"*,*,*,*",isApp:!0,fields:[{title:"Application_Name",name:"app",type:"text",required:!0,param:0},{title:"Arguments",name:"appdata",type:"text",param:1}]},{app:"Voicemail",appType:"voicemail",context:"from-sip",icon:"icon-apps",type:"Internal",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"voiceMails",field:{name:"voiceMail",key:"mailbox",suffix:"@from-voicemail"},route:"voiceMail",filters:{fields:"id,mailbox",sort:"mailbox",nolimit:!0},permissions:{section:406}}],fields:[{title:"Mailbox@Context",name:"voiceMail",type:"apiselect",values:"voiceMails",value:"'{{voiceMail.mailbox}}@from-voicemail'",option:"voiceMail.mailbox",required:!0,param:0},{title:"Options",name:"options",type:"text",param:1}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:["opt1"]},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(){s()}},r.init=function(e,t){r.internalroute=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.VoiceExtensionId=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getInternalRouteApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.internalrouteApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getInternalRouteApps=function(){r.promise=e.voiceExtension.get(r.query,l).$promise},r.editInternalRouteApp=i,r.editInterval=function(e,a){if(r.internalrouteApps.rows.length){const o=r.internalrouteApps.rows[a]?r.internalrouteApps.rows[a]:r.internalrouteApps.rows[0];t.show({controller:"EditInternalAppintervalDialogController",controllerAs:"vm",templateUrl:su,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteInternalRouteApp=function(e){u().remove(r.internalrouteApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedInternalRouteApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedInternalRouteApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedInternalRouteApps.forEach((function(e){u().remove(r.internalrouteApps.rows,{id:e.id})})),r.selectedInternalRouteApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const gu=pu;function hu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.agi=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agi.appdata)switch(l.agi.appType?l.agi.appType.toLowerCase():l.agi.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agi.appdata.split(",");l.agi.key=e[0],l.agi.language=e[1],l.agi.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agi.appdata.split(",");l.agi.projectId=e[0],l.agi.clientEmail=e[1],l.agi.privateKey=e[2],l.agi.language=e[3],l.agi.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agi.appdata.split(",");l.agi.accesskeyid=e[0],l.agi.secretaccesskey=e[1],l.agi.lexregion=e[2],l.agi.botname=e[3],l.agi.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agi.appdata.split(",");l.agi.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agi.text=e.slice(1,e.length).join(",")}break;case"message":l.agi.text=l.agi.appdata;break;case"set":l.agi.name=l.agi.appdata.split("=")[0],l.agi.value=l.agi.appdata.split("=")[1];break;case"agi":l.agi.project=l.agi.appdata;break;default:{const e=l.agi.appdata.split(",");l.agi.project=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.agi.type&&"outbound"===l.agi.type.toLowerCase()&&"outbounddial"===l.agi.appType.toLowerCase()&&(l.agi.prefix=l.agi.phone?l.agi.phone.split("$")[0]:void 0,l.agi.callerId=l.agi.callerID?"CALLERID(all)="+l.agi.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.agi.type&&"outbound"===l.agi.type.toLowerCase()&&"outboundDial"===l.agi.appType&&(l.agi.phone=o.cutdigits?(l.agi.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agi.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agi.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agi.options+="U(xcally-mixmonitor-context)"):l.agi.options=l.agi.options.replace("U(xcally-mixmonitor-context)",""));if(l.agi.appType&&"custom"===l.agi.appType);else switch((l.agi.app||l.agi.appType).toLowerCase()){case"set":l.agi.appdata=l.agi.name+"="+l.agi.value;break;case"custom":break;default:e[0]=l.agi.project,l.agi.appdata=e.join(",")}c(l.agi)},l.closeDialog=c,i.hasRole("admin")?r.squareProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.projects=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.squareProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.projects=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1103}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.projects,{id:e.resourceId})}));let n=null;if(l.agi&&(n=u().find(l.projects,{name:l.agi.project})),n&&!u().some(t,["id",n.id])){const e=u().find(l.projects,{id:n.id});e.canSelect=!1,t.push(e)}l.projects=t}))}else{const e=[];let t=null;l.agi&&(t=u().find(l.projects,{name:l.agi.project}));for(let n=0;n<l.projects.length;n++)t&&l.projects[n].id===t.id&&(l.projects[n].canSelect=!1,e.push(l.projects[n]));l.projects=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})}))}hu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const _u=hu;function bu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.custom=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.custom.appdata)switch(l.custom.appType?l.custom.appType.toLowerCase():l.custom.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.custom.appdata.split(",");l.custom.key=e[0],l.custom.language=e[1],l.custom.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.custom.appdata.split(",");l.custom.projectId=e[0],l.custom.clientEmail=e[1],l.custom.privateKey=e[2],l.custom.language=e[3],l.custom.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.custom.appdata.split(",");l.custom.accesskeyid=e[0],l.custom.secretaccesskey=e[1],l.custom.lexregion=e[2],l.custom.botname=e[3],l.custom.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.custom.appdata.split(",");l.custom.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.custom.text=e.slice(1,e.length).join(",")}break;case"message":l.custom.text=l.custom.appdata;break;case"set":l.custom.name=l.custom.appdata.split("=")[0],l.custom.value=l.custom.appdata.split("=")[1];break;case"agi":l.custom.project=l.custom.appdata;break;default:{const e=l.custom.appdata.split(",");l.custom.app=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.custom.appdata=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.custom.type&&"outbound"===l.custom.type.toLowerCase()&&"outbounddial"===l.custom.appType.toLowerCase()&&(l.custom.prefix=l.custom.phone?l.custom.phone.split("$")[0]:void 0,l.custom.callerId=l.custom.callerID?"CALLERID(all)="+l.custom.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.custom.type&&"outbound"===l.custom.type.toLowerCase()&&"outboundDial"===l.custom.appType&&(l.custom.phone=o.cutdigits?(l.custom.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.custom.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.custom.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.custom.options+="U(xcally-mixmonitor-context)"):l.custom.options=l.custom.options.replace("U(xcally-mixmonitor-context)",""));if(l.custom.appType&&"custom"===l.custom.appType);else switch((l.custom.app||l.custom.appType).toLowerCase()){case"set":l.custom.appdata=l.custom.name+"="+l.custom.value;break;case"custom":break;default:e[0]=l.custom.app,e[1]=l.custom.appdata,l.custom.appdata=e.join(",")}c(l.custom)},l.closeDialog=c}bu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const yu=bu;function vu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.dial=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dial.appdata)switch(l.dial.appType?l.dial.appType.toLowerCase():l.dial.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dial.appdata.split(",");l.dial.key=e[0],l.dial.language=e[1],l.dial.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dial.appdata.split(",");l.dial.projectId=e[0],l.dial.clientEmail=e[1],l.dial.privateKey=e[2],l.dial.language=e[3],l.dial.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dial.appdata.split(",");l.dial.accesskeyid=e[0],l.dial.secretaccesskey=e[1],l.dial.lexregion=e[2],l.dial.botname=e[3],l.dial.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dial.appdata.split(",");l.dial.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dial.text=e.slice(1,e.length).join(",")}break;case"message":l.dial.text=l.dial.appdata;break;case"set":l.dial.name=l.dial.appdata.split("=")[0],l.dial.value=l.dial.appdata.split("=")[1];break;case"agi":l.dial.project=l.dial.appdata;break;default:{const e=l.dial.appdata.split(",");l.dial.tech=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dial.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dial.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.dial.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}function c(t){e.hide(t)}l.dial.type&&"outbound"===l.dial.type.toLowerCase()&&"outbounddial"===l.dial.appType.toLowerCase()&&(l.dial.prefix=l.dial.phone?l.dial.phone.split("$")[0]:void 0,l.dial.callerId=l.dial.callerID?"CALLERID(all)="+l.dial.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.dial.type&&"outbound"===l.dial.type.toLowerCase()&&"outboundDial"===l.dial.appType&&(l.dial.phone=o.cutdigits?(l.dial.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dial.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dial.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dial.options+="U(xcally-mixmonitor-context)"):l.dial.options=l.dial.options.replace("U(xcally-mixmonitor-context)",""));if(l.dial.appType&&"custom"===l.dial.appType);else switch((l.dial.app||l.dial.appType).toLowerCase()){case"set":l.dial.appdata=l.dial.name+"="+l.dial.value;break;case"custom":break;default:e[0]=l.dial.tech,e[1]=l.dial.timeout,e[2]=l.dial.options,e[3]=l.dial.url,l.dial.appdata=e.join(",")}c(l.dial)},l.closeDialog=c}vu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const Au=vu;function Su(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.externaldial=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.externaldial.appdata)switch(l.externaldial.appType?l.externaldial.appType.toLowerCase():l.externaldial.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.externaldial.appdata.split(",");l.externaldial.key=e[0],l.externaldial.language=e[1],l.externaldial.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.externaldial.appdata.split(",");l.externaldial.projectId=e[0],l.externaldial.clientEmail=e[1],l.externaldial.privateKey=e[2],l.externaldial.language=e[3],l.externaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.externaldial.appdata.split(",");l.externaldial.accesskeyid=e[0],l.externaldial.secretaccesskey=e[1],l.externaldial.lexregion=e[2],l.externaldial.botname=e[3],l.externaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.externaldial.appdata.split(",");l.externaldial.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.externaldial.text=e.slice(1,e.length).join(",")}break;case"message":l.externaldial.text=l.externaldial.appdata;break;case"set":l.externaldial.name=l.externaldial.appdata.split("=")[0],l.externaldial.value=l.externaldial.appdata.split("=")[1];break;case"agi":l.externaldial.project=l.externaldial.appdata;break;default:{const e=l.externaldial.appdata.split(",");l.externaldial.trunk=e[0].split("/")[1],l.externaldial.phone=e[0].split("/")[2],l.externaldial.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.externaldial.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.externaldial.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}function c(t){e.hide(t)}l.externaldial.type&&"outbound"===l.externaldial.type.toLowerCase()&&"outbounddial"===l.externaldial.appType.toLowerCase()&&(l.externaldial.prefix=l.externaldial.phone?l.externaldial.phone.split("$")[0]:void 0,l.externaldial.callerId=l.externaldial.callerID?"CALLERID(all)="+l.externaldial.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.externaldial.type&&"outbound"===l.externaldial.type.toLowerCase()&&"outboundDial"===l.externaldial.appType&&(l.externaldial.phone=o.cutdigits?(l.externaldial.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.externaldial.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.externaldial.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.externaldial.options+="U(xcally-mixmonitor-context)"):l.externaldial.options=l.externaldial.options.replace("U(xcally-mixmonitor-context)",""));if(l.externaldial.appType&&"custom"===l.externaldial.appType);else switch((l.externaldial.app||l.externaldial.appType).toLowerCase()){case"set":l.externaldial.appdata=l.externaldial.name+"="+l.externaldial.value;break;case"custom":break;default:e[0]=["SIP",l.externaldial.trunk,l.externaldial.phone].join("/"),e[1]=l.externaldial.timeout,e[2]=l.externaldial.options,e[3]=l.externaldial.url,l.externaldial.appdata=e.join(",")}c(l.externaldial)},l.closeDialog=c,i.hasRole("admin")?r.trunk.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.trunks=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.trunk.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.trunks=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.trunks,{id:e.resourceId})}));let n=null;if(l.externaldial&&(n=u().find(l.trunks,{name:l.externaldial.trunk})),n&&!u().some(t,["id",n.id])){const e=u().find(l.trunks,{id:n.id});e.canSelect=!1,t.push(e)}l.trunks=t}))}else{const e=[];let t=null;l.externaldial&&(t=u().find(l.trunks,{name:l.externaldial.trunk}));for(let n=0;n<l.trunks.length;n++)t&&l.trunks[n].id===t.id&&(l.trunks[n].canSelect=!1,e.push(l.trunks[n]));l.trunks=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Su.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const wu=Su;function Eu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.goto=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.goto.appdata)switch(l.goto.appType?l.goto.appType.toLowerCase():l.goto.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.goto.appdata.split(",");l.goto.key=e[0],l.goto.language=e[1],l.goto.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.goto.appdata.split(",");l.goto.projectId=e[0],l.goto.clientEmail=e[1],l.goto.privateKey=e[2],l.goto.language=e[3],l.goto.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.goto.appdata.split(",");l.goto.accesskeyid=e[0],l.goto.secretaccesskey=e[1],l.goto.lexregion=e[2],l.goto.botname=e[3],l.goto.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.goto.appdata.split(",");l.goto.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.goto.text=e.slice(1,e.length).join(",")}break;case"message":l.goto.text=l.goto.appdata;break;case"set":l.goto.name=l.goto.appdata.split("=")[0],l.goto.value=l.goto.appdata.split("=")[1];break;case"agi":l.goto.project=l.goto.appdata;break;default:{const e=l.goto.appdata.split(",");l.goto.context=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.goto.extension=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.goto.priority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.goto.type&&"outbound"===l.goto.type.toLowerCase()&&"outbounddial"===l.goto.appType.toLowerCase()&&(l.goto.prefix=l.goto.phone?l.goto.phone.split("$")[0]:void 0,l.goto.callerId=l.goto.callerID?"CALLERID(all)="+l.goto.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.goto.type&&"outbound"===l.goto.type.toLowerCase()&&"outboundDial"===l.goto.appType&&(l.goto.phone=o.cutdigits?(l.goto.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.goto.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.goto.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.goto.options+="U(xcally-mixmonitor-context)"):l.goto.options=l.goto.options.replace("U(xcally-mixmonitor-context)",""));if(l.goto.appType&&"custom"===l.goto.appType);else switch((l.goto.app||l.goto.appType).toLowerCase()){case"set":l.goto.appdata=l.goto.name+"="+l.goto.value;break;case"custom":break;default:e[0]=l.goto.context,e[1]=l.goto.extension,e[2]=l.goto.priority,l.goto.appdata=e.join(",")}c(l.goto)},l.closeDialog=c,i.hasRole("admin")?r.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.contexts=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.contexts=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.contexts,{id:e.resourceId})}));let n=null;if(l.goto&&(n=u().find(l.contexts,{name:l.goto.context})),n&&!u().some(t,["id",n.id])){const e=u().find(l.contexts,{id:n.id});e.canSelect=!1,t.push(e)}l.contexts=t})):r.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){l.contexts=e.rows||[]}))})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Eu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const Cu=Eu;function Tu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.hangup=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.hangup.appdata)switch(l.hangup.appType?l.hangup.appType.toLowerCase():l.hangup.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.hangup.appdata.split(",");l.hangup.key=e[0],l.hangup.language=e[1],l.hangup.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.hangup.appdata.split(",");l.hangup.projectId=e[0],l.hangup.clientEmail=e[1],l.hangup.privateKey=e[2],l.hangup.language=e[3],l.hangup.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.hangup.appdata.split(",");l.hangup.accesskeyid=e[0],l.hangup.secretaccesskey=e[1],l.hangup.lexregion=e[2],l.hangup.botname=e[3],l.hangup.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.hangup.appdata.split(",");l.hangup.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.hangup.text=e.slice(1,e.length).join(",")}break;case"message":l.hangup.text=l.hangup.appdata;break;case"set":l.hangup.name=l.hangup.appdata.split("=")[0],l.hangup.value=l.hangup.appdata.split("=")[1];break;case"agi":l.hangup.project=l.hangup.appdata;break;default:{const e=l.hangup.appdata.split(",");l.hangup.appdata=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.hangup.type&&"outbound"===l.hangup.type.toLowerCase()&&"outbounddial"===l.hangup.appType.toLowerCase()&&(l.hangup.prefix=l.hangup.phone?l.hangup.phone.split("$")[0]:void 0,l.hangup.callerId=l.hangup.callerID?"CALLERID(all)="+l.hangup.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.hangup.type&&"outbound"===l.hangup.type.toLowerCase()&&"outboundDial"===l.hangup.appType&&(l.hangup.phone=o.cutdigits?(l.hangup.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.hangup.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.hangup.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.hangup.options+="U(xcally-mixmonitor-context)"):l.hangup.options=l.hangup.options.replace("U(xcally-mixmonitor-context)",""));if(l.hangup.appType&&"custom"===l.hangup.appType);else switch((l.hangup.app||l.hangup.appType).toLowerCase()){case"set":l.hangup.appdata=l.hangup.name+"="+l.hangup.value;break;case"custom":break;default:e[0]=l.hangup.appdata,l.hangup.appdata=e.join(",")}c(l.hangup)},l.closeDialog=c}Tu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const Iu=Tu;function ku(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.internaldial=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.internaldial.appdata)switch(l.internaldial.appType?l.internaldial.appType.toLowerCase():l.internaldial.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.internaldial.appdata.split(",");l.internaldial.key=e[0],l.internaldial.language=e[1],l.internaldial.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.internaldial.appdata.split(",");l.internaldial.projectId=e[0],l.internaldial.clientEmail=e[1],l.internaldial.privateKey=e[2],l.internaldial.language=e[3],l.internaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.internaldial.appdata.split(",");l.internaldial.accesskeyid=e[0],l.internaldial.secretaccesskey=e[1],l.internaldial.lexregion=e[2],l.internaldial.botname=e[3],l.internaldial.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.internaldial.appdata.split(",");l.internaldial.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.internaldial.text=e.slice(1,e.length).join(",")}break;case"message":l.internaldial.text=l.internaldial.appdata;break;case"set":l.internaldial.name=l.internaldial.appdata.split("=")[0],l.internaldial.value=l.internaldial.appdata.split("=")[1];break;case"agi":l.internaldial.project=l.internaldial.appdata;break;default:{const e=l.internaldial.appdata.split(",");l.internaldial.user=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.internaldial.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.internaldial.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.internaldial.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}l.internaldial.type&&"outbound"===l.internaldial.type.toLowerCase()&&"outbounddial"===l.internaldial.appType.toLowerCase()&&(l.internaldial.prefix=l.internaldial.phone?l.internaldial.phone.split("$")[0]:void 0,l.internaldial.callerId=l.internaldial.callerID?"CALLERID(all)="+l.internaldial.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.internaldial.type&&"outbound"===l.internaldial.type.toLowerCase()&&"outboundDial"===l.internaldial.appType&&(l.internaldial.phone=o.cutdigits?(l.internaldial.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.internaldial.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.internaldial.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.internaldial.options+="U(xcally-mixmonitor-context)"):l.internaldial.options=l.internaldial.options.replace("U(xcally-mixmonitor-context)",""));if(l.internaldial.appType&&"custom"===l.internaldial.appType);else switch((l.internaldial.app||l.internaldial.appType).toLowerCase()){case"set":l.internaldial.appdata=l.internaldial.name+"="+l.internaldial.value;break;case"custom":break;default:e[0]=l.internaldial.user,e[1]=l.internaldial.timeout,e[2]=l.internaldial.options,e[3]=l.internaldial.url,l.internaldial.appdata=e.join(",")}f(l.internaldial)},l.closeDialog=f;const c=[{id:202,role:"agent"},{id:203,role:"telephone"}];let d=null;function f(t){e.hide(t)}i.hasRole("admin")?r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){l.users=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){d=e.rows||[]})).then((function(){const e=[];for(let t=0;t<c.length;t++)e.push(r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:c[t].id}).$promise);return t.all(e)})).then((function(e){const n=u().map(e,(function(e){return e&&e.rows?e.rows[0]:null})),a=[];for(let e=0;e<c.length;e++){const t=u().find(n,["sectionId",c[e].id]);if(t)if(t.autoAssociation){const t=[];d.forEach((function(n){n.role===c[e].role&&t.push(n)})),a.push({rows:t,count:t.length})}else a.push(r.userProfileResource.get({sectionId:t.id}).$promise)}return t.all(a)})).then((function(e){const t=[];let n=null;l.internaldial&&(n=u().find(d,{name:l.internaldial.user}));for(let n=0;n<e.length;n++){(e[n].rows||[]).forEach((function(e){t.push(e)}))}n&&!u().some(t,["resourceId",n.id])&&d.forEach((function(e){e.id===n.id&&(e.canSelect=!1,t.push(e))})),l.users=t})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETusers",msg:e.data?JSON.stringify(e.data):e.toString()})}))}ku.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const Du=ku;function xu(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}xu.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const Mu=xu;function Pu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.playback=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.playback.appdata)switch(l.playback.appType?l.playback.appType.toLowerCase():l.playback.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.playback.appdata.split(",");l.playback.key=e[0],l.playback.language=e[1],l.playback.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.playback.appdata.split(",");l.playback.projectId=e[0],l.playback.clientEmail=e[1],l.playback.privateKey=e[2],l.playback.language=e[3],l.playback.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.playback.appdata.split(",");l.playback.accesskeyid=e[0],l.playback.secretaccesskey=e[1],l.playback.lexregion=e[2],l.playback.botname=e[3],l.playback.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.playback.appdata.split(",");l.playback.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.playback.text=e.slice(1,e.length).join(",")}break;case"message":l.playback.text=l.playback.appdata;break;case"set":l.playback.name=l.playback.appdata.split("=")[0],l.playback.value=l.playback.appdata.split("=")[1];break;case"agi":l.playback.project=l.playback.appdata;break;default:{const e=l.playback.appdata.split(",");l.playback.appdata=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.playback.options=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.playback.type&&"outbound"===l.playback.type.toLowerCase()&&"outbounddial"===l.playback.appType.toLowerCase()&&(l.playback.prefix=l.playback.phone?l.playback.phone.split("$")[0]:void 0,l.playback.callerId=l.playback.callerID?"CALLERID(all)="+l.playback.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.playback.type&&"outbound"===l.playback.type.toLowerCase()&&"outboundDial"===l.playback.appType&&(l.playback.phone=o.cutdigits?(l.playback.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.playback.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.playback.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.playback.options+="U(xcally-mixmonitor-context)"):l.playback.options=l.playback.options.replace("U(xcally-mixmonitor-context)",""));if(l.playback.appType&&"custom"===l.playback.appType);else switch((l.playback.app||l.playback.appType).toLowerCase()){case"set":l.playback.appdata=l.playback.name+"="+l.playback.value;break;case"custom":break;default:e[0]=l.playback.appdata,e[1]=l.playback.options,l.playback.appdata=e.join(",")}c(l.playback)},l.closeDialog=c,i.hasRole("admin")?r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SOUNDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1007}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.sounds,{id:e.resourceId})}));let n=null;if(l.playback&&(n=u().find(l.sounds,{save_name:l.playback.appdata})),n&&!u().some(t,["id",n.id])){const e=u().find(l.sounds,{id:n.id});e.canSelect=!1,t.push(e)}l.sounds=t}))}else{const e=[];let t=null;l.playback&&(t=u().find(l.sounds,{save_name:l.playback.appdata}));for(let n=0;n<l.sounds.length;n++)t&&l.sounds[n].id===t.id&&(l.sounds[n].canSelect=!1,e.push(l.sounds[n]));l.sounds=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsounds",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Pu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const Ou=Pu;function Ru(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.text=e.slice(1,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.options=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.queue.URL=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.queue.sound=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.queue.timeout=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10),l.queue.agi=u().isEmpty(e[5])||isNaN(e[5])?e[5]:parseInt(e[5],10),l.queue.macro=u().isEmpty(e[6])||isNaN(e[6])?e[6]:parseInt(e[6],10),l.queue.gosub=u().isEmpty(e[7])||isNaN(e[7])?e[7]:parseInt(e[7],10),l.queue.rule=u().isEmpty(e[8])||isNaN(e[8])?e[8]:parseInt(e[8],10),l.queue.position=u().isEmpty(e[9])||isNaN(e[9])?e[9]:parseInt(e[9],10)}}function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.options,e[2]=l.queue.URL,e[3]=l.queue.sound,e[4]=l.queue.timeout,e[5]=l.queue.agi,e[6]=l.queue.macro,e[7]=l.queue.gosub,e[8]=l.queue.rule,e[9]=l.queue.position,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SOUNDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.sounds=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1007}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.sounds,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.sounds,{save_name:l.queue.sound})),n&&!u().some(t,["id",n.id])){const e=u().find(l.sounds,{id:n.id});e.canSelect=!1,t.push(e)}l.sounds=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.sounds,{save_name:l.queue.sound}));for(let n=0;n<l.sounds.length;n++)t&&l.sounds[n].id===t.id&&(l.sounds[n].canSelect=!1,e.push(l.sounds[n]));l.sounds=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsounds",msg:e.data?JSON.stringify(e.data):e.toString()})})),i.hasRole("admin")?r.voiceQueue.get({type:"inbound",fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.voiceQueue.get({type:"inbound",fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:401}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Ru.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const Nu=Ru;function Lu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.ringgroup=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.ringgroup.appdata)switch(l.ringgroup.appType?l.ringgroup.appType.toLowerCase():l.ringgroup.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.ringgroup.appdata.split(",");l.ringgroup.key=e[0],l.ringgroup.language=e[1],l.ringgroup.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.ringgroup.appdata.split(",");l.ringgroup.projectId=e[0],l.ringgroup.clientEmail=e[1],l.ringgroup.privateKey=e[2],l.ringgroup.language=e[3],l.ringgroup.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.ringgroup.appdata.split(",");l.ringgroup.accesskeyid=e[0],l.ringgroup.secretaccesskey=e[1],l.ringgroup.lexregion=e[2],l.ringgroup.botname=e[3],l.ringgroup.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.ringgroup.appdata.split(",");l.ringgroup.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.ringgroup.text=e.slice(1,e.length).join(",")}break;case"message":l.ringgroup.text=l.ringgroup.appdata;break;case"set":l.ringgroup.name=l.ringgroup.appdata.split("=")[0],l.ringgroup.value=l.ringgroup.appdata.split("=")[1];break;case"agi":l.ringgroup.project=l.ringgroup.appdata;break;default:{const e=l.ringgroup.appdata.split(",");l.ringgroup.multipleUsers=e[0].split("&"),l.ringgroup.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.ringgroup.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.ringgroup.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}l.ringgroup.type&&"outbound"===l.ringgroup.type.toLowerCase()&&"outbounddial"===l.ringgroup.appType.toLowerCase()&&(l.ringgroup.prefix=l.ringgroup.phone?l.ringgroup.phone.split("$")[0]:void 0,l.ringgroup.callerId=l.ringgroup.callerID?"CALLERID(all)="+l.ringgroup.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.ringgroup.type&&"outbound"===l.ringgroup.type.toLowerCase()&&"outboundDial"===l.ringgroup.appType&&(l.ringgroup.phone=o.cutdigits?(l.ringgroup.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.ringgroup.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.ringgroup.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.ringgroup.options+="U(xcally-mixmonitor-context)"):l.ringgroup.options=l.ringgroup.options.replace("U(xcally-mixmonitor-context)",""));if(l.ringgroup.appType&&"custom"===l.ringgroup.appType);else switch((l.ringgroup.app||l.ringgroup.appType).toLowerCase()){case"set":l.ringgroup.appdata=l.ringgroup.name+"="+l.ringgroup.value;break;case"custom":break;default:e[0]=l.ringgroup.multipleUsers.join("&"),e[1]=l.ringgroup.timeout,e[2]=l.ringgroup.options,e[3]=l.ringgroup.url,l.ringgroup.appdata=e.join(",")}f(l.ringgroup)},l.closeDialog=f;const c=[{id:202,role:"agent"},{id:203,role:"telephone"}];let d=null;function f(t){e.hide(t)}i.hasRole("admin")?r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){l.users=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name,role",sort:"name",nolimit:"true"}).$promise.then((function(e){d=e.rows||[]})).then((function(){const e=[];for(let t=0;t<c.length;t++)e.push(r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:c[t].id}).$promise);return t.all(e)})).then((function(e){const n=u().map(e,(function(e){return e&&e.rows?e.rows[0]:null})),a=[];for(let e=0;e<c.length;e++){const t=u().find(n,["sectionId",c[e].id]);if(t)if(t.autoAssociation){const t=[];d.forEach((function(n){n.role===c[e].role&&t.push(n)})),a.push({rows:t,count:t.length})}else a.push(r.userProfileResource.get({sectionId:t.id}).$promise)}return t.all(a)})).then((function(e){const t=[];let n=null;l.ringgroup&&(n=u().find(d,{name:l.ringgroup.multipleUsers}));for(let n=0;n<e.length;n++){(e[n].rows||[]).forEach((function(e){t.push(e)}))}n&&!u().some(t,["resourceId",n.id])&&d.forEach((function(e){e.id===n.id&&(e.canSelect=!1,t.push(e))})),l.users=t})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETusers",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Lu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const $u=Lu;function Uu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.set=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.set.appdata)switch(l.set.appType?l.set.appType.toLowerCase():l.set.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.set.appdata.split(",");l.set.key=e[0],l.set.language=e[1],l.set.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.set.appdata.split(",");l.set.projectId=e[0],l.set.clientEmail=e[1],l.set.privateKey=e[2],l.set.language=e[3],l.set.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.set.appdata.split(",");l.set.accesskeyid=e[0],l.set.secretaccesskey=e[1],l.set.lexregion=e[2],l.set.botname=e[3],l.set.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.set.appdata.split(",");l.set.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.set.text=e.slice(1,e.length).join(",")}break;case"message":l.set.text=l.set.appdata;break;case"set":l.set.name=l.set.appdata.split("=")[0],l.set.value=l.set.appdata.split("=")[1];break;case"agi":l.set.project=l.set.appdata;break;default:{const e=l.set.appdata.split("=");l.set.name=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.set.value=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.set.type&&"outbound"===l.set.type.toLowerCase()&&"outbounddial"===l.set.appType.toLowerCase()&&(l.set.prefix=l.set.phone?l.set.phone.split("$")[0]:void 0,l.set.callerId=l.set.callerID?"CALLERID(all)="+l.set.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.set.type&&"outbound"===l.set.type.toLowerCase()&&"outboundDial"===l.set.appType&&(l.set.phone=o.cutdigits?(l.set.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.set.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.set.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.set.options+="U(xcally-mixmonitor-context)"):l.set.options=l.set.options.replace("U(xcally-mixmonitor-context)",""));if(l.set.appType&&"custom"===l.set.appType);else switch((l.set.app||l.set.appType).toLowerCase()){case"set":l.set.appdata=l.set.name+"="+l.set.value;break;case"custom":break;default:e[0]=l.set.name,e[1]=l.set.value,l.set.appdata=e.join("=")}c(l.set)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.set&&(n=u().find(l.variables,{name:l.set.name})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.set&&(t=u().find(l.variables,{name:l.set.name}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Uu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const ju=Uu;function Fu(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.voicemail=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.voicemail.appdata)switch(l.voicemail.appType?l.voicemail.appType.toLowerCase():l.voicemail.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.voicemail.appdata.split(",");l.voicemail.key=e[0],l.voicemail.language=e[1],l.voicemail.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.voicemail.appdata.split(",");l.voicemail.projectId=e[0],l.voicemail.clientEmail=e[1],l.voicemail.privateKey=e[2],l.voicemail.language=e[3],l.voicemail.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.voicemail.appdata.split(",");l.voicemail.accesskeyid=e[0],l.voicemail.secretaccesskey=e[1],l.voicemail.lexregion=e[2],l.voicemail.botname=e[3],l.voicemail.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.voicemail.appdata.split(",");l.voicemail.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.voicemail.text=e.slice(1,e.length).join(",")}break;case"message":l.voicemail.text=l.voicemail.appdata;break;case"set":l.voicemail.name=l.voicemail.appdata.split("=")[0],l.voicemail.value=l.voicemail.appdata.split("=")[1];break;case"agi":l.voicemail.project=l.voicemail.appdata;break;default:{const e=l.voicemail.appdata.split(",");l.voicemail.voiceMail=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.voicemail.options=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.voicemail.type&&"outbound"===l.voicemail.type.toLowerCase()&&"outbounddial"===l.voicemail.appType.toLowerCase()&&(l.voicemail.prefix=l.voicemail.phone?l.voicemail.phone.split("$")[0]:void 0,l.voicemail.callerId=l.voicemail.callerID?"CALLERID(all)="+l.voicemail.callerID:void 0),l.saveInternalRouteApp=function(){l.errors=[];const e=[];l.voicemail.type&&"outbound"===l.voicemail.type.toLowerCase()&&"outboundDial"===l.voicemail.appType&&(l.voicemail.phone=o.cutdigits?(l.voicemail.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.voicemail.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.voicemail.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.voicemail.options+="U(xcally-mixmonitor-context)"):l.voicemail.options=l.voicemail.options.replace("U(xcally-mixmonitor-context)",""));if(l.voicemail.appType&&"custom"===l.voicemail.appType);else switch((l.voicemail.app||l.voicemail.appType).toLowerCase()){case"set":l.voicemail.appdata=l.voicemail.name+"="+l.voicemail.value;break;case"custom":break;default:e[0]=l.voicemail.voiceMail,e[1]=l.voicemail.options,l.voicemail.appdata=e.join(",")}c(l.voicemail)},l.closeDialog=c,i.hasRole("admin")?r.voiceMail.get({fields:"id,mailbox",sort:"mailbox",nolimit:"true"}).$promise.then((function(e){l.voiceMails=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VOICEMAILS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.voiceMail.get({fields:"id,mailbox",sort:"mailbox",nolimit:"true"}).$promise.then((function(e){l.voiceMails=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:406}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.voiceMails,{id:e.resourceId})}));let n=null;if(l.voicemail&&(n=u().find(l.voiceMails,{mailbox:l.voicemail.voiceMail})),n&&!u().some(t,["id",n.id])){const e=u().find(l.voiceMails,{id:n.id});e.canSelect=!1,t.push(e)}l.voiceMails=t}))}else{const e=[];let t=null;l.voicemail&&(t=u().find(l.voiceMails,{mailbox:l.voicemail.voiceMail}));for(let n=0;n<l.voiceMails.length;n++)t&&l.voiceMails[n].id===t.id&&(l.voiceMails[n].canSelect=!1,e.push(l.voiceMails[n]));l.voiceMails=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceMails",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Fu.$inject=["$mdDialog","$q","toasty","internalrouteApp","internalroute","api","Auth","crudPermissions"];const qu=Fu;function Yu(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.internalroute=d||e.params.internalroute||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.alert=l.info,m.gotoInternalRoutes=function(){e.go("app.voice.internalroutes",{},{reload:"app.voice.internalroutes"})},m.saveInternalRoute=function(){s.voiceExtension.update({id:m.internalroute.id},m.internalroute).$promise.then((function(){l.success({title:"InternalRoute updated!",msg:m.internalroute.name?m.internalroute.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceExtension",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.contexts=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.contexts,{id:e.resourceId})}));let n=null;if(m.internalroute&&(n=u().find(m.contexts,{name:m.internalroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(m.contexts,{id:n.id});e.canSelect=!1,t.push(e)}m.contexts=t})):s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){m.contexts=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Yu.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","internalroute","userProfileSection"];const Hu=Yu,Bu=n.p+"templates/main/apps/voice/views/internalroutes/create/dialog.html/dialog.html";function Gu(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.internalroutes=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="internalroutes",b.listOrder="",b.listOrderAsc=null,b.selectedInternalRoutes=[],b.query={fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",type:"internal",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,page:1},b.editstate=function(e){n.go("app.voice.internalroutes.edit",{id:e.id,internalroute:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("internalroute")+"?").htmlContent("<b>"+(e.name||"internalroute")+"</b> will be deleted.").ariaLabel("delete internalroute").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getInternalRoutes=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceExtension.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="InternalRoutes",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditInternalRoute=function(e,t){o.show({controller:"CreateOrEditInternalRouteDialogController",controllerAs:"vm",templateUrl:Bu,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{internalroute:t,internalroutes:b.internalroutes.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteInternalRoute=S,b.exportSelectedInternalRoutes=function(){const e=angular.copy(b.selectedInternalRoutes);return b.selectedInternalRoutes=[],e},b.deleteSelectedInternalRoutes=function(e){const t=o.confirm().title("Are you sure want to delete the selected internalroutes?").htmlContent("<b>"+b.selectedInternalRoutes.length+" selected</b> will be deleted.").ariaLabel("delete InternalRoutes").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedInternalRoutes.forEach((function(e){S(e)})),b.selectedInternalRoutes=[]}))},b.deselectInternalRoutes=function(){b.selectedInternalRoutes=[]},b.selectAllInternalRoutes=function(){b.selectedInternalRoutes=b.internalroutes.rows},g.hasRole("admin")?f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){b.contexts=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){b.contexts=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.contexts,{id:e.resourceId})}));let n=null;if(b.internalroute&&(n=u().find(b.contexts,{name:b.internalroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(b.contexts,{id:n.id});e.canSelect=!1,t.push(e)}b.contexts=t})):f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){b.contexts=e.rows||[]}))})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.internalroutes=e||{count:0,rows:[]}}function S(e){f.voiceExtension.delete({id:e.id}).$promise.then((function(){u().remove(b.internalroutes.rows,{id:e.id}),b.internalroutes.count-=1,b.internalroutes.rows.length||b.getInternalRoutes(),p.success({title:u().startCase("InternalRoute")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceExtension"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceExtension",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getInternalRoutes())}))}Gu.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","internalroutes","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Vu=Gu;function Wu(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_MUSICONHOLD",g.musiconhold=angular.copy(l),g.musiconholds=s,g.newMusicOnHold=!1,g.musiconhold||(g.musiconhold={mode:"files"},g.title="VOICE.NEW_MUSICONHOLD",g.newMusicOnHold=!0),g.addNewMusicOnHold=function(){g.errors=[],c.voiceMusicOnHold.save(g.musiconhold).$promise.then((function(e){g.musiconholds.unshift(e.toJSON()),i.success({title:"MusicOnHold properly created",msg:g.musiconhold.name?g.musiconhold.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMusicOnHold.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMusicOnHold.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveMusicOnHold=function(){g.errors=[],c.voiceMusicOnHold.update({id:g.musiconhold.id},g.musiconhold).$promise.then((function(e){const t=u().find(g.musiconholds,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"MusicOnHold properly saved!",msg:g.musiconhold.name?g.musiconhold.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMusicOnHold.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMusicOnHold.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteMusicOnHold=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The musiconhold will be deleted.").ariaLabel("Delete MusicOnHold").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceMusicOnHold.delete({id:g.musiconhold.id}).$promise.then((function(){u().remove(g.musiconholds,{id:g.musiconhold.id}),i.success({title:"MusicOnHold properly deleted!",msg:(g.musiconhold.name||"musiconhold")+" has been deleted!"}),h(g.musiconhold)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMusicOnHold.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMusicOnHold.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Wu.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","musiconholds","musiconhold","api","Auth","license","setting","crudPermissions"];const Qu=Wu,zu=n.p+"templates/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog.html";function Ku(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.musiconholdMohSounds=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.voiceMusicOnHold.getSounds(f.query,m).$promise}function g(e){c.voiceMusicOnHold.removeSound({id:n.params.id,id2:e.id}).$promise.then((function(){u().remove(f.musiconholdMohSounds.rows,{id:e.id}),f.musiconholdMohSounds.count-=1,f.musiconholdMohSounds.rows.length||p(),l.success({title:"MohSound deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETvoiceMusicOnHold"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceMusicOnHold",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.musiconhold={},f.musiconholdMohSounds={count:0,rows:[]},f.selectedMusicOnHoldMohSounds=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,save_name,converted_format,audio",limit:10,page:1},f.init=function(e,t){f.musiconhold=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.VoiceMusicOnHoldId=f.musiconhold.id,f.query.id=f.musiconhold.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the mohSound?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("mohSound #")+e.id||"mohSound")+"</b> will be deleted.").ariaLabel("delete mohSound").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.voiceMusicOnHoldDownload=function(e,t,n){return c.sound.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="mohSound"+e.id;const o=new Blob(n,{type:t.type});a=e.converted_format?e.save_name+"."+e.converted_format:e.save_name;const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMusicOnHold.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.success=m,f.getMusicOnHoldMohSounds=p,f.createOrEditMusicOnHoldMohSound=function(e,t){i.show({controller:"CreateOrEditMohSoundDialogController",controllerAs:"vm",templateUrl:zu,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{musiconhold:f.musiconhold,mohSound:t,mohSounds:f.musiconholdMohSounds.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedMusicOnHoldMohSounds=function(){const e=angular.copy(f.selectedMusicOnHoldMohSounds);return f.selectedMusicOnHoldMohSounds=[],e},f.deleteMusicOnHoldMohSound=g,f.deleteSelectedMusicOnHoldMohSounds=function(e){const t=i.confirm().title("Are you sure want to delete the selected mohSounds?").htmlContent("<b>"+f.selectedMusicOnHoldMohSounds.length+" selected</b> will be deleted.").ariaLabel("delete mohSounds").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedMusicOnHoldMohSounds.forEach((function(e){g(e)})),f.selectedMusicOnHoldMohSounds=[]}))},d.hasRole("admin")?c.sound.get({fields:"id,name",sort:"name"}).$promise.then((function(e){f.sounds=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SOUNDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.sound.get({fields:"id,name",sort:"name"}).$promise.then((function(e){f.sounds=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:f.currentUser.userProfileId,sectionId:1007}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(f.sounds,{id:e.resourceId})}));let n=null;if(f.musiconhold&&(n=u().find(f.sounds,{id:Number(f.musiconhold.id)})),n&&!u().some(t,["id",n.id])){const e=u().find(f.sounds,{id:n.id});e.canSelect=!1,t.push(e)}f.sounds=t}))}else{const e=[];let t=null;f.musiconhold&&(t=u().find(f.sounds,{id:Number(f.musiconhold.id)}));for(let n=0;n<f.sounds.length;n++)t&&f.sounds[n].id===t.id&&(f.sounds[n].canSelect=!1,e.push(f.sounds[n]));f.sounds=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsounds",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Ku.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Ju=Ku;function Xu(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_MOHSOUND",g.mohSound=angular.copy(l),g.mohSounds=s,g.newMohSound=!1,g.mohSound||(g.mohSound={},g.title="VOICE.NEW_MOHSOUND",g.newMohSound=!0),t.params.id&&(g.mohSound.VoiceMusicOnHoldId=t.params.id),g.addNewMohSound=function(){g.errors=[],c.voiceMusicOnHold.addSound({id:t.params.id},g.mohSound).$promise.then((function(e){g.mohSounds.unshift(e.toJSON()),i.success({title:"MohSound properly created",msg:g.mohSound.name?g.mohSound.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMusicOnHold.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMusicOnHold.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveMohSound=function(){g.errors=[],c.voiceMusicOnHold.update({id:g.mohSound.id},g.mohSound).$promise.then((function(e){const t=u().find(g.mohSounds,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"MohSound properly saved!",msg:g.mohSound.name?g.mohSound.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMusicOnHold.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMusicOnHold.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteMohSound=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The mohSound will be deleted.").ariaLabel("Delete MohSound").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceMusicOnHold.delete({id:g.mohSound.id}).$promise.then((function(){u().remove(g.mohSounds,{id:g.mohSound.id}),i.success({title:"MohSound properly deleted!",msg:(g.mohSound.name||"mohSound")+" has been deleted!"}),h(g.mohSound)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMusicOnHold.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMusicOnHold.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.sound.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.sounds=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SOUNDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.sound.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.sounds=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1007}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.sounds,{id:e.resourceId})}));let n=null;if(g.mohSound&&(n=u().find(g.sounds,{id:Number(g.mohSound.id)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.sounds,{id:n.id});e.canSelect=!1,t.push(e)}g.sounds=t}))}else{const e=[];let t=null;g.mohSound&&(t=u().find(g.sounds,{id:Number(g.mohSound.id)}));for(let n=0;n<g.sounds.length;n++)t&&g.sounds[n].id===t.id&&(g.sounds[n].canSelect=!1,e.push(g.sounds[n]));g.sounds=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsounds",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Xu.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","mohSounds","mohSound","api","Auth","license","setting","crudPermissions"];const Zu=Xu;function ed(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.musiconhold=u||e.params.musiconhold||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoMusicOnHolds=function(){e.go("app.voice.musiconholds",{},{reload:"app.voice.musiconholds"})},f.saveMusicOnHold=function(){s.voiceMusicOnHold.update({id:f.musiconhold.id},f.musiconhold).$promise.then((function(){l.success({title:"MusicOnHold updated!",msg:f.musiconhold.name?f.musiconhold.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceMusicOnHold",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}ed.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","musiconhold","userProfileSection"];const td=ed,nd=n.p+"templates/main/apps/voice/views/musiconholds/create/dialog.html/dialog.html";function ad(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;function y(e){b.musiconholds=e||{count:0,rows:[]}}function v(e){f.voiceMusicOnHold.delete({id:e.id}).$promise.then((function(){u().remove(b.musiconholds.rows,{id:e.id}),b.musiconholds.count-=1,b.musiconholds.rows.length||b.getMusicOnHolds(),p.success({title:u().startCase("MusicOnHold")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceMusicOnHold"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceMusicOnHold",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.musiconholds=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="musiconholds",b.listOrder="",b.listOrderAsc=null,b.selectedMusicOnHolds=[],b.query={fields:"createdAt,updatedAt,id,name,mode,directory,application,format,sort",defaultEntry:!1,limit:10,page:1},b.arraymode=u().keyBy([{option:"Files",value:"'files'"},{option:"Custom",value:"'custom'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysort=u().keyBy([{option:"Random",value:"'random'"},{option:"Alphabetical",value:"'alpha'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.voice.musiconholds.edit",{id:e.id,musiconhold:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("musiconhold")+"?").htmlContent("<b>"+(e.name||"musiconhold")+"</b> will be deleted.").ariaLabel("delete musiconhold").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){v(e)}),(function(){console.log("CANCEL")}))},b.success=y,b.getMusicOnHolds=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceMusicOnHold.get(b.query,y).$promise:(b.query.id=b.userProfile.id,b.query.section="MusicOnHolds",b.promise=f.userProfile.getResources(b.query,y).$promise)},b.createOrEditMusicOnHold=function(e,t){o.show({controller:"CreateOrEditMusicOnHoldDialogController",controllerAs:"vm",templateUrl:nd,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{musiconhold:t,musiconholds:b.musiconholds.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteMusicOnHold=v,b.exportSelectedMusicOnHolds=function(){const e=angular.copy(b.selectedMusicOnHolds);return b.selectedMusicOnHolds=[],e},b.deleteSelectedMusicOnHolds=function(e){const t=o.confirm().title("Are you sure want to delete the selected musiconholds?").htmlContent("<b>"+b.selectedMusicOnHolds.length+" selected</b> will be deleted.").ariaLabel("delete MusicOnHolds").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedMusicOnHolds.forEach((function(e){v(e)})),b.selectedMusicOnHolds=[]}))},b.deselectMusicOnHolds=function(){b.selectedMusicOnHolds=[]},b.selectAllMusicOnHolds=function(){b.selectedMusicOnHolds=b.musiconholds.rows}}ad.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","musiconholds","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const od=ad;function rd(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(){let e=2,t=[];t.push({type:"outbound",app:"Set",appdata:"CDR(type)=outbound",context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}),t.push({type:"outbound",app:"Set",appdata:"CDR(destination)="+(g.outboundroute.cutdigits?"${EXTEN:"+g.outboundroute.cutdigits+"}":"${EXTEN}"),context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}),t.push({type:"outbound",app:"Set",appdata:"XCALLY-MOTION-ANSWER=0",context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}),t.push({type:"outbound",app:"Set",appdata:"XCALLY-MOTION-PROGRESS=0",context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}),t.push({type:"outbound",app:"Set",appdata:"MONITOR_OPTIONS=ab",context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}),t.push({type:"outbound",app:"Set",appdata:"outboundrouteid="+g.outboundroute.id,context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}),void 0!==g.outboundroute.recordingFormat&&"none"!==g.outboundroute.recordingFormat&&(t.push({type:"outbound",app:"Set",appdata:"_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}",context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}),t.push({type:"outbound",app:"Set",appdata:"_XCALLY_MIXMONITOR_FORMAT="+g.outboundroute.recordingFormat||0,context:g.outboundroute.context,exten:g.outboundroute.exten,priority:e++,VoiceExtensionId:g.outboundroute.id}));for(let n=0,a=0;n<g.outboundrouteApps.rows.length;n++,a=0){const o=g.outboundrouteApps.rows[n],r=[],i=[];o.intervals="*,*,*,*"!==o.interval?[o.interval]:o.IntervalId?u().map(u().filter(g.intervals.rows,{IntervalId:o.IntervalId}),"interval"):[],o.context=g.outboundroute.context,o.exten=g.outboundroute.exten,o.type&&(o.type=o.type.toLowerCase()),void 0!==o.tag&&o.tag&&"--"!==o.tag&&r.push({type:o.type.toLowerCase(),app:"Set",appdata:"CDR(tag)="+o.tag,context:g.outboundroute.context,exten:g.outboundroute.exten,priority:o.intervals.length+e+a++,VoiceExtensionId:g.outboundroute.id}),o.callerID?r.push({type:o.type.toLowerCase(),app:"ExecIf",appdata:"$[${LEN(${PREFIX-CALLERIDALL})} > 0]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)="+o.callerID+")",context:g.outboundroute.context,exten:g.outboundroute.exten,priority:o.intervals.length+e+a++,VoiceExtensionId:g.outboundroute.id}):r.push({type:o.type.toLowerCase(),app:"ExecIf",appdata:"$[${LEN(${PREFIX-CALLERIDALL})} > 0]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No number available)",context:g.outboundroute.context,exten:g.outboundroute.exten,priority:o.intervals.length+e+a++,VoiceExtensionId:g.outboundroute.id});for(let t=0;t<o.intervals.length;t++){const n=e+o.intervals.length,a=t===o.intervals.length-1?e+r.length+i.length+2:e+t+1;r.splice(t,0,{type:"outbound",app:"GotoIfTime",appdata:o.intervals[t]+"?"+g.outboundroute.context+",${EXTEN},"+n+":"+g.outboundroute.context+",${EXTEN},"+a,exten:g.outboundroute.exten,context:g.outboundroute.context,priority:e+t,VoiceExtensionId:g.outboundroute.id})}if("outboundDial"===o.appType){const e=u().find(g.apps,{appType:"outboundDial"});if(e&&e.fields){const t={},n=o.appdata.split(","),a=[];for(let o=0,r=e.fields.length;o<r;o++)if(void 0!==e.fields[o].param)switch(e.fields[o].name){case"trunk":t.trunk=n[e.fields[o].param].split("/")[1],t.phone=n[e.fields[o].param].split("/")[2],t.prefix=t.phone?t.phone.split("$")[0]:void 0,t.phone=g.outboundroute.cutdigits?(t.prefix||"")+"${EXTEN:"+g.outboundroute.cutdigits+"}":(t.prefix||"")+"${EXTEN}",a[e.fields[o].param]=["SIP",t.trunk,t.phone].join("/");break;case"options":t.options=n[e.fields[o].param],"none"!==g.outboundroute.recordingFormat?t.options.indexOf("U(xcally-mixmonitor-context)")<0&&(t.options+="U(xcally-mixmonitor-context)"):t.options=t.options.replace("U(xcally-mixmonitor-context)",""),a[e.fields[o].param]=t.options;break;default:a[e.fields[o].param]=n[e.fields[o].param]}o.appdata=a.join(",")}}o.priority=r.length?u().last(r).priority+1:e,e=(i.length?u().last(i).priority:o.priority)+1,t=u().concat(t,r,[o],i)}t.push({type:"outbound",app:"Hangup",exten:g.outboundroute.exten,context:g.outboundroute.context,priority:e,VoiceExtensionId:g.outboundroute.id}),c.voiceExtension.addApplications({id:g.outboundroute.id},u().sortBy(t,"priority")).$promise.then((function(e){g.outboundrouteApps.rows=e.rows})).catch((function(e){console.error(e)}))}function _(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_OUTBOUNDROUTE",g.outboundroute=angular.copy(l),g.outboundroutes=s,g.newOutboundRoute=!1,g.outboundrouteApps={count:0,rows:[]},g.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",type:"Outbound",types:["always","custom","list"],fields:[],isApp:!1},{app:"Dial",appType:"outboundDial",context:"from-sip",type:"Outbound",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,extraApi:[{name:"trunks",route:"trunk",filters:{fields:"name",sort:"name"}},{name:"tags",route:"tag",filters:{fields:"name",sort:"name",nolimit:!0}}],fields:[{title:"Trunk",name:"trunk",type:"apiselect",values:"trunks",value:"trunk.name",option:"trunk.name",required:!0,param:0},{title:"Caller_ID",name:"callerID",type:"text",ngPattern:"/&quot;(.*)&quot;\\s&lt;(.*?)&gt;$/",help:!0},{title:"Prefix",name:"prefix",type:"text"},{title:"Tags",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",defaultValues:[{value:"'--'",option:"None"}]},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:null,type:"Outbound",appType:"custom",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Application_Name",name:"app",type:"text",required:!0,param:0},{title:"Arguments",name:"appdata",type:"text",param:1}]}],["app"]),{isApp:!1}),g.outboundroute||(g.outboundroute={appdata:"Outbound Call",type:"outbound",context:"from-sip",recordingFormat:"none"},g.title="VOICE.NEW_OUTBOUNDROUTE",g.newOutboundRoute=!0),g.addNewOutboundRoute=function(){g.errors=[],c.voiceExtension.save(g.outboundroute).$promise.then((function(e){g.outboundroutes.unshift(e.toJSON()),i.success({title:"OutboundRoute properly created",msg:g.outboundroute.name?g.outboundroute.name+" has been created!":""}),_(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveOutboundRoute=function(){g.errors=[],c.voiceExtension.update({id:g.outboundroute.id},g.outboundroute).$promise.then((function(e){const t=u().find(g.outboundroutes,{id:e.id});t&&(u().merge(t,u().pick(e.toJSON(),u().keys(t))),c.voiceExtension.get({sort:"priority",VoiceExtensionId:t.id,isApp:!0,nolimit:!0}).$promise.then((function(e){g.outboundrouteApps=e,h()}))),i.success({title:"OutboundRoute properly saved!",msg:g.outboundroute.name?g.outboundroute.name+" has been saved!":""}),_(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteOutboundRoute=function(e){c.voicePrefix.get({VoiceExtensionId:l.id}).$promise.then((function(t){if(t&&t.rows&&t.rows.length>0)return i.error({title:"Outbound route not deleted!",msg:"You can't remove an outbound route associated to an out prefix"});{g.errors=[];const t=a.confirm().title("Are you sure?").content("The outboundroute will be deleted.").ariaLabel("Delete OutboundRoute").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceExtension.delete({id:g.outboundroute.id}).$promise.then((function(){u().remove(g.outboundroutes,{id:g.outboundroute.id}),i.success({title:"OutboundRoute properly deleted!",msg:(g.outboundroute.name||"outboundroute")+" has been deleted!"}),_(g.outboundroute)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceExtension.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceExtension.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))}}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.rewriteRouting=h,g.closeDialog=_,d.hasRole("admin")?c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){g.contexts=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){g.contexts=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.contexts,{id:e.resourceId})}));let n=null;if(g.outboundroute&&(n=u().find(g.contexts,{name:g.outboundroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(g.contexts,{id:n.id});e.canSelect=!1,t.push(e)}g.contexts=t})):c.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){g.contexts=e.rows||[]}))})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}rd.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","outboundroutes","outboundroute","api","Auth","license","setting","crudPermissions"];const id=rd,sd=n.p+"templates/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog.html",ld=n.p+"templates/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog.html",cd=n.p+"templates/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog.html";dd.$inject=["api","$mdDialog","$document","toasty","socket","$scope","Auth"];const ud={custom:sd,interval:ld,outbounddial:cd};function dd(e,t,n,a,o,r,i){const s=this;function l(e,o){if(s.outboundrouteApps.rows.length){const r=s.outboundrouteApps.rows[o]?s.outboundrouteApps.rows[o]:s.outboundrouteApps.rows[0],i=(r.appType||r.app).toLowerCase();t.show({controller:`EditoutboundApp${i}DialogController`,controllerAs:"vm",templateUrl:ud[i],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{outboundrouteApp:r,outboundroute:s.outboundroute,crudPermissions:s.crudPermissions}}).then((function(e){e&&(e.id?s.outboundrouteApps.rows[o]=e:s.outboundrouteApps.rows.splice(o,0,e),c())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function c(t){let n=2,a=[];a.push({type:"outbound",app:"Set",appdata:"CDR(type)=outbound",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:"CDR(destination)="+(s.outboundroute.cutdigits?"${EXTEN:"+s.outboundroute.cutdigits+"}":"${EXTEN}"),context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:"CDR(routeid)="+s.outboundroute.id,context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id});const o=n++;a.push({type:"outbound",app:"ExecIf",appdata:"$[${LEN(${CDR(prefix)})} > 0]?Goto("+(o+2)+"):Goto("+(o+1)+")",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:o,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:s.outboundroute.cutdigits?"CDR(prefix)=${EXTEN:0:"+s.outboundroute.cutdigits+"}":"CDR(prefix)=noprefix",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:"XCALLY-MOTION-ANSWER=0",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:"XCALLY-MOTION-PROGRESS=0",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:"MONITOR_OPTIONS=ab",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:"outboundrouteid="+s.outboundroute.id,context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),void 0===s.outboundroute.recordingFormat&&"none"!==s.outboundroute.recordingFormat&&(a.push({type:"outbound",app:"Set",appdata:"_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id}),a.push({type:"outbound",app:"Set",appdata:"_XCALLY_MIXMONITOR_FORMAT="+s.outboundroute.recordingFormat||0,context:s.outboundroute.context,exten:s.outboundroute.exten,priority:n++,VoiceExtensionId:s.outboundroute.id})),s.outboundrouteApps.rows=s.outboundrouteApps.rows.filter((e=>"custom"!==e.appType&&e.appdata||"custom"===e.appType&&e.app));for(let e=0,o=0;e<s.outboundrouteApps.rows.length;e++,o=0){const r=s.outboundrouteApps.rows[e],i=[],l=[];r.intervals="*,*,*,*"!==r.interval?[r.interval]:r.IntervalId?u().map(u().filter(s.intervals.rows,{IntervalId:r.IntervalId}),"interval"):[],r.context=s.outboundroute.context,r.exten=s.outboundroute.exten,r.type&&(r.type=r.type.toLowerCase()),void 0!==r.tag&&r.tag&&"--"!==r.tag&&i.push({type:r.type.toLowerCase(),app:"Set",appdata:"CDR(tag)="+r.tag,context:s.outboundroute.context,exten:s.outboundroute.exten,priority:r.intervals.length+n+o++,VoiceExtensionId:s.outboundroute.id}),r.callerID?i.push({type:r.type.toLowerCase(),app:"ExecIf",appdata:"$[${LEN(${PREFIX-CALLERIDALL})} > 0]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)="+r.callerID+")",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:r.intervals.length+n+o++,VoiceExtensionId:s.outboundroute.id}):i.push({type:r.type.toLowerCase(),app:"ExecIf",appdata:"$[${LEN(${PREFIX-CALLERIDALL})} > 0]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No number available)",context:s.outboundroute.context,exten:s.outboundroute.exten,priority:r.intervals.length+n+o++,VoiceExtensionId:s.outboundroute.id});for(let e=0;e<r.intervals.length;e++){const t=n+r.intervals.length,a=e===r.intervals.length-1?n+i.length+l.length+2:n+e+1;i.splice(e,0,{type:"outbound",app:"GotoIfTime",appdata:r.intervals[e]+"?"+s.outboundroute.context+",${EXTEN},"+t+":"+s.outboundroute.context+",${EXTEN},"+a,exten:s.outboundroute.exten,context:s.outboundroute.context,priority:n+e,VoiceExtensionId:s.outboundroute.id})}if(t&&"outboundDial"===r.appType){const e=u().find(s.apps,{appType:"outboundDial"});if(e&&e.fields){const t={},n=r.appdata.split(","),a=[];for(let o=0,r=e.fields.length;o<r;o++)if(void 0!==e.fields[o].param)switch(e.fields[o].name){case"trunk":t.trunk=n[e.fields[o].param].split("/")[1],t.phone=n[e.fields[o].param].split("/")[2],t.prefix=t.phone?t.phone.split("$")[0]:void 0,t.phone=s.outboundroute.cutdigits?(t.prefix||"")+"${EXTEN:"+s.outboundroute.cutdigits+"}":(t.prefix||"")+"${EXTEN}",a[e.fields[o].param]=["SIP",t.trunk,t.phone].join("/");break;case"options":t.options=n[e.fields[o].param],"none"!==s.outboundroute.recordingFormat?t.options.indexOf("U(xcally-mixmonitor-context)")<0&&(t.options+="U(xcally-mixmonitor-context)"):t.options=t.options.replace("U(xcally-mixmonitor-context)",""),a[e.fields[o].param]=t.options;break;default:a[e.fields[o].param]=n[e.fields[o].param]}r.appdata=a.join(",")}}r.priority=i.length?u().last(i).priority+1:n,n=(l.length?u().last(l).priority:r.priority)+1,a=u().concat(a,i,[r],l)}a.push({type:"outbound",app:"Hangup",exten:s.outboundroute.exten,context:s.outboundroute.context,priority:n,VoiceExtensionId:s.outboundroute.id}),e.voiceExtension.addApplications({id:s.outboundroute.id},u().sortBy(a,"priority")).$promise.then((function(e){s.outboundrouteApps.rows=e.rows})).catch((function(e){console.error(e)}))}function d(e){s.outboundrouteApps=e||{count:0,rows:[]}}s.currentUser=i.getCurrentUser(),s.outboundroute={},s.outboundrouteApps={count:0,rows:[]},s.selectedOutboundRouteApps=[],s.crudPermissions,s.query={sort:"priority"},s.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",type:"Outbound",types:["always","custom","list"],fields:[],isApp:!1},{app:"Dial",appType:"outboundDial",context:"from-sip",type:"Outbound",icon:"icon-apps",interval:"*,*,*,*",options:"xX",isApp:!0,extraApi:[{name:"trunks",field:{name:"trunk",key:"name"},route:"trunk",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1011}},{name:"tags",field:{name:"tag",key:"name"},route:"tag",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1008}}],fields:[{title:"Trunk",name:"trunk",type:"apiselect",values:"trunks",value:"trunk.name",option:"trunk.name",required:!0,param:0},{title:"Caller_ID",name:"callerID",type:"text",help:!0},{title:"Prefix",name:"prefix",type:"text"},{title:"Tags",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",defaultValues:[{value:"'--'",option:"None"}]},{title:"Timeout",name:"timeout",type:"number",min:0,param:1},{title:"Options",name:"options",type:"text",param:2},{title:"Url",name:"url",type:"text",param:3}]},{app:null,type:"Outbound",appType:"custom",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Application_Name",name:"app",type:"text",required:!0,param:0},{title:"Arguments",name:"appdata",type:"text",param:1}]}],["app"]),{isApp:!1}),s.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},s.applications={group:{name:"opt2",put:"opt1"},animation:100,onAdd:function(e){l(e,e.newIndex)},onSort:function(){c()}},s.init=function(e,t){s.outboundroute=e,s.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},s.applications.disabled=!s.crudPermissions.canEdit,o.on("voiceExtension:update",s.onVoiceExtensionUpdate),s.query.VoiceExtensionId=e.id,s.query.isApp=!0,s.query.nolimit=!0,s.getOutboundRouteApps(),s.getIntervals()},s.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){s.outboundrouteApps.rows.splice(n,1),c()}),(function(){console.log("CANCEL")}))},s.getOutboundRouteApps=function(){s.promise=e.voiceExtension.get(s.query,d).$promise},s.editOutboundRouteApp=l,s.editInterval=function(e,a){if(s.outboundrouteApps.rows.length){const o=s.outboundrouteApps.rows[a]?s.outboundrouteApps.rows[a]:s.outboundrouteApps.rows[0];t.show({controller:"EditoutboundAppintervalDialogController",controllerAs:"vm",templateUrl:ld,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:s.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,c())}))}},s.deleteOutboundRouteApp=function(e){u().remove(s.outboundrouteApps.rows,{id:e.id}),c(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},s.deleteSelectedOutboundRouteApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+s.selectedOutboundRouteApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){s.selectedOutboundRouteApps.forEach((function(e){u().remove(s.outboundrouteApps.rows,{id:e.id})})),s.selectedOutboundRouteApps=[],c()}))},s.rewriteRouting=c,s.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){s.intervals=e})).catch((function(e){console.error(e)}))},s.onVoiceExtensionUpdate=function(e){e.VoiceExtensionId===s.outboundroute.id&&c(!0)},r.$on("$destroy",(function(){o.removeAllListeners("voiceExtension:update")}))}const fd=dd;function md(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.custom=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.custom.appdata)switch(l.custom.appType?l.custom.appType.toLowerCase():l.custom.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.custom.appdata.split(",");l.custom.key=e[0],l.custom.language=e[1],l.custom.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.custom.appdata.split(",");l.custom.projectId=e[0],l.custom.clientEmail=e[1],l.custom.privateKey=e[2],l.custom.language=e[3],l.custom.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.custom.appdata.split(",");l.custom.accesskeyid=e[0],l.custom.secretaccesskey=e[1],l.custom.lexregion=e[2],l.custom.botname=e[3],l.custom.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.custom.appdata.split(",");l.custom.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.custom.text=e.slice(1,e.length).join(",")}break;case"message":l.custom.text=l.custom.appdata;break;case"set":l.custom.name=l.custom.appdata.split("=")[0],l.custom.value=l.custom.appdata.split("=")[1];break;case"agi":l.custom.project=l.custom.appdata;break;default:{const e=l.custom.appdata.split(",");l.custom.app=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.custom.appdata=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}function c(t){e.hide(t)}l.custom.type&&"outbound"===l.custom.type.toLowerCase()&&"outbounddial"===l.custom.appType.toLowerCase()&&(l.custom.prefix=l.custom.phone?l.custom.phone.split("$")[0]:void 0,l.custom.callerId=l.custom.callerID?"CALLERID(all)="+l.custom.callerID:void 0),l.saveOutboundRouteApp=function(){l.errors=[];const e=[];l.custom.type&&"outbound"===l.custom.type.toLowerCase()&&"outboundDial"===l.custom.appType&&(l.custom.phone=o.cutdigits?(l.custom.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.custom.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.custom.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.custom.options+="U(xcally-mixmonitor-context)"):l.custom.options=l.custom.options.replace("U(xcally-mixmonitor-context)",""));if(l.custom.appType&&"custom"===l.custom.appType);else switch((l.custom.app||l.custom.appType).toLowerCase()){case"set":l.custom.appdata=l.custom.name+"="+l.custom.value;break;case"custom":break;default:e[0]=l.custom.app,e[1]=l.custom.appdata,l.custom.appdata=e.join(",")}c(l.custom)},l.closeDialog=c}md.$inject=["$mdDialog","$q","toasty","outboundrouteApp","outboundroute","api","Auth","crudPermissions"];const pd=md;function gd(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}gd.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const hd=gd;function _d(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="VOICE.EDIT_"+(a.appType||a.app).toUpperCase(),l.outbounddial=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.outbounddial.appdata)switch(l.outbounddial.appType?l.outbounddial.appType.toLowerCase():l.outbounddial.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.outbounddial.appdata.split(",");l.outbounddial.key=e[0],l.outbounddial.language=e[1],l.outbounddial.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.outbounddial.appdata.split(",");l.outbounddial.projectId=e[0],l.outbounddial.clientEmail=e[1],l.outbounddial.privateKey=e[2],l.outbounddial.language=e[3],l.outbounddial.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.outbounddial.appdata.split(",");l.outbounddial.accesskeyid=e[0],l.outbounddial.secretaccesskey=e[1],l.outbounddial.lexregion=e[2],l.outbounddial.botname=e[3],l.outbounddial.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.outbounddial.appdata.split(",");l.outbounddial.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.outbounddial.text=e.slice(1,e.length).join(",")}break;case"message":l.outbounddial.text=l.outbounddial.appdata;break;case"set":l.outbounddial.name=l.outbounddial.appdata.split("=")[0],l.outbounddial.value=l.outbounddial.appdata.split("=")[1];break;case"agi":l.outbounddial.project=l.outbounddial.appdata;break;default:{const e=l.outbounddial.appdata.split(",");l.outbounddial.trunk=e[0].split("/")[1],l.outbounddial.phone=e[0].split("/")[2],l.outbounddial.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.outbounddial.options=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.outbounddial.url=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10)}}function c(t){e.hide(t)}l.outbounddial.type&&"outbound"===l.outbounddial.type.toLowerCase()&&"outbounddial"===l.outbounddial.appType.toLowerCase()&&(l.outbounddial.prefix=l.outbounddial.phone?l.outbounddial.phone.split("$")[0]:void 0,l.outbounddial.callerId=l.outbounddial.callerID?"CALLERID(all)="+l.outbounddial.callerID:void 0),l.saveOutboundRouteApp=function(){l.errors=[];const e=[];l.outbounddial.type&&"outbound"===l.outbounddial.type.toLowerCase()&&"outboundDial"===l.outbounddial.appType&&(l.outbounddial.phone=o.cutdigits?(l.outbounddial.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.outbounddial.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.outbounddial.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.outbounddial.options+="U(xcally-mixmonitor-context)"):l.outbounddial.options=l.outbounddial.options.replace("U(xcally-mixmonitor-context)",""));if(l.outbounddial.appType&&"custom"===l.outbounddial.appType);else switch((l.outbounddial.app||l.outbounddial.appType).toLowerCase()){case"set":l.outbounddial.appdata=l.outbounddial.name+"="+l.outbounddial.value;break;case"custom":break;default:e[0]=["SIP",l.outbounddial.trunk,l.outbounddial.phone].join("/"),e[1]=l.outbounddial.timeout,e[2]=l.outbounddial.options,e[3]=l.outbounddial.url,l.outbounddial.appdata=e.join(",")}c(l.outbounddial)},l.closeDialog=c,i.hasRole("admin")?r.trunk.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.trunks=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.trunk.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.trunks=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.trunks,{id:e.resourceId})}));let n=null;if(l.outbounddial&&(n=u().find(l.trunks,{name:l.outbounddial.trunk})),n&&!u().some(t,["id",n.id])){const e=u().find(l.trunks,{id:n.id});e.canSelect=!1,t.push(e)}l.trunks=t}))}else{const e=[];let t=null;l.outbounddial&&(t=u().find(l.trunks,{name:l.outbounddial.trunk}));for(let n=0;n<l.trunks.length;n++)t&&l.trunks[n].id===t.id&&(l.trunks[n].canSelect=!1,e.push(l.trunks[n]));l.trunks=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),i.hasRole("admin")?r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1008}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.tags,{id:e.resourceId})}));let n=null;if(l.outbounddial&&(n=u().find(l.tags,{name:l.outbounddial.tag})),n&&!u().some(t,["id",n.id])){const e=u().find(l.tags,{id:n.id});e.canSelect=!1,t.push(e)}l.tags=t}))}else{const e=[];let t=null;l.outbounddial&&(t=u().find(l.tags,{name:l.outbounddial.tag}));for(let n=0;n<l.tags.length;n++)t&&l.tags[n].id===t.id&&(l.tags[n].canSelect=!1,e.push(l.tags[n]));l.tags=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtags",msg:e.data?JSON.stringify(e.data):e.toString()})}))}_d.$inject=["$mdDialog","$q","toasty","outboundrouteApp","outboundroute","api","Auth","crudPermissions"];const bd=_d;function yd(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.outboundroute=d||e.params.outboundroute||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.alert=l.info,m.gotoOutboundRoutes=function(){e.go("app.voice.outboundroutes",{},{reload:"app.voice.outboundroutes"})},m.saveOutboundRoute=function(){s.voiceExtension.update({id:m.outboundroute.id},m.outboundroute).$promise.then((function(){l.success({title:"OutboundRoute updated!",msg:m.outboundroute.name?m.outboundroute.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceExtension",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.contexts=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.contexts,{id:e.resourceId})}));let n=null;if(m.outboundroute&&(n=u().find(m.contexts,{name:m.outboundroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(m.contexts,{id:n.id});e.canSelect=!1,t.push(e)}m.contexts=t})):s.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){m.contexts=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}yd.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","outboundroute","userProfileSection"];const vd=yd,Ad=n.p+"templates/main/apps/voice/views/outboundroutes/create/dialog.html/dialog.html";function Sd(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.outboundroutes=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="outboundroutes",b.listOrder="",b.listOrderAsc=null,b.selectedOutboundRoutes=[],b.query={fields:"createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description",type:"outbound",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,page:1},b.arrayrecordingFormat=u().keyBy([{option:"none",value:"'none'"},{option:"wav",value:"'wav'"},{option:"wav49",value:"'WAV'"},{option:"gsm",value:"'gsm'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.voice.outboundroutes.edit",{id:e.id,outboundroute:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("outboundroute")+"?").htmlContent("<b>"+(e.name||"outboundroute")+"</b> will be deleted.").ariaLabel("delete outboundroute").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getOutboundRoutes=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceExtension.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="OutboundRoutes",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditOutboundRoute=function(e,t){o.show({controller:"CreateOrEditOutboundRouteDialogController",controllerAs:"vm",templateUrl:Ad,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{outboundroute:t,outboundroutes:b.outboundroutes.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteOutboundRoute=S,b.exportSelectedOutboundRoutes=function(){const e=angular.copy(b.selectedOutboundRoutes);return b.selectedOutboundRoutes=[],e},b.deleteSelectedOutboundRoutes=function(e){const t=o.confirm().title("Are you sure want to delete the selected outboundroutes?").htmlContent("<b>"+b.selectedOutboundRoutes.length+" selected</b> will be deleted.").ariaLabel("delete OutboundRoutes").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedOutboundRoutes.forEach((function(e){S(e)})),b.selectedOutboundRoutes=[]}))},b.deselectOutboundRoutes=function(){b.selectedOutboundRoutes=[]},b.selectAllOutboundRoutes=function(){b.selectedOutboundRoutes=b.outboundroutes.rows},g.hasRole("admin")?f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){b.contexts=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){b.contexts=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.contexts,{id:e.resourceId})}));let n=null;if(b.outboundroute&&(n=u().find(b.contexts,{name:b.outboundroute.context})),n&&!u().some(t,["id",n.id])){const e=u().find(b.contexts,{id:n.id});e.canSelect=!1,t.push(e)}b.contexts=t})):f.voiceContext.get({fields:"id,name",sort:"name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){b.contexts=e.rows||[]}))})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.outboundroutes=e||{count:0,rows:[]}}function S(e){f.voicePrefix.get({VoiceExtensionId:e.id}).$promise.then((function(t){if(t&&t.rows&&t.rows.length>0)return p.error({title:"Outbound route not deleted!",msg:"You can't remove an outbound route associated to an out prefix"});f.voiceExtension.delete({id:e.id}).$promise.then((function(){u().remove(b.outboundroutes.rows,{id:e.id}),b.outboundroutes.count-=1,b.outboundroutes.rows.length||b.getOutboundRoutes(),p.success({title:u().startCase("OutboundRoute")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceExtension"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceExtension",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getOutboundRoutes())}))}Sd.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","outboundroutes","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const wd=Sd;function Ed(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_VOICEMAIL",g.voicemail=angular.copy(l),g.voicemails=s,g.newVoicemail=!1,g.voicemail||(g.voicemail={attach:"no"},g.title="VOICE.NEW_VOICEMAIL",g.newVoicemail=!0),g.addNewVoicemail=function(){g.errors=[],c.voiceMail.save(g.voicemail).$promise.then((function(e){g.voicemails.unshift(e.toJSON()),i.success({title:"Voicemail properly created",msg:g.voicemail.name?g.voicemail.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMail.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMail.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveVoicemail=function(){g.errors=[],c.voiceMail.update({id:g.voicemail.id},g.voicemail).$promise.then((function(e){const t=u().find(g.voicemails,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Voicemail properly saved!",msg:g.voicemail.name?g.voicemail.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMail.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMail.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteVoicemail=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The voicemail will be deleted.").ariaLabel("Delete Voicemail").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceMail.delete({id:g.voicemail.id}).$promise.then((function(){u().remove(g.voicemails,{id:g.voicemail.id}),i.success({title:"Voicemail properly deleted!",msg:(g.voicemail.name||"voicemail")+" has been deleted!"}),h(g.voicemail)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceMail.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMail.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Ed.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","voicemails","voicemail","api","Auth","license","setting","crudPermissions"];const Cd=Ed;function Td(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.voicemailMessages=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.voiceMail.getMessages(f.query,m).$promise}function g(e){c.voiceMailMessage.delete({id:e.id}).$promise.then((function(){u().remove(f.voicemailMessages.rows,{id:e.id}),f.voicemailMessages.count-=1,f.voicemailMessages.rows.length||p(),l.success({title:"Message deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETvoiceMail"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceMail",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.voicemail={},f.voicemailMessages={count:0,rows:[]},f.selectedVoicemailMessages=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id",sort:"-stamp",limit:10,page:1},f.init=function(e,t){f.voicemail=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.id=f.voicemail.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the message?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("message #")+e.id||"message")+"</b> will be deleted.").ariaLabel("delete message").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.voiceMailMessageDownload=function(e,t,n){return c.voiceMailMessage.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="message"+e.id;const o=new Blob(n,{type:t.type});a=e.msg_id+".wav";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceMail.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.success=m,f.getVoicemailMessages=p,f.exportSelectedVoicemailMessages=function(){const e=angular.copy(f.selectedVoicemailMessages);return f.selectedVoicemailMessages=[],e},f.deleteVoicemailMessage=g,f.deleteSelectedVoicemailMessages=function(e){const t=i.confirm().title("Are you sure want to delete the selected messages?").htmlContent("<b>"+f.selectedVoicemailMessages.length+" selected</b> will be deleted.").ariaLabel("delete messages").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedVoicemailMessages.forEach((function(e){g(e)})),f.selectedVoicemailMessages=[]}))}}Td.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Id=Td;function kd(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.voicemail=d||e.params.voicemail||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.alert=l.info,m.gotoVoicemails=function(){e.go("app.voice.voicemails",{},{reload:"app.voice.voicemails"})},m.saveVoicemail=function(){s.voiceMail.update({id:m.voicemail.id},m.voicemail).$promise.then((function(){l.success({title:"Voicemail updated!",msg:m.voicemail.name?m.voicemail.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceMail",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.contexts,{id:e.resourceId})}));let n=null;if(m.voicemail&&(n=u().find(m.contexts,{name:m.voicemail.context})),n&&!u().some(t,["id",n.id])){const e=u().find(m.contexts,{id:n.id});e.canSelect=!1,t.push(e)}m.contexts=t})):s.voiceContext.get({fields:"id,name",sort:"name",defaultEntry:!0}).$promise.then((function(e){m.contexts=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}kd.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","voicemail","userProfileSection"];const Dd=kd,xd=n.p+"templates/main/apps/voice/views/voicemails/create/dialog.html/dialog.html";function Md(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.voicemails=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="voicemails",b.listOrder="",b.listOrderAsc=null,b.selectedVoicemails=[],b.query={fields:"createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg",sort:"-updatedAt",limit:10,page:1},b.arrayattach=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayenvelope=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraydelete=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.voice.voicemails.edit",{id:e.id,voicemail:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("voicemail")+"?").htmlContent("<b>"+(e.name||"voicemail")+"</b> will be deleted.").ariaLabel("delete voicemail").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getVoicemails=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceMail.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Voicemails",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditVoicemail=function(e,t){o.show({controller:"CreateOrEditVoicemailDialogController",controllerAs:"vm",templateUrl:xd,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{voicemail:t,voicemails:b.voicemails.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteVoicemail=S,b.exportSelectedVoicemails=function(){const e=angular.copy(b.selectedVoicemails);return b.selectedVoicemails=[],e},b.deleteSelectedVoicemails=function(e){const t=o.confirm().title("Are you sure want to delete the selected voicemails?").htmlContent("<b>"+b.selectedVoicemails.length+" selected</b> will be deleted.").ariaLabel("delete Voicemails").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedVoicemails.forEach((function(e){S(e)})),b.selectedVoicemails=[]}))},b.deselectVoicemails=function(){b.selectedVoicemails=[]},b.selectAllVoicemails=function(){b.selectedVoicemails=b.voicemails.rows};let y=!0,v=1;function A(e){b.voicemails=e||{count:0,rows:[]}}function S(e){f.voiceMail.delete({id:e.id}).$promise.then((function(){u().remove(b.voicemails.rows,{id:e.id}),b.voicemails.count-=1,b.voicemails.rows.length||b.getVoicemails(),p.success({title:u().startCase("Voicemail")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceMail"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceMail",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getVoicemails())}))}Md.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","voicemails","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Pd=Md;function Od(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_VOICEPREFIX",g.voicePrefix=angular.copy(l),g.voicePrefixes=s,g.newvoicePrefix=!1,g.voicePrefix||(g.voicePrefix={},g.title="VOICE.NEW_VOICEPREFIX",g.newvoicePrefix=!0),g.addNewvoicePrefix=function(){g.errors=[],c.voicePrefix.save(g.voicePrefix).$promise.then((function(e){g.voicePrefixes.unshift(e.toJSON()),i.success({title:"voicePrefix properly created",msg:g.voicePrefix.name?g.voicePrefix.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voicePrefix.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voicePrefix.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.savevoicePrefix=function(){g.errors=[],c.voicePrefix.update({id:g.voicePrefix.id},g.voicePrefix).$promise.then((function(e){const t=u().find(g.voicePrefixes,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"voicePrefix properly saved!",msg:g.voicePrefix.name?g.voicePrefix.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voicePrefix.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voicePrefix.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deletevoicePrefix=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The voicePrefix will be deleted.").ariaLabel("Delete voicePrefix").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voicePrefix.delete({id:g.voicePrefix.id}).$promise.then((function(){u().remove(g.voicePrefixes,{id:g.voicePrefix.id}),i.success({title:"voicePrefix properly deleted!",msg:(g.voicePrefix.name||"voicePrefix")+" has been deleted!"}),h(g.voicePrefix)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voicePrefix.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voicePrefix.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){g.outboundRoutes=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){g.outboundRoutes=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:403}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.outboundRoutes,{id:e.resourceId})}));let n=null;if(g.voicePrefix&&(n=u().find(g.outboundRoutes,{id:Number(g.voicePrefix.VoiceExtensionId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.outboundRoutes,{id:n.id});e.canSelect=!1,t.push(e)}g.outboundRoutes=t}))}else{const e=[];let t=null;g.voicePrefix&&(t=u().find(g.outboundRoutes,{id:Number(g.voicePrefix.VoiceExtensionId)}));for(let n=0;n<g.outboundRoutes.length;n++)t&&g.outboundRoutes[n].id===t.id&&(g.outboundRoutes[n].canSelect=!1,e.push(g.outboundRoutes[n]));g.outboundRoutes=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GEToutboundRoutes",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Od.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","voicePrefixes","voicePrefix","api","Auth","license","setting","crudPermissions"];const Rd=Od;function Nd(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.voicePrefix.getAgents({id:d.voicePrefix.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UservoicePrefix?"penalty "+e.UservoicePrefix.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.voicePrefix=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.voicePrefix.removeAgents({id:d.voicePrefix.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.voicePrefix.addAgents({id:d.voicePrefix.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}Nd.$inject=["$mdDialog","$q","toasty","api","voicePrefix","voicePrefixes","realtime","$translate","Auth","crudPermissions"];const Ld=Nd,$d=n.p+"templates/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog.html",Ud=n.p+"templates/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd.html";function jd(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.voicePrefixes=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="voicePrefixes",b.listOrder="",b.listOrderAsc=null,b.selectedVoicePrefixes=[],b.query={fields:"createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditvoicePrefixDialogController",controllerAs:"vm",templateUrl:$d,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{voicePrefix:e,voicePrefixes:b.voicePrefixes.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"voicePrefixagentaddController",controllerAs:"vm",templateUrl:Ud,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{voicePrefix:e,voicePrefixes:b.voicePrefixes?b.voicePrefixes.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("voicePrefix")+"?").htmlContent("<b>"+(e.name||"voicePrefix")+"</b> will be deleted.").ariaLabel("delete voicePrefix").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getVoicePrefixes=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voicePrefix.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="VoicePrefixes",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditvoicePrefix=function(e,t){o.show({controller:"CreateOrEditvoicePrefixDialogController",controllerAs:"vm",templateUrl:$d,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{voicePrefix:t,voicePrefixes:b.voicePrefixes.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deletevoicePrefix=S,b.exportSelectedVoicePrefixes=function(){const e=angular.copy(b.selectedVoicePrefixes);return b.selectedVoicePrefixes=[],e},b.deleteSelectedVoicePrefixes=function(e){const t=o.confirm().title("Are you sure want to delete the selected voicePrefixes?").htmlContent("<b>"+b.selectedVoicePrefixes.length+" selected</b> will be deleted.").ariaLabel("delete voicePrefixs").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedVoicePrefixes.forEach((function(e){S(e)})),b.selectedVoicePrefixes=[]}))},b.deselectVoicePrefixes=function(){b.selectedVoicePrefixes=[]},b.selectAllVoicePrefixes=function(){b.selectedVoicePrefixes=b.voicePrefixes.rows},g.hasRole("admin")?f.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){b.outboundRoutes=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){b.outboundRoutes=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:403}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.outboundRoutes,{id:e.resourceId})}));let n=null;if(b.voicePrefix&&(n=u().find(b.outboundRoutes,{id:Number(b.voicePrefix.VoiceExtensionId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.outboundRoutes,{id:n.id});e.canSelect=!1,t.push(e)}b.outboundRoutes=t}))}else{const e=[];let t=null;b.voicePrefix&&(t=u().find(b.outboundRoutes,{id:Number(b.voicePrefix.VoiceExtensionId)}));for(let n=0;n<b.outboundRoutes.length;n++)t&&b.outboundRoutes[n].id===t.id&&(b.outboundRoutes[n].canSelect=!1,e.push(b.outboundRoutes[n]));b.outboundRoutes=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GEToutboundRoutes",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.voicePrefixes=e||{count:0,rows:[]}}function S(e){f.voicePrefix.delete({id:e.id}).$promise.then((function(){u().remove(b.voicePrefixes.rows,{id:e.id}),b.voicePrefixes.count-=1,b.voicePrefixes.rows.length||b.getVoicePrefixes(),p.success({title:u().startCase("voicePrefix")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoicePrefix"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoicePrefix",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getVoicePrefixes())}))}jd.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","voicePrefixes","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Fd=jd;function qd(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_VOICEQUEUE",g.voiceQueue=angular.copy(l),g.voiceQueues=s,g.newVoiceQueue=!1,g.voiceQueue||(g.voiceQueue={type:"inbound",strategy:"ringall",timeout:15,retry:2,random_periodic_announce:"no",announce_holdtime:"no",announce_position:"no",reportholdtime:"no",autopause:"no",ringinuse:"no",timeoutrestart:"no",setinterfacevar:"no",setqueuevar:"no",setqueueentryvar:"no"},g.title="VOICE.NEW_VOICEQUEUE",g.newVoiceQueue=!0),g.addNewVoiceQueue=function(){g.errors=[],c.voiceQueue.save(g.voiceQueue).$promise.then((function(e){g.voiceQueues.unshift(e.toJSON()),i.success({title:"VoiceQueue properly created",msg:g.voiceQueue.name?g.voiceQueue.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveVoiceQueue=function(){g.errors=[],c.voiceQueue.update({id:g.voiceQueue.id},g.voiceQueue).$promise.then((function(e){const t=u().find(g.voiceQueues,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"VoiceQueue properly saved!",msg:g.voiceQueue.name?g.voiceQueue.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteVoiceQueue=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The voiceQueue will be deleted.").ariaLabel("Delete VoiceQueue").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceQueue.delete({id:g.voiceQueue.id}).$promise.then((function(){u().remove(g.voiceQueues,{id:g.voiceQueue.id}),i.success({title:"VoiceQueue properly deleted!",msg:(g.voiceQueue.name||"voiceQueue")+" has been deleted!"}),h(g.voiceQueue)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}qd.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","voiceQueues","voiceQueue","api","Auth","license","setting","crudPermissions"];const Yd=qd;function Hd(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.voiceQueue.getAgents({id:d.voiceQueue.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserVoiceQueue?"penalty "+e.UserVoiceQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.voiceQueue=o,d.crudPermissions=c,d.penalty=0,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceWith(d.selectedItems,d.startingSelectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));return(r=e,t((function(e,t){u().isEmpty(r)?e():a.voiceQueue.removeAgents({id:d.voiceQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(n,o){if(u().isEmpty(e))n();else{const r=[],i=u().groupBy(e,"penalty");for(let t=0;t<Object.keys(i).length;t++){const n=Object.keys(i)[t],o=u().filter(e,["penalty",n]);r.push(a.voiceQueue.addAgents({id:d.voiceQueue.id,ids:u().map(o,"id"),penalty:u().trim(n,"penalty "),realtime:d.realtime||!1}).$promise)}t.all(r).then((function(){n()})).catch((function(e){o(e)}))}}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"penalty",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(e,t){t?e.forEach((function(e){e.penalty=void 0})):e.forEach((function(e){e.penalty="penalty "+d.penalty}));const n=u().xorWith(d.startingSelectedItems,d.selectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));d.pendingChanges=!u().isEmpty(n)}}}Hd.$inject=["$mdDialog","$q","toasty","api","voiceQueue","voiceQueues","realtime","$translate","Auth","crudPermissions"];const Bd=Hd;function Gd(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.voiceQueue.getTeams({id:l.voiceQueue.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.voiceQueue=o,l.crudPermissions=s,l.penalty=0,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"penalty",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(e,t){t?e.forEach((function(e){e.penalty=void 0})):e.forEach((function(e){e.penalty="penalty "+l.penalty}));const n=u().xorWith(l.startingSelectedItems,l.selectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));l.pendingChanges=!u().isEmpty(n)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceWith(l.selectedItems,l.startingSelectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));return(r=e,t((function(e,t){u().isEmpty(r)?e():a.voiceQueue.removeTeams({id:l.voiceQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){if(!u().isEmpty(e)){const o=u().map(e,(function(e){return{id:e.id,penalty:u().trim(e.penalty,"penalty ")}}));return a.voiceQueue.addTeams({id:l.voiceQueue.id,teams:o}).$promise.then((function(){t()})).catch((function(e){n(e)}))}t()}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}Gd.$inject=["$mdDialog","$q","toasty","api","voiceQueue","$translate","Auth","crudPermissions"];const Vd=Gd,Wd=n.p+"templates/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html/teamadd.html";function Qd(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.voiceQueue=d||e.params.voiceQueue||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.teamadddialog=function(e,t){n.show({controller:"VoiceQueueteamaddController",controllerAs:"vm",templateUrl:Wd,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{voiceQueue:e,voiceQueues:m.voiceQueues?m.voiceQueues.rows:[],crudPermissions:m.crudPermissions}})},m.agentadddialog=function(e,t){n.show({controller:"VoiceQueueagentaddController",controllerAs:"vm",templateUrl:Il,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{voiceQueue:e,voiceQueues:m.voiceQueues?m.voiceQueues.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.gotogoto=function(){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:411}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;n&&n.enabled?e.go("app.voice.realtime.queues",{}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.voice.realtime.queues",{})},m.alert=l.info,m.gotoVoiceQueues=function(){e.go("app.voice.voiceQueues",{},{reload:"app.voice.voiceQueues"})},m.saveVoiceQueue=function(){s.voiceQueue.update({id:m.voiceQueue.id},m.voiceQueue).$promise.then((function(){l.success({title:"VoiceQueue updated!",msg:m.voiceQueue.name?m.voiceQueue.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceMusicOnHold.get({fields:"id,name",nolimit:"true"}).$promise.then((function(e){m.musiconholds=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_MUSICONHOLDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceMusicOnHold.get({fields:"id,name",nolimit:"true"}).$promise.then((function(e){m.musiconholds=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:407}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.musiconholds,{id:e.resourceId})}));let n=null;if(m.voiceQueue&&(n=u().find(m.musiconholds,{name:m.voiceQueue.musiconhold})),n&&!u().some(t,["id",n.id])){const e=u().find(m.musiconholds,{id:n.id});e.canSelect=!1,t.push(e)}m.musiconholds=t})):s.voiceMusicOnHold.get({fields:"id,name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){m.musiconholds=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmusiconholds",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.sounds=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SOUNDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.sound.get({fields:"id,name,save_name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.sounds=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1007}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.sounds,{id:e.resourceId})}));m.sounds.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.sounds=t}))}else m.sounds=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsounds",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Qd.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","voiceQueue","userProfileSection"];const zd=Qd;function Kd(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.voiceQueues=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="voiceQueues",b.listOrder="",b.listOrderAsc=null,b.selectedVoiceQueues=[],b.query={fields:"createdAt,updatedAt,id,name,type,strategy,timeout,maxlen,retry,wrapuptime,weight,joinempty,leavewhenempty,musiconhold,announce,description,periodic_announce,queue_reporthold,queue_youarenext,queue_thereare,queue_callswaiting,queue_holdtime,queue_minutes,queue_minute,queue_seconds,queue_thankyou,announce_frequency,min_announce_frequency,periodic_announce_frequency,random_periodic_announce,announce_holdtime,announce_position,announce_position_limit,reportholdtime,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,servicelevel,mandatoryDisposition,mandatoryDispositionPauseId",type:"inbound",sort:"-updatedAt",channel:"voice",limit:10,page:1},b.arraystrategy=u().keyBy([{option:"Ringall",value:"'ringall'"},{option:"Round Robin Memory",value:"'rrmemory'"},{option:"Least Recent",value:"'leastrecent'"},{option:"Fewest Calls",value:"'fewestcalls'"},{option:"Random",value:"'random'"},{option:"Linear",value:"'linear'"},{option:"Weight Random",value:"'wrandom'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayjoinempty=u().keyBy([{option:"no",value:"'no'",disabled:"vm.voiceQueue.joinempty.length === 1  && vm.voiceQueue.joinempty[0] === 'no'"},{option:"yes",value:"'yes'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'yes'"},{option:"strict",value:"'strict'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'strict'"},{option:"loose",value:"'loose'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'loose'"},{option:"paused",value:"'paused'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'paused'"},{option:"penalty",value:"'penalty'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'penalty'"},{option:"inuse",value:"'inuse'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'inuse'"},{option:"ringing",value:"'ringing'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'ringing'"},{option:"unavailable",value:"'unavailable'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'unavailable'"},{option:"invalid",value:"'invalid'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'invalid'"},{option:"unknown",value:"'unknown'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'unknown'"},{option:"wrapup",value:"'wrapup'",disabled:"vm.voiceQueue.joinempty.length === 1 && vm.voiceQueue.joinempty[0] === 'wrapup'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayleavewhenempty=u().keyBy([{option:"no",value:"'no'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'no'"},{option:"yes",value:"'yes'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'yes'"},{option:"strict",value:"'strict'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'strict'"},{option:"loose",value:"'loose'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'loose'"},{option:"paused",value:"'paused'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'paused'"},{option:"penalty",value:"'penalty'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'penalty'"},{option:"inuse",value:"'inuse'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'inuse'"},{option:"ringing",value:"'ringing'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'ringing'"},{option:"unavailable",value:"'unavailable'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'unavailable'"},{option:"invalid",value:"'invalid'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'invalid'"},{option:"unknown",value:"'unknown'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'unknown'"},{option:"wrapup",value:"'wrapup'",disabled:"vm.voiceQueue.leavewhenempty.length === 1 && vm.voiceQueue.leavewhenempty[0] === 'wrapup'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayrandom_periodic_announce=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayannounce_holdtime=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"},{option:"Once",value:"'once'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayannounce_position=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"},{option:"Limit",value:"'limit'"},{option:"More",value:"'more'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayreportholdtime=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayautopause=u().keyBy([{option:"Yes",value:"'all'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayringinuse=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytimeoutrestart=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraymonitor_format=u().keyBy([{option:"Inactive",value:"''"},{option:"wav",value:"'wav'"},{option:"wav49",value:"'wav49'"},{option:"gsm",value:"'gsm'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysetinterfacevar=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysetqueuevar=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysetqueueentryvar=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.voice.voiceQueues.edit",{id:e.id,voiceQueue:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"VoiceQueueteamaddController",controllerAs:"vm",templateUrl:Wd,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{voiceQueue:e,voiceQueues:b.voiceQueues?b.voiceQueues.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"VoiceQueueagentaddController",controllerAs:"vm",templateUrl:Il,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{voiceQueue:e,voiceQueues:b.voiceQueues?b.voiceQueues.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("voiceQueue")+"?").htmlContent("<b>"+(e.name||"voiceQueue")+"</b> will be deleted.").ariaLabel("delete voiceQueue").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:411}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.voice.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.voice.realtime.queues",{})},b.success=A,b.getVoiceQueues=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="VoiceQueues",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditVoiceQueue=function(e,t){o.show({controller:"CreateOrEditVoiceQueueDialogController",controllerAs:"vm",templateUrl:Tl,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{voiceQueue:t,voiceQueues:b.voiceQueues.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteVoiceQueue=S,b.exportSelectedVoiceQueues=function(){const e=angular.copy(b.selectedVoiceQueues);return b.selectedVoiceQueues=[],e},b.deleteSelectedVoiceQueues=function(e){const t=o.confirm().title("Are you sure want to delete the selected voiceQueues?").htmlContent("<b>"+b.selectedVoiceQueues.length+" selected</b> will be deleted.").ariaLabel("delete VoiceQueues").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedVoiceQueues.forEach((function(e){S(e)})),b.selectedVoiceQueues=[]}))},b.deselectVoiceQueues=function(){b.selectedVoiceQueues=[]},b.selectAllVoiceQueues=function(){b.selectedVoiceQueues=b.voiceQueues.rows};let y=!0,v=1;function A(e){b.voiceQueues=e||{count:0,rows:[]}}function S(e){f.voiceQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.voiceQueues.rows,{id:e.id}),b.voiceQueues.count-=1,b.voiceQueues.rows.length||b.getVoiceQueues(),p.success({title:u().startCase("VoiceQueue")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getVoiceQueues())}))}Kd.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","voiceQueues","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Jd=Kd;function Xd(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VOICE.EDIT_VOICERECORDING",g.voiceRecording=angular.copy(l),g.voiceRecordings=s,g.newVoiceRecording=!1,g.voiceRecording||(g.voiceRecording={},g.title="VOICE.NEW_VOICERECORDING",g.newVoiceRecording=!0),g.addNewVoiceRecording=function(){g.errors=[],c.voiceRecording.save(g.voiceRecording).$promise.then((function(e){g.voiceRecordings.unshift(e.toJSON()),i.success({title:"VoiceRecording properly created",msg:g.voiceRecording.name?g.voiceRecording.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceRecording.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceRecording.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveVoiceRecording=function(){g.errors=[],c.voiceRecording.update({id:g.voiceRecording.id},g.voiceRecording).$promise.then((function(e){const t=u().find(g.voiceRecordings,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"VoiceRecording properly saved!",msg:g.voiceRecording.name?g.voiceRecording.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceRecording.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceRecording.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteVoiceRecording=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The voiceRecording will be deleted.").ariaLabel("Delete VoiceRecording").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceRecording.delete({id:g.voiceRecording.id}).$promise.then((function(){u().remove(g.voiceRecordings,{id:g.voiceRecording.id}),i.success({title:"VoiceRecording properly deleted!",msg:(g.voiceRecording.name||"voiceRecording")+" has been deleted!"}),h(g.voiceRecording)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceRecording.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceRecording.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Xd.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","voiceRecordings","voiceRecording","api","Auth","license","setting","crudPermissions"];const Zd=Xd;const ef=function(){const e=this;e.voiceRecording={},e.init=function(t){e.voiceRecording=t}};function tf(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.voiceRecording=u||e.params.voiceRecording||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoVoiceRecordings=function(){e.go("app.voice.voiceRecordings",{},{reload:"app.voice.voiceRecordings"})},f.saveVoiceRecording=function(){s.voiceRecording.update({id:f.voiceRecording.id},f.voiceRecording).$promise.then((function(){l.success({title:"VoiceRecording updated!",msg:f.voiceRecording.name?f.voiceRecording.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceRecording",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}tf.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","voiceRecording","userProfileSection"];const nf=tf,af=n.p+"templates/main/apps/voice/views/voiceRecordings/create/dialog.html/dialog.html";function of(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;function y(e){return f.voiceRecording.runTranscribe({id:e.id,runSentiment:!1}).$promise.then((function(t){p.success({title:s.instant("VOICE.RUNTRANSCRIBE_VOICERECORDING"),msg:s.instant("VOICE.RUNTRANSCRIBE_VOICERECORDING")+" succeded!"}),e.transcribeStatus=t.transcribeStatus})).catch((function(e){p.error({title:s.instant("VOICE.RUNTRANSCRIBE_VOICERECORDING"),msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))}function v(e){return f.voiceRecording.runTranscribe({id:e.id,runSentiment:!0}).$promise.then((function(t){p.success({title:s.instant("VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING"),msg:s.instant("VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING")+" succeded!"}),e.transcribeStatus=t.transcribeStatus})).catch((function(e){p.error({title:s.instant("VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING"),msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))}function A(e){return f.voiceRecording.runTranscribe({id:e.id,runSentiment:!0}).$promise.then((function(){p.success({title:s.instant("VOICE.RUNSENTIMENT_VOICERECORDING"),msg:s.instant("VOICE.RUNSENTIMENT_VOICERECORDING")+" succeded!"})})).catch((function(e){p.error({title:s.instant("VOICE.RUNSENTIMENT_VOICERECORDING"),msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))}b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.voiceRecordings=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="voiceRecordings",b.listOrder="",b.listOrderAsc=null,b.selectedVoiceRecordings=[],b.query={fields:"createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed",sort:"-updatedAt",createdAt:"@msUtils.firstLastDayMonth()",limit:10,page:1},b.query.createdAt=m.firstLastDayMonth(),b.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE_RANGE"}],b.editstate=function(e){n.go("app.voice.voiceRecordings.edit",{id:e.id,voiceRecording:e,crudPermissions:b.crudPermissions})},b.runtranscriberuntranscribesentiment=y,b.runtranscribesentimentruntranscribesentiment=v,b.runsentimentruntranscribesentiment=A,b.downloadtranscribefile2=function(e){let t=!1;const n=u().isNil(e.format)?e.value.substring(e.value.lastIndexOf(".")):e.format;return t=".mp4"===n,f.voiceRecording.downloadTranscribe({id:e.id}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=e.uniqueid+".txt";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else"404"===String(e.status)&&!1===t?p.info({title:s.instant("APP.CANT_DOWNLOAD_THIS_FILE"),msg:s.instant("APP.WRONG_EXTENSION")}):"404"===String(e.status)?p.info({title:s.instant("APP.CANT_DOWNLOAD_THIS_FILE"),msg:s.instant("APP.FILE_NOT_FOUND")}):p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceRecording.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},b.downloadfile2=function(e){let t=!1;const n=u().isNil(e.format)?e.value.substring(e.value.lastIndexOf(".")):e.format;return t=".mp4"===n,f.voiceRecording.download({id:e.id}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=function(e){let t=e.lastIndexOf("/")>-1?e.substring(e.lastIndexOf("/")+1):e.lastIndexOf("\\")>-1?e.substring(e.lastIndexOf("\\")+1):e;return t=t.substring(0,t.lastIndexOf(".")),t}(e.value)+e.format;const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else"404"===String(e.status)&&!1===t?p.info({title:s.instant("APP.CANT_DOWNLOAD_THIS_FILE"),msg:s.instant("APP.WRONG_EXTENSION")}):"404"===String(e.status)?p.info({title:s.instant("APP.CANT_DOWNLOAD_THIS_FILE"),msg:s.instant("APP.FILE_NOT_FOUND")}):p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceRecording.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("voiceRecording")+"?").htmlContent("<b>"+(e.name||"voiceRecording")+"</b> will be deleted.").ariaLabel("delete voiceRecording").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){C(e)}),(function(){console.log("CANCEL")}))},b.success=E,b.getVoiceRecordings=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceRecording.get(b.query,E).$promise:(b.query.id=b.userProfile.id,b.query.section="VoiceRecordings",b.promise=f.userProfile.getResources(b.query,E).$promise)},b.createOrEditVoiceRecording=function(e,t){o.show({controller:"CreateOrEditVoiceRecordingDialogController",controllerAs:"vm",templateUrl:af,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{voiceRecording:t,voiceRecordings:b.voiceRecordings.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteVoiceRecording=C,b.exportSelectedVoiceRecordings=function(){const e=angular.copy(b.selectedVoiceRecordings);return b.selectedVoiceRecordings=[],e},b.deleteSelectedVoiceRecordings=function(e){const t=o.confirm().title("Are you sure want to delete the selected voiceRecordings?").htmlContent("<b>"+b.selectedVoiceRecordings.length+" selected</b> will be deleted.").ariaLabel("delete VoiceRecordings").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedVoiceRecordings.forEach((function(e){C(e)})),b.selectedVoiceRecordings=[]}))},b.deselectVoiceRecordings=function(){b.selectedVoiceRecordings=[]},b.selectAllVoiceRecordings=function(){b.selectedVoiceRecordings=b.voiceRecordings.rows},b.runtranscribeSelectedVoiceRecordings=function(){b.selectedVoiceRecordings.forEach((function(e){y(e)})),b.selectedVoiceRecordings=[]},b.runtranscribesentimentSelectedVoiceRecordings=function(){b.selectedVoiceRecordings.forEach((function(e){v(e)})),b.selectedVoiceRecordings=[]},b.runsentimentSelectedVoiceRecordings=function(){b.selectedVoiceRecordings.forEach((function(e){A(e)})),b.selectedVoiceRecordings=[]};let S=!0,w=1;function E(e){b.voiceRecordings=e||{count:0,rows:[]}}function C(e){f.voiceRecording.delete({id:e.id}).$promise.then((function(){u().remove(b.voiceRecordings.rows,{id:e.id}),b.voiceRecordings.count-=1,b.voiceRecordings.rows.length||b.getVoiceRecordings(),p.success({title:u().startCase("VoiceRecording")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceRecording"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceRecording",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){S?i((function(){S=!1})):(t||(w=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=w),b.getVoiceRecordings())}))}of.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","voiceRecordings","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const rf=of,sf=n.p+"templates/main/apps/voice/views/voiceQueues/voiceQueues.html/voiceQueues.html",lf=n.p+"templates/main/apps/voice/views/voiceQueues/edit/view.html/view.html",cf=n.p+"templates/main/apps/voice/views/inboundroutes/inboundroutes.html/inboundroutes.html",uf=n.p+"templates/main/apps/voice/views/inboundroutes/edit/view.html/view.html",df=n.p+"templates/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes.html",ff=n.p+"templates/main/apps/voice/views/outboundroutes/edit/view.html/view.html",mf=n.p+"templates/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes.html",pf=n.p+"templates/main/apps/voice/views/internalroutes/edit/view.html/view.html",gf=n.p+"templates/main/apps/voice/views/contexts/contexts.html/contexts.html",hf=n.p+"templates/main/apps/voice/views/voicemails/voicemails.html/voicemails.html",_f=n.p+"templates/main/apps/voice/views/voicemails/edit/view.html/view.html",bf=n.p+"templates/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds.html",yf=n.p+"templates/main/apps/voice/views/musiconholds/edit/view.html/view.html",vf=n.p+"templates/main/apps/voice/views/voiceRecordings/voiceRecordings.html/voiceRecordings.html",Af=n.p+"templates/main/apps/voice/views/voiceRecordings/edit/view.html/view.html",Sf=n.p+"templates/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies.html",wf=n.p+"templates/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes.html";function Ef(e,t){e.state("app.voice",{abstract:!0,url:"/voice"}).state("app.voice.voiceQueues",{url:"/voiceQueues",views:{"content@app":{templateUrl:sf,controller:"VoiceQueuesController as vm"}},resolve:{voiceQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{fields:"createdAt,updatedAt,id,name,type,strategy,timeout,maxlen,retry,wrapuptime,weight,joinempty,leavewhenempty,musiconhold,announce,description,periodic_announce,queue_reporthold,queue_youarenext,queue_thereare,queue_callswaiting,queue_holdtime,queue_minutes,queue_minute,queue_seconds,queue_thankyou,announce_frequency,min_announce_frequency,periodic_announce_frequency,random_periodic_announce,announce_holdtime,announce_position,announce_position_limit,reportholdtime,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,servicelevel,mandatoryDisposition,mandatoryDispositionPauseId",type:"inbound",sort:"-updatedAt",channel:"voice",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",fields:"createdAt,updatedAt,id,name,type,strategy,timeout,maxlen,retry,wrapuptime,weight,joinempty,leavewhenempty,musiconhold,announce,description,periodic_announce,queue_reporthold,queue_youarenext,queue_thereare,queue_callswaiting,queue_holdtime,queue_minutes,queue_minute,queue_seconds,queue_thankyou,announce_frequency,min_announce_frequency,periodic_announce_frequency,random_periodic_announce,announce_holdtime,announce_position,announce_position_limit,reportholdtime,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,servicelevel,mandatoryDisposition,mandatoryDispositionPauseId",type:"inbound",sort:"-updatedAt",channel:"voice",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:401})}]},authenticate:!0,permissionId:401,bodyClass:"voice"}).state("app.voice.voiceQueues.edit",{url:"/:id?tab",params:{voiceQueue:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:lf,controller:"VoiceQueueController as vm"}},resolve:{voiceQueue:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceQueue@get",{fields:"createdAt,updatedAt,id,name,type,strategy,timeout,maxlen,retry,wrapuptime,weight,joinempty,leavewhenempty,musiconhold,announce,description,periodic_announce,queue_reporthold,queue_youarenext,queue_thereare,queue_callswaiting,queue_holdtime,queue_minutes,queue_minute,queue_seconds,queue_thankyou,announce_frequency,min_announce_frequency,periodic_announce_frequency,random_periodic_announce,announce_holdtime,announce_position,announce_position_limit,reportholdtime,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,servicelevel,mandatoryDisposition,mandatoryDispositionPauseId",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:401})}]},authenticate:!0,permissionId:401,bodyClass:"voice"}).state("app.voice.inboundroutes",{url:"/inboundroutes",views:{"content@app":{templateUrl:cf,controller:"InboundRoutesController as vm"}},resolve:{inboundroutes:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceExtension@get",{fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",type:"inbound",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"InboundRoutes",fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",type:"inbound",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:402})}]},authenticate:!0,permissionId:402,bodyClass:"voice"}).state("app.voice.inboundroutes.edit",{url:"/:id?tab",params:{inboundroute:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:uf,controller:"InboundRouteController as vm"}},resolve:{inboundroute:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceExtension@get",{fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:402})}]},authenticate:!0,permissionId:402,bodyClass:"voice"}).state("app.voice.outboundroutes",{url:"/outboundroutes",views:{"content@app":{templateUrl:df,controller:"OutboundRoutesController as vm"}},resolve:{outboundroutes:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceExtension@get",{fields:"createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description",type:"outbound",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"OutboundRoutes",fields:"createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description",type:"outbound",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:403})}]},authenticate:!0,permissionId:403,bodyClass:"voice"}).state("app.voice.outboundroutes.edit",{url:"/:id?tab",params:{outboundroute:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:ff,controller:"OutboundRouteController as vm"}},resolve:{outboundroute:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceExtension@get",{fields:"createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:403})}]},authenticate:!0,permissionId:403,bodyClass:"voice"}).state("app.voice.internalroutes",{url:"/internalroutes",views:{"content@app":{templateUrl:mf,controller:"InternalRoutesController as vm"}},resolve:{internalroutes:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceExtension@get",{fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",type:"internal",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"InternalRoutes",fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",type:"internal",sort:"-updatedAt",VoiceExtensionId:"null",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:404})}]},authenticate:!0,permissionId:404,bodyClass:"voice"}).state("app.voice.internalroutes.edit",{url:"/:id?tab",params:{internalroute:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:pf,controller:"InternalRouteController as vm"}},resolve:{internalroute:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceExtension@get",{fields:"createdAt,updatedAt,id,appdata,type,exten,context,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:404})}]},authenticate:!0,permissionId:404,bodyClass:"voice"}).state("app.voice.contexts",{url:"/contexts",views:{"content@app":{templateUrl:gf,controller:"ContextsController as vm"}},resolve:{contexts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceContext@get",{fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",defaultEntry:!1,limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Contexts",fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",defaultEntry:!1,limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:405})}]},authenticate:!0,permissionId:405,bodyClass:"voice"}).state("app.voice.voicemails",{url:"/voicemails",views:{"content@app":{templateUrl:hf,controller:"VoicemailsController as vm"}},resolve:{voicemails:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceMail@get",{fields:"createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Voicemails",fields:"createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:406})}]},authenticate:!0,permissionId:406,bodyClass:"voice"}).state("app.voice.voicemails.edit",{url:"/:id?tab",params:{voicemail:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:_f,controller:"VoicemailController as vm"}},resolve:{voicemail:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceMail@get",{fields:"createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:406})}]},authenticate:!0,permissionId:406,bodyClass:"voice"}).state("app.voice.musiconholds",{url:"/musiconholds",views:{"content@app":{templateUrl:bf,controller:"MusicOnHoldsController as vm"}},resolve:{musiconholds:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceMusicOnHold@get",{fields:"createdAt,updatedAt,id,name,mode,directory,application,format,sort",defaultEntry:!1,limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"MusicOnHolds",fields:"createdAt,updatedAt,id,name,mode,directory,application,format,sort",defaultEntry:!1,limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:407})}]},authenticate:!0,permissionId:407,bodyClass:"voice"}).state("app.voice.musiconholds.edit",{url:"/:id?tab",params:{musiconhold:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:yf,controller:"MusicOnHoldController as vm"}},resolve:{musiconhold:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceMusicOnHold@get",{fields:"createdAt,updatedAt,id,name,mode,directory,application,format,sort",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:407})}]},authenticate:!0,permissionId:407,bodyClass:"voice"}).state("app.voice.voiceRecordings",{url:"/voiceRecordings",views:{"content@app":{templateUrl:vf,controller:"VoiceRecordingsController as vm"}},resolve:{voiceRecordings:["apiResolver","Auth","msUtils",function(e,t,n){return t.hasRole("admin")?e.resolve("voiceRecording@get",{fields:"createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed",sort:"-updatedAt",createdAt:n.firstLastDayMonth(),limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceRecordings",fields:"createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed",sort:"-updatedAt",createdAt:n.firstLastDayMonth(),limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:408})}]},authenticate:!0,permissionId:408,bodyClass:"voice"}).state("app.voice.voiceRecordings.edit",{url:"/:id?tab",params:{voiceRecording:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:Af,controller:"VoiceRecordingController as vm"}},resolve:{voiceRecording:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceRecording@get",{fields:"createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:408})}]},authenticate:!0,permissionId:408,bodyClass:"voice"}).state("app.voice.chanSpies",{url:"/chanSpies",views:{"content@app":{templateUrl:Sf,controller:"ChanSpiesController as vm"}},resolve:{chanSpies:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceChanSpy@get",{fields:"createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ChanSpies",fields:"createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:409})}]},authenticate:!0,permissionId:409,bodyClass:"voice"}).state("app.voice.voicePrefixes",{url:"/voicePrefixes",views:{"content@app":{templateUrl:wf,controller:"VoicePrefixesController as vm"}},resolve:{voicePrefixes:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voicePrefix@get",{fields:"createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoicePrefixes",fields:"createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:410})}]},authenticate:!0,permissionId:410,bodyClass:"voice"}),t.addPart("app/main/apps/voice")}Ef.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.voice",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.voice.realtime"]).config(Ef).controller("ChanSpiesController",zl).controller("CreateOrEditchanSpyDialogController",Jl).controller("ContextsController",ec).controller("CreateOrEditContextDialogController",nc).controller("CreateOrEditInboundRouteDialogController",oc).controller("InboundRouteActionsController",vc).controller("EditInboundAppagiDialogController",Sc).controller("EditInboundAppcustomDialogController",Ec).controller("EditInboundAppdialDialogController",Tc).controller("EditInboundAppexternaldialDialogController",kc).controller("EditInboundAppgotoDialogController",xc).controller("EditInboundApphangupDialogController",Pc).controller("EditInboundAppinternaldialDialogController",Rc).controller("EditInboundAppintervalDialogController",Lc).controller("EditInboundAppplaybackDialogController",Uc).controller("EditInboundAppqueueDialogController",Fc).controller("EditInboundAppringgroupDialogController",Yc).controller("EditInboundAppsetDialogController",Bc).controller("EditInboundAppvoicemailDialogController",Vc).controller("InboundRouteController",Qc).controller("InboundRoutesController",Jc).controller("CreateOrEditInternalRouteDialogController",Zc).controller("InternalRouteActionsController",gu).controller("EditInternalAppagiDialogController",_u).controller("EditInternalAppcustomDialogController",yu).controller("EditInternalAppdialDialogController",Au).controller("EditInternalAppexternaldialDialogController",wu).controller("EditInternalAppgotoDialogController",Cu).controller("EditInternalApphangupDialogController",Iu).controller("EditInternalAppinternaldialDialogController",Du).controller("EditInternalAppintervalDialogController",Mu).controller("EditInternalAppplaybackDialogController",Ou).controller("EditInternalAppqueueDialogController",Nu).controller("EditInternalAppringgroupDialogController",$u).controller("EditInternalAppsetDialogController",ju).controller("EditInternalAppvoicemailDialogController",qu).controller("InternalRouteController",Hu).controller("InternalRoutesController",Vu).controller("CreateOrEditMusicOnHoldDialogController",Qu).controller("MusicOnHoldMohSoundsController",Ju).controller("CreateOrEditMohSoundDialogController",Zu).controller("MusicOnHoldController",td).controller("MusicOnHoldsController",od),angular.module("app.voice").controller("CreateOrEditOutboundRouteDialogController",id).controller("OutboundRouteActionsController",fd).controller("EditoutboundAppcustomDialogController",pd).controller("EditoutboundAppintervalDialogController",hd).controller("EditoutboundAppoutbounddialDialogController",bd).controller("OutboundRouteController",vd).controller("OutboundRoutesController",wd).controller("CreateOrEditVoicemailDialogController",Cd).controller("VoicemailMessagesController",Id).controller("VoicemailController",Dd).controller("VoicemailsController",Pd).controller("CreateOrEditvoicePrefixDialogController",Rd).controller("voicePrefixagentaddController",Ld).controller("VoicePrefixesController",Fd).controller("CreateOrEditVoiceQueueDialogController",Yd).controller("VoiceQueueagentaddController",Bd).controller("VoiceQueueteamaddController",Vd).controller("VoiceQueueController",zd).controller("VoiceQueuesController",Jd).controller("CreateOrEditVoiceRecordingDialogController",Zd).controller("VoiceRecordingSentimentStatisticsController",ef).controller("VoiceRecordingController",nf).controller("VoiceRecordingsController",rf);const Cf=n.p+"templates/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues.html",Tf=n.p+"templates/main/apps/chat/views/chatQueues/edit/view.html/view.html",If=n.p+"templates/main/apps/chat/views/chatWebsites/chatWebsites.html/chatWebsites.html",kf=n.p+"templates/main/apps/chat/views/chatWebsites/edit/view.html/view.html",Df=n.p+"templates/main/apps/chat/views/realtime/realtime.html/realtime.html",xf=n.p+"templates/main/apps/chat/views/realtime/agents/view.html/view.html",Mf=n.p+"templates/main/apps/chat/views/realtime/queues/view.html/view.html";function Pf(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"chat",direction:"inbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}Pf.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const Of=Pf,Rf=n.p+"templates/main/apps/chat/views/chatQueues/create/dialog.html/dialog.html",Nf=n.p+"templates/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd.html";function Lf(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.chatQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].ChatQueueId].paused++,g.queues[e[t].rows[n].ChatQueueId].loggedInDb++,g.queues[e[t].rows[n].ChatQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].ChatQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"inbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"chat",type:"inbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.chatQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="ChatQueues",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditChatQueue=function(e,t){n.show({controller:"CreateOrEditChatQueueDialogController",controllerAs:"vm",templateUrl:Rf,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatQueue:t,chatQueues:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.agentAdd=function(e,t){n.show({controller:"ChatQueueagentaddController",controllerAs:"vm",templateUrl:Nf,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatQueue:t,chatQueues:g.queues?g.queues.rows:[],realtime:!1,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.chatQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&u().merge(g.queues[e.id],u().pick(e,h))},g.onSaveMember=function(e){g.queues[e.ChatQueueId]&&g.queues[e.ChatQueueId].loggedInDb++},g.onRemoveMember=function(e){g.queues[e.ChatQueueId]&&g.queues[e.ChatQueueId].loggedInDb--},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.ChatQueueId]&&(g.queues[e.ChatQueueId].loggedInDb+=1,g.queues[e.ChatQueueId].agents[e.UserId]=e.ChatQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.ChatQueueId]&&g.queues[e.ChatQueueId].loggedInDb>0&&(g.queues[e.ChatQueueId].loggedInDb-=1,delete g.queues[e.ChatQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.on("chat_queue:save",g.onSave),c.on("userChatQueue:save",g.onSaveMember),c.on("userChatQueue:remove",g.onRemoveMember),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("chat_queue:save"),c.removeAllListeners("userChatQueue:remove"),c.removeAllListeners("userChatQueue:save"),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}Lf.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const $f=Lf;const Uf=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function jf(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.chat.realtime.agents":a.selectedTab=0;break;case"app.chat.realtime.queues":a.selectedTab=1;break;default:a.selectedTab=0,t.go("app.chat.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.chat.realtime.agents");break;case 1:t.go("app.chat.realtime.queues");break;default:t.go("app.chat.realtime.agents")}}))}jf.$inject=["$scope","$state","socket"];const Ff=jf;function qf(e){e.state("app.chat.realtime",{url:"/realtime",views:{"content@app":{templateUrl:Df,controller:"ChatRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:510})}]},authenticate:!0,permissionId:510}).state("app.chat.realtime.agents",{url:"/agents",controller:"AgentsChatRealtimeController as vm",templateUrl:xf,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:510}).state("app.chat.realtime.queues",{url:"/queues",controller:"QueuesChatRealtimeController as vm",templateUrl:Mf,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("chatQueue@get",{type:"inbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ChatQueues",channel:"chat",type:"inbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:501})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getChatQueues")}]},authenticate:!0,permissionId:510})}qf.$inject=["$stateProvider"],angular.module("app.chat.realtime",[]).config(qf).controller("AgentsChatRealtimeController",Of).controller("QueuesChatRealtimeController",$f).factory("helperClasses",Uf).controller("ChatRealtimeController",Ff);const Yf=n.p+"templates/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html/teamadd.html";function Hf(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.chatQueues=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="chatQueues",b.listOrder="",b.listOrderAsc=null,b.selectedChatQueues=[],b.query={fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"chat",limit:10,page:1},b.arraystrategy=u().keyBy([{option:"Beepall",value:"'beepall'"},{option:"RR Memory",value:"'rrmemory'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.chat.chatQueues.edit",{id:e.id,chatQueue:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"ChatQueueteamaddController",controllerAs:"vm",templateUrl:Yf,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{chatQueue:e,chatQueues:b.chatQueues?b.chatQueues.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"ChatQueueagentaddController",controllerAs:"vm",templateUrl:Nf,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{chatQueue:e,chatQueues:b.chatQueues?b.chatQueues.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("chatQueue")+"?").htmlContent("<b>"+(e.name||"chatQueue")+"</b> will be deleted.").ariaLabel("delete chatQueue").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:510}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.chat.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.chat.realtime.queues",{})},b.success=A,b.getChatQueues=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.chatQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ChatQueues",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditChatQueue=function(e,t){o.show({controller:"CreateOrEditChatQueueDialogController",controllerAs:"vm",templateUrl:Rf,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatQueue:t,chatQueues:b.chatQueues.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteChatQueue=S,b.exportSelectedChatQueues=function(){const e=angular.copy(b.selectedChatQueues);return b.selectedChatQueues=[],e},b.deleteSelectedChatQueues=function(e){const t=o.confirm().title("Are you sure want to delete the selected chatQueues?").htmlContent("<b>"+b.selectedChatQueues.length+" selected</b> will be deleted.").ariaLabel("delete ChatQueues").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedChatQueues.forEach((function(e){S(e)})),b.selectedChatQueues=[]}))},b.deselectChatQueues=function(){b.selectedChatQueues=[]},b.selectAllChatQueues=function(){b.selectedChatQueues=b.chatQueues.rows};let y=!0,v=1;function A(e){b.chatQueues=e||{count:0,rows:[]}}function S(e){f.chatQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.chatQueues.rows,{id:e.id}),b.chatQueues.count-=1,b.chatQueues.rows.length||b.getChatQueues(),p.success({title:u().startCase("ChatQueue")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEchatQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEchatQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getChatQueues())}))}Hf.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","chatQueues","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Bf=Hf;function Gf(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CHAT.EDIT_CHATQUEUE",g.chatQueue=angular.copy(l),g.chatQueues=s,g.newChatQueue=!1,g.chatQueue||(g.chatQueue={strategy:"beepall",timeout:10},g.title="CHAT.NEW_CHATQUEUE",g.newChatQueue=!0),g.addNewChatQueue=function(){g.errors=[],c.chatQueue.save(g.chatQueue).$promise.then((function(e){g.chatQueues.unshift(e.toJSON()),i.success({title:"ChatQueue properly created",msg:g.chatQueue.name?g.chatQueue.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveChatQueue=function(){g.errors=[],c.chatQueue.update({id:g.chatQueue.id},g.chatQueue).$promise.then((function(e){const t=u().find(g.chatQueues,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ChatQueue properly saved!",msg:g.chatQueue.name?g.chatQueue.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteChatQueue=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The chatQueue will be deleted.").ariaLabel("Delete ChatQueue").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.chatQueue.delete({id:g.chatQueue.id}).$promise.then((function(){u().remove(g.chatQueues,{id:g.chatQueue.id}),i.success({title:"ChatQueue properly deleted!",msg:(g.chatQueue.name||"chatQueue")+" has been deleted!"}),h(g.chatQueue)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Gf.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","chatQueues","chatQueue","api","Auth","license","setting","crudPermissions"];const Vf=Gf;function Wf(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.chatQueue.getAgents({id:d.chatQueue.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserChatQueue?"penalty "+e.UserChatQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.chatQueue=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.chatQueue.removeAgents({id:d.chatQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.chatQueue.addAgents({id:d.chatQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}Wf.$inject=["$mdDialog","$q","toasty","api","chatQueue","chatQueues","realtime","$translate","Auth","crudPermissions"];const Qf=Wf;function zf(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.chatQueue.getTeams({id:l.chatQueue.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.chatQueue=o,l.crudPermissions=s,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(){const e=u().xorBy(l.startingSelectedItems,l.selectedItems,"id");l.pendingChanges=!u().isEmpty(e)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceBy(l.selectedItems,l.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.chatQueue.removeTeams({id:l.chatQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.chatQueue.addTeams({id:l.chatQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}zf.$inject=["$mdDialog","$q","toasty","api","chatQueue","$translate","Auth","crudPermissions"];const Kf=zf;function Jf(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.chatQueue=u||e.params.chatQueue||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.teamadddialog=function(e,t){n.show({controller:"ChatQueueteamaddController",controllerAs:"vm",templateUrl:Yf,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{chatQueue:e,chatQueues:f.chatQueues?f.chatQueues.rows:[],crudPermissions:f.crudPermissions}})},f.agentadddialog=function(e,t){n.show({controller:"ChatQueueagentaddController",controllerAs:"vm",templateUrl:Nf,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{chatQueue:e,chatQueues:f.chatQueues?f.chatQueues.rows:[],crudPermissions:f.crudPermissions,realtime:!1}})},f.alert=l.info,f.gotoChatQueues=function(){e.go("app.chat.chatQueues",{},{reload:"app.chat.chatQueues"})},f.saveChatQueue=function(){s.chatQueue.update({id:f.chatQueue.id},f.chatQueue).$promise.then((function(){l.success({title:"ChatQueue updated!",msg:f.chatQueue.name?f.chatQueue.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETchatQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}Jf.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","chatQueue","userProfileSection"];const Xf=Jf,Zf=n.p+"templates/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html",em=n.p+"templates/main/apps/chat/views/chatWebsites/create/dialog.html/dialog.html";function tm(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.chatWebsites=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="chatWebsites",b.listOrder="",b.listOrderAsc=null,b.selectedChatWebsites=[],b.query={fields:"createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,MailAccountId,openNewInteraction,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey",sort:"-updatedAt",limit:10,page:1},b.arrayagentIdentifier=u().keyBy([{option:"WebsiteAlias",value:"'website_alias'"},{option:"AgentAlias",value:"'agent_alias'"},{option:"AgentFullname",value:"'agent_fullname'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayheader_shape=u().keyBy([{option:"Rounded",value:"'rounded'"},{option:"Squared",value:"'squared'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayalignment=u().keyBy([{option:"bottom_right",value:"'bottom_right'"},{option:"right",value:"'right'"},{option:"left",value:"'left'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraymessagesAlignment=u().keyBy([{option:"alternate",value:"'alternate'"},{option:"centered",value:"'centered'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayratingType=u().keyBy([{option:"Star",value:"'star'"},{option:"Thumb",value:"'thumb'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.chat.chatWebsites.edit",{id:e.id,chatWebsite:e,crudPermissions:b.crudPermissions})},b.interactionsgoto=function(e){n.go("app.chat.chatWebsites.edit",{id:e.id,tab:10})},b.offlinemessagesgoto=function(e){n.go("app.chat.chatWebsites.edit",{id:e.id,tab:11})},b.agentadddialog=function(e,t){o.show({controller:"ChatWebsiteagentaddController",controllerAs:"vm",templateUrl:Zf,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{chatWebsite:e,chatWebsites:b.chatWebsites?b.chatWebsites.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("chatWebsite")+"?").htmlContent("<b>"+(e.name||"chatWebsite")+"</b> will be deleted.").ariaLabel("delete chatWebsite").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getChatWebsites=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.chatWebsite.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ChatWebsites",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditChatWebsite=function(e,t){o.show({controller:"CreateOrEditChatWebsiteDialogController",controllerAs:"vm",templateUrl:em,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatWebsite:t,chatWebsites:b.chatWebsites.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteChatWebsite=S,b.exportSelectedChatWebsites=function(){const e=angular.copy(b.selectedChatWebsites);return b.selectedChatWebsites=[],e},b.deleteSelectedChatWebsites=function(e){const t=o.confirm().title("Are you sure want to delete the selected chatWebsites?").htmlContent("<b>"+b.selectedChatWebsites.length+" selected</b> will be deleted.").ariaLabel("delete ChatWebsites").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedChatWebsites.forEach((function(e){S(e)})),b.selectedChatWebsites=[]}))},b.deselectChatWebsites=function(){b.selectedChatWebsites=[]},b.selectAllChatWebsites=function(){b.selectedChatWebsites=b.chatWebsites.rows},g.hasRole("admin")?f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.lists,{id:e.resourceId})}));let n=null;if(b.chatWebsite&&(n=u().find(b.lists,{id:Number(b.chatWebsite.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.lists,{id:n.id});e.canSelect=!1,t.push(e)}b.lists=t}))}else{const e=[];let t=null;b.chatWebsite&&(t=u().find(b.lists,{id:Number(b.chatWebsite.ListId)}));for(let n=0;n<b.lists.length;n++)t&&b.lists[n].id===t.id&&(b.lists[n].canSelect=!1,e.push(b.lists[n]));b.lists=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),g.hasRole("admin")?f.interval.get({fields:"id,name",sort:"name",IntervalId:null}).$promise.then((function(e){b.interval=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.interval.get({fields:"id,name",sort:"name",IntervalId:null}).$promise.then((function(e){b.interval=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.interval,{id:e.resourceId})}));let n=null;if(b.chatWebsite&&(n=u().find(b.interval,{id:Number(b.chatWebsite.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.interval,{id:n.id});e.canSelect=!1,t.push(e)}b.interval=t}))}else{const e=[];let t=null;b.chatWebsite&&(t=u().find(b.interval,{id:Number(b.chatWebsite.IntervalId)}));for(let n=0;n<b.interval.length;n++)t&&b.interval[n].id===t.id&&(b.interval[n].canSelect=!1,e.push(b.interval[n]));b.interval=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.chatWebsites=e||{count:0,rows:[]}}function S(e){f.chatWebsite.delete({id:e.id}).$promise.then((function(){u().remove(b.chatWebsites.rows,{id:e.id}),b.chatWebsites.count-=1,b.chatWebsites.rows.length||b.getChatWebsites(),p.success({title:u().startCase("ChatWebsite")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEchatWebsite"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEchatWebsite",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getChatWebsites())}))}tm.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","chatWebsites","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const nm=tm;function am(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CHAT.EDIT_CHATWEBSITE",g.chatWebsite=angular.copy(l),g.chatWebsites=s,g.newChatWebsite=!1,g.chatWebsite||(g.chatWebsite={remote:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():""),header_shape:"rounded",alignment:"bottom_right",verticalAlignment:30,messagesAlignment:"alternate",IntervalId:null,timezone:null,waitForTheAssignedAgent:10,notificationSound:!0,queueTransferTimeout:300,agentTransferTimeout:300},g.title="CHAT.NEW_CHATWEBSITE",g.newChatWebsite=!0),t.params.id&&(g.chatWebsite.ChatWebsiteId=t.params.id),g.addNewChatWebsite=function(){g.errors=[],c.chatWebsite.save(g.chatWebsite).$promise.then((function(e){g.chatWebsites.unshift(e.toJSON()),i.success({title:"ChatWebsite properly created",msg:g.chatWebsite.name?g.chatWebsite.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatWebsite.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatWebsite.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveChatWebsite=function(){g.errors=[],c.chatWebsite.update({id:g.chatWebsite.id},g.chatWebsite).$promise.then((function(e){const t=u().find(g.chatWebsites,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ChatWebsite properly saved!",msg:g.chatWebsite.name?g.chatWebsite.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatWebsite.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatWebsite.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteChatWebsite=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The chatWebsite will be deleted.").ariaLabel("Delete ChatWebsite").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.chatWebsite.delete({id:g.chatWebsite.id}).$promise.then((function(){u().remove(g.chatWebsites,{id:g.chatWebsite.id}),i.success({title:"ChatWebsite properly deleted!",msg:(g.chatWebsite.name||"chatWebsite")+" has been deleted!"}),h(g.chatWebsite)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatWebsite.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatWebsite.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.lists,{id:e.resourceId})}));let n=null;if(g.chatWebsite&&(n=u().find(g.lists,{id:Number(g.chatWebsite.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.lists,{id:n.id});e.canSelect=!1,t.push(e)}g.lists=t}))}else{const e=[];let t=null;g.chatWebsite&&(t=u().find(g.lists,{id:Number(g.chatWebsite.ListId)}));for(let n=0;n<g.lists.length;n++)t&&g.lists[n].id===t.id&&(g.lists[n].canSelect=!1,e.push(g.lists[n]));g.lists=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.hasRole("admin")?c.interval.get({fields:"id,name",sort:"name",IntervalId:null}).$promise.then((function(e){g.interval=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.interval.get({fields:"id,name",sort:"name",IntervalId:null}).$promise.then((function(e){g.interval=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.interval,{id:e.resourceId})}));let n=null;if(g.chatWebsite&&(n=u().find(g.interval,{id:Number(g.chatWebsite.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.interval,{id:n.id});e.canSelect=!1,t.push(e)}g.interval=t}))}else{const e=[];let t=null;g.chatWebsite&&(t=u().find(g.interval,{id:Number(g.chatWebsite.IntervalId)}));for(let n=0;n<g.interval.length;n++)t&&g.interval[n].id===t.id&&(g.interval[n].canSelect=!1,e.push(g.interval[n]));g.interval=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}))}am.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","chatWebsites","chatWebsite","api","Auth","license","setting","crudPermissions"];const om=am,rm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog.html",im=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog.html",sm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog.html",lm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html/dialog.html",cm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html/dialog.html",um=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/dialogflowv2/dialog.html/dialog.html",dm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog.html",fm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html/dialog.html",mm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog.html",pm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog.html",gm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html/dialog.html",hm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog.html",_m=n.p+"templates/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog.html";ym.$inject=["api","$mdDialog","$document","toasty","Auth"];const bm={agent:rm,amazonlex:im,autoreply:sm,close:lm,dialogflow:cm,dialogflowv2:um,gotoif:dm,gotop:fm,interval:mm,noop:pm,queue:gm,system:hm,tag:_m};function ym(e,t,n,a,o){const r=this;function i(e,o){if(r.chatWebsiteApps.rows.length){const i=r.chatWebsiteApps.rows[o]?r.chatWebsiteApps.rows[o]:r.chatWebsiteApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditChatWebsiteApp${l}DialogController`,controllerAs:"vm",templateUrl:bm[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatWebsiteApp:i,chatWebsite:r.chatWebsite,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.chatWebsiteApps.rows[o]=e:r.chatWebsiteApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){let t=1,n=[];r.chatWebsiteApps.rows=r.chatWebsiteApps.rows.filter((e=>e.appdata));for(let e=0;e<r.chatWebsiteApps.rows.length;e++){const a=r.chatWebsiteApps.rows[e],o=[],i=[];a.intervals="*,*,*,*"!==a.interval?[a.interval]:a.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:a.IntervalId}),"interval"):[],a.context=r.chatWebsite.context,a.exten=r.chatWebsite.exten,a.type&&(a.type=a.type.toLowerCase()),a.priority=o.length?u().last(o).priority+1:t,t=(i.length?u().last(i).priority:a.priority)+1,n=u().concat(n,o,[a],i)}e.chatWebsite.addApplications({id:r.chatWebsite.id},u().sortBy(n,"priority")).$promise.then((function(e){r.chatWebsiteApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.chatWebsiteApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.chatWebsite={},r.chatWebsiteApps={count:0,rows:[]},r.selectedChatWebsiteApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",types:["always","custom","list"],fields:[],isApp:!1},{app:"noop",appType:"noop",type:"noop",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,fields:[{title:"Value",name:"value",type:"text",param:0}]},{app:"system",appType:"system",type:"system",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,extraApi:[{name:"variables",field:{name:"variable",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],fields:[{title:"Command",name:"command",type:"text",required:!0,param:0},{title:"Variable",name:"variable",type:"apiselect",values:"variables",value:"variable.name",option:"variable.name",defaultValues:[{value:"''",option:"None"}],defaultValue:"''",param:1}]},{app:"gotop",appType:"gotop",type:"goto",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Priority",name:"priority",type:"number",required:!0,min:0,param:0}]},{app:"gotoif",appType:"gotoif",type:"gotoif",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Condition",name:"condition",type:"text",required:!0,param:0},{title:"truepriority",name:"truepriority",type:"number",min:1,required:!0,param:1},{title:"falsepriority",name:"falsepriority",type:"number",min:1,required:!0,param:2}]},{app:"queue",appType:"queue",foreignKey:"ChatQueueId",type:"queue",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"queues",field:{name:"queue",key:"name"},route:"chatQueue",filters:{fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:501}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",defaultValue:300,required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:300,param:1}]},{app:"agent",appType:"agent",type:"agent",foreignKey:"UserId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"agents",field:{name:"agent",key:"name"},route:"user",filters:{fields:"id,name",role:"agent",sort:"name",nolimit:!0},permissions:{section:202}}],fields:[{title:"Agent",name:"agent",type:"apiselect",values:"agents",value:"agent.name",option:"agent.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:30,param:1}]},{app:"close",appType:"close",type:"close",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Disposition",name:"disposition",type:"text",required:!0,param:0}]},{app:"autoreply",appType:"autoreply",type:"autoreply",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"times",name:"times",type:"select",defaultValue:"1",values:[{option:"One Time",value:"1"},{option:"Always",value:"0"}],required:!0,param:0},{title:"Text",name:"text",type:"textarea",required:!0,param:1}]},{app:"tag",appType:"tag",type:"tag",foreignKey:"TagId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"tags",field:{name:"tag",key:"name"},route:"tag",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1008}}],fields:[{title:"Tag",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",required:!0,param:0}]},{app:"dialogflow",appType:"dialogflow",type:"dialogflow",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Key",name:"key",type:"text",required:!0,param:0},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{option:"Danish",value:"'da'"},{option:"English",value:"'en'"},{option:"German",value:"'de'"},{option:"Italian",value:"'it'"},{option:"Spanish",value:"'es'"},{option:"French",value:"'fr'"},{option:"Indonesian",value:"'id'"},{option:"Japanese",value:"'ja'"},{option:"Korean (South Korea)",value:"'ko'"},{option:"Dutch",value:"'nl'"},{option:"Norwegian",value:"'no'"},{option:"Portuguese (European)",value:"'pt'"},{option:"Portuguese (Nrazilian)",value:"'pt-br'"},{option:"Russian",value:"'ru'"},{option:"Swedish",value:"'sv'"},{option:"Thai",value:"'th'"},{option:"Ukrainian",value:"'uk'"},{option:"Chinese (Simplified)",value:"'zh-CN'"},{option:"Chinese (Hong Kong)",value:"'zh-HK'"},{option:"Chinese (Traditional)",value:"'zh-TW'"}],required:!0,param:1},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,param:2,help:!0}]},{app:"dialogflowV2",appType:"dialogflowv2",type:"dialogflowv2",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"ProjectID",name:"projectId",type:"text",required:!0,param:0},{title:"ClientEmail",name:"clientEmail",type:"text",required:!0,param:1},{title:"PrivateKey",name:"privateKey",type:"textarea",required:!0,param:2},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{value:"'zh-HK'",option:"Chinese (Cantonese)"},{value:"'zh-CN'",option:"Chinese (Simplified)"},{value:"'zh-TW'",option:"Chinese (Traditional)"},{value:"'da'",option:"Danish"},{value:"'nl'",option:"Dutch"},{value:"'en'",option:"English"},{value:"'en-AU'",option:"English (Australia)"},{value:"'en-CA'",option:"English (Canada)"},{value:"'en-GB'",option:"English (Great Britain)"},{value:"'en-IN'",option:"English (India)"},{value:"'en-US'",option:"English (US)"},{value:"'fr'",option:"French"},{value:"'fr-CA'",option:"French (Canada)"},{value:"'fr-FR'",option:"'France (France)"},{value:"'de'",option:"German"},{value:"'hi'",option:"Hindi"},{value:"'id'",option:"Indonesian"},{value:"'it'",option:"Italian"},{value:"'ja'",option:"Japanese"},{value:"'ko'",option:"Korean"},{value:"'no'",option:"Norwegian"},{value:"'pl'",option:"Polish"},{value:"'pt-BR'",option:"Portuguese (Brazil)"},{value:"'pt-PT'",option:"Portuguese (Portugal)"},{value:"'ru'",option:"Russian"},{value:"'es'",option:"Spanish"},{value:"'es-419'",option:"Spanish (Latin America)"},{value:"'es-ES'",option:"Spanish (Spain)"},{value:"'sw'",option:"Swedish"},{value:"'th'",option:"Thai"},{value:"'tr'",option:"Turkish"},{value:"'uk'",option:"Ukrainian"}],required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,param:4,help:!0}]},{app:"amazonlex",appType:"amazonlex",type:"amazonlex",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"accesskeyid",name:"accesskeyid",type:"text",required:!0,param:0},{title:"secretaccesskey",name:"secretaccesskey",type:"text",required:!0,param:1},{title:"lexregion",name:"lexregion",type:"select",defaultValue:"'us-east-1'",values:[{option:"US East (N. Virginia)",value:"'us-east-1'"},{option:"US West (Oregon)",value:"'us-west-2'"},{option:"EU (Ireland)",value:"'eu-west-1'"},{option:"Asia Pacific (Sydney)",value:"'ap-southeast-2'"}],required:!0,param:2},{title:"botname",name:"botname",type:"text",required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,param:4,help:!0}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:"opt1"},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(){s()}},r.init=function(e,t){r.chatWebsite=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.id=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getChatWebsiteApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.chatWebsiteApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getChatWebsiteApps=function(){r.promise=e.chatWebsite.getApplications(r.query,l).$promise},r.editChatWebsiteApp=i,r.editInterval=function(e,a){if(r.chatWebsiteApps.rows.length){const o=r.chatWebsiteApps.rows[a]?r.chatWebsiteApps.rows[a]:r.chatWebsiteApps.rows[0];t.show({controller:"EditChatWebsiteAppintervalDialogController",controllerAs:"vm",templateUrl:mm,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteChatWebsiteApp=function(e){u().remove(r.chatWebsiteApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedChatWebsiteApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedChatWebsiteApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedChatWebsiteApps.forEach((function(e){u().remove(r.chatWebsiteApps.rows,{id:e.id})})),r.selectedChatWebsiteApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const vm=ym;function Am(e,t,n,a,o,r,i,s,l){const c=this;function d(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return c.items=e.rows?e.rows:[],s.hasRole("admin")?e:c.section?c.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:c.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return c.allowedItems=u().map(n,(function(e){return u().find(c.items,{id:s.hasRole("admin")||c.section.autoAssociation?e.id:e.resourceId})})),c.startingAllowedItems=angular.copy(c.allowedItems),c.items.forEach((function(e){const t=u().find(c.allowedItems,{id:e.id});s.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.chatWebsite.getAgents({id:c.chatWebsite.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];c.selectedItems=u().map(n,(function(e){const t=u().find(c.items,{id:e.id});return t.penalty=e.UserChatWebsite?"penalty "+e.UserChatWebsite.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),c.startingSelectedItems=angular.copy(c.selectedItems),c.dualMultiselectOptions.selectedItems=c.selectedItems,c.dualMultiselectOptions.items=u().differenceBy(c.allowedItems,c.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}c.currentUser=s.getCurrentUser(),c.chatWebsite=o,c.crudPermissions=l,c.realtime=r,c.items=[],c.allowedItems=[],c.selectedItems=[],c.startingAllowedItems=[],c.startingSelectedItems=[],c.pendingChanges=!1,c.onInit=function(){return s.hasRole("admin")?d().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:c.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return c.section=e,d()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},c.saveAgents=function(){const e=u().differenceBy(c.startingSelectedItems,c.selectedItems,"id"),o=u().differenceBy(c.selectedItems,c.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.chatWebsite.removeAgents({id:c.chatWebsite.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.chatWebsite.addAgents({id:c.chatWebsite.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){c.pendingChanges=!1,c.startingAllowedItems=angular.copy(c.allowedItems),c.startingSelectedItems=angular.copy(c.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},c.closeDialog=function(){e.hide()},c.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:i.instant("APP.ALL_AGENTS"),labelSelected:i.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(c.startingSelectedItems,c.selectedItems,"id");c.pendingChanges=!u().isEmpty(e)}}}Am.$inject=["$mdDialog","$q","toasty","api","chatWebsite","realtime","$translate","Auth","crudPermissions"];const Sm=Am;function wm(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.chatWebsite={},a.crudPermissions,a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.chatWebsite.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.chatWebsite.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e,t){a.chatWebsite=angular.copy(e),a.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},a.ngFlowOptions.target=`${a.baseUrl}api/chat/websites/:id/avatar`.replace(":id",a.chatWebsite.id),a.chatWebsite.images=[]}}wm.$inject=["$cookies","toasty","api"];const Em=wm;function Cm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.agent=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agent.appdata)switch(l.agent.appType?l.agent.appType.toLowerCase():l.agent.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agent.appdata.split(",");l.agent.key=e[0],l.agent.language=e[1],l.agent.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agent.appdata.split(",");l.agent.projectId=e[0],l.agent.clientEmail=e[1],l.agent.privateKey=e[2],l.agent.language=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agent.appdata.split(",");l.agent.accesskeyid=e[0],l.agent.secretaccesskey=e[1],l.agent.lexregion=e[2],l.agent.botname=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agent.appdata.split(",");l.agent.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.text=e.slice(1,e.length).join(",")}break;case"message":l.agent.text=l.agent.appdata;break;case"set":l.agent.name=l.agent.appdata.split("=")[0],l.agent.value=l.agent.appdata.split("=")[1];break;case"agi":l.agent.project=l.agent.appdata;break;default:{const e=l.agent.appdata.split(",");l.agent.agent=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.agent.timeout=30;function c(t){e.hide(t)}l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outbounddial"===l.agent.appType.toLowerCase()&&(l.agent.prefix=l.agent.phone?l.agent.phone.split("$")[0]:void 0,l.agent.callerId=l.agent.callerID?"CALLERID(all)="+l.agent.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outboundDial"===l.agent.appType&&(l.agent.phone=o.cutdigits?(l.agent.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agent.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agent.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agent.options+="U(xcally-mixmonitor-context)"):l.agent.options=l.agent.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.agents,{name:l.agent.agent});t&&(l.agent.UserId=t.id);if(l.agent.appType&&"custom"===l.agent.appType);else switch((l.agent.app||l.agent.appType).toLowerCase()){case"set":l.agent.appdata=l.agent.name+"="+l.agent.value;break;case"custom":break;default:e[0]=l.agent.agent,e[1]=l.agent.timeout,l.agent.appdata=e.join(",")}c(l.agent)},l.closeDialog=c,i.hasRole("admin")?r.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){l.agents=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){l.agents=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.agents,{id:e.resourceId})}));let n=null;if(l.agent&&(n=u().find(l.agents,{name:l.agent.agent})),n&&!u().some(t,["id",n.id])){const e=u().find(l.agents,{id:n.id});e.canSelect=!1,t.push(e)}l.agents=t}))}else{const e=[];let t=null;l.agent&&(t=u().find(l.agents,{name:l.agent.agent}));for(let n=0;n<l.agents.length;n++)t&&l.agents[n].id===t.id&&(l.agents[n].canSelect=!1,e.push(l.agents[n]));l.agents=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Cm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Tm=Cm;function Im(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.amazonlex=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.amazonlex.appdata)switch(l.amazonlex.appType?l.amazonlex.appType.toLowerCase():l.amazonlex.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.amazonlex.appdata.split(",");l.amazonlex.key=e[0],l.amazonlex.language=e[1],l.amazonlex.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.amazonlex.appdata.split(",");l.amazonlex.projectId=e[0],l.amazonlex.clientEmail=e[1],l.amazonlex.privateKey=e[2],l.amazonlex.language=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=e[0],l.amazonlex.secretaccesskey=e[1],l.amazonlex.lexregion=e[2],l.amazonlex.botname=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.amazonlex.appdata.split(",");l.amazonlex.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.text=e.slice(1,e.length).join(",")}break;case"message":l.amazonlex.text=l.amazonlex.appdata;break;case"set":l.amazonlex.name=l.amazonlex.appdata.split("=")[0],l.amazonlex.value=l.amazonlex.appdata.split("=")[1];break;case"agi":l.amazonlex.project=l.amazonlex.appdata;break;default:{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.secretaccesskey=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.amazonlex.lexregion=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.amazonlex.botname=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.amazonlex.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.amazonlex.lexregion="us-east-1";function c(t){e.hide(t)}l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outbounddial"===l.amazonlex.appType.toLowerCase()&&(l.amazonlex.prefix=l.amazonlex.phone?l.amazonlex.phone.split("$")[0]:void 0,l.amazonlex.callerId=l.amazonlex.callerID?"CALLERID(all)="+l.amazonlex.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outboundDial"===l.amazonlex.appType&&(l.amazonlex.phone=o.cutdigits?(l.amazonlex.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.amazonlex.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.amazonlex.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.amazonlex.options+="U(xcally-mixmonitor-context)"):l.amazonlex.options=l.amazonlex.options.replace("U(xcally-mixmonitor-context)",""));if(l.amazonlex.appType&&"custom"===l.amazonlex.appType);else switch((l.amazonlex.app||l.amazonlex.appType).toLowerCase()){case"set":l.amazonlex.appdata=l.amazonlex.name+"="+l.amazonlex.value;break;case"custom":break;default:e[0]=l.amazonlex.accesskeyid,e[1]=l.amazonlex.secretaccesskey,e[2]=l.amazonlex.lexregion,e[3]=l.amazonlex.botname,e[4]=l.amazonlex.welcomemessage,l.amazonlex.appdata=e.join(",")}c(l.amazonlex)},l.closeDialog=c}Im.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const km=Im;function Dm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.autoreply=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.autoreply.appdata)switch(l.autoreply.appType?l.autoreply.appType.toLowerCase():l.autoreply.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.autoreply.appdata.split(",");l.autoreply.key=e[0],l.autoreply.language=e[1],l.autoreply.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.autoreply.appdata.split(",");l.autoreply.projectId=e[0],l.autoreply.clientEmail=e[1],l.autoreply.privateKey=e[2],l.autoreply.language=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.autoreply.appdata.split(",");l.autoreply.accesskeyid=e[0],l.autoreply.secretaccesskey=e[1],l.autoreply.lexregion=e[2],l.autoreply.botname=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.autoreply.appdata.split(",");l.autoreply.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=e.slice(1,e.length).join(",")}break;case"message":l.autoreply.text=l.autoreply.appdata;break;case"set":l.autoreply.name=l.autoreply.appdata.split("=")[0],l.autoreply.value=l.autoreply.appdata.split("=")[1];break;case"agi":l.autoreply.project=l.autoreply.appdata;break;default:{const e=l.autoreply.appdata.split(",");l.autoreply.times=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.autoreply.times=1;function c(t){e.hide(t)}l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outbounddial"===l.autoreply.appType.toLowerCase()&&(l.autoreply.prefix=l.autoreply.phone?l.autoreply.phone.split("$")[0]:void 0,l.autoreply.callerId=l.autoreply.callerID?"CALLERID(all)="+l.autoreply.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outboundDial"===l.autoreply.appType&&(l.autoreply.phone=o.cutdigits?(l.autoreply.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.autoreply.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.autoreply.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.autoreply.options+="U(xcally-mixmonitor-context)"):l.autoreply.options=l.autoreply.options.replace("U(xcally-mixmonitor-context)",""));if(l.autoreply.appType&&"custom"===l.autoreply.appType);else switch((l.autoreply.app||l.autoreply.appType).toLowerCase()){case"set":l.autoreply.appdata=l.autoreply.name+"="+l.autoreply.value;break;case"custom":break;default:e[0]=l.autoreply.times,e[1]=l.autoreply.text,l.autoreply.appdata=e.join(",")}c(l.autoreply)},l.closeDialog=c}Dm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const xm=Dm;function Mm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.close=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.close.appdata)switch(l.close.appType?l.close.appType.toLowerCase():l.close.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.close.appdata.split(",");l.close.key=e[0],l.close.language=e[1],l.close.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.close.appdata.split(",");l.close.projectId=e[0],l.close.clientEmail=e[1],l.close.privateKey=e[2],l.close.language=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.close.appdata.split(",");l.close.accesskeyid=e[0],l.close.secretaccesskey=e[1],l.close.lexregion=e[2],l.close.botname=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.close.appdata.split(",");l.close.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.close.text=e.slice(1,e.length).join(",")}break;case"message":l.close.text=l.close.appdata;break;case"set":l.close.name=l.close.appdata.split("=")[0],l.close.value=l.close.appdata.split("=")[1];break;case"agi":l.close.project=l.close.appdata;break;default:{const e=l.close.appdata.split(",");l.close.disposition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outbounddial"===l.close.appType.toLowerCase()&&(l.close.prefix=l.close.phone?l.close.phone.split("$")[0]:void 0,l.close.callerId=l.close.callerID?"CALLERID(all)="+l.close.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outboundDial"===l.close.appType&&(l.close.phone=o.cutdigits?(l.close.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.close.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.close.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.close.options+="U(xcally-mixmonitor-context)"):l.close.options=l.close.options.replace("U(xcally-mixmonitor-context)",""));if(l.close.appType&&"custom"===l.close.appType);else switch((l.close.app||l.close.appType).toLowerCase()){case"set":l.close.appdata=l.close.name+"="+l.close.value;break;case"custom":break;default:e[0]=l.close.disposition,l.close.appdata=e.join(",")}c(l.close)},l.closeDialog=c}Mm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Pm=Mm;function Om(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflow=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflow.appdata)switch(l.dialogflow.appType?l.dialogflow.appType.toLowerCase():l.dialogflow.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=e[0],l.dialogflow.language=e[1],l.dialogflow.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflow.appdata.split(",");l.dialogflow.projectId=e[0],l.dialogflow.clientEmail=e[1],l.dialogflow.privateKey=e[2],l.dialogflow.language=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflow.appdata.split(",");l.dialogflow.accesskeyid=e[0],l.dialogflow.secretaccesskey=e[1],l.dialogflow.lexregion=e[2],l.dialogflow.botname=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflow.appdata.split(",");l.dialogflow.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflow.text=l.dialogflow.appdata;break;case"set":l.dialogflow.name=l.dialogflow.appdata.split("=")[0],l.dialogflow.value=l.dialogflow.appdata.split("=")[1];break;case"agi":l.dialogflow.project=l.dialogflow.appdata;break;default:{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.language=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflow.welcomemessage=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}else l.dialogflow.language="en";function c(t){e.hide(t)}l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outbounddial"===l.dialogflow.appType.toLowerCase()&&(l.dialogflow.prefix=l.dialogflow.phone?l.dialogflow.phone.split("$")[0]:void 0,l.dialogflow.callerId=l.dialogflow.callerID?"CALLERID(all)="+l.dialogflow.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outboundDial"===l.dialogflow.appType&&(l.dialogflow.phone=o.cutdigits?(l.dialogflow.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflow.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflow.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflow.options+="U(xcally-mixmonitor-context)"):l.dialogflow.options=l.dialogflow.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflow.appType&&"custom"===l.dialogflow.appType);else switch((l.dialogflow.app||l.dialogflow.appType).toLowerCase()){case"set":l.dialogflow.appdata=l.dialogflow.name+"="+l.dialogflow.value;break;case"custom":break;default:e[0]=l.dialogflow.key,e[1]=l.dialogflow.language,e[2]=l.dialogflow.welcomemessage,l.dialogflow.appdata=e.join(",")}c(l.dialogflow)},l.closeDialog=c}Om.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Rm=Om;function Nm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflowv2=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflowv2.appdata)switch(l.dialogflowv2.appType?l.dialogflowv2.appType.toLowerCase():l.dialogflowv2.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.key=e[0],l.dialogflowv2.language=e[1],l.dialogflowv2.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=e[0],l.dialogflowv2.clientEmail=e[1],l.dialogflowv2.privateKey=e[2],l.dialogflowv2.language=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.accesskeyid=e[0],l.dialogflowv2.secretaccesskey=e[1],l.dialogflowv2.lexregion=e[2],l.dialogflowv2.botname=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflowv2.text=l.dialogflowv2.appdata;break;case"set":l.dialogflowv2.name=l.dialogflowv2.appdata.split("=")[0],l.dialogflowv2.value=l.dialogflowv2.appdata.split("=")[1];break;case"agi":l.dialogflowv2.project=l.dialogflowv2.appdata;break;default:{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.clientEmail=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflowv2.privateKey=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.dialogflowv2.language=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.dialogflowv2.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.dialogflowv2.language="en";function c(t){e.hide(t)}l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outbounddial"===l.dialogflowv2.appType.toLowerCase()&&(l.dialogflowv2.prefix=l.dialogflowv2.phone?l.dialogflowv2.phone.split("$")[0]:void 0,l.dialogflowv2.callerId=l.dialogflowv2.callerID?"CALLERID(all)="+l.dialogflowv2.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outboundDial"===l.dialogflowv2.appType&&(l.dialogflowv2.phone=o.cutdigits?(l.dialogflowv2.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflowv2.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflowv2.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflowv2.options+="U(xcally-mixmonitor-context)"):l.dialogflowv2.options=l.dialogflowv2.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflowv2.appType&&"custom"===l.dialogflowv2.appType);else switch((l.dialogflowv2.app||l.dialogflowv2.appType).toLowerCase()){case"set":l.dialogflowv2.appdata=l.dialogflowv2.name+"="+l.dialogflowv2.value;break;case"custom":break;default:e[0]=l.dialogflowv2.projectId,e[1]=l.dialogflowv2.clientEmail,e[2]=l.dialogflowv2.privateKey,e[3]=l.dialogflowv2.language,e[4]=l.dialogflowv2.welcomemessage,l.dialogflowv2.appdata=e.join(",")}c(l.dialogflowv2)},l.closeDialog=c}Nm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Lm=Nm;function $m(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotoif=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotoif.appdata)switch(l.gotoif.appType?l.gotoif.appType.toLowerCase():l.gotoif.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotoif.appdata.split(",");l.gotoif.key=e[0],l.gotoif.language=e[1],l.gotoif.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotoif.appdata.split(",");l.gotoif.projectId=e[0],l.gotoif.clientEmail=e[1],l.gotoif.privateKey=e[2],l.gotoif.language=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotoif.appdata.split(",");l.gotoif.accesskeyid=e[0],l.gotoif.secretaccesskey=e[1],l.gotoif.lexregion=e[2],l.gotoif.botname=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotoif.appdata.split(",");l.gotoif.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.text=e.slice(1,e.length).join(",")}break;case"message":l.gotoif.text=l.gotoif.appdata;break;case"set":l.gotoif.name=l.gotoif.appdata.split("=")[0],l.gotoif.value=l.gotoif.appdata.split("=")[1];break;case"agi":l.gotoif.project=l.gotoif.appdata;break;default:{const e=l.gotoif.appdata.split(",");l.gotoif.condition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.truepriority=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotoif.falsepriority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outbounddial"===l.gotoif.appType.toLowerCase()&&(l.gotoif.prefix=l.gotoif.phone?l.gotoif.phone.split("$")[0]:void 0,l.gotoif.callerId=l.gotoif.callerID?"CALLERID(all)="+l.gotoif.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outboundDial"===l.gotoif.appType&&(l.gotoif.phone=o.cutdigits?(l.gotoif.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotoif.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotoif.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotoif.options+="U(xcally-mixmonitor-context)"):l.gotoif.options=l.gotoif.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotoif.appType&&"custom"===l.gotoif.appType);else switch((l.gotoif.app||l.gotoif.appType).toLowerCase()){case"set":l.gotoif.appdata=l.gotoif.name+"="+l.gotoif.value;break;case"custom":break;default:e[0]=l.gotoif.condition,e[1]=l.gotoif.truepriority,e[2]=l.gotoif.falsepriority,l.gotoif.appdata=e.join(",")}c(l.gotoif)},l.closeDialog=c}$m.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Um=$m;function jm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotop.appdata)switch(l.gotop.appType?l.gotop.appType.toLowerCase():l.gotop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotop.appdata.split(",");l.gotop.key=e[0],l.gotop.language=e[1],l.gotop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotop.appdata.split(",");l.gotop.projectId=e[0],l.gotop.clientEmail=e[1],l.gotop.privateKey=e[2],l.gotop.language=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotop.appdata.split(",");l.gotop.accesskeyid=e[0],l.gotop.secretaccesskey=e[1],l.gotop.lexregion=e[2],l.gotop.botname=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotop.appdata.split(",");l.gotop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotop.text=e.slice(1,e.length).join(",")}break;case"message":l.gotop.text=l.gotop.appdata;break;case"set":l.gotop.name=l.gotop.appdata.split("=")[0],l.gotop.value=l.gotop.appdata.split("=")[1];break;case"agi":l.gotop.project=l.gotop.appdata;break;default:{const e=l.gotop.appdata.split(",");l.gotop.priority=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outbounddial"===l.gotop.appType.toLowerCase()&&(l.gotop.prefix=l.gotop.phone?l.gotop.phone.split("$")[0]:void 0,l.gotop.callerId=l.gotop.callerID?"CALLERID(all)="+l.gotop.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outboundDial"===l.gotop.appType&&(l.gotop.phone=o.cutdigits?(l.gotop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotop.options+="U(xcally-mixmonitor-context)"):l.gotop.options=l.gotop.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotop.appType&&"custom"===l.gotop.appType);else switch((l.gotop.app||l.gotop.appType).toLowerCase()){case"set":l.gotop.appdata=l.gotop.name+"="+l.gotop.value;break;case"custom":break;default:e[0]=l.gotop.priority,l.gotop.appdata=e.join(",")}c(l.gotop)},l.closeDialog=c}jm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Fm=jm;function qm(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:null,nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:null,nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}qm.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const Ym=qm;function Hm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.noop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.noop.appdata)switch(l.noop.appType?l.noop.appType.toLowerCase():l.noop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.noop.appdata.split(",");l.noop.key=e[0],l.noop.language=e[1],l.noop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.noop.appdata.split(",");l.noop.projectId=e[0],l.noop.clientEmail=e[1],l.noop.privateKey=e[2],l.noop.language=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.noop.appdata.split(",");l.noop.accesskeyid=e[0],l.noop.secretaccesskey=e[1],l.noop.lexregion=e[2],l.noop.botname=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.noop.appdata.split(",");l.noop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.noop.text=e.slice(1,e.length).join(",")}break;case"message":l.noop.text=l.noop.appdata;break;case"set":l.noop.name=l.noop.appdata.split("=")[0],l.noop.value=l.noop.appdata.split("=")[1];break;case"agi":l.noop.project=l.noop.appdata;break;default:{const e=l.noop.appdata.split(",");l.noop.value=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outbounddial"===l.noop.appType.toLowerCase()&&(l.noop.prefix=l.noop.phone?l.noop.phone.split("$")[0]:void 0,l.noop.callerId=l.noop.callerID?"CALLERID(all)="+l.noop.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outboundDial"===l.noop.appType&&(l.noop.phone=o.cutdigits?(l.noop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.noop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.noop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.noop.options+="U(xcally-mixmonitor-context)"):l.noop.options=l.noop.options.replace("U(xcally-mixmonitor-context)",""));if(l.noop.appType&&"custom"===l.noop.appType);else switch((l.noop.app||l.noop.appType).toLowerCase()){case"set":l.noop.appdata=l.noop.name+"="+l.noop.value;break;case"custom":break;default:e[0]=l.noop.value,l.noop.appdata=e.join(",")}c(l.noop)},l.closeDialog=c}Hm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Bm=Hm;function Gm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.text=e.slice(1,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.queue.queue=300,l.queue.timeout=300;function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.queues,{name:l.queue.queue});t&&(l.queue[u().capitalize("chat")+"QueueId"]=t.id);if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.timeout,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.chatQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.chatQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:501}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Gm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Vm=Gm;function Wm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.system=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.system.appdata)switch(l.system.appType?l.system.appType.toLowerCase():l.system.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.system.appdata.split(",");l.system.key=e[0],l.system.language=e[1],l.system.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.system.appdata.split(",");l.system.projectId=e[0],l.system.clientEmail=e[1],l.system.privateKey=e[2],l.system.language=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.system.appdata.split(",");l.system.accesskeyid=e[0],l.system.secretaccesskey=e[1],l.system.lexregion=e[2],l.system.botname=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.system.appdata.split(",");l.system.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.text=e.slice(1,e.length).join(",")}break;case"message":l.system.text=l.system.appdata;break;case"set":l.system.name=l.system.appdata.split("=")[0],l.system.value=l.system.appdata.split("=")[1];break;case"agi":l.system.project=l.system.appdata;break;default:{const e=l.system.appdata.split(",");l.system.command=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.variable=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.system.variable="";function c(t){e.hide(t)}l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outbounddial"===l.system.appType.toLowerCase()&&(l.system.prefix=l.system.phone?l.system.phone.split("$")[0]:void 0,l.system.callerId=l.system.callerID?"CALLERID(all)="+l.system.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outboundDial"===l.system.appType&&(l.system.phone=o.cutdigits?(l.system.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.system.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.system.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.system.options+="U(xcally-mixmonitor-context)"):l.system.options=l.system.options.replace("U(xcally-mixmonitor-context)",""));if(l.system.appType&&"custom"===l.system.appType);else switch((l.system.app||l.system.appType).toLowerCase()){case"set":l.system.appdata=l.system.name+"="+l.system.value;break;case"custom":break;default:e[0]=l.system.command,e[1]=l.system.variable,l.system.appdata=e.join(",")}c(l.system)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.system&&(n=u().find(l.variables,{name:l.system.variable})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.system&&(t=u().find(l.variables,{name:l.system.variable}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Wm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Qm=Wm;function zm(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="CHAT.EDIT_"+(a.appType||a.app).toUpperCase(),l.tag=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.tag.appdata)switch(l.tag.appType?l.tag.appType.toLowerCase():l.tag.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.tag.appdata.split(",");l.tag.key=e[0],l.tag.language=e[1],l.tag.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.tag.appdata.split(",");l.tag.projectId=e[0],l.tag.clientEmail=e[1],l.tag.privateKey=e[2],l.tag.language=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.tag.appdata.split(",");l.tag.accesskeyid=e[0],l.tag.secretaccesskey=e[1],l.tag.lexregion=e[2],l.tag.botname=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.tag.appdata.split(",");l.tag.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.tag.text=e.slice(1,e.length).join(",")}break;case"message":l.tag.text=l.tag.appdata;break;case"set":l.tag.name=l.tag.appdata.split("=")[0],l.tag.value=l.tag.appdata.split("=")[1];break;case"agi":l.tag.project=l.tag.appdata;break;default:{const e=l.tag.appdata.split(",");l.tag.tag=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outbounddial"===l.tag.appType.toLowerCase()&&(l.tag.prefix=l.tag.phone?l.tag.phone.split("$")[0]:void 0,l.tag.callerId=l.tag.callerID?"CALLERID(all)="+l.tag.callerID:void 0),l.saveChatWebsiteApp=function(){l.errors=[];const e=[];l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outboundDial"===l.tag.appType&&(l.tag.phone=o.cutdigits?(l.tag.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.tag.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.tag.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.tag.options+="U(xcally-mixmonitor-context)"):l.tag.options=l.tag.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.tags,{name:l.tag.tag});t&&(l.tag.TagId=t.id);if(l.tag.appType&&"custom"===l.tag.appType);else switch((l.tag.app||l.tag.appType).toLowerCase()){case"set":l.tag.appdata=l.tag.name+"="+l.tag.value;break;case"custom":break;default:e[0]=l.tag.tag,l.tag.appdata=e.join(",")}c(l.tag)},l.closeDialog=c,i.hasRole("admin")?r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1008}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.tags,{id:e.resourceId})}));let n=null;if(l.tag&&(n=u().find(l.tags,{name:l.tag.tag})),n&&!u().some(t,["id",n.id])){const e=u().find(l.tags,{id:n.id});e.canSelect=!1,t.push(e)}l.tags=t}))}else{const e=[];let t=null;l.tag&&(t=u().find(l.tags,{name:l.tag.tag}));for(let n=0;n<l.tags.length;n++)t&&l.tags[n].id===t.id&&(l.tags[n].canSelect=!1,e.push(l.tags[n]));l.tags=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtags",msg:e.data?JSON.stringify(e.data):e.toString()})}))}zm.$inject=["$mdDialog","$q","toasty","chatWebsiteApp","chatWebsite","api","Auth","crudPermissions"];const Km=zm,Jm=n.p+"templates/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog.html";function Xm(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.chatWebsiteChatCannedAnswers=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.chatWebsite.getAnswers(f.query,m).$promise}function g(e){c.cannedAnswer.delete({id:e.id}).$promise.then((function(){u().remove(f.chatWebsiteChatCannedAnswers.rows,{id:e.id}),f.chatWebsiteChatCannedAnswers.count-=1,f.chatWebsiteChatCannedAnswers.rows.length||p(),l.success({title:"ChatCannedAnswer deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETchatWebsite"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETchatWebsite",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.chatWebsite={},f.chatWebsiteChatCannedAnswers={count:0,rows:[]},f.selectedChatWebsiteChatCannedAnswers=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,key,value,description",limit:10,page:1},f.init=function(e,t){f.chatWebsite=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.ChatWebsiteId=f.chatWebsite.id,f.query.id=f.chatWebsite.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the chatCannedAnswer?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("chatCannedAnswer #")+e.id||"chatCannedAnswer")+"</b> will be deleted.").ariaLabel("delete chatCannedAnswer").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getChatWebsiteChatCannedAnswers=p,f.createOrEditChatWebsiteChatCannedAnswer=function(e,t){i.show({controller:"CreateOrEditChatCannedAnswerDialogController",controllerAs:"vm",templateUrl:Jm,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatWebsite:f.chatWebsite,chatCannedAnswer:t,chatCannedAnswers:f.chatWebsiteChatCannedAnswers.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedChatWebsiteChatCannedAnswers=function(){const e=angular.copy(f.selectedChatWebsiteChatCannedAnswers);return f.selectedChatWebsiteChatCannedAnswers=[],e},f.deleteChatWebsiteChatCannedAnswer=g,f.deleteSelectedChatWebsiteChatCannedAnswers=function(e){const t=i.confirm().title("Are you sure want to delete the selected chatCannedAnswers?").htmlContent("<b>"+f.selectedChatWebsiteChatCannedAnswers.length+" selected</b> will be deleted.").ariaLabel("delete chatCannedAnswers").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedChatWebsiteChatCannedAnswers.forEach((function(e){g(e)})),f.selectedChatWebsiteChatCannedAnswers=[]}))}}Xm.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Zm=Xm;function ep(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CHAT.EDIT_CHATCANNEDANSWER",g.chatCannedAnswer=angular.copy(l),g.chatCannedAnswers=s,g.newChatCannedAnswer=!1,g.chatCannedAnswer||(g.chatCannedAnswer={},g.title="CHAT.NEW_CHATCANNEDANSWER",g.newChatCannedAnswer=!0),t.params.id&&(g.chatCannedAnswer.ChatWebsiteId=t.params.id),g.addNewChatCannedAnswer=function(){g.errors=[],c.cannedAnswer.save(g.chatCannedAnswer).$promise.then((function(e){g.chatCannedAnswers.unshift(e.toJSON()),i.success({title:"ChatCannedAnswer properly created",msg:g.chatCannedAnswer.name?g.chatCannedAnswer.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveChatCannedAnswer=function(){g.errors=[],c.cannedAnswer.update({id:g.chatCannedAnswer.id},g.chatCannedAnswer).$promise.then((function(e){const t=u().find(g.chatCannedAnswers,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ChatCannedAnswer properly saved!",msg:g.chatCannedAnswer.name?g.chatCannedAnswer.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteChatCannedAnswer=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The chatCannedAnswer will be deleted.").ariaLabel("Delete ChatCannedAnswer").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cannedAnswer.delete({id:g.chatCannedAnswer.id}).$promise.then((function(){u().remove(g.chatCannedAnswers,{id:g.chatCannedAnswer.id}),i.success({title:"ChatCannedAnswer properly deleted!",msg:(g.chatCannedAnswer.name||"chatCannedAnswer")+" has been deleted!"}),h(g.chatCannedAnswer)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}ep.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","chatCannedAnswers","chatCannedAnswer","api","Auth","license","setting","crudPermissions"];const tp=ep;function np(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.dispositions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=l.chatWebsite.getDispositions(f.query,m).$promise}function g(e){l.disposition.delete({id:e.id}).$promise.then((function(){p(),c.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.dispositions={count:0,rows:[]},f.selectedDispositions=[],f.crudPermissions,f.levels={first:"1st",second:"2nd",third:"3rd"},f.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},f.init=function(e,t){f.chatWebsite=e||{},f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.ChatWebsiteId=f.chatWebsite.id,f.query.id=f.chatWebsite.id,p()},f.deleteConfirm=function(e,t){const n=u().some(f.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){g(e)}))},f.success=m,f.getDispositions=p,f.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:{id:f.chatWebsite.id,field:"ChatWebsiteId",route:"chatWebsite"},license:null,setting:null,crudPermissions:f.crudPermissions}}).then((function(e){e&&p()}))},f.deleteDisposition=g,f.exportSelectedDispositions=function(){const e=angular.copy(f.selectedDispositions);return f.selectedDispositions=[],e},f.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:f.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){f.selectedDispositions.forEach((function(e){g(e)})),f.selectedDispositions=[]}))},f.deselectDispositions=function(){f.selectedDispositions=[]},f.selectAllDispositions=function(){f.selectedDispositions=f.dispositions.rows}}np.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","api","toasty","Auth"];const ap=np;function op(e,t,n){const a=this;a.chatWebsite={},a.offlineForm={},a.buttons=[{type:"label",name:"Label",icon:"icon-label"},{type:"chooseFromList",name:"Select",icon:"icon-playlist-plus"},{type:"input",name:"Input",icon:"icon-keyboard"},{type:"textarea",name:"Textarea",icon:"icon-format-text"},{type:"multipleChoices",name:"Radio Buttons",icon:"icon-radiobox-marked"},{type:"checkboxes",name:"Checkboxes",icon:"icon-checkbox-multiple-marked-outline"},{type:"agreement",name:"Agreement",icon:"icon-checkbox-marked-outline"},{type:"upload",name:"Upload",icon:"icon-upload"}],a.init=function(e){a.fields=[],a.customFields=[],a.uselessFields=["id","createdAt","updatedAt","ListId","CompanyId","$promise","$resolved"],a.chatWebsite=e,u().isEmpty(a.chatWebsite.offlineForm)&&(a.chatWebsite.offlineForm={items:[],fromKey:null});n.cmList.getCustomFields({id:a.chatWebsite.ListId}).$promise.then((function(e){for(let t=0;t<e.rows.length;t++)a.customFields.push({key:"cf_"+e.rows[t].id,value:e.rows[t].alias});return n.cmContact.describe().$promise})).then((function(e){const t=u().keys(e);for(let e=0;e<t.length;e++)u().includes(a.uselessFields,t[e])||u().startsWith(t[e],"cf_")||a.fields.unshift({key:t[e],value:t[e]});return n.variable.get().$promise})).then((function(e){return a.variables=e.rows,n.mailAccount.get({fields:"id,name",raw:!0}).$promise.then((function(e){a.email_accounts=e.rows}))})).catch((function(e){console.error(e)}))},a.up=function(e,t){if(0!==t){const n=a.chatWebsite.offlineForm.items[t-1];a.chatWebsite.offlineForm.items[t]=n,a.chatWebsite.offlineForm.items[t-1]=angular.copy(e),a.chatWebsite.offlineForm.fromKey===t?a.chatWebsite.offlineForm.fromKey--:a.chatWebsite.offlineForm.fromKey===t-1&&a.chatWebsite.offlineForm.fromKey++}},a.down=function(e,t){if(t!==a.chatWebsite.offlineForm.items.length-1){const n=a.chatWebsite.offlineForm.items[t+1];a.chatWebsite.offlineForm.items[t]=n,a.chatWebsite.offlineForm.items[t+1]=angular.copy(e),a.chatWebsite.offlineForm.fromKey===t?a.chatWebsite.offlineForm.fromKey++:a.chatWebsite.offlineForm.fromKey===t+1&&a.chatWebsite.offlineForm.fromKey--}},a.add=function(e){a.chatWebsite.offlineForm.items.push({type:e,cmField:null,variable:null})},a.remove=function(t){const n=e.confirm().title("The component will be deleted.").textContent("Are you sure?").ariaLabel("Lucky day").ok("Ok").cancel("Cancel");e.show(n).then((function(){a.chatWebsite.offlineForm.items.splice(t,1)}))},a.card_type="offline",a.email_accounts=[]}op.$inject=["$mdDialog","$document","api"];const rp=op;function ip(e,t,n){const a=this;a.chatWebsite={},a.onlineForm={},a.buttons=[{type:"label",name:"Label",icon:"icon-label"},{type:"chooseFromList",name:"Select",icon:"icon-playlist-plus"},{type:"input",name:"Input",icon:"icon-keyboard"},{type:"textarea",name:"Textarea",icon:"icon-format-text"},{type:"multipleChoices",name:"Radio Buttons",icon:"icon-radiobox-marked"},{type:"checkboxes",name:"Checkboxes",icon:"icon-checkbox-multiple-marked-outline"},{type:"agreement",name:"Agreement",icon:"icon-checkbox-marked-outline"}],a.init=function(e){a.fields=[],a.customFields=[],a.uselessFields=["id","createdAt","updatedAt","ListId","CompanyId","$promise","$resolved"],a.chatWebsite=e,u().isEmpty(a.chatWebsite.onlineForm)&&(a.chatWebsite.onlineForm={items:[],fromKey:null});n.cmList.getCustomFields({id:a.chatWebsite.ListId}).$promise.then((function(e){for(let t=0;t<e.rows.length;t++)a.customFields.push({key:"cf_"+e.rows[t].id,value:e.rows[t].alias});return n.cmContact.describe().$promise})).then((function(e){const t=u().keys(e);for(let e=0;e<t.length;e++)u().includes(a.uselessFields,t[e])||u().startsWith(t[e],"cf_")||a.fields.unshift({key:t[e],value:t[e]});return n.variable.get().$promise})).then((function(e){return a.variables=e.rows,n.mailAccount.get({fields:"id,name",raw:!0}).$promise.then((function(e){a.email_accounts=e.rows}))})).catch((function(e){console.error(e)}))},a.up=function(e,t){if(0!==t){const n=a.chatWebsite.onlineForm.items[t-1];a.chatWebsite.onlineForm.items[t]=n,a.chatWebsite.onlineForm.items[t-1]=angular.copy(e),a.chatWebsite.onlineForm.fromKey===t?a.chatWebsite.onlineForm.fromKey--:a.chatWebsite.onlineForm.fromKey===t-1&&a.chatWebsite.onlineForm.fromKey++}},a.down=function(e,t){if(t!==a.chatWebsite.onlineForm.items.length-1){const n=a.chatWebsite.onlineForm.items[t+1];a.chatWebsite.onlineForm.items[t]=n,a.chatWebsite.onlineForm.items[t+1]=angular.copy(e),a.chatWebsite.onlineForm.fromKey===t?a.chatWebsite.onlineForm.fromKey++:a.chatWebsite.onlineForm.fromKey===t+1&&a.chatWebsite.onlineForm.fromKey--}},a.add=function(e){a.chatWebsite.onlineForm.items.push({type:e,cmField:null,variable:null})},a.remove=function(t){const n=e.confirm().title("The component will be deleted.").textContent("Are you sure?").ariaLabel("Lucky day").ok("Ok").cancel("Cancel");e.show(n).then((function(){a.chatWebsite.onlineForm.fromKey===t&&(a.chatWebsite.onlineForm.fromKey=null),a.chatWebsite.onlineForm.items.splice(t,1),a.chatWebsite.onlineForm.items.length||(a.chatWebsite.onlineForm.fromKey=null)}))},a.card_type="online",a.email_accounts=[]}ip.$inject=["$mdDialog","$document","api"];const sp=ip;function lp(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.chatWebsite={},a.crudPermissions,a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.chatWebsite.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.chatWebsite.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e,t){a.chatWebsite=angular.copy(e),a.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},a.ngFlowOptions.target=`${a.baseUrl}api/chat/websites/:id/customer_avatar`.replace(":id",a.chatWebsite.id),a.chatWebsite.images=[]}}lp.$inject=["$cookies","toasty","api"];const cp=lp,up=n.p+"templates/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog.html";function dp(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.chatWebsiteInteractions=e||{count:0,rows:[]};for(let e=0;e<m.chatWebsiteInteractions.rows.length;e+=1){const t=m.chatWebsiteInteractions.rows[e];_(t),t.Owner.name=b(t)}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,m.promise=d.chatInteraction.get(m.query,p).$promise}function h(e){d.chatInteraction.delete({id:e.id}).$promise.then((function(){u().remove(m.chatWebsiteInteractions.rows,{id:e.id}),m.chatWebsiteInteractions.count-=1,m.chatWebsiteInteractions.rows.length||g(),c.success({title:"Interaction deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETchatWebsite"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETchatWebsite",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){e.Contact?e.contactName=(e.Contact.firstName||"")+" "+(e.Contact.lastName||""):e.contactName=r.instant("APP.UNKNOWN")}function b(e){return e.UserId?e.UserId===m.currentUser.id?r.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">":r.instant("DASHBOARDS.NOT_ASSIGNED")}m.currentUser=f.getCurrentUser(),m.chatWebsite={},m.chatWebsiteInteractions={count:0,rows:[]},m.selectedChatWebsiteInteractions=[],m.crudPermissions,m.query={read:null,closed:null,sort:"-createdAt",includeAll:!0,limit:10,page:1,createdAt:{$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()}},m.init=function(e,t){m.chatWebsite=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.ChatWebsiteId=m.chatWebsite.id,m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Customer Ip",column:"customerIp",type:"text",options:{excludedOperators:["$eq","$ne","$startsWith","$endsWith"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},d.tag.get().$promise.then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:null,translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).then((()=>g()))},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the interaction?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("interaction #")+e.id||"interaction")+"</b> will be deleted.").ariaLabel("delete interaction").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.chatInteractionDownload=function(e,t,n){return d.chatInteraction.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="interaction"+e.id;const o=new Blob(n,{type:t.type});a="chat-interaction"+e.id+".zip";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatWebsite.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.success=p,m.getChatWebsiteInteractions=g,m.spychatInteraction=function(e,n){s.show({controller:"AgentGeneralInteractionController",controllerAs:"vm",templateUrl:up,parent:angular.element(l.body),targetEvent:e,clickOutsideToClose:!0,onShowing:function(e){e.vm.init({id:1,channel:"chat",interaction:n,spy:!0},t.$parent.vm.setting)}})},m.openAdvancedSearch=function(){s.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(l.body),clickOutsideToClose:!1,locals:{fields:m.advancedSearch.fields,color:void 0,storagePath:"chat.chatWebsites"},fullscreen:!0}).then((function(e){if(m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply){let t="";t+="||ChatWebsiteId:=$eq["+m.chatWebsite.id+"]",m.query.search=e.value?e.value+=t:e.value,g()}})).catch((function(e){c.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.exportSelectedChatWebsiteInteractions=function(){const e=angular.copy(m.selectedChatWebsiteInteractions);return m.selectedChatWebsiteInteractions=[],e},m.deleteChatWebsiteInteraction=h,m.deleteSelectedChatWebsiteInteractions=function(e){const t=s.confirm().title("Are you sure want to delete the selected interactions?").htmlContent("<b>"+m.selectedChatWebsiteInteractions.length+" selected</b> will be deleted.").ariaLabel("delete interactions").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedChatWebsiteInteractions.forEach((function(e){h(e)})),m.selectedChatWebsiteInteractions=[]}))}}dp.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const fp=dp;function mp(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.chatWebsite={},a.crudPermissions,a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.chatWebsite.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.chatWebsite.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e,t){a.chatWebsite=angular.copy(e),a.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},a.ngFlowOptions.target=`${a.baseUrl}api/chat/websites/:id/logo`.replace(":id",a.chatWebsite.id),a.chatWebsite.images=[]}}mp.$inject=["$cookies","toasty","api"];const pp=mp,gp=n.p+"templates/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog.html";function hp(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.chatWebsiteOfflineMessages=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.chatWebsite.getOfflineMessages(f.query,m).$promise}function g(e){c.chatOfflineMessage.delete({id:e.id}).$promise.then((function(){u().remove(f.chatWebsiteOfflineMessages.rows,{id:e.id}),f.chatWebsiteOfflineMessages.count-=1,f.chatWebsiteOfflineMessages.rows.length||p(),l.success({title:"OfflineMessage deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETchatWebsite"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETchatWebsite",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.chatWebsite={},f.chatWebsiteOfflineMessages={count:0,rows:[]},f.selectedChatWebsiteOfflineMessages=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,Contact.firstName,Attachments",sort:"-createdAt",limit:10,page:1},f.init=function(e,t){f.chatWebsite=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.id=f.chatWebsite.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the offlineMessage?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("offlineMessage #")+e.id||"offlineMessage")+"</b> will be deleted.").ariaLabel("delete offlineMessage").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getChatWebsiteOfflineMessages=p,f.createOrEditChatWebsiteOfflineMessage=function(e,t){i.show({controller:"CreateOrEditOfflineMessageDialogController",controllerAs:"vm",templateUrl:gp,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatWebsite:f.chatWebsite,offlineMessage:t,offlineMessages:f.chatWebsiteOfflineMessages.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.showOfflineMessageChatWebsiteOfflineMessage=function(e,t){i.show({controller:"ShowOfflineMessageOfflineMessageDialogController",controllerAs:"vm",templateUrl:gp,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,resolve:{message:["apiResolver",function(e){return e.resolve("chatOfflineMessage@get",{fields:"id,body,Attachments",id:t.id})}]}})},f.exportSelectedChatWebsiteOfflineMessages=function(){const e=angular.copy(f.selectedChatWebsiteOfflineMessages);return f.selectedChatWebsiteOfflineMessages=[],e},f.deleteChatWebsiteOfflineMessage=g,f.deleteSelectedChatWebsiteOfflineMessages=function(e){const t=i.confirm().title("Are you sure want to delete the selected offlineMessages?").htmlContent("<b>"+f.selectedChatWebsiteOfflineMessages.length+" selected</b> will be deleted.").ariaLabel("delete offlineMessages").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedChatWebsiteOfflineMessages.forEach((function(e){g(e)})),f.selectedChatWebsiteOfflineMessages=[]}))}}hp.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const _p=hp;function bp(e,t,n,a){const o=this;o.title="CHAT.OFFLINE_MESSAGE",o.message=t,o.attachments=t.Attachments,o.baseUrl=n.baseUrl,o.closeDialog=function(t){e.hide(t)},o.download=function(e){return n.attachment.download({id:e.id}).$promise.then((t=>{const n=[t.buffer],o=new Blob(n,{type:t.type}),r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",e.name),document.body.appendChild(r),r.click(),a.success({title:"Attachment downloaded!",msg:`${e.name} downloaded successfully`})})).catch((e=>{var t;a.error({title:"Error",msg:null!==(t=null==e?void 0:e.statusText)&&void 0!==t?t:"An error occurred"})}))}}bp.$inject=["$mdDialog","message","api","toasty"];const yp=bp,vp=n.p+"templates/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html/dialog.html";function Ap(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.chatWebsiteProactiveActions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.chatWebsite.getProactiveActions(f.query,m).$promise}function g(e){c.chatProactiveAction.delete({id:e.id}).$promise.then((function(){u().remove(f.chatWebsiteProactiveActions.rows,{id:e.id}),f.chatWebsiteProactiveActions.count-=1,f.chatWebsiteProactiveActions.rows.length||p(),l.success({title:"ChatProactiveAction deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETchatWebsite"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETchatWebsite",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.chatWebsite={},f.chatWebsiteProactiveActions={count:0,rows:[]},f.selectedChatWebsiteProactiveActions=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,name,type,selector,timeout",limit:10,page:1},f.arraytype=u().keyBy([{option:"MouseOver",value:"'mouseOver'"},{option:"Timeout",value:"'timeout'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),f.init=function(e,t){f.chatWebsite=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.ChatWebsiteId=f.chatWebsite.id,f.query.id=f.chatWebsite.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the chatProactiveAction?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("chatProactiveAction #")+e.id||"chatProactiveAction")+"</b> will be deleted.").ariaLabel("delete chatProactiveAction").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getChatWebsiteProactiveActions=p,f.createOrEditChatWebsiteChatProactiveAction=function(e,t){i.show({controller:"CreateOrEditChatProactiveActionDialogController",controllerAs:"vm",templateUrl:vp,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{chatWebsite:f.chatWebsite,chatProactiveAction:t,proactive:f.chatWebsiteProactiveActions.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedChatWebsiteProactiveActions=function(){const e=angular.copy(f.selectedChatWebsiteProactiveActions);return f.selectedChatWebsiteProactiveActions=[],e},f.deleteChatWebsiteChatProactiveAction=g,f.deleteSelectedChatWebsiteProactiveActions=function(e){const t=i.confirm().title("Are you sure want to delete the selected proactive?").htmlContent("<b>"+f.selectedChatWebsiteProactiveActions.length+" selected</b> will be deleted.").ariaLabel("delete proactive").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedChatWebsiteProactiveActions.forEach((function(e){g(e)})),f.selectedChatWebsiteProactiveActions=[]}))}}Ap.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Sp=Ap;function wp(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CHAT.EDIT_CHATPROACTIVEACTION",g.chatProactiveAction=angular.copy(l),g.proactive=s,g.newChatProactiveAction=!1,g.chatProactiveAction||(g.chatProactiveAction={type:"mouseOver"},g.title="CHAT.NEW_CHATPROACTIVEACTION",g.newChatProactiveAction=!0),t.params.id&&(g.chatProactiveAction.ChatWebsiteId=t.params.id),g.addNewChatProactiveAction=function(){g.errors=[],c.chatProactiveAction.save(g.chatProactiveAction).$promise.then((function(e){g.proactive.unshift(e.toJSON()),i.success({title:"ChatProactiveAction properly created",msg:g.chatProactiveAction.name?g.chatProactiveAction.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatProactiveAction.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatProactiveAction.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveChatProactiveAction=function(){g.errors=[],c.chatProactiveAction.update({id:g.chatProactiveAction.id},g.chatProactiveAction).$promise.then((function(e){const t=u().find(g.proactive,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ChatProactiveAction properly saved!",msg:g.chatProactiveAction.name?g.chatProactiveAction.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatProactiveAction.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatProactiveAction.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteChatProactiveAction=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The chatProactiveAction will be deleted.").ariaLabel("Delete ChatProactiveAction").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.chatProactiveAction.delete({id:g.chatProactiveAction.id}).$promise.then((function(){u().remove(g.proactive,{id:g.chatProactiveAction.id}),i.success({title:"ChatProactiveAction properly deleted!",msg:(g.chatProactiveAction.name||"chatProactiveAction")+" has been deleted!"}),h(g.chatProactiveAction)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.chatProactiveAction.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.chatProactiveAction.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}wp.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","proactive","chatProactiveAction","api","Auth","license","setting","crudPermissions"];const Ep=wp;function Cp(e){const t=this;t.chatWebsite={},t.init=function(e){t.chatWebsite=e,t.start="\n\x3c!-- START Motion Chat Script --\x3e",t.script='\n    <script src="'+t.chatWebsite.remote+"/api/chat/websites/"+t.chatWebsite.id+"/snippet?token="+t.chatWebsite.token+'"><\/script>',t.end="\n\x3c!-- START Motion Chat Script --\x3e"},t.info={},e.$watch("vm_ac.chatWebsite.remote",(function(){t.script='\n    <script src="'+t.chatWebsite.remote+"/api/chat/websites/"+t.chatWebsite.id+"/snippet?token="+t.chatWebsite.token+'"><\/script>'}))}Cp.$inject=["$scope"];const Tp=Cp;function Ip(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.chatWebsite={},a.crudPermissions,a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.chatWebsite.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.chatWebsite.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e,t){a.chatWebsite=angular.copy(e),a.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},a.ngFlowOptions.target=`${a.baseUrl}api/chat/websites/:id/system_avatar`.replace(":id",a.chatWebsite.id),a.chatWebsite.images=[]}}Ip.$inject=["$cookies","toasty","api"];const kp=Ip;function Dp(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.chatWebsite=d||e.params.chatWebsite||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.agentadddialog=function(e,t){n.show({controller:"ChatWebsiteagentaddController",controllerAs:"vm",templateUrl:Zf,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{chatWebsite:e,chatWebsites:m.chatWebsites?m.chatWebsites.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.alert=l.info,m.gotoChatWebsites=function(){e.go("app.chat.chatWebsites",{},{reload:"app.chat.chatWebsites"})},m.saveChatWebsite=function(){s.chatWebsite.update({id:m.chatWebsite.id},m.chatWebsite).$promise.then((function(){l.success({title:"ChatWebsite updated!",msg:m.chatWebsite.name?m.chatWebsite.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETchatWebsite",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.lists,{id:e.resourceId})}));let n=null;if(m.chatWebsite&&(n=u().find(m.lists,{id:Number(m.chatWebsite.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.lists,{id:n.id});e.canSelect=!1,t.push(e)}m.lists=t}))}else{const e=[];let t=null;m.chatWebsite&&(t=u().find(m.lists,{id:Number(m.chatWebsite.ListId)}));for(let n=0;n<m.lists.length;n++)t&&m.lists[n].id===t.id&&(m.lists[n].canSelect=!1,e.push(m.lists[n]));m.lists=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.interval.get({fields:"id,name",sort:"name",IntervalId:null}).$promise.then((function(e){m.interval=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name",sort:"name",IntervalId:null}).$promise.then((function(e){m.interval=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.interval,{id:e.resourceId})}));let n=null;if(m.chatWebsite&&(n=u().find(m.interval,{id:Number(m.chatWebsite.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.interval,{id:n.id});e.canSelect=!1,t.push(e)}m.interval=t}))}else{const e=[];let t=null;m.chatWebsite&&(t=u().find(m.interval,{id:Number(m.chatWebsite.IntervalId)}));for(let n=0;n<m.interval.length;n++)t&&m.interval[n].id===t.id&&(m.interval[n].canSelect=!1,e.push(m.interval[n]));m.interval=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Dp.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","chatWebsite","userProfileSection"];const xp=Dp;function Mp(e,t){e.state("app.chat",{abstract:!0,url:"/chat"}).state("app.chat.chatQueues",{url:"/chatQueues",views:{"content@app":{templateUrl:Cf,controller:"ChatQueuesController as vm"}},resolve:{chatQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("chatQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"chat",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ChatQueues",fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"chat",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:501})}]},authenticate:!0,permissionId:501,bodyClass:"chat"}).state("app.chat.chatQueues.edit",{url:"/:id?tab",params:{chatQueue:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:Tf,controller:"ChatQueueController as vm"}},resolve:{chatQueue:["apiResolver","$stateParams",function(e,t){return e.resolve("chatQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:501})}]},authenticate:!0,permissionId:501,bodyClass:"chat"}).state("app.chat.chatWebsites",{url:"/chatWebsites",views:{"content@app":{templateUrl:If,controller:"ChatWebsitesController as vm"}},resolve:{chatWebsites:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("chatWebsite@get",{fields:"createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,MailAccountId,openNewInteraction,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ChatWebsites",fields:"createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,MailAccountId,openNewInteraction,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:502})}]},authenticate:!0,permissionId:502,bodyClass:"chat"}).state("app.chat.chatWebsites.edit",{url:"/:id?tab",params:{chatWebsite:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:kf,controller:"ChatWebsiteController as vm"}},resolve:{chatWebsite:["apiResolver","$stateParams",function(e,t){return e.resolve("chatWebsite@get",{fields:"createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,MailAccountId,openNewInteraction,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:502})}]},authenticate:!0,permissionId:502,bodyClass:"chat"}),t.addPart("app/main/apps/chat")}Mp.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.chat",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.chat.realtime"]).config(Mp).controller("ChatQueuesController",Bf).controller("CreateOrEditChatQueueDialogController",Vf).controller("ChatQueueagentaddController",Qf).controller("ChatQueueteamaddController",Kf).controller("ChatQueueController",Xf).controller("ChatWebsitesController",nm).controller("CreateOrEditChatWebsiteDialogController",om).controller("ChatWebsiteDispositionsController",ap).controller("ChatWebsiteActionsController",vm).controller("ChatWebsiteagentaddController",Sm).controller("ChatWebsiteagentAvatarController",Em).controller("EditChatWebsiteAppagentDialogController",Tm).controller("EditChatWebsiteAppamazonlexDialogController",km).controller("EditChatWebsiteAppamazonlexDialogController",km).controller("EditChatWebsiteAppautoreplyDialogController",xm).controller("EditChatWebsiteAppcloseDialogController",Pm).controller("EditChatWebsiteAppdialogflowDialogController",Rm).controller("EditChatWebsiteAppdialogflowv2DialogController",Lm).controller("EditChatWebsiteAppgotoifDialogController",Um).controller("EditChatWebsiteAppgotopDialogController",Fm).controller("EditChatWebsiteAppintervalDialogController",Ym).controller("EditChatWebsiteAppnoopDialogController",Bm).controller("EditChatWebsiteAppqueueDialogController",Vm).controller("EditChatWebsiteAppsystemDialogController",Qm).controller("EditChatWebsiteApptagDialogController",Km).controller("ChatWebsiteChatCannedAnswersController",Zm).controller("CreateOrEditChatCannedAnswerDialogController",tp).controller("ChatWebsiteDispositionsController",ap).controller("ChatWebsiteofflineFormController",rp).controller("ChatWebsiteonlineFormController",sp).controller("ChatWebsitecustomerAvatarController",cp).controller("ChatWebsiteInteractionsController",fp).controller("ChatWebsitelogoController",pp).controller("ChatWebsiteOfflineMessagesController",_p).controller("ShowOfflineMessageOfflineMessageDialogController",yp).controller("ChatWebsiteProactiveActionsController",Sp).controller("CreateOrEditChatProactiveActionDialogController",Ep).controller("ChatWebsiteScriptController",Tp).controller("ChatWebsitesystemAvatarController",kp).controller("ChatWebsiteController",xp);const Pp=n.p+"templates/main/apps/mail/views/realtime/realtime.html/realtime.html",Op=n.p+"templates/main/apps/mail/views/realtime/agents/view.html/view.html",Rp=n.p+"templates/main/apps/mail/views/realtime/queues/view.html/view.html",Np=n.p+"templates/main/apps/mail/views/realtime/accounts/view.html/view.html";function Lp(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"mail",direction:"inbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}Lp.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const $p=Lp,Up=n.p+"templates/main/apps/mail/views/mailQueues/create/dialog.html/dialog.html",jp=n.p+"templates/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd.html";function Fp(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.mailQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].MailQueueId].paused++,g.queues[e[t].rows[n].MailQueueId].loggedInDb++,g.queues[e[t].rows[n].MailQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].MailQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"inbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"mail",type:"inbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.mailQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="MailQueues",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditMailQueue=function(e,t){n.show({controller:"CreateOrEditMailQueueDialogController",controllerAs:"vm",templateUrl:Up,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{mailQueue:t,mailQueues:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.agentAdd=function(e,t){n.show({controller:"MailQueueagentaddController",controllerAs:"vm",templateUrl:jp,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{mailQueue:t,mailQueues:g.queues?g.queues.rows:[],realtime:!1,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.mailQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&u().merge(g.queues[e.id],u().pick(e,h))},g.onSaveMember=function(e){g.queues[e.MailQueueId]&&g.queues[e.MailQueueId].loggedInDb++},g.onRemoveMember=function(e){g.queues[e.MailQueueId]&&g.queues[e.MailQueueId].loggedInDb--},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.MailQueueId]&&(g.queues[e.MailQueueId].loggedInDb+=1,g.queues[e.MailQueueId].agents[e.UserId]=e.MailQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.MailQueueId]&&g.queues[e.MailQueueId].loggedInDb>0&&(g.queues[e.MailQueueId].loggedInDb-=1,delete g.queues[e.MailQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.on("mail_queue:save",g.onSave),c.on("userMailQueue:save",g.onSaveMember),c.on("userMailQueue:remove",g.onRemoveMember),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("mail_queue:save"),c.removeAllListeners("userMailQueue:remove"),c.removeAllListeners("userMailQueue:save"),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}Fp.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const qp=Fp;const Yp=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function Hp(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.mail.realtime.agents":a.selectedTab=0;break;case"app.mail.realtime.queues":a.selectedTab=1;break;case"app.mail.realtime.accounts":a.selectedTab=2;break;default:a.selectedTab=0,t.go("app.mail.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.mail.realtime.agents");break;case 1:t.go("app.mail.realtime.queues");break;case 2:t.go("app.mail.realtime.accounts");break;default:t.go("app.mail.realtime.agents")}}))}Hp.$inject=["$scope","$state","socket"];const Bp=Hp;function Gp(e,t,n,a,r,i,s,l,c,d,f,m,p){const g=this;function h(){u().forIn(g.mailAccounts,(function(e,t){g.rpcMailAccounts[t]&&u().merge(e,g.rpcMailAccounts[t])})),u().forIn(g.mailAccounts,(function(e,t){const n={id:t,sort:"-id",direction:"in",limit:1,offset:0,$gte:"createdAt,"+o()().startOf("day").format("YYYY-MM-DD HH:mm:ss"),fields:"id,createdAt"};i.mailAccount.getMessages(n).$promise.then((function(t){return t&&(e.in=t.count||0,e.lastIn=t.rows&&t.rows.length?t.rows[0].createdAt:void 0),n.direction="out",i.mailAccount.getMessages(n).$promise})).then((function(t){t&&(e.out=t.count||0,e.lastOut=t.rows&&t.rows.length?t.rows[0].createdAt:void 0)})).catch((function(e){console.log(e)}))}))}function _(e){if(g.mailAccounts=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}h()}g.currentUser=p.getCurrentUser(),g.count=c&&c.count?c.count:0,g.mailAccounts=c?u().keyBy(c.rows?c.rows:[],"id"):{},g.rpcMailAccounts=d?u().keyBy(d.rows?d.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),g.query={sort:"-name",limit:10,page:1},g.success=_,g.$onInit=h,g.getMailAccounts=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=i.mailAccount.get(g.query,_).$promise:(g.query.id=g.userProfile.id,g.query.section="MailAccounts",g.promise=i.userProfile.getResources(g.query,_).$promise)},g.onSave=function(e){g.mailAccounts[e.id]&&u().merge(g.mailAccounts[e.id],e)},g.onMailMessageSave=function(e){g.mailAccounts[e.MailAccountId]&&("in"==e.direction?(g.mailAccounts[e.MailAccountId].in+=1,g.mailAccounts[e.MailAccountId].lastIn=e.createdAt):(g.mailAccounts[e.MailAccountId].out+=1,g.mailAccounts[e.MailAccountId].lastOut=e.createdAt))},g.goToMailAccount=function(e,t){r.go("app.mail.mailAccounts.edit",{id:t.id,mailAccount:t})},g.verifySmtp=function(e,t){if(t&&t.id)return i.mailAccount.verifySmtp({id:t.id}).$promise.then((function(){l.success({title:"Smtp properly verified",msg:"Connection succeded!"})})).catch((function(e){l.error({title:"Smtp properly verified",msg:e.data?JSON.stringify(e.data):e.toString()})}));l.error({title:"Smtp properly verified",msg:"Smpt id unknown"})},g.order=[],u().forIn(g.mailAccounts,(function(e){g.order.push(e.id)})),s.on("mailAccount:save",g.onSave),s.on("mailAccount:update",g.onSave),s.on("mailMessage:save",g.onMailMessageSave),e.$on("$destroy",(function(){s.removeAllListeners("mailAccount:save"),s.removeAllListeners("mailAccount:update"),s.removeAllListeners("mailMessage:save")}))}Gp.$inject=["$scope","$timeout","$mdDialog","$document","$state","api","socket","toasty","mailAccounts","rpcMailAccounts","userProfile","userProfileSection","Auth"];const Vp=Gp;function Wp(e){e.state("app.mail.realtime",{url:"/realtime",views:{"content@app":{templateUrl:Pp,controller:"MailRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:610})}]},authenticate:!0,permissionId:610}).state("app.mail.realtime.agents",{url:"/agents",controller:"AgentsMailRealtimeController as vm",templateUrl:Op,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:610}).state("app.mail.realtime.queues",{url:"/queues",controller:"QueuesMailRealtimeController as vm",templateUrl:Rp,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("mailQueue@get",{type:"inbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"MailQueues",channel:"mail",type:"inbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:601})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getMailQueues")}]},authenticate:!0,permissionId:610}).state("app.mail.realtime.accounts",{url:"/accounts",controller:"MailAccountsRealtimeController as vm",templateUrl:Np,resolve:{mailAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("mailAccount@get",{sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"MailAccounts",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:602})}],rpcMailAccounts:["apiResolver",function(e){return e.resolve("rpc@getMailAccounts")}]},authenticate:!0,permissionId:610})}Wp.$inject=["$stateProvider"],angular.module("app.mail.realtime",[]).config(Wp).controller("AgentsMailRealtimeController",$p).controller("QueuesMailRealtimeController",qp).factory("helperClasses",Yp).controller("MailRealtimeController",Bp).controller("MailAccountsRealtimeController",Vp);const Qp=n.p+"templates/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues.html",zp=n.p+"templates/main/apps/mail/views/mailQueues/edit/view.html/view.html",Kp=n.p+"templates/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts.html",Jp=n.p+"templates/main/apps/mail/views/mailAccounts/edit/view.html/view.html",Xp=n.p+"templates/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses.html";function Zp(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="MAIL.EDIT_MAILACCOUNT",g.mailAccount=angular.copy(l),g.mailAccounts=s,g.newMailAccount=!1,g.mailAccount||(g.mailAccount={active:!0,cservice:null,cauthentication:!0,fontSize:13,waitForTheAssignedAgent:10,notificationSound:!0,queueTransferTimeout:300,agentTransferTimeout:300},g.title="MAIL.NEW_MAILACCOUNT",g.newMailAccount=!0),t.params.id&&(g.mailAccount.MailAccountId=t.params.id),g.addNewMailAccount=function(){g.errors=[],c.mailAccount.save(g.mailAccount).$promise.then((function(e){g.mailAccounts.unshift(e.toJSON()),i.success({title:"MailAccount properly created",msg:g.mailAccount.name?g.mailAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveMailAccount=function(){g.errors=[],c.mailAccount.update({id:g.mailAccount.id},g.mailAccount).$promise.then((function(e){const t=u().find(g.mailAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"MailAccount properly saved!",msg:g.mailAccount.name?g.mailAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteMailAccount=function(e){if(g.mailAccount.service)return i.error({title:"Mail Account not deleted!",msg:"You can't remove service account"});g.errors=[];const t=a.confirm().title("Are you sure?").content("The mailAccount will be deleted.").ariaLabel("Delete MailAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.mailAccount.delete({id:g.mailAccount.id}).$promise.then((function(){u().remove(g.mailAccounts,{id:g.mailAccount.id}),i.success({title:"MailAccount properly deleted!",msg:(g.mailAccount.name||"mailAccount")+" has been deleted!"}),h(g.mailAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.lists,{id:e.resourceId})}));let n=null;if(g.mailAccount&&(n=u().find(g.lists,{id:Number(g.mailAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.lists,{id:n.id});e.canSelect=!1,t.push(e)}g.lists=t}))}else{const e=[];let t=null;g.mailAccount&&(t=u().find(g.lists,{id:Number(g.mailAccount.ListId)}));for(let n=0;n<g.lists.length;n++)t&&g.lists[n].id===t.id&&(g.lists[n].canSelect=!1,e.push(g.lists[n]));g.lists=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Zp.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","mailAccounts","mailAccount","api","Auth","license","setting","crudPermissions"];const eg=Zp,tg=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html/dialog.html",ng=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog.html",ag=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog.html",og=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog.html",rg=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog.html",ig=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog.html",sg=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog.html",lg=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog.html",cg=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html/dialog.html",ug=n.p+"templates/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html/dialog.html";fg.$inject=["api","$mdDialog","$document","toasty","Auth"];const dg={agent:tg,autoreply:ng,close:ag,gotoif:og,gotop:rg,interval:ig,noop:sg,queue:lg,system:cg,tag:ug};function fg(e,t,n,a,o){const r=this;function i(e,o){if(r.mailAccountApps.rows.length){const i=r.mailAccountApps.rows[o]?r.mailAccountApps.rows[o]:r.mailAccountApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditMailAccountApp${l}DialogController`,controllerAs:"vm",templateUrl:dg[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{mailAccountApp:i,mailAccount:r.mailAccount,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.mailAccountApps.rows[o]=e:r.mailAccountApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){let t=1,n=[];r.mailAccountApps.rows=r.mailAccountApps.rows.filter((e=>e.appdata));for(let e=0;e<r.mailAccountApps.rows.length;e++){const a=r.mailAccountApps.rows[e],o=[],i=[];a.intervals="*,*,*,*"!==a.interval?[a.interval]:a.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:a.IntervalId}),"interval"):[],a.context=r.mailAccount.context,a.exten=r.mailAccount.exten,a.type&&(a.type=a.type.toLowerCase()),a.priority=o.length?u().last(o).priority+1:t,t=(i.length?u().last(i).priority:a.priority)+1,n=u().concat(n,o,[a],i)}e.mailAccount.addApplications({id:r.mailAccount.id},u().sortBy(n,"priority")).$promise.then((function(e){r.mailAccountApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.mailAccountApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.mailAccount={},r.mailAccountApps={count:0,rows:[]},r.selectedMailAccountApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",types:["always","custom","list"],fields:[],isApp:!1},{app:"noop",appType:"noop",type:"noop",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,fields:[{title:"Value",name:"value",type:"text",param:0}]},{app:"system",appType:"system",type:"system",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,extraApi:[{name:"variables",field:{name:"variable",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],fields:[{title:"Command",name:"command",type:"text",required:!0,param:0},{title:"Variable",name:"variable",type:"apiselect",values:"variables",value:"variable.name",option:"variable.name",defaultValues:[{value:"''",option:"None"}],defaultValue:"''",param:1}]},{app:"gotop",appType:"gotop",type:"goto",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Priority",name:"priority",type:"number",required:!0,min:0,param:0}]},{app:"gotoif",appType:"gotoif",type:"gotoif",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Condition",name:"condition",type:"text",required:!0,param:0},{title:"truepriority",name:"truepriority",type:"number",min:1,required:!0,param:1},{title:"falsepriority",name:"falsepriority",type:"number",min:1,required:!0,param:2}]},{app:"queue",appType:"queue",foreignKey:"MailQueueId",type:"queue",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"queues",field:{name:"queue",key:"name"},route:"mailQueue",filters:{fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:601}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",defaultValue:300,required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:300,param:1}]},{app:"agent",appType:"agent",type:"agent",foreignKey:"UserId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"agents",field:{name:"agent",key:"name"},route:"user",filters:{fields:"id,name",sort:"name",nolimit:!0,role:"agent"},permissions:{section:202}}],fields:[{title:"Agent",name:"agent",type:"apiselect",values:"agents",value:"agent.name",option:"agent.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:30,param:1}]},{app:"autoreply",appType:"autoreply",type:"autoreply",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"times",name:"times",type:"select",defaultValue:"1",values:[{option:"One Time",value:"1"},{option:"Always",value:"0"}],required:!0,param:0},{title:"Reply_Type",name:"replyType",type:"select",defaultValue:"1",values:[{option:"Reply",value:"0"},{option:"Reply All",value:"1"}],required:!0,param:1},{title:"Text",name:"text",type:"html",required:!0,param:2}]},{app:"close",appType:"close",type:"close",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Disposition",name:"disposition",type:"text",required:!0,param:0}]},{app:"tag",appType:"tag",type:"tag",foreignKey:"TagId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"tags",field:{name:"tag",key:"name"},route:"tag",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1008}}],fields:[{title:"Tag",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",required:!0,param:0}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:["opt1"]},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(e){Array.isArray(e.models)&&e.models.length>1&&s()}},r.init=function(e,t){r.mailAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.id=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getMailAccountApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.mailAccountApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getMailAccountApps=function(){r.promise=e.mailAccount.getApplications(r.query,l).$promise},r.editMailAccountApp=i,r.editInterval=function(e,a){if(r.mailAccountApps.rows.length){const o=r.mailAccountApps.rows[a]?r.mailAccountApps.rows[a]:r.mailAccountApps.rows[0];t.show({controller:"EditMailAccountAppintervalDialogController",controllerAs:"vm",templateUrl:ig,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteMailAccountApp=function(e){u().remove(r.mailAccountApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedMailAccountApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedMailAccountApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedMailAccountApps.forEach((function(e){u().remove(r.mailAccountApps.rows,{id:e.id})})),r.selectedMailAccountApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const mg=fg;function pg(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.mailAccount.getAgents({id:d.mailAccount.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserMailAccount?"penalty "+e.UserMailAccount.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.mailAccount=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.mailAccount.removeAgents({id:d.mailAccount.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.mailAccount.addAgents({id:d.mailAccount.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}pg.$inject=["$mdDialog","$q","toasty","api","mailAccount","mailAccounts","realtime","$translate","Auth","crudPermissions"];const gg=pg;function hg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.agent=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agent.appdata)switch(l.agent.appType?l.agent.appType.toLowerCase():l.agent.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agent.appdata.split(",");l.agent.key=e[0],l.agent.language=e[1],l.agent.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agent.appdata.split(",");l.agent.projectId=e[0],l.agent.clientEmail=e[1],l.agent.privateKey=e[2],l.agent.language=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agent.appdata.split(",");l.agent.accesskeyid=e[0],l.agent.secretaccesskey=e[1],l.agent.lexregion=e[2],l.agent.botname=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agent.appdata.split(",");l.agent.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.agent.text=e.slice(2,e.length).join(",")}break;case"message":l.agent.text=l.agent.appdata;break;case"set":l.agent.name=l.agent.appdata.split("=")[0],l.agent.value=l.agent.appdata.split("=")[1];break;case"agi":l.agent.project=l.agent.appdata;break;default:{const e=l.agent.appdata.split(",");l.agent.agent=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.agent.timeout=30;function c(t){e.hide(t)}l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outbounddial"===l.agent.appType.toLowerCase()&&(l.agent.prefix=l.agent.phone?l.agent.phone.split("$")[0]:void 0,l.agent.callerId=l.agent.callerID?"CALLERID(all)="+l.agent.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outboundDial"===l.agent.appType&&(l.agent.phone=o.cutdigits?(l.agent.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agent.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agent.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agent.options+="U(xcally-mixmonitor-context)"):l.agent.options=l.agent.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.agents,{name:l.agent.agent});t&&(l.agent.UserId=t.id);if(l.agent.appType&&"custom"===l.agent.appType);else switch((l.agent.app||l.agent.appType).toLowerCase()){case"set":l.agent.appdata=l.agent.name+"="+l.agent.value;break;case"custom":break;default:e[0]=l.agent.agent,e[1]=l.agent.timeout,l.agent.appdata=e.join(",")}c(l.agent)},l.closeDialog=c,i.hasRole("admin")?r.user.get({fields:"id,name",sort:"name",nolimit:"true",role:"agent"}).$promise.then((function(e){l.agents=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name",sort:"name",nolimit:"true",role:"agent"}).$promise.then((function(e){l.agents=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.agents,{id:e.resourceId})}));let n=null;if(l.agent&&(n=u().find(l.agents,{name:l.agent.agent})),n&&!u().some(t,["id",n.id])){const e=u().find(l.agents,{id:n.id});e.canSelect=!1,t.push(e)}l.agents=t}))}else{const e=[];let t=null;l.agent&&(t=u().find(l.agents,{name:l.agent.agent}));for(let n=0;n<l.agents.length;n++)t&&l.agents[n].id===t.id&&(l.agents[n].canSelect=!1,e.push(l.agents[n]));l.agents=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}hg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const _g=hg;function bg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.autoreply=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.autoreply.appdata)switch(l.autoreply.appType?l.autoreply.appType.toLowerCase():l.autoreply.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.autoreply.appdata.split(",");l.autoreply.key=e[0],l.autoreply.language=e[1],l.autoreply.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.autoreply.appdata.split(",");l.autoreply.projectId=e[0],l.autoreply.clientEmail=e[1],l.autoreply.privateKey=e[2],l.autoreply.language=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.autoreply.appdata.split(",");l.autoreply.accesskeyid=e[0],l.autoreply.secretaccesskey=e[1],l.autoreply.lexregion=e[2],l.autoreply.botname=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.autoreply.appdata.split(",");l.autoreply.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.autoreply.text=e.slice(2,e.length).join(",")}break;case"message":l.autoreply.text=l.autoreply.appdata;break;case"set":l.autoreply.name=l.autoreply.appdata.split("=")[0],l.autoreply.value=l.autoreply.appdata.split("=")[1];break;case"agi":l.autoreply.project=l.autoreply.appdata;break;default:{const e=l.autoreply.appdata.split(",");l.autoreply.times=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.autoreply.times=1;function c(t){e.hide(t)}l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outbounddial"===l.autoreply.appType.toLowerCase()&&(l.autoreply.prefix=l.autoreply.phone?l.autoreply.phone.split("$")[0]:void 0,l.autoreply.callerId=l.autoreply.callerID?"CALLERID(all)="+l.autoreply.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outboundDial"===l.autoreply.appType&&(l.autoreply.phone=o.cutdigits?(l.autoreply.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.autoreply.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.autoreply.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.autoreply.options+="U(xcally-mixmonitor-context)"):l.autoreply.options=l.autoreply.options.replace("U(xcally-mixmonitor-context)",""));if(l.autoreply.appType&&"custom"===l.autoreply.appType);else switch((l.autoreply.app||l.autoreply.appType).toLowerCase()){case"set":l.autoreply.appdata=l.autoreply.name+"="+l.autoreply.value;break;case"custom":break;default:e[0]=l.autoreply.times,e[1]=l.autoreply.text,l.autoreply.appdata=e.join(",")}c(l.autoreply)},l.closeDialog=c}bg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const yg=bg;function vg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.close=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.close.appdata)switch(l.close.appType?l.close.appType.toLowerCase():l.close.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.close.appdata.split(",");l.close.key=e[0],l.close.language=e[1],l.close.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.close.appdata.split(",");l.close.projectId=e[0],l.close.clientEmail=e[1],l.close.privateKey=e[2],l.close.language=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.close.appdata.split(",");l.close.accesskeyid=e[0],l.close.secretaccesskey=e[1],l.close.lexregion=e[2],l.close.botname=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.close.appdata.split(",");l.close.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.close.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.close.text=e.slice(2,e.length).join(",")}break;case"message":l.close.text=l.close.appdata;break;case"set":l.close.name=l.close.appdata.split("=")[0],l.close.value=l.close.appdata.split("=")[1];break;case"agi":l.close.project=l.close.appdata;break;default:{const e=l.close.appdata.split(",");l.close.disposition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outbounddial"===l.close.appType.toLowerCase()&&(l.close.prefix=l.close.phone?l.close.phone.split("$")[0]:void 0,l.close.callerId=l.close.callerID?"CALLERID(all)="+l.close.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outboundDial"===l.close.appType&&(l.close.phone=o.cutdigits?(l.close.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.close.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.close.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.close.options+="U(xcally-mixmonitor-context)"):l.close.options=l.close.options.replace("U(xcally-mixmonitor-context)",""));if(l.close.appType&&"custom"===l.close.appType);else switch((l.close.app||l.close.appType).toLowerCase()){case"set":l.close.appdata=l.close.name+"="+l.close.value;break;case"custom":break;default:e[0]=l.close.disposition,l.close.appdata=e.join(",")}c(l.close)},l.closeDialog=c}vg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const Ag=vg;function Sg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotoif=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotoif.appdata)switch(l.gotoif.appType?l.gotoif.appType.toLowerCase():l.gotoif.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotoif.appdata.split(",");l.gotoif.key=e[0],l.gotoif.language=e[1],l.gotoif.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotoif.appdata.split(",");l.gotoif.projectId=e[0],l.gotoif.clientEmail=e[1],l.gotoif.privateKey=e[2],l.gotoif.language=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotoif.appdata.split(",");l.gotoif.accesskeyid=e[0],l.gotoif.secretaccesskey=e[1],l.gotoif.lexregion=e[2],l.gotoif.botname=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotoif.appdata.split(",");l.gotoif.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotoif.text=e.slice(2,e.length).join(",")}break;case"message":l.gotoif.text=l.gotoif.appdata;break;case"set":l.gotoif.name=l.gotoif.appdata.split("=")[0],l.gotoif.value=l.gotoif.appdata.split("=")[1];break;case"agi":l.gotoif.project=l.gotoif.appdata;break;default:{const e=l.gotoif.appdata.split(",");l.gotoif.condition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.truepriority=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotoif.falsepriority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outbounddial"===l.gotoif.appType.toLowerCase()&&(l.gotoif.prefix=l.gotoif.phone?l.gotoif.phone.split("$")[0]:void 0,l.gotoif.callerId=l.gotoif.callerID?"CALLERID(all)="+l.gotoif.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outboundDial"===l.gotoif.appType&&(l.gotoif.phone=o.cutdigits?(l.gotoif.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotoif.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotoif.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotoif.options+="U(xcally-mixmonitor-context)"):l.gotoif.options=l.gotoif.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotoif.appType&&"custom"===l.gotoif.appType);else switch((l.gotoif.app||l.gotoif.appType).toLowerCase()){case"set":l.gotoif.appdata=l.gotoif.name+"="+l.gotoif.value;break;case"custom":break;default:e[0]=l.gotoif.condition,e[1]=l.gotoif.truepriority,e[2]=l.gotoif.falsepriority,l.gotoif.appdata=e.join(",")}c(l.gotoif)},l.closeDialog=c}Sg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const wg=Sg;function Eg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotop.appdata)switch(l.gotop.appType?l.gotop.appType.toLowerCase():l.gotop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotop.appdata.split(",");l.gotop.key=e[0],l.gotop.language=e[1],l.gotop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotop.appdata.split(",");l.gotop.projectId=e[0],l.gotop.clientEmail=e[1],l.gotop.privateKey=e[2],l.gotop.language=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotop.appdata.split(",");l.gotop.accesskeyid=e[0],l.gotop.secretaccesskey=e[1],l.gotop.lexregion=e[2],l.gotop.botname=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotop.appdata.split(",");l.gotop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotop.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotop.text=e.slice(2,e.length).join(",")}break;case"message":l.gotop.text=l.gotop.appdata;break;case"set":l.gotop.name=l.gotop.appdata.split("=")[0],l.gotop.value=l.gotop.appdata.split("=")[1];break;case"agi":l.gotop.project=l.gotop.appdata;break;default:{const e=l.gotop.appdata.split(",");l.gotop.priority=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outbounddial"===l.gotop.appType.toLowerCase()&&(l.gotop.prefix=l.gotop.phone?l.gotop.phone.split("$")[0]:void 0,l.gotop.callerId=l.gotop.callerID?"CALLERID(all)="+l.gotop.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outboundDial"===l.gotop.appType&&(l.gotop.phone=o.cutdigits?(l.gotop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotop.options+="U(xcally-mixmonitor-context)"):l.gotop.options=l.gotop.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotop.appType&&"custom"===l.gotop.appType);else switch((l.gotop.app||l.gotop.appType).toLowerCase()){case"set":l.gotop.appdata=l.gotop.name+"="+l.gotop.value;break;case"custom":break;default:e[0]=l.gotop.priority,l.gotop.appdata=e.join(",")}c(l.gotop)},l.closeDialog=c}Eg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const Cg=Eg;function Tg(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}Tg.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const Ig=Tg;function kg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.noop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.noop.appdata)switch(l.noop.appType?l.noop.appType.toLowerCase():l.noop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.noop.appdata.split(",");l.noop.key=e[0],l.noop.language=e[1],l.noop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.noop.appdata.split(",");l.noop.projectId=e[0],l.noop.clientEmail=e[1],l.noop.privateKey=e[2],l.noop.language=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.noop.appdata.split(",");l.noop.accesskeyid=e[0],l.noop.secretaccesskey=e[1],l.noop.lexregion=e[2],l.noop.botname=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.noop.appdata.split(",");l.noop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.noop.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.noop.text=e.slice(2,e.length).join(",")}break;case"message":l.noop.text=l.noop.appdata;break;case"set":l.noop.name=l.noop.appdata.split("=")[0],l.noop.value=l.noop.appdata.split("=")[1];break;case"agi":l.noop.project=l.noop.appdata;break;default:{const e=l.noop.appdata.split(",");l.noop.value=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outbounddial"===l.noop.appType.toLowerCase()&&(l.noop.prefix=l.noop.phone?l.noop.phone.split("$")[0]:void 0,l.noop.callerId=l.noop.callerID?"CALLERID(all)="+l.noop.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outboundDial"===l.noop.appType&&(l.noop.phone=o.cutdigits?(l.noop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.noop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.noop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.noop.options+="U(xcally-mixmonitor-context)"):l.noop.options=l.noop.options.replace("U(xcally-mixmonitor-context)",""));if(l.noop.appType&&"custom"===l.noop.appType);else switch((l.noop.app||l.noop.appType).toLowerCase()){case"set":l.noop.appdata=l.noop.name+"="+l.noop.value;break;case"custom":break;default:e[0]=l.noop.value,l.noop.appdata=e.join(",")}c(l.noop)},l.closeDialog=c}kg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const Dg=kg;function xg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.queue.text=e.slice(2,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.queue.queue=300,l.queue.timeout=300;function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.queues,{name:l.queue.queue});t&&(l.queue[u().capitalize("mail")+"QueueId"]=t.id);if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.timeout,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.mailQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.mailQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:601}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}xg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const Mg=xg;function Pg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.system=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.system.appdata)switch(l.system.appType?l.system.appType.toLowerCase():l.system.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.system.appdata.split(",");l.system.key=e[0],l.system.language=e[1],l.system.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.system.appdata.split(",");l.system.projectId=e[0],l.system.clientEmail=e[1],l.system.privateKey=e[2],l.system.language=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.system.appdata.split(",");l.system.accesskeyid=e[0],l.system.secretaccesskey=e[1],l.system.lexregion=e[2],l.system.botname=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.system.appdata.split(",");l.system.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.system.text=e.slice(2,e.length).join(",")}break;case"message":l.system.text=l.system.appdata;break;case"set":l.system.name=l.system.appdata.split("=")[0],l.system.value=l.system.appdata.split("=")[1];break;case"agi":l.system.project=l.system.appdata;break;default:{const e=l.system.appdata.split(",");l.system.command=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.variable=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.system.variable="";function c(t){e.hide(t)}l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outbounddial"===l.system.appType.toLowerCase()&&(l.system.prefix=l.system.phone?l.system.phone.split("$")[0]:void 0,l.system.callerId=l.system.callerID?"CALLERID(all)="+l.system.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outboundDial"===l.system.appType&&(l.system.phone=o.cutdigits?(l.system.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.system.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.system.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.system.options+="U(xcally-mixmonitor-context)"):l.system.options=l.system.options.replace("U(xcally-mixmonitor-context)",""));if(l.system.appType&&"custom"===l.system.appType);else switch((l.system.app||l.system.appType).toLowerCase()){case"set":l.system.appdata=l.system.name+"="+l.system.value;break;case"custom":break;default:e[0]=l.system.command,e[1]=l.system.variable,l.system.appdata=e.join(",")}c(l.system)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.system&&(n=u().find(l.variables,{name:l.system.variable})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.system&&(t=u().find(l.variables,{name:l.system.variable}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Pg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const Og=Pg;function Rg(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="MAIL.EDIT_"+(a.appType||a.app).toUpperCase(),l.tag=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.tag.appdata)switch(l.tag.appType?l.tag.appType.toLowerCase():l.tag.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.tag.appdata.split(",");l.tag.key=e[0],l.tag.language=e[1],l.tag.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.tag.appdata.split(",");l.tag.projectId=e[0],l.tag.clientEmail=e[1],l.tag.privateKey=e[2],l.tag.language=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.tag.appdata.split(",");l.tag.accesskeyid=e[0],l.tag.secretaccesskey=e[1],l.tag.lexregion=e[2],l.tag.botname=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.tag.appdata.split(",");l.tag.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.tag.replyType=isNaN(e[1])?e[1]:parseInt(e[1],10),l.tag.text=e.slice(2,e.length).join(",")}break;case"message":l.tag.text=l.tag.appdata;break;case"set":l.tag.name=l.tag.appdata.split("=")[0],l.tag.value=l.tag.appdata.split("=")[1];break;case"agi":l.tag.project=l.tag.appdata;break;default:{const e=l.tag.appdata.split(",");l.tag.tag=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outbounddial"===l.tag.appType.toLowerCase()&&(l.tag.prefix=l.tag.phone?l.tag.phone.split("$")[0]:void 0,l.tag.callerId=l.tag.callerID?"CALLERID(all)="+l.tag.callerID:void 0),l.saveMailAccountApp=function(){l.errors=[];const e=[];l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outboundDial"===l.tag.appType&&(l.tag.phone=o.cutdigits?(l.tag.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.tag.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.tag.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.tag.options+="U(xcally-mixmonitor-context)"):l.tag.options=l.tag.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.tags,{name:l.tag.tag});t&&(l.tag.TagId=t.id);if(l.tag.appType&&"custom"===l.tag.appType);else switch((l.tag.app||l.tag.appType).toLowerCase()){case"set":l.tag.appdata=l.tag.name+"="+l.tag.value;break;case"custom":break;default:e[0]=l.tag.tag,l.tag.appdata=e.join(",")}c(l.tag)},l.closeDialog=c,i.hasRole("admin")?r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1008}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.tags,{id:e.resourceId})}));let n=null;if(l.tag&&(n=u().find(l.tags,{name:l.tag.tag})),n&&!u().some(t,["id",n.id])){const e=u().find(l.tags,{id:n.id});e.canSelect=!1,t.push(e)}l.tags=t}))}else{const e=[];let t=null;l.tag&&(t=u().find(l.tags,{name:l.tag.tag}));for(let n=0;n<l.tags.length;n++)t&&l.tags[n].id===t.id&&(l.tags[n].canSelect=!1,e.push(l.tags[n]));l.tags=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtags",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Rg.$inject=["$mdDialog","$q","toasty","mailAccountApp","mailAccount","api","Auth","crudPermissions"];const Ng=Rg;function Lg(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.mailAccountInteractions=e||{count:0,rows:[]};for(let e=0;e<m.mailAccountInteractions.rows.length;e+=1){const t=m.mailAccountInteractions.rows[e];_(t),t.Owner.name=b(t)}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,(void 0===m.query.closed||null===m.query.closed||m.query.closed)&&delete m.query.substatus,m.promise=d.mailInteraction.get(m.query,p).$promise}function h(e){d.mailInteraction.delete({id:e.id}).$promise.then((function(){u().remove(m.mailAccountInteractions.rows,{id:e.id}),m.mailAccountInteractions.count-=1,m.mailAccountInteractions.rows.length||g(),c.success({title:"Interaction deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETmailAccount"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){u().isEmpty(e.to)||u().includes(e.to,m.mailAccount.email)?e.Contact?(e.contactName=(e.Contact.firstName||"")+" "+(e.Contact.lastName||""),e.contactInfo=e.Contact.email||""):e.contactName=r.instant("APP.UNKNOWN"):(e.contactName=e.to.split(" <")[0],e.contactInfo=e.to.split("<").pop().split(">")[0])}function b(e){return e.UserId?e.UserId===m.currentUser.id?r.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">":r.instant("DASHBOARDS.NOT_ASSIGNED")}m.currentUser=f.getCurrentUser(),m.mailAccount={},m.mailAccountInteractions={count:0,rows:[]},m.selectedMailAccountInteractions=[],m.crudPermissions,m.query={read:null,closed:null,sort:"-createdAt",includeAll:!0,limit:10,page:1,createdAt:{$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()}},m.init=function(e,t){m.mailAccount=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.MailAccountId=m.mailAccount.id,m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Subject",column:"subject",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Body",column:"plainBody",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Substatus",column:"substatus",type:"multiselect",options:{field:"name",route:{model:"mailSubstatus",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},d.tag.get().$promise.then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){return d.mailSubstatus.get({nolimit:!0}).$promise.then((function(e){m.subStatuses=e||{count:0,rows:[]}}))})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Substatus",key:"substatus",type:"select",label:"DASHBOARDS.SELECT_SUBSTATUS",options:m.subStatuses.rows,customOptions:[{value:null,translate:"DASHBOARDS.NONE"},{value:void 0,translate:"DASHBOARDS.ALL"}],ngValue:"name",ngIf:"closed === 0"},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:null,translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).then((()=>g()))},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the interaction?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("interaction #")+e.id||"interaction")+"</b> will be deleted.").ariaLabel("delete interaction").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.mailInteractionDownload=function(e,t,n){return d.mailInteraction.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="interaction"+e.id;const o=new Blob(n,{type:t.type});a="mail-interaction"+e.id+".zip";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.success=p,m.getMailAccountInteractions=g,m.spymailInteraction=function(e,n){s.show({controller:"AgentGeneralInteractionController",controllerAs:"vm",templateUrl:up,parent:angular.element(l.body),targetEvent:e,clickOutsideToClose:!0,onShowing:function(e){e.vm.init({id:1,channel:"mail",interaction:n,spy:!0},t.$parent.vm.setting)}})},m.openAdvancedSearch=function(){s.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(l.body),clickOutsideToClose:!1,locals:{fields:m.advancedSearch.fields,color:void 0,storagePath:"mail.mailAccounts"},fullscreen:!0}).then((function(e){if(m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply){let t="";t+="||MailAccountId:=$eq["+m.mailAccount.id+"]",m.query.search=e.value?e.value+=t:e.value,g()}})).catch((function(e){c.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.exportSelectedMailAccountInteractions=function(){const e=angular.copy(m.selectedMailAccountInteractions);return m.selectedMailAccountInteractions=[],e},m.deleteMailAccountInteraction=h,m.deleteSelectedMailAccountInteractions=function(e){const t=s.confirm().title("Are you sure want to delete the selected interactions?").htmlContent("<b>"+m.selectedMailAccountInteractions.length+" selected</b> will be deleted.").ariaLabel("delete interactions").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedMailAccountInteractions.forEach((function(e){h(e)})),m.selectedMailAccountInteractions=[]}))}}Lg.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const $g=Lg,Ug=n.p+"templates/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html";function jg(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.mailAccountMailCannedAnswers=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.mailAccount.getAnswers(f.query,m).$promise}function g(e){c.cannedAnswer.delete({id:e.id}).$promise.then((function(){u().remove(f.mailAccountMailCannedAnswers.rows,{id:e.id}),f.mailAccountMailCannedAnswers.count-=1,f.mailAccountMailCannedAnswers.rows.length||p(),l.success({title:"MailCannedAnswer deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETmailAccount"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.mailAccount={},f.mailAccountMailCannedAnswers={count:0,rows:[]},f.selectedMailAccountMailCannedAnswers=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,key,value,description",limit:10,page:1},f.init=function(e,t){f.mailAccount=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.MailAccountId=f.mailAccount.id,f.query.id=f.mailAccount.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the mailCannedAnswer?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("mailCannedAnswer #")+e.id||"mailCannedAnswer")+"</b> will be deleted.").ariaLabel("delete mailCannedAnswer").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getMailAccountMailCannedAnswers=p,f.createOrEditMailAccountMailCannedAnswer=function(e,t){i.show({controller:"CreateOrEditMailCannedAnswerDialogController",controllerAs:"vm",templateUrl:Ug,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{mailAccount:f.mailAccount,mailCannedAnswer:t,mailCannedAnswers:f.mailAccountMailCannedAnswers.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedMailAccountMailCannedAnswers=function(){const e=angular.copy(f.selectedMailAccountMailCannedAnswers);return f.selectedMailAccountMailCannedAnswers=[],e},f.deleteMailAccountMailCannedAnswer=g,f.deleteSelectedMailAccountMailCannedAnswers=function(e){const t=i.confirm().title("Are you sure want to delete the selected mailCannedAnswers?").htmlContent("<b>"+f.selectedMailAccountMailCannedAnswers.length+" selected</b> will be deleted.").ariaLabel("delete mailCannedAnswers").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedMailAccountMailCannedAnswers.forEach((function(e){g(e)})),f.selectedMailAccountMailCannedAnswers=[]}))}}jg.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Fg=jg;function qg(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="MAIL.EDIT_MAILCANNEDANSWER",g.mailCannedAnswer=angular.copy(l),g.mailCannedAnswers=s,g.newMailCannedAnswer=!1,g.mailCannedAnswer||(g.mailCannedAnswer={},g.title="MAIL.NEW_MAILCANNEDANSWER",g.newMailCannedAnswer=!0),t.params.id&&(g.mailCannedAnswer.MailAccountId=t.params.id),g.addNewMailCannedAnswer=function(){g.errors=[],c.cannedAnswer.save(g.mailCannedAnswer).$promise.then((function(e){g.mailCannedAnswers.unshift(e.toJSON()),i.success({title:"MailCannedAnswer properly created",msg:g.mailCannedAnswer.name?g.mailCannedAnswer.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveMailCannedAnswer=function(){g.errors=[],c.cannedAnswer.update({id:g.mailCannedAnswer.id},g.mailCannedAnswer).$promise.then((function(e){const t=u().find(g.mailCannedAnswers,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"MailCannedAnswer properly saved!",msg:g.mailCannedAnswer.name?g.mailCannedAnswer.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteMailCannedAnswer=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The mailCannedAnswer will be deleted.").ariaLabel("Delete MailCannedAnswer").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cannedAnswer.delete({id:g.mailCannedAnswer.id}).$promise.then((function(){u().remove(g.mailCannedAnswers,{id:g.mailCannedAnswer.id}),i.success({title:"MailCannedAnswer properly deleted!",msg:(g.mailCannedAnswer.name||"mailCannedAnswer")+" has been deleted!"}),h(g.mailCannedAnswer)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}qg.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","mailCannedAnswers","mailCannedAnswer","api","Auth","license","setting","crudPermissions"];const Yg=qg;function Hg(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.dispositions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=l.mailAccount.getDispositions(f.query,m).$promise}function g(e){l.disposition.delete({id:e.id}).$promise.then((function(){p(),c.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.dispositions={count:0,rows:[]},f.selectedDispositions=[],f.crudPermissions,f.levels={first:"1st",second:"2nd",third:"3rd"},f.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},f.init=function(e,t){f.mailAccount=e||{},f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.MailAccountId=f.mailAccount.id,f.query.id=f.mailAccount.id,p()},f.deleteConfirm=function(e,t){const n=u().some(f.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){g(e)}))},f.success=m,f.getDispositions=p,f.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:{id:f.mailAccount.id,field:"MailAccountId",route:"mailAccount"},license:null,setting:null,crudPermissions:f.crudPermissions}}).then((function(e){e&&p()}))},f.deleteDisposition=g,f.exportSelectedDispositions=function(){const e=angular.copy(f.selectedDispositions);return f.selectedDispositions=[],e},f.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:f.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){f.selectedDispositions.forEach((function(e){g(e)})),f.selectedDispositions=[]}))},f.deselectDispositions=function(){f.selectedDispositions=[]},f.selectAllDispositions=function(){f.selectedDispositions=f.dispositions.rows}}Hg.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","api","toasty","Auth"];const Bg=Hg,Gg=n.p+"templates/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html";function Vg(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.mailAccount=d||e.params.mailAccount||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.gotogoto=function(){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:610}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;n&&n.enabled?e.go("app.mail.realtime.accounts",{}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.mail.realtime.accounts",{})},m.agentadddialog=function(e,t){n.show({controller:"MailAccountagentaddController",controllerAs:"vm",templateUrl:Gg,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{mailAccount:e,mailAccounts:m.mailAccounts?m.mailAccounts.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.alert=l.info,m.gotoMailAccounts=function(){e.go("app.mail.mailAccounts",{},{reload:"app.mail.mailAccounts"})},m.saveMailAccount=function(){s.mailAccount.update({id:m.mailAccount.id},m.mailAccount).$promise.then((function(){l.success({title:"MailAccount updated!",msg:m.mailAccount.name?m.mailAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.lists,{id:e.resourceId})}));let n=null;if(m.mailAccount&&(n=u().find(m.lists,{id:Number(m.mailAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.lists,{id:n.id});e.canSelect=!1,t.push(e)}m.lists=t}))}else{const e=[];let t=null;m.mailAccount&&(t=u().find(m.lists,{id:Number(m.mailAccount.ListId)}));for(let n=0;n<m.lists.length;n++)t&&m.lists[n].id===t.id&&(m.lists[n].canSelect=!1,e.push(m.lists[n]));m.lists=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Vg.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","mailAccount","userProfileSection"];const Wg=Vg,Qg=n.p+"templates/main/apps/mail/views/mailAccounts/create/dialog.html/dialog.html";function zg(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.mailAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="mailAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedMailAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,page:1},b.arraycservice=u().keyBy([{option:"Custom",value:"null"},{option:"Gmail",value:"'gmail'"},{option:"Hotmail",value:"'hotmail'"},{option:"Yahoo",value:"'yahoo'"},{option:"Outlook365",value:"'outlook365'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b["arrayImap.service"]=u().keyBy([{option:"Custom",value:"null"},{option:"Gmail",value:"'gmail'"},{option:"Hotmail",value:"'hotmail'"},{option:"Yahoo",value:"'yahoo'"},{option:"Outlook365",value:"'outlook365'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b["arraySmtp.service"]=u().keyBy([{option:"Custom",value:"null"},{option:"Gmail",value:"'gmail'"},{option:"Hotmail",value:"'hotmail'"},{option:"Yahoo",value:"'yahoo'"},{option:"Outlook365",value:"'outlook365'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.mail.mailAccounts.edit",{id:e.id,mailAccount:e,crudPermissions:b.crudPermissions})},b.verifysmtpverifysmtp=function(e){if(e&&e.id)return f.mailAccount.verifySmtp({id:e.id}).$promise.then((function(){p.success({title:"Smtp properly verified",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"Smtp properly verified",msg:e.data?JSON.stringify(e.data):e.toString()})}));p.error({title:"Smtp properly verified",msg:"Smpt id unknown"})},b.interactionsgoto=function(e){n.go("app.mail.mailAccounts.edit",{id:e.id,tab:7})},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:610}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.mail.realtime.accounts",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.mail.realtime.accounts",{})},b.agentadddialog=function(e,t){o.show({controller:"MailAccountagentaddController",controllerAs:"vm",templateUrl:Gg,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{mailAccount:e,mailAccounts:b.mailAccounts?b.mailAccounts.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("mailAccount")+"?").htmlContent("<b>"+(e.name||"mailAccount")+"</b> will be deleted.").ariaLabel("delete mailAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getMailAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.mailAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="MailAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditMailAccount=function(e,t){o.show({controller:"CreateOrEditMailAccountDialogController",controllerAs:"vm",templateUrl:Qg,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{mailAccount:t,mailAccounts:b.mailAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteMailAccount=S,b.exportSelectedMailAccounts=function(){const e=angular.copy(b.selectedMailAccounts);return b.selectedMailAccounts=[],e},b.deleteSelectedMailAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected mailAccounts?").htmlContent("<b>"+b.selectedMailAccounts.length+" selected</b> will be deleted.").ariaLabel("delete MailAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedMailAccounts.forEach((function(e){S(e)})),b.selectedMailAccounts=[]}))},b.deselectMailAccounts=function(){b.selectedMailAccounts=[]},b.selectAllMailAccounts=function(){b.selectedMailAccounts=b.mailAccounts.rows},g.hasRole("admin")?f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.lists,{id:e.resourceId})}));let n=null;if(b.mailAccount&&(n=u().find(b.lists,{id:Number(b.mailAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.lists,{id:n.id});e.canSelect=!1,t.push(e)}b.lists=t}))}else{const e=[];let t=null;b.mailAccount&&(t=u().find(b.lists,{id:Number(b.mailAccount.ListId)}));for(let n=0;n<b.lists.length;n++)t&&b.lists[n].id===t.id&&(b.lists[n].canSelect=!1,e.push(b.lists[n]));b.lists=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.mailAccounts=e||{count:0,rows:[]}}function S(e){if(e.service)return p.error({title:"Mail Account not deleted!",msg:"You can't remove service account"});f.mailAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.mailAccounts.rows,{id:e.id}),b.mailAccounts.count-=1,b.mailAccounts.rows.length||b.getMailAccounts(),p.success({title:u().startCase("MailAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEmailAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEmailAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getMailAccounts())}))}zg.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","mailAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Kg=zg;function Jg(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="MAIL.EDIT_MAILQUEUE",g.mailQueue=angular.copy(l),g.mailQueues=s,g.newMailQueue=!1,g.mailQueue||(g.mailQueue={strategy:"beepall",timeout:10},g.title="MAIL.NEW_MAILQUEUE",g.newMailQueue=!0),g.addNewMailQueue=function(){g.errors=[],c.mailQueue.save(g.mailQueue).$promise.then((function(e){g.mailQueues.unshift(e.toJSON()),i.success({title:"MailQueue properly created",msg:g.mailQueue.name?g.mailQueue.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveMailQueue=function(){g.errors=[],c.mailQueue.update({id:g.mailQueue.id},g.mailQueue).$promise.then((function(e){const t=u().find(g.mailQueues,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"MailQueue properly saved!",msg:g.mailQueue.name?g.mailQueue.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteMailQueue=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The mailQueue will be deleted.").ariaLabel("Delete MailQueue").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.mailQueue.delete({id:g.mailQueue.id}).$promise.then((function(){u().remove(g.mailQueues,{id:g.mailQueue.id}),i.success({title:"MailQueue properly deleted!",msg:(g.mailQueue.name||"mailQueue")+" has been deleted!"}),h(g.mailQueue)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Jg.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","mailQueues","mailQueue","api","Auth","license","setting","crudPermissions"];const Xg=Jg;function Zg(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.mailQueue.getAgents({id:d.mailQueue.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserMailQueue?"penalty "+e.UserMailQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.mailQueue=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.mailQueue.removeAgents({id:d.mailQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.mailQueue.addAgents({id:d.mailQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}Zg.$inject=["$mdDialog","$q","toasty","api","mailQueue","mailQueues","realtime","$translate","Auth","crudPermissions"];const eh=Zg;function th(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.mailQueue.getTeams({id:l.mailQueue.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.mailQueue=o,l.crudPermissions=s,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(){const e=u().xorBy(l.startingSelectedItems,l.selectedItems,"id");l.pendingChanges=!u().isEmpty(e)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceBy(l.selectedItems,l.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.mailQueue.removeTeams({id:l.mailQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.mailQueue.addTeams({id:l.mailQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}th.$inject=["$mdDialog","$q","toasty","api","mailQueue","$translate","Auth","crudPermissions"];const nh=th,ah=n.p+"templates/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd.html";function oh(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.mailQueue=u||e.params.mailQueue||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.teamadddialog=function(e,t){n.show({controller:"MailQueueteamaddController",controllerAs:"vm",templateUrl:ah,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{mailQueue:e,mailQueues:f.mailQueues?f.mailQueues.rows:[],crudPermissions:f.crudPermissions}})},f.agentadddialog=function(e,t){n.show({controller:"MailQueueagentaddController",controllerAs:"vm",templateUrl:jp,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{mailQueue:e,mailQueues:f.mailQueues?f.mailQueues.rows:[],crudPermissions:f.crudPermissions,realtime:!1}})},f.alert=l.info,f.gotoMailQueues=function(){e.go("app.mail.mailQueues",{},{reload:"app.mail.mailQueues"})},f.saveMailQueue=function(){s.mailQueue.update({id:f.mailQueue.id},f.mailQueue).$promise.then((function(){l.success({title:"MailQueue updated!",msg:f.mailQueue.name?f.mailQueue.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}oh.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","mailQueue","userProfileSection"];const rh=oh;function ih(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.mailQueues=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="mailQueues",b.listOrder="",b.listOrderAsc=null,b.selectedMailQueues=[],b.query={fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"mail",limit:10,page:1},b.arraystrategy=u().keyBy([{option:"Beepall",value:"'beepall'"},{option:"RR Memory",value:"'rrmemory'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.mail.mailQueues.edit",{id:e.id,mailQueue:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"MailQueueteamaddController",controllerAs:"vm",templateUrl:ah,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{mailQueue:e,mailQueues:b.mailQueues?b.mailQueues.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"MailQueueagentaddController",controllerAs:"vm",templateUrl:jp,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{mailQueue:e,mailQueues:b.mailQueues?b.mailQueues.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("mailQueue")+"?").htmlContent("<b>"+(e.name||"mailQueue")+"</b> will be deleted.").ariaLabel("delete mailQueue").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:610}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.mail.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.mail.realtime.queues",{})},b.success=A,b.getMailQueues=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.mailQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="MailQueues",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditMailQueue=function(e,t){o.show({controller:"CreateOrEditMailQueueDialogController",controllerAs:"vm",templateUrl:Up,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{mailQueue:t,mailQueues:b.mailQueues.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteMailQueue=S,b.exportSelectedMailQueues=function(){const e=angular.copy(b.selectedMailQueues);return b.selectedMailQueues=[],e},b.deleteSelectedMailQueues=function(e){const t=o.confirm().title("Are you sure want to delete the selected mailQueues?").htmlContent("<b>"+b.selectedMailQueues.length+" selected</b> will be deleted.").ariaLabel("delete MailQueues").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedMailQueues.forEach((function(e){S(e)})),b.selectedMailQueues=[]}))},b.deselectMailQueues=function(){b.selectedMailQueues=[]},b.selectAllMailQueues=function(){b.selectedMailQueues=b.mailQueues.rows};let y=!0,v=1;function A(e){b.mailQueues=e||{count:0,rows:[]}}function S(e){f.mailQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.mailQueues.rows,{id:e.id}),b.mailQueues.count-=1,b.mailQueues.rows.length||b.getMailQueues(),p.success({title:u().startCase("MailQueue")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEmailQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEmailQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getMailQueues())}))}ih.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","mailQueues","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const sh=ih;function lh(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="MAIL.EDIT_MAILSUBSTATUS",g.mailSubstatus=angular.copy(l),g.mailSubtatuses=s,g.newMailSubstatus=!1,g.mailSubstatus||(g.mailSubstatus={},g.title="MAIL.NEW_MAILSUBSTATUS",g.newMailSubstatus=!0),g.addNewMailSubstatus=function(){g.errors=[],c.mailSubstatus.save(g.mailSubstatus).$promise.then((function(e){g.mailSubtatuses.unshift(e.toJSON()),i.success({title:"MailSubstatus properly created",msg:g.mailSubstatus.name?g.mailSubstatus.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailSubstatus.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailSubstatus.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveMailSubstatus=function(){g.errors=[],c.mailSubstatus.update({id:g.mailSubstatus.id},g.mailSubstatus).$promise.then((function(e){const t=u().find(g.mailSubtatuses,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"MailSubstatus properly saved!",msg:g.mailSubstatus.name?g.mailSubstatus.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailSubstatus.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailSubstatus.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteMailSubstatus=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The mailSubstatus will be deleted.").ariaLabel("Delete MailSubstatus").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.mailSubstatus.delete({id:g.mailSubstatus.id}).$promise.then((function(){u().remove(g.mailSubtatuses,{id:g.mailSubstatus.id}),i.success({title:"MailSubstatus properly deleted!",msg:(g.mailSubstatus.name||"mailSubstatus")+" has been deleted!"}),h(g.mailSubstatus)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailSubstatus.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailSubstatus.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}lh.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","mailSubtatuses","mailSubstatus","api","Auth","license","setting","crudPermissions"];const ch=lh,uh=n.p+"templates/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog.html";function dh(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.mailSubtatuses=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="mailSubtatuses",b.listOrder="",b.listOrderAsc=null,b.selectedMailSubstatuses=[],b.query={fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditMailSubstatusDialogController",controllerAs:"vm",templateUrl:uh,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{mailSubstatus:e,mailSubtatuses:b.mailSubtatuses.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("mailSubstatus")+"?").htmlContent("<b>"+(e.name||"mailSubstatus")+"</b> will be deleted.").ariaLabel("delete mailSubstatus").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getMailSubstatuses=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.mailSubstatus.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="MailSubstatuses",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditMailSubstatus=function(e,t){o.show({controller:"CreateOrEditMailSubstatusDialogController",controllerAs:"vm",templateUrl:uh,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{mailSubstatus:t,mailSubtatuses:b.mailSubtatuses.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteMailSubstatus=S,b.exportSelectedMailSubstatuses=function(){const e=angular.copy(b.selectedMailSubstatuses);return b.selectedMailSubstatuses=[],e},b.deleteSelectedMailSubstatuses=function(e){const t=o.confirm().title("Are you sure want to delete the selected mailSubtatuses?").htmlContent("<b>"+b.selectedMailSubstatuses.length+" selected</b> will be deleted.").ariaLabel("delete MailSubstatuss").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedMailSubstatuses.forEach((function(e){S(e)})),b.selectedMailSubstatuses=[]}))},b.deselectMailSubstatuses=function(){b.selectedMailSubstatuses=[]},b.selectAllMailSubstatuses=function(){b.selectedMailSubstatuses=b.mailSubtatuses.rows};let y=!0,v=1;function A(e){b.mailSubtatuses=e||{count:0,rows:[]}}function S(e){f.mailSubstatus.delete({id:e.id}).$promise.then((function(){u().remove(b.mailSubtatuses.rows,{id:e.id}),b.mailSubtatuses.count-=1,b.mailSubtatuses.rows.length||b.getMailSubstatuses(),p.success({title:u().startCase("MailSubstatus")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEmailSubstatus"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEmailSubstatus",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getMailSubstatuses())}))}dh.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","mailSubtatuses","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const fh=dh;function mh(e,t){e.state("app.mail",{abstract:!0,url:"/mail"}).state("app.mail.mailQueues",{url:"/mailQueues",views:{"content@app":{templateUrl:Qp,controller:"MailQueuesController as vm"}},resolve:{mailQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("mailQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"mail",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"MailQueues",fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"mail",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:601})}]},authenticate:!0,permissionId:601,bodyClass:"mail"}).state("app.mail.mailQueues.edit",{url:"/:id?tab",params:{mailQueue:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:zp,controller:"MailQueueController as vm"}},resolve:{mailQueue:["apiResolver","$stateParams",function(e,t){return e.resolve("mailQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:601})}]},authenticate:!0,permissionId:601,bodyClass:"mail"}).state("app.mail.mailAccounts",{url:"/mailAccounts",views:{"content@app":{templateUrl:Kp,controller:"MailAccountsController as vm"}},resolve:{mailAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("mailAccount@get",{fields:"createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"MailAccounts",fields:"createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:602})}]},authenticate:!0,permissionId:602,bodyClass:"mail"}).state("app.mail.mailAccounts.edit",{url:"/:id?tab",params:{mailAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:Jp,controller:"MailAccountController as vm"}},resolve:{mailAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("mailAccount@get",{fields:"createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:602})}]},authenticate:!0,permissionId:602,bodyClass:"mail"}).state("app.mail.mailSubtatuses",{url:"/mailSubtatuses",views:{"content@app":{templateUrl:Xp,controller:"MailSubstatusesController as vm"}},resolve:{mailSubtatuses:["apiResolver",function(e){return e.resolve("mailSubstatus@get",{fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:603})}]},authenticate:!0,permissionId:603,bodyClass:"mail"}),t.addPart("app/main/apps/mail")}mh.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.mail",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.mail.realtime"]).config(mh).controller("CreateOrEditMailAccountDialogController",eg).controller("MailAccountActionsController",mg).controller("MailAccountagentaddController",gg).controller("EditMailAccountAppagentDialogController",_g).controller("EditMailAccountAppautoreplyDialogController",yg).controller("EditMailAccountAppcloseDialogController",Ag).controller("EditMailAccountAppgotoifDialogController",wg).controller("EditMailAccountAppgotopDialogController",Cg).controller("EditMailAccountAppintervalDialogController",Ig).controller("EditMailAccountAppnoopDialogController",Dg).controller("EditMailAccountAppqueueDialogController",Mg).controller("EditMailAccountAppsystemDialogController",Og).controller("EditMailAccountApptagDialogController",Ng).controller("MailAccountInteractionsController",$g).controller("MailAccountMailCannedAnswersController",Fg).controller("CreateOrEditMailCannedAnswerDialogController",Yg).controller("MailAccountDispositionsController",Bg).controller("MailAccountController",Wg).controller("MailAccountsController",Kg).controller("CreateOrEditMailQueueDialogController",Xg).controller("MailQueueagentaddController",eh).controller("MailQueueteamaddController",nh).controller("MailQueueController",rh).controller("MailQueuesController",sh).controller("CreateOrEditMailSubstatusDialogController",ch).controller("MailSubstatusesController",fh);const ph=n.p+"templates/main/apps/sms/views/realtime/realtime.html/realtime.html",gh=n.p+"templates/main/apps/sms/views/realtime/agents/view.html/view.html",hh=n.p+"templates/main/apps/sms/views/realtime/queues/view.html/view.html";function _h(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"sms",direction:"inbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}_h.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const bh=_h,yh=n.p+"templates/main/apps/sms/views/smsQueues/create/dialog.html/dialog.html",vh=n.p+"templates/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd.html";function Ah(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.smsQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].SmsQueueId].paused++,g.queues[e[t].rows[n].SmsQueueId].loggedInDb++,g.queues[e[t].rows[n].SmsQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].SmsQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"inbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"sms",type:"inbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.smsQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="SmsQueues",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditSmsQueue=function(e,t){n.show({controller:"CreateOrEditSmsQueueDialogController",controllerAs:"vm",templateUrl:yh,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{smsQueue:t,smsQueues:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.agentAdd=function(e,t){n.show({controller:"SmsQueueagentaddController",controllerAs:"vm",templateUrl:vh,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{smsQueue:t,smsQueues:g.queues?g.queues.rows:[],realtime:!1,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.smsQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&u().merge(g.queues[e.id],u().pick(e,h))},g.onSaveMember=function(e){g.queues[e.SmsQueueId]&&g.queues[e.SmsQueueId].loggedInDb++},g.onRemoveMember=function(e){g.queues[e.SmsQueueId]&&g.queues[e.SmsQueueId].loggedInDb--},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.SmsQueueId]&&(g.queues[e.SmsQueueId].loggedInDb+=1,g.queues[e.SmsQueueId].agents[e.UserId]=e.SmsQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.SmsQueueId]&&g.queues[e.SmsQueueId].loggedInDb>0&&(g.queues[e.SmsQueueId].loggedInDb-=1,delete g.queues[e.SmsQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.on("sms_queue:save",g.onSave),c.on("userSmsQueue:save",g.onSaveMember),c.on("userSmsQueue:remove",g.onRemoveMember),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("sms_queue:save"),c.removeAllListeners("userSmsQueue:remove"),c.removeAllListeners("userSmsQueue:save"),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}Ah.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const Sh=Ah;const wh=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function Eh(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.sms.realtime.agents":a.selectedTab=0;break;case"app.sms.realtime.queues":a.selectedTab=1;break;default:a.selectedTab=0,t.go("app.sms.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.sms.realtime.agents");break;case 1:t.go("app.sms.realtime.queues");break;default:t.go("app.sms.realtime.agents")}}))}Eh.$inject=["$scope","$state","socket"];const Ch=Eh;function Th(e){e.state("app.sms.realtime",{url:"/realtime",views:{"content@app":{templateUrl:ph,controller:"SmsRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:710})}]},authenticate:!0,permissionId:710}).state("app.sms.realtime.agents",{url:"/agents",controller:"AgentsSmsRealtimeController as vm",templateUrl:gh,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:710}).state("app.sms.realtime.queues",{url:"/queues",controller:"QueuesSmsRealtimeController as vm",templateUrl:hh,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("smsQueue@get",{type:"inbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SmsQueues",channel:"sms",type:"inbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:701})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getSmsQueues")}]},authenticate:!0,permissionId:710})}Th.$inject=["$stateProvider"],angular.module("app.sms.realtime",[]).config(Th).controller("AgentsSmsRealtimeController",bh).controller("QueuesSmsRealtimeController",Sh).factory("helperClasses",wh).controller("SmsRealtimeController",Ch);const Ih=n.p+"templates/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues.html",kh=n.p+"templates/main/apps/sms/views/smsQueues/edit/view.html/view.html",Dh=n.p+"templates/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html",xh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/view.html/view.html";function Mh(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="SMS.EDIT_SMSACCOUNT",g.smsAccount=angular.copy(l),g.smsAccounts=s,g.newSmsAccount=!1,g.smsAccount||(g.smsAccount={remote:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():""),type:"twilio",waitForTheAssignedAgent:10,notificationSound:!0,queueTransferTimeout:300,agentTransferTimeout:300},g.title="SMS.NEW_SMSACCOUNT",g.newSmsAccount=!0),t.params.id&&(g.smsAccount.SmsAccountId=t.params.id),g.addNewSmsAccount=function(){g.errors=[],c.smsAccount.save(g.smsAccount).$promise.then((function(e){g.smsAccounts.unshift(e.toJSON()),i.success({title:"SmsAccount properly created",msg:g.smsAccount.name?g.smsAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.smsAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.smsAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSmsAccount=function(){g.errors=[],c.smsAccount.update({id:g.smsAccount.id},g.smsAccount).$promise.then((function(e){const t=u().find(g.smsAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SmsAccount properly saved!",msg:g.smsAccount.name?g.smsAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.smsAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.smsAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSmsAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The smsAccount will be deleted.").ariaLabel("Delete SmsAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.smsAccount.delete({id:g.smsAccount.id}).$promise.then((function(){u().remove(g.smsAccounts,{id:g.smsAccount.id}),i.success({title:"SmsAccount properly deleted!",msg:(g.smsAccount.name||"smsAccount")+" has been deleted!"}),h(g.smsAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.smsAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.smsAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.lists,{id:e.resourceId})}));let n=null;if(g.smsAccount&&(n=u().find(g.lists,{id:Number(g.smsAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.lists,{id:n.id});e.canSelect=!1,t.push(e)}g.lists=t}))}else{const e=[];let t=null;g.smsAccount&&(t=u().find(g.lists,{id:Number(g.smsAccount.ListId)}));for(let n=0;n<g.lists.length;n++)t&&g.lists[n].id===t.id&&(g.lists[n].canSelect=!1,e.push(g.lists[n]));g.lists=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Mh.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","smsAccounts","smsAccount","api","Auth","license","setting","crudPermissions"];const Ph=Mh,Oh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog.html",Rh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog.html",Nh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog.html",Lh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html/dialog.html",$h=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog.html",Uh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/dialogflowv2/dialog.html/dialog.html",jh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html/dialog.html",Fh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html/dialog.html",qh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog.html",Yh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog.html",Hh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog.html",Bh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html/dialog.html",Gh=n.p+"templates/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog.html";Wh.$inject=["api","$mdDialog","$document","toasty","Auth"];const Vh={agent:Oh,amazonlex:Rh,autoreply:Nh,close:Lh,dialogflow:$h,dialogflowv2:Uh,gotoif:jh,gotop:Fh,interval:qh,noop:Yh,queue:Hh,system:Bh,tag:Gh};function Wh(e,t,n,a,o){const r=this;function i(e,o){if(r.smsAccountApps.rows.length){const i=r.smsAccountApps.rows[o]?r.smsAccountApps.rows[o]:r.smsAccountApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditSmsAccountApp${l}DialogController`,controllerAs:"vm",templateUrl:Vh[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{smsAccountApp:i,smsAccount:r.smsAccount,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.smsAccountApps.rows[o]=e:r.smsAccountApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){let t=1,n=[];r.smsAccountApps.rows=r.smsAccountApps.rows.filter((e=>e.appdata));for(let e=0;e<r.smsAccountApps.rows.length;e++){const a=r.smsAccountApps.rows[e],o=[],i=[];a.intervals="*,*,*,*"!==a.interval?[a.interval]:a.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:a.IntervalId}),"interval"):[],a.context=r.smsAccount.context,a.exten=r.smsAccount.exten,a.type&&(a.type=a.type.toLowerCase()),a.priority=o.length?u().last(o).priority+1:t,t=(i.length?u().last(i).priority:a.priority)+1,n=u().concat(n,o,[a],i)}e.smsAccount.addApplications({id:r.smsAccount.id},u().sortBy(n,"priority")).$promise.then((function(e){r.smsAccountApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.smsAccountApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.smsAccount={},r.smsAccountApps={count:0,rows:[]},r.selectedSmsAccountApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",types:["always","custom","list"],fields:[],isApp:!1},{app:"noop",appType:"noop",type:"noop",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,fields:[{title:"Value",name:"value",type:"text",param:0}]},{app:"system",appType:"system",type:"system",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,extraApi:[{name:"variables",field:{name:"variable",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],fields:[{title:"Command",name:"command",type:"text",required:!0,param:0},{title:"Variable",name:"variable",type:"apiselect",values:"variables",value:"variable.name",option:"variable.name",defaultValues:[{value:"''",option:"None"}],defaultValue:"''",param:1}]},{app:"gotop",appType:"gotop",type:"goto",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Priority",name:"priority",type:"number",required:!0,min:0,param:0}]},{app:"gotoif",appType:"gotoif",type:"gotoif",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Condition",name:"condition",type:"text",required:!0,param:0},{title:"truepriority",name:"truepriority",type:"number",min:1,required:!0,param:1},{title:"falsepriority",name:"falsepriority",type:"number",min:1,required:!0,param:2}]},{app:"queue",appType:"queue",foreignKey:"SmsQueueId",type:"queue",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"queues",field:{name:"queue",key:"name"},route:"smsQueue",filters:{fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:701}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",defaultValue:300,required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:300,param:1}]},{app:"agent",appType:"agent",type:"agent",foreignKey:"UserId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"agents",field:{name:"agent",key:"name"},route:"user",filters:{fields:"id,name",sort:"name",nolimit:!0,role:"agent"},permissions:{section:202}}],fields:[{title:"Agent",name:"agent",type:"apiselect",values:"agents",value:"agent.name",option:"agent.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:30,param:1}]},{app:"autoreply",appType:"autoreply",type:"autoreply",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"times",name:"times",type:"select",defaultValue:"1",values:[{option:"One Time",value:"1"},{option:"Always",value:"0"}],required:!0,param:0},{title:"Text",name:"text",type:"textarea",required:!0,param:1}]},{app:"close",appType:"close",type:"close",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Disposition",name:"disposition",type:"text",required:!0,param:0}]},{app:"tag",appType:"tag",type:"tag",foreignKey:"TagId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"tags",field:{name:"tag",key:"name"},route:"tag",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1008}}],fields:[{title:"Tag",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",required:!0,param:0}]},{app:"dialogflow",appType:"dialogflow",type:"dialogflow",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Key",name:"key",type:"text",required:!0,param:0},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{option:"Danish",value:"'da'"},{option:"English",value:"'en'"},{option:"German",value:"'de'"},{option:"Italian",value:"'it'"},{option:"Spanish",value:"'es'"},{option:"French",value:"'fr'"},{option:"Indonesian",value:"'id'"},{option:"Japanese",value:"'ja'"},{option:"Korean (South Korea)",value:"'ko'"},{option:"Dutch",value:"'nl'"},{option:"Norwegian",value:"'no'"},{option:"Portuguese (European)",value:"'pt'"},{option:"Portuguese (Nrazilian)",value:"'pt-br'"},{option:"Russian",value:"'ru'"},{option:"Swedish",value:"'sv'"},{option:"Thai",value:"'th'"},{option:"Ukrainian",value:"'uk'"},{option:"Chinese (Simplified)",value:"'zh-CN'"},{option:"Chinese (Hong Kong)",value:"'zh-HK'"},{option:"Chinese (Traditional)",value:"'zh-TW'"}],required:!0,param:1},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,required:!1,param:2,help:!0}]},{app:"dialogflowV2",appType:"dialogflowv2",type:"dialogflowv2",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"ProjectID",name:"projectId",type:"text",required:!0,param:0},{title:"ClientEmail",name:"clientEmail",type:"text",required:!0,param:1},{title:"PrivateKey",name:"privateKey",type:"textarea",required:!0,param:2},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{value:"'zh-HK'",option:"Chinese (Cantonese)"},{value:"'zh-CN'",option:"Chinese (Simplified)"},{value:"'zh-TW'",option:"Chinese (Traditional)"},{value:"'da'",option:"Danish"},{value:"'nl'",option:"Dutch"},{value:"'en'",option:"English"},{value:"'en-AU'",option:"English (Australia)"},{value:"'en-CA'",option:"English (Canada)"},{value:"'en-GB'",option:"English (Great Britain)"},{value:"'en-IN'",option:"English (India)"},{value:"'en-US'",option:"English (US)"},{value:"'fr'",option:"French"},{value:"'fr-CA'",option:"French (Canada)"},{value:"'fr-FR'",option:"'France (France)"},{value:"'de'",option:"German"},{value:"'hi'",option:"Hindi"},{value:"'id'",option:"Indonesian"},{value:"'it'",option:"Italian"},{value:"'ja'",option:"Japanese"},{value:"'ko'",option:"Korean"},{value:"'no'",option:"Norwegian"},{value:"'pl'",option:"Polish"},{value:"'pt-BR'",option:"Portuguese (Brazil)"},{value:"'pt-PT'",option:"Portuguese (Portugal)"},{value:"'ru'",option:"Russian"},{value:"'es'",option:"Spanish"},{value:"'es-419'",option:"Spanish (Latin America)"},{value:"'es-ES'",option:"Spanish (Spain)"},{value:"'sw'",option:"Swedish"},{value:"'th'",option:"Thai"},{value:"'tr'",option:"Turkish"},{value:"'uk'",option:"Ukrainian"}],required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,param:4,help:!0}]},{app:"amazonlex",appType:"amazonlex",type:"amazonlex",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"accesskeyid",name:"accesskeyid",type:"text",required:!0,param:0},{title:"secretaccesskey",name:"secretaccesskey",type:"text",required:!0,param:1},{title:"lexregion",name:"lexregion",type:"select",defaultValue:"'us-east-1'",values:[{option:"US East (N. Virginia)",value:"'us-east-1'"},{option:"US West (Oregon)",value:"'us-west-2'"},{option:"EU (Ireland)",value:"'eu-west-1'"},{option:"Asia Pacific (Sydney)",value:"'ap-southeast-2'"}],required:!0,param:2},{title:"botname",name:"botname",type:"text",required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,required:!1,param:4,help:!0}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:["opt1"]},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(){s()}},r.init=function(e,t){r.smsAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.id=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getSmsAccountApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.smsAccountApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getSmsAccountApps=function(){r.promise=e.smsAccount.getApplications(r.query,l).$promise},r.editSmsAccountApp=i,r.editInterval=function(e,a){if(r.smsAccountApps.rows.length){const o=r.smsAccountApps.rows[a]?r.smsAccountApps.rows[a]:r.smsAccountApps.rows[0];t.show({controller:"EditSmsAccountAppintervalDialogController",controllerAs:"vm",templateUrl:qh,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteSmsAccountApp=function(e){u().remove(r.smsAccountApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedSmsAccountApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedSmsAccountApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedSmsAccountApps.forEach((function(e){u().remove(r.smsAccountApps.rows,{id:e.id})})),r.selectedSmsAccountApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const Qh=Wh;function zh(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.smsAccount.getAgents({id:d.smsAccount.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserSmsAccount?"penalty "+e.UserSmsAccount.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.smsAccount=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.smsAccount.removeAgents({id:d.smsAccount.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.smsAccount.addAgents({id:d.smsAccount.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}zh.$inject=["$mdDialog","$q","toasty","api","smsAccount","smsAccounts","realtime","$translate","Auth","crudPermissions"];const Kh=zh;function Jh(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.agent=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agent.appdata)switch(l.agent.appType?l.agent.appType.toLowerCase():l.agent.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agent.appdata.split(",");l.agent.key=e[0],l.agent.language=e[1],l.agent.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agent.appdata.split(",");l.agent.projectId=e[0],l.agent.clientEmail=e[1],l.agent.privateKey=e[2],l.agent.language=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agent.appdata.split(",");l.agent.accesskeyid=e[0],l.agent.secretaccesskey=e[1],l.agent.lexregion=e[2],l.agent.botname=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agent.appdata.split(",");l.agent.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.text=e.slice(1,e.length).join(",")}break;case"message":l.agent.text=l.agent.appdata;break;case"set":l.agent.name=l.agent.appdata.split("=")[0],l.agent.value=l.agent.appdata.split("=")[1];break;case"agi":l.agent.project=l.agent.appdata;break;default:{const e=l.agent.appdata.split(",");l.agent.agent=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.agent.timeout=30;function c(t){e.hide(t)}l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outbounddial"===l.agent.appType.toLowerCase()&&(l.agent.prefix=l.agent.phone?l.agent.phone.split("$")[0]:void 0,l.agent.callerId=l.agent.callerID?"CALLERID(all)="+l.agent.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outboundDial"===l.agent.appType&&(l.agent.phone=o.cutdigits?(l.agent.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agent.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agent.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agent.options+="U(xcally-mixmonitor-context)"):l.agent.options=l.agent.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.agents,{name:l.agent.agent});t&&(l.agent.UserId=t.id);if(l.agent.appType&&"custom"===l.agent.appType);else switch((l.agent.app||l.agent.appType).toLowerCase()){case"set":l.agent.appdata=l.agent.name+"="+l.agent.value;break;case"custom":break;default:e[0]=l.agent.agent,e[1]=l.agent.timeout,l.agent.appdata=e.join(",")}c(l.agent)},l.closeDialog=c,i.hasRole("admin")?r.user.get({fields:"id,name",sort:"name",nolimit:"true",role:"agent"}).$promise.then((function(e){l.agents=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name",sort:"name",nolimit:"true",role:"agent"}).$promise.then((function(e){l.agents=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.agents,{id:e.resourceId})}));let n=null;if(l.agent&&(n=u().find(l.agents,{name:l.agent.agent})),n&&!u().some(t,["id",n.id])){const e=u().find(l.agents,{id:n.id});e.canSelect=!1,t.push(e)}l.agents=t}))}else{const e=[];let t=null;l.agent&&(t=u().find(l.agents,{name:l.agent.agent}));for(let n=0;n<l.agents.length;n++)t&&l.agents[n].id===t.id&&(l.agents[n].canSelect=!1,e.push(l.agents[n]));l.agents=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Jh.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const Xh=Jh;function Zh(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.amazonlex=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.amazonlex.appdata)switch(l.amazonlex.appType?l.amazonlex.appType.toLowerCase():l.amazonlex.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.amazonlex.appdata.split(",");l.amazonlex.key=e[0],l.amazonlex.language=e[1],l.amazonlex.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.amazonlex.appdata.split(",");l.amazonlex.projectId=e[0],l.amazonlex.clientEmail=e[1],l.amazonlex.privateKey=e[2],l.amazonlex.language=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=e[0],l.amazonlex.secretaccesskey=e[1],l.amazonlex.lexregion=e[2],l.amazonlex.botname=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.amazonlex.appdata.split(",");l.amazonlex.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.text=e.slice(1,e.length).join(",")}break;case"message":l.amazonlex.text=l.amazonlex.appdata;break;case"set":l.amazonlex.name=l.amazonlex.appdata.split("=")[0],l.amazonlex.value=l.amazonlex.appdata.split("=")[1];break;case"agi":l.amazonlex.project=l.amazonlex.appdata;break;default:{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.secretaccesskey=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.amazonlex.lexregion=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.amazonlex.botname=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.amazonlex.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.amazonlex.lexregion="us-east-1";function c(t){e.hide(t)}l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outbounddial"===l.amazonlex.appType.toLowerCase()&&(l.amazonlex.prefix=l.amazonlex.phone?l.amazonlex.phone.split("$")[0]:void 0,l.amazonlex.callerId=l.amazonlex.callerID?"CALLERID(all)="+l.amazonlex.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outboundDial"===l.amazonlex.appType&&(l.amazonlex.phone=o.cutdigits?(l.amazonlex.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.amazonlex.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.amazonlex.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.amazonlex.options+="U(xcally-mixmonitor-context)"):l.amazonlex.options=l.amazonlex.options.replace("U(xcally-mixmonitor-context)",""));if(l.amazonlex.appType&&"custom"===l.amazonlex.appType);else switch((l.amazonlex.app||l.amazonlex.appType).toLowerCase()){case"set":l.amazonlex.appdata=l.amazonlex.name+"="+l.amazonlex.value;break;case"custom":break;default:e[0]=l.amazonlex.accesskeyid,e[1]=l.amazonlex.secretaccesskey,e[2]=l.amazonlex.lexregion,e[3]=l.amazonlex.botname,e[4]=l.amazonlex.welcomemessage,l.amazonlex.appdata=e.join(",")}c(l.amazonlex)},l.closeDialog=c}Zh.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const e_=Zh;function t_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.autoreply=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.autoreply.appdata)switch(l.autoreply.appType?l.autoreply.appType.toLowerCase():l.autoreply.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.autoreply.appdata.split(",");l.autoreply.key=e[0],l.autoreply.language=e[1],l.autoreply.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.autoreply.appdata.split(",");l.autoreply.projectId=e[0],l.autoreply.clientEmail=e[1],l.autoreply.privateKey=e[2],l.autoreply.language=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.autoreply.appdata.split(",");l.autoreply.accesskeyid=e[0],l.autoreply.secretaccesskey=e[1],l.autoreply.lexregion=e[2],l.autoreply.botname=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.autoreply.appdata.split(",");l.autoreply.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=e.slice(1,e.length).join(",")}break;case"message":l.autoreply.text=l.autoreply.appdata;break;case"set":l.autoreply.name=l.autoreply.appdata.split("=")[0],l.autoreply.value=l.autoreply.appdata.split("=")[1];break;case"agi":l.autoreply.project=l.autoreply.appdata;break;default:{const e=l.autoreply.appdata.split(",");l.autoreply.times=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.autoreply.times=1;function c(t){e.hide(t)}l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outbounddial"===l.autoreply.appType.toLowerCase()&&(l.autoreply.prefix=l.autoreply.phone?l.autoreply.phone.split("$")[0]:void 0,l.autoreply.callerId=l.autoreply.callerID?"CALLERID(all)="+l.autoreply.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outboundDial"===l.autoreply.appType&&(l.autoreply.phone=o.cutdigits?(l.autoreply.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.autoreply.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.autoreply.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.autoreply.options+="U(xcally-mixmonitor-context)"):l.autoreply.options=l.autoreply.options.replace("U(xcally-mixmonitor-context)",""));if(l.autoreply.appType&&"custom"===l.autoreply.appType);else switch((l.autoreply.app||l.autoreply.appType).toLowerCase()){case"set":l.autoreply.appdata=l.autoreply.name+"="+l.autoreply.value;break;case"custom":break;default:e[0]=l.autoreply.times,e[1]=l.autoreply.text,l.autoreply.appdata=e.join(",")}c(l.autoreply)},l.closeDialog=c}t_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const n_=t_;function a_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.close=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.close.appdata)switch(l.close.appType?l.close.appType.toLowerCase():l.close.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.close.appdata.split(",");l.close.key=e[0],l.close.language=e[1],l.close.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.close.appdata.split(",");l.close.projectId=e[0],l.close.clientEmail=e[1],l.close.privateKey=e[2],l.close.language=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.close.appdata.split(",");l.close.accesskeyid=e[0],l.close.secretaccesskey=e[1],l.close.lexregion=e[2],l.close.botname=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.close.appdata.split(",");l.close.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.close.text=e.slice(1,e.length).join(",")}break;case"message":l.close.text=l.close.appdata;break;case"set":l.close.name=l.close.appdata.split("=")[0],l.close.value=l.close.appdata.split("=")[1];break;case"agi":l.close.project=l.close.appdata;break;default:{const e=l.close.appdata.split(",");l.close.disposition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outbounddial"===l.close.appType.toLowerCase()&&(l.close.prefix=l.close.phone?l.close.phone.split("$")[0]:void 0,l.close.callerId=l.close.callerID?"CALLERID(all)="+l.close.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outboundDial"===l.close.appType&&(l.close.phone=o.cutdigits?(l.close.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.close.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.close.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.close.options+="U(xcally-mixmonitor-context)"):l.close.options=l.close.options.replace("U(xcally-mixmonitor-context)",""));if(l.close.appType&&"custom"===l.close.appType);else switch((l.close.app||l.close.appType).toLowerCase()){case"set":l.close.appdata=l.close.name+"="+l.close.value;break;case"custom":break;default:e[0]=l.close.disposition,l.close.appdata=e.join(",")}c(l.close)},l.closeDialog=c}a_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const o_=a_;function r_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflow=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflow.appdata)switch(l.dialogflow.appType?l.dialogflow.appType.toLowerCase():l.dialogflow.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=e[0],l.dialogflow.language=e[1],l.dialogflow.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflow.appdata.split(",");l.dialogflow.projectId=e[0],l.dialogflow.clientEmail=e[1],l.dialogflow.privateKey=e[2],l.dialogflow.language=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflow.appdata.split(",");l.dialogflow.accesskeyid=e[0],l.dialogflow.secretaccesskey=e[1],l.dialogflow.lexregion=e[2],l.dialogflow.botname=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflow.appdata.split(",");l.dialogflow.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflow.text=l.dialogflow.appdata;break;case"set":l.dialogflow.name=l.dialogflow.appdata.split("=")[0],l.dialogflow.value=l.dialogflow.appdata.split("=")[1];break;case"agi":l.dialogflow.project=l.dialogflow.appdata;break;default:{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.language=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflow.welcomemessage=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}else l.dialogflow.language="en";function c(t){e.hide(t)}l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outbounddial"===l.dialogflow.appType.toLowerCase()&&(l.dialogflow.prefix=l.dialogflow.phone?l.dialogflow.phone.split("$")[0]:void 0,l.dialogflow.callerId=l.dialogflow.callerID?"CALLERID(all)="+l.dialogflow.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outboundDial"===l.dialogflow.appType&&(l.dialogflow.phone=o.cutdigits?(l.dialogflow.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflow.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflow.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflow.options+="U(xcally-mixmonitor-context)"):l.dialogflow.options=l.dialogflow.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflow.appType&&"custom"===l.dialogflow.appType);else switch((l.dialogflow.app||l.dialogflow.appType).toLowerCase()){case"set":l.dialogflow.appdata=l.dialogflow.name+"="+l.dialogflow.value;break;case"custom":break;default:e[0]=l.dialogflow.key,e[1]=l.dialogflow.language,e[2]=l.dialogflow.welcomemessage,l.dialogflow.appdata=e.join(",")}c(l.dialogflow)},l.closeDialog=c}r_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const i_=r_;function s_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflowv2=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflowv2.appdata)switch(l.dialogflowv2.appType?l.dialogflowv2.appType.toLowerCase():l.dialogflowv2.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.key=e[0],l.dialogflowv2.language=e[1],l.dialogflowv2.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=e[0],l.dialogflowv2.clientEmail=e[1],l.dialogflowv2.privateKey=e[2],l.dialogflowv2.language=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.accesskeyid=e[0],l.dialogflowv2.secretaccesskey=e[1],l.dialogflowv2.lexregion=e[2],l.dialogflowv2.botname=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflowv2.text=l.dialogflowv2.appdata;break;case"set":l.dialogflowv2.name=l.dialogflowv2.appdata.split("=")[0],l.dialogflowv2.value=l.dialogflowv2.appdata.split("=")[1];break;case"agi":l.dialogflowv2.project=l.dialogflowv2.appdata;break;default:{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.clientEmail=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflowv2.privateKey=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.dialogflowv2.language=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.dialogflowv2.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.dialogflowv2.language="en";function c(t){e.hide(t)}l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outbounddial"===l.dialogflowv2.appType.toLowerCase()&&(l.dialogflowv2.prefix=l.dialogflowv2.phone?l.dialogflowv2.phone.split("$")[0]:void 0,l.dialogflowv2.callerId=l.dialogflowv2.callerID?"CALLERID(all)="+l.dialogflowv2.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outboundDial"===l.dialogflowv2.appType&&(l.dialogflowv2.phone=o.cutdigits?(l.dialogflowv2.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflowv2.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflowv2.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflowv2.options+="U(xcally-mixmonitor-context)"):l.dialogflowv2.options=l.dialogflowv2.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflowv2.appType&&"custom"===l.dialogflowv2.appType);else switch((l.dialogflowv2.app||l.dialogflowv2.appType).toLowerCase()){case"set":l.dialogflowv2.appdata=l.dialogflowv2.name+"="+l.dialogflowv2.value;break;case"custom":break;default:e[0]=l.dialogflowv2.projectId,e[1]=l.dialogflowv2.clientEmail,e[2]=l.dialogflowv2.privateKey,e[3]=l.dialogflowv2.language,e[4]=l.dialogflowv2.welcomemessage,l.dialogflowv2.appdata=e.join(",")}c(l.dialogflowv2)},l.closeDialog=c}s_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const l_=s_;function c_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotoif=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotoif.appdata)switch(l.gotoif.appType?l.gotoif.appType.toLowerCase():l.gotoif.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotoif.appdata.split(",");l.gotoif.key=e[0],l.gotoif.language=e[1],l.gotoif.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotoif.appdata.split(",");l.gotoif.projectId=e[0],l.gotoif.clientEmail=e[1],l.gotoif.privateKey=e[2],l.gotoif.language=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotoif.appdata.split(",");l.gotoif.accesskeyid=e[0],l.gotoif.secretaccesskey=e[1],l.gotoif.lexregion=e[2],l.gotoif.botname=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotoif.appdata.split(",");l.gotoif.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.text=e.slice(1,e.length).join(",")}break;case"message":l.gotoif.text=l.gotoif.appdata;break;case"set":l.gotoif.name=l.gotoif.appdata.split("=")[0],l.gotoif.value=l.gotoif.appdata.split("=")[1];break;case"agi":l.gotoif.project=l.gotoif.appdata;break;default:{const e=l.gotoif.appdata.split(",");l.gotoif.condition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.truepriority=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotoif.falsepriority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outbounddial"===l.gotoif.appType.toLowerCase()&&(l.gotoif.prefix=l.gotoif.phone?l.gotoif.phone.split("$")[0]:void 0,l.gotoif.callerId=l.gotoif.callerID?"CALLERID(all)="+l.gotoif.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outboundDial"===l.gotoif.appType&&(l.gotoif.phone=o.cutdigits?(l.gotoif.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotoif.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotoif.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotoif.options+="U(xcally-mixmonitor-context)"):l.gotoif.options=l.gotoif.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotoif.appType&&"custom"===l.gotoif.appType);else switch((l.gotoif.app||l.gotoif.appType).toLowerCase()){case"set":l.gotoif.appdata=l.gotoif.name+"="+l.gotoif.value;break;case"custom":break;default:e[0]=l.gotoif.condition,e[1]=l.gotoif.truepriority,e[2]=l.gotoif.falsepriority,l.gotoif.appdata=e.join(",")}c(l.gotoif)},l.closeDialog=c}c_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const u_=c_;function d_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotop.appdata)switch(l.gotop.appType?l.gotop.appType.toLowerCase():l.gotop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotop.appdata.split(",");l.gotop.key=e[0],l.gotop.language=e[1],l.gotop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotop.appdata.split(",");l.gotop.projectId=e[0],l.gotop.clientEmail=e[1],l.gotop.privateKey=e[2],l.gotop.language=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotop.appdata.split(",");l.gotop.accesskeyid=e[0],l.gotop.secretaccesskey=e[1],l.gotop.lexregion=e[2],l.gotop.botname=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotop.appdata.split(",");l.gotop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotop.text=e.slice(1,e.length).join(",")}break;case"message":l.gotop.text=l.gotop.appdata;break;case"set":l.gotop.name=l.gotop.appdata.split("=")[0],l.gotop.value=l.gotop.appdata.split("=")[1];break;case"agi":l.gotop.project=l.gotop.appdata;break;default:{const e=l.gotop.appdata.split(",");l.gotop.priority=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outbounddial"===l.gotop.appType.toLowerCase()&&(l.gotop.prefix=l.gotop.phone?l.gotop.phone.split("$")[0]:void 0,l.gotop.callerId=l.gotop.callerID?"CALLERID(all)="+l.gotop.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outboundDial"===l.gotop.appType&&(l.gotop.phone=o.cutdigits?(l.gotop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotop.options+="U(xcally-mixmonitor-context)"):l.gotop.options=l.gotop.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotop.appType&&"custom"===l.gotop.appType);else switch((l.gotop.app||l.gotop.appType).toLowerCase()){case"set":l.gotop.appdata=l.gotop.name+"="+l.gotop.value;break;case"custom":break;default:e[0]=l.gotop.priority,l.gotop.appdata=e.join(",")}c(l.gotop)},l.closeDialog=c}d_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const f_=d_;function m_(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}m_.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const p_=m_;function g_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.noop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.noop.appdata)switch(l.noop.appType?l.noop.appType.toLowerCase():l.noop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.noop.appdata.split(",");l.noop.key=e[0],l.noop.language=e[1],l.noop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.noop.appdata.split(",");l.noop.projectId=e[0],l.noop.clientEmail=e[1],l.noop.privateKey=e[2],l.noop.language=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.noop.appdata.split(",");l.noop.accesskeyid=e[0],l.noop.secretaccesskey=e[1],l.noop.lexregion=e[2],l.noop.botname=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.noop.appdata.split(",");l.noop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.noop.text=e.slice(1,e.length).join(",")}break;case"message":l.noop.text=l.noop.appdata;break;case"set":l.noop.name=l.noop.appdata.split("=")[0],l.noop.value=l.noop.appdata.split("=")[1];break;case"agi":l.noop.project=l.noop.appdata;break;default:{const e=l.noop.appdata.split(",");l.noop.value=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outbounddial"===l.noop.appType.toLowerCase()&&(l.noop.prefix=l.noop.phone?l.noop.phone.split("$")[0]:void 0,l.noop.callerId=l.noop.callerID?"CALLERID(all)="+l.noop.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outboundDial"===l.noop.appType&&(l.noop.phone=o.cutdigits?(l.noop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.noop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.noop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.noop.options+="U(xcally-mixmonitor-context)"):l.noop.options=l.noop.options.replace("U(xcally-mixmonitor-context)",""));if(l.noop.appType&&"custom"===l.noop.appType);else switch((l.noop.app||l.noop.appType).toLowerCase()){case"set":l.noop.appdata=l.noop.name+"="+l.noop.value;break;case"custom":break;default:e[0]=l.noop.value,l.noop.appdata=e.join(",")}c(l.noop)},l.closeDialog=c}g_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const h_=g_;function __(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.text=e.slice(1,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.queue.queue=300,l.queue.timeout=300;function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.queues,{name:l.queue.queue});t&&(l.queue[u().capitalize("sms")+"QueueId"]=t.id);if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.timeout,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.smsQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.smsQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:701}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}__.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const b_=__;function y_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.system=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.system.appdata)switch(l.system.appType?l.system.appType.toLowerCase():l.system.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.system.appdata.split(",");l.system.key=e[0],l.system.language=e[1],l.system.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.system.appdata.split(",");l.system.projectId=e[0],l.system.clientEmail=e[1],l.system.privateKey=e[2],l.system.language=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.system.appdata.split(",");l.system.accesskeyid=e[0],l.system.secretaccesskey=e[1],l.system.lexregion=e[2],l.system.botname=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.system.appdata.split(",");l.system.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.text=e.slice(1,e.length).join(",")}break;case"message":l.system.text=l.system.appdata;break;case"set":l.system.name=l.system.appdata.split("=")[0],l.system.value=l.system.appdata.split("=")[1];break;case"agi":l.system.project=l.system.appdata;break;default:{const e=l.system.appdata.split(",");l.system.command=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.variable=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.system.variable="";function c(t){e.hide(t)}l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outbounddial"===l.system.appType.toLowerCase()&&(l.system.prefix=l.system.phone?l.system.phone.split("$")[0]:void 0,l.system.callerId=l.system.callerID?"CALLERID(all)="+l.system.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outboundDial"===l.system.appType&&(l.system.phone=o.cutdigits?(l.system.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.system.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.system.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.system.options+="U(xcally-mixmonitor-context)"):l.system.options=l.system.options.replace("U(xcally-mixmonitor-context)",""));if(l.system.appType&&"custom"===l.system.appType);else switch((l.system.app||l.system.appType).toLowerCase()){case"set":l.system.appdata=l.system.name+"="+l.system.value;break;case"custom":break;default:e[0]=l.system.command,e[1]=l.system.variable,l.system.appdata=e.join(",")}c(l.system)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.system&&(n=u().find(l.variables,{name:l.system.variable})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.system&&(t=u().find(l.variables,{name:l.system.variable}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}y_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const v_=y_;function A_(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="SMS.EDIT_"+(a.appType||a.app).toUpperCase(),l.tag=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.tag.appdata)switch(l.tag.appType?l.tag.appType.toLowerCase():l.tag.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.tag.appdata.split(",");l.tag.key=e[0],l.tag.language=e[1],l.tag.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.tag.appdata.split(",");l.tag.projectId=e[0],l.tag.clientEmail=e[1],l.tag.privateKey=e[2],l.tag.language=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.tag.appdata.split(",");l.tag.accesskeyid=e[0],l.tag.secretaccesskey=e[1],l.tag.lexregion=e[2],l.tag.botname=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.tag.appdata.split(",");l.tag.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.tag.text=e.slice(1,e.length).join(",")}break;case"message":l.tag.text=l.tag.appdata;break;case"set":l.tag.name=l.tag.appdata.split("=")[0],l.tag.value=l.tag.appdata.split("=")[1];break;case"agi":l.tag.project=l.tag.appdata;break;default:{const e=l.tag.appdata.split(",");l.tag.tag=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outbounddial"===l.tag.appType.toLowerCase()&&(l.tag.prefix=l.tag.phone?l.tag.phone.split("$")[0]:void 0,l.tag.callerId=l.tag.callerID?"CALLERID(all)="+l.tag.callerID:void 0),l.saveSmsAccountApp=function(){l.errors=[];const e=[];l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outboundDial"===l.tag.appType&&(l.tag.phone=o.cutdigits?(l.tag.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.tag.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.tag.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.tag.options+="U(xcally-mixmonitor-context)"):l.tag.options=l.tag.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.tags,{name:l.tag.tag});t&&(l.tag.TagId=t.id);if(l.tag.appType&&"custom"===l.tag.appType);else switch((l.tag.app||l.tag.appType).toLowerCase()){case"set":l.tag.appdata=l.tag.name+"="+l.tag.value;break;case"custom":break;default:e[0]=l.tag.tag,l.tag.appdata=e.join(",")}c(l.tag)},l.closeDialog=c,i.hasRole("admin")?r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1008}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.tags,{id:e.resourceId})}));let n=null;if(l.tag&&(n=u().find(l.tags,{name:l.tag.tag})),n&&!u().some(t,["id",n.id])){const e=u().find(l.tags,{id:n.id});e.canSelect=!1,t.push(e)}l.tags=t}))}else{const e=[];let t=null;l.tag&&(t=u().find(l.tags,{name:l.tag.tag}));for(let n=0;n<l.tags.length;n++)t&&l.tags[n].id===t.id&&(l.tags[n].canSelect=!1,e.push(l.tags[n]));l.tags=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtags",msg:e.data?JSON.stringify(e.data):e.toString()})}))}A_.$inject=["$mdDialog","$q","toasty","smsAccountApp","smsAccount","api","Auth","crudPermissions"];const S_=A_;function w_(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.smsAccountInteractions=e||{count:0,rows:[]};for(let e=0;e<m.smsAccountInteractions.rows.length;e+=1){const t=m.smsAccountInteractions.rows[e];_(t),t.Owner.name=b(t)}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,m.promise=d.smsInteraction.get(m.query,p).$promise}function h(e){d.smsInteraction.delete({id:e.id}).$promise.then((function(){u().remove(m.smsAccountInteractions.rows,{id:e.id}),m.smsAccountInteractions.count-=1,m.smsAccountInteractions.rows.length||g(),c.success({title:"Interaction deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETsmsAccount"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsmsAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){e.Contact?(e.contactName=(e.Contact.firstName||"")+" "+(e.Contact.lastName||""),e.contactInfo=e.Contact.mobile):e.contactName=r.instant("APP.UNKNOWN")}function b(e){return e.UserId?e.UserId===m.currentUser.id?r.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">":r.instant("DASHBOARDS.NOT_ASSIGNED")}m.currentUser=f.getCurrentUser(),m.smsAccount={},m.smsAccountInteractions={count:0,rows:[]},m.selectedSmsAccountInteractions=[],m.crudPermissions,m.query={read:null,closed:null,sort:"-createdAt",includeAll:!0,limit:10,page:1,createdAt:{$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()}},m.init=function(e,t){m.smsAccount=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.SmsAccountId=m.smsAccount.id,m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Subject",column:"subject",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},d.tag.get().$promise.then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:null,translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).then((()=>g()))},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the interaction?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("interaction #")+e.id||"interaction")+"</b> will be deleted.").ariaLabel("delete interaction").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.smsInteractionDownload=function(e,t,n){return d.smsInteraction.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="interaction"+e.id;const o=new Blob(n,{type:t.type});a="sms-interaction"+e.id+".zip";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.smsAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.success=p,m.getSmsAccountInteractions=g,m.spysmsInteraction=function(e,n){s.show({controller:"AgentGeneralInteractionController",controllerAs:"vm",templateUrl:up,parent:angular.element(l.body),targetEvent:e,clickOutsideToClose:!0,onShowing:function(e){e.vm.init({id:1,channel:"sms",interaction:n,spy:!0},t.$parent.vm.setting)}})},m.openAdvancedSearch=function(){s.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(l.body),clickOutsideToClose:!1,locals:{fields:m.advancedSearch.fields,color:void 0,storagePath:"sms.smsAccounts"},fullscreen:!0}).then((function(e){if(m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply){let t="";t+="||SmsAccountId:=$eq["+m.smsAccount.id+"]",m.query.search=e.value?e.value+=t:e.value,g()}})).catch((function(e){c.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.exportSelectedSmsAccountInteractions=function(){const e=angular.copy(m.selectedSmsAccountInteractions);return m.selectedSmsAccountInteractions=[],e},m.deleteSmsAccountInteraction=h,m.deleteSelectedSmsAccountInteractions=function(e){const t=s.confirm().title("Are you sure want to delete the selected interactions?").htmlContent("<b>"+m.selectedSmsAccountInteractions.length+" selected</b> will be deleted.").ariaLabel("delete interactions").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedSmsAccountInteractions.forEach((function(e){h(e)})),m.selectedSmsAccountInteractions=[]}))}}w_.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const E_=w_,C_=n.p+"templates/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog.html";function T_(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.smsAccountSmsCannedAnswers=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.smsAccount.getAnswers(f.query,m).$promise}function g(e){c.cannedAnswer.delete({id:e.id}).$promise.then((function(){u().remove(f.smsAccountSmsCannedAnswers.rows,{id:e.id}),f.smsAccountSmsCannedAnswers.count-=1,f.smsAccountSmsCannedAnswers.rows.length||p(),l.success({title:"SmsCannedAnswer deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETsmsAccount"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsmsAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.smsAccount={},f.smsAccountSmsCannedAnswers={count:0,rows:[]},f.selectedSmsAccountSmsCannedAnswers=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,key,value,description",limit:10,page:1},f.init=function(e,t){f.smsAccount=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.SmsAccountId=f.smsAccount.id,f.query.id=f.smsAccount.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the smsCannedAnswer?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("smsCannedAnswer #")+e.id||"smsCannedAnswer")+"</b> will be deleted.").ariaLabel("delete smsCannedAnswer").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getSmsAccountSmsCannedAnswers=p,f.createOrEditSmsAccountSmsCannedAnswer=function(e,t){i.show({controller:"CreateOrEditSmsCannedAnswerDialogController",controllerAs:"vm",templateUrl:C_,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{smsAccount:f.smsAccount,smsCannedAnswer:t,smsCannedAnswers:f.smsAccountSmsCannedAnswers.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedSmsAccountSmsCannedAnswers=function(){const e=angular.copy(f.selectedSmsAccountSmsCannedAnswers);return f.selectedSmsAccountSmsCannedAnswers=[],e},f.deleteSmsAccountSmsCannedAnswer=g,f.deleteSelectedSmsAccountSmsCannedAnswers=function(e){const t=i.confirm().title("Are you sure want to delete the selected smsCannedAnswers?").htmlContent("<b>"+f.selectedSmsAccountSmsCannedAnswers.length+" selected</b> will be deleted.").ariaLabel("delete smsCannedAnswers").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedSmsAccountSmsCannedAnswers.forEach((function(e){g(e)})),f.selectedSmsAccountSmsCannedAnswers=[]}))}}T_.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const I_=T_;function k_(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="SMS.EDIT_SMSCANNEDANSWER",g.smsCannedAnswer=angular.copy(l),g.smsCannedAnswers=s,g.newSmsCannedAnswer=!1,g.smsCannedAnswer||(g.smsCannedAnswer={},g.title="SMS.NEW_SMSCANNEDANSWER",g.newSmsCannedAnswer=!0),t.params.id&&(g.smsCannedAnswer.SmsAccountId=t.params.id),g.addNewSmsCannedAnswer=function(){g.errors=[],c.cannedAnswer.save(g.smsCannedAnswer).$promise.then((function(e){g.smsCannedAnswers.unshift(e.toJSON()),i.success({title:"SmsCannedAnswer properly created",msg:g.smsCannedAnswer.name?g.smsCannedAnswer.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSmsCannedAnswer=function(){g.errors=[],c.cannedAnswer.update({id:g.smsCannedAnswer.id},g.smsCannedAnswer).$promise.then((function(e){const t=u().find(g.smsCannedAnswers,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SmsCannedAnswer properly saved!",msg:g.smsCannedAnswer.name?g.smsCannedAnswer.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSmsCannedAnswer=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The smsCannedAnswer will be deleted.").ariaLabel("Delete SmsCannedAnswer").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cannedAnswer.delete({id:g.smsCannedAnswer.id}).$promise.then((function(){u().remove(g.smsCannedAnswers,{id:g.smsCannedAnswer.id}),i.success({title:"SmsCannedAnswer properly deleted!",msg:(g.smsCannedAnswer.name||"smsCannedAnswer")+" has been deleted!"}),h(g.smsCannedAnswer)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}k_.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","smsCannedAnswers","smsCannedAnswer","api","Auth","license","setting","crudPermissions"];const D_=k_;function x_(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.dispositions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=l.smsAccount.getDispositions(f.query,m).$promise}function g(e){l.disposition.delete({id:e.id}).$promise.then((function(){p(),c.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.dispositions={count:0,rows:[]},f.selectedDispositions=[],f.crudPermissions,f.levels={first:"1st",second:"2nd",third:"3rd"},f.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},f.init=function(e,t){f.smsAccount=e||{},f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.SmsAccountId=f.smsAccount.id,f.query.id=f.smsAccount.id,p()},f.deleteConfirm=function(e,t){const n=u().some(f.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){g(e)}))},f.success=m,f.getDispositions=p,f.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:{id:f.smsAccount.id,field:"SmsAccountId",route:"smsAccount"},license:null,setting:null,crudPermissions:f.crudPermissions}}).then((function(e){e&&p()}))},f.deleteDisposition=g,f.exportSelectedDispositions=function(){const e=angular.copy(f.selectedDispositions);return f.selectedDispositions=[],e},f.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:f.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){f.selectedDispositions.forEach((function(e){g(e)})),f.selectedDispositions=[]}))},f.deselectDispositions=function(){f.selectedDispositions=[]},f.selectAllDispositions=function(){f.selectedDispositions=f.dispositions.rows}}x_.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","api","toasty","Auth"];const M_=x_,P_=n.p+"templates/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd.html";function O_(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.smsAccount=d||e.params.smsAccount||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.agentadddialog=function(e,t){n.show({controller:"SmsAccountagentaddController",controllerAs:"vm",templateUrl:P_,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{smsAccount:e,smsAccounts:m.smsAccounts?m.smsAccounts.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.alert=l.info,m.gotoSmsAccounts=function(){e.go("app.sms.smsAccounts",{},{reload:"app.sms.smsAccounts"})},m.saveSmsAccount=function(){s.smsAccount.update({id:m.smsAccount.id},m.smsAccount).$promise.then((function(){l.success({title:"SmsAccount updated!",msg:m.smsAccount.name?m.smsAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsmsAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.lists,{id:e.resourceId})}));let n=null;if(m.smsAccount&&(n=u().find(m.lists,{id:Number(m.smsAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.lists,{id:n.id});e.canSelect=!1,t.push(e)}m.lists=t}))}else{const e=[];let t=null;m.smsAccount&&(t=u().find(m.lists,{id:Number(m.smsAccount.ListId)}));for(let n=0;n<m.lists.length;n++)t&&m.lists[n].id===t.id&&(m.lists[n].canSelect=!1,e.push(m.lists[n]));m.lists=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}O_.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","smsAccount","userProfileSection"];const R_=O_,N_=n.p+"templates/main/apps/sms/views/smsAccounts/create/dialog.html/dialog.html";function L_(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.smsAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="smsAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedSmsAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,accountId,applicationId,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,page:1},b.arraytype=u().keyBy([{option:"Twilio",value:"'twilio'"},{option:"Skebby",value:"'skebby'"},{option:"Connectel",value:"'connectel'"},{option:"ClickSend",value:"'clicksend'"},{option:"Plivo",value:"'plivo'"},{option:"Infobip",value:"'infobip'"},{option:"Clickatell",value:"'clickatell'"},{option:"Bandwidth",value:"'bandwidth'"},{option:"CSCTelecom",value:"'csc'"},{option:"Intelepeer",value:"'intelepeer'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysmsMethod=u().keyBy([{option:"Basic",value:"'SI'"},{option:"Classic",value:"'TI'"},{option:"Classic+",value:"'GP'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.sms.smsAccounts.edit",{id:e.id,smsAccount:e,crudPermissions:b.crudPermissions})},b.interactionsgoto=function(e){n.go("app.sms.smsAccounts.edit",{id:e.id,tab:5})},b.agentadddialog=function(e,t){o.show({controller:"SmsAccountagentaddController",controllerAs:"vm",templateUrl:P_,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{smsAccount:e,smsAccounts:b.smsAccounts?b.smsAccounts.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("smsAccount")+"?").htmlContent("<b>"+(e.name||"smsAccount")+"</b> will be deleted.").ariaLabel("delete smsAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getSmsAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.smsAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="SmsAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditSmsAccount=function(e,t){o.show({controller:"CreateOrEditSmsAccountDialogController",controllerAs:"vm",templateUrl:N_,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{smsAccount:t,smsAccounts:b.smsAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteSmsAccount=S,b.exportSelectedSmsAccounts=function(){const e=angular.copy(b.selectedSmsAccounts);return b.selectedSmsAccounts=[],e},b.deleteSelectedSmsAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected smsAccounts?").htmlContent("<b>"+b.selectedSmsAccounts.length+" selected</b> will be deleted.").ariaLabel("delete SmsAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedSmsAccounts.forEach((function(e){S(e)})),b.selectedSmsAccounts=[]}))},b.deselectSmsAccounts=function(){b.selectedSmsAccounts=[]},b.selectAllSmsAccounts=function(){b.selectedSmsAccounts=b.smsAccounts.rows},g.hasRole("admin")?f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.lists,{id:e.resourceId})}));let n=null;if(b.smsAccount&&(n=u().find(b.lists,{id:Number(b.smsAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.lists,{id:n.id});e.canSelect=!1,t.push(e)}b.lists=t}))}else{const e=[];let t=null;b.smsAccount&&(t=u().find(b.lists,{id:Number(b.smsAccount.ListId)}));for(let n=0;n<b.lists.length;n++)t&&b.lists[n].id===t.id&&(b.lists[n].canSelect=!1,e.push(b.lists[n]));b.lists=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.smsAccounts=e||{count:0,rows:[]}}function S(e){f.smsAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.smsAccounts.rows,{id:e.id}),b.smsAccounts.count-=1,b.smsAccounts.rows.length||b.getSmsAccounts(),p.success({title:u().startCase("SmsAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEsmsAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEsmsAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getSmsAccounts())}))}L_.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","smsAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const $_=L_;function U_(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="SMS.EDIT_SMSQUEUE",g.smsQueue=angular.copy(l),g.smsQueues=s,g.newSmsQueue=!1,g.smsQueue||(g.smsQueue={strategy:"beepall",timeout:10},g.title="SMS.NEW_SMSQUEUE",g.newSmsQueue=!0),g.addNewSmsQueue=function(){g.errors=[],c.smsQueue.save(g.smsQueue).$promise.then((function(e){g.smsQueues.unshift(e.toJSON()),i.success({title:"SmsQueue properly created",msg:g.smsQueue.name?g.smsQueue.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.smsQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.smsQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSmsQueue=function(){g.errors=[],c.smsQueue.update({id:g.smsQueue.id},g.smsQueue).$promise.then((function(e){const t=u().find(g.smsQueues,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SmsQueue properly saved!",msg:g.smsQueue.name?g.smsQueue.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.smsQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.smsQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSmsQueue=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The smsQueue will be deleted.").ariaLabel("Delete SmsQueue").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.smsQueue.delete({id:g.smsQueue.id}).$promise.then((function(){u().remove(g.smsQueues,{id:g.smsQueue.id}),i.success({title:"SmsQueue properly deleted!",msg:(g.smsQueue.name||"smsQueue")+" has been deleted!"}),h(g.smsQueue)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.smsQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.smsQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}U_.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","smsQueues","smsQueue","api","Auth","license","setting","crudPermissions"];const j_=U_;function F_(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.smsQueue.getAgents({id:d.smsQueue.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserSmsQueue?"penalty "+e.UserSmsQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.smsQueue=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.smsQueue.removeAgents({id:d.smsQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.smsQueue.addAgents({id:d.smsQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}F_.$inject=["$mdDialog","$q","toasty","api","smsQueue","smsQueues","realtime","$translate","Auth","crudPermissions"];const q_=F_;function Y_(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.smsQueue.getTeams({id:l.smsQueue.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.smsQueue=o,l.crudPermissions=s,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(){const e=u().xorBy(l.startingSelectedItems,l.selectedItems,"id");l.pendingChanges=!u().isEmpty(e)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceBy(l.selectedItems,l.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.smsQueue.removeTeams({id:l.smsQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.smsQueue.addTeams({id:l.smsQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}Y_.$inject=["$mdDialog","$q","toasty","api","smsQueue","$translate","Auth","crudPermissions"];const H_=Y_,B_=n.p+"templates/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd.html";function G_(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.smsQueue=u||e.params.smsQueue||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.teamadddialog=function(e,t){n.show({controller:"SmsQueueteamaddController",controllerAs:"vm",templateUrl:B_,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{smsQueue:e,smsQueues:f.smsQueues?f.smsQueues.rows:[],crudPermissions:f.crudPermissions}})},f.agentadddialog=function(e,t){n.show({controller:"SmsQueueagentaddController",controllerAs:"vm",templateUrl:vh,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{smsQueue:e,smsQueues:f.smsQueues?f.smsQueues.rows:[],crudPermissions:f.crudPermissions,realtime:!1}})},f.alert=l.info,f.gotoSmsQueues=function(){e.go("app.sms.smsQueues",{},{reload:"app.sms.smsQueues"})},f.saveSmsQueue=function(){s.smsQueue.update({id:f.smsQueue.id},f.smsQueue).$promise.then((function(){l.success({title:"SmsQueue updated!",msg:f.smsQueue.name?f.smsQueue.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsmsQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}G_.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","smsQueue","userProfileSection"];const V_=G_;function W_(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.smsQueues=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="smsQueues",b.listOrder="",b.listOrderAsc=null,b.selectedSmsQueues=[],b.query={fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"sms",limit:10,page:1},b.arraystrategy=u().keyBy([{option:"Beepall",value:"'beepall'"},{option:"RR Memory",value:"'rrmemory'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.sms.smsQueues.edit",{id:e.id,smsQueue:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"SmsQueueteamaddController",controllerAs:"vm",templateUrl:B_,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{smsQueue:e,smsQueues:b.smsQueues?b.smsQueues.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"SmsQueueagentaddController",controllerAs:"vm",templateUrl:vh,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{smsQueue:e,smsQueues:b.smsQueues?b.smsQueues.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("smsQueue")+"?").htmlContent("<b>"+(e.name||"smsQueue")+"</b> will be deleted.").ariaLabel("delete smsQueue").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:710}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.sms.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.sms.realtime.queues",{})},b.success=A,b.getSmsQueues=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.smsQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="SmsQueues",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditSmsQueue=function(e,t){o.show({controller:"CreateOrEditSmsQueueDialogController",controllerAs:"vm",templateUrl:yh,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{smsQueue:t,smsQueues:b.smsQueues.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteSmsQueue=S,b.exportSelectedSmsQueues=function(){const e=angular.copy(b.selectedSmsQueues);return b.selectedSmsQueues=[],e},b.deleteSelectedSmsQueues=function(e){const t=o.confirm().title("Are you sure want to delete the selected smsQueues?").htmlContent("<b>"+b.selectedSmsQueues.length+" selected</b> will be deleted.").ariaLabel("delete SmsQueues").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedSmsQueues.forEach((function(e){S(e)})),b.selectedSmsQueues=[]}))},b.deselectSmsQueues=function(){b.selectedSmsQueues=[]},b.selectAllSmsQueues=function(){b.selectedSmsQueues=b.smsQueues.rows};let y=!0,v=1;function A(e){b.smsQueues=e||{count:0,rows:[]}}function S(e){f.smsQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.smsQueues.rows,{id:e.id}),b.smsQueues.count-=1,b.smsQueues.rows.length||b.getSmsQueues(),p.success({title:u().startCase("SmsQueue")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEsmsQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEsmsQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getSmsQueues())}))}W_.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","smsQueues","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Q_=W_;function z_(e,t){e.state("app.sms",{abstract:!0,url:"/sms"}).state("app.sms.smsQueues",{url:"/smsQueues",views:{"content@app":{templateUrl:Ih,controller:"SmsQueuesController as vm"}},resolve:{smsQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("smsQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"sms",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SmsQueues",fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"sms",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:701})}]},authenticate:!0,permissionId:701,bodyClass:"sms"}).state("app.sms.smsQueues.edit",{url:"/:id?tab",params:{smsQueue:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:kh,controller:"SmsQueueController as vm"}},resolve:{smsQueue:["apiResolver","$stateParams",function(e,t){return e.resolve("smsQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:701})}]},authenticate:!0,permissionId:701,bodyClass:"sms"}).state("app.sms.smsAccounts",{url:"/smsAccounts",views:{"content@app":{templateUrl:Dh,controller:"SmsAccountsController as vm"}},resolve:{smsAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("smsAccount@get",{fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,accountId,applicationId,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SmsAccounts",fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,accountId,applicationId,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:702})}]},authenticate:!0,permissionId:702,bodyClass:"sms"}).state("app.sms.smsAccounts.edit",{url:"/:id?tab",params:{smsAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:xh,controller:"SmsAccountController as vm"}},resolve:{smsAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("smsAccount@get",{fields:"createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,accountId,applicationId,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:702})}]},authenticate:!0,permissionId:702,bodyClass:"sms"}),t.addPart("app/main/apps/sms")}z_.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.sms",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.sms.realtime"]).config(z_).controller("CreateOrEditSmsAccountDialogController",Ph).controller("SmsAccountActionsController",Qh).controller("SmsAccountagentaddController",Kh).controller("EditSmsAccountAppagentDialogController",Xh).controller("EditSmsAccountAppamazonlexDialogController",e_).controller("EditSmsAccountAppautoreplyDialogController",n_).controller("EditSmsAccountAppcloseDialogController",o_).controller("EditSmsAccountAppdialogflowDialogController",i_).controller("EditSmsAccountAppdialogflowv2DialogController",l_).controller("EditSmsAccountAppgotoifDialogController",u_).controller("EditSmsAccountAppgotopDialogController",f_).controller("EditSmsAccountAppintervalDialogController",p_).controller("EditSmsAccountAppnoopDialogController",h_).controller("EditSmsAccountAppqueueDialogController",b_).controller("EditSmsAccountAppsystemDialogController",v_).controller("EditSmsAccountApptagDialogController",S_).controller("SmsAccountInteractionsController",E_).controller("SmsAccountSmsCannedAnswersController",I_).controller("CreateOrEditSmsCannedAnswerDialogController",D_).controller("SmsAccountDispositionsController",M_).controller("SmsAccountController",R_).controller("SmsAccountsController",$_).controller("CreateOrEditSmsQueueDialogController",j_).controller("SmsQueueagentaddController",q_).controller("SmsQueueteamaddController",H_).controller("SmsQueueController",V_).controller("SmsQueuesController",Q_);const K_=n.p+"templates/main/apps/openchannel/views/realtime/realtime.html/realtime.html",J_=n.p+"templates/main/apps/openchannel/views/realtime/agents/view.html/view.html",X_=n.p+"templates/main/apps/openchannel/views/realtime/queues/view.html/view.html";function Z_(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"openchannel",direction:"inbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}Z_.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const eb=Z_,tb=n.p+"templates/main/apps/openchannel/views/openchannelQueues/create/dialog.html/dialog.html",nb=n.p+"templates/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html/agentadd.html";function ab(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.openchannelQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].OpenchannelQueueId].paused++,g.queues[e[t].rows[n].OpenchannelQueueId].loggedInDb++,g.queues[e[t].rows[n].OpenchannelQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].OpenchannelQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"inbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"openchannel",type:"inbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.openchannelQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="OpenchannelQueues",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditOpenchannelQueue=function(e,t){n.show({controller:"CreateOrEditOpenchannelQueueDialogController",controllerAs:"vm",templateUrl:tb,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{openchannelQueue:t,openchannelQueues:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.agentAdd=function(e,t){n.show({controller:"OpenchannelQueueagentaddController",controllerAs:"vm",templateUrl:nb,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{openchannelQueue:t,openchannelQueues:g.queues?g.queues.rows:[],realtime:!1,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.openchannelQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&u().merge(g.queues[e.id],u().pick(e,h))},g.onSaveMember=function(e){g.queues[e.OpenchannelQueueId]&&g.queues[e.OpenchannelQueueId].loggedInDb++},g.onRemoveMember=function(e){g.queues[e.OpenchannelQueueId]&&g.queues[e.OpenchannelQueueId].loggedInDb--},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.OpenchannelQueueId]&&(g.queues[e.OpenchannelQueueId].loggedInDb+=1,g.queues[e.OpenchannelQueueId].agents[e.UserId]=e.OpenchannelQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.OpenchannelQueueId]&&g.queues[e.OpenchannelQueueId].loggedInDb>0&&(g.queues[e.OpenchannelQueueId].loggedInDb-=1,delete g.queues[e.OpenchannelQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.on("openchannel_queue:save",g.onSave),c.on("userOpenchannelQueue:save",g.onSaveMember),c.on("userOpenchannelQueue:remove",g.onRemoveMember),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("openchannel_queue:save"),c.removeAllListeners("userOpenchannelQueue:remove"),c.removeAllListeners("userOpenchannelQueue:save"),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}ab.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const ob=ab;const rb=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function ib(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.openchannel.realtime.agents":a.selectedTab=0;break;case"app.openchannel.realtime.queues":a.selectedTab=1;break;default:a.selectedTab=0,t.go("app.openchannel.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.openchannel.realtime.agents");break;case 1:t.go("app.openchannel.realtime.queues");break;default:t.go("app.openchannel.realtime.agents")}}))}ib.$inject=["$scope","$state","socket"];const sb=ib;function lb(e){e.state("app.openchannel.realtime",{url:"/realtime",views:{"content@app":{templateUrl:K_,controller:"OpenchannelRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:810})}]},authenticate:!0,permissionId:810}).state("app.openchannel.realtime.agents",{url:"/agents",controller:"AgentsOpenchannelRealtimeController as vm",templateUrl:J_,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:810}).state("app.openchannel.realtime.queues",{url:"/queues",controller:"QueuesOpenchannelRealtimeController as vm",templateUrl:X_,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("openchannelQueue@get",{type:"inbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"OpenchannelQueues",channel:"openchannel",type:"inbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:801})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getOpenchannelQueues")}]},authenticate:!0,permissionId:810})}lb.$inject=["$stateProvider"],angular.module("app.openchannel.realtime",[]).config(lb).controller("AgentsOpenchannelRealtimeController",eb).controller("QueuesOpenchannelRealtimeController",ob).factory("helperClasses",rb).controller("OpenchannelRealtimeController",sb);const cb=n.p+"templates/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues.html",ub=n.p+"templates/main/apps/openchannel/views/openchannelQueues/edit/view.html/view.html",db=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html/openchannelAccounts.html",fb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html";function mb(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="OPENCHANNEL.EDIT_OPENCHANNELACCOUNT",g.openchannelAccount=angular.copy(l),g.openchannelAccounts=s,g.newOpenchannelAccount=!1,g.openchannelAccount||(g.openchannelAccount={waitForTheAssignedAgent:10,notificationSound:!0,queueTransferTimeout:300,agentTransferTimeout:300},g.title="OPENCHANNEL.NEW_OPENCHANNELACCOUNT",g.newOpenchannelAccount=!0),t.params.id&&(g.openchannelAccount.OpenchannelAccountId=t.params.id),g.addNewOpenchannelAccount=function(){g.errors=[],c.openchannelAccount.save(g.openchannelAccount).$promise.then((function(e){g.openchannelAccounts.unshift(e.toJSON()),i.success({title:"OpenchannelAccount properly created",msg:g.openchannelAccount.name?g.openchannelAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveOpenchannelAccount=function(){g.errors=[],c.openchannelAccount.update({id:g.openchannelAccount.id},g.openchannelAccount).$promise.then((function(e){const t=u().find(g.openchannelAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"OpenchannelAccount properly saved!",msg:g.openchannelAccount.name?g.openchannelAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteOpenchannelAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The openchannelAccount will be deleted.").ariaLabel("Delete OpenchannelAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.openchannelAccount.delete({id:g.openchannelAccount.id}).$promise.then((function(){u().remove(g.openchannelAccounts,{id:g.openchannelAccount.id}),i.success({title:"OpenchannelAccount properly deleted!",msg:(g.openchannelAccount.name||"openchannelAccount")+" has been deleted!"}),h(g.openchannelAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.lists,{id:e.resourceId})}));let n=null;if(g.openchannelAccount&&(n=u().find(g.lists,{id:Number(g.openchannelAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.lists,{id:n.id});e.canSelect=!1,t.push(e)}g.lists=t}))}else{const e=[];let t=null;g.openchannelAccount&&(t=u().find(g.lists,{id:Number(g.openchannelAccount.ListId)}));for(let n=0;n<g.lists.length;n++)t&&g.lists[n].id===t.id&&(g.lists[n].canSelect=!1,e.push(g.lists[n]));g.lists=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}))}mb.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","openchannelAccounts","openchannelAccount","api","Auth","license","setting","crudPermissions"];const pb=mb,gb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog.html",hb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/amazonlex/dialog.html/dialog.html",_b=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html/dialog.html",bb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog.html",yb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/dialogflow/dialog.html/dialog.html",vb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/dialogflowv2/dialog.html/dialog.html",Ab=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog.html",Sb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html/dialog.html",wb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog.html",Eb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog.html",Cb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog.html",Tb=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog.html",Ib=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog.html";Db.$inject=["api","$mdDialog","$document","toasty","Auth"];const kb={agent:gb,amazonlex:hb,autoreply:_b,close:bb,dialogflow:yb,dialogflowv2:vb,gotoif:Ab,gotop:Sb,interval:wb,noop:Eb,queue:Cb,system:Tb,tag:Ib};function Db(e,t,n,a,o){const r=this;function i(e,o){if(r.openchannelAccountApps.rows.length){const i=r.openchannelAccountApps.rows[o]?r.openchannelAccountApps.rows[o]:r.openchannelAccountApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditOpenchannelAccountApp${l}DialogController`,controllerAs:"vm",templateUrl:kb[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{openchannelAccountApp:i,openchannelAccount:r.openchannelAccount,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.openchannelAccountApps.rows[o]=e:r.openchannelAccountApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){let t=1,n=[];r.openchannelAccountApps.rows=r.openchannelAccountApps.rows.filter((e=>e.appdata));for(let e=0;e<r.openchannelAccountApps.rows.length;e++){const a=r.openchannelAccountApps.rows[e],o=[],i=[];a.intervals="*,*,*,*"!==a.interval?[a.interval]:a.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:a.IntervalId}),"interval"):[],a.context=r.openchannelAccount.context,a.exten=r.openchannelAccount.exten,a.type&&(a.type=a.type.toLowerCase()),a.priority=o.length?u().last(o).priority+1:t,t=(i.length?u().last(i).priority:a.priority)+1,n=u().concat(n,o,[a],i)}e.openchannelAccount.addApplications({id:r.openchannelAccount.id},u().sortBy(n,"priority")).$promise.then((function(e){r.openchannelAccountApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.openchannelAccountApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.openchannelAccount={},r.openchannelAccountApps={count:0,rows:[]},r.selectedOpenchannelAccountApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"dialogflow",appType:"dialogflow",type:"dialogflow",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Key",name:"key",type:"text",required:!0,param:0},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{option:"Danish",value:"'da'"},{option:"English",value:"'en'"},{option:"German",value:"'de'"},{option:"Italian",value:"'it'"},{option:"Spanish",value:"'es'"},{option:"French",value:"'fr'"},{option:"Indonesian",value:"'id'"},{option:"Japanese",value:"'ja'"},{option:"Korean (South Korea)",value:"'ko'"},{option:"Dutch",value:"'nl'"},{option:"Norwegian",value:"'no'"},{option:"Portuguese (European)",value:"'pt'"},{option:"Portuguese (Nrazilian)",value:"'pt-br'"},{option:"Russian",value:"'ru'"},{option:"Swedish",value:"'sv'"},{option:"Thai",value:"'th'"},{option:"Ukrainian",value:"'uk'"},{option:"Chinese (Simplified)",value:"'zh-CN'"},{option:"Chinese (Hong Kong)",value:"'zh-HK'"},{option:"Chinese (Traditional)",value:"'zh-TW'"}],required:!0,param:1},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,required:!1,param:2,help:!0}]},{app:"dialogflowV2",appType:"dialogflowv2",type:"dialogflowv2",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"ProjectID",name:"projectId",type:"text",required:!0,param:0},{title:"ClientEmail",name:"clientEmail",type:"text",required:!0,param:1},{title:"PrivateKey",name:"privateKey",type:"textarea",required:!0,param:2},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{value:"'zh-HK'",option:"Chinese (Cantonese)"},{value:"'zh-CN'",option:"Chinese (Simplified)"},{value:"'zh-TW'",option:"Chinese (Traditional)"},{value:"'da'",option:"Danish"},{value:"'nl'",option:"Dutch"},{value:"'en'",option:"English"},{value:"'en-AU'",option:"English (Australia)"},{value:"'en-CA'",option:"English (Canada)"},{value:"'en-GB'",option:"English (Great Britain)"},{value:"'en-IN'",option:"English (India)"},{value:"'en-US'",option:"English (US)"},{value:"'fr'",option:"French"},{value:"'fr-CA'",option:"French (Canada)"},{value:"'fr-FR'",option:"'France (France)"},{value:"'de'",option:"German"},{value:"'hi'",option:"Hindi"},{value:"'id'",option:"Indonesian"},{value:"'it'",option:"Italian"},{value:"'ja'",option:"Japanese"},{value:"'ko'",option:"Korean"},{value:"'no'",option:"Norwegian"},{value:"'pl'",option:"Polish"},{value:"'pt-BR'",option:"Portuguese (Brazil)"},{value:"'pt-PT'",option:"Portuguese (Portugal)"},{value:"'ru'",option:"Russian"},{value:"'es'",option:"Spanish"},{value:"'es-419'",option:"Spanish (Latin America)"},{value:"'es-ES'",option:"Spanish (Spain)"},{value:"'sw'",option:"Swedish"},{value:"'th'",option:"Thai"},{value:"'tr'",option:"Turkish"},{value:"'uk'",option:"Ukrainian"}],required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,param:4,help:!0}]},{app:"amazonlex",appType:"amazonlex",type:"amazonlex",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"accesskeyid",name:"accesskeyid",type:"text",required:!0,param:0},{title:"secretaccesskey",name:"secretaccesskey",type:"text",required:!0,param:1},{title:"lexregion",name:"lexregion",type:"select",defaultValue:"'us-east-1'",values:[{option:"US East (N. Virginia)",value:"'us-east-1'"},{option:"US West (Oregon)",value:"'us-west-2'"},{option:"EU (Ireland)",value:"'eu-west-1'"},{option:"Asia Pacific (Sydney)",value:"'ap-southeast-2'"}],required:!0,param:2},{title:"botname",name:"botname",type:"text",required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,required:!1,param:4,help:!0}]},{app:"Interval",appType:"interval",types:["always","custom","list"],fields:[],isApp:!1},{app:"noop",appType:"noop",type:"noop",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,fields:[{title:"Value",name:"value",type:"text",param:0}]},{app:"system",appType:"system",type:"system",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,extraApi:[{name:"variables",field:{name:"variable",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],fields:[{title:"Command",name:"command",type:"text",required:!0,param:0},{title:"Variable",name:"variable",type:"apiselect",values:"variables",value:"variable.name",option:"variable.name",defaultValues:[{value:"''",option:"None"}],defaultValue:"''",param:1}]},{app:"gotop",appType:"gotop",type:"goto",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Priority",name:"priority",type:"number",required:!0,min:0,param:0}]},{app:"gotoif",appType:"gotoif",type:"gotoif",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Condition",name:"condition",type:"text",required:!0,param:0},{title:"truepriority",name:"truepriority",type:"number",min:1,required:!0,param:1},{title:"falsepriority",name:"falsepriority",type:"number",min:1,required:!0,param:2}]},{app:"queue",appType:"queue",foreignKey:"OpenchannelQueueId",type:"queue",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"queues",field:{name:"queue",key:"name"},route:"openchannelQueue",filters:{fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:801}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",defaultValue:300,required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,defaultValue:300,required:!0,param:1}]},{app:"agent",appType:"agent",type:"agent",foreignKey:"UserId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"agents",field:{name:"agent",key:"name"},route:"user",filters:{fields:"id,name",sort:"name",role:"agent",nolimit:!0},permissions:{section:202}}],fields:[{title:"Agent",name:"agent",type:"apiselect",values:"agents",value:"agent.name",option:"agent.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:30,param:1}]},{app:"autoreply",appType:"autoreply",type:"autoreply",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"times",name:"times",type:"select",defaultValue:"1",values:[{option:"One Time",value:"1"},{option:"Always",value:"0"}],required:!0,param:0},{title:"Text",name:"text",type:"textarea",required:!0,param:1}]},{app:"close",appType:"close",type:"close",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Disposition",name:"disposition",type:"text",required:!0,param:0}]},{app:"tag",appType:"tag",type:"tag",foreignKey:"TagId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"tags",field:{name:"tag",key:"name"},route:"tag",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1008}}],fields:[{title:"Tag",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",required:!0,param:0}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:"opt1"},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(){s()}},r.init=function(e,t){r.openchannelAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.id=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getOpenchannelAccountApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.openchannelAccountApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getOpenchannelAccountApps=function(){r.promise=e.openchannelAccount.getApplications(r.query,l).$promise},r.editOpenchannelAccountApp=i,r.editInterval=function(e,a){if(r.openchannelAccountApps.rows.length){const o=r.openchannelAccountApps.rows[a]?r.openchannelAccountApps.rows[a]:r.openchannelAccountApps.rows[0];t.show({controller:"EditOpenchannelAccountAppintervalDialogController",controllerAs:"vm",templateUrl:wb,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteOpenchannelAccountApp=function(e){u().remove(r.openchannelAccountApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedOpenchannelAccountApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedOpenchannelAccountApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedOpenchannelAccountApps.forEach((function(e){u().remove(r.openchannelAccountApps.rows,{id:e.id})})),r.selectedOpenchannelAccountApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const xb=Db;function Mb(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.openchannelAccount.getAgents({id:d.openchannelAccount.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserOpenchannelAccount?"penalty "+e.UserOpenchannelAccount.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.openchannelAccount=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.openchannelAccount.removeAgents({id:d.openchannelAccount.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.openchannelAccount.addAgents({id:d.openchannelAccount.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}Mb.$inject=["$mdDialog","$q","toasty","api","openchannelAccount","openchannelAccounts","realtime","$translate","Auth","crudPermissions"];const Pb=Mb;function Ob(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.agent=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agent.appdata)switch(l.agent.appType?l.agent.appType.toLowerCase():l.agent.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agent.appdata.split(",");l.agent.key=e[0],l.agent.language=e[1],l.agent.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agent.appdata.split(",");l.agent.projectId=e[0],l.agent.clientEmail=e[1],l.agent.privateKey=e[2],l.agent.language=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agent.appdata.split(",");l.agent.accesskeyid=e[0],l.agent.secretaccesskey=e[1],l.agent.lexregion=e[2],l.agent.botname=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agent.appdata.split(",");l.agent.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.text=e.slice(1,e.length).join(",")}break;case"message":l.agent.text=l.agent.appdata;break;case"set":l.agent.name=l.agent.appdata.split("=")[0],l.agent.value=l.agent.appdata.split("=")[1];break;case"agi":l.agent.project=l.agent.appdata;break;default:{const e=l.agent.appdata.split(",");l.agent.agent=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.agent.timeout=30;function c(t){e.hide(t)}l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outbounddial"===l.agent.appType.toLowerCase()&&(l.agent.prefix=l.agent.phone?l.agent.phone.split("$")[0]:void 0,l.agent.callerId=l.agent.callerID?"CALLERID(all)="+l.agent.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outboundDial"===l.agent.appType&&(l.agent.phone=o.cutdigits?(l.agent.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agent.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agent.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agent.options+="U(xcally-mixmonitor-context)"):l.agent.options=l.agent.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.agents,{name:l.agent.agent});t&&(l.agent.UserId=t.id);if(l.agent.appType&&"custom"===l.agent.appType);else switch((l.agent.app||l.agent.appType).toLowerCase()){case"set":l.agent.appdata=l.agent.name+"="+l.agent.value;break;case"custom":break;default:e[0]=l.agent.agent,e[1]=l.agent.timeout,l.agent.appdata=e.join(",")}c(l.agent)},l.closeDialog=c,i.hasRole("admin")?r.user.get({fields:"id,name",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){l.agents=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){l.agents=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.agents,{id:e.resourceId})}));let n=null;if(l.agent&&(n=u().find(l.agents,{name:l.agent.agent})),n&&!u().some(t,["id",n.id])){const e=u().find(l.agents,{id:n.id});e.canSelect=!1,t.push(e)}l.agents=t}))}else{const e=[];let t=null;l.agent&&(t=u().find(l.agents,{name:l.agent.agent}));for(let n=0;n<l.agents.length;n++)t&&l.agents[n].id===t.id&&(l.agents[n].canSelect=!1,e.push(l.agents[n]));l.agents=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Ob.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Rb=Ob;function Nb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.amazonlex=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.amazonlex.appdata)switch(l.amazonlex.appType?l.amazonlex.appType.toLowerCase():l.amazonlex.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.amazonlex.appdata.split(",");l.amazonlex.key=e[0],l.amazonlex.language=e[1],l.amazonlex.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.amazonlex.appdata.split(",");l.amazonlex.projectId=e[0],l.amazonlex.clientEmail=e[1],l.amazonlex.privateKey=e[2],l.amazonlex.language=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=e[0],l.amazonlex.secretaccesskey=e[1],l.amazonlex.lexregion=e[2],l.amazonlex.botname=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.amazonlex.appdata.split(",");l.amazonlex.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.text=e.slice(1,e.length).join(",")}break;case"message":l.amazonlex.text=l.amazonlex.appdata;break;case"set":l.amazonlex.name=l.amazonlex.appdata.split("=")[0],l.amazonlex.value=l.amazonlex.appdata.split("=")[1];break;case"agi":l.amazonlex.project=l.amazonlex.appdata;break;default:{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.secretaccesskey=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.amazonlex.lexregion=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.amazonlex.botname=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.amazonlex.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.amazonlex.lexregion="us-east-1";function c(t){e.hide(t)}l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outbounddial"===l.amazonlex.appType.toLowerCase()&&(l.amazonlex.prefix=l.amazonlex.phone?l.amazonlex.phone.split("$")[0]:void 0,l.amazonlex.callerId=l.amazonlex.callerID?"CALLERID(all)="+l.amazonlex.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outboundDial"===l.amazonlex.appType&&(l.amazonlex.phone=o.cutdigits?(l.amazonlex.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.amazonlex.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.amazonlex.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.amazonlex.options+="U(xcally-mixmonitor-context)"):l.amazonlex.options=l.amazonlex.options.replace("U(xcally-mixmonitor-context)",""));if(l.amazonlex.appType&&"custom"===l.amazonlex.appType);else switch((l.amazonlex.app||l.amazonlex.appType).toLowerCase()){case"set":l.amazonlex.appdata=l.amazonlex.name+"="+l.amazonlex.value;break;case"custom":break;default:e[0]=l.amazonlex.accesskeyid,e[1]=l.amazonlex.secretaccesskey,e[2]=l.amazonlex.lexregion,e[3]=l.amazonlex.botname,e[4]=l.amazonlex.welcomemessage,l.amazonlex.appdata=e.join(",")}c(l.amazonlex)},l.closeDialog=c}Nb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Lb=Nb;function $b(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.autoreply=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.autoreply.appdata)switch(l.autoreply.appType?l.autoreply.appType.toLowerCase():l.autoreply.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.autoreply.appdata.split(",");l.autoreply.key=e[0],l.autoreply.language=e[1],l.autoreply.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.autoreply.appdata.split(",");l.autoreply.projectId=e[0],l.autoreply.clientEmail=e[1],l.autoreply.privateKey=e[2],l.autoreply.language=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.autoreply.appdata.split(",");l.autoreply.accesskeyid=e[0],l.autoreply.secretaccesskey=e[1],l.autoreply.lexregion=e[2],l.autoreply.botname=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.autoreply.appdata.split(",");l.autoreply.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=e.slice(1,e.length).join(",")}break;case"message":l.autoreply.text=l.autoreply.appdata;break;case"set":l.autoreply.name=l.autoreply.appdata.split("=")[0],l.autoreply.value=l.autoreply.appdata.split("=")[1];break;case"agi":l.autoreply.project=l.autoreply.appdata;break;default:{const e=l.autoreply.appdata.split(",");l.autoreply.times=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.autoreply.times=1;function c(t){e.hide(t)}l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outbounddial"===l.autoreply.appType.toLowerCase()&&(l.autoreply.prefix=l.autoreply.phone?l.autoreply.phone.split("$")[0]:void 0,l.autoreply.callerId=l.autoreply.callerID?"CALLERID(all)="+l.autoreply.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outboundDial"===l.autoreply.appType&&(l.autoreply.phone=o.cutdigits?(l.autoreply.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.autoreply.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.autoreply.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.autoreply.options+="U(xcally-mixmonitor-context)"):l.autoreply.options=l.autoreply.options.replace("U(xcally-mixmonitor-context)",""));if(l.autoreply.appType&&"custom"===l.autoreply.appType);else switch((l.autoreply.app||l.autoreply.appType).toLowerCase()){case"set":l.autoreply.appdata=l.autoreply.name+"="+l.autoreply.value;break;case"custom":break;default:e[0]=l.autoreply.times,e[1]=l.autoreply.text,l.autoreply.appdata=e.join(",")}c(l.autoreply)},l.closeDialog=c}$b.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Ub=$b;function jb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.close=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.close.appdata)switch(l.close.appType?l.close.appType.toLowerCase():l.close.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.close.appdata.split(",");l.close.key=e[0],l.close.language=e[1],l.close.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.close.appdata.split(",");l.close.projectId=e[0],l.close.clientEmail=e[1],l.close.privateKey=e[2],l.close.language=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.close.appdata.split(",");l.close.accesskeyid=e[0],l.close.secretaccesskey=e[1],l.close.lexregion=e[2],l.close.botname=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.close.appdata.split(",");l.close.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.close.text=e.slice(1,e.length).join(",")}break;case"message":l.close.text=l.close.appdata;break;case"set":l.close.name=l.close.appdata.split("=")[0],l.close.value=l.close.appdata.split("=")[1];break;case"agi":l.close.project=l.close.appdata;break;default:{const e=l.close.appdata.split(",");l.close.disposition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outbounddial"===l.close.appType.toLowerCase()&&(l.close.prefix=l.close.phone?l.close.phone.split("$")[0]:void 0,l.close.callerId=l.close.callerID?"CALLERID(all)="+l.close.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outboundDial"===l.close.appType&&(l.close.phone=o.cutdigits?(l.close.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.close.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.close.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.close.options+="U(xcally-mixmonitor-context)"):l.close.options=l.close.options.replace("U(xcally-mixmonitor-context)",""));if(l.close.appType&&"custom"===l.close.appType);else switch((l.close.app||l.close.appType).toLowerCase()){case"set":l.close.appdata=l.close.name+"="+l.close.value;break;case"custom":break;default:e[0]=l.close.disposition,l.close.appdata=e.join(",")}c(l.close)},l.closeDialog=c}jb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Fb=jb;function qb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflow=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflow.appdata)switch(l.dialogflow.appType?l.dialogflow.appType.toLowerCase():l.dialogflow.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=e[0],l.dialogflow.language=e[1],l.dialogflow.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflow.appdata.split(",");l.dialogflow.projectId=e[0],l.dialogflow.clientEmail=e[1],l.dialogflow.privateKey=e[2],l.dialogflow.language=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflow.appdata.split(",");l.dialogflow.accesskeyid=e[0],l.dialogflow.secretaccesskey=e[1],l.dialogflow.lexregion=e[2],l.dialogflow.botname=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflow.appdata.split(",");l.dialogflow.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflow.text=l.dialogflow.appdata;break;case"set":l.dialogflow.name=l.dialogflow.appdata.split("=")[0],l.dialogflow.value=l.dialogflow.appdata.split("=")[1];break;case"agi":l.dialogflow.project=l.dialogflow.appdata;break;default:{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.language=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflow.welcomemessage=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}else l.dialogflow.language="en";function c(t){e.hide(t)}l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outbounddial"===l.dialogflow.appType.toLowerCase()&&(l.dialogflow.prefix=l.dialogflow.phone?l.dialogflow.phone.split("$")[0]:void 0,l.dialogflow.callerId=l.dialogflow.callerID?"CALLERID(all)="+l.dialogflow.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outboundDial"===l.dialogflow.appType&&(l.dialogflow.phone=o.cutdigits?(l.dialogflow.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflow.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflow.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflow.options+="U(xcally-mixmonitor-context)"):l.dialogflow.options=l.dialogflow.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflow.appType&&"custom"===l.dialogflow.appType);else switch((l.dialogflow.app||l.dialogflow.appType).toLowerCase()){case"set":l.dialogflow.appdata=l.dialogflow.name+"="+l.dialogflow.value;break;case"custom":break;default:e[0]=l.dialogflow.key,e[1]=l.dialogflow.language,e[2]=l.dialogflow.welcomemessage,l.dialogflow.appdata=e.join(",")}c(l.dialogflow)},l.closeDialog=c}qb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Yb=qb;function Hb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflowv2=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflowv2.appdata)switch(l.dialogflowv2.appType?l.dialogflowv2.appType.toLowerCase():l.dialogflowv2.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.key=e[0],l.dialogflowv2.language=e[1],l.dialogflowv2.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=e[0],l.dialogflowv2.clientEmail=e[1],l.dialogflowv2.privateKey=e[2],l.dialogflowv2.language=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.accesskeyid=e[0],l.dialogflowv2.secretaccesskey=e[1],l.dialogflowv2.lexregion=e[2],l.dialogflowv2.botname=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflowv2.text=l.dialogflowv2.appdata;break;case"set":l.dialogflowv2.name=l.dialogflowv2.appdata.split("=")[0],l.dialogflowv2.value=l.dialogflowv2.appdata.split("=")[1];break;case"agi":l.dialogflowv2.project=l.dialogflowv2.appdata;break;default:{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.clientEmail=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflowv2.privateKey=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.dialogflowv2.language=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.dialogflowv2.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.dialogflowv2.language="en";function c(t){e.hide(t)}l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outbounddial"===l.dialogflowv2.appType.toLowerCase()&&(l.dialogflowv2.prefix=l.dialogflowv2.phone?l.dialogflowv2.phone.split("$")[0]:void 0,l.dialogflowv2.callerId=l.dialogflowv2.callerID?"CALLERID(all)="+l.dialogflowv2.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outboundDial"===l.dialogflowv2.appType&&(l.dialogflowv2.phone=o.cutdigits?(l.dialogflowv2.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflowv2.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflowv2.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflowv2.options+="U(xcally-mixmonitor-context)"):l.dialogflowv2.options=l.dialogflowv2.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflowv2.appType&&"custom"===l.dialogflowv2.appType);else switch((l.dialogflowv2.app||l.dialogflowv2.appType).toLowerCase()){case"set":l.dialogflowv2.appdata=l.dialogflowv2.name+"="+l.dialogflowv2.value;break;case"custom":break;default:e[0]=l.dialogflowv2.projectId,e[1]=l.dialogflowv2.clientEmail,e[2]=l.dialogflowv2.privateKey,e[3]=l.dialogflowv2.language,e[4]=l.dialogflowv2.welcomemessage,l.dialogflowv2.appdata=e.join(",")}c(l.dialogflowv2)},l.closeDialog=c}Hb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Bb=Hb;function Gb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotoif=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotoif.appdata)switch(l.gotoif.appType?l.gotoif.appType.toLowerCase():l.gotoif.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotoif.appdata.split(",");l.gotoif.key=e[0],l.gotoif.language=e[1],l.gotoif.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotoif.appdata.split(",");l.gotoif.projectId=e[0],l.gotoif.clientEmail=e[1],l.gotoif.privateKey=e[2],l.gotoif.language=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotoif.appdata.split(",");l.gotoif.accesskeyid=e[0],l.gotoif.secretaccesskey=e[1],l.gotoif.lexregion=e[2],l.gotoif.botname=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotoif.appdata.split(",");l.gotoif.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.text=e.slice(1,e.length).join(",")}break;case"message":l.gotoif.text=l.gotoif.appdata;break;case"set":l.gotoif.name=l.gotoif.appdata.split("=")[0],l.gotoif.value=l.gotoif.appdata.split("=")[1];break;case"agi":l.gotoif.project=l.gotoif.appdata;break;default:{const e=l.gotoif.appdata.split(",");l.gotoif.condition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.truepriority=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotoif.falsepriority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outbounddial"===l.gotoif.appType.toLowerCase()&&(l.gotoif.prefix=l.gotoif.phone?l.gotoif.phone.split("$")[0]:void 0,l.gotoif.callerId=l.gotoif.callerID?"CALLERID(all)="+l.gotoif.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outboundDial"===l.gotoif.appType&&(l.gotoif.phone=o.cutdigits?(l.gotoif.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotoif.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotoif.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotoif.options+="U(xcally-mixmonitor-context)"):l.gotoif.options=l.gotoif.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotoif.appType&&"custom"===l.gotoif.appType);else switch((l.gotoif.app||l.gotoif.appType).toLowerCase()){case"set":l.gotoif.appdata=l.gotoif.name+"="+l.gotoif.value;break;case"custom":break;default:e[0]=l.gotoif.condition,e[1]=l.gotoif.truepriority,e[2]=l.gotoif.falsepriority,l.gotoif.appdata=e.join(",")}c(l.gotoif)},l.closeDialog=c}Gb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Vb=Gb;function Wb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotop.appdata)switch(l.gotop.appType?l.gotop.appType.toLowerCase():l.gotop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotop.appdata.split(",");l.gotop.key=e[0],l.gotop.language=e[1],l.gotop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotop.appdata.split(",");l.gotop.projectId=e[0],l.gotop.clientEmail=e[1],l.gotop.privateKey=e[2],l.gotop.language=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotop.appdata.split(",");l.gotop.accesskeyid=e[0],l.gotop.secretaccesskey=e[1],l.gotop.lexregion=e[2],l.gotop.botname=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotop.appdata.split(",");l.gotop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotop.text=e.slice(1,e.length).join(",")}break;case"message":l.gotop.text=l.gotop.appdata;break;case"set":l.gotop.name=l.gotop.appdata.split("=")[0],l.gotop.value=l.gotop.appdata.split("=")[1];break;case"agi":l.gotop.project=l.gotop.appdata;break;default:{const e=l.gotop.appdata.split(",");l.gotop.priority=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outbounddial"===l.gotop.appType.toLowerCase()&&(l.gotop.prefix=l.gotop.phone?l.gotop.phone.split("$")[0]:void 0,l.gotop.callerId=l.gotop.callerID?"CALLERID(all)="+l.gotop.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outboundDial"===l.gotop.appType&&(l.gotop.phone=o.cutdigits?(l.gotop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotop.options+="U(xcally-mixmonitor-context)"):l.gotop.options=l.gotop.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotop.appType&&"custom"===l.gotop.appType);else switch((l.gotop.app||l.gotop.appType).toLowerCase()){case"set":l.gotop.appdata=l.gotop.name+"="+l.gotop.value;break;case"custom":break;default:e[0]=l.gotop.priority,l.gotop.appdata=e.join(",")}c(l.gotop)},l.closeDialog=c}Wb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Qb=Wb;function zb(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}zb.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const Kb=zb;function Jb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.noop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.noop.appdata)switch(l.noop.appType?l.noop.appType.toLowerCase():l.noop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.noop.appdata.split(",");l.noop.key=e[0],l.noop.language=e[1],l.noop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.noop.appdata.split(",");l.noop.projectId=e[0],l.noop.clientEmail=e[1],l.noop.privateKey=e[2],l.noop.language=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.noop.appdata.split(",");l.noop.accesskeyid=e[0],l.noop.secretaccesskey=e[1],l.noop.lexregion=e[2],l.noop.botname=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.noop.appdata.split(",");l.noop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.noop.text=e.slice(1,e.length).join(",")}break;case"message":l.noop.text=l.noop.appdata;break;case"set":l.noop.name=l.noop.appdata.split("=")[0],l.noop.value=l.noop.appdata.split("=")[1];break;case"agi":l.noop.project=l.noop.appdata;break;default:{const e=l.noop.appdata.split(",");l.noop.value=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outbounddial"===l.noop.appType.toLowerCase()&&(l.noop.prefix=l.noop.phone?l.noop.phone.split("$")[0]:void 0,l.noop.callerId=l.noop.callerID?"CALLERID(all)="+l.noop.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outboundDial"===l.noop.appType&&(l.noop.phone=o.cutdigits?(l.noop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.noop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.noop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.noop.options+="U(xcally-mixmonitor-context)"):l.noop.options=l.noop.options.replace("U(xcally-mixmonitor-context)",""));if(l.noop.appType&&"custom"===l.noop.appType);else switch((l.noop.app||l.noop.appType).toLowerCase()){case"set":l.noop.appdata=l.noop.name+"="+l.noop.value;break;case"custom":break;default:e[0]=l.noop.value,l.noop.appdata=e.join(",")}c(l.noop)},l.closeDialog=c}Jb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const Xb=Jb;function Zb(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.text=e.slice(1,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.queue.queue=300,l.queue.timeout=300;function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.queues,{name:l.queue.queue});t&&(l.queue[u().capitalize("openChannel")+"QueueId"]=t.id);if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.timeout,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.openchannelQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.openchannelQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:801}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Zb.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const ey=Zb;function ty(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.system=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.system.appdata)switch(l.system.appType?l.system.appType.toLowerCase():l.system.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.system.appdata.split(",");l.system.key=e[0],l.system.language=e[1],l.system.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.system.appdata.split(",");l.system.projectId=e[0],l.system.clientEmail=e[1],l.system.privateKey=e[2],l.system.language=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.system.appdata.split(",");l.system.accesskeyid=e[0],l.system.secretaccesskey=e[1],l.system.lexregion=e[2],l.system.botname=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.system.appdata.split(",");l.system.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.text=e.slice(1,e.length).join(",")}break;case"message":l.system.text=l.system.appdata;break;case"set":l.system.name=l.system.appdata.split("=")[0],l.system.value=l.system.appdata.split("=")[1];break;case"agi":l.system.project=l.system.appdata;break;default:{const e=l.system.appdata.split(",");l.system.command=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.variable=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.system.variable="";function c(t){e.hide(t)}l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outbounddial"===l.system.appType.toLowerCase()&&(l.system.prefix=l.system.phone?l.system.phone.split("$")[0]:void 0,l.system.callerId=l.system.callerID?"CALLERID(all)="+l.system.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outboundDial"===l.system.appType&&(l.system.phone=o.cutdigits?(l.system.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.system.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.system.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.system.options+="U(xcally-mixmonitor-context)"):l.system.options=l.system.options.replace("U(xcally-mixmonitor-context)",""));if(l.system.appType&&"custom"===l.system.appType);else switch((l.system.app||l.system.appType).toLowerCase()){case"set":l.system.appdata=l.system.name+"="+l.system.value;break;case"custom":break;default:e[0]=l.system.command,e[1]=l.system.variable,l.system.appdata=e.join(",")}c(l.system)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.system&&(n=u().find(l.variables,{name:l.system.variable})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.system&&(t=u().find(l.variables,{name:l.system.variable}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}ty.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const ny=ty;function ay(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="OPENCHANNEL.EDIT_"+(a.appType||a.app).toUpperCase(),l.tag=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.tag.appdata)switch(l.tag.appType?l.tag.appType.toLowerCase():l.tag.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.tag.appdata.split(",");l.tag.key=e[0],l.tag.language=e[1],l.tag.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.tag.appdata.split(",");l.tag.projectId=e[0],l.tag.clientEmail=e[1],l.tag.privateKey=e[2],l.tag.language=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.tag.appdata.split(",");l.tag.accesskeyid=e[0],l.tag.secretaccesskey=e[1],l.tag.lexregion=e[2],l.tag.botname=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.tag.appdata.split(",");l.tag.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.tag.text=e.slice(1,e.length).join(",")}break;case"message":l.tag.text=l.tag.appdata;break;case"set":l.tag.name=l.tag.appdata.split("=")[0],l.tag.value=l.tag.appdata.split("=")[1];break;case"agi":l.tag.project=l.tag.appdata;break;default:{const e=l.tag.appdata.split(",");l.tag.tag=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outbounddial"===l.tag.appType.toLowerCase()&&(l.tag.prefix=l.tag.phone?l.tag.phone.split("$")[0]:void 0,l.tag.callerId=l.tag.callerID?"CALLERID(all)="+l.tag.callerID:void 0),l.saveOpenchannelAccountApp=function(){l.errors=[];const e=[];l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outboundDial"===l.tag.appType&&(l.tag.phone=o.cutdigits?(l.tag.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.tag.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.tag.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.tag.options+="U(xcally-mixmonitor-context)"):l.tag.options=l.tag.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.tags,{name:l.tag.tag});t&&(l.tag.TagId=t.id);if(l.tag.appType&&"custom"===l.tag.appType);else switch((l.tag.app||l.tag.appType).toLowerCase()){case"set":l.tag.appdata=l.tag.name+"="+l.tag.value;break;case"custom":break;default:e[0]=l.tag.tag,l.tag.appdata=e.join(",")}c(l.tag)},l.closeDialog=c,i.hasRole("admin")?r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1008}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.tags,{id:e.resourceId})}));let n=null;if(l.tag&&(n=u().find(l.tags,{name:l.tag.tag})),n&&!u().some(t,["id",n.id])){const e=u().find(l.tags,{id:n.id});e.canSelect=!1,t.push(e)}l.tags=t}))}else{const e=[];let t=null;l.tag&&(t=u().find(l.tags,{name:l.tag.tag}));for(let n=0;n<l.tags.length;n++)t&&l.tags[n].id===t.id&&(l.tags[n].canSelect=!1,e.push(l.tags[n]));l.tags=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtags",msg:e.data?JSON.stringify(e.data):e.toString()})}))}ay.$inject=["$mdDialog","$q","toasty","openchannelAccountApp","openchannelAccount","api","Auth","crudPermissions"];const oy=ay;function ry(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.openchannelAccountInteractions=e||{count:0,rows:[]};for(let e=0;e<m.openchannelAccountInteractions.rows.length;e+=1){const t=m.openchannelAccountInteractions.rows[e];_(t),t.Owner.name=b(t)}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,m.promise=d.openchannelInteraction.get(m.query,p).$promise}function h(e){d.openchannelInteraction.delete({id:e.id}).$promise.then((function(){u().remove(m.openchannelAccountInteractions.rows,{id:e.id}),m.openchannelAccountInteractions.count-=1,m.openchannelAccountInteractions.rows.length||g(),c.success({title:"Interaction deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETopenchannelAccount"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETopenchannelAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){e.from?e.contactName=e.from:e.Contact?e.contactName=(e.Contact.firstName||"")+" "+(e.Contact.lastName||""):e.contactName=r.instant("APP.UNKNOWN")}function b(e){return e.UserId?e.UserId===m.currentUser.id?r.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">":r.instant("DASHBOARDS.NOT_ASSIGNED")}m.currentUser=f.getCurrentUser(),m.openchannelAccount={},m.openchannelAccountInteractions={count:0,rows:[]},m.selectedOpenchannelAccountInteractions=[],m.crudPermissions,m.query={read:null,closed:null,sort:"-createdAt",includeAll:!0,limit:10,page:1,createdAt:{$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()}},m.init=function(e,t){m.openchannelAccount=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.OpenchannelAccountId=m.openchannelAccount.id,m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Subject",column:"subject",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},d.tag.get().$promise.then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:null,translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).then((()=>g()))},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the interaction?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("interaction #")+e.id||"interaction")+"</b> will be deleted.").ariaLabel("delete interaction").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.openchannelInteractionDownload=function(e,t,n){return d.openchannelInteraction.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="interaction"+e.id;const o=new Blob(n,{type:t.type});a="openchannel-interaction"+e.id+".zip";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.success=p,m.getOpenchannelAccountInteractions=g,m.spyopenchannelInteraction=function(e,n){s.show({controller:"AgentGeneralInteractionController",controllerAs:"vm",templateUrl:up,parent:angular.element(l.body),targetEvent:e,clickOutsideToClose:!0,onShowing:function(e){e.vm.init({id:1,channel:"openchannel",interaction:n,spy:!0},t.$parent.vm.setting)}})},m.openAdvancedSearch=function(){s.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(l.body),clickOutsideToClose:!1,locals:{fields:m.advancedSearch.fields,color:void 0,storagePath:"openchannel.openchannelAccounts"},fullscreen:!0}).then((function(e){if(m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply){let t="";t+="||OpenchannelAccountId:=$eq["+m.openchannelAccount.id+"]",m.query.search=e.value?e.value+=t:e.value,g()}})).catch((function(e){c.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.exportSelectedOpenchannelAccountInteractions=function(){const e=angular.copy(m.selectedOpenchannelAccountInteractions);return m.selectedOpenchannelAccountInteractions=[],e},m.deleteOpenchannelAccountInteraction=h,m.deleteSelectedOpenchannelAccountInteractions=function(e){const t=s.confirm().title("Are you sure want to delete the selected interactions?").htmlContent("<b>"+m.selectedOpenchannelAccountInteractions.length+" selected</b> will be deleted.").ariaLabel("delete interactions").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedOpenchannelAccountInteractions.forEach((function(e){h(e)})),m.selectedOpenchannelAccountInteractions=[]}))}}ry.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const iy=ry,sy=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html/dialog.html";function ly(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.openchannelAccountOpenchannelCannedAnswers=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.openchannelAccount.getAnswers(f.query,m).$promise}function g(e){c.cannedAnswer.delete({id:e.id}).$promise.then((function(){u().remove(f.openchannelAccountOpenchannelCannedAnswers.rows,{id:e.id}),f.openchannelAccountOpenchannelCannedAnswers.count-=1,f.openchannelAccountOpenchannelCannedAnswers.rows.length||p(),l.success({title:"OpenchannelCannedAnswer deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETopenchannelAccount"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETopenchannelAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.openchannelAccount={},f.openchannelAccountOpenchannelCannedAnswers={count:0,rows:[]},f.selectedOpenchannelAccountOpenchannelCannedAnswers=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,key,value,description",limit:10,page:1},f.init=function(e,t){f.openchannelAccount=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.OpenchannelAccountId=f.openchannelAccount.id,f.query.id=f.openchannelAccount.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the openchannelCannedAnswer?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("openchannelCannedAnswer #")+e.id||"openchannelCannedAnswer")+"</b> will be deleted.").ariaLabel("delete openchannelCannedAnswer").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getOpenchannelAccountOpenchannelCannedAnswers=p,f.createOrEditOpenchannelAccountOpenchannelCannedAnswer=function(e,t){i.show({controller:"CreateOrEditOpenchannelCannedAnswerDialogController",controllerAs:"vm",templateUrl:sy,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{openchannelAccount:f.openchannelAccount,openchannelCannedAnswer:t,openchannelCannedAnswers:f.openchannelAccountOpenchannelCannedAnswers.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedOpenchannelAccountOpenchannelCannedAnswers=function(){const e=angular.copy(f.selectedOpenchannelAccountOpenchannelCannedAnswers);return f.selectedOpenchannelAccountOpenchannelCannedAnswers=[],e},f.deleteOpenchannelAccountOpenchannelCannedAnswer=g,f.deleteSelectedOpenchannelAccountOpenchannelCannedAnswers=function(e){const t=i.confirm().title("Are you sure want to delete the selected openchannelCannedAnswers?").htmlContent("<b>"+f.selectedOpenchannelAccountOpenchannelCannedAnswers.length+" selected</b> will be deleted.").ariaLabel("delete openchannelCannedAnswers").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedOpenchannelAccountOpenchannelCannedAnswers.forEach((function(e){g(e)})),f.selectedOpenchannelAccountOpenchannelCannedAnswers=[]}))}}ly.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const cy=ly;function uy(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="OPENCHANNEL.EDIT_OPENCHANNELCANNEDANSWER",g.openchannelCannedAnswer=angular.copy(l),g.openchannelCannedAnswers=s,g.newOpenchannelCannedAnswer=!1,g.openchannelCannedAnswer||(g.openchannelCannedAnswer={},g.title="OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER",g.newOpenchannelCannedAnswer=!0),t.params.id&&(g.openchannelCannedAnswer.OpenchannelAccountId=t.params.id),g.addNewOpenchannelCannedAnswer=function(){g.errors=[],c.cannedAnswer.save(g.openchannelCannedAnswer).$promise.then((function(e){g.openchannelCannedAnswers.unshift(e.toJSON()),i.success({title:"OpenchannelCannedAnswer properly created",msg:g.openchannelCannedAnswer.name?g.openchannelCannedAnswer.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveOpenchannelCannedAnswer=function(){g.errors=[],c.cannedAnswer.update({id:g.openchannelCannedAnswer.id},g.openchannelCannedAnswer).$promise.then((function(e){const t=u().find(g.openchannelCannedAnswers,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"OpenchannelCannedAnswer properly saved!",msg:g.openchannelCannedAnswer.name?g.openchannelCannedAnswer.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteOpenchannelCannedAnswer=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The openchannelCannedAnswer will be deleted.").ariaLabel("Delete OpenchannelCannedAnswer").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cannedAnswer.delete({id:g.openchannelCannedAnswer.id}).$promise.then((function(){u().remove(g.openchannelCannedAnswers,{id:g.openchannelCannedAnswer.id}),i.success({title:"OpenchannelCannedAnswer properly deleted!",msg:(g.openchannelCannedAnswer.name||"openchannelCannedAnswer")+" has been deleted!"}),h(g.openchannelCannedAnswer)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}uy.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","openchannelCannedAnswers","openchannelCannedAnswer","api","Auth","license","setting","crudPermissions"];const dy=uy;function fy(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.dispositions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=l.openchannelAccount.getDispositions(f.query,m).$promise}function g(e){l.disposition.delete({id:e.id}).$promise.then((function(){p(),c.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.dispositions={count:0,rows:[]},f.selectedDispositions=[],f.crudPermissions,f.levels={first:"1st",second:"2nd",third:"3rd"},f.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},f.init=function(e,t){f.openchannelAccount=e||{},f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.OpenchannelAccountId=f.openchannelAccount.id,f.query.id=f.openchannelAccount.id,p()},f.deleteConfirm=function(e,t){const n=u().some(f.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){g(e)}))},f.success=m,f.getDispositions=p,f.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:{id:f.openchannelAccount.id,field:"OpenchannelAccountId",route:"openchannelAccount"},license:null,setting:null,crudPermissions:f.crudPermissions}}).then((function(e){e&&p()}))},f.deleteDisposition=g,f.exportSelectedDispositions=function(){const e=angular.copy(f.selectedDispositions);return f.selectedDispositions=[],e},f.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:f.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){f.selectedDispositions.forEach((function(e){g(e)})),f.selectedDispositions=[]}))},f.deselectDispositions=function(){f.selectedDispositions=[]},f.selectAllDispositions=function(){f.selectedDispositions=f.dispositions.rows}}fy.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","api","toasty","Auth"];const my=fy,py=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html/agentadd.html";function gy(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.openchannelAccount=d||e.params.openchannelAccount||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.agentadddialog=function(e,t){n.show({controller:"OpenchannelAccountagentaddController",controllerAs:"vm",templateUrl:py,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{openchannelAccount:e,openchannelAccounts:m.openchannelAccounts?m.openchannelAccounts.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.alert=l.info,m.gotoOpenchannelAccounts=function(){e.go("app.openchannel.openchannelAccounts",{},{reload:"app.openchannel.openchannelAccounts"})},m.saveOpenchannelAccount=function(){s.openchannelAccount.update({id:m.openchannelAccount.id},m.openchannelAccount).$promise.then((function(){l.success({title:"OpenchannelAccount updated!",msg:m.openchannelAccount.name?m.openchannelAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETopenchannelAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.lists,{id:e.resourceId})}));let n=null;if(m.openchannelAccount&&(n=u().find(m.lists,{id:Number(m.openchannelAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.lists,{id:n.id});e.canSelect=!1,t.push(e)}m.lists=t}))}else{const e=[];let t=null;m.openchannelAccount&&(t=u().find(m.lists,{id:Number(m.openchannelAccount.ListId)}));for(let n=0;n<m.lists.length;n++)t&&m.lists[n].id===t.id&&(m.lists[n].canSelect=!1,e.push(m.lists[n]));m.lists=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),s.cmContact.describe({id:m.openchannelAccount.ListId}).$promise.then((function(e){m.fields=[],e=u().values(e.toJSON());const t=["id","createdAt","updatedAt","deletedAt","scheduledat","ListId","CompanyId"];for(let n=0;n<e.length;n++)u().includes(t,e[n].columnName)||m.fields.push(e[n])})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_FIELDS",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}gy.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","openchannelAccount","userProfileSection"];const hy=gy,_y=n.p+"templates/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog.html";function by(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.openchannelAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="openchannelAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedOpenchannelAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.openchannel.openchannelAccounts.edit",{id:e.id,openchannelAccount:e,crudPermissions:b.crudPermissions})},b.interactionsgoto=function(e){n.go("app.openchannel.openchannelAccounts.edit",{id:e.id,tab:5})},b.agentadddialog=function(e,t){o.show({controller:"OpenchannelAccountagentaddController",controllerAs:"vm",templateUrl:py,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{openchannelAccount:e,openchannelAccounts:b.openchannelAccounts?b.openchannelAccounts.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("openchannelAccount")+"?").htmlContent("<b>"+(e.name||"openchannelAccount")+"</b> will be deleted.").ariaLabel("delete openchannelAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getOpenchannelAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.openchannelAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="OpenchannelAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditOpenchannelAccount=function(e,t){o.show({controller:"CreateOrEditOpenchannelAccountDialogController",controllerAs:"vm",templateUrl:_y,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{openchannelAccount:t,openchannelAccounts:b.openchannelAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteOpenchannelAccount=S,b.exportSelectedOpenchannelAccounts=function(){const e=angular.copy(b.selectedOpenchannelAccounts);return b.selectedOpenchannelAccounts=[],e},b.deleteSelectedOpenchannelAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected openchannelAccounts?").htmlContent("<b>"+b.selectedOpenchannelAccounts.length+" selected</b> will be deleted.").ariaLabel("delete OpenchannelAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedOpenchannelAccounts.forEach((function(e){S(e)})),b.selectedOpenchannelAccounts=[]}))},b.deselectOpenchannelAccounts=function(){b.selectedOpenchannelAccounts=[]},b.selectAllOpenchannelAccounts=function(){b.selectedOpenchannelAccounts=b.openchannelAccounts.rows},g.hasRole("admin")?f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.lists,{id:e.resourceId})}));let n=null;if(b.openchannelAccount&&(n=u().find(b.lists,{id:Number(b.openchannelAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.lists,{id:n.id});e.canSelect=!1,t.push(e)}b.lists=t}))}else{const e=[];let t=null;b.openchannelAccount&&(t=u().find(b.lists,{id:Number(b.openchannelAccount.ListId)}));for(let n=0;n<b.lists.length;n++)t&&b.lists[n].id===t.id&&(b.lists[n].canSelect=!1,e.push(b.lists[n]));b.lists=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.openchannelAccounts=e||{count:0,rows:[]}}function S(e){f.openchannelAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.openchannelAccounts.rows,{id:e.id}),b.openchannelAccounts.count-=1,b.openchannelAccounts.rows.length||b.getOpenchannelAccounts(),p.success({title:u().startCase("OpenchannelAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEopenchannelAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEopenchannelAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getOpenchannelAccounts())}))}by.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","openchannelAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const yy=by;function vy(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="OPENCHANNEL.EDIT_OPENCHANNELQUEUE",g.openchannelQueue=angular.copy(l),g.openchannelQueues=s,g.newOpenchannelQueue=!1,g.openchannelQueue||(g.openchannelQueue={strategy:"beepall",timeout:10},g.title="OPENCHANNEL.NEW_OPENCHANNELQUEUE",g.newOpenchannelQueue=!0),g.addNewOpenchannelQueue=function(){g.errors=[],c.openchannelQueue.save(g.openchannelQueue).$promise.then((function(e){g.openchannelQueues.unshift(e.toJSON()),i.success({title:"OpenchannelQueue properly created",msg:g.openchannelQueue.name?g.openchannelQueue.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveOpenchannelQueue=function(){g.errors=[],c.openchannelQueue.update({id:g.openchannelQueue.id},g.openchannelQueue).$promise.then((function(e){const t=u().find(g.openchannelQueues,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"OpenchannelQueue properly saved!",msg:g.openchannelQueue.name?g.openchannelQueue.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteOpenchannelQueue=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The openchannelQueue will be deleted.").ariaLabel("Delete OpenchannelQueue").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.openchannelQueue.delete({id:g.openchannelQueue.id}).$promise.then((function(){u().remove(g.openchannelQueues,{id:g.openchannelQueue.id}),i.success({title:"OpenchannelQueue properly deleted!",msg:(g.openchannelQueue.name||"openchannelQueue")+" has been deleted!"}),h(g.openchannelQueue)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.openchannelQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.openchannelQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}vy.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","openchannelQueues","openchannelQueue","api","Auth","license","setting","crudPermissions"];const Ay=vy;function Sy(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.openchannelQueue.getAgents({id:d.openchannelQueue.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserOpenchannelQueue?"penalty "+e.UserOpenchannelQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.openchannelQueue=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.openchannelQueue.removeAgents({id:d.openchannelQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.openchannelQueue.addAgents({id:d.openchannelQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}Sy.$inject=["$mdDialog","$q","toasty","api","openchannelQueue","openchannelQueues","realtime","$translate","Auth","crudPermissions"];const wy=Sy;function Ey(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.openchannelQueue.getTeams({id:l.openchannelQueue.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.openchannelQueue=o,l.crudPermissions=s,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(){const e=u().xorBy(l.startingSelectedItems,l.selectedItems,"id");l.pendingChanges=!u().isEmpty(e)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceBy(l.selectedItems,l.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.openchannelQueue.removeTeams({id:l.openchannelQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.openchannelQueue.addTeams({id:l.openchannelQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}Ey.$inject=["$mdDialog","$q","toasty","api","openchannelQueue","$translate","Auth","crudPermissions"];const Cy=Ey,Ty=n.p+"templates/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd.html";function Iy(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.openchannelQueue=u||e.params.openchannelQueue||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.teamadddialog=function(e,t){n.show({controller:"OpenchannelQueueteamaddController",controllerAs:"vm",templateUrl:Ty,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{openchannelQueue:e,openchannelQueues:f.openchannelQueues?f.openchannelQueues.rows:[],crudPermissions:f.crudPermissions}})},f.agentadddialog=function(e,t){n.show({controller:"OpenchannelQueueagentaddController",controllerAs:"vm",templateUrl:nb,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{openchannelQueue:e,openchannelQueues:f.openchannelQueues?f.openchannelQueues.rows:[],crudPermissions:f.crudPermissions,realtime:!1}})},f.alert=l.info,f.gotoOpenchannelQueues=function(){e.go("app.openchannel.openchannelQueues",{},{reload:"app.openchannel.openchannelQueues"})},f.saveOpenchannelQueue=function(){s.openchannelQueue.update({id:f.openchannelQueue.id},f.openchannelQueue).$promise.then((function(){l.success({title:"OpenchannelQueue updated!",msg:f.openchannelQueue.name?f.openchannelQueue.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETopenchannelQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}Iy.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","openchannelQueue","userProfileSection"];const ky=Iy;function Dy(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.openchannelQueues=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="openchannelQueues",b.listOrder="",b.listOrderAsc=null,b.selectedOpenchannelQueues=[],b.query={fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"openchannel",limit:10,page:1},b.arraystrategy=u().keyBy([{option:"Beepall",value:"'beepall'"},{option:"RR Memory",value:"'rrmemory'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.openchannel.openchannelQueues.edit",{id:e.id,openchannelQueue:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"OpenchannelQueueteamaddController",controllerAs:"vm",templateUrl:Ty,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{openchannelQueue:e,openchannelQueues:b.openchannelQueues?b.openchannelQueues.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"OpenchannelQueueagentaddController",controllerAs:"vm",templateUrl:nb,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{openchannelQueue:e,openchannelQueues:b.openchannelQueues?b.openchannelQueues.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("openchannelQueue")+"?").htmlContent("<b>"+(e.name||"openchannelQueue")+"</b> will be deleted.").ariaLabel("delete openchannelQueue").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:810}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.openchannel.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.openchannel.realtime.queues",{})},b.success=A,b.getOpenchannelQueues=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.openchannelQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="OpenchannelQueues",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditOpenchannelQueue=function(e,t){o.show({controller:"CreateOrEditOpenchannelQueueDialogController",controllerAs:"vm",templateUrl:tb,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{openchannelQueue:t,openchannelQueues:b.openchannelQueues.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteOpenchannelQueue=S,b.exportSelectedOpenchannelQueues=function(){const e=angular.copy(b.selectedOpenchannelQueues);return b.selectedOpenchannelQueues=[],e},b.deleteSelectedOpenchannelQueues=function(e){const t=o.confirm().title("Are you sure want to delete the selected openchannelQueues?").htmlContent("<b>"+b.selectedOpenchannelQueues.length+" selected</b> will be deleted.").ariaLabel("delete OpenchannelQueues").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedOpenchannelQueues.forEach((function(e){S(e)})),b.selectedOpenchannelQueues=[]}))},b.deselectOpenchannelQueues=function(){b.selectedOpenchannelQueues=[]},b.selectAllOpenchannelQueues=function(){b.selectedOpenchannelQueues=b.openchannelQueues.rows};let y=!0,v=1;function A(e){b.openchannelQueues=e||{count:0,rows:[]}}function S(e){f.openchannelQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.openchannelQueues.rows,{id:e.id}),b.openchannelQueues.count-=1,b.openchannelQueues.rows.length||b.getOpenchannelQueues(),p.success({title:u().startCase("OpenchannelQueue")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEopenchannelQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEopenchannelQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getOpenchannelQueues())}))}Dy.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","openchannelQueues","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const xy=Dy;function My(e,t){e.state("app.openchannel",{abstract:!0,url:"/openchannel"}).state("app.openchannel.openchannelQueues",{url:"/openchannelQueues",views:{"content@app":{templateUrl:cb,controller:"OpenchannelQueuesController as vm"}},resolve:{openchannelQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("openchannelQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"openchannel",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"OpenchannelQueues",fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"openchannel",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:801})}]},authenticate:!0,permissionId:801,bodyClass:"openchannel"}).state("app.openchannel.openchannelQueues.edit",{url:"/:id?tab",params:{openchannelQueue:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:ub,controller:"OpenchannelQueueController as vm"}},resolve:{openchannelQueue:["apiResolver","$stateParams",function(e,t){return e.resolve("openchannelQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:801})}]},authenticate:!0,permissionId:801,bodyClass:"openchannel"}).state("app.openchannel.openchannelAccounts",{url:"/openchannelAccounts",views:{"content@app":{templateUrl:db,controller:"OpenchannelAccountsController as vm"}},resolve:{openchannelAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("openchannelAccount@get",{fields:"createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"OpenchannelAccounts",fields:"createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:802})}]},authenticate:!0,permissionId:802,bodyClass:"openchannel"}).state("app.openchannel.openchannelAccounts.edit",{url:"/:id?tab",params:{openchannelAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:fb,controller:"OpenchannelAccountController as vm"}},resolve:{openchannelAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("openchannelAccount@get",{fields:"createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:802})}]},authenticate:!0,permissionId:802,bodyClass:"openchannel"}),t.addPart("app/main/apps/openchannel")}My.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.openchannel",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.openchannel.realtime"]).config(My).controller("CreateOrEditOpenchannelAccountDialogController",pb).controller("OpenchannelAccountActionsController",xb).controller("OpenchannelAccountagentaddController",Pb).controller("EditOpenchannelAccountAppagentDialogController",Rb).controller("EditOpenchannelAccountAppamazonlexDialogController",Lb).controller("EditOpenchannelAccountAppautoreplyDialogController",Ub).controller("EditOpenchannelAccountAppcloseDialogController",Fb).controller("EditOpenchannelAccountAppdialogflowv2DialogController",Bb).controller("EditOpenchannelAccountAppdialogflowDialogController",Yb).controller("EditOpenchannelAccountAppgotoifDialogController",Vb).controller("EditOpenchannelAccountAppgotopDialogController",Qb).controller("EditOpenchannelAccountAppintervalDialogController",Kb).controller("EditOpenchannelAccountAppnoopDialogController",Xb).controller("EditOpenchannelAccountAppqueueDialogController",ey).controller("EditOpenchannelAccountAppsystemDialogController",ny).controller("EditOpenchannelAccountApptagDialogController",oy).controller("OpenchannelAccountInteractionsController",iy).controller("OpenchannelAccountOpenchannelCannedAnswersController",cy).controller("CreateOrEditOpenchannelCannedAnswerDialogController",dy).controller("OpenchannelAccountDispositionsController",my).controller("OpenchannelAccountController",hy).controller("OpenchannelAccountsController",yy).controller("CreateOrEditOpenchannelQueueDialogController",Ay).controller("OpenchannelQueueagentaddController",wy).controller("OpenchannelQueueteamaddController",Cy).controller("OpenchannelQueueController",ky).controller("OpenchannelQueuesController",xy);const Py=n.p+"templates/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues.html",Oy=n.p+"templates/main/apps/fax/views/faxQueues/edit/view.html/view.html",Ry=n.p+"templates/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts.html",Ny=n.p+"templates/main/apps/fax/views/faxAccounts/edit/view.html/view.html",Ly=n.p+"templates/main/apps/fax/views/realtime/realtime.html/realtime.html",$y=n.p+"templates/main/apps/fax/views/realtime/agents/view.html/view.html",Uy=n.p+"templates/main/apps/fax/views/realtime/trunks/view.html/view.html",jy=n.p+"templates/main/apps/fax/views/realtime/queues/view.html/view.html",Fy=n.p+"templates/main/apps/fax/views/realtime/accounts/view.html/view.html";function qy(e,t,n,a,r,i,s,l,c,d,f,m,p){const g=this;function h(){u().forIn(g.faxAccounts,(function(e,t){g.rpcFaxAccounts[t]&&u().merge(e,g.rpcFaxAccounts[t])})),u().forIn(g.faxAccounts,(function(e,t){const n={id:t,sort:"-id",direction:"in",limit:1,offset:0,$gte:"createdAt,"+o()().startOf("day").format("YYYY-MM-DD HH:mm:ss"),fields:"id,createdAt"};i.faxAccount.getMessages(n).$promise.then((function(t){return t&&(e.in=t.count||0,e.lastIn=t.rows&&t.rows.length?t.rows[0].createdAt:void 0),n.direction="out",i.faxAccount.getMessages(n).$promise})).then((function(t){t&&(e.out=t.count||0,e.lastOut=t.rows&&t.rows.length?t.rows[0].createdAt:void 0)})).catch((function(e){console.log(e)}))}))}function _(e){if(g.faxAccounts=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}h()}g.currentUser=p.getCurrentUser(),g.count=c&&c.count?c.count:0,g.faxAccounts=c?u().keyBy(c.rows?c.rows:[],"id"):{},g.rpcFaxAccounts=d?u().keyBy(d.rows?d.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),g.query={sort:"-name",limit:10,page:1},g.success=_,g.$onInit=h,g.getFaxAccounts=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=i.faxAccount.get(g.query,_).$promise:(g.query.id=g.userProfile.id,g.query.section="FaxAccounts",g.promise=i.userProfile.getResources(g.query,_).$promise)},g.onSave=function(e){g.faxAccounts[e.id]&&u().merge(g.faxAccounts[e.id],e)},g.onFaxMessageSave=function(e){g.faxAccounts[e.FaxAccountId]&&("in"==e.direction?(g.faxAccounts[e.FaxAccountId].in+=1,g.faxAccounts[e.FaxAccountId].lastIn=e.createdAt):(g.faxAccounts[e.FaxAccountId].out+=1,g.faxAccounts[e.FaxAccountId].lastOut=e.createdAt))},g.goToFaxAccount=function(e,t){r.go("app.fax.faxAccounts.edit",{id:t.id,faxAccount:t})},g.order=[],u().forIn(g.faxAccounts,(function(e){g.order.push(e.id)})),s.on("faxAccount:save",g.onSave),s.on("faxAccount:update",g.onSave),s.on("faxMessage:save",g.onFaxMessageSave),e.$on("$destroy",(function(){s.removeAllListeners("faxAccount:save"),s.removeAllListeners("faxAccount:update"),s.removeAllListeners("faxMessage:save")}))}qy.$inject=["$scope","$timeout","$mdDialog","$document","$state","api","socket","toasty","faxAccounts","rpcFaxAccounts","userProfile","userProfileSection","Auth"];const Yy=qy;function Hy(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"fax",direction:"inbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}Hy.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const By=Hy,Gy=n.p+"templates/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd.html",Vy=n.p+"templates/main/apps/fax/views/faxQueues/create/dialog.html/dialog.html";function Wy(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.faxQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].FaxQueueId].paused++,g.queues[e[t].rows[n].FaxQueueId].loggedInDb++,g.queues[e[t].rows[n].FaxQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].FaxQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"inbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"fax",type:"inbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.faxQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="FaxQueues",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditFaxQueue=function(e,t){n.show({controller:"CreateOrEditFaxQueueDialogController",controllerAs:"vm",templateUrl:Vy,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{faxQueue:t,faxQueues:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.agentAdd=function(e,t){n.show({controller:"FaxQueueagentaddController",controllerAs:"vm",templateUrl:Gy,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{faxQueue:t,faxQueues:g.queues?g.queues.rows:[],realtime:!1,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.faxQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&u().merge(g.queues[e.id],u().pick(e,h))},g.onSaveMember=function(e){g.queues[e.FaxQueueId]&&g.queues[e.FaxQueueId].loggedInDb++},g.onRemoveMember=function(e){g.queues[e.FaxQueueId]&&g.queues[e.FaxQueueId].loggedInDb--},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.FaxQueueId]&&(g.queues[e.FaxQueueId].loggedInDb+=1,g.queues[e.FaxQueueId].agents[e.UserId]=e.FaxQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.FaxQueueId]&&g.queues[e.FaxQueueId].loggedInDb>0&&(g.queues[e.FaxQueueId].loggedInDb-=1,delete g.queues[e.FaxQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.on("fax_queue:save",g.onSave),c.on("userFaxQueue:save",g.onSaveMember),c.on("userFaxQueue:remove",g.onRemoveMember),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("fax_queue:save"),c.removeAllListeners("userFaxQueue:remove"),c.removeAllListeners("userFaxQueue:save"),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}Wy.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const Qy=Wy;const zy=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function Ky(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.fax.realtime.agents":a.selectedTab=0;break;case"app.fax.realtime.trunks":a.selectedTab=1;break;case"app.fax.realtime.queues":a.selectedTab=2;break;case"app.fax.realtime.accounts":a.selectedTab=3;break;default:a.selectedTab=0,t.go("app.fax.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.fax.realtime.agents");break;case 1:t.go("app.fax.realtime.trunks");break;case 2:t.go("app.fax.realtime.queues");break;case 3:t.go("app.fax.realtime.accounts");break;default:t.go("app.fax.realtime.agents")}}))}Ky.$inject=["$scope","$state","socket"];const Jy=Ky;function Xy(e,t,n,a,o,r,i,s,l,c,d,f){const m=this,p=["status","stateRegistry","registry","host","port","internal","state","status"];function g(){let e;for(let t=0;t<m.trunks.length;t+=1)e=u().findIndex(m.rpcTrunks,["id",m.trunks[t].id]),e>=0&&u().merge(m.trunks[t],u().pick(m.rpcTrunks[e],p))}function h(e,t,n){t>=0&&u().merge(e[t],u().pick(n,p))}function _(e){m.count=e.count,m.trunks=e&&e.rows?e.rows:[],g()}m.currentUser=f.getCurrentUser(),m.count=a.count,m.trunks=a?a.rows:[],m.rpcTrunks=o&&o.rows?o.rows:[],m.query={fields:"id,name",active:!0,sort:"-updatedAt",limit:10,page:1},m.statusClass=s.status,m.stateClass=s.state,m.userProfile=c,m.userProfileSection=d&&1==d.count?d.rows[0]:null,m.crudPermissions=f.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.success=_,m.$onInit=g,m.showInfo=function(e){n.show(n.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},m.getTrunks=function(){m.query.offset=(m.query.page-1)*m.query.limit,f.hasRole("admin")?m.promise=r.trunk.get(m.query,_).$promise:(m.query.id=m.userProfile.id,m.query.section="Trunks",m.promise=r.userProfile.getResources(m.query,_).$promise)},m.goToTrunk=function(e,t){l.go("app.tools.trunks.edit",{id:t.id})},m.onSave=function(e){const t=u().findIndex(m.trunks,["id",e.id]),n=u().findIndex(m.rpcTrunks,["id",e.id]);h(m.trunks,t,e),h(m.rpcTrunks,n,e)},i.on("trunk:save",m.onSave),e.$on("$destroy",(function(){i.removeAllListeners("trunk:save")}))}Xy.$inject=["$scope","$timeout","$mdDialog","trunks","rpcTrunks","api","socket","helperClasses","$state","userProfile","userProfileSection","Auth"];const Zy=Xy;function ev(e){e.state("app.fax.realtime",{url:"/realtime",views:{"content@app":{templateUrl:Ly,controller:"FaxRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:910})}]},authenticate:!0,permissionId:910}).state("app.fax.realtime.agents",{url:"/agents",controller:"AgentsFaxRealtimeController as vm",templateUrl:$y,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:910}).state("app.fax.realtime.trunks",{url:"/trunks",controller:"TrunksFaxRealtimeController as vm",templateUrl:Uy,resolve:{trunks:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("trunk@get",{fields:"id,name",active:!0,sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Trunks",fields:"id,name",active:!0,sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1011})}],rpcTrunks:["apiResolver",function(e){return e.resolve("rpc@getTrunks")}]},authenticate:!0,permissionId:910}).state("app.fax.realtime.queues",{url:"/queues",controller:"QueuesFaxRealtimeController as vm",templateUrl:jy,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("faxQueue@get",{type:"inbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"FaxQueues",channel:"fax",type:"inbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:901})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getFaxQueues")}]},authenticate:!0,permissionId:910}).state("app.fax.realtime.accounts",{url:"/accounts",controller:"FaxAccountsRealtimeController as vm",templateUrl:Fy,resolve:{faxAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("faxAccount@get",{sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"FaxAccounts",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:902})}],rpcFaxAccounts:["apiResolver",function(e){return e.resolve("rpc@getFaxAccounts")}]},authenticate:!0,permissionId:910})}function tv(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="FAX.EDIT_FAXACCOUNT",g.faxAccount=angular.copy(l),g.faxAccounts=s,g.newFaxAccount=!1,g.faxAccount||(g.faxAccount={waitForTheAssignedAgent:10,notificationSound:!0,queueTransferTimeout:300,agentTransferTimeout:300},g.title="FAX.NEW_FAXACCOUNT",g.newFaxAccount=!0),t.params.id&&(g.faxAccount.FaxAccountId=t.params.id),g.addNewFaxAccount=function(){g.errors=[],c.faxAccount.addAccountApplications(g.faxAccount).$promise.then((function(e){g.faxAccounts.unshift(e.toJSON()),i.success({title:"FaxAccount properly created",msg:g.faxAccount.name?g.faxAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.faxAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.faxAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveFaxAccount=function(){g.errors=[],c.faxAccount.updateAccountApplications(g.faxAccount).$promise.then((function(e){const t=u().find(g.faxAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"FaxAccount properly saved!",msg:g.faxAccount.name?g.faxAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.faxAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.faxAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteFaxAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The faxAccount will be deleted.").ariaLabel("Delete FaxAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.faxAccount.delete({id:g.faxAccount.id}).$promise.then((function(){u().remove(g.faxAccounts,{id:g.faxAccount.id}),i.success({title:"FaxAccount properly deleted!",msg:(g.faxAccount.name||"faxAccount")+" has been deleted!"}),h(g.faxAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.faxAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.faxAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.trunks=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.trunks=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.trunks,{id:e.resourceId})}));let n=null;if(g.faxAccount&&(n=u().find(g.trunks,{id:Number(g.faxAccount.TrunkId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.trunks,{id:n.id});e.canSelect=!1,t.push(e)}g.trunks=t}))}else{const e=[];let t=null;g.faxAccount&&(t=u().find(g.trunks,{id:Number(g.faxAccount.TrunkId)}));for(let n=0;n<g.trunks.length;n++)t&&g.trunks[n].id===t.id&&(g.trunks[n].canSelect=!1,e.push(g.trunks[n]));g.trunks=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.hasRole("admin")?c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.lists,{id:e.resourceId})}));let n=null;if(g.faxAccount&&(n=u().find(g.lists,{id:Number(g.faxAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.lists,{id:n.id});e.canSelect=!1,t.push(e)}g.lists=t}))}else{const e=[];let t=null;g.faxAccount&&(t=u().find(g.lists,{id:Number(g.faxAccount.ListId)}));for(let n=0;n<g.lists.length;n++)t&&g.lists[n].id===t.id&&(g.lists[n].canSelect=!1,e.push(g.lists[n]));g.lists=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}))}ev.$inject=["$stateProvider"],angular.module("app.fax.realtime",[]).config(ev).controller("FaxAccountsRealtimeController",Yy).controller("AgentsFaxRealtimeController",By).controller("QueuesFaxRealtimeController",Qy).factory("helperClasses",zy).controller("FaxRealtimeController",Jy).controller("TrunksFaxRealtimeController",Zy),tv.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","faxAccounts","faxAccount","api","Auth","license","setting","crudPermissions"];const nv=tv,av=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog.html",ov=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog.html",rv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog.html",iv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog.html",sv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog.html",lv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html/dialog.html",cv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog.html",uv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog.html",dv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog.html";mv.$inject=["api","$mdDialog","$document","toasty","Auth"];const fv={agent:av,close:ov,gotoif:rv,gotop:iv,interval:sv,noop:lv,queue:cv,system:uv,tag:dv};function mv(e,t,n,a,o){const r=this;function i(e,o){if(r.faxAccountApps.rows.length){const i=r.faxAccountApps.rows[o]?r.faxAccountApps.rows[o]:r.faxAccountApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditFaxAccountApp${l}DialogController`,controllerAs:"vm",templateUrl:fv[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{faxAccountApp:i,faxAccount:r.faxAccount,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.faxAccountApps.rows[o]=e:r.faxAccountApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){let t=1,n=[];r.faxAccountApps.rows=r.faxAccountApps.rows.filter((e=>e.appdata));for(let e=0;e<r.faxAccountApps.rows.length;e++){const a=r.faxAccountApps.rows[e],o=[],i=[];a.intervals="*,*,*,*"!==a.interval?[a.interval]:a.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:a.IntervalId}),"interval"):[],a.context=r.faxAccount.context,a.exten=r.faxAccount.exten,a.type&&(a.type=a.type.toLowerCase()),a.priority=o.length?u().last(o).priority+1:t,t=(i.length?u().last(i).priority:a.priority)+1,n=u().concat(n,o,[a],i)}e.faxAccount.addApplications({id:r.faxAccount.id},u().sortBy(n,"priority")).$promise.then((function(e){r.faxAccountApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.faxAccountApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.faxAccount={},r.faxAccountApps={count:0,rows:[]},r.selectedFaxAccountApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",types:["always","custom","list"],fields:[],isApp:!1},{app:"noop",appType:"noop",type:"noop",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,fields:[{title:"Value",name:"value",type:"text",param:0}]},{app:"system",appType:"system",type:"system",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,extraApi:[{name:"variables",field:{name:"variable",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],fields:[{title:"Command",name:"command",type:"text",required:!0,param:0},{title:"Variable",name:"variable",type:"apiselect",values:"variables",value:"variable.name",option:"variable.name",defaultValues:[{value:"''",option:"None"}],defaultValue:"''",param:1}]},{app:"gotop",appType:"gotop",type:"goto",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Priority",name:"priority",type:"number",required:!0,min:0,param:0}]},{app:"gotoif",appType:"gotoif",type:"gotoif",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Condition",name:"condition",type:"text",required:!0,param:0},{title:"truepriority",name:"truepriority",type:"number",min:1,required:!0,param:1},{title:"falsepriority",name:"falsepriority",type:"number",min:1,required:!0,param:2}]},{app:"queue",appType:"queue",foreignKey:"FaxQueueId",type:"queue",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"queues",field:{name:"queue",key:"name"},route:"faxQueue",filters:{fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:901}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",defaultValue:300,required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,defaultValue:300,required:!0,param:1}]},{app:"agent",appType:"agent",type:"agent",foreignKey:"UserId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"agents",field:{name:"agent",key:"name"},route:"user",filters:{fields:"id,name",sort:"name",role:"agent",nolimit:!0},permissions:{section:202}}],fields:[{title:"Agent",name:"agent",type:"apiselect",values:"agents",value:"agent.name",option:"agent.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:30,param:1}]},{app:"close",appType:"close",type:"close",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Disposition",name:"disposition",type:"text",required:!0,param:0}]},{app:"tag",appType:"tag",type:"tag",foreignKey:"TagId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"tags",field:{name:"tag",key:"name"},route:"tag",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1008}}],fields:[{title:"Tag",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",required:!0,param:0}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:"opt1"},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(){s()}},r.init=function(e,t){r.faxAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.id=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getFaxAccountApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.faxAccountApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getFaxAccountApps=function(){r.promise=e.faxAccount.getApplications(r.query,l).$promise},r.editFaxAccountApp=i,r.editInterval=function(e,a){if(r.faxAccountApps.rows.length){const o=r.faxAccountApps.rows[a]?r.faxAccountApps.rows[a]:r.faxAccountApps.rows[0];t.show({controller:"EditFaxAccountAppintervalDialogController",controllerAs:"vm",templateUrl:sv,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteFaxAccountApp=function(e){u().remove(r.faxAccountApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedFaxAccountApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedFaxAccountApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedFaxAccountApps.forEach((function(e){u().remove(r.faxAccountApps.rows,{id:e.id})})),r.selectedFaxAccountApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const pv=mv;function gv(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.faxAccount.getAgents({id:d.faxAccount.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserFaxAccount?"penalty "+e.UserFaxAccount.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.faxAccount=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.faxAccount.removeAgents({id:d.faxAccount.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.faxAccount.addAgents({id:d.faxAccount.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}gv.$inject=["$mdDialog","$q","toasty","api","faxAccount","faxAccounts","realtime","$translate","Auth","crudPermissions"];const hv=gv;function _v(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.agent=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agent.appdata)switch(l.agent.appType?l.agent.appType.toLowerCase():l.agent.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agent.appdata.split(",");l.agent.key=e[0],l.agent.language=e[1],l.agent.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agent.appdata.split(",");l.agent.projectId=e[0],l.agent.clientEmail=e[1],l.agent.privateKey=e[2],l.agent.language=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agent.appdata.split(",");l.agent.accesskeyid=e[0],l.agent.secretaccesskey=e[1],l.agent.lexregion=e[2],l.agent.botname=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agent.appdata.split(",");l.agent.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.text=e.slice(1,e.length).join(",")}break;case"message":l.agent.text=l.agent.appdata;break;case"set":l.agent.name=l.agent.appdata.split("=")[0],l.agent.value=l.agent.appdata.split("=")[1];break;case"agi":l.agent.project=l.agent.appdata;break;default:{const e=l.agent.appdata.split(",");l.agent.agent=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.agent.timeout=30;function c(t){e.hide(t)}l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outbounddial"===l.agent.appType.toLowerCase()&&(l.agent.prefix=l.agent.phone?l.agent.phone.split("$")[0]:void 0,l.agent.callerId=l.agent.callerID?"CALLERID(all)="+l.agent.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outboundDial"===l.agent.appType&&(l.agent.phone=o.cutdigits?(l.agent.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agent.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agent.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agent.options+="U(xcally-mixmonitor-context)"):l.agent.options=l.agent.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.agents,{name:l.agent.agent});t&&(l.agent.UserId=t.id);if(l.agent.appType&&"custom"===l.agent.appType);else switch((l.agent.app||l.agent.appType).toLowerCase()){case"set":l.agent.appdata=l.agent.name+"="+l.agent.value;break;case"custom":break;default:e[0]=l.agent.agent,e[1]=l.agent.timeout,l.agent.appdata=e.join(",")}c(l.agent)},l.closeDialog=c,i.hasRole("admin")?r.user.get({fields:"id,name",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){l.agents=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){l.agents=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.agents,{id:e.resourceId})}));let n=null;if(l.agent&&(n=u().find(l.agents,{name:l.agent.agent})),n&&!u().some(t,["id",n.id])){const e=u().find(l.agents,{id:n.id});e.canSelect=!1,t.push(e)}l.agents=t}))}else{const e=[];let t=null;l.agent&&(t=u().find(l.agents,{name:l.agent.agent}));for(let n=0;n<l.agents.length;n++)t&&l.agents[n].id===t.id&&(l.agents[n].canSelect=!1,e.push(l.agents[n]));l.agents=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}_v.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const bv=_v;function yv(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.close=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.close.appdata)switch(l.close.appType?l.close.appType.toLowerCase():l.close.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.close.appdata.split(",");l.close.key=e[0],l.close.language=e[1],l.close.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.close.appdata.split(",");l.close.projectId=e[0],l.close.clientEmail=e[1],l.close.privateKey=e[2],l.close.language=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.close.appdata.split(",");l.close.accesskeyid=e[0],l.close.secretaccesskey=e[1],l.close.lexregion=e[2],l.close.botname=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.close.appdata.split(",");l.close.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.close.text=e.slice(1,e.length).join(",")}break;case"message":l.close.text=l.close.appdata;break;case"set":l.close.name=l.close.appdata.split("=")[0],l.close.value=l.close.appdata.split("=")[1];break;case"agi":l.close.project=l.close.appdata;break;default:{const e=l.close.appdata.split(",");l.close.disposition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outbounddial"===l.close.appType.toLowerCase()&&(l.close.prefix=l.close.phone?l.close.phone.split("$")[0]:void 0,l.close.callerId=l.close.callerID?"CALLERID(all)="+l.close.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outboundDial"===l.close.appType&&(l.close.phone=o.cutdigits?(l.close.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.close.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.close.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.close.options+="U(xcally-mixmonitor-context)"):l.close.options=l.close.options.replace("U(xcally-mixmonitor-context)",""));if(l.close.appType&&"custom"===l.close.appType);else switch((l.close.app||l.close.appType).toLowerCase()){case"set":l.close.appdata=l.close.name+"="+l.close.value;break;case"custom":break;default:e[0]=l.close.disposition,l.close.appdata=e.join(",")}c(l.close)},l.closeDialog=c}yv.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const vv=yv;function Av(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotoif=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotoif.appdata)switch(l.gotoif.appType?l.gotoif.appType.toLowerCase():l.gotoif.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotoif.appdata.split(",");l.gotoif.key=e[0],l.gotoif.language=e[1],l.gotoif.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotoif.appdata.split(",");l.gotoif.projectId=e[0],l.gotoif.clientEmail=e[1],l.gotoif.privateKey=e[2],l.gotoif.language=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotoif.appdata.split(",");l.gotoif.accesskeyid=e[0],l.gotoif.secretaccesskey=e[1],l.gotoif.lexregion=e[2],l.gotoif.botname=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotoif.appdata.split(",");l.gotoif.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.text=e.slice(1,e.length).join(",")}break;case"message":l.gotoif.text=l.gotoif.appdata;break;case"set":l.gotoif.name=l.gotoif.appdata.split("=")[0],l.gotoif.value=l.gotoif.appdata.split("=")[1];break;case"agi":l.gotoif.project=l.gotoif.appdata;break;default:{const e=l.gotoif.appdata.split(",");l.gotoif.condition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.truepriority=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotoif.falsepriority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outbounddial"===l.gotoif.appType.toLowerCase()&&(l.gotoif.prefix=l.gotoif.phone?l.gotoif.phone.split("$")[0]:void 0,l.gotoif.callerId=l.gotoif.callerID?"CALLERID(all)="+l.gotoif.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outboundDial"===l.gotoif.appType&&(l.gotoif.phone=o.cutdigits?(l.gotoif.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotoif.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotoif.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotoif.options+="U(xcally-mixmonitor-context)"):l.gotoif.options=l.gotoif.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotoif.appType&&"custom"===l.gotoif.appType);else switch((l.gotoif.app||l.gotoif.appType).toLowerCase()){case"set":l.gotoif.appdata=l.gotoif.name+"="+l.gotoif.value;break;case"custom":break;default:e[0]=l.gotoif.condition,e[1]=l.gotoif.truepriority,e[2]=l.gotoif.falsepriority,l.gotoif.appdata=e.join(",")}c(l.gotoif)},l.closeDialog=c}Av.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const Sv=Av;function wv(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotop.appdata)switch(l.gotop.appType?l.gotop.appType.toLowerCase():l.gotop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotop.appdata.split(",");l.gotop.key=e[0],l.gotop.language=e[1],l.gotop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotop.appdata.split(",");l.gotop.projectId=e[0],l.gotop.clientEmail=e[1],l.gotop.privateKey=e[2],l.gotop.language=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotop.appdata.split(",");l.gotop.accesskeyid=e[0],l.gotop.secretaccesskey=e[1],l.gotop.lexregion=e[2],l.gotop.botname=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotop.appdata.split(",");l.gotop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotop.text=e.slice(1,e.length).join(",")}break;case"message":l.gotop.text=l.gotop.appdata;break;case"set":l.gotop.name=l.gotop.appdata.split("=")[0],l.gotop.value=l.gotop.appdata.split("=")[1];break;case"agi":l.gotop.project=l.gotop.appdata;break;default:{const e=l.gotop.appdata.split(",");l.gotop.priority=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outbounddial"===l.gotop.appType.toLowerCase()&&(l.gotop.prefix=l.gotop.phone?l.gotop.phone.split("$")[0]:void 0,l.gotop.callerId=l.gotop.callerID?"CALLERID(all)="+l.gotop.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outboundDial"===l.gotop.appType&&(l.gotop.phone=o.cutdigits?(l.gotop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotop.options+="U(xcally-mixmonitor-context)"):l.gotop.options=l.gotop.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotop.appType&&"custom"===l.gotop.appType);else switch((l.gotop.app||l.gotop.appType).toLowerCase()){case"set":l.gotop.appdata=l.gotop.name+"="+l.gotop.value;break;case"custom":break;default:e[0]=l.gotop.priority,l.gotop.appdata=e.join(",")}c(l.gotop)},l.closeDialog=c}wv.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const Ev=wv;function Cv(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}Cv.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const Tv=Cv;function Iv(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.noop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.noop.appdata)switch(l.noop.appType?l.noop.appType.toLowerCase():l.noop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.noop.appdata.split(",");l.noop.key=e[0],l.noop.language=e[1],l.noop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.noop.appdata.split(",");l.noop.projectId=e[0],l.noop.clientEmail=e[1],l.noop.privateKey=e[2],l.noop.language=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.noop.appdata.split(",");l.noop.accesskeyid=e[0],l.noop.secretaccesskey=e[1],l.noop.lexregion=e[2],l.noop.botname=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.noop.appdata.split(",");l.noop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.noop.text=e.slice(1,e.length).join(",")}break;case"message":l.noop.text=l.noop.appdata;break;case"set":l.noop.name=l.noop.appdata.split("=")[0],l.noop.value=l.noop.appdata.split("=")[1];break;case"agi":l.noop.project=l.noop.appdata;break;default:{const e=l.noop.appdata.split(",");l.noop.value=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outbounddial"===l.noop.appType.toLowerCase()&&(l.noop.prefix=l.noop.phone?l.noop.phone.split("$")[0]:void 0,l.noop.callerId=l.noop.callerID?"CALLERID(all)="+l.noop.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outboundDial"===l.noop.appType&&(l.noop.phone=o.cutdigits?(l.noop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.noop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.noop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.noop.options+="U(xcally-mixmonitor-context)"):l.noop.options=l.noop.options.replace("U(xcally-mixmonitor-context)",""));if(l.noop.appType&&"custom"===l.noop.appType);else switch((l.noop.app||l.noop.appType).toLowerCase()){case"set":l.noop.appdata=l.noop.name+"="+l.noop.value;break;case"custom":break;default:e[0]=l.noop.value,l.noop.appdata=e.join(",")}c(l.noop)},l.closeDialog=c}Iv.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const kv=Iv;function Dv(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.text=e.slice(1,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.queue.queue=300,l.queue.timeout=300;function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.queues,{name:l.queue.queue});t&&(l.queue[u().capitalize("fax")+"QueueId"]=t.id);if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.timeout,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.faxQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.faxQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:901}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Dv.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const xv=Dv;function Mv(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.system=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.system.appdata)switch(l.system.appType?l.system.appType.toLowerCase():l.system.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.system.appdata.split(",");l.system.key=e[0],l.system.language=e[1],l.system.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.system.appdata.split(",");l.system.projectId=e[0],l.system.clientEmail=e[1],l.system.privateKey=e[2],l.system.language=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.system.appdata.split(",");l.system.accesskeyid=e[0],l.system.secretaccesskey=e[1],l.system.lexregion=e[2],l.system.botname=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.system.appdata.split(",");l.system.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.text=e.slice(1,e.length).join(",")}break;case"message":l.system.text=l.system.appdata;break;case"set":l.system.name=l.system.appdata.split("=")[0],l.system.value=l.system.appdata.split("=")[1];break;case"agi":l.system.project=l.system.appdata;break;default:{const e=l.system.appdata.split(",");l.system.command=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.variable=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.system.variable="";function c(t){e.hide(t)}l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outbounddial"===l.system.appType.toLowerCase()&&(l.system.prefix=l.system.phone?l.system.phone.split("$")[0]:void 0,l.system.callerId=l.system.callerID?"CALLERID(all)="+l.system.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outboundDial"===l.system.appType&&(l.system.phone=o.cutdigits?(l.system.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.system.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.system.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.system.options+="U(xcally-mixmonitor-context)"):l.system.options=l.system.options.replace("U(xcally-mixmonitor-context)",""));if(l.system.appType&&"custom"===l.system.appType);else switch((l.system.app||l.system.appType).toLowerCase()){case"set":l.system.appdata=l.system.name+"="+l.system.value;break;case"custom":break;default:e[0]=l.system.command,e[1]=l.system.variable,l.system.appdata=e.join(",")}c(l.system)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.system&&(n=u().find(l.variables,{name:l.system.variable})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.system&&(t=u().find(l.variables,{name:l.system.variable}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Mv.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const Pv=Mv;function Ov(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="FAX.EDIT_"+(a.appType||a.app).toUpperCase(),l.tag=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.tag.appdata)switch(l.tag.appType?l.tag.appType.toLowerCase():l.tag.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.tag.appdata.split(",");l.tag.key=e[0],l.tag.language=e[1],l.tag.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.tag.appdata.split(",");l.tag.projectId=e[0],l.tag.clientEmail=e[1],l.tag.privateKey=e[2],l.tag.language=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.tag.appdata.split(",");l.tag.accesskeyid=e[0],l.tag.secretaccesskey=e[1],l.tag.lexregion=e[2],l.tag.botname=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.tag.appdata.split(",");l.tag.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.tag.text=e.slice(1,e.length).join(",")}break;case"message":l.tag.text=l.tag.appdata;break;case"set":l.tag.name=l.tag.appdata.split("=")[0],l.tag.value=l.tag.appdata.split("=")[1];break;case"agi":l.tag.project=l.tag.appdata;break;default:{const e=l.tag.appdata.split(",");l.tag.tag=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outbounddial"===l.tag.appType.toLowerCase()&&(l.tag.prefix=l.tag.phone?l.tag.phone.split("$")[0]:void 0,l.tag.callerId=l.tag.callerID?"CALLERID(all)="+l.tag.callerID:void 0),l.saveFaxAccountApp=function(){l.errors=[];const e=[];l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outboundDial"===l.tag.appType&&(l.tag.phone=o.cutdigits?(l.tag.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.tag.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.tag.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.tag.options+="U(xcally-mixmonitor-context)"):l.tag.options=l.tag.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.tags,{name:l.tag.tag});t&&(l.tag.TagId=t.id);if(l.tag.appType&&"custom"===l.tag.appType);else switch((l.tag.app||l.tag.appType).toLowerCase()){case"set":l.tag.appdata=l.tag.name+"="+l.tag.value;break;case"custom":break;default:e[0]=l.tag.tag,l.tag.appdata=e.join(",")}c(l.tag)},l.closeDialog=c,i.hasRole("admin")?r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1008}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.tags,{id:e.resourceId})}));let n=null;if(l.tag&&(n=u().find(l.tags,{name:l.tag.tag})),n&&!u().some(t,["id",n.id])){const e=u().find(l.tags,{id:n.id});e.canSelect=!1,t.push(e)}l.tags=t}))}else{const e=[];let t=null;l.tag&&(t=u().find(l.tags,{name:l.tag.tag}));for(let n=0;n<l.tags.length;n++)t&&l.tags[n].id===t.id&&(l.tags[n].canSelect=!1,e.push(l.tags[n]));l.tags=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtags",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Ov.$inject=["$mdDialog","$q","toasty","faxAccountApp","faxAccount","api","Auth","crudPermissions"];const Rv=Ov;function Nv(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.dispositions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=l.faxAccount.getDispositions(f.query,m).$promise}function g(e){l.disposition.delete({id:e.id}).$promise.then((function(){p(),c.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.dispositions={count:0,rows:[]},f.selectedDispositions=[],f.crudPermissions,f.levels={first:"1st",second:"2nd",third:"3rd"},f.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},f.init=function(e,t){f.faxAccount=e||{},f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.FaxAccountId=f.faxAccount.id,f.query.id=f.faxAccount.id,p()},f.deleteConfirm=function(e,t){const n=u().some(f.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){g(e)}))},f.success=m,f.getDispositions=p,f.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:{id:f.faxAccount.id,field:"FaxAccountId",route:"faxAccount"},license:null,setting:null,crudPermissions:f.crudPermissions}}).then((function(e){e&&p()}))},f.deleteDisposition=g,f.exportSelectedDispositions=function(){const e=angular.copy(f.selectedDispositions);return f.selectedDispositions=[],e},f.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:f.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){f.selectedDispositions.forEach((function(e){g(e)})),f.selectedDispositions=[]}))},f.deselectDispositions=function(){f.selectedDispositions=[]},f.selectAllDispositions=function(){f.selectedDispositions=f.dispositions.rows}}Nv.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","api","toasty","Auth"];const Lv=Nv;function $v(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.faxAccountInteractions=e||{count:0,rows:[]};for(let e=0;e<m.faxAccountInteractions.rows.length;e+=1){const t=m.faxAccountInteractions.rows[e];_(t),t.Owner.name=b(t)}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,m.promise=d.faxInteraction.get(m.query,p).$promise}function h(e){d.faxInteraction.delete({id:e.id}).$promise.then((function(){u().remove(m.faxAccountInteractions.rows,{id:e.id}),m.faxAccountInteractions.count-=1,m.faxAccountInteractions.rows.length||g(),c.success({title:"Interaction deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETfaxAccount"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETfaxAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){e.Contact?(e.contactName=(e.Contact.firstName||"")+" "+(e.Contact.lastName||""),e.contactInfo=e.Contact.fax):e.contactName=r.instant("APP.UNKNOWN")}function b(e){return e.UserId?e.UserId===m.currentUser.id?r.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">":r.instant("DASHBOARDS.NOT_ASSIGNED")}m.currentUser=f.getCurrentUser(),m.faxAccount={},m.faxAccountInteractions={count:0,rows:[]},m.selectedFaxAccountInteractions=[],m.crudPermissions,m.query={read:null,closed:null,sort:"-createdAt",includeAll:!0,limit:10,page:1,createdAt:{$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()}},m.init=function(e,t){m.faxAccount=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.FaxAccountId=m.faxAccount.id,m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Subject",column:"subject",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},d.tag.get().$promise.then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:null,translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).then((()=>g()))},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the interaction?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("interaction #")+e.id||"interaction")+"</b> will be deleted.").ariaLabel("delete interaction").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.faxInteractionDownload=function(e,t,n){return d.faxInteraction.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="interaction"+e.id;const o=new Blob(n,{type:t.type});a="fax-interaction"+e.id+".zip";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.faxAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.success=p,m.getFaxAccountInteractions=g,m.spyfaxInteraction=function(e,n){s.show({controller:"AgentGeneralInteractionController",controllerAs:"vm",templateUrl:up,parent:angular.element(l.body),targetEvent:e,clickOutsideToClose:!0,onShowing:function(e){e.vm.init({id:1,channel:"fax",interaction:n,spy:!0},t.$parent.vm.setting)}})},m.openAdvancedSearch=function(){s.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(l.body),clickOutsideToClose:!1,locals:{fields:m.advancedSearch.fields,color:void 0,storagePath:"fax.faxAccounts"},fullscreen:!0}).then((function(e){if(m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply){let t="";t+="||FaxAccountId:=$eq["+m.faxAccount.id+"]",m.query.search=e.value?e.value+=t:e.value,g()}})).catch((function(e){c.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.exportSelectedFaxAccountInteractions=function(){const e=angular.copy(m.selectedFaxAccountInteractions);return m.selectedFaxAccountInteractions=[],e},m.deleteFaxAccountInteraction=h,m.deleteSelectedFaxAccountInteractions=function(e){const t=s.confirm().title("Are you sure want to delete the selected interactions?").htmlContent("<b>"+m.selectedFaxAccountInteractions.length+" selected</b> will be deleted.").ariaLabel("delete interactions").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedFaxAccountInteractions.forEach((function(e){h(e)})),m.selectedFaxAccountInteractions=[]}))}}$v.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Uv=$v,jv=n.p+"templates/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html/agentadd.html";function Fv(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.faxAccount=d||e.params.faxAccount||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.gotogoto=function(){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:910}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;n&&n.enabled?e.go("app.fax.realtime.accounts",{}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.fax.realtime.accounts",{})},m.agentadddialog=function(e,t){n.show({controller:"FaxAccountagentaddController",controllerAs:"vm",templateUrl:jv,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{faxAccount:e,faxAccounts:m.faxAccounts?m.faxAccounts.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.alert=l.info,m.gotoFaxAccounts=function(){e.go("app.fax.faxAccounts",{},{reload:"app.fax.faxAccounts"})},m.saveFaxAccount=function(){s.faxAccount.updateAccountApplications(m.faxAccount).$promise.then((function(){l.success({title:"FaxAccount updated!",msg:m.faxAccount.name?m.faxAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETfaxAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.trunks=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.trunks=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.trunks,{id:e.resourceId})}));let n=null;if(m.faxAccount&&(n=u().find(m.trunks,{id:Number(m.faxAccount.TrunkId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.trunks,{id:n.id});e.canSelect=!1,t.push(e)}m.trunks=t}))}else{const e=[];let t=null;m.faxAccount&&(t=u().find(m.trunks,{id:Number(m.faxAccount.TrunkId)}));for(let n=0;n<m.trunks.length;n++)t&&m.trunks[n].id===t.id&&(m.trunks[n].canSelect=!1,e.push(m.trunks[n]));m.trunks=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.lists,{id:e.resourceId})}));let n=null;if(m.faxAccount&&(n=u().find(m.lists,{id:Number(m.faxAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.lists,{id:n.id});e.canSelect=!1,t.push(e)}m.lists=t}))}else{const e=[];let t=null;m.faxAccount&&(t=u().find(m.lists,{id:Number(m.faxAccount.ListId)}));for(let n=0;n<m.lists.length;n++)t&&m.lists[n].id===t.id&&(m.lists[n].canSelect=!1,e.push(m.lists[n]));m.lists=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Fv.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","faxAccount","userProfileSection"];const qv=Fv,Yv=n.p+"templates/main/apps/fax/views/faxAccounts/create/dialog.html/dialog.html";function Hv(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.faxAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="faxAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedFaxAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,page:1},b.arrayecm=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayminrate=u().keyBy([{option:"2400",value:"'2400'"},{option:"4800",value:"'4800'"},{option:"7200",value:"'7200'"},{option:"9600",value:"'9600'"},{option:"12000",value:"'12000'"},{option:"14400",value:"'14400'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraymaxrate=u().keyBy([{option:"2400",value:"'2400'"},{option:"4800",value:"'4800'"},{option:"7200",value:"'7200'"},{option:"9600",value:"'9600'"},{option:"12000",value:"'12000'"},{option:"14400",value:"'14400'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytech=u().keyBy([{option:"SIP",value:"'SIP'"},{option:"IAX",value:"'IAX'"},{option:"DADHI",value:"'DADHI'"},{option:"KHOMP",value:"'KHOMP'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.fax.faxAccounts.edit",{id:e.id,faxAccount:e,crudPermissions:b.crudPermissions})},b.interactionsgoto=function(e){n.go("app.fax.faxAccounts.edit",{id:e.id,tab:5})},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:910}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.fax.realtime.accounts",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.fax.realtime.accounts",{})},b.agentadddialog=function(e,t){o.show({controller:"FaxAccountagentaddController",controllerAs:"vm",templateUrl:jv,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{faxAccount:e,faxAccounts:b.faxAccounts?b.faxAccounts.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("faxAccount")+"?").htmlContent("<b>"+(e.name||"faxAccount")+"</b> will be deleted.").ariaLabel("delete faxAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getFaxAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.faxAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="FaxAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditFaxAccount=function(e,t){o.show({controller:"CreateOrEditFaxAccountDialogController",controllerAs:"vm",templateUrl:Yv,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{faxAccount:t,faxAccounts:b.faxAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteFaxAccount=S,b.exportSelectedFaxAccounts=function(){const e=angular.copy(b.selectedFaxAccounts);return b.selectedFaxAccounts=[],e},b.deleteSelectedFaxAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected faxAccounts?").htmlContent("<b>"+b.selectedFaxAccounts.length+" selected</b> will be deleted.").ariaLabel("delete FaxAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedFaxAccounts.forEach((function(e){S(e)})),b.selectedFaxAccounts=[]}))},b.deselectFaxAccounts=function(){b.selectedFaxAccounts=[]},b.selectAllFaxAccounts=function(){b.selectedFaxAccounts=b.faxAccounts.rows},g.hasRole("admin")?f.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.trunks=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.trunks=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.trunks,{id:e.resourceId})}));let n=null;n=[],b.faxAccounts.rows.forEach((function(e){const t=u().find(b.trunks,{id:Number(e.TrunkId)});n.push(t)})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(b.trunks,{id:e.id});n.canSelect=!1,t.push(n)}})),b.trunks=t}))}else{const e=[],t=[];b.faxAccounts.rows.forEach((function(e){const n=u().find(b.trunks,{id:Number(e.TrunkId)});t.push(n)}));for(let n=0;n<b.trunks.length;n++){u().some(t,{id:b.trunks[n].id})&&(b.trunks[n].canSelect=!1,e.push(b.trunks[n]))}b.trunks=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),g.hasRole("admin")?f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.lists,{id:e.resourceId})}));let n=null;if(b.faxAccount&&(n=u().find(b.lists,{id:Number(b.faxAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.lists,{id:n.id});e.canSelect=!1,t.push(e)}b.lists=t}))}else{const e=[];let t=null;b.faxAccount&&(t=u().find(b.lists,{id:Number(b.faxAccount.ListId)}));for(let n=0;n<b.lists.length;n++)t&&b.lists[n].id===t.id&&(b.lists[n].canSelect=!1,e.push(b.lists[n]));b.lists=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.faxAccounts=e||{count:0,rows:[]}}function S(e){f.faxAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.faxAccounts.rows,{id:e.id}),b.faxAccounts.count-=1,b.faxAccounts.rows.length||b.getFaxAccounts(),p.success({title:u().startCase("FaxAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEfaxAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEfaxAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getFaxAccounts())}))}Hv.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","faxAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Bv=Hv;function Gv(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="FAX.EDIT_FAXQUEUE",g.faxQueue=angular.copy(l),g.faxQueues=s,g.newFaxQueue=!1,g.faxQueue||(g.faxQueue={strategy:"beepall",timeout:10},g.title="FAX.NEW_FAXQUEUE",g.newFaxQueue=!0),g.addNewFaxQueue=function(){g.errors=[],c.faxQueue.save(g.faxQueue).$promise.then((function(e){g.faxQueues.unshift(e.toJSON()),i.success({title:"FaxQueue properly created",msg:g.faxQueue.name?g.faxQueue.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.faxQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.faxQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveFaxQueue=function(){g.errors=[],c.faxQueue.update({id:g.faxQueue.id},g.faxQueue).$promise.then((function(e){const t=u().find(g.faxQueues,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"FaxQueue properly saved!",msg:g.faxQueue.name?g.faxQueue.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.faxQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.faxQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteFaxQueue=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The faxQueue will be deleted.").ariaLabel("Delete FaxQueue").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.faxQueue.delete({id:g.faxQueue.id}).$promise.then((function(){u().remove(g.faxQueues,{id:g.faxQueue.id}),i.success({title:"FaxQueue properly deleted!",msg:(g.faxQueue.name||"faxQueue")+" has been deleted!"}),h(g.faxQueue)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.faxQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.faxQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Gv.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","faxQueues","faxQueue","api","Auth","license","setting","crudPermissions"];const Vv=Gv;function Wv(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.faxQueue.getAgents({id:d.faxQueue.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserFaxQueue?"penalty "+e.UserFaxQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.faxQueue=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.faxQueue.removeAgents({id:d.faxQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.faxQueue.addAgents({id:d.faxQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}Wv.$inject=["$mdDialog","$q","toasty","api","faxQueue","faxQueues","realtime","$translate","Auth","crudPermissions"];const Qv=Wv;function zv(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.faxQueue.getTeams({id:l.faxQueue.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.faxQueue=o,l.crudPermissions=s,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(){const e=u().xorBy(l.startingSelectedItems,l.selectedItems,"id");l.pendingChanges=!u().isEmpty(e)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceBy(l.selectedItems,l.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.faxQueue.removeTeams({id:l.faxQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.faxQueue.addTeams({id:l.faxQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}zv.$inject=["$mdDialog","$q","toasty","api","faxQueue","$translate","Auth","crudPermissions"];const Kv=zv,Jv=n.p+"templates/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd.html";function Xv(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.faxQueue=u||e.params.faxQueue||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.teamadddialog=function(e,t){n.show({controller:"FaxQueueteamaddController",controllerAs:"vm",templateUrl:Jv,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{faxQueue:e,faxQueues:f.faxQueues?f.faxQueues.rows:[],crudPermissions:f.crudPermissions}})},f.agentadddialog=function(e,t){n.show({controller:"FaxQueueagentaddController",controllerAs:"vm",templateUrl:Gy,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{faxQueue:e,faxQueues:f.faxQueues?f.faxQueues.rows:[],crudPermissions:f.crudPermissions,realtime:!1}})},f.alert=l.info,f.gotoFaxQueues=function(){e.go("app.fax.faxQueues",{},{reload:"app.fax.faxQueues"})},f.saveFaxQueue=function(){s.faxQueue.update({id:f.faxQueue.id},f.faxQueue).$promise.then((function(){l.success({title:"FaxQueue updated!",msg:f.faxQueue.name?f.faxQueue.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETfaxQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}Xv.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","faxQueue","userProfileSection"];const Zv=Xv;function eA(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.faxQueues=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="faxQueues",b.listOrder="",b.listOrderAsc=null,b.selectedFaxQueues=[],b.query={fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"fax",limit:10,page:1},b.arraystrategy=u().keyBy([{option:"Beepall",value:"'beepall'"},{option:"RR Memory",value:"'rrmemory'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.fax.faxQueues.edit",{id:e.id,faxQueue:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"FaxQueueteamaddController",controllerAs:"vm",templateUrl:Jv,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{faxQueue:e,faxQueues:b.faxQueues?b.faxQueues.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"FaxQueueagentaddController",controllerAs:"vm",templateUrl:Gy,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{faxQueue:e,faxQueues:b.faxQueues?b.faxQueues.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("faxQueue")+"?").htmlContent("<b>"+(e.name||"faxQueue")+"</b> will be deleted.").ariaLabel("delete faxQueue").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:910}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.fax.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.fax.realtime.queues",{})},b.success=A,b.getFaxQueues=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.faxQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="FaxQueues",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditFaxQueue=function(e,t){o.show({controller:"CreateOrEditFaxQueueDialogController",controllerAs:"vm",templateUrl:Vy,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{faxQueue:t,faxQueues:b.faxQueues.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteFaxQueue=S,b.exportSelectedFaxQueues=function(){const e=angular.copy(b.selectedFaxQueues);return b.selectedFaxQueues=[],e},b.deleteSelectedFaxQueues=function(e){const t=o.confirm().title("Are you sure want to delete the selected faxQueues?").htmlContent("<b>"+b.selectedFaxQueues.length+" selected</b> will be deleted.").ariaLabel("delete FaxQueues").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedFaxQueues.forEach((function(e){S(e)})),b.selectedFaxQueues=[]}))},b.deselectFaxQueues=function(){b.selectedFaxQueues=[]},b.selectAllFaxQueues=function(){b.selectedFaxQueues=b.faxQueues.rows};let y=!0,v=1;function A(e){b.faxQueues=e||{count:0,rows:[]}}function S(e){f.faxQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.faxQueues.rows,{id:e.id}),b.faxQueues.count-=1,b.faxQueues.rows.length||b.getFaxQueues(),p.success({title:u().startCase("FaxQueue")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEfaxQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEfaxQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getFaxQueues())}))}eA.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","faxQueues","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const tA=eA;function nA(e,t){e.state("app.fax",{abstract:!0,url:"/fax"}).state("app.fax.faxQueues",{url:"/faxQueues",views:{"content@app":{templateUrl:Py,controller:"FaxQueuesController as vm"}},resolve:{faxQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("faxQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"fax",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"FaxQueues",fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"fax",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:901})}]},authenticate:!0,permissionId:901,bodyClass:"fax"}).state("app.fax.faxQueues.edit",{url:"/:id?tab",params:{faxQueue:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:Oy,controller:"FaxQueueController as vm"}},resolve:{faxQueue:["apiResolver","$stateParams",function(e,t){return e.resolve("faxQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:901})}]},authenticate:!0,permissionId:901,bodyClass:"fax"}).state("app.fax.faxAccounts",{url:"/faxAccounts",views:{"content@app":{templateUrl:Ry,controller:"FaxAccountsController as vm"}},resolve:{faxAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("faxAccount@get",{fields:"createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"FaxAccounts",fields:"createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:902})}]},authenticate:!0,permissionId:902,bodyClass:"fax"}).state("app.fax.faxAccounts.edit",{url:"/:id?tab",params:{faxAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:Ny,controller:"FaxAccountController as vm"}},resolve:{faxAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("faxAccount@get",{fields:"createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:902})}]},authenticate:!0,permissionId:902,bodyClass:"fax"}),t.addPart("app/main/apps/fax")}nA.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.fax",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.fax.realtime"]).config(nA).controller("CreateOrEditFaxAccountDialogController",nv).controller("FaxAccountActionsController",pv).controller("FaxAccountagentaddController",hv).controller("EditFaxAccountAppagentDialogController",bv).controller("EditFaxAccountAppcloseDialogController",vv).controller("EditFaxAccountAppgotoifDialogController",Sv).controller("EditFaxAccountAppgotopDialogController",Ev).controller("EditFaxAccountAppintervalDialogController",Tv).controller("EditFaxAccountAppnoopDialogController",kv).controller("EditFaxAccountAppqueueDialogController",xv).controller("EditFaxAccountAppsystemDialogController",Pv).controller("EditFaxAccountApptagDialogController",Rv).controller("FaxAccountDispositionsController",Lv).controller("FaxAccountInteractionsController",Uv).controller("FaxAccountController",qv).controller("FaxAccountsController",Bv).controller("CreateOrEditFaxQueueDialogController",Vv).controller("FaxQueueagentaddController",Qv).controller("FaxQueueteamaddController",Kv).controller("FaxQueueController",Zv).controller("FaxQueuesController",tA);const aA=n.p+"templates/main/apps/tools/views/dispositions/dispositions.html/dispositions.html";function oA(e,t,n,a,o,r,i,s,l,c,d){const f=this;if(f.currentUser=s.getCurrentUser(),f.disposition=angular.copy(o),f.setting=d,f.license=c,f.crudPermissions=l,f.newDisposition=!1,f.errors=[],f.disposition||(f.disposition={level:"first"},f.newDisposition=!0),r){const e=r.field;f.disposition[e]=r.id}function m(){return n((function(e,t){i.disposition.get({fields:"id,name,level,ParentId",sort:"id",nolimit:"true"}).$promise.then((function(t){const n=t.rows||[];return e(n)})).catch((function(e){t(e)}))}))}function p(e){"first"===e.level?f.firstLevelDisposition=e:(f.anySecondLevelDisposition=!0,f.secondLevelDisposition=e,f.firstLevelDisposition=u().find(f.dispositions,["id",f.secondLevelDisposition.ParentId]),f.firstLevelDisposition||m().then((function(){f.firstLevelDisposition=u().find(f.allDispositions,["id",f.secondLevelDisposition.ParentId]),f.firstLevelDisposition.canSelect=!1,f.dispositions.push(f.firstLevelDisposition)})))}function g(t){e.hide(t)}f.onInit=function(){let e="disposition";r?e=r.route:"user"===f.currentUser.role&&(e="userProfile");let t="get";r?t="getDispositions":"user"===f.currentUser.role&&(t="getResources");const o={fields:"id,name,level,ParentId",id:r?r.id:void 0,section:"user"===f.currentUser.role?"Dispositions":void 0,MailAccountId:r?void 0:"null",FaxAccountId:r?void 0:"null",SmsAccountId:r?void 0:"null",OpenchannelAccountId:r?void 0:"null",ChatWebsiteId:r?void 0:"null",WhatsappAccountId:r?void 0:"null",ListId:r?void 0:"null",sort:"id",nolimit:"true"};(function(e,t,a){return n((function(n,o){i[e][t](a).$promise.then((function(e){const t=e.rows||[];return n(t)})).catch((function(e){o(e)}))}))})(e,t,o).then((function(e){f.dispositions=angular.copy(e),f.newDisposition||(!function(){if("first"===f.disposition.level)return;if(f.parentDisposition=u().find(f.dispositions,["id",f.disposition.ParentId]),!f.parentDisposition)return void m().then((function(e){f.allDispositions=e;for(let e=0;e<f.allDispositions.length;e++){const t=f.allDispositions[e];if(t.id===f.disposition.ParentId){p(t),t.canSelect=!1,f.dispositions.push(t);break}}}));p(f.parentDisposition)}(),f.dispositions=f.dispositions.filter((e=>e.id!==f.disposition.id)))})).catch((function(n){a.error({title:n.status?"API:"+n.status+" - "+n.statusText:["api",e,t].join(":"),msg:n.data?JSON.stringify(n.data.message):n.message||n.toString()})}))},f.onFirstLevelSelection=function(){f.secondLevelDisposition=void 0,f.anySecondLevelDisposition=u().some(f.dispositions,(function(e){return e.ParentId===f.firstLevelDisposition.id&&e.id!=f.disposition.id}))},f.addNewDisposition=function(){f.errors=[],f.secondLevelDisposition?(f.disposition.ParentId=f.secondLevelDisposition.id,f.disposition.level="third"):f.firstLevelDisposition?(f.disposition.ParentId=f.firstLevelDisposition.id,f.disposition.level="second"):(f.disposition.ParentId=null,f.disposition.level="first");i.disposition.save(f.disposition).$promise.then((function(e){f.dispositions.unshift(e.toJSON()),a.success({title:t.instant("TOOLS.NOTIFICATIONS.DISPOSITION_CREATED_SUCCESS_TITLE")}),g(!0)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"api.disposition.save"}];for(let t=0;t<e.data.errors.length;t+=1)a.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.disposition.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.saveDisposition=function(){f.errors=[],f.secondLevelDisposition?(f.disposition.ParentId=f.secondLevelDisposition.id,f.disposition.level="third"):f.firstLevelDisposition?(f.disposition.ParentId=f.firstLevelDisposition.id,f.disposition.level="second"):(f.disposition.ParentId=null,f.disposition.level="first");i.disposition.update({id:f.disposition.id},f.disposition).$promise.then((function(e){const n=u().find(f.dispositions,{id:e.id});n&&u().merge(n,u().pick(e.toJSON(),u().keys(n))),a.success({title:t.instant("TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE")}),g(!0)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"api.disposition.update"}];for(let t=0;t<e.data.errors.length;t++)a.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.disposition.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.deleteDisposition=function(n){f.errors=[];const o=u().some(f.dispositions,["ParentId",f.disposition.id]),r=e.confirm({multiple:!0}).title(t.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(t.instant("TOOLS.NOTIFICATIONS."+(o?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:f.disposition.name})).ariaLabel("Delete disposition").ok(t.instant("APP.DELETE")).cancel(t.instant("APP.CANCEL")).targetEvent(n);e.show(r).then((function(){i.disposition.delete({id:f.disposition.id}).$promise.then((function(){a.success({title:t.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")}),g(!0)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"api.disposition.delete"}];for(let t=0;t<e.data.errors.length;t++)a.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.disposition.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}))},f.clearSelection=function(e){"first"===e?(f.firstLevelDisposition=void 0,f.secondLevelDisposition=void 0,f.anySecondLevelDisposition=!1):f.secondLevelDisposition=void 0},f.closeDialog=g}oA.$inject=["$mdDialog","$translate","$q","toasty","disposition","model","api","Auth","crudPermissions","license","setting"];const rA=oA;function iA(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h){const _=this;function b(e){_.dispositions=e||{count:0,rows:[]}}function y(){_.query.offset=(_.query.page-1)*_.query.limit,p.isAdmin()?_.promise=f.disposition.get(_.query,b).$promise:(_.query.id=_.userProfile.id,_.query.section="Dispositions",_.promise=f.userProfile.getResources(_.query,b).$promise)}function v(e){f.disposition.delete({id:e.id}).$promise.then((function(){y(),m.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){_.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)m.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}_.baseUrl=f.baseUrl,_.license=g,_.setting=h,_.currentUser=p.getCurrentUser(),_.dispositions=l||{count:0,rows:[]},_.userProfile=c,_.userProfileSection=d&&1==d.count?d.rows[0]:null,_.crudPermissions=p.parseCrudPermissions(_.userProfileSection?_.userProfileSection.crudPermissions:null),_.selectedDispositions=[],_.levels={first:"1st",second:"2nd",third:"3rd"},_.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",WhatsappAccountId:"null",ListId:"null",limit:10,page:1},_.deleteconfirm=function(e,t){const n=u().some(_.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){v(e)}))},_.success=b,_.getDispositions=y,_.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:null,license:_.license,setting:_.setting,crudPermissions:_.crudPermissions}}).then((function(e){!0===e&&y()}))},_.deleteDisposition=v,_.exportSelectedDispositions=function(){const e=angular.copy(_.selectedDispositions);return _.selectedDispositions=[],e},_.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:_.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){_.selectedDispositions.forEach((function(e){v(e)})),_.selectedDispositions=[]}))},_.deselectDispositions=function(){_.selectedDispositions=[]},_.selectAllDispositions=function(){_.selectedDispositions=_.dispositions.rows};let A=!0,S=1;e.$watch("vm.query.filter",(function(e,t){A?i((function(){A=!1})):(t||(S=_.query.page),e!==t&&(_.query.page=1),e||(_.query.page=S),y())}))}iA.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","dispositions","userProfile","userProfileSection","api","toasty","Auth","license","setting"];const sA=iA;function lA(e){e.state("app.tools.dispositions",{url:"/dispositions",views:{"content@app":{templateUrl:aA,controller:"DispositionsController as vm"}},resolve:{dispositions:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("disposition@get",{fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",WhatsappAccountId:"null",ListId:"null",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Dispositions",fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",WhatsappAccountId:"null",ListId:"null",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1002})}]},authenticate:!0,permissionId:1002,bodyClass:"tools"})}lA.$inject=["$stateProvider"],angular.module("app.tools.dispositions",[]).config(lA).controller("CreateOrEditDispositionDialogController",rA).controller("DispositionsController",sA);const cA=n.p+"templates/main/apps/tools/views/triggers/triggers.html/triggers.html",uA=n.p+"templates/main/apps/tools/views/triggers/edit/view.html/view.html";function dA(e,t,n,a,o,r,i,s,l,c){const d=this;function f(t){e.hide(t)}d.currentUser=i.getCurrentUser(),d.trigger=angular.copy(o),d.triggers=angular.copy(a),d.setting=l,d.license=s,d.crudPermissions=c,d.newTrigger=!1,d.errors=[],d.trigger||(d.trigger={channel:"voice"},d.newTrigger=!0),d.addNewTrigger=function(){d.errors=[],r.trigger.save(d.trigger).$promise.then((function(e){d.triggers.unshift(e.toJSON()),n.success({title:t.instant("TOOLS.NOTIFICATIONS.TRIGGER_CREATED_SUCCESS_TITLE")}),f(d.triggers)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){d.errors=e.data.errors||[{message:e.toString(),type:"api.trigger.save"}];for(let t=0;t<e.data.errors.length;t+=1)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.trigger.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},d.saveTrigger=function(){d.errors=[],r.trigger.update({id:d.trigger.id},d.trigger).$promise.then((function(){d.triggers=u().map(d.triggers,(function(e){return e.id===d.trigger.id?d.trigger:e})),n.success({title:t.instant("TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE")}),f(d.triggers)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){d.errors=e.data.errors||[{message:e.toString(),type:"api.trigger.update"}];for(let t=0;t<e.data.errors.length;t++)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.trigger.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},d.deleteTrigger=function(a){d.errors=[];const o=e.confirm({multiple:!0}).title(t.instant("TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE")).content(t.instant("TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE",{name:d.trigger.name})).ariaLabel("Delete trigger").ok(t.instant("APP.DELETE")).cancel(t.instant("APP.CANCEL")).targetEvent(a);e.show(o).then((function(){r.trigger.delete({id:d.trigger.id}).$promise.then((function(){d.triggers=u().filter(d.triggers,(function(e){return e.id!==d.trigger.id})),n.success({title:t.instant("TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE")}),f(d.triggers)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){d.errors=e.data.errors||[{message:e.toString(),type:"api.trigger.delete"}];for(let t=0;t<e.data.errors.length;t++)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.trigger.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},d.closeDialog=f}dA.$inject=["$mdDialog","$translate","toasty","triggers","trigger","api","Auth","license","setting","crudPermissions"];const fA=dA,mA=n.p+"templates/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog.html";function pA(e,t,n,a,o,r,i,s){const l=this;function c(){u().some(l.triggerActions.rows,["action","contactManager"])&&(l.lists||(s.isAdmin()?i.cmList.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.lists=e.rows||[]})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):i.cmList.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.lists=e.rows||[]})).then((function(){return i.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return i.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.lists,{id:e.resourceId})}));let n=null;n=[],l.triggerActions.rows.forEach((function(e){if("contactManager"===e.action){const t=u().find(l.lists,{id:Number(e.data1)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(l.lists,{id:e.id});n.canSelect=!1,t.push(n)}})),l.lists=t}))}else{const e=[],t=[];l.triggerActions.rows.forEach((function(e){if("contactManager"===e.action){const n=u().find(l.lists,{id:Number(e.data1)});t.push(n)}}));for(let n=0;n<l.lists.length;n++)u().some(t,{id:l.lists[n].id})&&(l.lists[n].canSelect=!1,e.push(l.lists[n]));l.lists=e}})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})))),u().some(l.triggerActions.rows,["action","integration"])&&u()(l.triggerActions.rows).map((function(e){return"integration"===e.action?e.data1:void 0})).compact().uniq().value().forEach((function(e){const t=e+"Accounts";if(!l[t]){const n="int"+u().startCase(e)+"Account";i[n].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){l[t]=e.rows||[]})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_"+t.toUpperCase()+"ACCOUNTS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}})),u().some(l.triggerActions.rows,(function(e){return u().includes(["motionbar","browser"],e.action)}))&&(l.templates||(s.isAdmin()?i.template.get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){l.templates=e.rows||[]})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEMPLATES",msg:e.data?JSON.stringify(e.data):e.toString()})})):i.template.get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){l.templates=e.rows||[]})).then((function(){return i.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1009}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return i.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.templates,{id:e.resourceId})}));let n=null;n=[],l.triggerActions.rows.forEach((function(e){if(u().includes(["motionbar","browser"],e.action)){const t=u().find(l.templates,{id:Number(e.data2)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(l.templates,{id:e.id});n.canSelect=!1,t.push(n)}})),l.templates=t}))}else{const e=[],t=[];l.triggerActions.rows.forEach((function(e){if(u().includes(["motionbar","browser"],e.action)){const n=u().find(l.templates,{id:Number(e.data2)});t.push(n)}}));for(let n=0;n<l.templates.length;n++)u().some(t,{id:l.templates[n].id})&&(l.templates[n].canSelect=!1,e.push(l.templates[n]));l.templates=e}})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEMPLATES",msg:e.data?JSON.stringify(e.data):e.toString()})})))),u().some(l.triggerActions.rows,["action","jscripty"])&&(l.projects||(s.isAdmin()?i.jscriptyProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.projects=e.rows||[]})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):i.jscriptyProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.projects=e.rows||[]})).then((function(){return i.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1701}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return i.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.projects,{id:e.resourceId})}));let n=null;n=[],l.triggerActions.rows.forEach((function(e){if("jscripty"===e.action){const t=u().find(l.projects,{id:Number(e.data1)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(l.projects,{id:e.id});n.canSelect=!1,t.push(n)}})),l.projects=t}))}else{const e=[],t=[];l.triggerActions.rows.forEach((function(e){if("jscripty"===e.action){const n=u().find(l.projects,{id:Number(e.data1)});t.push(n)}}));for(let n=0;n<l.projects.length;n++)u().some(t,{id:l.projects[n].id})&&(l.projects[n].canSelect=!1,e.push(l.projects[n]));l.projects=e}})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})}))))}function d(e){l.triggerActions=e||{count:0,rows:[]},c()}function f(){l.query.offset=(l.query.page-1)*l.query.limit,l.promise=i.trigger.getActions(l.query,d).$promise}function m(e,n){i.action.delete({id:e.id}).$promise.then((function(){f(),n&&r.success({title:t.instant("TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){l.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETtrigger"}];for(let t=0;t<e.data.errors.length;t++)r.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrigger",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}l.currentUser=s.getCurrentUser(),l.trigger={},l.triggerActions={count:0,rows:[]},l.selectedTriggerActions=[],l.query={fields:"id,action,contact,data1,data2,data3,data4,data5,data6,data7,createdAt,updatedAt",limit:10,page:1},l.integrationTypes={zendesk:"Zendesk",salesforce:"Salesforce",sugarcrm:"SugarCRM",freshdesk:"Freshdesk",desk:"Desk",zoho:"Zoho",vtiger:"vTiger",dynamics365:"Dynamics365",servicenow:"ServiceNow",freshsales:"Freshsales"},l.motionBarOptions={0:"Popup",1:"CTI URL",2:"Windows App"},l.onInit=function(e,t){l.trigger=e,l.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},l.query.ActionId=l.trigger.id,l.query.id=l.trigger.id,f()},l.success=d,l.getTriggerActions=f,l.createOrEditTriggerAction=function(e,t){a.show({controller:"CreateOrEditActionDialogController",controllerAs:"vm",templateUrl:mA,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{trigger:l.trigger,action:t,actions:l.triggerActions.rows,license:null,setting:null,crudPermissions:l.crudPermissions}}).then((function(e){e&&(l.triggerActions={count:e.length,rows:e},c())}))},l.exportSelectedTriggerActions=function(){const e=angular.copy(l.selectedTriggerActions);return l.selectedTriggerActions=[],e},l.deleteConfirm=function(e,n){const o=a.confirm().title(t.instant("TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE")).ariaLabel("Delete action").targetEvent(n).ok("OK").cancel(t.instant("APP.CANCEL"));a.show(o).then((function(){m(e,!0)}))},l.deleteSelectedTriggerActions=function(e){const n=a.confirm().title(t.instant("TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE")).content(t.instant("TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE",{total:l.selectedTriggerActions.length})).ariaLabel("Delete actions").targetEvent(e).ok("OK").cancel(t.instant("APP.CANCEL"));a.show(n).then((function(){l.selectedTriggerActions.forEach((function(e){m(e)})),l.selectedTriggerActions=[],r.success({title:t.instant("TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE")})}))}}pA.$inject=["$scope","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const gA=pA;function hA(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;function p(){s.cmList.getCustomFields({id:m.action.data1,ListId:m.action.data1}).$promise.then((function(e){m.listFields=u().filter(e.rows,["type","text"]),m.listFields.forEach((function(e){e.columnName="cf_"+e.id}))})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LIST_CUSTOM_FIELDS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function g(){switch(m.action.action){case"contactManager":m.lists||(l.isAdmin()?s.cmList.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.lists=e.rows||[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.cmList.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.lists=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.lists,{id:e.resourceId})}));let n=null;n=[],m.triggerActions.rows.forEach((function(e){if("contactManager"===e.action){const t=u().find(m.lists,{id:Number(e.data1)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(m.lists,{id:e.id});n.canSelect=!1,t.push(n)}})),m.lists=t}))}else{const e=[],t=[];m.triggerActions.rows.forEach((function(e){if("contactManager"===e.action){const n=u().find(m.lists,{id:Number(e.data1)});t.push(n)}}));for(let n=0;n<m.lists.length;n++)u().some(t,{id:m.lists[n].id})&&(m.lists[n].canSelect=!1,e.push(m.lists[n]));m.lists=e}})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})}))),m.contactFields||s.cmContact.describe({}).$promise.then((function(e){m.contactFields=[],m.customFields=[];const t=u().values(e.toJSON());for(let e=0;e<t.length;e++)u().includes(m.allowedStandardFields,t[e].columnName)?m.contactFields.push(t[e]):u().startsWith(t[e].columnName,"cf_")&&"text"===t[e].custom.type&&m.customFields.push(t[e])})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DESCRIBE_CM_CONTACT",msg:e.data?JSON.stringify(e.data):e.toString()})})),m.action.data3=m.action.data3?m.action.data3.split(","):["phone"],"1"!==m.action.data2||m.action.data4||(m.action.data4="phone");break;case"jscripty":m.projects||(l.isAdmin()?s.jscriptyProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.projects=e.rows||[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.jscriptyProject.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){m.projects=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1701}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.projects,{id:e.resourceId})}));let n=null;n=[],m.triggerActions.rows.forEach((function(e){if("jscripty"===e.action){const t=u().find(m.projects,{id:Number(e.data1)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(m.projects,{id:e.id});n.canSelect=!1,t.push(n)}})),m.projects=t}))}else{const e=[],t=[];m.triggerActions.rows.forEach((function(e){if("jscripty"===e.action){const n=u().find(m.projects,{id:Number(e.data1)});t.push(n)}}));for(let n=0;n<m.projects.length;n++)u().some(t,{id:m.projects[n].id})&&(m.projects[n].canSelect=!1,e.push(m.projects[n]));m.projects=e}})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})})));break;case"urlForward":m.action.data5||(m.action.data5=5)}}function h(){const e=angular.copy(m.action);return u().isArray(e.data3)&&(e.data3=m.action.data3.join(",")),e}function _(e){t.hide(e)}m.currentUser=l.getCurrentUser(),m.action=angular.copy(r),m.actions=angular.copy(o),m.setting=d,m.license=c,m.crudPermissions=f,m.newAction=!1,m.errors=[],m.trigger=angular.copy(i),m.action||(m.action={},m.newAction=!0),m.action.ActionId=e.params.id||void 0,m.allowedStandardFields=["phone","mobile","fax"],m.addNewAction=function(){m.errors=[];const t=h();s.trigger.addAction({id:e.params.id},t).$promise.then((function(e){m.actions.unshift(e.toJSON()),a.success({title:n.instant("TOOLS.NOTIFICATIONS.ACTION_CREATED_SUCCESS_TITLE")}),_(m.actions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"api.action.save"}];for(let t=0;t<e.data.errors.length;t+=1)a.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.action.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.saveAction=function(){m.errors=[];const e=h();s.action.update({id:e.id},e).$promise.then((function(){m.actions=u().map(m.actions,(function(t){return t.id===e.id?e:t})),a.success({title:n.instant("TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE")}),_(m.actions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"api.action.update"}];for(let t=0;t<e.data.errors.length;t++)a.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.action.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.deleteAction=function(e){m.errors=[];const o=t.confirm({multiple:!0}).title(n.instant("TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE")).ariaLabel("Delete action").ok(n.instant("APP.DELETE")).cancel(n.instant("APP.CANCEL")).targetEvent(e);t.show(o).then((function(){s.action.delete({id:m.action.id}).$promise.then((function(){m.actions=u().filter(m.actions,(function(e){return e.id!==m.action.id})),a.success({title:n.instant("TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE")}),_(m.actions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"api.action.delete"}];for(let t=0;t<e.data.errors.length;t++)a.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.action.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},m.onActionInit=function(){l.hasModulePermissions("Integrations").then((function(e){m.hasIntegrationsPermissions=e})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_MODULE_PERMISSIONS",msg:e.data?JSON.stringify(e.data):e.toString()})})),m.action.action&&g()},m.onIntegrationInit=function(){l.hasSectionsPermissions([1301,1302,1303,1305,1306,1307,1308,1309,1310,1311]).then((function(e){m.hasSectionPermissions=u().merge(m.hasSectionPermissions,e)})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_SECTIONS_PERMISSIONS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},m.onSearchFieldsInit=function(){m.newAction||p()},m.onActionSelection=function(){m.action.data1=void 0,m.action.data2=void 0,m.action.data3=void 0,m.action.data4=void 0,m.action.data5="urlForward"===m.action.action?5:void 0,g()},m.onIntegrationSelection=function(){m.action.data2=void 0,m.action.data3=void 0,m.action.isIntegrationDisabled=!m.newAction&&!function(){switch(m.action.data1){case"zendesk":return m.hasSectionPermissions[1301];case"salesforce":return m.hasSectionPermissions[1302];case"sugarcrm":return m.hasSectionPermissions[1305];case"freshdesk":return m.hasSectionPermissions[1303];case"desk":return m.hasSectionPermissions[1306];case"zoho":return m.hasSectionPermissions[1307];case"vtiger":return m.hasSectionPermissions[1308];case"dynamics365":return m.hasSectionPermissions[1309];case"servicenow":return m.hasSectionPermissions[1310];case"freshsales":return m.hasSectionPermissions[1311]}}();const e="int"+u().capitalize(m.action.data1)+"Account";s[e].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){m.accounts=e.rows||[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_"+m.action.data1.toUpperCase()+"ACCOUNTS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},m.onListSelection=function(){p()},m.onTypeSelection=function(){"0"!==m.action.data1||m.templates||(l.isAdmin()?s.template.get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){m.templates=e.rows||[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEMPLATES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.template.get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){m.templates=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1009}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.templates,{id:e.resourceId})}));let n=null;n=[],m.triggerActions.rows.forEach((function(e){if(u().includes(["motionbar","browser"],e.action)){const t=u().find(m.templates,{id:Number(e.data2)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(m.templates,{id:e.id});n.canSelect=!1,t.push(n)}})),m.templates=t}))}else{const e=[],t=[];m.triggerActions.rows.forEach((function(e){if(u().includes(["motionbar","browser"],e.action)){const n=u().find(m.templates,{id:Number(e.data2)});t.push(n)}}));for(let n=0;n<m.templates.length;n++)u().some(t,{id:m.templates[n].id})&&(m.templates[n].canSelect=!1,e.push(m.templates[n]));m.templates=e}})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEMPLATES",msg:e.data?JSON.stringify(e.data):e.toString()})})))},m.onAutocreateSelection=function(){"0"===m.action.data2&&(m.action.data4=void 0);m.action.data4||"1"!==m.action.data2||(m.action.data4="phone")},m.onIntegrationAccountSelection=function(){m.action.data3=void 0;const e="int"+u().capitalize(m.action.data1)+"Configuration";s[e].get({fields:"id,name,AccountId",sort:"id",nolimit:"true"}).$promise.then((function(e){m.configurations=e.rows||[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_"+m.action.data1.toUpperCase()+"CONFIGURATIONS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},m.closeDialog=_}hA.$inject=["$state","$mdDialog","$translate","toasty","actions","action","trigger","api","Auth","license","setting","crudPermissions"];const _A=hA,bA=n.p+"templates/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html/dialog.html";function yA(e,t,n,a,o,r,i,s,l){const c=this;function d(){"voice"===c.trigger.channel?(u().some(c.triggerAllConditions.rows,["field","queue"])&&(c.queues||function(){const e=[{id:401,type:"inbound"},{id:1501,type:"outbound"}];let n=null;l.isAdmin()?s.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){c.queues=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VOICEQUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){n=e.rows||[]})).then((function(){const n=[];for(let t=0;t<e.length;t++)n.push(s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:e[t].id}).$promise);return t.all(n)})).then((function(a){const o=u().map(a,(function(e){return e&&e.rows?e.rows[0]:null})),r=[];for(let t=0;t<e.length;t++){const a=u().find(o,["sectionId",e[t].id]);if(a)if(a.autoAssociation){const a=[];n.forEach((function(n){n.type===e[t].type&&a.push(n)})),r.push({rows:a,count:a.length})}else r.push(s.userProfileResource.get({sectionId:a.id}).$promise)}return t.all(r)})).then((function(e){const t=[],a=[];c.triggerAllConditions.rows.forEach((function(e){if("queue"===e.field){const t=u().find(n,{name:e.value});a.push(t)}}));for(let n=0;n<e.length;n++)(e[n].rows||[]).forEach((function(e){t.push(e)}));u().isEmpty(a)||a.forEach((function(e){if(!u().some(t,["resourceId",e.id])){const a=u().find(n,{id:e.id});a.canSelect=!1,t.push(a)}})),c.queues=t})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})}))}()),u().some(c.triggerAllConditions.rows,["field","routeId"])&&(c.outboundRoutes||(l.isAdmin()?s.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){c.outboundRoutes=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){c.outboundRoutes=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:403}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(c.outboundRoutes,{id:e.resourceId})}));let n=null;n=[],c.triggerAllConditions.rows.forEach((function(e){if("routeId"===e.field){const t=u().find(c.outboundRoutes,{id:Number(e.value)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(c.outboundRoutes,{id:e.id});n.canSelect=!1,t.push(n)}})),c.outboundRoutes=t}))}else{const e=[],t=[];c.triggerAllConditions.rows.forEach((function(e){if("routeId"===e.field){const n=u().find(c.outboundRoutes,{id:Number(e.value)});t.push(n)}}));for(let n=0;n<c.outboundRoutes.length;n++)u().some(t,{id:c.outboundRoutes[n].id})&&(c.outboundRoutes[n].canSelect=!1,e.push(c.outboundRoutes[n]));c.outboundRoutes=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})))),u().some(c.triggerAllConditions.rows,["field","agent"])&&(c.agents||(l.isAdmin()?s.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){c.agents=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){c.agents=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(c.agents,{id:e.resourceId})}));let n=null;n=[],c.triggerAllConditions.rows.forEach((function(e){if("agent"===e.field){const t=u().find(c.agents,{name:e.value});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(c.agents,{id:e.id});n.canSelect=!1,t.push(n)}})),c.agents=t}))}else{const e=[],t=[];c.triggerAllConditions.rows.forEach((function(e){if("agent"===e.field){const n=u().find(c.agents,{name:e.value});t.push(n)}}));for(let n=0;n<c.agents.length;n++)u().some(t,{id:c.agents[n].id})&&(c.agents[n].canSelect=!1,e.push(c.agents[n]));c.agents=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})}))))):function(){const e=c.trigger.channel,t=e+("chat"===e?"Websites":"Accounts"),n=e+("chat"===e?"Website":"Account");let a;switch(e){case"chat":a=502;break;case"fax":a=902;break;case"mail":a=602;break;case"openchannel":a=802;break;case"sms":a=702;break;case"whatsapp":a=2102}l.isAdmin()?s[n].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){c[t]=e.rows||[]})).catch((function(t){i.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GET_"+e.toUpperCase()+e=="chat"?"WEBSITES":"ACCOUNTS",msg:t.data?JSON.stringify(t.data):t.toString()})})):s[n].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){c[t]=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:a}).$promise})).then((function(e){const n=e&&e.rows?e.rows[0]:null;if(n){if(!n.autoAssociation)return s.userProfileResource.get({sectionId:n.id}).$promise.then((function(e){const n=u().map(e.rows,(function(e){return u().find(c[t],{id:e.resourceId})}));let a=null;a=[],c.triggerAllConditions.rows.forEach((function(e){if("account"===e.field){const n=u().find(c[t],{id:Number(e.value)});a.push(n)}})),u().isEmpty(a)||a.forEach((function(e){if(!u().some(n,["id",e.id])){const a=u().find(c[t],{id:e.id});a.canSelect=!1,n.push(a)}})),c[t]=n}))}else{const e=[],n=[];c.triggerAllConditions.rows.forEach((function(e){if("account"===e.field){const a=u().find(c[t],{id:Number(e.value)});n.push(a)}}));for(let a=0;a<c[t].length;a++)u().some(n,{id:c[t][a].id})&&(c[t][a].canSelect=!1,e.push(c[t][a]));c[t]=e}})).catch((function(t){i.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GET_"+e.toUpperCase()+e=="chat"?"WEBSITES":"ACCOUNTS",msg:t.data?JSON.stringify(t.data):t.toString()})}))}()}function f(e){c.triggerAllConditions=e||{count:0,rows:[]},d()}function m(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=s.trigger.getAllConditions(c.query,f).$promise}function p(e,t){s.condition.delete({id:e.id}).$promise.then((function(){m(),t&&i.success({title:n.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){c.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETtrigger"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrigger",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}c.currentUser=l.getCurrentUser(),c.trigger={},c.triggerAllConditions={count:0,rows:[]},c.selectedTriggerAllConditions=[],c.query={fields:"id,field,operator,value,createdAt,updatedAt",limit:10,page:1},c.fields={queue:"Queue",lastevent:"Call_Status",routeId:"OutboundRoute",agent:"Agent",account:"Account",interaction:"Interaction",message:"Message"},c.callStatuses={abandoned:"Abandon",timeout:"Timeout",complete:"Hangup",rejected:"Reject",called:"Ring",connect:"Answer",nosuchnumber:"NoSuchNumber",busy:"Busy",noanswer:"NoAnswer",congestion:"Congestion",agentreject:"AgentReject"},c.messageStatuses={in:"Incoming",out:"Outgoing",accept:"Accepted",reject:"Rejected"},c.onInit=function(e,t){c.trigger=e,c.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},c.query.TriggerAllId=c.trigger.id,c.query.id=c.trigger.id,m()},c.success=f,c.getTriggerAllConditions=m,c.createOrEditTriggerAllCondition=function(e,t){o.show({controller:"CreateOrEditAllConditionDialogController",controllerAs:"vm",templateUrl:bA,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{trigger:c.trigger,allCondition:t,allConditions:c.triggerAllConditions.rows,license:null,setting:null,crudPermissions:c.crudPermissions}}).then((function(e){e&&(c.triggerAllConditions={count:e.length,rows:e},d())}))},c.exportSelectedTriggerAllConditions=function(){const e=angular.copy(c.selectedTriggerAllConditions);return c.selectedTriggerAllConditions=[],e},c.deleteConfirm=function(e,t){const a=o.confirm().title(n.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE")).ariaLabel("Delete condition").targetEvent(t).ok("OK").cancel(n.instant("APP.CANCEL"));o.show(a).then((function(){p(e,!0)}))},c.deleteSelectedTriggerAllConditions=function(e){const t=o.confirm().title(n.instant("TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE")).content(n.instant("TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE",{total:c.selectedTriggerAllConditions.length})).ariaLabel("Delete conditions").targetEvent(e).ok("OK").cancel(n.instant("APP.CANCEL"));o.show(t).then((function(){c.selectedTriggerAllConditions.forEach((function(e){p(e)})),c.selectedTriggerAllConditions=[],i.success({title:n.instant("TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE")})}))}}yA.$inject=["$scope","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const vA=yA;function AA(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){switch(p.allCondition.field){case"queue":p.queues||function(){const e=[{id:401,type:"inbound"},{id:1501,type:"outbound"}];let t=null;c.isAdmin()?l.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){p.queues=e.rows||[]})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VOICEQUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):l.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){t=e.rows||[]})).then((function(){const t=[];for(let n=0;n<e.length;n++)t.push(l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:e[n].id}).$promise);return n.all(t)})).then((function(a){const o=u().map(a,(function(e){return e&&e.rows?e.rows[0]:null})),r=[];for(let n=0;n<e.length;n++){const a=u().find(o,["sectionId",e[n].id]);if(a)if(a.autoAssociation){const a=[];t.forEach((function(t){t.type===e[n].type&&a.push(t)})),r.push({rows:a,count:a.length})}else r.push(l.userProfileResource.get({sectionId:a.id}).$promise)}return n.all(r)})).then((function(e){const n=[],a=[];p.triggerallConditions.rows.forEach((function(e){if("queue"===e.field){const n=u().find(t,{name:e.value});a.push(n)}}));for(let t=0;t<e.length;t++)(e[t].rows||[]).forEach((function(e){n.push(e)}));u().isEmpty(a)||a.forEach((function(e){if(!u().some(n,["resourceId",e.id])){const a=u().find(t,{id:e.id});a.canSelect=!1,n.push(a)}})),p.queues=n})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})}))}();break;case"routeId":p.outboundRoutes||(c.isAdmin()?l.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){p.outboundRoutes=e.rows||[]})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})):l.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){p.outboundRoutes=e.rows||[]})).then((function(){return l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:403}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return l.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(p.outboundRoutes,{id:e.resourceId})})),n=[];p.triggerallConditions.rows.forEach((function(e){if("routeId"===e.field){const t=u().find(p.outboundRoutes,{id:Number(e.value)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(p.outboundRoutes,{id:e.id});n.canSelect=!1,t.push(n)}})),p.outboundRoutes=t}))}else{const e=[],t=[];p.triggerallConditions.rows.forEach((function(e){if("routeId"===e.field){const n=u().find(p.outboundRoutes,{id:Number(e.value)});t.push(n)}}));for(let n=0;n<p.outboundRoutes.length;n++)u().some(t,{id:p.outboundRoutes[n].id})&&(p.outboundRoutes[n].canSelect=!1,e.push(p.outboundRoutes[n]));p.outboundRoutes=e}})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})));break;case"agent":p.agents||(c.isAdmin()?l.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){p.agents=e.rows||[]})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):l.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){p.agents=e.rows||[]})).then((function(){return l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return l.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(p.agents,{id:e.resourceId})})),n=[];p.triggerallConditions.rows.forEach((function(e){if("agent"===e.field){const t=u().find(p.agents,{name:e.value});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(p.agents,{id:e.id});n.canSelect=!1,t.push(n)}})),p.agents=t}))}else{const e=[],t=[];p.triggerallConditions.rows.forEach((function(e){if("agent"===e.field){const n=u().find(p.agents,{name:e.value});t.push(n)}}));for(let n=0;n<p.agents.length;n++)u().some(t,{id:p.agents[n].id})&&(p.agents[n].canSelect=!1,e.push(p.agents[n]));p.agents=e}})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})));break;case"account":!function(){const e=p.trigger.channel,t=e+("chat"===e?"Website":"Account");let n=null;switch(e){case"chat":n=502;break;case"fax":n=902;break;case"mail":n=602;break;case"openchannel":n=802;break;case"sms":n=702;break;case"whatsapp":n=2102}c.isAdmin()?l[t].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){p.accounts=e.rows||[]})).catch((function(t){o.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GET_"+e.toUpperCase()+e=="chat"?"WEBSITES":"ACCOUNTS",msg:t.data?JSON.stringify(t.data):t.toString()})})):l[t].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){p.accounts=e.rows||[]})).then((function(){return l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:n}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return l.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(p.accounts,{id:e.resourceId})})),n=[];p.triggerallConditions.rows.forEach((function(e){if("account"===e.field){const t=u().find(p.accounts,{id:Number(e.value)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(p.accounts,{id:e.id});n.canSelect=!1,t.push(n)}})),p.accounts=t}))}else{const e=[],t=[];p.triggerallConditions.rows.forEach((function(e){if("account"===e.field){const n=u().find(p.accounts,{id:Number(e.value)});t.push(n)}}));for(let n=0;n<p.accounts.length;n++)u().some(t,{id:p.accounts[n].id})&&(p.accounts[n].canSelect=!1,e.push(p.accounts[n]));p.accounts=e}})).catch((function(t){o.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GET_"+e.toUpperCase()+e=="chat"?"WEBSITES":"ACCOUNTS",msg:t.data?JSON.stringify(t.data):t.toString()})}))}()}}function h(e){t.hide(e)}p.currentUser=c.getCurrentUser(),p.allCondition=angular.copy(i),p.allConditions=angular.copy(r),p.setting=f,p.license=d,p.crudPermissions=m,p.hasModulePermissions={},p.newAllCondition=!1,p.errors=[],p.trigger=angular.copy(s),p.allCondition?g():(p.allCondition={operator:"equals"},p.newAllCondition=!0),p.allCondition.TriggerAllId=e.params.id||void 0,p.callStatuses=[{name:"Abandon",value:"abandoned"},{name:"Timeout",value:"timeout"},{name:"Hangup",value:"complete"},{name:"Reject",value:"rejected"},{name:"Ring",value:"called"},{name:"Answer",value:"connect"},{name:"NoSuchNumber",value:"nosuchnumber"},{name:"Busy",value:"busy"},{name:"NoAnswer",value:"noanswer"},{name:"Congestion",value:"congestion"},{name:"AgentReject",value:"agentreject"}],p.onFieldSelection=function(){g()},p.addNewAllCondition=function(){p.errors=[],l.trigger.addAllCondition({id:e.params.id},p.allCondition).$promise.then((function(e){p.allConditions.unshift(e.toJSON()),o.success({title:a.instant("TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE")}),h(p.allConditions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.condition.save"}];for(let t=0;t<e.data.errors.length;t+=1)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.condition.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.saveAllCondition=function(){p.errors=[],l.condition.update({id:p.allCondition.id},p.allCondition).$promise.then((function(){p.allConditions=u().map(p.allConditions,(function(e){return e.id===p.allCondition.id?p.allCondition:e})),o.success({title:a.instant("TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE")}),h(p.allConditions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.condition.update"}];for(let t=0;t<e.data.errors.length;t++)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.condition.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.deleteAllCondition=function(e){p.errors=[];const n=t.confirm({skipHide:!0}).title(a.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE")).ariaLabel("Delete condition").ok(a.instant("TOOLS.DELETE")).cancel(a.instant("TOOLS.CANCEL")).targetEvent(e);t.show(n).then((function(){l.condition.delete({id:p.allCondition.id}).$promise.then((function(){p.allConditions=u().filter(p.allConditions,(function(e){return e.id!==p.allCondition.id})),o.success({title:a.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE")}),h(p.allConditions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.condition.delete"}];for(let t=0;t<e.data.errors.length;t++)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.condition.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},p.closeDialog=h}AA.$inject=["$state","$mdDialog","$q","$translate","toasty","allConditions","allCondition","trigger","api","Auth","license","setting","crudPermissions"];const SA=AA,wA=n.p+"templates/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog.html";function EA(e,t,n,a,o,r,i,s,l){const c=this;function d(){"voice"===c.trigger.channel?(u().some(c.triggerAnyConditions.rows,["field","queue"])&&(c.queues||function(){const e=[{id:401,type:"inbound"},{id:1501,type:"outbound"}];let n=null;l.isAdmin()?s.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){c.queues=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VOICEQUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){n=e.rows||[]})).then((function(){const n=[];for(let t=0;t<e.length;t++)n.push(s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:e[t].id}).$promise);return t.all(n)})).then((function(a){const o=u().map(a,(function(e){return e&&e.rows?e.rows[0]:null})),r=[];for(let t=0;t<e.length;t++){const a=u().find(o,["sectionId",e[t].id]);if(a)if(a.autoAssociation){const a=[];n.forEach((function(n){n.type===e[t].type&&a.push(n)})),r.push({rows:a,count:a.length})}else r.push(s.userProfileResource.get({sectionId:a.id}).$promise)}return t.all(r)})).then((function(e){const t=[],a=[];c.triggerAnyConditions.rows.forEach((function(e){if("queue"===e.field){const t=u().find(n,{name:e.value});a.push(t)}}));for(let n=0;n<e.length;n++)(e[n].rows||[]).forEach((function(e){t.push(e)}));u().isEmpty(a)||a.forEach((function(e){if(!u().some(t,["resourceId",e.id])){const a=u().find(n,{id:e.id});a.canSelect=!1,t.push(a)}})),c.queues=t})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})}))}()),u().some(c.triggerAnyConditions.rows,["field","routeId"])&&(c.outboundRoutes||(l.isAdmin()?s.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){c.outboundRoutes=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){c.outboundRoutes=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:403}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(c.outboundRoutes,{id:e.resourceId})}));let n=null;n=[],c.triggerAnyConditions.rows.forEach((function(e){if("routeId"===e.field){const t=u().find(c.outboundRoutes,{id:Number(e.value)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(c.outboundRoutes,{id:e.id});n.canSelect=!1,t.push(n)}})),c.outboundRoutes=t}))}else{const e=[],t=[];c.triggerAnyConditions.rows.forEach((function(e){if("routeId"===e.field){const n=u().find(c.outboundRoutes,{id:Number(e.value)});t.push(n)}}));for(let n=0;n<c.outboundRoutes.length;n++)u().some(t,{id:c.outboundRoutes[n].id})&&(c.outboundRoutes[n].canSelect=!1,e.push(c.outboundRoutes[n]));c.outboundRoutes=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})))),u().some(c.triggerAnyConditions.rows,["field","agent"])&&(c.agents||(l.isAdmin()?s.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){c.agents=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){c.agents=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(c.agents,{id:e.resourceId})}));let n=null;n=[],c.triggerAnyConditions.rows.forEach((function(e){if("agent"===e.field){const t=u().find(c.agents,{name:e.value});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(c.agents,{id:e.id});n.canSelect=!1,t.push(n)}})),c.agents=t}))}else{const e=[],t=[];c.triggerAnyConditions.rows.forEach((function(e){if("agent"===e.field){const n=u().find(c.agents,{name:e.value});t.push(n)}}));for(let n=0;n<c.agents.length;n++)u().some(t,{id:c.agents[n].id})&&(c.agents[n].canSelect=!1,e.push(c.agents[n]));c.agents=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})}))))):function(){const e=c.trigger.channel,t=e+("chat"===e?"Websites":"Accounts"),n=e+("chat"===e?"Website":"Account");let a;switch(e){case"chat":a=502;break;case"fax":a=902;break;case"mail":a=602;break;case"openchannel":a=802;break;case"sms":a=702;break;case"whatsapp":a=2102}if(l.isAdmin())s[n].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){c[t]=e.rows||[]})).catch((function(t){i.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GET_"+e.toUpperCase()+e=="chat"?"WEBSITES":"ACCOUNTS",msg:t.data?JSON.stringify(t.data):t.toString()})}));else{const e=c.trigger.channel;s[n].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){c[t]=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:c.currentUser.userProfileId,sectionId:a}).$promise})).then((function(e){const n=e&&e.rows?e.rows[0]:null;if(n){if(!n.autoAssociation)return s.userProfileResource.get({sectionId:n.id}).$promise.then((function(e){const n=u().map(e.rows,(function(e){return u().find(c[t],{id:e.resourceId})}));let a=null;a=[],c.triggerAnyConditions.rows.forEach((function(e){if("account"===e.field){const n=u().find(c[t],{id:Number(e.value)});a.push(n)}})),u().isEmpty(a)||a.forEach((function(e){if(!u().some(n,["id",e.id])){const a=u().find(c[t],{id:e.id});a.canSelect=!1,n.push(a)}})),c[t]=n}))}else{const e=[],n=[];c.triggerAnyConditions.rows.forEach((function(e){if("account"===e.field){const a=u().find(c[t],{id:Number(e.value)});n.push(a)}}));for(let a=0;a<c[t].length;a++)u().some(n,{id:c[t][a].id})&&(c[t][a].canSelect=!1,e.push(c[t][a]));c[t]=e}})).catch((function(t){i.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GET_"+e.toUpperCase()+e=="chat"?"WEBSITES":"ACCOUNTS",msg:t.data?JSON.stringify(t.data):t.toString()})}))}}()}function f(e){c.triggerAnyConditions=e||{count:0,rows:[]},d()}function m(){c.query.offset=(c.query.page-1)*c.query.limit,c.promise=s.trigger.getAnyConditions(c.query,f).$promise}function p(e,t){s.condition.delete({id:e.id}).$promise.then((function(){m(),t&&i.success({title:n.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){c.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETtrigger"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrigger",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}c.currentUser=l.getCurrentUser(),c.trigger={},c.triggerAnyConditions={count:0,rows:[]},c.selectedTriggerAnyConditions=[],c.query={fields:"id,field,operator,value,createdAt,updatedAt",limit:10,page:1},c.fields={queue:"Queue",lastevent:"Call_Status",routeId:"OutboundRoute",agent:"Agent",account:"Account",interaction:"Interaction",message:"Message"},c.callStatuses={abandoned:"Abandon",timeout:"Timeout",complete:"Hangup",rejected:"Reject",called:"Ring",connect:"Answer",nosuchnumber:"NoSuchNumber",busy:"Busy",noanswer:"NoAnswer",congestion:"Congestion",agentreject:"AgentReject"},c.messageStatuses={in:"Incoming",out:"Outgoing",accept:"Accepted",reject:"Rejected"},c.onInit=function(e,t){c.trigger=e,c.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},c.query.TriggerAnyId=c.trigger.id,c.query.id=c.trigger.id,m()},c.success=f,c.getTriggerAnyConditions=m,c.createOrEditTriggerAnyCondition=function(e,t){o.show({controller:"CreateOrEditAnyConditionDialogController",controllerAs:"vm",templateUrl:wA,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{trigger:c.trigger,anyCondition:t,anyConditions:c.triggerAnyConditions.rows,license:null,setting:null,crudPermissions:c.crudPermissions}}).then((function(e){e&&(c.triggerAnyConditions={count:e.length,rows:e},d())}))},c.exportSelectedTriggerAnyConditions=function(){const e=angular.copy(c.selectedTriggerAnyConditions);return c.selectedTriggerAnyConditions=[],e},c.deleteConfirm=function(e,t){const a=o.confirm().title(n.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE")).ariaLabel("Delete condition").targetEvent(t).ok("OK").cancel(n.instant("APP.CANCEL"));o.show(a).then((function(){p(e,!0)}))},c.deleteTriggerAnyCondition=p,c.deleteSelectedTriggerAnyConditions=function(e){const t=o.confirm().title(n.instant("TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE")).content(n.instant("TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE",{total:c.selectedTriggerAnyConditions.length})).ariaLabel("Delete conditions").targetEvent(e).ok("OK").cancel(n.instant("APP.CANCEL"));o.show(t).then((function(){c.selectedTriggerAnyConditions.forEach((function(e){p(e)})),c.selectedTriggerAnyConditions=[],i.success({title:n.instant("TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE")})}))}}EA.$inject=["$scope","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const CA=EA;function TA(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){switch(p.anyCondition.field){case"queue":p.queues||function(){const e=[{id:401,type:"inbound"},{id:1501,type:"outbound"}];let t=null;c.isAdmin()?l.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){p.queues=e.rows||[]})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VOICEQUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):l.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){t=e.rows||[]})).then((function(){const t=[];for(let n=0;n<e.length;n++)t.push(l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:e[n].id}).$promise);return n.all(t)})).then((function(a){const o=u().map(a,(function(e){return e&&e.rows?e.rows[0]:null})),r=[];for(let n=0;n<e.length;n++){const a=u().find(o,["sectionId",e[n].id]);if(a)if(a.autoAssociation){const a=[];t.forEach((function(t){t.type===e[n].type&&a.push(t)})),r.push({rows:a,count:a.length})}else r.push(l.userProfileResource.get({sectionId:a.id}).$promise)}return n.all(r)})).then((function(e){const n=[],a=[];p.triggerAnyConditions.rows.forEach((function(e){if("queue"===e.field){const n=u().find(t,{name:e.value});a.push(n)}}));for(let t=0;t<e.length;t++)(e[t].rows||[]).forEach((function(e){n.push(e)}));u().isEmpty(a)||a.forEach((function(e){if(!u().some(n,["resourceId",e.id])){const a=u().find(t,{id:e.id});a.canSelect=!1,n.push(a)}})),p.queues=n})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})}))}();break;case"routeId":p.outboundRoutes||(c.isAdmin()?l.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){p.outboundRoutes=e.rows||[]})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})):l.voiceExtension.get({fields:"id,exten",type:"outbound",VoiceExtensionId:"null",nolimit:"true"}).$promise.then((function(e){p.outboundRoutes=e.rows||[]})).then((function(){return l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:403}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return l.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(p.outboundRoutes,{id:e.resourceId})}));let n=null;n=[],p.triggerAnyConditions.rows.forEach((function(e){if("routeId"===e.field){const t=u().find(p.outboundRoutes,{id:Number(e.value)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(p.outboundRoutes,{id:e.id});n.canSelect=!1,t.push(n)}})),p.outboundRoutes=t}))}else{const e=[],t=[];p.triggerAnyConditions.rows.forEach((function(e){if("routeId"===e.field){const n=u().find(p.outboundRoutes,{id:Number(e.value)});t.push(n)}}));for(let n=0;n<p.outboundRoutes.length;n++)u().some(t,{id:p.outboundRoutes[n].id})&&(p.outboundRoutes[n].canSelect=!1,e.push(p.outboundRoutes[n]));p.outboundRoutes=e}})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_OUTBOUNDROUTES",msg:e.data?JSON.stringify(e.data):e.toString()})})));break;case"agent":p.agents||(c.isAdmin()?l.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){p.agents=e.rows||[]})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):l.user.get({fields:"id,name,fullname",sort:"name",role:"agent",nolimit:"true"}).$promise.then((function(e){p.agents=e.rows||[]})).then((function(){return l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return l.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(p.agents,{id:e.resourceId})}));let n=null;n=[],p.triggerAnyConditions.rows.forEach((function(e){if("agent"===e.field){const t=u().find(p.agents,{name:e.value});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(p.agents,{id:e.id});n.canSelect=!1,t.push(n)}})),p.agents=t}))}else{const e=[],t=[];p.triggerAnyConditions.rows.forEach((function(e){if("agent"===e.field){const n=u().find(p.agents,{name:e.value});t.push(n)}}));for(let n=0;n<p.agents.length;n++)u().some(t,{id:p.agents[n].id})&&(p.agents[n].canSelect=!1,e.push(p.agents[n]));p.agents=e}})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})));break;case"account":!function(){const e=p.trigger.channel,t=e+("chat"===e?"Website":"Account");let n;switch(e){case"chat":n=502;break;case"fax":n=902;break;case"mail":n=602;break;case"openchannel":n=802;break;case"sms":n=702;break;case"whatsapp":n=2102}c.isAdmin()?l[t].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){p.accounts=e.rows||[]})).catch((function(t){o.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GET_"+e.toUpperCase()+e=="chat"?"WEBSITES":"ACCOUNTS",msg:t.data?JSON.stringify(t.data):t.toString()})})):l[t].get({fields:"id,name",sort:"id",nolimit:"true"}).$promise.then((function(e){p.accounts=e.rows||[]})).then((function(){return l.userProfileSection.get({userProfileId:p.currentUser.userProfileId,sectionId:n}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return l.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(p.accounts,{id:e.resourceId})}));let n=null;n=[],p.triggerAnyConditions.rows.forEach((function(e){if("account"===e.field){const t=u().find(p.accounts,{id:Number(e.value)});n.push(t)}})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(p.accounts,{id:e.id});n.canSelect=!1,t.push(n)}})),p.accounts=t}))}else{const e=[],t=[];p.triggerAnyConditions.rows.forEach((function(e){if("account"===e.field){const n=u().find(p.accounts,{id:Number(e.value)});t.push(n)}}));for(let n=0;n<p.accounts.length;n++)u().some(t,{id:p.accounts[n].id})&&(p.accounts[n].canSelect=!1,e.push(p.accounts[n]));p.accounts=e}})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_"+p.trigger.channel.toUpperCase()+p.trigger.channel=="chat"?"WEBSITES":"ACCOUNTS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}()}}function h(e){t.hide(e)}p.currentUser=c.getCurrentUser(),p.anyCondition=angular.copy(i),p.anyConditions=angular.copy(r),p.setting=f,p.license=d,p.crudPermissions=m,p.hasModulePermissions={},p.newAnyCondition=!1,p.errors=[],p.trigger=angular.copy(s),p.anyCondition?g():(p.anyCondition={operator:"equals"},p.newAnyCondition=!0),p.anyCondition.TriggerAnyId=e.params.id||void 0,p.callStatuses=[{name:"Abandon",value:"abandoned"},{name:"Timeout",value:"timeout"},{name:"Hangup",value:"complete"},{name:"Reject",value:"rejected"},{name:"Ring",value:"called"},{name:"Answer",value:"connect"},{name:"NoSuchNumber",value:"nosuchnumber"},{name:"Busy",value:"busy"},{name:"NoAnswer",value:"noanswer"},{name:"Congestion",value:"congestion"},{name:"AgentReject",value:"agentreject"}],p.onFieldSelection=function(){g()},p.addNewAnyCondition=function(){p.errors=[],l.trigger.addAnyCondition({id:e.params.id},p.anyCondition).$promise.then((function(e){p.anyConditions.unshift(e.toJSON()),o.success({title:a.instant("TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE")}),h(p.anyConditions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.condition.save"}];for(let t=0;t<e.data.errors.length;t+=1)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.condition.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.saveAnyCondition=function(){p.errors=[],l.condition.update({id:p.anyCondition.id},p.anyCondition).$promise.then((function(){p.anyConditions=u().map(p.anyConditions,(function(e){return e.id===p.anyCondition.id?p.anyCondition:e})),o.success({title:a.instant("TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE")}),h(p.anyConditions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.condition.update"}];for(let t=0;t<e.data.errors.length;t++)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.condition.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.deleteAllCondition=function(e){p.errors=[];const n=t.confirm({multiple:!0}).title(a.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE")).ariaLabel("Delete condition").ok(a.instant("APP.DELETE")).cancel(a.instant("APP.CANCEL")).targetEvent(e);t.show(n).then((function(){l.condition.delete({id:p.anyCondition.id}).$promise.then((function(){p.anyConditions=u().filter(p.anyConditions,(function(e){return e.id!==p.anyCondition.id})),o.success({title:a.instant("TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE")}),h(p.anyConditions)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.condition.delete"}];for(let t=0;t<e.data.errors.length;t++)o.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.condition.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},p.closeDialog=h}TA.$inject=["$state","$mdDialog","$q","$translate","toasty","anyConditions","anyCondition","trigger","api","Auth","license","setting","crudPermissions"];const IA=TA;function kA(e,t,n,a,o,r,i,s,l){const c=this;c.currentUser=i.getCurrentUser(),c.license=n,c.setting=a,c.trigger=s||e.params.trigger||{},c.selectedTab=e.params.tab||0,e.params.crudPermissions?c.crudPermissions=e.params.crudPermissions:(c.userProfileSection=l&&1==l.count?l.rows[0]:null,c.crudPermissions=i.parseCrudPermissions(c.userProfileSection?c.userProfileSection.crudPermissions:null)),c.gotoTriggers=function(){e.go("app.tools.triggers",{},{reload:"app.tools.triggers"})},c.saveTrigger=function(){o.trigger.update({id:c.trigger.id},c.trigger).$promise.then((function(){r.success({title:t.instant("TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE")})})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrigger",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}kA.$inject=["$state","$translate","license","setting","api","toasty","Auth","trigger","userProfileSection"];const DA=kA,xA=n.p+"templates/main/apps/tools/views/triggers/create/dialog.html/dialog.html";function MA(e,t,n,a,o,r,i,s,l,c,u,d,f,m){const p=this;function g(e){t.go("app.tools.triggers.edit",{id:e.id,trigger:e,crudPermissions:p.crudPermissions})}function h(e){p.triggers=e||{count:0,rows:[]}}function _(){p.query.offset=(p.query.page-1)*p.query.limit,d.isAdmin()?p.promise=c.trigger.get(p.query,h).$promise:(p.query.id=p.userProfile.id,p.query.section="Triggers",p.promise=c.userProfile.getResources(p.query,h).$promise)}function b(e,t){c.trigger.delete({id:e.id}).$promise.then((function(){_(),t&&u.success({title:r.instant("TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEtrigger"}];for(let t=0;t<e.data.errors.length;t++)u.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else u.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEtrigger",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}p.license=f,p.setting=m,p.currentUser=d.getCurrentUser(),p.triggers=i||{count:0,rows:[]},p.userProfile=s,p.userProfileSection=l&&1==l.count?l.rows[0]:null,p.crudPermissions=d.parseCrudPermissions(p.userProfileSection?p.userProfileSection.crudPermissions:null),p.selectedTriggers=[],p.query={fields:"id,name,channel,status,description,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},p.goToEditState=g,p.createOrEditTrigger=function(e,t){if(p.crudPermissions.readOnly||p.crudPermissions.canDelete&&!p.crudPermissions.canEdit)return void g(t);n.show({controller:"CreateOrEditTriggerDialogController",controllerAs:"vm",templateUrl:xA,parent:angular.element(a.body),targetEvent:e,clickOutsideToClose:!0,locals:{trigger:t,triggers:p.triggers.rows,license:p.license,setting:p.setting,crudPermissions:p.crudPermissions}}).then((function(e){e&&(p.triggers={count:e.length,rows:e})}))},p.success=h,p.getTriggers=_,p.deleteconfirm=function(e,t){const a=n.confirm().title(r.instant("TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE")).content(r.instant("TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE",{name:e.name})).ariaLabel("Delete trigger").targetEvent(t).ok("OK").cancel(r.instant("APP.CANCEL"));n.show(a).then((function(){b(e,!0)}))},p.exportSelectedTriggers=function(){const e=angular.copy(p.selectedTriggers);return p.selectedTriggers=[],e},p.deleteSelectedTriggers=function(e){const t=n.confirm().title(r.instant("TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE")).content(r.instant("TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE",{total:p.selectedTriggers.length})).ariaLabel("Delete triggers").targetEvent(e).ok("OK").cancel(r.instant("APP.CANCEL"));n.show(t).then((function(){p.selectedTriggers.forEach((function(e){b(e)})),p.selectedTriggers=[],u.success({title:r.instant("TOOLS.NOTIFICATIONS.TRIGGERS_DELETED_SUCCESS_TITLE")})}))},p.deselectTriggers=function(){p.selectedTriggers=[]},p.selectAllTriggers=function(){p.selectedTriggers=p.triggers.rows};let y=!0,v=1;e.$watch("vm.query.filter",(function(e,t){y?o((function(){y=!1})):(t||(v=p.query.page),e!==t&&(p.query.page=1),e||(p.query.page=v),_())}))}MA.$inject=["$scope","$state","$mdDialog","$document","$timeout","$translate","triggers","userProfile","userProfileSection","api","toasty","Auth","license","setting"];const PA=MA;function OA(e){e.state("app.tools.triggers",{url:"/triggers",views:{"content@app":{templateUrl:cA,controller:"TriggersController as vm"}},resolve:{triggers:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("trigger@get",{fields:"createdAt,updatedAt,id,name,channel,status,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Triggers",fields:"createdAt,updatedAt,id,name,channel,status,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1010})}]},authenticate:!0,permissionId:1010,bodyClass:"tools"}).state("app.tools.triggers.edit",{url:"/:id?tab",params:{trigger:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:uA,controller:"TriggerController as vm"}},resolve:{trigger:["apiResolver","$stateParams",function(e,t){return e.resolve("trigger@get",{fields:"createdAt,updatedAt,id,name,channel,status,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1010})}]},authenticate:!0,permissionId:1010,bodyClass:"tools"})}OA.$inject=["$stateProvider"],angular.module("app.tools.triggers",[]).config(OA).controller("CreateOrEditTriggerDialogController",fA).controller("TriggerActionsController",gA).controller("CreateOrEditActionDialogController",_A).controller("TriggerAllConditionsController",vA).controller("CreateOrEditAllConditionDialogController",SA).controller("TriggerAnyConditionsController",CA).controller("CreateOrEditAnyConditionDialogController",IA).controller("TriggerController",DA).controller("TriggersController",PA);const RA=n.p+"templates/main/apps/tools/views/cannedAnswers/cannedAnswers.html/cannedAnswers.html",NA=n.p+"templates/main/apps/tools/views/customDashboards/customDashboards.html/customDashboards.html",LA=n.p+"templates/main/apps/tools/views/customDashboards/edit/view.html/view.html",$A=n.p+"templates/main/apps/tools/views/intervals/intervals.html/intervals.html",UA=n.p+"templates/main/apps/tools/views/intervals/edit/view.html/view.html",jA=n.p+"templates/main/apps/tools/views/pauses/pauses.html/pauses.html",FA=n.p+"templates/main/apps/tools/views/schedules/schedules.html/schedules.html",qA=n.p+"templates/main/apps/tools/views/sounds/sounds.html/sounds.html",YA=n.p+"templates/main/apps/tools/views/tags/tags.html/tags.html",HA=n.p+"templates/main/apps/tools/views/templates/templates.html/templates.html",BA=n.p+"templates/main/apps/tools/views/trunks/trunks.html/trunks.html",GA=n.p+"templates/main/apps/tools/views/trunks/edit/view.html/view.html",VA=n.p+"templates/main/apps/tools/views/variables/variables.html/variables.html",WA=n.p+"templates/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog.html";function QA(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.cannedAnswers=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="cannedAnswers",b.listOrder="",b.listOrderAsc=null,b.selectedCannedAnswers=[],b.query={fields:"createdAt,updatedAt,id,key,value,description",sort:"-updatedAt",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditCannedAnswerDialogController",controllerAs:"vm",templateUrl:WA,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{cannedAnswer:e,cannedAnswers:b.cannedAnswers.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("cannedAnswer")+"?").htmlContent("<b>"+(e.name||"cannedAnswer")+"</b> will be deleted.").ariaLabel("delete cannedAnswer").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getCannedAnswers=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.cannedAnswer.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="CannedAnswers",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditCannedAnswer=function(e,t){o.show({controller:"CreateOrEditCannedAnswerDialogController",controllerAs:"vm",templateUrl:WA,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{cannedAnswer:t,cannedAnswers:b.cannedAnswers.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteCannedAnswer=S,b.exportSelectedCannedAnswers=function(){const e=angular.copy(b.selectedCannedAnswers);return b.selectedCannedAnswers=[],e},b.deleteSelectedCannedAnswers=function(e){const t=o.confirm().title("Are you sure want to delete the selected cannedAnswers?").htmlContent("<b>"+b.selectedCannedAnswers.length+" selected</b> will be deleted.").ariaLabel("delete CannedAnswers").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedCannedAnswers.forEach((function(e){S(e)})),b.selectedCannedAnswers=[]}))},b.deselectCannedAnswers=function(){b.selectedCannedAnswers=[]},b.selectAllCannedAnswers=function(){b.selectedCannedAnswers=b.cannedAnswers.rows};let y=!0,v=1;function A(e){b.cannedAnswers=e||{count:0,rows:[]}}function S(e){f.cannedAnswer.delete({id:e.id}).$promise.then((function(){u().remove(b.cannedAnswers.rows,{id:e.id}),b.cannedAnswers.count-=1,b.cannedAnswers.rows.length||b.getCannedAnswers(),p.success({title:u().startCase("CannedAnswer")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEcannedAnswer"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEcannedAnswer",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getCannedAnswers())}))}QA.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","cannedAnswers","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const zA=QA;function KA(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_CANNEDANSWER",g.cannedAnswer=angular.copy(l),g.cannedAnswers=s,g.newCannedAnswer=!1,g.cannedAnswer||(g.cannedAnswer={},g.title="TOOLS.NEW_CANNEDANSWER",g.newCannedAnswer=!0),g.addNewCannedAnswer=function(){g.errors=[],c.cannedAnswer.save(g.cannedAnswer).$promise.then((function(e){g.cannedAnswers.unshift(e.toJSON()),i.success({title:"CannedAnswer properly created",msg:g.cannedAnswer.name?g.cannedAnswer.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveCannedAnswer=function(){g.errors=[],c.cannedAnswer.update({id:g.cannedAnswer.id},g.cannedAnswer).$promise.then((function(e){const t=u().find(g.cannedAnswers,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"CannedAnswer properly saved!",msg:g.cannedAnswer.name?g.cannedAnswer.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteCannedAnswer=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The cannedAnswer will be deleted.").ariaLabel("Delete CannedAnswer").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cannedAnswer.delete({id:g.cannedAnswer.id}).$promise.then((function(){u().remove(g.cannedAnswers,{id:g.cannedAnswer.id}),i.success({title:"CannedAnswer properly deleted!",msg:(g.cannedAnswer.name||"cannedAnswer")+" has been deleted!"}),h(g.cannedAnswer)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}KA.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","cannedAnswers","cannedAnswer","api","Auth","license","setting","crudPermissions"];const JA=KA;function XA(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_CUSTOMDASHBOARD",g.customDashboard=angular.copy(l),g.customDashboards=s,g.newCustomDashboard=!1,g.customDashboard||(g.customDashboard={},g.title="TOOLS.NEW_CUSTOMDASHBOARD",g.newCustomDashboard=!0),g.addNewCustomDashboard=function(){g.errors=[],c.dashboard.save(g.customDashboard).$promise.then((function(e){g.customDashboards.unshift(e.toJSON()),i.success({title:"CustomDashboard properly created",msg:g.customDashboard.name?g.customDashboard.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.dashboard.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.dashboard.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveCustomDashboard=function(){g.errors=[],c.dashboard.update({id:g.customDashboard.id},g.customDashboard).$promise.then((function(e){const t=u().find(g.customDashboards,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"CustomDashboard properly saved!",msg:g.customDashboard.name?g.customDashboard.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.dashboard.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.dashboard.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteCustomDashboard=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The customDashboard will be deleted.").ariaLabel("Delete CustomDashboard").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.dashboard.delete({id:g.customDashboard.id}).$promise.then((function(){u().remove(g.customDashboards,{id:g.customDashboard.id}),i.success({title:"CustomDashboard properly deleted!",msg:(g.customDashboard.name||"customDashboard")+" has been deleted!"}),h(g.customDashboard)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.dashboard.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.dashboard.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}XA.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","customDashboards","customDashboard","api","Auth","license","setting","crudPermissions"];const ZA=XA,eS=n.p+"templates/main/apps/tools/views/customDashboards/create/dialog.html/dialog.html",tS=n.p+"templates/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone.html";function nS(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.customDashboards=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="customDashboards",b.listOrder="",b.listOrderAsc=null,b.selectedCustomDashboards=[],b.query={fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.tools.customDashboards.edit",{id:e.id,customDashboard:e,crudPermissions:b.crudPermissions})},b.clonedialog=function(e,t){o.show({controller:"CustomDashboardcloneController",controllerAs:"vm",templateUrl:tS,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{customDashboard:e,customDashboards:b.customDashboards?b.customDashboards.rows:[],crudPermissions:b.crudPermissions}})},b.gotodashboardgoto=function(e){n.go("app.dashboards.custom",{id:e.id})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("customDashboard")+"?").htmlContent("<b>"+(e.name||"customDashboard")+"</b> will be deleted.").ariaLabel("delete customDashboard").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getCustomDashboards=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.dashboard.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="CustomDashboards",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditCustomDashboard=function(e,t){o.show({controller:"CreateOrEditCustomDashboardDialogController",controllerAs:"vm",templateUrl:eS,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{customDashboard:t,customDashboards:b.customDashboards.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteCustomDashboard=S,b.exportSelectedCustomDashboards=function(){const e=angular.copy(b.selectedCustomDashboards);return b.selectedCustomDashboards=[],e},b.deleteSelectedCustomDashboards=function(e){const t=o.confirm().title("Are you sure want to delete the selected customDashboards?").htmlContent("<b>"+b.selectedCustomDashboards.length+" selected</b> will be deleted.").ariaLabel("delete CustomDashboards").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedCustomDashboards.forEach((function(e){S(e)})),b.selectedCustomDashboards=[]}))},b.deselectCustomDashboards=function(){b.selectedCustomDashboards=[]},b.selectAllCustomDashboards=function(){b.selectedCustomDashboards=b.customDashboards.rows};let y=!0,v=1;function A(e){b.customDashboards=e||{count:0,rows:[]}}function S(e){f.dashboard.delete({id:e.id}).$promise.then((function(){u().remove(b.customDashboards.rows,{id:e.id}),b.customDashboards.count-=1,b.customDashboards.rows.length||b.getCustomDashboards(),p.success({title:u().startCase("CustomDashboard")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdashboard"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdashboard",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getCustomDashboards())}))}nS.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","customDashboards","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const aS=nS;function oS(e,t,n,a,o,r,i){const s=this;function l(t){e.hide(t)}s.newCustomDashboard=!0,s.customDashboard=angular.copy(o),s.customDashboards=r,s.title=i.instant("TOOLS.CLONE_CUSTOMDASHBOARD"),o&&o.name&&(s.title+=": "+o.name),s.cloneCustomDashboard=function(){return a.dashboard.clone({id:o.id,includeAll:!0},s.customDashboard).$promise.then((function(e){s.customDashboards.unshift(e.toJSON()),n.success({title:"CustomDashboard properly cloned",msg:s.customDashboard.name?s.customDashboard.name+" has been cloned!":""}),t.go("app.tools.customDashboards.edit",{id:e.id}),l(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){s.errors=e.data.errors||[{message:e.toString(),type:"api.dashboard.clone"}];for(let t=0;t<e.data.errors.length;t+=1)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.dashboard.clone",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},s.closeDialog=l}oS.$inject=["$mdDialog","$state","toasty","api","customDashboard","customDashboards","$translate"];const rS=oS,iS=n.p+"templates/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog.html";lS.$inject=["$mdDialog","$document","socket","toasty","api"];const sS={counter:Nr,"pie-chart":Lr,"multibar-chart":$r,"web-report":Ur};function lS(e,t,n,a,o){const r=this;function i(e,t,n){return o.dashboardItem.update(n).$promise.catch((function(e){console.error(e)}))}r.customDashboard={},r.voiceQueues=o.rpc.getVoiceQueues({fields:"id,name"}),r.init=function(e,t){return r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.customDashboard=e,r.customDashboard.draggable={enabled:!0,handle:".draggable",stop:i},r.customDashboard.resizable={enabled:!0,handle:".resizable",stop:i},r.customDashboard.widgets=[],o.dashboard.getItems({id:e.id}).$promise.then((function(e){if(e&&e.count&&e.rows)for(let t=0;t<e.rows.length;t+=1)e.rows[t].voiceQueues=r.voiceQueues,e.rows[t].voiceQueuesSelected=u().map(r.voiceQueues.rows,"id"),e.rows[t].templateUrl=sS[e.rows[t].type],r.customDashboard.widgets.push(e.rows[t])})).catch((function(e){console.error(e)}))},r.createOrEditWidget=function(n){if(n&&n.attrs)for(let e=0;e<n.attrs.length;e+=1)"attrReport"===n.attrs[e].name&&(n.reportType=n.attrs[e].type),n[n.attrs[e].name]=n.attrs[e].value;e.show({controller:"CreateOrEditDashboardItemDialogController",controllerAs:"vm",templateUrl:iS,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{dashboarditem:n,dashboard:r.customDashboard.widgets,license:null,setting:null,crudPermissions:r.crudPermissions}}).then((function(e){if(e)for(let t=0;t<r.customDashboard.widgets.length;t+=1)r.customDashboard.widgets[t].id===e.id&&(r.customDashboard.widgets[t].attrs=e.attrs,r.customDashboard.widgets[t].voiceQueues=r.voiceQueues,r.customDashboard.widgets[t].voiceQueuesSelected=u().map(r.voiceQueues.rows,"id"),r.customDashboard.widgets[t].templateUrl=sS[r.customDashboard.widgets[t].type])}))},r.deleteWidget=function(t){const n=e.confirm().title("Would you like to delete "+t.title+"?").textContent("").ariaLabel("Delete Widget").ok("YES").cancel("NO");e.show(n).then((function(){return o.dashboardItem.delete({id:t.id}).$promise.then((function(){u().remove(r.customDashboard.widgets,{id:t.id}),a.success({title:"Widget deleted!",msg:t.name?t.name+" has been deleted!":"Widget has been deleted!"})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){r.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETE.customDashboard"}];for(let t=0;t<e.data.errors.length;t++)a.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdashboard",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()});console.error(e)}))}))}}const cS=lS,uS=n.p+"templates/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html/treeReports.html";function dS(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_DASHBOARDITEM",g.dashboarditem=angular.copy(l),g.dashboard=s,g.newDashboardItem=!1,g.selectedReport=[],g.query={fields:"createdAt,updatedAt,id,name,description,table,parent,conditions,joins",limit:10,page:1,sort:"-updatedAt"},g.dashboarditem?"web-report"==g.dashboarditem.type&&(g.apiName="custom"===g.dashboarditem.reportType?"analyticCustomReport":"analyticDefaultReport",c[g.apiName].get({fields:"id,name,parent"}).$promise.then((function(e){g.currentReport=u().find(e.rows,{id:g.dashboarditem.attrReport}),g.dashboarditem.report=g.currentReport.name,g.query.parent=g.currentReport.parent}))):(g.dashboarditem={type:"counter",titleFontSize:12,attrUrl:"https://",attrHourFormat:"HH:mm:ss",attrTimezone:"0.00",attrMetric:"total",attrSerie1:"total",attrSerie2:"null",attrSerie3:"null",attrRefresh:10,attrFontSize:20,foreground:"#2196f3",background:"#ffffff"},g.title="TOOLS.NEW_DASHBOARDITEM",g.newDashboardItem=!0),g.addNewDashboardItem=function(){g.errors=[],c.dashboard.addItem({id:t.params.id},g.dashboarditem).$promise.then((function(e){g.dashboard.unshift(e.toJSON()),i.success({title:"DashboardItem properly created",msg:g.dashboarditem.name?g.dashboarditem.name+" has been created!":""}),C(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.dashboardItem.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.dashboardItem.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveDashboardItem=function(){g.errors=[],c.dashboardItem.update({id:g.dashboarditem.id},g.dashboarditem).$promise.then((function(e){const t=u().find(g.dashboard,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"DashboardItem properly saved!",msg:g.dashboarditem.name?g.dashboarditem.name+" has been saved!":""}),C(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.dashboardItem.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.dashboardItem.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteDashboardItem=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The dashboarditem will be deleted.").ariaLabel("Delete DashboardItem").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.dashboardItem.delete({id:g.dashboarditem.id}).$promise.then((function(){u().remove(g.dashboard,{id:g.dashboarditem.id}),i.success({title:"DashboardItem properly deleted!",msg:(g.dashboarditem.name||"dashboarditem")+" has been deleted!"}),C(g.dashboarditem)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.dashboardItem.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.dashboardItem.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.getReports=w,g.selectReport=function(){if(g.dashboarditem.report=g.selectedReport[0].name,g.dashboarditem.attrReport=g.selectedReport[0].id,g.dashboarditem.reportType=g.currentNode.custom?"custom":"default",!g.newDashboardItem){const e={name:"attrReport",type:g.dashboarditem.reportType,value:g.selectedReport[0].id};g.dashboarditem.attrs.splice(u().findIndex(g.dashboarditem.attrs,1,e))}e.dashboarditemForm.report.$setDirty(),a.hide()},g.closeReportDialog=function(){a.hide()},g.searchReport=function(){g.treeDefaultData=g.treeReports[0]?angular.fromJson(g.treeReports[0].tree):[],g.treeCustomData=g.treeReports[1]?angular.fromJson(g.treeReports[1].tree):[],g.treeConfig=function(){const e={core:{multiple:!1,animation:!0,error:function(e){console.error("treeCtrl: error from js tree - "+angular.toJson(e))},check_callback:!0,worker:!0},version:1,plugins:["wholerow"]};return"admin"!==g.currentUser.role?c.userProfileSection.get({fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:g.currentUser.userProfileId,sectionId:1203}).$promise.then((function(t){return g.userProfileSection=t&&1==t.count?t.rows[0]:null,e})).catch((function(e){i.error({title:"ERROR",msg:e.message})})):e}(),g.treeDefaultEvents=b(!1),g.treeCustomEvents=b(!0),a.show({controller:function(){return g},controllerAs:"vm",templateUrl:uS,autoWrap:!0,multiple:!0})},g.closeDialog=C,c.analyticTreeReport.get({}).$promise.then((function(e){g.treeReports=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TREEREPORTS",msg:e.data?JSON.stringify(e.data):e.toString()})}));const h=[{id:401,type:"inbound"},{id:1501,type:"outbound"}];let _=null;function b(e){return e?{loaded:A,select_node:y}:{loaded:S,select_node:v}}function y(e,t){g.treeDefaultInstance.jstree(!0).deselect_all(),g.treeDefaultInstance.jstree(!0).close_all(),g.currentNode=t.node,g.currentNode.custom=!0,g.currentPath=g.treeCustomInstance.jstree(!0).get_path(g.currentNode).join("/ "),g.apiName="analyticCustomReport",g.query.parent=t.node.id,w()}function v(e,t){g.treeCustomInstance.jstree(!0).deselect_all(),g.treeCustomInstance.jstree(!0).close_all(),g.currentNode=t.node,g.currentNode.custom=!1,g.currentPath=g.treeDefaultInstance.jstree(!0).get_path(g.currentNode).join("/ "),g.apiName="analyticDefaultReport",g.query.parent=t.node.id,w()}function A(){if(!g.newDashboardItem&&"analyticCustomReport"===g.apiName){const e=g.treeCustomInstance.jstree(!0).get_node(g.query.parent);y(0,{node:e,selected:e.id})}}function S(){if(!g.newDashboardItem&&"analyticDefaultReport"===g.apiName){const e=g.treeDefaultInstance.jstree(!0).get_node(g.query.parent);v(0,{node:e,selected:e.id})}}function w(){if(g.query.offset=(g.query.page-1)*g.query.limit,g.apiName)if("admin"===g.currentUser.role)g.promise=c[g.apiName].get(g.query,E).$promise;else{if(!g.userProfileSection)return E(null);if(g.userProfileSection.autoAssociation)g.promise=c[g.apiName].get(g.query,E).$promise;else{let e=[];g.promise=c[g.apiName].get(g.query).$promise.then((function(t){return e=t&&t.rows?t.rows:[],e.length>0?c.userProfileResource.get({sectionId:g.userProfileSection.id,type:"analyticDefaultReport"===g.apiName?"DefaultReports":"CustomReports"}).$promise.then((function(t){const n=t&&t.rows?t.rows:[];if(n.length>0){const t=[];return e.forEach((function(e){u().find(n,["resourceId",e.id])&&t.push(e)})),E({count:t.length,rows:t})}return E(null)})):E(null)})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_REPORTS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}}function E(e){g.reports=e||{count:0,rows:[]},g.newDashboardItem||g.selectedReport.push(u().find(g.reports.rows,{id:g.currentReport.id}))}function C(e){a.hide(e)}d.hasRole("admin")?c.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){g.voiceQueues=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VOICEQUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.voiceQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){_=e.rows||[]})).then((function(){const e=[];for(let t=0;t<h.length;t++)e.push(c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:h[t].id}).$promise);return o.all(e)})).then((function(e){const t=u().map(e,(function(e){return e&&e.rows?e.rows[0]:null})),n=[];for(let e=0;e<h.length;e++){const a=u().find(t,["sectionId",h[e].id]);if(a)if(a.autoAssociation){const t=[];_.forEach((function(n){n.type===h[e].type&&t.push(n)})),n.push({rows:t,count:t.length})}else n.push(c.userProfileResource.get({sectionId:a.id}).$promise)}return o.all(n)})).then((function(e){const t=[];let n=null;g.dashboarditem&&(n=u().find(_,{id:Number(g.dashboarditem.attrVoiceQueues)}));for(let n=0;n<e.length;n++){(e[n].rows||[]).forEach((function(e){t.push(e)}))}n&&!u().some(t,["resourceId",n.id])&&_.forEach((function(e){e.id===n.id&&(e.canSelect=!1,t.push(e))})),g.voiceQueues=t})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}dS.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","dashboard","dashboarditem","api","Auth","license","setting","crudPermissions"];const fS=dS;function mS(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.customDashboard=u||e.params.customDashboard||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.clonedialog=function(e,t){n.show({controller:"CustomDashboardcloneController",controllerAs:"vm",templateUrl:tS,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{customDashboard:e,customDashboards:f.customDashboards?f.customDashboards.rows:[],crudPermissions:f.crudPermissions}})},f.gotogoto=function(t){e.go("app.dashboards.custom",{id:t.id})},f.alert=l.info,f.gotoCustomDashboards=function(){e.go("app.tools.customDashboards",{},{reload:"app.tools.customDashboards"})},f.saveCustomDashboard=function(){s.dashboard.update({id:f.customDashboard.id},f.customDashboard).$promise.then((function(){l.success({title:"CustomDashboard updated!",msg:f.customDashboard.name?f.customDashboard.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETdashboard",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}mS.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","customDashboard","userProfileSection"];const pS=mS;function gS(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_INTERVAL",g.interval=angular.copy(l),g.intervals=s,g.newInterval=!1,g.interval||(g.interval={},g.title="TOOLS.NEW_INTERVAL",g.newInterval=!0),g.addNewInterval=function(){g.errors=[],c.interval.save(g.interval).$promise.then((function(e){g.intervals.unshift(e.toJSON()),i.success({title:"Interval properly created",msg:g.interval.name?g.interval.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.interval.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveInterval=function(){g.errors=[],c.interval.update({id:g.interval.id},g.interval).$promise.then((function(e){const t=u().find(g.intervals,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Interval properly saved!",msg:g.interval.name?g.interval.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.interval.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteInterval=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The interval will be deleted.").ariaLabel("Delete Interval").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.interval.delete({id:g.interval.id}).$promise.then((function(){u().remove(g.intervals,{id:g.interval.id}),i.success({title:"Interval properly deleted!",msg:(g.interval.name||"interval")+" has been deleted!"}),h(g.interval)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.interval.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.interval.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}gS.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","intervals","interval","api","Auth","license","setting","crudPermissions"];const hS=gS;function _S(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}_S.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const bS=_S,yS=n.p+"templates/main/apps/tools/views/intervals/edit/apps/interval/dialog.html/dialog.html";function vS(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.intervalIntervals=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.interval.getIntervals(f.query,m).$promise}function g(e){c.interval.delete({id:e.id}).$promise.then((function(){u().remove(f.intervalIntervals.rows,{id:e.id}),f.intervalIntervals.count-=1,f.intervalIntervals.rows.length||p(),l.success({title:"Interval deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETinterval"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.interval={},f.intervalIntervals={count:0,rows:[]},f.selectedIntervalIntervals=[],f.crudPermissions,f.sortableTable={animation:100,onSort:function(e){c.interval.addIntervals({id:f.interval.id},e.models).$promise.then((function(e){f.intervalIntervals.rows=e})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:SORTABLETABLE",msg:e.data?JSON.stringify(e.data):e.toString()})}))}},f.query={fields:"createdAt,updatedAt,id,name,interval",nolimit:"true",limit:10,page:1},f.init=function(e,t){f.interval=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.sortableTable.disabled=!f.crudPermissions.canEdit,f.query.id=f.interval.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the interval?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("interval #")+e.id||"interval")+"</b> will be deleted.").ariaLabel("delete interval").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getIntervalIntervals=p,f.createOrEditIntervalInterval=function(e,t){i.show({controller:"EditAppintervalDialogController",controllerAs:"vm",templateUrl:yS,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:t,intervals:f.intervalIntervals.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedIntervalIntervals=function(){const e=angular.copy(f.selectedIntervalIntervals);return f.selectedIntervalIntervals=[],e},f.deleteIntervalInterval=g,f.deleteSelectedIntervalIntervals=function(e){const t=i.confirm().title("Are you sure want to delete the selected intervals?").htmlContent("<b>"+f.selectedIntervalIntervals.length+" selected</b> will be deleted.").ariaLabel("delete intervals").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedIntervalIntervals.forEach((function(e){g(e)})),f.selectedIntervalIntervals=[]}))}}vS.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const AS=vS;function SS(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.interval=u||e.params.interval||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoIntervals=function(){e.go("app.tools.intervals",{},{reload:"app.tools.intervals"})},f.saveInterval=function(){s.interval.update({id:f.interval.id},f.interval).$promise.then((function(){l.success({title:"Interval updated!",msg:f.interval.name?f.interval.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}SS.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","interval","userProfileSection"];const wS=SS,ES=n.p+"templates/main/apps/tools/views/intervals/create/dialog.html/dialog.html";function CS(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.intervals=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="intervals",b.listOrder="",b.listOrderAsc=null,b.selectedIntervals=[],b.query={fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",IntervalId:"null",limit:10,page:1},b.editstate=function(e){n.go("app.tools.intervals.edit",{id:e.id,interval:e,crudPermissions:b.crudPermissions})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("interval")+"?").htmlContent("<b>"+(e.name||"interval")+"</b> will be deleted.").ariaLabel("delete interval").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getIntervals=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.interval.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Intervals",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditInterval=function(e,t){o.show({controller:"CreateOrEditIntervalDialogController",controllerAs:"vm",templateUrl:ES,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:t,intervals:b.intervals.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteInterval=S,b.exportSelectedIntervals=function(){const e=angular.copy(b.selectedIntervals);return b.selectedIntervals=[],e},b.deleteSelectedIntervals=function(e){const t=o.confirm().title("Are you sure want to delete the selected intervals?").htmlContent("<b>"+b.selectedIntervals.length+" selected</b> will be deleted.").ariaLabel("delete Intervals").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedIntervals.forEach((function(e){S(e)})),b.selectedIntervals=[]}))},b.deselectIntervals=function(){b.selectedIntervals=[]},b.selectAllIntervals=function(){b.selectedIntervals=b.intervals.rows};let y=!0,v=1;function A(e){b.intervals=e||{count:0,rows:[]}}function S(e){f.interval.delete({id:e.id}).$promise.then((function(){u().remove(b.intervals.rows,{id:e.id}),b.intervals.count-=1,b.intervals.rows.length||b.getIntervals(),p.success({title:u().startCase("Interval")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEinterval"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEinterval",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getIntervals())}))}CS.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","intervals","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const TS=CS;function IS(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_PAUSE",g.pause=angular.copy(l),g.pauses=s,g.newPause=!1,g.pause||(g.pause={},g.title="TOOLS.NEW_PAUSE",g.newPause=!0),g.addNewPause=function(){g.errors=[],c.pause.save(g.pause).$promise.then((function(e){g.pauses.unshift(e.toJSON()),i.success({title:"Pause properly created",msg:g.pause.name?g.pause.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.pause.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.pause.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.savePause=function(){g.errors=[],c.pause.update({id:g.pause.id},g.pause).$promise.then((function(e){const t=u().find(g.pauses,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Pause properly saved!",msg:g.pause.name?g.pause.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.pause.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.pause.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deletePause=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The pause will be deleted.").ariaLabel("Delete Pause").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.pause.delete({id:g.pause.id}).$promise.then((function(){u().remove(g.pauses,{id:g.pause.id}),i.success({title:"Pause properly deleted!",msg:(g.pause.name||"pause")+" has been deleted!"}),h(g.pause)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.pause.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.pause.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}IS.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","pauses","pause","api","Auth","license","setting","crudPermissions"];const kS=IS,DS=n.p+"templates/main/apps/tools/views/pauses/create/dialog.html/dialog.html";function xS(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.pauses=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="pauses",b.listOrder="",b.listOrderAsc=null,b.selectedPauses=[],b.query={fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditPauseDialogController",controllerAs:"vm",templateUrl:DS,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{pause:e,pauses:b.pauses.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("pause")+"?").htmlContent("<b>"+(e.name||"pause")+"</b> will be deleted.").ariaLabel("delete pause").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getPauses=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.pause.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Pauses",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditPause=function(e,t){o.show({controller:"CreateOrEditPauseDialogController",controllerAs:"vm",templateUrl:DS,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{pause:t,pauses:b.pauses.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deletePause=S,b.exportSelectedPauses=function(){const e=angular.copy(b.selectedPauses);return b.selectedPauses=[],e},b.deleteSelectedPauses=function(e){const t=o.confirm().title("Are you sure want to delete the selected pauses?").htmlContent("<b>"+b.selectedPauses.length+" selected</b> will be deleted.").ariaLabel("delete Pauses").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedPauses.forEach((function(e){S(e)})),b.selectedPauses=[]}))},b.deselectPauses=function(){b.selectedPauses=[]},b.selectAllPauses=function(){b.selectedPauses=b.pauses.rows};let y=!0,v=1;function A(e){b.pauses=e||{count:0,rows:[]}}function S(e){f.pause.delete({id:e.id}).$promise.then((function(){u().remove(b.pauses.rows,{id:e.id}),b.pauses.count-=1,b.pauses.rows.length||b.getPauses(),p.success({title:u().startCase("Pause")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEpause"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEpause",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getPauses())}))}xS.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","pauses","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const MS=xS,PS=n.p+"templates/main/apps/tools/views/schedules/partialViews/reports/treeReports.html/treeReports.html";function OS(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;if(g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_SCHEDULE",g.schedule=angular.copy(l),g.schedules=s,g.newSchedule=!1,g.selectedReport=[],g.query={fields:"createdAt,updatedAt,id,name,description,table,parent,conditions,joins",limit:10,page:1,sort:"-updatedAt"},g.schedule){g.apiName=g.schedule.DefaultReportId?"analyticDefaultReport":"analyticCustomReport";const e=g.schedule.DefaultReportId?g.schedule.DefaultReportId:g.schedule.CustomReportId;c[g.apiName].get({fields:"id,name,parent"}).$promise.then((function(t){g.currentReport=u().find(t.rows,{id:e}),g.schedule.report=g.currentReport.name,g.query.parent=g.currentReport.parent}))}else g.schedule={output:"xlsx",active:!0,startAt:new Date,endAt:new Date(Date.now()+2592e6),cron:"0 0 * * *",subtractNumber:1,subtractUnit:"days",sendMail:!1,sendIfEmpty:!0},g.title="TOOLS.NEW_SCHEDULE",g.newSchedule=!0;function h(e){return e?{loaded:y,select_node:_}:{loaded:v,select_node:b}}function _(e,t){g.treeDefaultInstance.jstree(!0).deselect_all(),g.treeDefaultInstance.jstree(!0).close_all(),g.currentNode=t.node,g.currentNode.custom=!0,g.currentPath=g.treeCustomInstance.jstree(!0).get_path(g.currentNode).join("/ "),g.apiName="analyticCustomReport",g.query.parent=t.node.id,A()}function b(e,t){g.treeCustomInstance.jstree(!0).deselect_all(),g.treeCustomInstance.jstree(!0).close_all(),g.currentNode=t.node,g.currentNode.custom=!1,g.currentPath=g.treeDefaultInstance.jstree(!0).get_path(g.currentNode).join("/ "),g.apiName="analyticDefaultReport",g.query.parent=t.node.id,A()}function y(){if(!g.newSchedule&&"analyticCustomReport"===g.apiName){const e=g.treeCustomInstance.jstree(!0).get_node(g.query.parent);_(0,{node:e,selected:e.id})}}function v(){if(!g.newSchedule&&"analyticDefaultReport"===g.apiName){const e=g.treeDefaultInstance.jstree(!0).get_node(g.query.parent);b(0,{node:e,selected:e.id})}}function A(){if(g.query.offset=(g.query.page-1)*g.query.limit,g.apiName)if("admin"===g.currentUser.role)g.promise=c[g.apiName].get(g.query,S).$promise;else{if(!g.userProfileSection)return S(null);if(g.userProfileSection.autoAssociation)g.promise=c[g.apiName].get(g.query,S).$promise;else{let e=[];g.promise=c[g.apiName].get(g.query).$promise.then((function(t){return e=t&&t.rows?t.rows:[],e.length>0?c.userProfileResource.get({sectionId:g.userProfileSection.id,type:"analyticDefaultReport"===g.apiName?"DefaultReports":"CustomReports"}).$promise.then((function(t){const n=t&&t.rows?t.rows:[];if(n.length>0){const t=[];return e.forEach((function(e){u().find(n,["resourceId",e.id])&&t.push(e)})),S({count:t.length,rows:t})}return S(null)})):S(null)})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_REPORTS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}}function S(e){g.reports=e||{count:0,rows:[]},g.newSchedule||g.selectedReport.push(u().find(g.reports.rows,{id:g.currentReport.id}))}function w(e){a.hide(e)}g.addNewSchedule=function(){g.errors=[],c.schedule.save(g.schedule).$promise.then((function(e){g.schedules.unshift(e.toJSON()),i.success({title:"Schedule properly created",msg:g.schedule.name?g.schedule.name+" has been created!":""}),w(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.schedule.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.schedule.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSchedule=function(){g.errors=[],c.schedule.update({id:g.schedule.id},g.schedule).$promise.then((function(e){const t=u().find(g.schedules,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Schedule properly saved!",msg:g.schedule.name?g.schedule.name+" has been saved!":""}),w(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.schedule.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.schedule.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSchedule=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The schedule will be deleted.").ariaLabel("Delete Schedule").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.schedule.delete({id:g.schedule.id}).$promise.then((function(){u().remove(g.schedules,{id:g.schedule.id}),i.success({title:"Schedule properly deleted!",msg:(g.schedule.name||"schedule")+" has been deleted!"}),w(g.schedule)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.schedule.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.schedule.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.getReports=A,g.selectReport=function(){g.schedule.report=g.selectedReport[0].name,g.currentNode.custom?(g.schedule.CustomReportId=g.selectedReport[0].id,delete g.schedule.DefaultReportId):(g.schedule.DefaultReportId=g.selectedReport[0].id,delete g.schedule.CustomReportId);e.scheduleForm.report.$setDirty(),a.hide()},g.closeReportDialog=function(){a.hide()},g.searchReport=function(){g.treeDefaultData=g.treeReports[0]?angular.fromJson(g.treeReports[0].tree):[],g.treeCustomData=g.treeReports[1]?angular.fromJson(g.treeReports[1].tree):[],g.treeConfig=function(){const e={core:{multiple:!1,animation:!0,error:function(e){console.error("treeCtrl: error from js tree - "+angular.toJson(e))},check_callback:!0,worker:!0},version:1,plugins:["wholerow"]};return"admin"!==g.currentUser.role?c.userProfileSection.get({fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:g.currentUser.userProfileId,sectionId:1203}).$promise.then((function(t){return g.userProfileSection=t&&1==t.count?t.rows[0]:null,e})).catch((function(e){i.error({title:"ERROR",msg:e.message})})):e}(),g.treeDefaultEvents=h(!1),g.treeCustomEvents=h(!0),a.show({controller:function(){return g},controllerAs:"vm",templateUrl:PS,autoWrap:!0,multiple:!0})},g.closeDialog=w,c.analyticTreeReport.get({}).$promise.then((function(e){g.treeReports=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TREEREPORTS",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.hasRole("admin")?c.mailAccount.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.mailAccounts=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_MAILACCOUNTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.mailAccount.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.mailAccounts=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:602}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.mailAccounts,{id:e.resourceId})}));let n=null;if(g.schedule&&(n=u().find(g.mailAccounts,{id:Number(g.schedule.MailAccountId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.mailAccounts,{id:n.id});e.canSelect=!1,t.push(e)}g.mailAccounts=t}))}else{const e=[];let t=null;g.schedule&&(t=u().find(g.mailAccounts,{id:Number(g.schedule.MailAccountId)}));for(let n=0;n<g.mailAccounts.length;n++)t&&g.mailAccounts[n].id===t.id&&(g.mailAccounts[n].canSelect=!1,e.push(g.mailAccounts[n]));g.mailAccounts=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailAccounts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}OS.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","schedules","schedule","api","Auth","license","setting","crudPermissions"];const RS=OS,NS=n.p+"templates/main/apps/tools/views/schedules/create/dialog.html/dialog.html";function LS(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.schedules=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="schedules",b.listOrder="",b.listOrderAsc=null,b.selectedScheduler=[],b.query={fields:"createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description",sort:"-updatedAt",limit:10,page:1},b.arrayoutput=u().keyBy([{option:"CSV",value:"'csv'"},{option:"PDF",value:"'pdf'"},{option:"Excel",value:"'xlsx'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysubtractUnit=u().keyBy([{option:"Minutes",value:"'minutes'"},{option:"Hours",value:"'hours'"},{option:"Days",value:"'days'"},{option:"Weeks",value:"'weeks'"},{option:"Months",value:"'months'"},{option:"Quarters",value:"'quarters'"},{option:"Years",value:"'years'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editdialog=function(e,t){o.show({controller:"CreateOrEditScheduleDialogController",controllerAs:"vm",templateUrl:NS,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{schedule:e,schedules:b.schedules.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.runconfirm=function(e,t){const n=o.confirm().title("Are you sure want to run the schedule?").htmlContent("<b>"+(e.name||"schedule")+"</b> will be run.").ariaLabel("delete schedule").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){return f.schedule.run({id:e.id}).$promise}),(function(){console.log("CANCEL")}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("schedule")+"?").htmlContent("<b>"+(e.name||"schedule")+"</b> will be deleted.").ariaLabel("delete schedule").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getScheduler=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.schedule.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Scheduler",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditSchedule=function(e,t){o.show({controller:"CreateOrEditScheduleDialogController",controllerAs:"vm",templateUrl:NS,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{schedule:t,schedules:b.schedules.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteSchedule=S,b.exportSelectedScheduler=function(){const e=angular.copy(b.selectedScheduler);return b.selectedScheduler=[],e},b.deleteSelectedScheduler=function(e){const t=o.confirm().title("Are you sure want to delete the selected schedules?").htmlContent("<b>"+b.selectedScheduler.length+" selected</b> will be deleted.").ariaLabel("delete Schedules").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedScheduler.forEach((function(e){S(e)})),b.selectedScheduler=[]}))},b.deselectScheduler=function(){b.selectedScheduler=[]},b.selectAllScheduler=function(){b.selectedScheduler=b.schedules.rows},f.analyticTreeReport.get({}).$promise.then((function(e){b.treeReports=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TREEREPORTS",msg:e.data?JSON.stringify(e.data):e.toString()})})),g.hasRole("admin")?f.mailAccount.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.mailAccounts=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_MAILACCOUNTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.mailAccount.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.mailAccounts=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:602}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.mailAccounts,{id:e.resourceId})}));let n=null;if(b.schedule&&(n=u().find(b.mailAccounts,{id:Number(b.schedule.MailAccountId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.mailAccounts,{id:n.id});e.canSelect=!1,t.push(e)}b.mailAccounts=t}))}else{const e=[];let t=null;b.schedule&&(t=u().find(b.mailAccounts,{id:Number(b.schedule.MailAccountId)}));for(let n=0;n<b.mailAccounts.length;n++)t&&b.mailAccounts[n].id===t.id&&(b.mailAccounts[n].canSelect=!1,e.push(b.mailAccounts[n]));b.mailAccounts=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailAccounts",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.schedules=e||{count:0,rows:[]}}function S(e){f.schedule.delete({id:e.id}).$promise.then((function(){u().remove(b.schedules.rows,{id:e.id}),b.schedules.count-=1,b.schedules.rows.length||b.getScheduler(),p.success({title:u().startCase("Schedule")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEschedule"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEschedule",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getScheduler())}))}LS.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","schedules","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const $S=LS;function US(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_SOUND",g.sound=angular.copy(l),g.sounds=s,g.newSound=!1,g.sound||(g.sound={},g.title="TOOLS.NEW_SOUND",g.newSound=!0),g.addNewSound=function(){g.errors=[],c.sound.save(g.sound).$promise.then((function(e){g.sounds.unshift(e.toJSON()),i.success({title:"Sound properly created",msg:g.sound.name?g.sound.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.sound.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.sound.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSound=function(){g.errors=[],c.sound.update({id:g.sound.id},g.sound).$promise.then((function(e){const t=u().find(g.sounds,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Sound properly saved!",msg:g.sound.name?g.sound.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.sound.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.sound.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSound=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The sound will be deleted.").ariaLabel("Delete Sound").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.sound.delete({id:g.sound.id}).$promise.then((function(){u().remove(g.sounds,{id:g.sound.id}),i.success({title:"Sound properly deleted!",msg:(g.sound.name||"sound")+" has been deleted!"}),h(g.sound)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.sound.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.sound.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}US.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","sounds","sound","api","Auth","license","setting","crudPermissions"];const jS=US,FS=n.p+"templates/main/apps/tools/views/sounds/create/dialog.html/dialog.html",qS=n.p+"templates/main/apps/tools/views/sounds/upload/dialog.html/dialog.html";function YS(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.sounds=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="sounds",b.listOrder="",b.listOrderAsc=null,b.selectedSounds=[],b.query={fields:"createdAt,updatedAt,id,save_name,converted_format,name,audio,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditSoundDialogController",controllerAs:"vm",templateUrl:FS,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{sound:e,sounds:b.sounds.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.downloadfile2=function(e){return f.sound.download({id:e.id}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=e.converted_format?e.save_name+"."+e.converted_format:e.save_name;const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.sound.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("sound")+"?").htmlContent("<b>"+(e.name||"sound")+"</b> will be deleted.").ariaLabel("delete sound").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getSounds=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.sound.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Sounds",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditSound=function(e,t){o.show({controller:"CreateOrEditSoundDialogController",controllerAs:"vm",templateUrl:FS,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{sound:t,sounds:b.sounds.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteSound=S,b.exportSelectedSounds=function(){const e=angular.copy(b.selectedSounds);return b.selectedSounds=[],e},b.deleteSelectedSounds=function(e){const t=o.confirm().title("Are you sure want to delete the selected sounds?").htmlContent("<b>"+b.selectedSounds.length+" selected</b> will be deleted.").ariaLabel("delete Sounds").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedSounds.forEach((function(e){S(e)})),b.selectedSounds=[]}))},b.deselectSounds=function(){b.selectedSounds=[]},b.selectAllSounds=function(){b.selectedSounds=b.sounds.rows},b.uploadSound=function(e){o.show({controller:"UploadSoundDialogController",controllerAs:"vm",templateUrl:qS,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{sounds:b.sounds.rows}})};let y=!0,v=1;function A(e){b.sounds=e||{count:0,rows:[]}}function S(e){f.sound.delete({id:e.id}).$promise.then((function(){u().remove(b.sounds.rows,{id:e.id}),b.sounds.count-=1,b.sounds.rows.length||b.getSounds(),p.success({title:u().startCase("Sound")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEsound"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEsound",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getSounds())}))}YS.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","sounds","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const HS=YS;function BS(e,t,n,a,o,r){const i=this,s=15728640;i.baseUrl=o.baseUrl,i.currentUser=r.getCurrentUser(),i.errors=[],i.title="TOOLS.UPLOAD_SOUND",i.sounds=a,i.uploadSounds=[],i.uploadState="none",i.sound={},i.ngFlowOptions={maxChunkRetries:1,chunkSize:s,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0,target:`${i.baseUrl}api/sounds`},i.ngFlow={flow:{}},i.dropping=!1,i.fileAdded=function(e){const t=["wav","mp3","gsm"];if(!u().includes(t,e.getExtension()))return n.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+t.join()}),!1;if(e.size>s)return n.error({title:"File too big",msg:"The max allowed size is 15MB"}),!1;return i.sound={id:e.uniqueIdentifier,file:e},i.uploadSounds.unshift(i.sound),!0},i.upload=function(){i.uploadState="uploading",i.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},i.ngFlow.flow.opts.query={role:i.currentUser.role,userProfileId:i.currentUser.userProfileId},i.ngFlow.flow.upload()},i.fileSuccess=function(e,t){i.sounds.unshift(JSON.parse(t)),angular.forEach(i.uploadSounds,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result}}}))},i.uploadError=function(){i.ngFlow.flow.cancel(),n.error({title:"Upload error",msg:"Cannot upload the sound"}),i.uploadState="failed"},i.uploadComplete=function(){"failed"!==i.uploadState&&(i.uploadState="completed",n.success({title:"Upload completed",msg:i.sound.file.name+" uploaded successfully"}))},i.closeDialog=function(){t.hide()}}BS.$inject=["$cookies","$mdDialog","toasty","sounds","api","Auth"];const GS=BS;function VS(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_TAG",g.tag=angular.copy(l),g.tags=s,g.newTag=!1,g.tag||(g.tag={},g.title="TOOLS.NEW_TAG",g.newTag=!0),g.addNewTag=function(){g.errors=[],c.tag.save(g.tag).$promise.then((function(e){g.tags.unshift(e.toJSON()),i.success({title:"Tag properly created",msg:g.tag.name?g.tag.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.tag.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.tag.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveTag=function(){g.errors=[],c.tag.update({id:g.tag.id},g.tag).$promise.then((function(e){const t=u().find(g.tags,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Tag properly saved!",msg:g.tag.name?g.tag.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.tag.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.tag.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteTag=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The tag will be deleted.").ariaLabel("Delete Tag").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.tag.delete({id:g.tag.id}).$promise.then((function(){u().remove(g.tags,{id:g.tag.id}),i.success({title:"Tag properly deleted!",msg:(g.tag.name||"tag")+" has been deleted!"}),h(g.tag)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.tag.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.tag.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}VS.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","tags","tag","api","Auth","license","setting","crudPermissions"];const WS=VS,QS=n.p+"templates/main/apps/tools/views/tags/create/dialog.html/dialog.html";function zS(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.tags=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="tags",b.listOrder="",b.listOrderAsc=null,b.selectedTags=[],b.query={fields:"createdAt,updatedAt,id,name,description,color",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditTagDialogController",controllerAs:"vm",templateUrl:QS,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{tag:e,tags:b.tags.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("tag")+"?").htmlContent("<b>"+(e.name||"tag")+"</b> will be deleted.").ariaLabel("delete tag").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getTags=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.tag.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Tags",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditTag=function(e,t){o.show({controller:"CreateOrEditTagDialogController",controllerAs:"vm",templateUrl:QS,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{tag:t,tags:b.tags.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteTag=S,b.exportSelectedTags=function(){const e=angular.copy(b.selectedTags);return b.selectedTags=[],e},b.deleteSelectedTags=function(e){const t=o.confirm().title("Are you sure want to delete the selected tags?").htmlContent("<b>"+b.selectedTags.length+" selected</b> will be deleted.").ariaLabel("delete Tags").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedTags.forEach((function(e){S(e)})),b.selectedTags=[]}))},b.deselectTags=function(){b.selectedTags=[]},b.selectAllTags=function(){b.selectedTags=b.tags.rows};let y=!0,v=1;function A(e){b.tags=e||{count:0,rows:[]}}function S(e){f.tag.delete({id:e.id}).$promise.then((function(){u().remove(b.tags.rows,{id:e.id}),b.tags.count-=1,b.tags.rows.length||b.getTags(),p.success({title:u().startCase("Tag")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEtag"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEtag",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getTags())}))}zS.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","tags","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const KS=zS;function JS(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_TEMPLATE",g.template=angular.copy(l),g.templates=s,g.newTemplate=!1,g.template||(g.template={},g.title="TOOLS.NEW_TEMPLATE",g.newTemplate=!0),g.addNewTemplate=function(){g.errors=[],c.template.save(g.template).$promise.then((function(e){g.templates.unshift(e.toJSON()),i.success({title:"Template properly created",msg:g.template.name?g.template.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.template.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.template.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveTemplate=function(){g.errors=[],c.template.update({id:g.template.id},g.template).$promise.then((function(e){const t=u().find(g.templates,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Template properly saved!",msg:g.template.name?g.template.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.template.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.template.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteTemplate=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The template will be deleted.").ariaLabel("Delete Template").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.template.delete({id:g.template.id}).$promise.then((function(){u().remove(g.templates,{id:g.template.id}),i.success({title:"Template properly deleted!",msg:(g.template.name||"template")+" has been deleted!"}),h(g.template)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.template.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.template.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}JS.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","templates","template","api","Auth","license","setting","crudPermissions"];const XS=JS,ZS=n.p+"templates/main/apps/tools/views/templates/create/dialog.html/dialog.html";function ew(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.templates=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="templates",b.listOrder="",b.listOrderAsc=null,b.selectedTemplates=[],b.query={fields:"createdAt,updatedAt,id,name,html,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditTemplateDialogController",controllerAs:"vm",templateUrl:ZS,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{template:e,templates:b.templates.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("template")+"?").htmlContent("<b>"+(e.name||"template")+"</b> will be deleted.").ariaLabel("delete template").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getTemplates=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.template.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Templates",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditTemplate=function(e,t){o.show({controller:"CreateOrEditTemplateDialogController",controllerAs:"vm",templateUrl:ZS,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{template:t,templates:b.templates.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteTemplate=S,b.exportSelectedTemplates=function(){const e=angular.copy(b.selectedTemplates);return b.selectedTemplates=[],e},b.deleteSelectedTemplates=function(e){const t=o.confirm().title("Are you sure want to delete the selected templates?").htmlContent("<b>"+b.selectedTemplates.length+" selected</b> will be deleted.").ariaLabel("delete Templates").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedTemplates.forEach((function(e){S(e)})),b.selectedTemplates=[]}))},b.deselectTemplates=function(){b.selectedTemplates=[]},b.selectAllTemplates=function(){b.selectedTemplates=b.templates.rows};let y=!0,v=1;function A(e){b.templates=e||{count:0,rows:[]}}function S(e){f.template.delete({id:e.id}).$promise.then((function(){u().remove(b.templates.rows,{id:e.id}),b.templates.count-=1,b.templates.rows.length||b.getTemplates(),p.success({title:u().startCase("Template")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEtemplate"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEtemplate",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getTemplates())}))}ew.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","templates","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const tw=ew;function nw(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_TRUNK",g.trunk=angular.copy(l),g.trunks=s,g.newTrunk=!1,g.trunk||(g.trunk={active:!0,type:"friend",dtmfmode:"rfc2833",qualify:"yes",t38pt_udptl:"no"},g.title="TOOLS.NEW_TRUNK",g.newTrunk=!0),g.addNewTrunk=function(){g.errors=[],c.trunk.save(g.trunk).$promise.then((function(e){g.trunks.unshift(e.toJSON()),i.success({title:"Trunk properly created",msg:g.trunk.name?g.trunk.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.trunk.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.trunk.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveTrunk=function(){g.errors=[],c.trunk.update({id:g.trunk.id},g.trunk).$promise.then((function(e){const t=u().find(g.trunks,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Trunk properly saved!",msg:g.trunk.name?g.trunk.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.trunk.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.trunk.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteTrunk=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The trunk will be deleted.").ariaLabel("Delete Trunk").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.trunk.delete({id:g.trunk.id}).$promise.then((function(){u().remove(g.trunks,{id:g.trunk.id}),i.success({title:"Trunk properly deleted!",msg:(g.trunk.name||"trunk")+" has been deleted!"}),h(g.trunk)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.trunk.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.trunk.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}nw.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","trunks","trunk","api","Auth","license","setting","crudPermissions"];const aw=nw;function ow(e,t,n,a,o,r,i){const s=this;function l(t){e.hide(t)}s.newTrunk=!0,s.trunk=angular.copy(o),s.trunks=r,s.title=i.instant("TOOLS.CLONE_TRUNK"),o&&o.name&&(s.title+=": "+o.name),s.cloneTrunk=function(){return a.trunk.clone({id:o.id},s.trunk).$promise.then((function(e){s.trunks.unshift(e.toJSON()),n.success({title:"Trunk properly cloned",msg:s.trunk.name?s.trunk.name+" has been cloned!":""}),t.go("app.tools.trunks.edit",{id:e.id}),l(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){s.errors=e.data.errors||[{message:e.toString(),type:"api.trunk.clone"}];for(let t=0;t<e.data.errors.length;t+=1)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.trunk.clone",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},s.closeDialog=l}ow.$inject=["$mdDialog","$state","toasty","api","trunk","trunks","$translate"];const rw=ow,iw=n.p+"templates/main/apps/tools/views/trunks/edit/clone/clone.html/clone.html";function sw(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.trunk=d||e.params.trunk||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.gotogoto=function(){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:411}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;n&&n.enabled?e.go("app.voice.realtime.trunks",{}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.voice.realtime.trunks",{})},m.clonedialog=function(e,t){n.show({controller:"TrunkcloneController",controllerAs:"vm",templateUrl:iw,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{trunk:e,trunks:m.trunks?m.trunks.rows:[],crudPermissions:m.crudPermissions}})},m.alert=l.info,m.gotoTrunks=function(){e.go("app.tools.trunks",{},{reload:"app.tools.trunks"})},m.saveTrunk=function(){s.trunk.update({id:m.trunk.id},m.trunk).$promise.then((function(){l.success({title:"Trunk updated!",msg:m.trunk.name?m.trunk.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunk",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CONTEXTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceContext.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.contexts=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:405}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.contexts,{id:e.resourceId})}));let n=null;if(m.trunk&&(n=u().find(m.contexts,{name:m.trunk.context})),n&&!u().some(t,["id",n.id])){const e=u().find(m.contexts,{id:n.id});e.canSelect=!1,t.push(e)}m.contexts=t})):s.voiceContext.get({fields:"id,name",sort:"name",defaultEntry:!0}).$promise.then((function(e){m.contexts=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcontexts",msg:e.data?JSON.stringify(e.data):e.toString()})}))}sw.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","trunk","userProfileSection"];const lw=sw,cw=n.p+"templates/main/apps/tools/views/trunks/create/dialog.html/dialog.html";function uw(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.trunks=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="trunks",b.listOrder="",b.listOrderAsc=null,b.selectedTrunks=[],b.query={fields:"createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields",sort:"-updatedAt",limit:10,page:1},b.arraytype=u().keyBy([{option:"Friend",value:"'friend'"},{option:"User",value:"'user'"},{option:"Peer",value:"'peer'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraydtmfmode=u().keyBy([{option:"rfc2833",value:"'rfc2833'"},{option:"info",value:"'info'"},{option:"shortinfo",value:"'shortinfo'"},{option:"inband",value:"'inband'"},{option:"auto",value:"'auto'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraynat=u().keyBy([{option:"force_rport",value:"'force_rport'"},{option:"comedia",value:"'comedia'"},{option:"yes",value:"'yes'"},{option:"no",value:"'no'"},{option:"never",value:"'never'"},{option:"route",value:"'route'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayqualify=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayallow=u().keyBy([{option:"ulaw",value:"'ulaw'"},{option:"alaw",value:"'alaw'"},{option:"gsm",value:"'gsm'"},{option:"g723",value:"'g723'"},{option:"g726",value:"'g726'"},{option:"g722",value:"'g722'"},{option:"g729",value:"'g729'"},{option:"ilbc",value:"'ilbc'"},{option:"opus",value:"'opus'"},{option:"h264",value:"'h264'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayinsecure=u().keyBy([{option:"port",value:"'port'"},{option:"invite",value:"'invite'"},{option:"very",value:"'very'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraydirectmedia=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"},{option:"nonat",value:"'nonat'"},{option:"update",value:"'update'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraycallcounter=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayusereqphone=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytrustrpid=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysendrpid=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"},{option:"pai",value:"'pai'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayencryption=u().keyBy([{option:"yes",value:"'yes'"},{option:"no",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytransport=u().keyBy([{option:"udp",value:"'udp'"},{option:"tcp",value:"'tcp'"},{option:"ws",value:"'ws'"},{option:"wss",value:"'wss'"},{option:"tls",value:"'tls'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayvideosupport=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"},{option:"Always",value:"'always'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.tools.trunks.edit",{id:e.id,trunk:e,crudPermissions:b.crudPermissions})},b.clonedialog=function(e,t){o.show({controller:"TrunkcloneController",controllerAs:"vm",templateUrl:iw,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{trunk:e,trunks:b.trunks?b.trunks.rows:[],crudPermissions:b.crudPermissions}})},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:411}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.voice.realtime.trunks",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.voice.realtime.trunks",{})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("trunk")+"?").htmlContent("<b>"+(e.name||"trunk")+"</b> will be deleted.").ariaLabel("delete trunk").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getTrunks=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.trunk.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Trunks",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditTrunk=function(e,t){o.show({controller:"CreateOrEditTrunkDialogController",controllerAs:"vm",templateUrl:cw,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{trunk:t,trunks:b.trunks.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteTrunk=S,b.exportSelectedTrunks=function(){const e=angular.copy(b.selectedTrunks);return b.selectedTrunks=[],e},b.deleteSelectedTrunks=function(e){const t=o.confirm().title("Are you sure want to delete the selected trunks?").htmlContent("<b>"+b.selectedTrunks.length+" selected</b> will be deleted.").ariaLabel("delete Trunks").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedTrunks.forEach((function(e){S(e)})),b.selectedTrunks=[]}))},b.deselectTrunks=function(){b.selectedTrunks=[]},b.selectAllTrunks=function(){b.selectedTrunks=b.trunks.rows};let y=!0,v=1;function A(e){b.trunks=e||{count:0,rows:[]}}function S(e){f.trunk.delete({id:e.id}).$promise.then((function(){u().remove(b.trunks.rows,{id:e.id}),b.trunks.count-=1,b.trunks.rows.length||b.getTrunks(),p.success({title:u().startCase("Trunk")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEtrunk"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEtrunk",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getTrunks())}))}uw.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","trunks","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const dw=uw;function fw(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="TOOLS.EDIT_VARIABLE",g.variable=angular.copy(l),g.variables=s,g.newVariable=!1,g.variable||(g.variable={},g.title="TOOLS.NEW_VARIABLE",g.newVariable=!0),g.addNewVariable=function(){g.errors=[],c.variable.save(g.variable).$promise.then((function(e){g.variables.unshift(e.toJSON()),i.success({title:"Variable properly created",msg:g.variable.name?g.variable.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.variable.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.variable.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveVariable=function(){g.errors=[],c.variable.update({id:g.variable.id},g.variable).$promise.then((function(e){const t=u().find(g.variables,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Variable properly saved!",msg:g.variable.name?g.variable.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.variable.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.variable.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteVariable=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The variable will be deleted.").ariaLabel("Delete Variable").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.variable.delete({id:g.variable.id}).$promise.then((function(){u().remove(g.variables,{id:g.variable.id}),i.success({title:"Variable properly deleted!",msg:(g.variable.name||"variable")+" has been deleted!"}),h(g.variable)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.variable.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.variable.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}fw.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","variables","variable","api","Auth","license","setting","crudPermissions"];const mw=fw,pw=n.p+"templates/main/apps/tools/views/variables/create/dialog.html/dialog.html";function gw(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.variables=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="variables",b.listOrder="",b.listOrderAsc=null,b.selectedVariables=[],b.query={fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditVariableDialogController",controllerAs:"vm",templateUrl:pw,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{variable:e,variables:b.variables.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("variable")+"?").htmlContent("<b>"+(e.name||"variable")+"</b> will be deleted.").ariaLabel("delete variable").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getVariables=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.variable.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Variables",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditVariable=function(e,t){o.show({controller:"CreateOrEditVariableDialogController",controllerAs:"vm",templateUrl:pw,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{variable:t,variables:b.variables.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteVariable=S,b.exportSelectedVariables=function(){const e=angular.copy(b.selectedVariables);return b.selectedVariables=[],e},b.deleteSelectedVariables=function(e){const t=o.confirm().title("Are you sure want to delete the selected variables?").htmlContent("<b>"+b.selectedVariables.length+" selected</b> will be deleted.").ariaLabel("delete Variables").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedVariables.forEach((function(e){S(e)})),b.selectedVariables=[]}))},b.deselectVariables=function(){b.selectedVariables=[]},b.selectAllVariables=function(){b.selectedVariables=b.variables.rows};let y=!0,v=1;function A(e){b.variables=e||{count:0,rows:[]}}function S(e){f.variable.delete({id:e.id}).$promise.then((function(){u().remove(b.variables.rows,{id:e.id}),b.variables.count-=1,b.variables.rows.length||b.getVariables(),p.success({title:u().startCase("Variable")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvariable"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvariable",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getVariables())}))}gw.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","variables","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const hw=gw;function _w(e,t){e.state("app.tools",{abstract:!0,url:"/tools"}).state("app.tools.cannedAnswers",{url:"/cannedAnswers",views:{"content@app":{templateUrl:RA,controller:"CannedAnswersController as vm"}},resolve:{cannedAnswers:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cannedAnswer@get",{fields:"createdAt,updatedAt,id,key,value,description",sort:"-updatedAt",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"CannedAnswers",fields:"createdAt,updatedAt,id,key,value,description",sort:"-updatedAt",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1001})}]},authenticate:!0,permissionId:1001,bodyClass:"tools"}).state("app.tools.customDashboards",{url:"/customDashboards",views:{"content@app":{templateUrl:NA,controller:"CustomDashboardsController as vm"}},resolve:{customDashboards:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("dashboard@get",{fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"CustomDashboards",fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1003})}]},authenticate:!0,permissionId:1003,bodyClass:"tools"}).state("app.tools.customDashboards.edit",{url:"/:id?tab",params:{customDashboard:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:LA,controller:"CustomDashboardController as vm"}},resolve:{customDashboard:["apiResolver","$stateParams",function(e,t){return e.resolve("dashboard@get",{fields:"createdAt,updatedAt,id,name,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1003})}]},authenticate:!0,permissionId:1003,bodyClass:"tools"}).state("app.tools.intervals",{url:"/intervals",views:{"content@app":{templateUrl:$A,controller:"IntervalsController as vm"}},resolve:{intervals:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("interval@get",{fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",IntervalId:"null",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Intervals",fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",IntervalId:"null",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1004})}]},authenticate:!0,permissionId:1004,bodyClass:"tools"}).state("app.tools.intervals.edit",{url:"/:id?tab",params:{interval:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:UA,controller:"IntervalController as vm"}},resolve:{interval:["apiResolver","$stateParams",function(e,t){return e.resolve("interval@get",{fields:"createdAt,updatedAt,id,name,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1004})}]},authenticate:!0,permissionId:1004,bodyClass:"tools"}).state("app.tools.pauses",{url:"/pauses",views:{"content@app":{templateUrl:jA,controller:"PausesController as vm"}},resolve:{pauses:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("pause@get",{fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Pauses",fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1005})}]},authenticate:!0,permissionId:1005,bodyClass:"tools"}).state("app.tools.schedules",{url:"/schedules",views:{"content@app":{templateUrl:FA,controller:"SchedulesController as vm"}},resolve:{schedules:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("schedule@get",{fields:"createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Scheduler",fields:"createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1006})}]},authenticate:!0,permissionId:1006,bodyClass:"tools"}).state("app.tools.sounds",{url:"/sounds",views:{"content@app":{templateUrl:qA,controller:"SoundsController as vm"}},resolve:{sounds:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("sound@get",{fields:"createdAt,updatedAt,id,save_name,converted_format,name,audio,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Sounds",fields:"createdAt,updatedAt,id,save_name,converted_format,name,audio,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1007})}]},authenticate:!0,permissionId:1007,bodyClass:"tools"}).state("app.tools.tags",{url:"/tags",views:{"content@app":{templateUrl:YA,controller:"TagsController as vm"}},resolve:{tags:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("tag@get",{fields:"createdAt,updatedAt,id,name,description,color",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Tags",fields:"createdAt,updatedAt,id,name,description,color",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1008})}]},authenticate:!0,permissionId:1008,bodyClass:"tools"}).state("app.tools.templates",{url:"/templates",views:{"content@app":{templateUrl:HA,controller:"TemplatesController as vm"}},resolve:{templates:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("template@get",{fields:"createdAt,updatedAt,id,name,html,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Templates",fields:"createdAt,updatedAt,id,name,html,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1009})}]},authenticate:!0,permissionId:1009,bodyClass:"tools"}).state("app.tools.trunks",{url:"/trunks",views:{"content@app":{templateUrl:BA,controller:"TrunksController as vm"}},resolve:{trunks:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("trunk@get",{fields:"createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Trunks",fields:"createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1011})}]},authenticate:!0,permissionId:1011,bodyClass:"tools"}).state("app.tools.trunks.edit",{url:"/:id?tab",params:{trunk:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:GA,controller:"TrunkController as vm"}},resolve:{trunk:["apiResolver","$stateParams",function(e,t){return e.resolve("trunk@get",{fields:"createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1011})}]},authenticate:!0,permissionId:1011,bodyClass:"tools"}).state("app.tools.variables",{url:"/variables",views:{"content@app":{templateUrl:VA,controller:"VariablesController as vm"}},resolve:{variables:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("variable@get",{fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Variables",fields:"createdAt,updatedAt,id,name,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1012})}]},authenticate:!0,permissionId:1012,bodyClass:"tools"}),t.addPart("app/main/apps/tools")}_w.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.tools",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.tools.dispositions","app.tools.triggers"]).config(_w).controller("CannedAnswersController",zA).controller("CreateOrEditCannedAnswerDialogController",JA).controller("CreateOrEditCustomDashboardDialogController",ZA).controller("CustomDashboardsController",aS).controller("CustomDashboardcloneController",rS).controller("CustomDashboardItemsController",cS).controller("CreateOrEditDashboardItemDialogController",fS).controller("CustomDashboardController",pS).controller("CreateOrEditIntervalDialogController",hS).controller("EditAppintervalDialogController",bS).controller("IntervalIntervalsController",AS).controller("IntervalController",wS).controller("IntervalsController",TS).controller("CreateOrEditPauseDialogController",kS).controller("PausesController",MS).controller("CreateOrEditScheduleDialogController",RS).controller("SchedulesController",$S).controller("CreateOrEditSoundDialogController",jS).controller("SoundsController",HS).controller("UploadSoundDialogController",GS).controller("CreateOrEditTagDialogController",WS).controller("TagsController",KS).controller("CreateOrEditTemplateDialogController",XS).controller("TemplatesController",tw).controller("CreateOrEditTrunkDialogController",aw).controller("TrunkcloneController",rw).controller("TrunkController",lw).controller("TrunksController",dw).controller("CreateOrEditVariableDialogController",mw).controller("VariablesController",hw);const bw=n.p+"templates/main/apps/callysquare/views/projects/projects.html/projects.html",yw=n.p+"templates/main/apps/callysquare/views/projects/edit/view.html/view.html";function vw(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(t){e.hide(t)}f.errors=[],f.title="CALLYSQUARE.EDIT_PROJECT",f.crudPermissions=d,f.project=angular.copy(s),f.newWindow=!0,f.projects=i,f.newProject=!1,f.openFromEditor=c,f.project||(f.project={name:"",description:""},f.title="CALLYSQUARE.NEW_PROJECT",f.newProject=!0),f.addNewProject=function(){f.errors=[],l.squareProject.save(f.project).$promise.then((function(e){return l.user.addSquareProjects({id:o.getCurrentUser().id,ids:[e.id]}).$promise,e})).then((function(e){f.projects.unshift(e),r.success({title:"Project properly created",msg:f.project.name?f.project.name+" has been created!":""}),m(e),f.openFromEditor&&(f.newWindow?t.open("/callysquare/projects/"+e.id,"_blank"):n.go("app.callysquare.projects.edit",{id:e.id}))})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"api.squareProject.save"}];for(let t=0;t<e.data.errors.length;t++)r.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareProject.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.saveProject=function(){f.errors=[],l.squareProject.update({id:f.project.id},f.project).$promise.then((function(e){const t=u().find(f.projects,{id:e.id});t&&u().merge(t,e),r.success({title:"Project properly saved!",msg:f.project.name?f.project.name+" has been saved!":""}),m(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"api.squareProject.update"}];for(let t=0;t<e.data.errors.length;t++)r.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareProject.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.deleteProject=function(){f.errors=[];const t=e.confirm().title("Are you sure?").content("The project will be deleted.").ariaLabel("Delete Project").ok("Delete").cancel("Cancel").targetEvent(event);e.show(t).then((function(){l.squareProject.delete({id:f.project.id}).$promise.then((function(){return l.squareProject.getUsers({id:f.project.id}).$promise})).then((function(e){const t=[],n=e.rows;for(let e=0;e<n.length;e++)t.push(l.user.removeSquareProjects({id:o.getCurrentUser().id,ids:[f.project.id]}).$promise);return a.all(t)})).then((function(){u().remove(f.projects,{id:f.project.id}),r.success({title:"Project properly deleted!",msg:f.project.name?f.project.name+" has been deleted!":""}),m(f.project)})).catch((function(e){console.error(e),f.errors=e.data.errors||[{message:e.toString(),type:"api.squareProject.delete"}]}))}),(function(){}))},f.closeDialog=m}vw.$inject=["$mdDialog","$window","$state","$q","Auth","toasty","projects","project","api","openFromEditor","crudPermissions"];const Aw=vw;function Sw(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_,b,y,v,A,S,w,E,C,T,I,k,D,x,M,P){const O=this,R={playback:["file_id"],answer:["timeout"],menu:["file_id","digit","response","retry"],getdigits:["file_id","variable_id","mindigit","maxdigit","retry"],getsecretdigits:["file_id","variable_id","mindigit","maxdigit","hiddendigitsnum","retry"],vswitch:["variable_id"],database:["odbc_id","query"],ext_dial:["trunk_name","phone","timeout"],set:["variable_id"],math:["variable_id"],gotoc:["context","extension","priority"],system:["command"],agi:["command"],gotoif:["condition"],saydigits:["digits"],saynumber:["number"],sayphonetic:["text"],record:["file","timeout"],goal:["goalname"],dial:["sip_id","timeout"],queue:["queue_id","timeout"],callback:["list_id","name","phone","delay"],gotoiftime:["interval_id"],voicemail:["mailbox"],subproject:["project_id"],sendSMS:["sms_account_id","to","sms_text"],sendMail:["account_id","to"],sendFax:["account_id","to","attachment_path"],google_cloud_tts:["apiKey","google_cloud_tts_text_type","text"],tts:["text"],ispeechtts:["text","key","speed"],ispeechasr:["key","timeout"],custom_app:["application"],googleasr:["key","timeout"],awspolly:["aws_access_key_id","aws_secret_access_key","text","aws_text_type"],lumenvoxtts:["text"],sestektts:["text"],lumenvoxasr:["grammar"],sestekasr:["grammar"],tildeasr:["appid","appsecret","uri"],login:["findBy"],pause:["findBy","pause_id"],unpause:["findBy"],logout:["findBy"],dialogflow:["key","text","dialogflow_language"],awslex:["aws_access_key_id","aws_secret_access_key","aws_lex_region","aws_bot_name","text"],sesteknda:["text","ndauth_url","username","password","ndassistant_url"],restapi:["url","method"],mrcpsynth:["text"],mrcprecog:["grammar"],dialogflowV2:["dialogflowV2_project_id","client_email","private_key","dialogflowV2_language","text"]},N={queue:["file_id"],database:["variable_id"],pause:["pause_id"]},L={sendMail:["to","cc","bcc"],voicemail:["mailbox"]};function $(e,t,n,a){return u().map(e,(function(e){return{value:e[t],option:e[n],group:a?e[a]:void 0,canSelect:void 0===e.canSelect||e.canSelect}}))}function U(e,t,n,a){const o=u().filter(e,(function(e){return null===e[a]})),r=[];return u().forEach(o,(function(o){r.push({value:o[t],option:o[n]});const i=u().filter(e,(function(e){return e[a]===o.id}));u().forEach(i,(function(e){r.push({value:e[t],option:" - "+e[n]})}))})),r}function j(){const e=Number(u().find(O.attributes,{name:"sip_id"}).value);if(!u().some(c,{id:e})&&e>0)return t.user.get({id:e,fields:"id,fullname,role"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,c.push(t),O.values.sip_id=$(c,"id","fullname","role")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_USER",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.sip_id=$(c,"id","fullname","role")}function F(){const e=Number(u().find(O.attributes,{name:"list_id"}).value);if(!u().some(A,{id:e})&&e>0)return t.cmList.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,A.push(t),O.values.list_id=$(A,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_LIST",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.list_id=$(A,"id","name")}function q(){const e=Number(u().find(O.attributes,{name:"trunk_id"}).value);if(!u().some(d,{id:e})&&e>0)return t.trunk.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,d.push(t),O.values.trunk_id=$(d,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_TRUNK",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.trunk_id=$(d,"id","name")}function Y(){const e=u().find(O.attributes,{name:"trunk_name"}).value;if(!u().some(d,{name:e})&&e)return t.trunk.get({name:e,fields:"id,name"}).$promise.then((function(e){if(e.count>0&&e.rows.length>0){const t=e.rows[0];t.canSelect=!1,d.push(t),O.values.trunk_name=$(d,"name","name")}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_TRUNK",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.trunk_name=$(d,"name","name")}function H(){const e=Number(u().find(O.attributes,{name:"queue_id"}).value);if(!u().some(f,{id:e})&&e>0)return t.voiceQueue.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,f.push(t),O.values.queue_id=$(f,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_QUEUE",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.queue_id=$(f,"id","name")}function B(){const e=Number(u().find(O.attributes,{name:"file_id"}).value);if(!u().some(m,{id:e})&&e>0)return t.sound.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,m.push(t),O.values.file_id=$(m,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_SOUND",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.file_id=$(m,"id","name")}function G(){const e=Number(u().find(O.attributes,{name:"variable_id"}).value);if(!u().some(p,{id:e})&&e>0)return t.variable.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,p.push(t),O.values.variable_id=$(p,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_VARIABLE",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.variable_id=$(p,"id","name")}function V(){const e=Number(u().find(O.attributes,{name:"odbc_id"}).value);if(!u().some(g,{id:e})&&e>0)return t.squareOdbc.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,g.push(t),O.values.odbc_id=$(g,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_ODBC",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.odbc_id=$(g,"id","name")}function W(){const e=Number(u().find(O.attributes,{name:"project_id"}).value);if(!u().some(h,{id:e})&&e>0)return t.squareProject.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,h.push(t),O.values.project_id=$(h,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_PROJECT",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.project_id=$(h,"id","name")}function Q(){const e=Number(u().find(O.attributes,{name:"context"}).value);if(!u().some(_,{id:e})&&e>0)return t.voiceContext.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,_.push(t),O.values.context=$(_,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_CONTEXT",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.context=$(_,"id","name")}function z(){const e=Number(u().find(O.attributes,{name:"interval_id"}).value);if(!u().some(b,{id:e})&&e>0)return t.interval.get({id:e,fields:"id,name,IntervalId"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,b.push(t),O.values.interval_id=$(b,"id","name","IntervalId")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_INTERVAL",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.interval_id=$(b,"id","name","IntervalId")}function K(){const e=Number(u().find(O.attributes,{name:"account_id"}).value);if(!u().some(y,{id:e})&&e>0)return t.mailAccount.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,y.push(t),O.values.account_id=$(y,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_MAIL_ACCOUNT",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.account_id=$(y,"id","name")}function J(){const e=Number(u().find(O.attributes,{name:"sms_account_id"}).value);if(!u().some(T,{id:e})&&e>0)return t.smsAccount.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,T.push(t),O.values.sms_account_id=$(T,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_SMS_ACCOUNT",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.sms_account_id=$(T,"id","name")}function X(){const e=Number(u().find(O.attributes,{name:"template_id"}).value);if(!u().some(v,{id:e})&&e>0)return t.template.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,v.push(t),O.values.template_id=$(v,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_TEMPLATE",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.template_id=$(v,"id","name")}function Z(){const e=Number(u().find(O.attributes,{name:"pause_id"}).value);if(!u().some(I,{id:e})&&e>0)return t.pause.get({id:e,fields:"id,name"}).$promise.then((function(e){const t=e.toJSON();t.canSelect=!1,I.push(t),O.values.pause_id=$(I,"id","name")})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"GET_PAUSE",msg:e.data?JSON.stringify(e.data.message):e.toString()})}));O.values.pause_id=$(I,"id","name")}O.cellName=S.tagName,O.attributes=u().map(S.attributes,(function(e){return{name:e.name,value:e.value,defaultValue:N[O.cellName]&&u().includes(N[O.cellName],e.name),required:R[O.cellName]&&u().includes(R[O.cellName],e.name),help:L[O.cellName]&&u().includes(L[O.cellName],e.name)}})),O.values={authMethod:[{value:"noauth",option:"NO AUTH"},{value:"hmac",option:"HMAC"}],answer:[{value:"yes",option:"Yes"},{value:"no",option:"No"}],ndagenerate_audio:[{value:1,option:"Yes"},{value:0,option:"No"}],ndaactivity_type:[{value:"message",option:"Message"},{value:"conversationUpdate",option:"Conversation Update"},{value:"contactRelationUpdate",option:"Contact Relation Update"},{value:"endOfConversation",option:"End of Conversation"}],hiddendigitspos:[{value:"first",option:"First"},{value:"last",option:"Last"}],recordingFormat:[{value:"wav",option:"Wav"},{value:"gsm",option:"Gsm"}],intkey:[{value:"#",option:"#"},{value:"*",option:"*"}],beep:[{value:"BEEP",option:"Yes"},{value:"NOBEEP",option:"No"}],model:a,ispeech_asr_language:o,ispeech_tts_language:i,languageCode:s,ssmlGender:[{value:"FEMALE",option:"Female"},{value:"MALE",option:"Male"}],google_tts_language:l,google_asr_language:r,google_cloud_tts_text_type:[{value:"text",option:"Text"},{value:"ssml",option:"SSML"}],aws_polly_region:C,aws_polly_voice:E,aws_text_type:[{value:"text",option:"Text"},{value:"ssml",option:"SSML"}],callback_priority:[{option:"Highest",value:4},{option:"High",value:3},{option:"Medium",value:2},{option:"Low",value:1},{option:"Lowest",value:0}],findBy:[{value:"internal",option:"Internal"},{value:"phone",option:"Phone"},{value:"mobile",option:"Mobile"}],dialogflow_language:k,dialogflowV2_language:D,aws_lex_region:x,method:[{value:"GET",option:"GET"},{value:"POST",option:"POST"},{value:"PUT",option:"PUT"},{value:"DELETE",option:"DELETE"}]},O.crudPermissions=P,O.onInit=function(){M.hasRole("admin")?function(){const e={sip_id:$(c,"id","fullname","role"),trunk_name:$(d,"name","name"),trunk_id:$(d,"id","name"),queue_id:$(f,"id","name"),file_id:$(m,"id","name"),variable_id:$(p,"id","name"),odbc_id:$(g,"id","name"),project_id:$(h,"id","name"),context:$(_,"id","name"),interval_id:U(b,"id","name","IntervalId"),account_id:$(y,"id","name"),template_id:$(v,"id","name"),list_id:$(A,"id","name"),sms_account_id:$(T,"id","name"),pause_id:$(I,"id","name")},t=u().merge(O.values,e);O.values=t}():function(){const e=["sip_id","trunk_name","trunk_id","queue_id","file_id","variable_id","odbc_id","project_id","context","interval_id","account_id","template_id","list_id","sms_account_id","pause_id"];for(let t=0;t<O.attributes.length;t++)if(u().includes(e,O.attributes[t].name))switch(O.attributes[t].name){case"sip_id":j();break;case"trunk_name":Y();break;case"trunk_id":q();break;case"queue_id":H();break;case"file_id":B();break;case"variable_id":G();break;case"odbc_id":V();break;case"project_id":W();break;case"context":Q();break;case"interval_id":z();break;case"account_id":K();break;case"template_id":X();break;case"list_id":F();break;case"sms_account_id":J();break;case"pause_id":Z()}}()},O.closeDialog=function(t){t&&w(O.attributes),e.hide()},O.getMap=$}Sw.$inject=["$mdDialog","api","toasty","ispeechAsrModel","ispeechAsrLanguage","googleAsrLanguage","ispeechTtsLanguage","googleCloudTtslanguageCode","googleTtsLanguage","users","trunks","queues","sounds","variables","databases","projects","contexts","intervals","mailAccounts","templates","lists","cell","saveCallback","awsPollyVoice","awsPollyRegion","smsAccounts","pauses","dialogFlowLanguage","dialogFlowV2Language","awsLexRegion","Auth","crudPermissions"];const ww=Sw;const Ew=function(){return{require:"ngModel",link:function(e,t,n,a){a.$parsers.push((function(e){return""+e})),a.$formatters.push((function(e){return parseFloat(e)}))}}};function Cw(e,t,n,a){const o=this;o.project={preproduction:n},o.closeDialog=function(t){t?(a(o.project.preproduction),e.hide(o.project.preproduction)):e.hide()}}Cw.$inject=["$mdDialog","toasty","currentXML","saveCallback"];const Tw=Cw;function Iw(e,t){const n=this,a=5242880;function o(n){n?(t(n),e.hide(n)):e.hide()}n.errors=[],n.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:a,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},n.ngFlow={flow:{}},n.dropping=!1,n.closeDialog=o,n.fileAdded=function(e){n.errors=[];u().includes(["xml"],e.getExtension())||n.errors.push({message:"The extension "+e.getExtension()+" is not supported!"});e.size>a&&n.errors.push({message:"The file is too big. The max allowed size is 5MB"});if(!n.errors.length){const t=new FileReader;t.onload=function(e){o(e.target.result)},t.readAsText(e.file)}}}Iw.$inject=["$mdDialog","saveCallback"];const kw=Iw;function Dw(e,t,n,a){const o=this;o.project=u().clone(n),o.closeDialog=function(){e.hide()},o.save=function(){o.errors=[],a.squareProject.update({id:o.project.id},{notes:o.project.notes,description:o.project.description}).$promise.then((function(n){t.success({title:"Project updated!",msg:o.project.name?o.project.name+" has been updated!":""}),e.hide(n)})).catch((function(e){console.error(e),o.errors=e.data.errors||[{message:e.toString(),type:"api.squareProject.update"}]}))}}Dw.$inject=["$mdDialog","toasty","project","api"];const xw=Dw;function Mw(e,t,n,a,o){const r=this;r.projects=n,r.id="",r.newWindow=!0,r.closeDialog=function(t){r.errors=[],t?(e.hide(),r.newWindow?a.open("/callysquare/projects/"+r.id,"_blank"):o.go("app.callysquare.projects.edit",{id:r.id})):e.hide()}}Mw.$inject=["$mdDialog","toasty","projects","$window","$state"];const Pw=Mw;function Ow(e,t,n,a,o,r){const i=this;function s(){return n.squareProject.getUsers({id:i.project.id,fields:"id,name,fullname,internal",nolimit:!0,role:"user"}).$promise.then((function(e){return i.selectedItems=e.rows?u().map(e.rows,(function(e){return e})):[],i.dualMultiselectOptions.selectedItems=i.selectedItems,n.user.get({fields:"id,fullname,name,internal",role:"user",nolimit:!0}).$promise})).then((function(e){i.items=e.rows?u().map(e.rows,(function(e){return e})):[],i.dualMultiselectOptions.items=u().differenceBy(i.items,i.selectedItems,"id")})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETUSERS",msg:e.status?JSON.stringify(e.data):e.toString()})}))}i.project=a,i.penalty=0,i.items=[],i.selectedItems=[],i.closeDialog=function(){e.hide()},i.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"penalty",labelAll:r.instant("APP.ALL_USERS"),labelSelected:r.instant("APP.SELECTED_USERS"),transferCallback:function(e,a){n.squareProject[a?"removeUsers":"addUsers"]({id:i.project.id,ids:u().map(e,"id"),penalty:i.penalty||0}).$promise.then((function(){t.success({title:"Project properly "+(a?"removed":"added"),msg:"Project has been "+(a?"removed":"added")+"!"}),a||s()})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:squareProjects.ADDUSERS",msg:e.status?JSON.stringify(e.data):e.toString()})}))}},s()}Ow.$inject=["$mdDialog","toasty","api","project","projects","$translate"];const Rw=Ow;function Nw(e,t,n,a,o,r,i){const s=this;s.project=angular.copy(n),s.project.name+="_new",s.project.preproduction=a,s.newWindow=!0,s.closeDialog=function(){e.hide()},s.save=function(){delete s.project.id,o.squareProject.save(s.project).$promise.then((function(n){t.success({title:"Project properly created",msg:s.project.name?s.project.name+" has been created!":""}),e.hide(n),s.newWindow?r.open("/callysquare/projects/"+n.id,"_blank"):i.go("app.callysquare.projects.edit",{id:n.id})})).catch((function(e){console.error(e),s.errors=e.data.errors||[{message:e.toString(),type:"api.squareProject.save"}]}))}}Nw.$inject=["$mdDialog","toasty","project","currentXML","api","$window","$state"];const Lw=Nw,$w=n.p+"templates/main/apps/callysquare/views/projects/edit/dialog/dialog.html/dialog.html",Uw=n.p+"templates/main/apps/callysquare/views/projects/create/dialog.html/dialog.html",jw=n.p+"templates/main/apps/callysquare/views/projects/edit/open/open.html/open.html",Fw=n.p+"templates/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs.html",qw=n.p+"templates/main/apps/callysquare/views/projects/edit/info/info.html/info.html",Yw=n.p+"templates/main/apps/callysquare/views/projects/edit/edit/edit.html/edit.html",Hw=n.p+"templates/main/apps/callysquare/views/projects/edit/import/import.html/import.html";Vw.$inject=["$state","$document","$mdDialog","$q","$translate","toasty","api","project","users","trunks","queues","sounds","variables","databases","contexts","projects","intervals","mailAccounts","templates","lists","smsAccounts","pauses","userProfileSection","Auth"];const Bw=window.EditorUi,Gw=window.Editor;function Vw(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_,b,y,v,A,S,w,E){const C=this;C.currentUser=E.getCurrentUser(),C.project=s||{},C.userProfileSection=w&&1==w.count?w.rows[0]:null,C.crudPermissions=E.parseCrudPermissions(C.userProfileSection?C.userProfileSection.crudPermissions:null),C.onInit=function(){new Bw(C,new Gw,document.getElementById("geEditor")).openString(C.project.preproduction,C.project.name,C.project)},C.saveOrPublishProject=function(e,t){const n={preproduction:e};t&&(n.production=e);i.squareProject.update({id:C.project.id},n).$promise.then((function(e){r.success({title:"Project "+(t?"published":"saved")+"!",msg:C.project.name?C.project.name+" has been "+(t?"published":"saved")+"!":""}),C.project.preproduction=e.preproduction})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsquareProject",msg:e.data?JSON.stringify(e.data):e.toString()})}))},C.openDialog=function(e,a){n.show({controller:"MxGraphDialogController",controllerAs:"vm",templateUrl:$w,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{users:l.rows||[],trunks:c.rows||[],queues:d.rows||[],sounds:f.rows||[],variables:m.rows||[],databases:p.rows||[],contexts:g.rows||[],projects:h.rows||[],intervals:_.rows||[],mailAccounts:b.rows||[],smsAccounts:A.rows||[],pauses:S.rows||[],templates:y.rows||[],lists:v.rows||[],cell:e,saveCallback:a,crudPermissions:C.crudPermissions}})},C.newProject=function(e){n.show({controller:"CreateOrEditSquareProjectDialogController",controllerAs:"vm",templateUrl:Uw,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{project:e,projects:h.rows,openFromEditor:!0,license:null,setting:null,crudPermissions:C.crudPermissions}})},C.openProject=function(){n.show({controller:"MxGraphOpenProjectController",controllerAs:"vm",templateUrl:jw,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{projects:h.rows||[]}})},C.saveProjectAs=function(e){n.show({controller:"MxGraphSaveProjectAsController",controllerAs:"vm",templateUrl:Fw,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{project:C.project,currentXML:e}}).then((function(e){e&&h.rows.push(e)}))},C.newVariable=function(e){return a((function(e,t){return i.userProfileSection.get({userProfileId:C.currentUser.userProfileId,sectionId:1012}).$promise.then((function(t){const n=t.rows?t.rows[0]:null,a=E.parseCrudPermissions(n?n.crudPermissions:null);e(a)})).catch((function(e){t(e)}))})).then((function(a){a.canEdit?n.show({controller:"CreateOrEditVariableDialogController",controllerAs:"vm",templateUrl:pw,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{variable:e,variables:m.rows,license:null,setting:null,crudPermissions:a}}):r.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE")})})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"API:NEW_VARIABLE",msg:e.data?JSON.stringify(e.data):e.toString()})}))},C.updateInfo=function(e){n.show({controller:"MxGraphUpdateInfoController",controllerAs:"vm",templateUrl:qw,parent:angular.element(t.body),targetEvent:e,clickOutsideToClose:!0,locals:{project:C.project}}).then((function(e){e&&u().merge(C.project,e)}))},C.editXML=function(e,a){n.show({controller:"MxGraphEditXMLController",controllerAs:"vm",templateUrl:Yw,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{currentXML:e,saveCallback:a}}).then((function(e){e&&(C.project.preproduction=e)}))},C.importXML=function(e){n.show({controller:"MxGraphImportXMLController",controllerAs:"vm",templateUrl:Hw,parent:angular.element(t.body),clickOutsideToClose:!0,locals:{saveCallback:e}}).then((function(e){e&&(C.project.preproduction=e)}))},C.gotoProjects=function(){e.go("app.callysquare.projects",{},{reload:"app.callysquare.projects"})}}const Ww=Vw;function Qw(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;p.baseUrl=i.baseUrl,p.currentUser=m.getCurrentUser(),p.projects=a||{count:0,rows:[]},p.userProfile=o,p.userProfileSection=r&&1==r.count?r.rows[0]:null,p.crudPermissions=m.parseCrudPermissions(p.userProfileSection?p.userProfileSection.crudPermissions:null),p.table="projects",p.listOrder="",p.listOrderAsc=null,p.selectedProjects=[],p.query={fields:"id,name,description,notes",sort:"-updatedAt",limit:10,page:1},p.editstate=function(e){t.go("app.callysquare.projects.edit",{id:e.id,crudPermissions:p.crudPermissions})},p.deleteconfirm=function(e,t){const n=l.confirm().title("Are you sure want to delete the project?").htmlContent("<b>"+e.name+"</b> will be deleted.").ariaLabel("delete project").targetEvent(t).ok("OK").cancel("CANCEL");l.show(n).then((function(){b(e)}),(function(){console.log("CANCEL")}))},p.success=_,p.getProjects=function(){p.query.offset=(p.query.page-1)*p.query.limit,m.hasRole("admin")?p.promise=i.squareProject.get(p.query,_).$promise:(p.query.id=p.userProfile.id,p.query.section="SquareProjects",p.promise=i.userProfile.getResources(p.query,_).$promise)},p.createOrEditProject=function(e,t){l.show({controller:"CreateOrEditSquareProjectDialogController",controllerAs:"vm",templateUrl:Uw,parent:angular.element(c.body),targetEvent:e,clickOutsideToClose:!0,locals:{project:t,projects:p.projects.rows,openFromEditor:null,setting:null,crudPermissions:p.crudPermissions}})},p.deleteProject=b,p.exportSelectedProjects=function(){const e=angular.copy(p.selectedProjects);return p.selectedProjects=[],e},p.deleteSelectedProjects=function(e){const t=l.confirm().title("Are you sure want to delete the selected projects?").htmlContent("<b>"+p.selectedProjects.length+" selected</b> will be deleted.").ariaLabel("delete Projects").targetEvent(e).ok("OK").cancel("CANCEL");l.show(t).then((function(){p.selectedProjects.forEach((function(e){b(e)})),p.selectedProjects=[]}))},p.deselectProjects=function(){p.selectedProjects=[]},p.selectAllProjects=function(){p.selectedProjects=p.projects.rows};let g=!0,h=1;function _(e){p.projects=e||{count:0,rows:[]}}function b(e){i.squareProject.delete({id:e.id}).$promise.then((function(){u().remove(p.projects.rows,{id:e.id}),p.projects.count-=1,p.projects.rows.length||p.getProjects(),f.success({title:"Project deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.project.delete"}];for(let t=0;t<e.data.errors.length;t++)f.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.project.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){g?d((function(){g=!1})):(t||(h=p.query.page),e!==t&&(p.query.page=1),e||(p.query.page=h),p.getProjects())}))}Qw.$inject=["$scope","$state","$mdSidenav","projects","userProfile","userProfileSection","api","msUtils","$mdDialog","$document","$timeout","toasty","Auth"];const zw=Qw;function Kw(e){e.state("app.callysquare.projects",{url:"/projects",views:{"content@app":{templateUrl:bw,controller:"ProjectsController as vm"}},resolve:{projects:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("squareProject@get",{fields:"id,name,description,notes",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SquareProjects",fields:"id,name,description,notes",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1103})}]},authenticate:!0,permissionId:1103,bodyClass:"callysquare"}).state("app.callysquare.projects.edit",{url:"/:id",views:{"content@app":{templateUrl:yw,controller:"ProjectController as vm"}},params:{crudPermissions:void 0},resolve:{project:["apiResolver","$stateParams",function(e,t){return e.resolve("squareProject@get",{id:t.id})}],users:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,fullname,role",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Users",mergeResources:!0,fields:"id,fullname,role",sort:"name",nolimit:!0})}],trunks:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("trunk@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Trunks",fields:"id,name",sort:"name",nolimit:!0})}],queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"inbound",fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VoiceQueues",type:"inbound",fields:"id,name",sort:"name",nolimit:!0})}],sounds:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("sound@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Sounds",fields:"id,name",sort:"name",nolimit:!0})}],variables:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("variable@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Variables",fields:"id,name",sort:"name",nolimit:!0})}],databases:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("squareOdbc@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ODBC",fields:"id,name",sort:"name",nolimit:!0})}],projects:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("squareProject@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SquareProjects",fields:"id,name",sort:"name",nolimit:!0})}],contexts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceContext@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Contexts",fields:"id,name",sort:"name",nolimit:!0})}],intervals:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("interval@get",{fields:"id,name,IntervalId",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Intervals",fields:"id,name,IntervalId",sort:"name",nolimit:!0})}],mailAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("mailAccount@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"MailAccounts",fields:"id,name",sort:"name",nolimit:!0})}],templates:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("template@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Templates",fields:"id,name",sort:"name",nolimit:!0})}],lists:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("cmList@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Lists",fields:"id,name",sort:"name",nolimit:!0})}],smsAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("smsAccount@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SmsAccounts",fields:"id,name",sort:"name",nolimit:!0})}],pauses:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("pause@get",{fields:"id,name",sort:"name",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Pauses",fields:"id,name",sort:"name",nolimit:!0})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1103})}]},authenticate:!0,permissionId:1103,bodyClass:"callysquare"})}Kw.$inject=["$stateProvider"],angular.module("app.callysquare.projects",[]).config(Kw).controller("CreateOrEditSquareProjectDialogController",Aw).controller("MxGraphDialogController",ww).directive("stringToNumber",Ew).factory("ispeechAsrModel",(function(){return[{value:"0",option:"Default"},{value:"date",option:"Date"},{value:"usmoney",option:"US Money"},{value:"numbersto9",option:"Numbers to 9"},{value:"numbersto99",option:"Numbers to 99"},{value:"numbersto999",option:"Numbers to 999"},{value:"time",option:"Time"},{value:"phonenumber",option:"Phone number"},{value:"streets",option:"Streets"},{value:"citystate",option:"US City/States"}]})).factory("ispeechAsrLanguage",(function(){return[{value:"en-US",option:"English (US)"},{value:"en-CA",option:"English (Canada)"},{value:"en-GB",option:"English (UK)"},{value:"en-AU",option:"English (Australia)"},{value:"es-ES",option:"Spanish (Spain)"},{value:"es-MX",option:"Spanish (Mexico)"},{value:"it-IT",option:"Italian (Italy) / Finnish (Finland)"},{value:"fr-FR",option:"German (Germany)"},{value:"fr-CA",option:"French (Canada)"},{value:"pl-PL",option:"Polish (Poland)"},{value:"pt-PT",option:"Portuguese (Portugal)"},{value:"ca-ES",option:"Catalan (Catalan)"},{value:"zh-TW",option:"Chinese (Taiwan)"},{value:"da-DK",option:"Danish (Denmark)"},{value:"ja-JP",option:"Japanese (Japan)"},{value:"ko-KR",option:"Korean (Korea)"},{value:"nl-NL",option:"Dutch (Netherlands)"},{value:"nb-NO",option:"Norwegian (Norway)"},{value:"pt-BR",option:"Portuguese (Brazil)"},{value:"ru-RU",option:"Russian (Russia)"},{value:"sv-SE",option:"Swedish (Sweden)"},{value:"zh-CN",option:"Chinese (China)"},{value:"zh-HK",option:"Chinese (Hong Kong)"}]})).factory("ispeechTtsLanguage",(function(){return[{value:"usenglishfemale",option:"US English Female"},{value:"usenglishmale",option:"US English Male"},{value:"ukenglishfemale",option:"UK English Female"},{value:"ukenglishmale",option:"UK English Male"},{value:"auenglishfemale",option:"Australian English"},{value:"usspanishfemale",option:"US Spanish Female"},{value:"usspanishmale",option:"US Spanish Male"},{value:"chchinesefemale",option:"Chinese Female"},{value:"chchinesemale",option:"Chinese Male"},{value:"hkchinesefemale",option:"Hong Kong Cantonese Female"},{value:"twchinesefemale",option:"Taiwan Chinese Female"},{value:"jpjapanesefemale",option:"Japanese Female"},{value:"jpjapanesemale",option:"Japanese Male"},{value:"krkoreanfemale",option:"Korean Female"},{value:"krkoreanmale",option:"Korean Male"},{value:"caenglishfemale",option:"Canadian English Female"},{value:"huhungarianfemale",option:"Hungarian Female"},{value:"brportuguesefemale",option:"Brazilian Portuguese Female"},{value:"eurportuguesefemale",option:"European Portuguese Female"},{value:"eurportuguesemale",option:"European Portuguese Male"},{value:"eurspanishfemale",option:"European Spanish Female"},{value:"eurspanishmale",option:"European Spanish Male"},{value:"eurcatalanfemale",option:"European Catalan Female"},{value:"eurczechfemale",option:"European Czech Female"},{value:"eurdanishfemale",option:"European Danish Female"},{value:"eurfinnishfemale",option:"European Finnish Female"},{value:"eurfrenchfemale",option:"European French Female"},{value:"eurfrenchmale",option:"European French Male"},{value:"eurnorwegianfemale",option:"European Norwegian Female"},{value:"eurdutchfemale",option:"European Dutch Female"},{value:"eurpolishfemale",option:"European Polish Female"},{value:"euritalianfemale",option:"European Italian Female"},{value:"euritalianmale",option:"European Italian Male"},{value:"eurturkishfemale",option:"European Turkish Female"},{value:"eurturkishmale",option:"European Turkish Male"},{value:"eurgermanfemale",option:"European German Female"},{value:"eurgermanmale",option:"European German Male"},{value:"rurussianfemale",option:"Russian Female"},{value:"rurussianmale",option:"Russian Male"},{value:"swswedishfemale",option:"Swedish Female"},{value:"cafrenchfemale",option:"Canadian French Female"},{value:"cafrenchmale",option:"Canadian French Male"}]})).factory("googleCloudTtslanguageCode",(function(){return[{value:"ar-XA",option:"Arabic"},{value:"cs-CZ",option:"Czech (Czech Republic)"},{value:"da-DK",option:"Danish (Denmark)"},{value:"de-DE",option:"Dutch (Netherlands)"},{value:"el-GR",option:"Greek (Greece)"},{value:"en-AU",option:"English (Australian)"},{value:"en-IN",option:"English (India)"},{value:"en-GB",option:"English (UK)"},{value:"en-US",option:"English (US)"},{value:"fi-FI",option:"Finnish (Finland)"},{value:"fil-PH",option:"Filipino (Philippines)"},{value:"fr-CA",option:"French (Canada)"},{value:"fr-FR",option:"French (France)"},{value:"hi-IN",option:"Hindi (India)"},{value:"hu-HU",option:"Hungarian (Hungary)"},{value:"id-ID",option:"Indonesian (Indonesia)"},{value:"it-IT",option:"Italian (Italy)"},{value:"ja-JP",option:"Japanese (Japan)"},{value:"ko-KR",option:"Korean (South Korea)"},{value:"cmn-CN",option:"Mandarin Chinese"},{value:"nb-NO",option:"Norwegian (Norway)"},{value:"pl-PL",option:"Polish (Poland)"},{value:"pt-BR",option:"Portuguese (Brazil)"},{value:"pt-PT",option:"Portuguese (Portugal)"},{value:"ru-RU",option:"Russian (Russia)"},{value:"sk-SK",option:"Slovak (Slovakia)"},{value:"es-ES",option:"Spanish (Spain)"},{value:"sv-SE",option:"Swedish (Sweden)"},{value:"tr-TR",option:"Turkish (Turkey)"},{value:"uk-UA",option:"Ukrainian (Ukraine)"},{value:"vi-VN",option:"Vietnamese (Vietnam)"}]})).factory("googleTtsLanguage",(function(){return[{value:"af",option:"Afrikaans"},{value:"sq",option:"Albanian"},{value:"am",option:"Amharic"},{value:"ar",option:"Arabic"},{value:"hy",option:"Armenian"},{value:"az",option:"Azerbaijani"},{value:"eu",option:"Basque"},{value:"be",option:"Belarusian"},{value:"bn",option:"Bengali"},{value:"bh",option:"Bihari"},{value:"bs",option:"Bosnian"},{value:"br",option:"Breton"},{value:"bg",option:"Bulgarian"},{value:"km",option:"Cambodian"},{value:"ca",option:"Catalan"},{value:"zh-CN",option:"Chinese (Simplified)"},{value:"zh-TW",option:"Chinese (Traditional)"},{value:"co",option:"Corsican"},{value:"hr",option:"Croatian"},{value:"cs",option:"Czech"},{value:"da",option:"Danish"},{value:"nl",option:"Dutch"},{value:"en",option:"English"},{value:"eo",option:"Esperanto"},{value:"et",option:"Estonian"},{value:"fo",option:"Faroese"},{value:"tl",option:"Filipino"},{value:"fi",option:"Finnish"},{value:"fr",option:"French"},{value:"fy",option:"Frisian"},{value:"gl",option:"Galician"},{value:"ka",option:"Georgian"},{value:"de",option:"German"},{value:"el",option:"Greek"},{value:"gn",option:"Guarani"},{value:"gu",option:"Gujarati"},{value:"xx-hacker",option:"Hacker"},{value:"ha",option:"Hausa"},{value:"iw",option:"Hebrew"},{value:"hi",option:"Hindi"},{value:"hu",option:"Hungarian"},{value:"is",option:"Icelandic"},{value:"id",option:"Indonesian"},{value:"ia",option:"Interlingua"},{value:"ga",option:"Irish"},{value:"it",option:"Italian"},{value:"jw",option:"Javanese"},{value:"ja",option:"Japanese"},{value:"kn",option:"Kannada"},{value:"kk",option:"Kazakh"},{value:"rw",option:"Kinyarwanda"},{value:"rn",option:"Kirundi"},{value:"xx-klingon",option:"Klingon"},{value:"ku",option:"Kurdish"},{value:"ko",option:"Korean"},{value:"ky",option:"Kyrgyz"},{value:"lo",option:"Laothian"},{value:"la",option:"Latin"},{value:"lv",option:"Latvian"},{value:"ln",option:"Lingala"},{value:"lt",option:"Lithuanian"},{value:"mk",option:"Macedonian"},{value:"mg",option:"Malagasy"},{value:"ml",option:"Malayalam"},{value:"mt",option:"Maltese"},{value:"mi",option:"Maori"},{value:"mr",option:"Marathi"},{value:"mo",option:"Moldavian"},{value:"mn",option:"Mongolian"},{value:"sr-ME",option:"Montenegrin"},{value:"ne",option:"Nepali"},{value:"no",option:"Norwegian"},{value:"nn",option:"Norwegian (Nynorsk)"},{value:"oc",option:"Occitan"},{value:"or",option:"Oriya"},{value:"om",option:"Oromo"},{value:"ps",option:"Pashto"},{value:"fa",option:"Persian"},{value:"xx-pirate",option:"Pirate"},{value:"pl",option:"Polish"},{value:"pt-BR",option:"Portuguese (Brazil)"},{value:"pt-PT",option:"Portuguese (Portugal)"},{value:"pa",option:"Punjabi"},{value:"qu",option:"Quechua"},{value:"ro",option:"Romanian"},{value:"rm",option:"Romansh"},{value:"ru",option:"Russian"},{value:"gd",option:"Scots Gaelic"},{value:"sr",option:"Serbian"},{value:"sh",option:"Serbo-Croatian"},{value:"st",option:"Sesotho"},{value:"sn",option:"Shona"},{value:"sd",option:"Sindhi"},{value:"si",option:"Sinhalese"},{value:"sk",option:"Slovak"},{value:"sl",option:"Slovenian"},{value:"so",option:"Somali"},{value:"es",option:"Spanish"},{value:"su",option:"Sundanese"},{value:"sw",option:"Swahili"},{value:"sv",option:"Swedish"},{value:"tg",option:"Tajik"},{value:"ta",option:"Tamil"},{value:"tt",option:"Tatar"},{value:"te",option:"Telugu"},{value:"th",option:"Thai"},{value:"ti",option:"Tigrinya"},{value:"to",option:"Tonga"},{value:"tr",option:"Turkish"},{value:"tk",option:"Turkmen"},{value:"tw",option:"Twi"},{value:"ug",option:"Uighur"},{value:"uk",option:"Ukrainian"},{value:"ur",option:"Urdu"},{value:"uz",option:"Uzbek"},{value:"vi",option:"Vietnamese"},{value:"cy",option:"Welsh"},{value:"xh",option:"Xhosa"},{value:"yi",option:"Yiddish"},{value:"yo",option:"Yoruba"},{value:"zu",option:"Zulu"}]})).factory("googleAsrLanguage",(function(){return[{value:"af-ZA",option:"Afrikaans (South Africa)"},{value:"am-ET",option:"Amharic (Ethiopia)"},{value:"hy-AM",option:"Armenian (Armenia)"},{value:"az-AZ",option:"Azerbaijani (Azerbaijan)"},{value:"id-ID",option:"Indonesian (Indonesia)"},{value:"ms-MY",option:"Malay (Malaysia)"},{value:"bn-BD",option:"Bengali (Bangladesh)"},{value:"bn-IN",option:"Bengali (India)"},{value:"ca-ES",option:"Catalan (Spain)"},{value:"cs-CZ",option:"Czech (Czech Republic)"},{value:"da-DK",option:"Danish (Denmark)"},{value:"de-DE",option:"German (Germany)"},{value:"en-AU",option:"English (Australia)"},{value:"en-CA",option:"English (Canada)"},{value:"en-GH",option:"English (Ghana)"},{value:"en-GB",option:"English (United Kingdom)"},{value:"en-IN",option:"English (India)"},{value:"en-IE",option:"English (Ireland)"},{value:"en-KE",option:"English (Kenya)"},{value:"en-NZ",option:"English (New Zealand)"},{value:"en-NG",option:"English (Nigeria)"},{value:"en-PH",option:"English (Philippines)"},{value:"en-ZA",option:"English (South Africa)"},{value:"en-TZ",option:"English (Tanzania)"},{value:"en-US",option:"English (United States)"},{value:"es-AR",option:"Spanish (Argentina)"},{value:"es-BO",option:"Spanish (Bolivia)"},{value:"es-CL",option:"Spanish (Chile)"},{value:"es-CO",option:"Spanish (Colombia)"},{value:"es-CR",option:"Spanish (Costa Rica)"},{value:"es-EC",option:"Spanish (Ecuador)"},{value:"es-SV",option:"Spanish (El Salvador)"},{value:"es-ES",option:"Spanish (Spain)"},{value:"es-US",option:"Spanish (United States)"},{value:"es-GT",option:"Spanish (Guatemala)"},{value:"es-HN",option:"Spanish (Honduras)"},{value:"es-MX",option:"Spanish (Mexico)"},{value:"es-NI",option:"Spanish (Nicaragua)"},{value:"es-PA",option:"Spanish (Panama)"},{value:"es-PY",option:"Spanish (Paraguay)"},{value:"es-PE",option:"Spanish (Peru)"},{value:"es-PR",option:"Spanish (Puerto Rico)"},{value:"es-DO",option:"Spanish (Dominican Republic)"},{value:"es-UY",option:"Spanish (Uruguay)"},{value:"es-VE",option:"Spanish (Venezuela)"},{value:"eu-ES",option:"Basque (Spain)"},{value:"fil-PH",option:"Filipino (Philippines)"},{value:"fr-CA",option:"French (Canada)"},{value:"fr-FR",option:"French (France)"},{value:"gl-ES",option:"Galician (Spain)"},{value:"ka-GE",option:"Georgian (Georgia)"},{value:"gu-IN",option:"Gujarati (India)"},{value:"hr-HR",option:"Croatian (Croatia)"},{value:"zu-ZA",option:"Zulu (South Africa)"},{value:"is-IS",option:"Icelandic (Iceland)"},{value:"it-IT",option:"Italian (Italy)"},{value:"jv-ID",option:"Javanese (Indonesia)"},{value:"kn-IN",option:"Kannada (India)"},{value:"km-KH",option:"Khmer (Cambodia)"},{value:"lo-LA",option:"Lao (Laos)"},{value:"lv-LV",option:"Latvian (Latvia)"},{value:"lt-LT",option:"Lithuanian (Lithuania)"},{value:"hu-HU",option:"Hungarian (Hungary)"},{value:"ml-IN",option:"Malayalam (India)"},{value:"mr-IN",option:"Marathi (India)"},{value:"nl-NL",option:"Dutch (Netherlands)"},{value:"ne-NP",option:"Nepali (Nepal)"},{value:"nb-NO",option:"Norwegian Bokmal (Norway)"},{value:"pl-PL",option:"Polish (Poland)"},{value:"pt-BR",option:"Portuguese (Brazil)"},{value:"pt-PT",option:"Portuguese (Portugal)"},{value:"ro-RO",option:"Romanian (Romania)"},{value:"si-LK",option:"Sinhala (Srilanka)"},{value:"sk-SK",option:"Slovak (Slovakia)"},{value:"sl-SI",option:"Slovenian (Slovenia)"},{value:"su-ID",option:"Sundanese (Indonesia)"},{value:"sw-TZ",option:"Swahili (Tanzania)"},{value:"sw-KE",option:"Swahili (Kenya)"},{value:"fi-FI",option:"Finnish (Finland)"},{value:"sv-SE",option:"Swedish (Sweden)"},{value:"ta-IN",option:"Tamil (India)"},{value:"ta-SG",option:"Tamil (Singapore)"},{value:"ta-LK",option:"Tamil (Sri Lanka)"},{value:"ta-MY",option:"Tamil (Malaysia)"},{value:"te-IN",option:"Telugu (India)"},{value:"vi-VN",option:"Vietnamese (Vietnam)"},{value:"tr-TR",option:"Turkish (Turkey)"},{value:"ur-PK",option:"Urdu (Pakistan)"},{value:"ur-IN",option:"Urdu (India)"},{value:"el-GR",option:"Greek (Greece)"},{value:"bg-BG",option:"Bulgarian (Bulgaria)"},{value:"ru-RU",option:"Russian (Russia)"},{value:"sr-RS",option:"Serbian (Serbia)"},{value:"uk-UA",option:"Ukrainian (Ukraine)"},{value:"he-IL",option:"Hebrew (Israel)"},{value:"ar-IL",option:"Arabic (Israel)"},{value:"ar-JO",option:"Arabic (Jordan)"},{value:"ar-AE",option:"Arabic (United Arab Emirates)"},{value:"ar-BH",option:"Arabic (Bahrain)"},{value:"ar-DZ",option:"Arabic (Algeria)"},{value:"ar-SA",option:"Arabic (Saudi Arabia)"},{value:"ar-IQ",option:"Arabic (Iraq)"},{value:"ar-KW",option:"Arabic (Kuwait)"},{value:"ar-MA",option:"Arabic (Morocco)"},{value:"ar-TN",option:"Arabic (Tunisia)"},{value:"ar-OM",option:"Arabic (Oman)"},{value:"ar-PS",option:"Arabic (State of Palestine)"},{value:"ar-QA",option:"Arabic (Qatar)"},{value:"ar-LB",option:"Arabic (Lebanon)"},{value:"ar-EG",option:"Arabic (Egypt)"},{value:"fa-IR",option:"Persian (Iran)"},{value:"hi-IN",option:"Hindi (India)"},{value:"th-TH",option:"Thai (Thailand)"},{value:"ko-KR",option:"Korean (South Korea)"},{value:"cmn-Hant-TW",option:"Chinese, Mandarin (Traditional, Taiwan)"},{value:"yue-Hant-HK",option:"Chinese, Cantonese (Traditional, Hong Kong)"},{value:"ja-JP",option:"Japanese (Japan)"},{value:"cmn-Hans-HK",option:"Chinese, Mandarin (Simplified, Hong Kong)"},{value:"cmn-Hans-CN",option:"Chinese, Mandarin (Simplified, China)"}]})).factory("awsPollyVoice",(function(){return[{value:"Amy",option:"Amy (English, British, Female)"},{value:"Astrid",option:"Astrid (Swedish, Female)"},{value:"Brian",option:"Brian (English, British, Male)"},{value:"Carla",option:"Carla (Italian, Female)"},{value:"Carmen",option:"Carmen (Romanian, Female)"},{value:"Celine",option:"Celine (French, Female)"},{value:"Chantal",option:"Chantal (French, Canadian, Female)"},{value:"Conchita",option:"Conchita (Spanish, Castilian, Female)"},{value:"Cristiano",option:"Cristiano (Portuguese, Male)"},{value:"Dora",option:"Dora (Icelandic, Female)"},{value:"Emma",option:"Emma (English, British, Female)"},{value:"Enrique",option:"Enrique (Spanish, Castilian, Male)"},{value:"Ewa",option:"Ewa (Polish, Female)"},{value:"Filiz",option:"Filiz (Turkish, Female)"},{value:"Geraint",option:"Geraint (English, Welsh, Male)"},{value:"Giorgio",option:"Giorgio (Italian, Male)"},{value:"Gwineth",option:"Gwineth (Welsh, Female)"},{value:"Hans",option:"Hans (German, Male)"},{value:"Ines",option:"Ines (Portuguese, Female)"},{value:"Ivy",option:"Ivy (English, US, Female)"},{value:"Jacek",option:"Jacek (Polish, Male)"},{value:"Jan",option:"Jan (Polish, Male)"},{value:"Joanna",option:"Joanna (English, US, Female)"},{value:"Joey",option:"Joey (English, US, Male)"},{value:"Justin",option:"Justin (English, US, Male)"},{value:"Karl",option:"Karl (Icelandic, Male)"},{value:"Kendra",option:"Kendra (English, US, Female)"},{value:"Kimberly",option:"Kimberly (English, US, Female)"},{value:"Liv",option:"Liv (Norwegian, Female)"},{value:"Lotte",option:"Lotte (Dutch, Female)"},{value:"Mads",option:"Mads (Danish, Male)"},{value:"Maja",option:"Maja (Polish, Female)"},{value:"Marlene",option:"Marlene (German, Female)"},{value:"Mathieu",option:"Mathieu (French, Male)"},{value:"Maxim",option:"Maxim (Russian, Male)"},{value:"Miguel",option:"Miguel (Spanish, US, Male)"},{value:"Mizuki",option:"Mizuki (Japanese, Female)"},{value:"Naja",option:"Naja (Danish, Female)"},{value:"Nicole",option:"Nicole (English, Austrialian, Female)"},{value:"Penelope",option:"Penelope (Spanish, US, Female)"},{value:"Raveena",option:"Raveena (English, Indian, Female)"},{value:"Ricardo",option:"Ricardo (Portuguese, Brazilian, Male)"},{value:"Ruben",option:"Ruben (Dutch, Male)"},{value:"Russell",option:"Russell (English, Austrialian, Male)"},{value:"Salli",option:"Salli (English, US, Female)"},{value:"Tatyana",option:"Tatyana (Russian, Female)"},{value:"Vitoria",option:"Vitoria (Portuguese, Brazilian, Female)"}]})).factory("awsPollyRegion",(function(){return[{value:"us-east-1",option:"US East (N. Virginia)"},{value:"us-east-2",option:"US East (Ohio)"},{value:"us-west-1",option:"US West (N. California)"},{value:"us-west-2",option:"US West (Oregon)"},{value:"ca-central-1",option:"Canada (Central)"},{value:"eu-west-1",option:"EU (Ireland)"},{value:"eu-central-1",option:"EU (Frankfurt)"},{value:"eu-west-2",option:"EU (London)"},{value:"eu-west-3",option:"EU (Paris)"},{value:"ap-southeast-1",option:"Asia Pacific (Singapore)"},{value:"ap-southeast-2",option:"Asia Pacific (Sydney)"},{value:"ap-northeast-2",option:"Asia Pacific (Seoul)"},{value:"ap-northeast-1",option:"Asia Pacific (Tokyo)"},{value:"ap-south-1",option:"Asia Pacific (Mumbai)"},{value:"sa-east-1",option:"South America (São Paulo)"}]})).factory("awsLexRegion",(function(){return[{value:"us-east-1",option:"US East (N. Virginia)"},{value:"us-west-2",option:"US West (Oregon)"},{value:"eu-west-1",option:"EU (Ireland)"},{value:"ap-southeast-2",option:"Asia Pacific (Sydney)"}]})).factory("dialogFlowLanguage",(function(){return[{value:"da",option:"Danish"},{value:"en",option:"English"},{value:"de",option:"German"},{value:"it",option:"Italian"},{value:"es",option:"Spanish"},{value:"fr",option:"French"},{value:"id",option:"Indonesian"},{value:"ja",option:"Japanese"},{value:"ko",option:"Korean (South Korea)"},{value:"nl",option:"Dutch"},{value:"no",option:"Norwegian"},{value:"pt",option:"Portuguese (European)"},{value:"pt-br",option:"Portuguese (Nrazilian)"},{value:"ru",option:"Russian"},{value:"sv",option:"Swedish"},{value:"th",option:"Thai"},{value:"uk",option:"Ukrainian"},{value:"zh-CN",option:"Chinese (Simplified)"},{value:"zh-HK",option:"Chinese (Hong Kong)"},{value:"zh-TW",option:"Chinese (Traditional)"}]})).factory("dialogFlowV2Language",(function(){return[{value:"zh-HK",option:"Chinese (Cantonese)"},{value:"zh-CN",option:"Chinese (Simplified)"},{value:"zh-TW",option:"Chinese (Traditional)"},{value:"da",option:"Danish"},{value:"nl",option:"Dutch"},{value:"en",option:"English"},{value:"en-AU",option:"English (Australia)"},{value:"en-CA",option:"English (Canada)"},{value:"en-GB",option:"English (Great Britain)"},{value:"en-IN",option:"English (India)"},{value:"en-US",option:"English (US)"},{value:"fr",option:"French"},{value:"fr-CA",option:"French (Canada)"},{value:"fr-FR",option:"France (France)"},{value:"de",option:"German"},{value:"hi",option:"Hindi"},{value:"id",option:"Indonesian"},{value:"it",option:"Italian"},{value:"ja",option:"Japanese"},{value:"ko",option:"Korean"},{value:"no",option:"Norwegian"},{value:"pl",option:"Polish"},{value:"pt-BR",option:"Portuguese (Brazil)"},{value:"pt-PT",option:"Portuguese (Portugal)"},{value:"ru",option:"Russian"},{value:"es",option:"Spanish"},{value:"es-419",option:"Spanish (Latin America)"},{value:"es-ES",option:"Spanish (Spain)"},{value:"sw",option:"Swedish"},{value:"th",option:"Thai"},{value:"tr",option:"Turkish"},{value:"uk",option:"Ukrainian"}]})).controller("MxGraphEditXMLController",Tw).controller("MxGraphImportXMLController",kw).controller("MxGraphUpdateInfoController",xw).controller("MxGraphOpenProjectController",Pw).controller("ProjectspermissionaddController",Rw).controller("MxGraphSaveProjectAsController",Lw).controller("ProjectController",Ww).controller("ProjectsController",zw);const Jw=n.p+"templates/main/apps/callysquare/views/odbcs/odbcs.html/odbcs.html",Xw=n.p+"templates/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings.html";function Zw(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CALLYSQUARE.EDIT_ODBC",g.odbc=angular.copy(l),g.odbcs=s,g.newOdbc=!1,g.odbc||(g.odbc={},g.title="CALLYSQUARE.NEW_ODBC",g.newOdbc=!0),g.addNewOdbc=function(){g.errors=[],c.squareOdbc.save(g.odbc).$promise.then((function(e){g.odbcs.unshift(e.toJSON()),i.success({title:"Odbc properly created",msg:g.odbc.name?g.odbc.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.squareOdbc.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareOdbc.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveOdbc=function(){g.errors=[],c.squareOdbc.update({id:g.odbc.id},g.odbc).$promise.then((function(e){const t=u().find(g.odbcs,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Odbc properly saved!",msg:g.odbc.name?g.odbc.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.squareOdbc.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareOdbc.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteOdbc=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The odbc will be deleted.").ariaLabel("Delete Odbc").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.squareOdbc.delete({id:g.odbc.id}).$promise.then((function(){u().remove(g.odbcs,{id:g.odbc.id}),i.success({title:"Odbc properly deleted!",msg:(g.odbc.name||"odbc")+" has been deleted!"}),h(g.odbc)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.squareOdbc.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareOdbc.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}Zw.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","odbcs","odbc","api","Auth","license","setting","crudPermissions"];const eE=Zw,tE=n.p+"templates/main/apps/callysquare/views/odbcs/create/dialog.html/dialog.html";function nE(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.odbcs=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="odbcs",b.listOrder="",b.listOrderAsc=null,b.selectedODBC=[],b.query={fields:"createdAt,updatedAt,id,name,dsn,description",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditOdbcDialogController",controllerAs:"vm",templateUrl:tE,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{odbc:e,odbcs:b.odbcs.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.testtestOdbc=function(e){return f.squareOdbc.test({id:e.id}).$promise.then((function(){p.success({title:"Square ODBC properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"Square ODBC properly tested",msg:e.data?JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("odbc")+"?").htmlContent("<b>"+(e.name||"odbc")+"</b> will be deleted.").ariaLabel("delete odbc").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getODBC=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.squareOdbc.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ODBC",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditOdbc=function(e,t){o.show({controller:"CreateOrEditOdbcDialogController",controllerAs:"vm",templateUrl:tE,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{odbc:t,odbcs:b.odbcs.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteOdbc=S,b.exportSelectedODBC=function(){const e=angular.copy(b.selectedODBC);return b.selectedODBC=[],e},b.deleteSelectedODBC=function(e){const t=o.confirm().title("Are you sure want to delete the selected odbcs?").htmlContent("<b>"+b.selectedODBC.length+" selected</b> will be deleted.").ariaLabel("delete Odbcs").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedODBC.forEach((function(e){S(e)})),b.selectedODBC=[]}))},b.deselectODBC=function(){b.selectedODBC=[]},b.selectAllODBC=function(){b.selectedODBC=b.odbcs.rows};let y=!0,v=1;function A(e){b.odbcs=e||{count:0,rows:[]}}function S(e){f.squareOdbc.delete({id:e.id}).$promise.then((function(){u().remove(b.odbcs.rows,{id:e.id}),b.odbcs.count-=1,b.odbcs.rows.length||b.getODBC(),p.success({title:u().startCase("Odbc")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEsquareOdbc"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEsquareOdbc",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getODBC())}))}nE.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","odbcs","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const aE=nE;function oE(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="CALLYSQUARE.EDIT_SQUARERECORDING",g.squareRecording=angular.copy(l),g.squareRecordings=s,g.newSquareRecording=!1,g.squareRecording||(g.squareRecording={},g.title="CALLYSQUARE.NEW_SQUARERECORDING",g.newSquareRecording=!0),g.addNewSquareRecording=function(){g.errors=[],c.squareRecording.save(g.squareRecording).$promise.then((function(e){g.squareRecordings.unshift(e.toJSON()),i.success({title:"SquareRecording properly created",msg:g.squareRecording.name?g.squareRecording.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.squareRecording.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareRecording.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSquareRecording=function(){g.errors=[],c.squareRecording.update({id:g.squareRecording.id},g.squareRecording).$promise.then((function(e){const t=u().find(g.squareRecordings,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SquareRecording properly saved!",msg:g.squareRecording.name?g.squareRecording.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.squareRecording.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareRecording.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSquareRecording=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The squareRecording will be deleted.").ariaLabel("Delete SquareRecording").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.squareRecording.delete({id:g.squareRecording.id}).$promise.then((function(){u().remove(g.squareRecordings,{id:g.squareRecording.id}),i.success({title:"SquareRecording properly deleted!",msg:(g.squareRecording.name||"squareRecording")+" has been deleted!"}),h(g.squareRecording)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.squareRecording.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareRecording.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}oE.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","squareRecordings","squareRecording","api","Auth","license","setting","crudPermissions"];const rE=oE,iE=n.p+"templates/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog.html";function sE(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.squareRecordings=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="squareRecordings",b.listOrder="",b.listOrderAsc=null,b.selectedSquareRecordings=[],b.query={fields:"createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format",sort:"-updatedAt",limit:10,page:1},b.downloadfile2=function(e){return f.squareRecording.download({id:e.id}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=e.uniqueid+e.format;const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.squareRecording.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("squareRecording")+"?").htmlContent("<b>"+(e.name||"squareRecording")+"</b> will be deleted.").ariaLabel("delete squareRecording").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getSquareRecordings=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.squareRecording.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="SquareRecordings",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditSquareRecording=function(e,t){o.show({controller:"CreateOrEditSquareRecordingDialogController",controllerAs:"vm",templateUrl:iE,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{squareRecording:t,squareRecordings:b.squareRecordings.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteSquareRecording=S,b.exportSelectedSquareRecordings=function(){const e=angular.copy(b.selectedSquareRecordings);return b.selectedSquareRecordings=[],e},b.deleteSelectedSquareRecordings=function(e){const t=o.confirm().title("Are you sure want to delete the selected squareRecordings?").htmlContent("<b>"+b.selectedSquareRecordings.length+" selected</b> will be deleted.").ariaLabel("delete SquareRecordings").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedSquareRecordings.forEach((function(e){S(e)})),b.selectedSquareRecordings=[]}))},b.deselectSquareRecordings=function(){b.selectedSquareRecordings=[]},b.selectAllSquareRecordings=function(){b.selectedSquareRecordings=b.squareRecordings.rows};let y=!0,v=1;function A(e){b.squareRecordings=e||{count:0,rows:[]}}function S(e){f.squareRecording.delete({id:e.id}).$promise.then((function(){u().remove(b.squareRecordings.rows,{id:e.id}),b.squareRecordings.count-=1,b.squareRecordings.rows.length||b.getSquareRecordings(),p.success({title:u().startCase("SquareRecording")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEsquareRecording"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEsquareRecording",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getSquareRecordings())}))}sE.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","squareRecordings","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const lE=sE;function cE(e,t){e.state("app.callysquare",{abstract:!0,url:"/callysquare"}).state("app.callysquare.odbcs",{url:"/odbcs",views:{"content@app":{templateUrl:Jw,controller:"OdbcsController as vm"}},resolve:{odbcs:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("squareOdbc@get",{fields:"createdAt,updatedAt,id,name,dsn,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ODBC",fields:"createdAt,updatedAt,id,name,dsn,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1101})}]},authenticate:!0,permissionId:1101,bodyClass:"callysquare"}).state("app.callysquare.squareRecordings",{url:"/squareRecordings",views:{"content@app":{templateUrl:Xw,controller:"SquareRecordingsController as vm"}},resolve:{squareRecordings:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("squareRecording@get",{fields:"createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SquareRecordings",fields:"createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1102})}]},authenticate:!0,permissionId:1102,bodyClass:"callysquare"}),t.addPart("app/main/apps/callysquare")}cE.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.callysquare",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.callysquare.projects"]).config(cE).controller("CreateOrEditOdbcDialogController",eE).controller("OdbcsController",aE).controller("CreateOrEditSquareRecordingDialogController",rE).controller("SquareRecordingsController",lE);const uE=n.p+"templates/main/apps/analytics/views/metrics/metrics.html/metrics.html",dE=n.p+"templates/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports.html",fE=n.p+"templates/main/apps/analytics/views/reports/reports.html/reports.html",mE=n.p+"templates/main/apps/analytics/views/reports/edit/view.html/view.html";n("./node_modules/ng-js-tree/dist/ngJsTree.min.js");function pE(e,t,n,a,o,r,i){const s=this;function l(){t.hide()}s.errors=[],s.report=angular.copy(a),s.report.name+="-copy",s.treeCustomData=i,s.treeCustomConfig={core:{multiple:!1,animation:!0,error:function(e){console.error("treeCtrl: error from js tree - "+angular.toJson(e))},check_callback:!0,worker:!0},version:1,plugins:["wholerow"]},s.treeCustomEvents={select_node:function(e,t){s.currentNode=t.node}},s.copyReport=function(){let e;s.errors=[],o.analyticCustomReport.save({name:s.report.name,description:s.report.description,table:s.report.table,conditions:s.report.conditions,joins:s.report.joins,parent:s.currentNode.id}).$promise.then((function(t){e=t,n.success({title:"Report properly copied!",msg:s.report.name?s.report.name+" has been copied!":""});const a={fields:"field,alias,function,format,groupBy,orderBy,custom,MetricId",nolimit:!0};return a["analyticCustomReport"===r?"CustomReportId":"DefaultReportId"]=s.report.id,o.analyticFieldReport.get(a).$promise})).then((function(t){const n=u().map(t.rows,(function(t){return u().extend({},t,{CustomReportId:e.id})}));return o.analyticFieldReport.bulkCreate(n).$promise})).then((function(){n.success({title:"Fields copied!",msg:"Fields has been copied!"}),l()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:COPYREPORT",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},s.closeDialog=l}pE.$inject=["$location","$mdDialog","toasty","report","api","apiName","treeCustomData"];const gE=pE;function hE(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){t.hide()}d.errors=[],d.joinTables=[],d.title="ANALYTICS.EDIT_REPORT",d.crudPermissions=c,d.report=angular.copy(o),d.reports=a,d.newReport=!1,d.tables=l.getMap(),d.joinTypes=[{key:"join",value:"Join"},{key:"left_join",value:"Left Join"},{key:"right_join",value:"Right Join"},{key:"cross_join",value:"Cross Join"}],d.report||(d.report={name:"",table:"report_agent",description:"",parent:s.id},d.title="ANALYTICS.NEW_REPORT",d.newReport=!0),d.addNewReport=function(){d.errors=[],d.report.joins=u().map(d.joinTables||[],(function(e){return{parentKey:e.parentKey,foreignTable:e.name,foreignKey:e.foreignKey,type:e.type.toLowerCase()}})),d.report.joins=JSON.stringify(d.report.joins),r[i].save(d.report).$promise.then((function(e){d.reports.unshift(e),n.success({title:"Report properly created",msg:d.report.name?d.report.name+" has been created!":""}),f()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){d.errors=e.data.errors||[{message:e.toString(),type:"api.analyticReport.save"}];for(let t=0;t<e.data.errors.length;t++)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticReport.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},d.saveReport=function(){d.errors=[],r[i].update({id:d.report.id},d.report).$promise.then((function(e){const t=u().find(d.reports,{id:e.id});t&&u().merge(t,e),n.success({title:"Report properly saved!",msg:d.report.name?d.report.name+" has been saved!":""}),f()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){d.errors=e.data.errors||[{message:e.toString(),type:"api.analyticReport.update"}];for(let t=0;t<e.data.errors.length;t++)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticReport.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},d.deleteReport=function(){d.errors=[];const e=t.confirm().title("Are you sure?").content("The report will be deleted.").ariaLabel("Delete Report").ok("Delete").cancel("Cancel").targetEvent(event);t.show(e).then((function(){r[i].delete({id:d.report.id}).$promise.then((function(){u().remove(d.reports,{id:d.report.id}),n.success({title:"Report properly deleted!",msg:d.report.name?d.report.name+" has been deleted!":""}),f()})).catch((function(e){d.errors=e.data.errors||[{message:e.toString(),type:"api.analyticReport.delete"}]}))}),(function(){}))},d.closeDialog=f,d.selectedTableChange=function(e){e&&(delete d.selectedItem,d.joinTables.push(e))},d.removeJoin=function(e){d.joinTables.splice(e,1)},d.getFields=function(e,t,n){const a=u().find(d.tables,{name:n});a&&a.api&&r[a.api].describe().$promise.then((function(n){e[t]=u().difference(u().keys(n),["$promise","$resolved"])})).catch((function(e){console.error(e)}))}}hE.$inject=["$location","$mdDialog","toasty","reports","report","api","apiName","currentNode","describeTable","crudPermissions"];const _E=hE;function bE(e,t,n,a){const o=this;o.report={},o.conditions=a.getConditions,o.init=function(e,a){o.report=e,o.report.condition=angular.fromJson(e.conditions)||{group:{operator:"AND",rules:[]}},o.crudPermissions=void 0!==a?a:{readOnly:!0,canEdit:!1,canDelete:!1};for(let e=0;e<o.report.condition.group.rules.length;e++)if(o.report.condition.group.rules[e].field){1===o.report.condition.group.rules[e].field.split(".").length&&(o.report.condition.group.rules[e].field=o.report.table+"."+o.report.condition.group.rules[e].field)}t.getColumns(o.report.table).then((function(e){o.columns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt"])})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DESCRIBE",msg:e.data?JSON.stringify(e.data):e.toString()})}))},o.addCondition=function(e){e.unshift({condition:"=",field:"",value:""})},o.addGroup=function(e){e.push({group:{operator:"AND",rules:[]}})},o.deleteConfirm=function(t,n,a){const o=e.confirm().title("Are you sure want to delete the item?").htmlContent("The item will be deleted.").ariaLabel("delete item").targetEvent(a).ok("OK").cancel("CANCEL");e.show(o).then((function(){t.splice(n,1)}),(function(){console.log("CANCEL")}))},o.isValueByCondition=function(e){return!u().includes(["IS NULL","IS NOT NULL","IS EMPTY","IS NOT EMPTY"],e)}}bE.$inject=["$mdDialog","describeTable","toasty","sqlUtil"];const yE=bE;function vE(e){const t={report_call_transfer:"voiceTransferReport",cm_companies:"cmCompany",cm_contacts:"cmContact",cm_hopper:"cmHopper",cm_hopper_final:"cmHopperFinal",cm_hopper_history:"cmHopperHistory",cm_lists:"cmList",chat_websites:"chatWebsite",chat_queues:"chatQueue",chat_interactions:"chatInteraction",chat_messages:"chatMessage",chat_offline_messages:"chatOfflineMessage",report_chat_queue:"chatQueueReport",report_chat_transfer:"chatTransferReport",mail_accounts:"mailAccount",mail_queues:"mailQueue",mail_interactions:"mailInteraction",mail_messages:"mailMessage",report_mail_queue:"mailQueueReport",report_mail_transfer:"mailTransferReport",openchannel_accounts:"openchannelAccount",openchannel_queues:"openchannelQueue",openchannel_interactions:"openchannelInteraction",openchannel_messages:"openchannelMessage",report_openchannel_queue:"openchannelQueueReport",report_openchannel_transfer:"openchannelTransferReport",sms_accounts:"smsAccount",sms_queues:"smsQueue",sms_interactions:"smsInteraction",sms_messages:"smsMessage",report_sms_queue:"smsQueueReport",report_sms_transfer:"smsTransferReport",fax_accounts:"faxAccount",fax_queues:"faxQueue",fax_interactions:"faxInteraction",fax_messages:"faxMessage",report_fax_transfer:"faxTransferReport",report_fax_queue:"faxQueueReport",report_call:"voiceCallReport",report_agent:"voiceAgentReport",report_square:"squareReport",report_member:"memberReport",report_queue:"voiceQueueReport",report_square_details:"squareReportDetail",report_dial:"voiceDialReport",report_jscripty_sessions:"jscriptySessionReport",report_jscripty_questions:"jscriptyQuestionReport",report_jscripty_answers:"jscriptyAnswerReport",users:"user",voice_recordings:"voiceRecording",cdr:"cdr",whatsapp_accounts:"whatsappAccount",whatsapp_queues:"whatsappQueue",whatsapp_interactions:"whatsappInteraction",whatsapp_messages:"whatsappMessage",report_whatsapp_queue:"whatsappQueueReport",report_whatsapp_transfer:"whatsappTransferReport"};return{getMap:function(){const e=[];return u().forIn(t,(function(t,n){e.push({name:n,api:t})})),e},getColumns:function(n){return e[t[n]].describe().$promise}}}vE.$inject=["api"];const AE=vE;function SE(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;if(m.errors=[],m.title="Edit Report Field",m.report=o,m.reportField=angular.copy(i),m.reportFields=r,m.metrics=s,m.columns=l,m.sqlUtil=c,m.newReportField=!1,m.crudPermissions=f,m.reportField){if(m.reportField.type=m.reportField.custom?"custom":m.reportField.MetricId?"metric":"column",m.reportField.field&&!m.reportField.custom&&u().isNil(m.reportField.MetricId)){1===m.reportField.field.split(".").length&&(m.reportField.field=m.report.table+"."+m.reportField.field)}}else m.reportField={type:"column",function:null,format:null,groupBy:!1,orderBy:null},m.title="New Report Field",m.newReportField=!0;function p(){n.hide()}m.addNewReportField=function(){m.errors=[],m.reportField.custom="custom"===m.reportField.type,m.reportField.MetricId="metric"===m.reportField.type?m.reportField.MetricId:null,m.reportField.CustomReportId=m.report.id,d.analyticFieldReport.save(m.reportField).$promise.then((function(e){m.reportFields.push(e),a.success({title:"Report field properly created",msg:m.reportField.field?m.reportField.field+" has been created!":m.reportField.type+" has been created!"}),p()})).catch((function(e){m.errors=e.data.errors||[{message:e.toString(),type:"api.analyticFieldReport.save"}]}))},m.saveReportField=function(){m.errors=[],m.reportField.custom="custom"===m.reportField.type,m.reportField.MetricId="metric"===m.reportField.type?m.reportField.MetricId:null,d.analyticFieldReport.update({id:m.reportField.id},m.reportField).$promise.then((function(e){const t=u().find(m.reportFields,{id:e.id});t&&u().merge(t,e),a.success({title:"Report Field properly saved!",msg:m.reportField.field?m.reportField.field+" has been saved!":""}),p()})).catch((function(e){m.errors=e.data.errors||[{message:e.toString(),type:"api.analyticFieldReport.update"}]}))},m.deleteReportField=function(e){m.errors=[];const t=n.confirm().title("Are you sure?").content("The field will be deleted.").ariaLabel("Delete Report").ok("Delete").cancel("Cancel").targetEvent(e);n.show(t).then((function(){d.analyticFieldReport.delete({id:m.reportField.id}).$promise.then((function(){u().remove(m.reportFields,{id:m.reportField.id}),a.success({title:"Report Field properly deleted!",msg:m.reportField.field?m.reportField.field+" has been deleted!":""}),p()})).catch((function(e){m.errors=e.data.errors||[{message:e.toString(),type:"api.analyticReportField.delete"}]}))}),(function(){}))},m.closeDialog=p}SE.$inject=["$scope","$location","$mdDialog","toasty","report","reportFields","reportField","metrics","columns","sqlUtil","api","crudPermissions"];const wE=SE,EE=n.p+"templates/main/apps/analytics/views/reports/edit/field/dialog.html/dialog.html";function CE(e,t,n,a,o,r,i,s,l,c){const d=this;function f(e){d.reportFields=e||{count:0,rows:[]}}function m(e){i.analyticFieldReport.delete({id:e.id}).$promise.then((function(){d.selectedReportFields=[],u().remove(d.reportFields.rows,{id:e.id}),d.reportFields.count-=1,d.reportFields.rows.length||d.getReportFields(),r.success({title:"Field deleted!",msg:e.field?e.field+" has been deleted!":""})})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}d.report={},d.reportFields={count:0,rows:[]},d.functions=u().keyBy(l.getFunctions,"value"),d.formats=u().keyBy(l.getFormats,"value"),d.groupBy=u().keyBy(l.getGroupBy,"value"),d.orderBy=u().keyBy(l.getOrderBy,"value"),d.selectedReportFields=[],d.query={fields:"createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId",nolimit:!0,filter:void 0},d.sortableTable={animation:100,onSort:function(e){i.analyticFieldReport.addFields({id:d.report.id},e.models).$promise.then((function(e){d.reportFields.rows=e})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:ADDFIELDS"})}))}},d.init=function(e,t){d.report=e,d.query.CustomReportId=d.report.id,d.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},d.sortableTable.disabled=!d.crudPermissions.canEdit,s.getColumns(d.report.table).then((function(e){return d.columns=u().difference(u().keys(e),["$promise","$resolved"]),i.analyticMetric.get({fields:"id,name,metric,table",nolimit:!0}).$promise})).then((function(e){d.metrics=e.rows})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DESCRIBE",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.getReportFields()},d.deleteConfirm=function(e,t){const n=a.confirm().title("Are you sure want to delete the field?").htmlContent("<b>"+e.field+"</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");a.show(n).then((function(){m(e)}),(function(){console.log("CANCEL")}))},d.success=f,d.getReportFields=function(){d.promise=i.analyticFieldReport.get(d.query,f).$promise},d.createOrEditReportField=function(e,t){a.show({controller:"CreateOrEditReportFieldDialogController",controllerAs:"vm",templateUrl:EE,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{report:d.report,reportField:t,reportFields:d.reportFields.rows,metrics:d.metrics,columns:d.columns,setting:null,crudPermissions:d.crudPermissions}})},d.deleteReportField=m,d.deleteSelectedReportFields=function(e){const t=a.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+d.selectedReportFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(e).ok("OK").cancel("CANCEL");a.show(t).then((function(){d.selectedReportFields.forEach((function(e){m(e)})),d.selectedReportFields=[]}))},d.getMetricName=function(e){const t=u().find(d.metrics,{id:e});return t?t.name:c.instant("ANALYTICS.NO_METRIC_FOUND")},d.getMetricValue=function(e){const t=u().find(d.metrics,{id:e});return t?t.metric:c.instant("ANALYTICS.NO_METRIC_FOUND")}}CE.$inject=["$cookies","$scope","$timeout","$mdDialog","$document","toasty","api","describeTable","sqlUtil","$translate"];const TE=CE;const IE=function(){return{getFunctions:[{value:"SUM",option:function(e){return"SUM ("+e+")"}},{value:"COUNT",option:function(e){return"COUNT ("+e+")"}},{value:"COUNT DISTINCT",option:function(e){return"COUNT (DISTINCT "+e+")"}},{value:"MAX",option:function(e){return"MAX ("+e+")"}},{value:"MIN",option:function(e){return"MIN ("+e+")"}},{value:"AVG",option:function(e){return"AVG ("+e+")"}},{value:"GROUP_CONCAT",option:function(e){return"GROUP_CONCAT ("+e+")"}},{value:"GROUP_CONCAT ASC",option:function(e){return"GROUP_CONCAT ("+e+" ORDER BY "+e+" ASC)"}},{value:"GROUP_CONCAT DESC",option:function(e){return"GROUP_CONCAT ("+e+" ORDER BY "+e+" DESC)"}}],getFormats:[{value:"SEC_TO_TIME",option:function(e){return"SEC_TO_TIME ("+e+")"}},{value:"DATE",option:function(e){return"DATE ("+e+")"}},{value:"HOUR",option:function(e){return"HOUR ("+e+")"}},{value:"ROUND",option:function(e){return"ROUND ("+e+")"}},{value:"UNIX_TIMESTAMP",option:function(e){return"UNIX_TIMESTAMP ("+e+")"}}],getGroupBy:[{value:!1,option:function(){return"No"}},{value:!0,option:function(e){return"GROUP BY "+e}}],getOrderBy:[{value:"ASC",option:function(e){return"ORDER BY "+e+" ASC"}},{value:"DESC",option:function(e){return"ORDER BY "+e+" DESC"}}],getConditions:["=","!=","<","<=",">",">=","LIKE","NOT LIKE","IS NULL","IS NOT NULL","IS EMPTY","IS NOT EMPTY"]}};function kE(e,t,n,a,r,i){const s=this;function l(e){return u().isArray(e)}s.report=a||{},s.userProfileSection=i&&1===i.count?i.rows[0]:null,s.crudPermissions=r.parseCrudPermissions(s.userProfileSection?s.userProfileSection.crudPermissions:null),s.selectedTab=e.params.tab||0,s.gotoReports=function(){e.go("app.analytics.reports",{},{reload:"app.analytics.reports"})},s.saveReport=function(){s.report.conditions=angular.toJson(s.report.condition),n.analyticCustomReport.update({id:s.report.id},u().omit(s.report,"joins")).$promise.then((function(){t.success({title:"Report updated!",msg:s.report.name?s.report.name+" has been updated!":""})})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETreport",msg:e.data?JSON.stringify(e.data):e.toString()})}))},s.previewReport=function(){s.columns=[],s.rows=[],s.error=!1,n.analyticFieldReport.get({fields:"field,alias",nolimit:!0,CustomReportId:s.report.id}).$promise.then((function(e){return s.columns=e?e.rows:[],n.analyticCustomReport.preview({id:s.report.id}).$promise})).then((function(e){s.rows=e})).catch((function(e){var n,a,o,r;console.log(e),s.error={title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:analyticFieldReport",msg:(null==e||null===(n=e.data)||void 0===n||null===(a=n.parent)||void 0===a?void 0:a.sqlMessage)||e.toString()||"SQL Error",sql:(null==e||null===(o=e.data)||void 0===o||null===(r=o.parent)||void 0===r?void 0:r.sql)||"NO QUERY"},t.error(s.error)}))},s.queryReport=function(){return s.queryResult="Loading...",n.analyticCustomReport.query({id:s.report.id}).$promise.then((function(e){s.queryResult=e.sql})).catch((function(e){var n,a,o,r;s.queryResult="",console.log(e),s.error={title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:analyticFieldReport",msg:(null==e||null===(n=e.data)||void 0===n||null===(a=n.parent)||void 0===a?void 0:a.sqlMessage)||e.toString()||"SQL Error",sql:(null==e||null===(o=e.data)||void 0===o||null===(r=o.parent)||void 0===r?void 0:r.sql)||"NO QUERY"},t.error(s.error)}))},s.mapArray=function(e,t){if(l(e))return u().map(e,t).join(",");return""},s.isArray=l,s.valueReplacer=function(e,t){o()(t,"YYYY-MM-DDTHH:mm:ssZ",!0).isValid()&&(t=o()(t,"").format("YYYY-MM-DD HH:mm:ss"));return t}}kE.$inject=["$state","toasty","api","report","Auth","userProfileSection"];const DE=kE;function xE(e,t,n,a,r,i){const s=this;s.errors=[],s.report=angular.copy(a),s.valueReplacer=function(e,t){o()(t,"YYYY-MM-DDTHH:mm:ssZ",!0).isValid()&&(t=o()(t,"").format("YYYY-MM-DD HH:mm:ss"));return t},s.closeDialog=function(){t.hide()},function(){s.columns=[],s.rows=[],s.error=!1;const e={fields:"field,alias",nolimit:!0};e["analyticCustomReport"===i?"CustomReportId":"DefaultReportId"]=s.report.id,s.promise=r.analyticFieldReport.get(e).$promise.then((function(e){return s.columns=e?e.rows:[],r[i].preview({id:s.report.id}).$promise})).then((function(e){s.rows=e})).catch((function(e){var t,a,o,r;console.log(e),s.error={title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:analyticFieldReport",msg:(null==e||null===(t=e.data)||void 0===t||null===(a=t.parent)||void 0===a?void 0:a.sqlMessage)||e.toString()||"SQL Error",sql:(null==e||null===(o=e.data)||void 0===o||null===(r=o.parent)||void 0===r?void 0:r.sql)||"NO QUERY"},n.error(s.error)}))}()}xE.$inject=["$location","$mdDialog","toasty","report","api","apiName"];const ME=xE,PE=n.p+"templates/main/apps/analytics/views/reports/copy/dialog.html/dialog.html",OE=n.p+"templates/main/apps/analytics/views/reports/preview/dialog.html/dialog.html",RE=n.p+"templates/main/apps/analytics/views/reports/run/dialog.html/dialog.html",NE=n.p+"templates/main/apps/analytics/views/reports/create/dialog.html/dialog.html";function LE(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(e){p.reports=e||{count:0,rows:[]}}function h(){if(p.query.offset=(p.query.page-1)*p.query.limit,p.apiName)if("admin"===p.currentUser.role||p.userProfileSection.autoAssociation)p.promise=c[p.apiName].get(p.query,g).$promise;else{let e=[];p.promise=c[p.apiName].get(p.query).$promise.then((function(t){return e=t&&t.rows?t.rows:[],e.length>0?c.userProfileResource.get({sectionId:p.userProfileSection.id,type:"analyticDefaultReport"===p.apiName?"DefaultReports":"CustomReports"}).$promise.then((function(t){const n=t&&t.rows?t.rows:[];if(n.length>0){const t=[];return e.forEach((function(e){u().find(n,["resourceId",e.id])&&t.push(e)})),g({count:t.length,rows:t})}return g(null)})):g(null)})).catch((e=>{console.error("Error",e)}))}}function _(e){p.apiName&&c[p.apiName].delete({id:e.id}).$promise.then((function(){u().remove(p.reports.rows,{id:e.id}),p.reports.count-=1,p.reports.rows.length||p.getReports(),f.success({title:"Report deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.analyticreport.delete"}];for(let t=0;t<e.data.errors.length;t++)f.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticreport.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function b(e,t){p.treeDefaultInstance.jstree(!0).deselect_all(),p.treeDefaultInstance.jstree(!0).close_all(),p.currentNode=t.node,p.currentNode.custom=!0,p.currentPath=p.treeCustomInstance.jstree(!0).get_path(p.currentNode).join("/ "),p.apiName="analyticCustomReport",p.query.parent=t.node.id,h()}function y(e,t){p.treeCustomInstance.jstree(!0).deselect_all(),p.treeCustomInstance.jstree(!0).close_all(),p.currentNode=t.node,p.currentNode.custom=!1,p.currentPath=p.treeDefaultInstance.jstree(!0).get_path(p.currentNode).join("/ "),p.apiName="analyticDefaultReport",p.query.parent=t.node.id,h()}function v(e,t){const n=angular.toJson(p.treeCustomInstance.jstree(!0).get_json("#"));c.analyticTreeReport.update({id:2,tree:n}).$promise.then((function(){d.rows[1]&&(d.rows[1].tree=n),f.success({title:"Node Updated",msg:t.node.text?t.node.text+" has been updated!":"Node has been updated!"})})).catch((function(e){f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATEanalyticTreeReport",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function A(e){return{core:{multiple:!1,animation:!0,error:function(e){console.error("treeCtrl: error from js tree - "+angular.toJson(e))},check_callback:!0,worker:!0},version:1,plugins:e?["contextmenu","dnd","search","state","wholerow"]:["search","state","wholerow"],contextmenu:{items:function(e){const t={};return p.crudPermissions.canEdit&&u().assign(t,{create:{label:i.instant("ANALYTICS.CREATE"),action:function(){e=p.treeCustomInstance.jstree(!0).create_node(e),p.treeCustomInstance.jstree(!0).edit(e)}},rename:{_disabled:"#"===e.parent,label:i.instant("ANALYTICS.RENAME"),action:function(){p.treeCustomInstance.jstree(!0).edit(e)}}}),p.crudPermissions.canDelete&&u().assign(t,{remove:{_disabled:"#"===e.parent,label:i.instant("ANALYTICS.REMOVE"),action:function(){const t=a.confirm().title("Are you sure want to delete the node?").htmlContent("<b>"+(e.text?e.text:"Node")+"</b> and its subnode will be deleted.").ariaLabel("delete node").ok("OK").cancel("CANCEL");a.show(t).then((function(){let t=p.treeCustomInstance.jstree(!0).get_parent(e);var n;t=p.treeCustomInstance.jstree(!0).get_node(t),p.treeCustomInstance.jstree(!0).delete_node(e),n=[e.id].concat(e.children_d||[]),c.analyticCustomReport.get({parent:n.join(","),fields:"id,name"}).$promise.then((function(e){e&&e.rows&&e.rows.forEach((function(e){_(e)}))})).catch((function(e){f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEreportsByParents",msg:e.data?JSON.stringify(e.data):e.toString()})})),p.treeCustomInstance.jstree(!0).select_node(t)}))}}}),t}}}}function S(e){return e?{create_node:v,rename_node:v,move_node:v,delete_node:v,select_node:b}:{select_node:y}}p.currentUser=m.getCurrentUser(),p.reports={count:0,rows:[]},p.userProfile=s,p.userProfileSection=l&&1===l.count?l.rows[0]:null,p.crudPermissions=m.parseCrudPermissions(p.userProfileSection?p.userProfileSection.crudPermissions:null),p.selectedReports=[],p.query={fields:"createdAt,updatedAt,id,name,description,table,parent,conditions,joins",limit:10,page:1,sort:"-updatedAt",filter:void 0},p.apiName=null,p.currentPath="",p.customTree=!0,p.editstate=function(e){o.go("app.analytics.reports.edit",{id:e.id,crudPermissions:p.crudPermissions})},p.copydialog=function(e,t){a.show({controller:"CopyReportDialogController",controllerAs:"vm",templateUrl:PE,parent:angular.element(n.body),targetEvent:t,clickOutsideToClose:!0,locals:{report:e,apiName:p.apiName,treeCustomData:p.treeCustomInstance.jstree(!0).get_json("#")}}).finally((function(){p.getReports()}))},p.previewdialog=function(e,t){a.show({controller:"PreviewReportDialogController",controllerAs:"vm",templateUrl:OE,parent:angular.element(n.body),targetEvent:t,clickOutsideToClose:!0,locals:{report:e,apiName:p.apiName}})},p.rundialog=function(e,t){a.show({controller:"RunReportDialogController",controllerAs:"vm",templateUrl:RE,parent:angular.element(n.body),targetEvent:t,clickOutsideToClose:!0,locals:{report:e,apiName:p.apiName,currentPath:p.currentPath}})},p.downloadfile=function(e){let t;c.analyticMetric.get({fields:"id,name,metric,table",nolimit:!0}).$promise.then((function(n){t=u().keyBy(n.rows,"id");const a={fields:"field,alias,function,format,groupBy,orderBy,custom,MetricId",nolimit:!0};return a["analyticCustomReport"===p.apiName?"CustomReportId":"DefaultReportId"]=e.id,c.analyticFieldReport.get(a).$promise})).then((function(n){for(let e=0;e<n.rows.length;e+=1)n.rows[e].MetricId&&(n.rows[e].field=t[n.rows[e].MetricId].metric,n.rows[e].custom=!0),delete n.rows[e].MetricId;const a=r.document.createElement("a");a.href="data:text/json;charset=utf-8,"+r.encodeURIComponent(angular.toJson({name:e.name,description:e.description,table:e.table,conditions:e.conditions,joins:e.joins,fields:n.rows})),a.download=e.name+".json",a.target="_self",a.click(),f.success({title:"Report downloaded!",msg:e.name?e.name+" has been downloaded!":""})})).catch((function(e){f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DOWNLOADJSON",msg:e.data?JSON.stringify(e.data):e.toString()})}))},p.deleteconfirm=function(e,t){const n=a.confirm().title("Are you sure want to delete the report?").htmlContent("<b>"+e.name+"</b> will be deleted.").ariaLabel("delete report").targetEvent(t).ok("OK").cancel("CANCEL");a.show(n).then((function(){_(e)}),(function(){console.log("CANCEL")}))},p.success=g,p.getReports=h,p.createOrEditReport=function(e,t){a.show({controller:"CreateOrEditReportDialogController",controllerAs:"vm",templateUrl:NE,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{report:t,reports:p.reports.rows,apiName:p.apiName,currentNode:p.currentNode,setting:null,crudPermissions:p.crudPermissions}})},p.importReport=function(e){if("application/json"===e.file.type){const t=new FileReader;t.onload=function(e){console.log(e.target.result);try{let t=atob(e.target.result.split(",")[1]);t=angular.fromJson(t),c.analyticCustomReport.save({name:t.name,description:t.description,table:t.table,conditions:t.conditions,joins:t.joins,parent:p.currentNode.id}).$promise.then((function(e){p.reports.rows.unshift(e),p.reports.count+=1,f.success({title:"Report saved!",msg:e.name?e.name+" has been saved!":""});const n=u().map(t.fields,(function(t){return u().extend({},t,{CustomReportId:e.id})}));return c.analyticFieldReport.bulkCreate(n).$promise})).then((function(){f.success({title:"Fields saved!",msg:"Fields has been saved!"})})).catch((function(e){f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETanalyticReport",msg:e.data?JSON.stringify(e.data):e.toString()})}))}catch(e){console.error(e),f.error({title:"Decode File Error",msg:e.toString()})}},t.readAsDataURL(e.file)}else f.error({title:"Format Error",msg:"Please use only json files"})},p.deleteReport=_,p.exportSelectedReports=function(){const e=angular.copy(p.selectedReports);return p.selectedReports=[],e},p.deleteSelectedReports=function(e){const t=a.confirm().title("Are you sure want to delete the selected reports?").htmlContent("<b>"+p.selectedReports.length+" selected</b> will be deleted.").ariaLabel("delete Reports").targetEvent(e).ok("OK").cancel("CANCEL");a.show(t).then((function(){p.selectedReports.forEach((function(e){_(e)})),p.selectedReports=[]}))},p.deselectReports=function(){p.selectedReports=[]},p.selectAllReports=function(){p.selectedReports=p.reports.rows},p.treeDefaultData=d.rows[0]?angular.fromJson(d.rows[0].tree):[],p.treeCustomData=d.rows[1]?angular.fromJson(d.rows[1].tree):[],p.treeDefaultConfig=A(!1),p.treeCustomConfig=A(!0),p.treeDefaultEvents=S(!1),p.treeCustomEvents=S(!0),e.$watch("vm.search",(function(e){p.treeDefaultInstance&&p.treeDefaultInstance.jstree(!0).search(e),p.treeCustomInstance&&p.treeCustomInstance.jstree(!0).search(e)}))}LE.$inject=["$scope","$timeout","$document","$mdDialog","$state","$window","$translate","userProfile","userProfileSection","api","treeReports","toasty","Auth"];const $E=LE,UE=n.p+"templates/main/apps/analytics/views/reports/run/web/dialog.html/dialog.html";function jE(e,t,n,a,r,i,s,l){const c=this;function d(){c.export={id:c.report.id,name:c.report.name,startDate:new Date(o()().startOf("day")),endDate:new Date(o()().endOf("day")),output:"xlsx",fullPath:l?l+"/"+c.report.name:c.report.name}}function f(){t.hide()}c.errors=[],c.report=angular.copy(a),c.export={},c.runReport=function(e){c.errors=[],c.exportDate=u().assign({},c.export,{startDate:o()(c.export.startDate).format("YYYY-MM-DD HH:mm:ss"),endDate:o()(c.export.endDate).format("YYYY-MM-DD HH:mm:ss")}),r[i].run(c.exportDate).$promise.then((function(a){"web"===c.export.output?t.show({controller:"WebReportDialogController",controllerAs:"vm",templateUrl:UE,parent:angular.element(s.body),targetEvent:e,multiple:!0,locals:{apiName:i,exportDate:c.exportDate,results:a},resolve:{columns:["apiResolver",function(e){const t={fields:"field,alias",nolimit:!0};return t["analyticCustomReport"===i?"CustomReportId":"DefaultReportId"]=c.report.id,e.resolve("analyticFieldReport@get",t)}]}}):(n.success({title:"Report properly run!",msg:c.report.name?c.report.name+" has been run!":""}),f())})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DESCRIBE",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},c.closeDialog=f,c.refreshDate=d,d()}jE.$inject=["$location","$mdDialog","toasty","report","api","apiName","$document","currentPath"];const FE=jE;function qE(e,t,n,a,r,i,s){const l=this;function c(e){l.results=e||{count:0,rows:[]}}l.errors=[],l.columns=a?a.rows:[],l.results=r||{rows:[],count:0},l.query={limit:10,page:1},l.closeDialog=function(){e.hide()},l.getResults=function(){s.offset=(l.query.page-1)*l.query.limit,s.limit=l.query.limit,l.promise=n[i].run(s,c).$promise},l.valueReplacer=function(e,t){o()(t,"YYYY-MM-DDTHH:mm:ssZ",!0).isValid()&&(t=o()(t,"").format("YYYY-MM-DD HH:mm:ss"));return t}}qE.$inject=["$mdDialog","toasty","api","columns","results","apiName","exportDate"];const YE=qE;function HE(e){e.state("app.analytics.reports",{url:"/reports",views:{"content@app":{templateUrl:fE,controller:"ReportsController as vm"}},resolve:{treeReports:["apiResolver",function(e){return e.resolve("analyticTreeReport@get",{fields:"id,tree",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1203})}]},authenticate:!0,permissionId:1203,bodyClass:"analytics"}).state("app.analytics.reports.edit",{url:"/:id?tab",views:{"content@app":{templateUrl:mE,controller:"ReportController as vm"}},resolve:{report:["apiResolver","$stateParams","$q","describeTable",function(e,t,n,a){let o;return e.resolve("analyticCustomReport@get",{fields:"createdAt,updatedAt,id,name,description,table,conditions,joins",id:t.id}).then((function(e){const t=[];if(o=e,o.joins)try{o.joins=JSON.parse(o.joins);for(let e=0;e<o.joins.length;e+=1)t.push(a.getColumns(o.joins[e].foreignTable))}catch(e){console.log(e)}return n.all(t)})).then((function(e){for(let t=0;t<e.length;t+=1)o.joins[t].foreignTableFields=u().difference(u().keys(e[t]),["$promise","$resolved"]);return o}))}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1203})}]},authenticate:!0,permissionId:1203,bodyClass:"analytics"})}function BE(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="ANALYTICS.EDIT_EXTRACTEDREPORT",g.extractedReport=angular.copy(l),g.extractedReports=s,g.newExtractedReport=!1,g.extractedReport||(g.extractedReport={},g.title="ANALYTICS.NEW_EXTRACTEDREPORT",g.newExtractedReport=!0),g.addNewExtractedReport=function(){g.errors=[],c.analyticExtractedReport.save(g.extractedReport).$promise.then((function(e){g.extractedReports.unshift(e.toJSON()),i.success({title:"ExtractedReport properly created",msg:g.extractedReport.name?g.extractedReport.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.analyticExtractedReport.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticExtractedReport.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveExtractedReport=function(){g.errors=[],c.analyticExtractedReport.update({id:g.extractedReport.id},g.extractedReport).$promise.then((function(e){const t=u().find(g.extractedReports,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ExtractedReport properly saved!",msg:g.extractedReport.name?g.extractedReport.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.analyticExtractedReport.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticExtractedReport.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteExtractedReport=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The extractedReport will be deleted.").ariaLabel("Delete ExtractedReport").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.analyticExtractedReport.delete({id:g.extractedReport.id}).$promise.then((function(){u().remove(g.extractedReports,{id:g.extractedReport.id}),i.success({title:"ExtractedReport properly deleted!",msg:(g.extractedReport.name||"extractedReport")+" has been deleted!"}),h(g.extractedReport)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.analyticExtractedReport.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticExtractedReport.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}HE.$inject=["$stateProvider"],angular.module("app.analytics.reports",["ngJsTree"]).config(HE).controller("CopyReportDialogController",gE).controller("CreateOrEditReportDialogController",_E).controller("ReportConditionsController",yE).factory("describeTable",AE).controller("CreateOrEditReportFieldDialogController",wE).controller("ReportFieldsController",TE).factory("sqlUtil",IE).controller("ReportController",DE).controller("PreviewReportDialogController",ME).controller("ReportsController",$E).controller("RunReportDialogController",FE).controller("WebReportDialogController",YE),BE.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","extractedReports","extractedReport","api","Auth","license","setting","crudPermissions"];const GE=BE,VE=n.p+"templates/main/apps/analytics/views/extractedReports/create/dialog.html/dialog.html";function WE(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.extractedReports=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="extractedReports",b.listOrder="",b.listOrderAsc=null,b.selectedExtractedReports=[],b.query={fields:"createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType",sort:"-updatedAt",limit:10,page:1},b.editdialog=function(e,t){o.show({controller:"CreateOrEditExtractedReportDialogController",controllerAs:"vm",templateUrl:VE,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{extractedReport:e,extractedReports:b.extractedReports.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.downloadfile2=function(e){return f.analyticExtractedReport.download({id:e.id}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=e.savename;const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticExtractedReport.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("extractedReport")+"?").htmlContent("<b>"+(e.name||"extractedReport")+"</b> will be deleted.").ariaLabel("delete extractedReport").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getExtractedReports=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.analyticExtractedReport.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ExtractedReports",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditExtractedReport=function(e,t){o.show({controller:"CreateOrEditExtractedReportDialogController",controllerAs:"vm",templateUrl:VE,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{extractedReport:t,extractedReports:b.extractedReports.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteExtractedReport=S,b.exportSelectedExtractedReports=function(){const e=angular.copy(b.selectedExtractedReports);return b.selectedExtractedReports=[],e},b.deleteSelectedExtractedReports=function(e){const t=o.confirm().title("Are you sure want to delete the selected extractedReports?").htmlContent("<b>"+b.selectedExtractedReports.length+" selected</b> will be deleted.").ariaLabel("delete ExtractedReports").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedExtractedReports.forEach((function(e){S(e)})),b.selectedExtractedReports=[]}))},b.deselectExtractedReports=function(){b.selectedExtractedReports=[]},b.selectAllExtractedReports=function(){b.selectedExtractedReports=b.extractedReports.rows};let y=!0,v=1;function A(e){b.extractedReports=e||{count:0,rows:[]}}function S(e){f.analyticExtractedReport.delete({id:e.id}).$promise.then((function(){u().remove(b.extractedReports.rows,{id:e.id}),b.extractedReports.count-=1,b.extractedReports.rows.length||b.getExtractedReports(),p.success({title:u().startCase("ExtractedReport")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEanalyticExtractedReport"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEanalyticExtractedReport",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getExtractedReports())}))}WE.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","extractedReports","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const QE=WE;function zE(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="ANALYTICS.EDIT_METRIC",g.metric=angular.copy(l),g.metrics=s,g.newMetric=!1,g.metric||(g.metric={table:"report_agent"},g.title="ANALYTICS.NEW_METRIC",g.newMetric=!0),g.addNewMetric=function(){g.errors=[],c.analyticMetric.save(g.metric).$promise.then((function(e){g.metrics.unshift(e.toJSON()),i.success({title:"Metric properly created",msg:g.metric.name?g.metric.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.analyticMetric.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticMetric.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveMetric=function(){g.errors=[],c.analyticMetric.update({id:g.metric.id},g.metric).$promise.then((function(e){const t=u().find(g.metrics,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Metric properly saved!",msg:g.metric.name?g.metric.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.analyticMetric.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticMetric.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteMetric=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The metric will be deleted.").ariaLabel("Delete Metric").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.analyticMetric.delete({id:g.metric.id}).$promise.then((function(){u().remove(g.metrics,{id:g.metric.id}),i.success({title:"Metric properly deleted!",msg:(g.metric.name||"metric")+" has been deleted!"}),h(g.metric)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.analyticMetric.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.analyticMetric.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}zE.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","metrics","metric","api","Auth","license","setting","crudPermissions"];const KE=zE,JE=n.p+"templates/main/apps/analytics/views/metrics/create/dialog.html/dialog.html";function XE(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.metrics=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="metrics",b.listOrder="",b.listOrderAsc=null,b.selectedMetrics=[],b.query={fields:"createdAt,updatedAt,id,name,table,metric,description",sort:"-updatedAt",limit:10,page:1},b.arraytable=u().keyBy([{option:"Agent Report",value:"'report_agent'"},{option:"Call Report",value:"'report_call'"},{option:"CDR",value:"'cdr'"},{option:"Chat Website",value:"'chat_websites'"},{option:"Chat Interaction",value:"'chat_interactions'"},{option:"Chat Messages",value:"'chat_messages'"},{option:"Chat Offline Messages",value:"'chat_offline_messages'"},{option:"Chat Queues",value:"'chat_queues'"},{option:"Chat Report Queue",value:"'report_chat_queue'"},{option:"Chat Report Transfer",value:"'report_chat_transfer'"},{option:"Companies",value:"'cm_companies'"},{option:"Call transfer report",value:"'report_call_transfer'"},{option:"Contacts",value:"'cm_contacts'"},{option:"CSquare Report",value:"'report_square'"},{option:"CSquare Details Report",value:"'report_square_details'"},{option:"Dial Report",value:"'report_dial'"},{option:"Dialer Hopper Processing",value:"'cm_hopper'"},{option:"Dialer Hopper Logs",value:"'cm_hopper_history'"},{option:"Dialer Hopper Final",value:"'cm_hopper_final'"},{option:"Email Account",value:"'mail_accounts'"},{option:"Email Interaction",value:"'mail_interactions'"},{option:"Email Messages",value:"'mail_messages'"},{option:"Email Queues",value:"'mail_queues'"},{option:"Email Report Queue",value:"'report_mail_queue'"},{option:"Email Report Transfer",value:"'report_mail_transfer'"},{option:"Fax Account",value:"'fax_accounts'"},{option:"Fax Interaction",value:"'fax_interactions'"},{option:"Fax Messages",value:"'fax_messages'"},{option:"Fax Queues",value:"'fax_queues'"},{option:"Fax Report Queue",value:"'report_fax_queue'"},{option:"Fax Report Transfer",value:"'report_fax_transfer'"},{option:"Jscripty Sessions",value:"'report_jscripty_sessions'"},{option:"Jscripty Questions",value:"'report_jscripty_questions'"},{option:"Jscripty Answers",value:"'report_jscripty_answers'"},{option:"Lists",value:"'cm_lists'"},{option:"Member Report",value:"'report_member'"},{option:"Openchannel Account",value:"'openchannel_accounts'"},{option:"Openchannel Interaction",value:"'openchannel_interactions'"},{option:"Openchannel Messages",value:"'openchannel_messages'"},{option:"Openchannel Queues",value:"'openchannel_queues'"},{option:"Openchannel Report Queue",value:"'report_openchannel_queue'"},{option:"Openchannel Report Transfer",value:"'report_openchannel_transfer'"},{option:"Queue Report",value:"'report_queue'"},{option:"SMS Account",value:"'sms_accounts'"},{option:"SMS Interaction",value:"'sms_interactions'"},{option:"SMS Messages",value:"'sms_messages'"},{option:"SMS Queues",value:"'sms_queues'"},{option:"SMS Report Queue",value:"'report_sms_queue'"},{option:"SMS Report Transfer",value:"'report_sms_transfer'"},{option:"Users",value:"'users'"},{option:"Voice Recordings",value:"'voice_recordings'"},{option:"Whatsapp Account",value:"'whatsapp_accounts'"},{option:"Whatsapp Interaction",value:"'whatsapp_interactions'"},{option:"Whatsapp Messages",value:"'whatsapp_messages'"},{option:"Whatsapp Queues",value:"'whatsapp_queues'"},{option:"Whatsapp Report Queue",value:"'report_whatsapp_queue'"},{option:"Whatsapp Report Transfer",value:"'report_whatsapp_transfer'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editdialog=function(e,t){o.show({controller:"CreateOrEditMetricDialogController",controllerAs:"vm",templateUrl:JE,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{metric:e,metrics:b.metrics.rows,license:b.license,setting:null,crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("metric")+"?").htmlContent("<b>"+(e.name||"metric")+"</b> will be deleted.").ariaLabel("delete metric").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getMetrics=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.analyticMetric.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Metrics",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditMetric=function(e,t){o.show({controller:"CreateOrEditMetricDialogController",controllerAs:"vm",templateUrl:JE,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{metric:t,metrics:b.metrics.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteMetric=S,b.exportSelectedMetrics=function(){const e=angular.copy(b.selectedMetrics);return b.selectedMetrics=[],e},b.deleteSelectedMetrics=function(e){const t=o.confirm().title("Are you sure want to delete the selected metrics?").htmlContent("<b>"+b.selectedMetrics.length+" selected</b> will be deleted.").ariaLabel("delete Metrics").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedMetrics.forEach((function(e){S(e)})),b.selectedMetrics=[]}))},b.deselectMetrics=function(){b.selectedMetrics=[]},b.selectAllMetrics=function(){b.selectedMetrics=b.metrics.rows};let y=!0,v=1;function A(e){b.metrics=e||{count:0,rows:[]}}function S(e){f.analyticMetric.delete({id:e.id}).$promise.then((function(){u().remove(b.metrics.rows,{id:e.id}),b.metrics.count-=1,b.metrics.rows.length||b.getMetrics(),p.success({title:u().startCase("Metric")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEanalyticMetric"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEanalyticMetric",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getMetrics())}))}XE.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","metrics","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const ZE=XE;function eC(e,t){e.state("app.analytics",{abstract:!0,url:"/analytics"}).state("app.analytics.metrics",{url:"/metrics",views:{"content@app":{templateUrl:uE,controller:"MetricsController as vm"}},resolve:{metrics:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("analyticMetric@get",{fields:"createdAt,updatedAt,id,name,table,metric,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Metrics",fields:"createdAt,updatedAt,id,name,table,metric,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1201})}]},authenticate:!0,permissionId:1201,bodyClass:"analytics"}).state("app.analytics.extractedReports",{url:"/extractedReports",views:{"content@app":{templateUrl:dE,controller:"ExtractedReportsController as vm"}},resolve:{extractedReports:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("analyticExtractedReport@get",{fields:"createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ExtractedReports",fields:"createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1202})}]},authenticate:!0,permissionId:1202,bodyClass:"analytics"}),t.addPart("app/main/apps/analytics")}eC.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.analytics",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.analytics.reports"]).config(eC).controller("CreateOrEditExtractedReportDialogController",GE).controller("ExtractedReportsController",QE).controller("CreateOrEditMetricDialogController",KE).controller("MetricsController",ZE);const tC=n.p+"templates/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html/zendeskAccounts.html",nC=n.p+"templates/main/apps/integrations/views/zendeskAccounts/edit/view.html/view.html",aC=n.p+"templates/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html/salesforceAccounts.html",oC=n.p+"templates/main/apps/integrations/views/salesforceAccounts/edit/view.html/view.html",rC=n.p+"templates/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts.html",iC=n.p+"templates/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view.html",sC=n.p+"templates/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts.html",lC=n.p+"templates/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view.html",cC=n.p+"templates/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts.html",uC=n.p+"templates/main/apps/integrations/views/deskAccounts/edit/view.html/view.html",dC=n.p+"templates/main/apps/integrations/views/zohoAccounts/zohoAccounts.html/zohoAccounts.html",fC=n.p+"templates/main/apps/integrations/views/zohoAccounts/edit/view.html/view.html",mC=n.p+"templates/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts.html",pC=n.p+"templates/main/apps/integrations/views/vtigerAccounts/edit/view.html/view.html",gC=n.p+"templates/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts.html",hC=n.p+"templates/main/apps/integrations/views/dynamics365Accounts/edit/view.html/view.html",_C=n.p+"templates/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts.html",bC=n.p+"templates/main/apps/integrations/views/servicenowAccounts/edit/view.html/view.html",yC=n.p+"templates/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html/freshsalesAccounts.html",vC=n.p+"templates/main/apps/integrations/views/freshsalesAccounts/edit/view.html/view.html";function AC(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_DESKACCOUNT",g.deskAccount=angular.copy(l),g.deskAccounts=s,g.newDeskAccount=!1,g.deskAccount||(g.deskAccount={type:"integrationTab",authType:"basic",serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_DESKACCOUNT",g.newDeskAccount=!0),g.addNewDeskAccount=function(){g.errors=[],c.intDeskAccount.save(g.deskAccount).$promise.then((function(e){g.deskAccounts.unshift(e.toJSON()),i.success({title:"DeskAccount properly created",msg:g.deskAccount.name?g.deskAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDeskAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDeskAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveDeskAccount=function(){g.errors=[],c.intDeskAccount.update({id:g.deskAccount.id},g.deskAccount).$promise.then((function(e){const t=u().find(g.deskAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"DeskAccount properly saved!",msg:g.deskAccount.name?g.deskAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDeskAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDeskAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteDeskAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The deskAccount will be deleted.").ariaLabel("Delete DeskAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intDeskAccount.delete({id:g.deskAccount.id}).$promise.then((function(){u().remove(g.deskAccounts,{id:g.deskAccount.id}),i.success({title:"DeskAccount properly deleted!",msg:(g.deskAccount.name||"deskAccount")+" has been deleted!"}),h(g.deskAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDeskAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDeskAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}AC.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","deskAccounts","deskAccount","api","Auth","license","setting","crudPermissions"];const SC=AC,wC=n.p+"templates/main/apps/integrations/views/deskAccounts/create/dialog.html/dialog.html";function EC(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.deskAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="deskAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedDeskAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.arraytype=u().keyBy([{option:"Integration_Tab",value:"'integrationTab'"},{option:"New_Tab",value:"'newTab'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayauthType=u().keyBy([{option:"Basic",value:"'basic'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.integrations.deskAccounts.edit",{id:e.id,deskAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intDeskAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"DeskAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"DeskAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("deskAccount")+"?").htmlContent("<b>"+(e.name||"deskAccount")+"</b> will be deleted.").ariaLabel("delete deskAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getDeskAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intDeskAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="DeskAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditDeskAccount=function(e,t){o.show({controller:"CreateOrEditDeskAccountDialogController",controllerAs:"vm",templateUrl:wC,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{deskAccount:t,deskAccounts:b.deskAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteDeskAccount=S,b.exportSelectedDeskAccounts=function(){const e=angular.copy(b.selectedDeskAccounts);return b.selectedDeskAccounts=[],e},b.deleteSelectedDeskAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected deskAccounts?").htmlContent("<b>"+b.selectedDeskAccounts.length+" selected</b> will be deleted.").ariaLabel("delete DeskAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedDeskAccounts.forEach((function(e){S(e)})),b.selectedDeskAccounts=[]}))},b.deselectDeskAccounts=function(){b.selectedDeskAccounts=[]},b.selectAllDeskAccounts=function(){b.selectedDeskAccounts=b.deskAccounts.rows};let y=!0,v=1;function A(e){b.deskAccounts=e||{count:0,rows:[]}}function S(e){f.intDeskAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.deskAccounts.rows,{id:e.id}),b.deskAccounts.count-=1,b.deskAccounts.rows.length||b.getDeskAccounts(),p.success({title:u().startCase("DeskAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintDeskAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintDeskAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getDeskAccounts())}))}EC.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","deskAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const CC=EC,TC=n.p+"templates/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html/dialog.html",IC=n.p+"templates/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html";function kC(e,t,n,a,o){const r=this;function i(e){n.intDeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intDeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intDeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.deskAccount={},r.deskConfiguration={},r.configurations=[],r.selectedDeskConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.deskAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intDeskAccount.getConfigurations({id:r.deskAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getDeskConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getDeskConfiguration=function(e){r.deskConfiguration=r.configurations[e],r.selectedDeskConfiguration=e,n.intDeskConfiguration.getSubjects({id:r.deskConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intDeskConfiguration.getDescriptions({id:r.deskConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intDeskConfiguration.getFields({id:r.deskConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})})),n.intDeskConfiguration.getTags({id:r.deskConfiguration.id}).$promise.then((function(e){r.selectedTags=e.rows?u().map(e.rows,"id"):[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditDeskConfiguration=function(n,a){e.show({controller:"CreateOrEditDeskConfigurationDialogController",controllerAs:"vm",templateUrl:TC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{deskConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getDeskConfiguration(0)}))},r.deleteDeskConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the deskConfiguration?").htmlContent("<b>"+(o.name||"deskConfiguration")+"</b> will be deleted.").ariaLabel("delete deskConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intDeskConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"DeskConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getDeskConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedTags=[],r.selectTagsChanged=function(){n.intDeskConfiguration.setTags({id:r.deskConfiguration.id,ids:r.selectedTags}).$promise.then((function(){a.success({title:"Tags set!",msg:"Tags has been set!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:ADDTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},n.tag.get({nolimit:!0,sort:"name"}).$promise.then((function(e){r.tags=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})),r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditDeskAccountItemDialogController",controllerAs:"vm",templateUrl:IC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.deskConfiguration,account:r.deskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditDeskAccountItemDialogController",controllerAs:"vm",templateUrl:IC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.deskConfiguration,account:r.deskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditDeskAccountItemDialogController",controllerAs:"vm",templateUrl:IC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.deskConfiguration,account:r.deskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}kC.$inject=["$mdDialog","$document","api","toasty","Auth"];const DC=kC;function xC(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_DESKCONFIGURATION",g.deskConfiguration=angular.copy(l),g.configurations=s,g.newDeskConfiguration=!1,g.deskConfiguration||(g.deskConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_DESKCONFIGURATION",g.newDeskConfiguration=!0),g.addNewDeskConfiguration=function(){g.errors=[],c.intDeskAccount.addConfiguration({id:t.params.id},g.deskConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"DeskConfiguration properly created",msg:g.deskConfiguration.name?g.deskConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDeskConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDeskConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveDeskConfiguration=function(){g.errors=[],c.intDeskConfiguration.update({id:g.deskConfiguration.id},g.deskConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"DeskConfiguration properly saved!",msg:g.deskConfiguration.name?g.deskConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDeskConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDeskConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteDeskConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The deskConfiguration will be deleted.").ariaLabel("Delete DeskConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intDeskConfiguration.delete({id:g.deskConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.deskConfiguration.id}),i.success({title:"DeskConfiguration properly deleted!",msg:(g.deskConfiguration.name||"deskConfiguration")+" has been deleted!"}),h(g.deskConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDeskConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDeskConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}xC.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","deskConfiguration","api","Auth","license","setting","crudPermissions"];const MC=xC;function PC(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intDeskField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intDeskField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intDeskField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intDeskAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}PC.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const OC=PC;function RC(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.deskAccount=u||e.params.deskAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoDeskAccounts=function(){e.go("app.integrations.deskAccounts",{},{reload:"app.integrations.deskAccounts"})},f.saveDeskAccount=function(){s.intDeskAccount.update({id:f.deskAccount.id},f.deskAccount).$promise.then((function(){l.success({title:"DeskAccount updated!",msg:f.deskAccount.name?f.deskAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintDeskAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}RC.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","deskAccount","userProfileSection"];const NC=RC;function LC(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_DYNAMICS365ACCOUNT",g.dynamics365Account=angular.copy(l),g.dynamics365Accounts=s,g.newDynamics365Account=!1,g.dynamics365Account||(g.dynamics365Account={serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_DYNAMICS365ACCOUNT",g.newDynamics365Account=!0),g.addNewDynamics365Account=function(){g.errors=[],c.intDynamics365Account.save(g.dynamics365Account).$promise.then((function(e){g.dynamics365Accounts.unshift(e.toJSON()),i.success({title:"Dynamics365Account properly created",msg:g.dynamics365Account.name?g.dynamics365Account.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDynamics365Account.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDynamics365Account.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveDynamics365Account=function(){g.errors=[],c.intDynamics365Account.update({id:g.dynamics365Account.id},g.dynamics365Account).$promise.then((function(e){const t=u().find(g.dynamics365Accounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Dynamics365Account properly saved!",msg:g.dynamics365Account.name?g.dynamics365Account.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDynamics365Account.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDynamics365Account.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteDynamics365Account=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The dynamics365Account will be deleted.").ariaLabel("Delete Dynamics365Account").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intDynamics365Account.delete({id:g.dynamics365Account.id}).$promise.then((function(){u().remove(g.dynamics365Accounts,{id:g.dynamics365Account.id}),i.success({title:"Dynamics365Account properly deleted!",msg:(g.dynamics365Account.name||"dynamics365Account")+" has been deleted!"}),h(g.dynamics365Account)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDynamics365Account.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDynamics365Account.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}LC.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","dynamics365Accounts","dynamics365Account","api","Auth","license","setting","crudPermissions"];const $C=LC,UC=n.p+"templates/main/apps/integrations/views/dynamics365Accounts/create/dialog.html/dialog.html";function jC(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.dynamics365Accounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="dynamics365Accounts",b.listOrder="",b.listOrderAsc=null,b.selectedDynamics365Accounts=[],b.query={fields:"createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.integrations.dynamics365Accounts.edit",{id:e.id,dynamics365Account:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intDynamics365Account.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"Dynamics365Account properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"Dynamics365Account properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("dynamics365Account")+"?").htmlContent("<b>"+(e.name||"dynamics365Account")+"</b> will be deleted.").ariaLabel("delete dynamics365Account").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getDynamics365Accounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intDynamics365Account.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Dynamics365Accounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditDynamics365Account=function(e,t){o.show({controller:"CreateOrEditDynamics365AccountDialogController",controllerAs:"vm",templateUrl:UC,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{dynamics365Account:t,dynamics365Accounts:b.dynamics365Accounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteDynamics365Account=S,b.exportSelectedDynamics365Accounts=function(){const e=angular.copy(b.selectedDynamics365Accounts);return b.selectedDynamics365Accounts=[],e},b.deleteSelectedDynamics365Accounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected dynamics365Accounts?").htmlContent("<b>"+b.selectedDynamics365Accounts.length+" selected</b> will be deleted.").ariaLabel("delete Dynamics365Accounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedDynamics365Accounts.forEach((function(e){S(e)})),b.selectedDynamics365Accounts=[]}))},b.deselectDynamics365Accounts=function(){b.selectedDynamics365Accounts=[]},b.selectAllDynamics365Accounts=function(){b.selectedDynamics365Accounts=b.dynamics365Accounts.rows};let y=!0,v=1;function A(e){b.dynamics365Accounts=e||{count:0,rows:[]}}function S(e){f.intDynamics365Account.delete({id:e.id}).$promise.then((function(){u().remove(b.dynamics365Accounts.rows,{id:e.id}),b.dynamics365Accounts.count-=1,b.dynamics365Accounts.rows.length||b.getDynamics365Accounts(),p.success({title:u().startCase("Dynamics365Account")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintDynamics365Account"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintDynamics365Account",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getDynamics365Accounts())}))}jC.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","dynamics365Accounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const FC=jC,qC=n.p+"templates/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog.html",YC=n.p+"templates/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog.html";function HC(e,t,n,a,o){const r=this;function i(e){n.intDynamics365Field.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intDynamics365Field.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intDynamics365Field.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.dynamics365Account={},r.dynamics365Configuration={},r.configurations=[],r.selectedDynamics365Configuration=-1,r.crudPermissions,r.init=function(e,t){r.dynamics365Account=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intDynamics365Account.getConfigurations({id:r.dynamics365Account.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getDynamics365Configuration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getDynamics365Configuration=function(e){r.dynamics365Configuration=r.configurations[e],r.selectedDynamics365Configuration=e,n.intDynamics365Configuration.getSubjects({id:r.dynamics365Configuration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intDynamics365Configuration.getDescriptions({id:r.dynamics365Configuration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intDynamics365Configuration.getFields({id:r.dynamics365Configuration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditDynamics365Configuration=function(n,a){e.show({controller:"CreateOrEditDynamics365ConfigurationDialogController",controllerAs:"vm",templateUrl:qC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{dynamics365Configuration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getDynamics365Configuration(0)}))},r.deleteDynamics365Configuration=function(t,o){const i=e.confirm().title("Are you sure want to delete the dynamics365Configuration?").htmlContent("<b>"+(o.name||"dynamics365Configuration")+"</b> will be deleted.").ariaLabel("delete dynamics365Configuration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intDynamics365Configuration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"Dynamics365Configuration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getDynamics365Configuration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditDynamics365AccountItemDialogController",controllerAs:"vm",templateUrl:YC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.dynamics365Configuration,account:r.dynamics365Account,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditDynamics365AccountItemDialogController",controllerAs:"vm",templateUrl:YC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.dynamics365Configuration,account:r.dynamics365Account,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditDynamics365AccountItemDialogController",controllerAs:"vm",templateUrl:YC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.dynamics365Configuration,account:r.dynamics365Account,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}HC.$inject=["$mdDialog","$document","api","toasty","Auth"];const BC=HC;function GC(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION",g.dynamics365Configuration=angular.copy(l),g.configurations=s,g.newDynamics365Configuration=!1,g.dynamics365Configuration||(g.dynamics365Configuration={channel:"voice",type:"inbound",ticketType:"incident"},g.title="INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION",g.newDynamics365Configuration=!0),g.addNewDynamics365Configuration=function(){g.errors=[],c.intDynamics365Account.addConfiguration({id:t.params.id},g.dynamics365Configuration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"Dynamics365Configuration properly created",msg:g.dynamics365Configuration.name?g.dynamics365Configuration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDynamics365Configuration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDynamics365Configuration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveDynamics365Configuration=function(){g.errors=[],c.intDynamics365Configuration.update({id:g.dynamics365Configuration.id},g.dynamics365Configuration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Dynamics365Configuration properly saved!",msg:g.dynamics365Configuration.name?g.dynamics365Configuration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDynamics365Configuration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDynamics365Configuration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteDynamics365Configuration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The dynamics365Configuration will be deleted.").ariaLabel("Delete Dynamics365Configuration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intDynamics365Configuration.delete({id:g.dynamics365Configuration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.dynamics365Configuration.id}),i.success({title:"Dynamics365Configuration properly deleted!",msg:(g.dynamics365Configuration.name||"dynamics365Configuration")+" has been deleted!"}),h(g.dynamics365Configuration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intDynamics365Configuration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intDynamics365Configuration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}GC.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","dynamics365Configuration","api","Auth","license","setting","crudPermissions"];const VC=GC;function WC(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intDynamics365Field.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intDynamics365Field.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intDynamics365Field.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intDynamics365Account.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}WC.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const QC=WC;function zC(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.dynamics365Account=u||e.params.dynamics365Account||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoDynamics365Accounts=function(){e.go("app.integrations.dynamics365Accounts",{},{reload:"app.integrations.dynamics365Accounts"})},f.saveDynamics365Account=function(){s.intDynamics365Account.update({id:f.dynamics365Account.id},f.dynamics365Account).$promise.then((function(){l.success({title:"Dynamics365Account updated!",msg:f.dynamics365Account.name?f.dynamics365Account.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintDynamics365Account",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}zC.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","dynamics365Account","userProfileSection"];const KC=zC;function JC(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_FRESHDESKACCOUNT",g.freshdeskAccount=angular.copy(l),g.freshdeskAccounts=s,g.newFreshdeskAccount=!1,g.freshdeskAccount||(g.freshdeskAccount={serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_FRESHDESKACCOUNT",g.newFreshdeskAccount=!0),g.addNewFreshdeskAccount=function(){g.errors=[],c.intFreshdeskAccount.save(g.freshdeskAccount).$promise.then((function(e){g.freshdeskAccounts.unshift(e.toJSON()),i.success({title:"FreshdeskAccount properly created",msg:g.freshdeskAccount.name?g.freshdeskAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshdeskAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshdeskAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveFreshdeskAccount=function(){g.errors=[],c.intFreshdeskAccount.update({id:g.freshdeskAccount.id},g.freshdeskAccount).$promise.then((function(e){const t=u().find(g.freshdeskAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"FreshdeskAccount properly saved!",msg:g.freshdeskAccount.name?g.freshdeskAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshdeskAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshdeskAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteFreshdeskAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The freshdeskAccount will be deleted.").ariaLabel("Delete FreshdeskAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intFreshdeskAccount.delete({id:g.freshdeskAccount.id}).$promise.then((function(){u().remove(g.freshdeskAccounts,{id:g.freshdeskAccount.id}),i.success({title:"FreshdeskAccount properly deleted!",msg:(g.freshdeskAccount.name||"freshdeskAccount")+" has been deleted!"}),h(g.freshdeskAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshdeskAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshdeskAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}JC.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","freshdeskAccounts","freshdeskAccount","api","Auth","license","setting","crudPermissions"];const XC=JC,ZC=n.p+"templates/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog.html",eT=n.p+"templates/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog.html";function tT(e,t,n,a,o){const r=this;function i(e){n.intFreshdeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intFreshdeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intFreshdeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.freshdeskAccount={},r.freshdeskConfiguration={},r.configurations=[],r.selectedFreshdeskConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.freshdeskAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intFreshdeskAccount.getConfigurations({id:r.freshdeskAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getFreshdeskConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getFreshdeskConfiguration=function(e){r.freshdeskConfiguration=r.configurations[e],r.selectedFreshdeskConfiguration=e,n.intFreshdeskConfiguration.getSubjects({id:r.freshdeskConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intFreshdeskConfiguration.getDescriptions({id:r.freshdeskConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intFreshdeskConfiguration.getFields({id:r.freshdeskConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})})),n.intFreshdeskConfiguration.getTags({id:r.freshdeskConfiguration.id}).$promise.then((function(e){r.selectedTags=e.rows?u().map(e.rows,"id"):[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditFreshdeskConfiguration=function(n,a){e.show({controller:"CreateOrEditFreshdeskConfigurationDialogController",controllerAs:"vm",templateUrl:ZC,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{freshdeskConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getFreshdeskConfiguration(0)}))},r.deleteFreshdeskConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the freshdeskConfiguration?").htmlContent("<b>"+(o.name||"freshdeskConfiguration")+"</b> will be deleted.").ariaLabel("delete freshdeskConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intFreshdeskConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"FreshdeskConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getFreshdeskConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedTags=[],r.selectTagsChanged=function(){n.intFreshdeskConfiguration.setTags({id:r.freshdeskConfiguration.id,ids:r.selectedTags}).$promise.then((function(){a.success({title:"Tags set!",msg:"Tags has been set!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:ADDTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},n.tag.get({nolimit:!0,sort:"name"}).$promise.then((function(e){r.tags=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})),r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditFreshdeskAccountItemDialogController",controllerAs:"vm",templateUrl:eT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.freshdeskConfiguration,account:r.freshdeskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditFreshdeskAccountItemDialogController",controllerAs:"vm",templateUrl:eT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.freshdeskConfiguration,account:r.freshdeskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditFreshdeskAccountItemDialogController",controllerAs:"vm",templateUrl:eT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.freshdeskConfiguration,account:r.freshdeskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}tT.$inject=["$mdDialog","$document","api","toasty","Auth"];const nT=tT;function aT(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION",g.freshdeskConfiguration=angular.copy(l),g.configurations=s,g.newFreshdeskConfiguration=!1,g.freshdeskConfiguration||(g.freshdeskConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_FRESHDESKCONFIGURATION",g.newFreshdeskConfiguration=!0),g.addNewFreshdeskConfiguration=function(){g.errors=[],c.intFreshdeskAccount.addConfiguration({id:t.params.id},g.freshdeskConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"FreshdeskConfiguration properly created",msg:g.freshdeskConfiguration.name?g.freshdeskConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshdeskConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshdeskConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveFreshdeskConfiguration=function(){g.errors=[],c.intFreshdeskConfiguration.update({id:g.freshdeskConfiguration.id},g.freshdeskConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"FreshdeskConfiguration properly saved!",msg:g.freshdeskConfiguration.name?g.freshdeskConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshdeskConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshdeskConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteFreshdeskConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The freshdeskConfiguration will be deleted.").ariaLabel("Delete FreshdeskConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intFreshdeskConfiguration.delete({id:g.freshdeskConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.freshdeskConfiguration.id}),i.success({title:"FreshdeskConfiguration properly deleted!",msg:(g.freshdeskConfiguration.name||"freshdeskConfiguration")+" has been deleted!"}),h(g.freshdeskConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshdeskConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshdeskConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}aT.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","freshdeskConfiguration","api","Auth","license","setting","crudPermissions"];const oT=aT;function rT(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intFreshdeskField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intFreshdeskField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intFreshdeskField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intFreshdeskAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}rT.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const iT=rT;function sT(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.freshdeskAccount=u||e.params.freshdeskAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoFreshdeskAccounts=function(){e.go("app.integrations.freshdeskAccounts",{},{reload:"app.integrations.freshdeskAccounts"})},f.saveFreshdeskAccount=function(){s.intFreshdeskAccount.update({id:f.freshdeskAccount.id},f.freshdeskAccount).$promise.then((function(){l.success({title:"FreshdeskAccount updated!",msg:f.freshdeskAccount.name?f.freshdeskAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintFreshdeskAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}sT.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","freshdeskAccount","userProfileSection"];const lT=sT,cT=n.p+"templates/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog.html";function uT(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.freshdeskAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="freshdeskAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedFreshdeskAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.integrations.freshdeskAccounts.edit",{id:e.id,freshdeskAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intFreshdeskAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"FreshdeskAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"FreshdeskAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("freshdeskAccount")+"?").htmlContent("<b>"+(e.name||"freshdeskAccount")+"</b> will be deleted.").ariaLabel("delete freshdeskAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getFreshdeskAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intFreshdeskAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="FreshdeskAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditFreshdeskAccount=function(e,t){o.show({controller:"CreateOrEditFreshdeskAccountDialogController",controllerAs:"vm",templateUrl:cT,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{freshdeskAccount:t,freshdeskAccounts:b.freshdeskAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteFreshdeskAccount=S,b.exportSelectedFreshdeskAccounts=function(){const e=angular.copy(b.selectedFreshdeskAccounts);return b.selectedFreshdeskAccounts=[],e},b.deleteSelectedFreshdeskAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected freshdeskAccounts?").htmlContent("<b>"+b.selectedFreshdeskAccounts.length+" selected</b> will be deleted.").ariaLabel("delete FreshdeskAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedFreshdeskAccounts.forEach((function(e){S(e)})),b.selectedFreshdeskAccounts=[]}))},b.deselectFreshdeskAccounts=function(){b.selectedFreshdeskAccounts=[]},b.selectAllFreshdeskAccounts=function(){b.selectedFreshdeskAccounts=b.freshdeskAccounts.rows};let y=!0,v=1;function A(e){b.freshdeskAccounts=e||{count:0,rows:[]}}function S(e){f.intFreshdeskAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.freshdeskAccounts.rows,{id:e.id}),b.freshdeskAccounts.count-=1,b.freshdeskAccounts.rows.length||b.getFreshdeskAccounts(),p.success({title:u().startCase("FreshdeskAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintFreshdeskAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintFreshdeskAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getFreshdeskAccounts())}))}uT.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","freshdeskAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const dT=uT;function fT(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_FRESHSALESACCOUNT",g.freshsalesAccount=angular.copy(l),g.freshsalesAccounts=s,g.newFreshsalesAccount=!1,g.freshsalesAccount||(g.freshsalesAccount={serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_FRESHSALESACCOUNT",g.newFreshsalesAccount=!0),g.addNewFreshsalesAccount=function(){g.errors=[],c.intFreshsalesAccount.save(g.freshsalesAccount).$promise.then((function(e){g.freshsalesAccounts.unshift(e.toJSON()),i.success({title:"FreshsalesAccount properly created",msg:g.freshsalesAccount.name?g.freshsalesAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshsalesAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshsalesAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveFreshsalesAccount=function(){g.errors=[],c.intFreshsalesAccount.update({id:g.freshsalesAccount.id},g.freshsalesAccount).$promise.then((function(e){const t=u().find(g.freshsalesAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"FreshsalesAccount properly saved!",msg:g.freshsalesAccount.name?g.freshsalesAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshsalesAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshsalesAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteFreshsalesAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The freshsalesAccount will be deleted.").ariaLabel("Delete FreshsalesAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intFreshsalesAccount.delete({id:g.freshsalesAccount.id}).$promise.then((function(){u().remove(g.freshsalesAccounts,{id:g.freshsalesAccount.id}),i.success({title:"FreshsalesAccount properly deleted!",msg:(g.freshsalesAccount.name||"freshsalesAccount")+" has been deleted!"}),h(g.freshsalesAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshsalesAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshsalesAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}fT.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","freshsalesAccounts","freshsalesAccount","api","Auth","license","setting","crudPermissions"];const mT=fT,pT=n.p+"templates/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog.html",gT=n.p+"templates/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog.html";function hT(e,t,n,a,o){const r=this;function i(e){n.intFreshsalesField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intFreshsalesField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intFreshsalesField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.freshsalesAccount={},r.freshsalesConfiguration={},r.configurations=[],r.selectedFreshsalesConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.freshsalesAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intFreshsalesAccount.getConfigurations({id:r.freshsalesAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getFreshsalesConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getFreshsalesConfiguration=function(e){r.freshsalesConfiguration=r.configurations[e],r.selectedFreshsalesConfiguration=e,n.intFreshsalesConfiguration.getSubjects({id:r.freshsalesConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intFreshsalesConfiguration.getDescriptions({id:r.freshsalesConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intFreshsalesConfiguration.getFields({id:r.freshsalesConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditFreshsalesConfiguration=function(n,a){e.show({controller:"CreateOrEditFreshsalesConfigurationDialogController",controllerAs:"vm",templateUrl:pT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{freshsalesConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getFreshsalesConfiguration(0)}))},r.deleteFreshsalesConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the freshsalesConfiguration?").htmlContent("<b>"+(o.name||"freshsalesConfiguration")+"</b> will be deleted.").ariaLabel("delete freshsalesConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intFreshsalesConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"FreshsalesConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getFreshsalesConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditFreshsalesAccountItemDialogController",controllerAs:"vm",templateUrl:gT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.freshsalesConfiguration,account:r.freshsalesAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditFreshsalesAccountItemDialogController",controllerAs:"vm",templateUrl:gT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.freshsalesConfiguration,account:r.freshsalesAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditFreshsalesAccountItemDialogController",controllerAs:"vm",templateUrl:gT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.freshsalesConfiguration,account:r.freshsalesAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}hT.$inject=["$mdDialog","$document","api","toasty","Auth"];const _T=hT;function bT(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION",g.freshsalesConfiguration=angular.copy(l),g.configurations=s,g.newFreshsalesConfiguration=!1,g.freshsalesConfiguration||(g.freshsalesConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_FRESHSALESCONFIGURATION",g.newFreshsalesConfiguration=!0),g.addNewFreshsalesConfiguration=function(){g.errors=[],c.intFreshsalesAccount.addConfiguration({id:t.params.id},g.freshsalesConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"FreshsalesConfiguration properly created",msg:g.freshsalesConfiguration.name?g.freshsalesConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshsalesConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshsalesConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveFreshsalesConfiguration=function(){g.errors=[],c.intFreshsalesConfiguration.update({id:g.freshsalesConfiguration.id},g.freshsalesConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"FreshsalesConfiguration properly saved!",msg:g.freshsalesConfiguration.name?g.freshsalesConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshsalesConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshsalesConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteFreshsalesConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The freshsalesConfiguration will be deleted.").ariaLabel("Delete FreshsalesConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intFreshsalesConfiguration.delete({id:g.freshsalesConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.freshsalesConfiguration.id}),i.success({title:"FreshsalesConfiguration properly deleted!",msg:(g.freshsalesConfiguration.name||"freshsalesConfiguration")+" has been deleted!"}),h(g.freshsalesConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intFreshsalesConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intFreshsalesConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}bT.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","freshsalesConfiguration","api","Auth","license","setting","crudPermissions"];const yT=bT;function vT(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intFreshsalesField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intFreshsalesField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intFreshsalesField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intFreshsalesAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}vT.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const AT=vT;function ST(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.freshsalesAccount=u||e.params.freshsalesAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoFreshsalesAccounts=function(){e.go("app.integrations.freshsalesAccounts",{},{reload:"app.integrations.freshsalesAccounts"})},f.saveFreshsalesAccount=function(){s.intFreshsalesAccount.update({id:f.freshsalesAccount.id},f.freshsalesAccount).$promise.then((function(){l.success({title:"FreshsalesAccount updated!",msg:f.freshsalesAccount.name?f.freshsalesAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintFreshsalesAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}ST.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","freshsalesAccount","userProfileSection"];const wT=ST,ET=n.p+"templates/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog.html";function CT(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.freshsalesAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="freshsalesAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedFreshsalesAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.integrations.freshsalesAccounts.edit",{id:e.id,freshsalesAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intFreshsalesAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"FreshsalesAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"FreshsalesAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("freshsalesAccount")+"?").htmlContent("<b>"+(e.name||"freshsalesAccount")+"</b> will be deleted.").ariaLabel("delete freshsalesAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getFreshsalesAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intFreshsalesAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="FreshsalesAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditFreshsalesAccount=function(e,t){o.show({controller:"CreateOrEditFreshsalesAccountDialogController",controllerAs:"vm",templateUrl:ET,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{freshsalesAccount:t,freshsalesAccounts:b.freshsalesAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteFreshsalesAccount=S,b.exportSelectedFreshsalesAccounts=function(){const e=angular.copy(b.selectedFreshsalesAccounts);return b.selectedFreshsalesAccounts=[],e},b.deleteSelectedFreshsalesAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected freshsalesAccounts?").htmlContent("<b>"+b.selectedFreshsalesAccounts.length+" selected</b> will be deleted.").ariaLabel("delete FreshsalesAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedFreshsalesAccounts.forEach((function(e){S(e)})),b.selectedFreshsalesAccounts=[]}))},b.deselectFreshsalesAccounts=function(){b.selectedFreshsalesAccounts=[]},b.selectAllFreshsalesAccounts=function(){b.selectedFreshsalesAccounts=b.freshsalesAccounts.rows};let y=!0,v=1;function A(e){b.freshsalesAccounts=e||{count:0,rows:[]}}function S(e){f.intFreshsalesAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.freshsalesAccounts.rows,{id:e.id}),b.freshsalesAccounts.count-=1,b.freshsalesAccounts.rows.length||b.getFreshsalesAccounts(),p.success({title:u().startCase("FreshsalesAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintFreshsalesAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintFreshsalesAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getFreshsalesAccounts())}))}CT.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","freshsalesAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const TT=CT;function IT(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_SALESFORCEACCOUNT",g.salesforceAccount=angular.copy(l),g.salesforceAccounts=s,g.newSalesforceAccount=!1,g.salesforceAccount||(g.salesforceAccount={type:"integrationTab",serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_SALESFORCEACCOUNT",g.newSalesforceAccount=!0),g.addNewSalesforceAccount=function(){g.errors=[],c.intSalesforceAccount.save(g.salesforceAccount).$promise.then((function(e){g.salesforceAccounts.unshift(e.toJSON()),i.success({title:"SalesforceAccount properly created",msg:g.salesforceAccount.name?g.salesforceAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSalesforceAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSalesforceAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSalesforceAccount=function(){g.errors=[],c.intSalesforceAccount.update({id:g.salesforceAccount.id},g.salesforceAccount).$promise.then((function(e){const t=u().find(g.salesforceAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SalesforceAccount properly saved!",msg:g.salesforceAccount.name?g.salesforceAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSalesforceAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSalesforceAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSalesforceAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The salesforceAccount will be deleted.").ariaLabel("Delete SalesforceAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intSalesforceAccount.delete({id:g.salesforceAccount.id}).$promise.then((function(){u().remove(g.salesforceAccounts,{id:g.salesforceAccount.id}),i.success({title:"SalesforceAccount properly deleted!",msg:(g.salesforceAccount.name||"salesforceAccount")+" has been deleted!"}),h(g.salesforceAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSalesforceAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSalesforceAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}IT.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","salesforceAccounts","salesforceAccount","api","Auth","license","setting","crudPermissions"];const kT=IT,DT=n.p+"templates/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html/dialog.html",xT=n.p+"templates/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog.html";function MT(e,t,n,a,o){const r=this;function i(){return"Case"===r.salesforceConfiguration.ticketType&&("lead"===r.salesforceConfiguration.moduleCreate||u().includes(["lead","contact_lead","account_contact_lead"],r.salesforceConfiguration.moduleSearch))}function s(){return u().includes(["lead","contact_lead","account_contact_lead"],r.salesforceConfiguration.moduleSearch)}function l(){return u().includes(["contact","contact_lead","account_contact_lead"],r.salesforceConfiguration.moduleSearch)}function c(){return u().includes(["account","account_contact_lead"],r.salesforceConfiguration.moduleSearch)}function d(){return n.intSalesforceConfiguration.update({id:r.salesforceConfiguration.id},r.salesforceConfiguration).$promise.then((function(){a.success({title:"Module updated!",msg:"Module has been updated!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function f(e){n.intSalesforceField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function m(e){n.intSalesforceField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function p(e){n.intSalesforceField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.salesforceAccount={},r.salesforceConfiguration={},r.configurations=[],r.selectedSalesforceConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.salesforceAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intSalesforceAccount.getConfigurations({id:r.salesforceAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getSalesforceConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getSalesforceConfiguration=function(e){r.salesforceConfiguration=r.configurations[e],r.salesforceConfiguration.isLead=i(),r.salesforceConfiguration.isLeadSearch=s(),r.salesforceConfiguration.isContactSearch=l(),r.salesforceConfiguration.isAccountSearch=c(),r.selectedSalesforceConfiguration=e,n.intSalesforceConfiguration.getSubjects({id:r.salesforceConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intSalesforceConfiguration.getDescriptions({id:r.salesforceConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intSalesforceConfiguration.getFields({id:r.salesforceConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditSalesforceConfiguration=function(n,a){e.show({controller:"CreateOrEditSalesforceConfigurationDialogController",controllerAs:"vm",templateUrl:DT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{salesforceConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getSalesforceConfiguration(0)}))},r.deleteSalesforceConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the salesforceConfiguration?").htmlContent("<b>"+(o.name||"salesforceConfiguration")+"</b> will be deleted.").ariaLabel("delete salesforceConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intSalesforceConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"SalesforceConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getSalesforceConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectChangedAdvanced=function(){r.salesforceConfiguration.isLead=i(),r.salesforceConfiguration.isLeadSearch=s(),r.salesforceConfiguration.isContactSearch=l(),r.salesforceConfiguration.isAccountSearch=c(),d()},r.salesforceConfiguration.isLead=!1,r.salesforceConfiguration.isLeadSearch=!1,r.salesforceConfiguration.isContactSearch=!1,r.salesforceConfiguration.isAccountSearch=!1,r.checkIsLead=i,r.checkIsLeadSearch=s,r.checkIsContactSearch=l,r.checkIsAccountSearch=c,r.saveSalesforceConfiguration=d,r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditSalesforceAccountItemDialogController",controllerAs:"vm",templateUrl:xT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.salesforceConfiguration,account:r.salesforceAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){f(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){f(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditSalesforceAccountItemDialogController",controllerAs:"vm",templateUrl:xT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.salesforceConfiguration,account:r.salesforceAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){m(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){m(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditSalesforceAccountItemDialogController",controllerAs:"vm",templateUrl:xT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.salesforceConfiguration,account:r.salesforceAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){p(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){p(e)})),r.selectedFields=[]}))}}MT.$inject=["$mdDialog","$document","api","toasty","Auth"];const PT=MT;function OT(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_SALESFORCECONFIGURATION",g.salesforceConfiguration=angular.copy(l),g.configurations=s,g.newSalesforceConfiguration=!1,g.salesforceConfiguration||(g.salesforceConfiguration={channel:"voice",type:"inbound",ticketType:"Task"},g.title="INTEGRATIONS.NEW_SALESFORCECONFIGURATION",g.newSalesforceConfiguration=!0),g.addNewSalesforceConfiguration=function(){g.errors=[],c.intSalesforceAccount.addConfiguration({id:t.params.id},g.salesforceConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"SalesforceConfiguration properly created",msg:g.salesforceConfiguration.name?g.salesforceConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSalesforceConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSalesforceConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSalesforceConfiguration=function(){g.errors=[],c.intSalesforceConfiguration.update({id:g.salesforceConfiguration.id},g.salesforceConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SalesforceConfiguration properly saved!",msg:g.salesforceConfiguration.name?g.salesforceConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSalesforceConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSalesforceConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSalesforceConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The salesforceConfiguration will be deleted.").ariaLabel("Delete SalesforceConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intSalesforceConfiguration.delete({id:g.salesforceConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.salesforceConfiguration.id}),i.success({title:"SalesforceConfiguration properly deleted!",msg:(g.salesforceConfiguration.name||"salesforceConfiguration")+" has been deleted!"}),h(g.salesforceConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSalesforceConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSalesforceConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}OT.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","salesforceConfiguration","api","Auth","license","setting","crudPermissions"];const RT=OT;function NT(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intSalesforceField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intSalesforceField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intSalesforceField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intSalesforceAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}NT.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const LT=NT;function $T(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.salesforceAccount=u||e.params.salesforceAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoSalesforceAccounts=function(){e.go("app.integrations.salesforceAccounts",{},{reload:"app.integrations.salesforceAccounts"})},f.saveSalesforceAccount=function(){s.intSalesforceAccount.update({id:f.salesforceAccount.id},f.salesforceAccount).$promise.then((function(){l.success({title:"SalesforceAccount updated!",msg:f.salesforceAccount.name?f.salesforceAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintSalesforceAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}$T.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","salesforceAccount","userProfileSection"];const UT=$T,jT=n.p+"templates/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog.html";function FT(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.salesforceAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="salesforceAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedSalesforceAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.arraytype=u().keyBy([{option:"Integration_Tab",value:"'integrationTab'"},{option:"New_Tab",value:"'newTab'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.integrations.salesforceAccounts.edit",{id:e.id,salesforceAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intSalesforceAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"SalesforceAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"SalesforceAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("salesforceAccount")+"?").htmlContent("<b>"+(e.name||"salesforceAccount")+"</b> will be deleted.").ariaLabel("delete salesforceAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getSalesforceAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intSalesforceAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="SalesforceAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditSalesforceAccount=function(e,t){o.show({controller:"CreateOrEditSalesforceAccountDialogController",controllerAs:"vm",templateUrl:jT,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{salesforceAccount:t,salesforceAccounts:b.salesforceAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteSalesforceAccount=S,b.exportSelectedSalesforceAccounts=function(){const e=angular.copy(b.selectedSalesforceAccounts);return b.selectedSalesforceAccounts=[],e},b.deleteSelectedSalesforceAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected salesforceAccounts?").htmlContent("<b>"+b.selectedSalesforceAccounts.length+" selected</b> will be deleted.").ariaLabel("delete SalesforceAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedSalesforceAccounts.forEach((function(e){S(e)})),b.selectedSalesforceAccounts=[]}))},b.deselectSalesforceAccounts=function(){b.selectedSalesforceAccounts=[]},b.selectAllSalesforceAccounts=function(){b.selectedSalesforceAccounts=b.salesforceAccounts.rows};let y=!0,v=1;function A(e){b.salesforceAccounts=e||{count:0,rows:[]}}function S(e){f.intSalesforceAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.salesforceAccounts.rows,{id:e.id}),b.salesforceAccounts.count-=1,b.salesforceAccounts.rows.length||b.getSalesforceAccounts(),p.success({title:u().startCase("SalesforceAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintSalesforceAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintSalesforceAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getSalesforceAccounts())}))}FT.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","salesforceAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const qT=FT;function YT(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_SERVICENOWACCOUNT",g.servicenowAccount=angular.copy(l),g.servicenowAccounts=s,g.newServicenowAccount=!1,g.servicenowAccount||(g.servicenowAccount={serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_SERVICENOWACCOUNT",g.newServicenowAccount=!0),g.addNewServicenowAccount=function(){g.errors=[],c.intServicenowAccount.save(g.servicenowAccount).$promise.then((function(e){g.servicenowAccounts.unshift(e.toJSON()),i.success({title:"ServicenowAccount properly created",msg:g.servicenowAccount.name?g.servicenowAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intServicenowAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intServicenowAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveServicenowAccount=function(){g.errors=[],c.intServicenowAccount.update({id:g.servicenowAccount.id},g.servicenowAccount).$promise.then((function(e){const t=u().find(g.servicenowAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ServicenowAccount properly saved!",msg:g.servicenowAccount.name?g.servicenowAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intServicenowAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intServicenowAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteServicenowAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The servicenowAccount will be deleted.").ariaLabel("Delete ServicenowAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intServicenowAccount.delete({id:g.servicenowAccount.id}).$promise.then((function(){u().remove(g.servicenowAccounts,{id:g.servicenowAccount.id}),i.success({title:"ServicenowAccount properly deleted!",msg:(g.servicenowAccount.name||"servicenowAccount")+" has been deleted!"}),h(g.servicenowAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intServicenowAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intServicenowAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}YT.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","servicenowAccounts","servicenowAccount","api","Auth","license","setting","crudPermissions"];const HT=YT,BT=n.p+"templates/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog.html",GT=n.p+"templates/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog.html";function VT(e,t,n,a,o){const r=this;function i(e){n.intServicenowField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intServicenowField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intServicenowField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.servicenowAccount={},r.servicenowConfiguration={},r.configurations=[],r.selectedServicenowConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.servicenowAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intServicenowAccount.getConfigurations({id:r.servicenowAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getServicenowConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getServicenowConfiguration=function(e){r.servicenowConfiguration=r.configurations[e],r.selectedServicenowConfiguration=e,n.intServicenowConfiguration.getSubjects({id:r.servicenowConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intServicenowConfiguration.getDescriptions({id:r.servicenowConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intServicenowConfiguration.getFields({id:r.servicenowConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditServicenowConfiguration=function(n,a){e.show({controller:"CreateOrEditServicenowConfigurationDialogController",controllerAs:"vm",templateUrl:BT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{servicenowConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getServicenowConfiguration(0)}))},r.deleteServicenowConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the servicenowConfiguration?").htmlContent("<b>"+(o.name||"servicenowConfiguration")+"</b> will be deleted.").ariaLabel("delete servicenowConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intServicenowConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"ServicenowConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getServicenowConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditServicenowAccountItemDialogController",controllerAs:"vm",templateUrl:GT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.servicenowConfiguration,account:r.servicenowAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditServicenowAccountItemDialogController",controllerAs:"vm",templateUrl:GT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.servicenowConfiguration,account:r.servicenowAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditServicenowAccountItemDialogController",controllerAs:"vm",templateUrl:GT,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.servicenowConfiguration,account:r.servicenowAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}VT.$inject=["$mdDialog","$document","api","toasty","Auth"];const WT=VT;function QT(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION",g.servicenowConfiguration=angular.copy(l),g.configurations=s,g.newServicenowConfiguration=!1,g.servicenowConfiguration||(g.servicenowConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_SERVICENOWCONFIGURATION",g.newServicenowConfiguration=!0),g.addNewServicenowConfiguration=function(){g.errors=[],c.intServicenowAccount.addConfiguration({id:t.params.id},g.servicenowConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"ServicenowConfiguration properly created",msg:g.servicenowConfiguration.name?g.servicenowConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intServicenowConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intServicenowConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveServicenowConfiguration=function(){g.errors=[],c.intServicenowConfiguration.update({id:g.servicenowConfiguration.id},g.servicenowConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ServicenowConfiguration properly saved!",msg:g.servicenowConfiguration.name?g.servicenowConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intServicenowConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intServicenowConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteServicenowConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The servicenowConfiguration will be deleted.").ariaLabel("Delete ServicenowConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intServicenowConfiguration.delete({id:g.servicenowConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.servicenowConfiguration.id}),i.success({title:"ServicenowConfiguration properly deleted!",msg:(g.servicenowConfiguration.name||"servicenowConfiguration")+" has been deleted!"}),h(g.servicenowConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intServicenowConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intServicenowConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}QT.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","servicenowConfiguration","api","Auth","license","setting","crudPermissions"];const zT=QT;function KT(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intServicenowField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intServicenowField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intServicenowField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intServicenowAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}KT.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const JT=KT;function XT(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.servicenowAccount=u||e.params.servicenowAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoServicenowAccounts=function(){e.go("app.integrations.servicenowAccounts",{},{reload:"app.integrations.servicenowAccounts"})},f.saveServicenowAccount=function(){s.intServicenowAccount.update({id:f.servicenowAccount.id},f.servicenowAccount).$promise.then((function(){l.success({title:"ServicenowAccount updated!",msg:f.servicenowAccount.name?f.servicenowAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintServicenowAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}XT.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","servicenowAccount","userProfileSection"];const ZT=XT,eI=n.p+"templates/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html";function tI(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.servicenowAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="servicenowAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedServicenowAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.integrations.servicenowAccounts.edit",{id:e.id,servicenowAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intServicenowAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"ServicenowAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"ServicenowAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("servicenowAccount")+"?").htmlContent("<b>"+(e.name||"servicenowAccount")+"</b> will be deleted.").ariaLabel("delete servicenowAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getServicenowAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intServicenowAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ServicenowAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditServicenowAccount=function(e,t){o.show({controller:"CreateOrEditServicenowAccountDialogController",controllerAs:"vm",templateUrl:eI,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{servicenowAccount:t,servicenowAccounts:b.servicenowAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteServicenowAccount=S,b.exportSelectedServicenowAccounts=function(){const e=angular.copy(b.selectedServicenowAccounts);return b.selectedServicenowAccounts=[],e},b.deleteSelectedServicenowAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected servicenowAccounts?").htmlContent("<b>"+b.selectedServicenowAccounts.length+" selected</b> will be deleted.").ariaLabel("delete ServicenowAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedServicenowAccounts.forEach((function(e){S(e)})),b.selectedServicenowAccounts=[]}))},b.deselectServicenowAccounts=function(){b.selectedServicenowAccounts=[]},b.selectAllServicenowAccounts=function(){b.selectedServicenowAccounts=b.servicenowAccounts.rows};let y=!0,v=1;function A(e){b.servicenowAccounts=e||{count:0,rows:[]}}function S(e){f.intServicenowAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.servicenowAccounts.rows,{id:e.id}),b.servicenowAccounts.count-=1,b.servicenowAccounts.rows.length||b.getServicenowAccounts(),p.success({title:u().startCase("ServicenowAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintServicenowAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintServicenowAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getServicenowAccounts())}))}tI.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","servicenowAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const nI=tI;function aI(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_SUGARCRMACCOUNT",g.sugarcrmAccount=angular.copy(l),g.sugarcrmAccounts=s,g.newSugarcrmAccount=!1,g.sugarcrmAccount||(g.sugarcrmAccount={serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_SUGARCRMACCOUNT",g.newSugarcrmAccount=!0),g.addNewSugarcrmAccount=function(){g.errors=[],c.intSugarcrmAccount.save(g.sugarcrmAccount).$promise.then((function(e){g.sugarcrmAccounts.unshift(e.toJSON()),i.success({title:"SugarcrmAccount properly created",msg:g.sugarcrmAccount.name?g.sugarcrmAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSugarcrmAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSugarcrmAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSugarcrmAccount=function(){g.errors=[],c.intSugarcrmAccount.update({id:g.sugarcrmAccount.id},g.sugarcrmAccount).$promise.then((function(e){const t=u().find(g.sugarcrmAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SugarcrmAccount properly saved!",msg:g.sugarcrmAccount.name?g.sugarcrmAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSugarcrmAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSugarcrmAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSugarcrmAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The sugarcrmAccount will be deleted.").ariaLabel("Delete SugarcrmAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intSugarcrmAccount.delete({id:g.sugarcrmAccount.id}).$promise.then((function(){u().remove(g.sugarcrmAccounts,{id:g.sugarcrmAccount.id}),i.success({title:"SugarcrmAccount properly deleted!",msg:(g.sugarcrmAccount.name||"sugarcrmAccount")+" has been deleted!"}),h(g.sugarcrmAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSugarcrmAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSugarcrmAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}aI.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","sugarcrmAccounts","sugarcrmAccount","api","Auth","license","setting","crudPermissions"];const oI=aI,rI=n.p+"templates/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog.html",iI=n.p+"templates/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog.html";function sI(e,t,n,a,o){const r=this;function i(e){n.intSugarcrmField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intSugarcrmField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intSugarcrmField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.sugarcrmAccount={},r.sugarcrmConfiguration={},r.configurations=[],r.selectedSugarcrmConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.sugarcrmAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intSugarcrmAccount.getConfigurations({id:r.sugarcrmAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getSugarcrmConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getSugarcrmConfiguration=function(e){r.sugarcrmConfiguration=r.configurations[e],r.selectedSugarcrmConfiguration=e,n.intSugarcrmConfiguration.getSubjects({id:r.sugarcrmConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intSugarcrmConfiguration.getDescriptions({id:r.sugarcrmConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intSugarcrmConfiguration.getFields({id:r.sugarcrmConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditSugarcrmConfiguration=function(n,a){e.show({controller:"CreateOrEditSugarcrmConfigurationDialogController",controllerAs:"vm",templateUrl:rI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{sugarcrmConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getSugarcrmConfiguration(0)}))},r.deleteSugarcrmConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the sugarcrmConfiguration?").htmlContent("<b>"+(o.name||"sugarcrmConfiguration")+"</b> will be deleted.").ariaLabel("delete sugarcrmConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intSugarcrmConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"SugarcrmConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getSugarcrmConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditSugarcrmAccountItemDialogController",controllerAs:"vm",templateUrl:iI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.sugarcrmConfiguration,account:r.sugarcrmAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditSugarcrmAccountItemDialogController",controllerAs:"vm",templateUrl:iI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.sugarcrmConfiguration,account:r.sugarcrmAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditSugarcrmAccountItemDialogController",controllerAs:"vm",templateUrl:iI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.sugarcrmConfiguration,account:r.sugarcrmAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}sI.$inject=["$mdDialog","$document","api","toasty","Auth"];const lI=sI;function cI(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION",g.sugarcrmConfiguration=angular.copy(l),g.configurations=s,g.newSugarcrmConfiguration=!1,g.sugarcrmConfiguration||(g.sugarcrmConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_SUGARCRMCONFIGURATION",g.newSugarcrmConfiguration=!0),g.addNewSugarcrmConfiguration=function(){g.errors=[],c.intSugarcrmAccount.addConfiguration({id:t.params.id},g.sugarcrmConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"SugarcrmConfiguration properly created",msg:g.sugarcrmConfiguration.name?g.sugarcrmConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSugarcrmConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSugarcrmConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSugarcrmConfiguration=function(){g.errors=[],c.intSugarcrmConfiguration.update({id:g.sugarcrmConfiguration.id},g.sugarcrmConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"SugarcrmConfiguration properly saved!",msg:g.sugarcrmConfiguration.name?g.sugarcrmConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSugarcrmConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSugarcrmConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSugarcrmConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The sugarcrmConfiguration will be deleted.").ariaLabel("Delete SugarcrmConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intSugarcrmConfiguration.delete({id:g.sugarcrmConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.sugarcrmConfiguration.id}),i.success({title:"SugarcrmConfiguration properly deleted!",msg:(g.sugarcrmConfiguration.name||"sugarcrmConfiguration")+" has been deleted!"}),h(g.sugarcrmConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intSugarcrmConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intSugarcrmConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}cI.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","sugarcrmConfiguration","api","Auth","license","setting","crudPermissions"];const uI=cI;function dI(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intSugarcrmField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intSugarcrmField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intSugarcrmField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intSugarcrmAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}dI.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const fI=dI;function mI(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.sugarcrmAccount=u||e.params.sugarcrmAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoSugarcrmAccounts=function(){e.go("app.integrations.sugarcrmAccounts",{},{reload:"app.integrations.sugarcrmAccounts"})},f.saveSugarcrmAccount=function(){s.intSugarcrmAccount.update({id:f.sugarcrmAccount.id},f.sugarcrmAccount).$promise.then((function(){l.success({title:"SugarcrmAccount updated!",msg:f.sugarcrmAccount.name?f.sugarcrmAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintSugarcrmAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}mI.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","sugarcrmAccount","userProfileSection"];const pI=mI,gI=n.p+"templates/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog.html";function hI(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.sugarcrmAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="sugarcrmAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedSugarcrmAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.integrations.sugarcrmAccounts.edit",{id:e.id,sugarcrmAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intSugarcrmAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"SugarcrmAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"SugarcrmAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("sugarcrmAccount")+"?").htmlContent("<b>"+(e.name||"sugarcrmAccount")+"</b> will be deleted.").ariaLabel("delete sugarcrmAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getSugarcrmAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intSugarcrmAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="SugarcrmAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditSugarcrmAccount=function(e,t){o.show({controller:"CreateOrEditSugarcrmAccountDialogController",controllerAs:"vm",templateUrl:gI,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{sugarcrmAccount:t,sugarcrmAccounts:b.sugarcrmAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteSugarcrmAccount=S,b.exportSelectedSugarcrmAccounts=function(){const e=angular.copy(b.selectedSugarcrmAccounts);return b.selectedSugarcrmAccounts=[],e},b.deleteSelectedSugarcrmAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected sugarcrmAccounts?").htmlContent("<b>"+b.selectedSugarcrmAccounts.length+" selected</b> will be deleted.").ariaLabel("delete SugarcrmAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedSugarcrmAccounts.forEach((function(e){S(e)})),b.selectedSugarcrmAccounts=[]}))},b.deselectSugarcrmAccounts=function(){b.selectedSugarcrmAccounts=[]},b.selectAllSugarcrmAccounts=function(){b.selectedSugarcrmAccounts=b.sugarcrmAccounts.rows};let y=!0,v=1;function A(e){b.sugarcrmAccounts=e||{count:0,rows:[]}}function S(e){f.intSugarcrmAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.sugarcrmAccounts.rows,{id:e.id}),b.sugarcrmAccounts.count-=1,b.sugarcrmAccounts.rows.length||b.getSugarcrmAccounts(),p.success({title:u().startCase("SugarcrmAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintSugarcrmAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintSugarcrmAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getSugarcrmAccounts())}))}hI.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","sugarcrmAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const _I=hI;function bI(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_VTIGERACCOUNT",g.vtigerAccount=angular.copy(l),g.vtigerAccounts=s,g.newVtigerAccount=!1,g.vtigerAccount||(g.vtigerAccount={serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_VTIGERACCOUNT",g.newVtigerAccount=!0),g.addNewVtigerAccount=function(){g.errors=[],c.intVtigerAccount.save(g.vtigerAccount).$promise.then((function(e){g.vtigerAccounts.unshift(e.toJSON()),i.success({title:"VtigerAccount properly created",msg:g.vtigerAccount.name?g.vtigerAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intVtigerAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intVtigerAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveVtigerAccount=function(){g.errors=[],c.intVtigerAccount.update({id:g.vtigerAccount.id},g.vtigerAccount).$promise.then((function(e){const t=u().find(g.vtigerAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"VtigerAccount properly saved!",msg:g.vtigerAccount.name?g.vtigerAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intVtigerAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intVtigerAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteVtigerAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The vtigerAccount will be deleted.").ariaLabel("Delete VtigerAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intVtigerAccount.delete({id:g.vtigerAccount.id}).$promise.then((function(){u().remove(g.vtigerAccounts,{id:g.vtigerAccount.id}),i.success({title:"VtigerAccount properly deleted!",msg:(g.vtigerAccount.name||"vtigerAccount")+" has been deleted!"}),h(g.vtigerAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intVtigerAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intVtigerAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}bI.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","vtigerAccounts","vtigerAccount","api","Auth","license","setting","crudPermissions"];const yI=bI,vI=n.p+"templates/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog.html",AI=n.p+"templates/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog.html";function SI(e,t,n,a,o){const r=this;function i(e){n.intVtigerField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intVtigerField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intVtigerField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.vtigerAccount={},r.vtigerConfiguration={},r.configurations=[],r.selectedVtigerConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.vtigerAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intVtigerAccount.getConfigurations({id:r.vtigerAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getVtigerConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getVtigerConfiguration=function(e){r.vtigerConfiguration=r.configurations[e],r.selectedVtigerConfiguration=e,n.intVtigerConfiguration.getSubjects({id:r.vtigerConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intVtigerConfiguration.getDescriptions({id:r.vtigerConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intVtigerConfiguration.getFields({id:r.vtigerConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditVtigerConfiguration=function(n,a){e.show({controller:"CreateOrEditVtigerConfigurationDialogController",controllerAs:"vm",templateUrl:vI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{vtigerConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getVtigerConfiguration(0)}))},r.deleteVtigerConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the vtigerConfiguration?").htmlContent("<b>"+(o.name||"vtigerConfiguration")+"</b> will be deleted.").ariaLabel("delete vtigerConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intVtigerConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"VtigerConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getVtigerConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditVtigerAccountItemDialogController",controllerAs:"vm",templateUrl:AI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.vtigerConfiguration,account:r.vtigerAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditVtigerAccountItemDialogController",controllerAs:"vm",templateUrl:AI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.vtigerConfiguration,account:r.vtigerAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditVtigerAccountItemDialogController",controllerAs:"vm",templateUrl:AI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.vtigerConfiguration,account:r.vtigerAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}SI.$inject=["$mdDialog","$document","api","toasty","Auth"];const wI=SI;function EI(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_VTIGERCONFIGURATION",g.vtigerConfiguration=angular.copy(l),g.configurations=s,g.newVtigerConfiguration=!1,g.vtigerConfiguration||(g.vtigerConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_VTIGERCONFIGURATION",g.newVtigerConfiguration=!0),g.addNewVtigerConfiguration=function(){g.errors=[],c.intVtigerAccount.addConfiguration({id:t.params.id},g.vtigerConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"VtigerConfiguration properly created",msg:g.vtigerConfiguration.name?g.vtigerConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intVtigerConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intVtigerConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveVtigerConfiguration=function(){g.errors=[],c.intVtigerConfiguration.update({id:g.vtigerConfiguration.id},g.vtigerConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"VtigerConfiguration properly saved!",msg:g.vtigerConfiguration.name?g.vtigerConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intVtigerConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intVtigerConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteVtigerConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The vtigerConfiguration will be deleted.").ariaLabel("Delete VtigerConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intVtigerConfiguration.delete({id:g.vtigerConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.vtigerConfiguration.id}),i.success({title:"VtigerConfiguration properly deleted!",msg:(g.vtigerConfiguration.name||"vtigerConfiguration")+" has been deleted!"}),h(g.vtigerConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intVtigerConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intVtigerConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}EI.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","vtigerConfiguration","api","Auth","license","setting","crudPermissions"];const CI=EI;function TI(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intVtigerField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intVtigerField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intVtigerField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intVtigerAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}TI.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const II=TI;function kI(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.vtigerAccount=u||e.params.vtigerAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoVtigerAccounts=function(){e.go("app.integrations.vtigerAccounts",{},{reload:"app.integrations.vtigerAccounts"})},f.saveVtigerAccount=function(){s.intVtigerAccount.update({id:f.vtigerAccount.id},f.vtigerAccount).$promise.then((function(){l.success({title:"VtigerAccount updated!",msg:f.vtigerAccount.name?f.vtigerAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintVtigerAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}kI.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","vtigerAccount","userProfileSection"];const DI=kI,xI=n.p+"templates/main/apps/integrations/views/vtigerAccounts/create/dialog.html/dialog.html";function MI(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.vtigerAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="vtigerAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedVtigerAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.integrations.vtigerAccounts.edit",{id:e.id,vtigerAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intVtigerAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"VtigerAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"VtigerAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("vtigerAccount")+"?").htmlContent("<b>"+(e.name||"vtigerAccount")+"</b> will be deleted.").ariaLabel("delete vtigerAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getVtigerAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intVtigerAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="VtigerAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditVtigerAccount=function(e,t){o.show({controller:"CreateOrEditVtigerAccountDialogController",controllerAs:"vm",templateUrl:xI,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{vtigerAccount:t,vtigerAccounts:b.vtigerAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteVtigerAccount=S,b.exportSelectedVtigerAccounts=function(){const e=angular.copy(b.selectedVtigerAccounts);return b.selectedVtigerAccounts=[],e},b.deleteSelectedVtigerAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected vtigerAccounts?").htmlContent("<b>"+b.selectedVtigerAccounts.length+" selected</b> will be deleted.").ariaLabel("delete VtigerAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedVtigerAccounts.forEach((function(e){S(e)})),b.selectedVtigerAccounts=[]}))},b.deselectVtigerAccounts=function(){b.selectedVtigerAccounts=[]},b.selectAllVtigerAccounts=function(){b.selectedVtigerAccounts=b.vtigerAccounts.rows};let y=!0,v=1;function A(e){b.vtigerAccounts=e||{count:0,rows:[]}}function S(e){f.intVtigerAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.vtigerAccounts.rows,{id:e.id}),b.vtigerAccounts.count-=1,b.vtigerAccounts.rows.length||b.getVtigerAccounts(),p.success({title:u().startCase("VtigerAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintVtigerAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintVtigerAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getVtigerAccounts())}))}MI.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","vtigerAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const PI=MI;function OI(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_ZENDESKACCOUNT",g.zendeskAccount=angular.copy(l),g.zendeskAccounts=s,g.newZendeskAccount=!1,g.zendeskAccount||(g.zendeskAccount={type:"integrationTab",authType:"password",serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_ZENDESKACCOUNT",g.newZendeskAccount=!0),g.addNewZendeskAccount=function(){g.errors=[],c.intZendeskAccount.save(g.zendeskAccount).$promise.then((function(e){g.zendeskAccounts.unshift(e.toJSON()),i.success({title:"ZendeskAccount properly created",msg:g.zendeskAccount.name?g.zendeskAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZendeskAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZendeskAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveZendeskAccount=function(){g.errors=[],c.intZendeskAccount.update({id:g.zendeskAccount.id},g.zendeskAccount).$promise.then((function(e){const t=u().find(g.zendeskAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ZendeskAccount properly saved!",msg:g.zendeskAccount.name?g.zendeskAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZendeskAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZendeskAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteZendeskAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The zendeskAccount will be deleted.").ariaLabel("Delete ZendeskAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intZendeskAccount.delete({id:g.zendeskAccount.id}).$promise.then((function(){u().remove(g.zendeskAccounts,{id:g.zendeskAccount.id}),i.success({title:"ZendeskAccount properly deleted!",msg:(g.zendeskAccount.name||"zendeskAccount")+" has been deleted!"}),h(g.zendeskAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZendeskAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZendeskAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}OI.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","zendeskAccounts","zendeskAccount","api","Auth","license","setting","crudPermissions"];const RI=OI;function NI(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intZendeskField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intZendeskField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intZendeskField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intZendeskAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}NI.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const LI=NI;function $I(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.zendeskAccount=u||e.params.zendeskAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoZendeskAccounts=function(){e.go("app.integrations.zendeskAccounts",{},{reload:"app.integrations.zendeskAccounts"})},f.saveZendeskAccount=function(){s.intZendeskAccount.update({id:f.zendeskAccount.id},f.zendeskAccount).$promise.then((function(){l.success({title:"ZendeskAccount updated!",msg:f.zendeskAccount.name?f.zendeskAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintZendeskAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}$I.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","zendeskAccount","userProfileSection"];const UI=$I,jI=n.p+"templates/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog.html",FI=n.p+"templates/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog.html";function qI(e,t,n,a,o){const r=this;function i(e){n.intZendeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intZendeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intZendeskField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.zendeskAccount={},r.zendeskConfiguration={},r.zendeskConfigurations=[],r.selectedZendeskConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.zendeskAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intZendeskAccount.getConfigurations({id:r.zendeskAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.zendeskConfigurations=e.rows?e.rows:[],r.zendeskConfigurations.length&&r.getZendeskConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getZendeskConfiguration=function(e){r.zendeskConfiguration=r.zendeskConfigurations[e],r.selectedZendeskConfiguration=e,n.intZendeskConfiguration.getSubjects({id:r.zendeskConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intZendeskConfiguration.getDescriptions({id:r.zendeskConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intZendeskConfiguration.getFields({id:r.zendeskConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})})),n.intZendeskConfiguration.getTags({id:r.zendeskConfiguration.id}).$promise.then((function(e){r.selectedTags=e.rows?u().map(e.rows,"id"):[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditZendeskConfiguration=function(n,a){e.show({controller:"CreateOrEditZendeskConfigurationDialogController",controllerAs:"vm",templateUrl:jI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{zendeskConfiguration:a,zendeskConfigurations:r.zendeskConfigurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getZendeskConfiguration(0)}))},r.deleteZendeskConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the zendeskConfiguration?").htmlContent("<b>"+(o.name||"zendeskConfiguration")+"</b> will be deleted.").ariaLabel("delete zendeskConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intZendeskConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.zendeskConfigurations,{id:o.id}),a.success({title:"ZendeskConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getZendeskConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectedTags=[],r.selectTagsChanged=function(){n.intZendeskConfiguration.setTags({id:r.zendeskConfiguration.id,ids:r.selectedTags}).$promise.then((function(){a.success({title:"Tags set!",msg:"Tags has been set!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:ADDTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))},n.tag.get({nolimit:!0,sort:"name"}).$promise.then((function(e){r.tags=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})),r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditZendeskAccountItemDialogController",controllerAs:"vm",templateUrl:FI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.zendeskConfiguration,account:r.zendeskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditZendeskAccountItemDialogController",controllerAs:"vm",templateUrl:FI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.zendeskConfiguration,account:r.zendeskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditZendeskAccountItemDialogController",controllerAs:"vm",templateUrl:FI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.zendeskConfiguration,account:r.zendeskAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}qI.$inject=["$mdDialog","$document","api","toasty","Auth"];const YI=qI;function HI(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_ZENDESKCONFIGURATION",g.zendeskConfiguration=angular.copy(l),g.zendeskConfigurations=s,g.newZendeskConfiguration=!1,g.zendeskConfiguration||(g.zendeskConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_ZENDESKCONFIGURATION",g.newZendeskConfiguration=!0),g.addNewZendeskConfiguration=function(){g.errors=[],c.intZendeskAccount.addConfiguration({id:t.params.id},g.zendeskConfiguration).$promise.then((function(e){g.zendeskConfigurations.unshift(e.toJSON()),i.success({title:"ZendeskConfiguration properly created",msg:g.zendeskConfiguration.name?g.zendeskConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZendeskConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZendeskConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveZendeskConfiguration=function(){g.errors=[],c.intZendeskConfiguration.update({id:g.zendeskConfiguration.id},g.zendeskConfiguration).$promise.then((function(e){const t=u().find(g.zendeskConfigurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ZendeskConfiguration properly saved!",msg:g.zendeskConfiguration.name?g.zendeskConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZendeskConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZendeskConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteZendeskConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The zendeskConfiguration will be deleted.").ariaLabel("Delete ZendeskConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intZendeskConfiguration.delete({id:g.zendeskConfiguration.id}).$promise.then((function(){u().remove(g.zendeskConfigurations,{id:g.zendeskConfiguration.id}),i.success({title:"ZendeskConfiguration properly deleted!",msg:(g.zendeskConfiguration.name||"zendeskConfiguration")+" has been deleted!"}),h(g.zendeskConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZendeskConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZendeskConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}HI.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","zendeskConfigurations","zendeskConfiguration","api","Auth","license","setting","crudPermissions"];const BI=HI,GI=n.p+"templates/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog.html";function VI(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.zendeskAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="zendeskAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedZendeskAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.arraytype=u().keyBy([{option:"Integration_Tab",value:"'integrationTab'"},{option:"New_Tab",value:"'newTab'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayauthType=u().keyBy([{option:"Password",value:"'password'"},{option:"Token",value:"'token'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.integrations.zendeskAccounts.edit",{id:e.id,zendeskAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intZendeskAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"ZendeskAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"ZendeskAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("zendeskAccount")+"?").htmlContent("<b>"+(e.name||"zendeskAccount")+"</b> will be deleted.").ariaLabel("delete zendeskAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getZendeskAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intZendeskAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ZendeskAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditZendeskAccount=function(e,t){o.show({controller:"CreateOrEditZendeskAccountDialogController",controllerAs:"vm",templateUrl:GI,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{zendeskAccount:t,zendeskAccounts:b.zendeskAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteZendeskAccount=S,b.exportSelectedZendeskAccounts=function(){const e=angular.copy(b.selectedZendeskAccounts);return b.selectedZendeskAccounts=[],e},b.deleteSelectedZendeskAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected zendeskAccounts?").htmlContent("<b>"+b.selectedZendeskAccounts.length+" selected</b> will be deleted.").ariaLabel("delete ZendeskAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedZendeskAccounts.forEach((function(e){S(e)})),b.selectedZendeskAccounts=[]}))},b.deselectZendeskAccounts=function(){b.selectedZendeskAccounts=[]},b.selectAllZendeskAccounts=function(){b.selectedZendeskAccounts=b.zendeskAccounts.rows};let y=!0,v=1;function A(e){b.zendeskAccounts=e||{count:0,rows:[]}}function S(e){f.intZendeskAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.zendeskAccounts.rows,{id:e.id}),b.zendeskAccounts.count-=1,b.zendeskAccounts.rows.length||b.getZendeskAccounts(),p.success({title:u().startCase("ZendeskAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintZendeskAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintZendeskAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getZendeskAccounts())}))}VI.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","zendeskAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const WI=VI;function QI(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_ZOHOACCOUNT",g.zohoAccount=angular.copy(l),g.zohoAccounts=s,g.newZohoAccount=!1,g.zohoAccount||(g.zohoAccount={host:"zoho.com",zone:"EU",serverUrl:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():"")},g.title="INTEGRATIONS.NEW_ZOHOACCOUNT",g.newZohoAccount=!0),g.addNewZohoAccount=function(){g.errors=[],c.intZohoAccount.save(g.zohoAccount).$promise.then((function(e){g.zohoAccounts.unshift(e.toJSON()),i.success({title:"ZohoAccount properly created",msg:g.zohoAccount.name?g.zohoAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZohoAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZohoAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveZohoAccount=function(){g.errors=[],c.intZohoAccount.update({id:g.zohoAccount.id},g.zohoAccount).$promise.then((function(e){const t=u().find(g.zohoAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ZohoAccount properly saved!",msg:g.zohoAccount.name?g.zohoAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZohoAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZohoAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteZohoAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The zohoAccount will be deleted.").ariaLabel("Delete ZohoAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intZohoAccount.delete({id:g.zohoAccount.id}).$promise.then((function(){u().remove(g.zohoAccounts,{id:g.zohoAccount.id}),i.success({title:"ZohoAccount properly deleted!",msg:(g.zohoAccount.name||"zohoAccount")+" has been deleted!"}),h(g.zohoAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZohoAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZohoAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}QI.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","zohoAccounts","zohoAccount","api","Auth","license","setting","crudPermissions"];const zI=QI,KI=n.p+"templates/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog.html",JI=n.p+"templates/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog.html";function XI(e,t,n,a,o){const r=this;function i(e){n.intZohoField.delete({id:e.id}).$promise.then((function(){u().remove(r.subjects,{id:e.id}),a.success({title:"Subject deleted!",msg:"Subject has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function s(e){n.intZohoField.delete({id:e.id}).$promise.then((function(){u().remove(r.descriptions,{id:e.id}),a.success({title:"Description deleted!",msg:"Description has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}function l(e){n.intZohoField.delete({id:e.id}).$promise.then((function(){u().remove(r.fields,{id:e.id}),a.success({title:"Field deleted!",msg:"Field has been deleted!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))}r.currentUser=o.getCurrentUser(),r.query={},r.zohoAccount={},r.zohoConfiguration={},r.configurations=[],r.selectedZohoConfiguration=-1,r.crudPermissions,r.init=function(e,t){r.zohoAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},n.intZohoAccount.getConfigurations({id:r.zohoAccount.id,sort:"-updatedAt"}).$promise.then((function(e){return r.configurations=e.rows?e.rows:[],r.configurations.length&&r.getZohoConfiguration(0),n.variable.get({nolimit:!0,sort:"name"}).$promise})).then((function(e){r.variables=e.rows?e.rows:[],r.variablesById=u().keyBy(r.variables,"id")})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETCONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.getZohoConfiguration=function(e){r.zohoConfiguration=r.configurations[e],r.selectedZohoConfiguration=e,n.intZohoConfiguration.getSubjects({id:r.zohoConfiguration.id}).$promise.then((function(e){return r.subjects=e.rows?e.rows:[],n.intZohoConfiguration.getDescriptions({id:r.zohoConfiguration.id}).$promise})).then((function(e){return r.descriptions=e.rows?e.rows:[],n.intZohoConfiguration.getFields({id:r.zohoConfiguration.id}).$promise})).then((function(e){r.fields=e.rows?e.rows:[]})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETConfigurations",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.createOrEditZohoConfiguration=function(n,a){e.show({controller:"CreateOrEditZohoConfigurationDialogController",controllerAs:"vm",templateUrl:KI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{zohoConfiguration:a,configurations:r.configurations,license:null,setting:null,crudPermissions:r.crudPermissions}}).finally((function(){r.getZohoConfiguration(0)}))},r.deleteZohoConfiguration=function(t,o){const i=e.confirm().title("Are you sure want to delete the zohoConfiguration?").htmlContent("<b>"+(o.name||"zohoConfiguration")+"</b> will be deleted.").ariaLabel("delete zohoConfiguration").targetEvent(t).ok("OK").cancel("CANCEL");e.show(i).then((function(){n.intZohoConfiguration.delete({id:o.id}).$promise.then((function(){u().remove(r.configurations,{id:o.id}),a.success({title:"ZohoConfiguration deleted!",msg:o.name?o.name+" has been deleted!":""})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETECONFIGURATION",msg:e.data?JSON.stringify(e.data):e.toString()})})).finally((function(){r.getZohoConfiguration(0)}))}),(function(){console.log("CANCEL")}))},r.selectChangedAdvanced=function(){n.intZohoConfiguration.update({id:r.zohoConfiguration.id},r.zohoConfiguration).$promise.then((function(){a.success({title:"Module updated!",msg:"Module has been updated!"})})).catch((function(e){a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATECONFIGURATIONFIELD",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.selectedSubjects=[],r.createOrEditSubject=function(n,a){e.show({controller:"CreateOrEditZohoAccountItemDialogController",controllerAs:"vm",templateUrl:JI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"subject",item:a,items:r.subjects,configuration:r.zohoConfiguration,account:r.zohoAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteSubjectConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the subject?").htmlContent("<b>Subject</b> will be deleted.").ariaLabel("delete subject").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){i(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedSubjects=function(t){const n=e.confirm().title("Are you sure want to delete the selected subjects?").htmlContent("<b>"+r.selectedSubjects.length+" selected</b> will be deleted.").ariaLabel("delete subjects").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedSubjects.forEach((function(e){i(e)})),r.selectedSubjects=[]}))},r.selectedDescriptions=[],r.createOrEditDescription=function(n,a){e.show({controller:"CreateOrEditZohoAccountItemDialogController",controllerAs:"vm",templateUrl:JI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"description",item:a,items:r.descriptions,configuration:r.zohoConfiguration,account:r.zohoAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteDescriptionConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the description?").htmlContent("<b>Description</b> will be deleted.").ariaLabel("delete description").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){s(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedDescriptions=function(t){const n=e.confirm().title("Are you sure want to delete the selected descriptions?").htmlContent("<b>"+r.selectedDescriptions.length+" selected</b> will be deleted.").ariaLabel("delete descriptions").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedDescriptions.forEach((function(e){s(e)})),r.selectedDescriptions=[]}))},r.selectedFields=[],r.createOrEditField=function(n,a){e.show({controller:"CreateOrEditZohoAccountItemDialogController",controllerAs:"vm",templateUrl:JI,parent:angular.element(t.body),targetEvent:n,clickOutsideToClose:!0,locals:{type:"field",item:a,items:r.fields,configuration:r.zohoConfiguration,account:r.zohoAccount,license:null,setting:null,crudPermissions:r.crudPermissions}})},r.deleteFieldConfirm=function(t,n){const a=e.confirm().title("Are you sure want to delete the field?").htmlContent("<b>Field</b> will be deleted.").ariaLabel("delete field").targetEvent(t).ok("OK").cancel("CANCEL");e.show(a).then((function(){l(n)}),(function(){console.log("CANCEL")}))},r.deleteSelectedFields=function(t){const n=e.confirm().title("Are you sure want to delete the selected fields?").htmlContent("<b>"+r.selectedFields.length+" selected</b> will be deleted.").ariaLabel("delete fields").targetEvent(t).ok("OK").cancel("CANCEL");e.show(n).then((function(){r.selectedFields.forEach((function(e){l(e)})),r.selectedFields=[]}))}}XI.$inject=["$mdDialog","$document","api","toasty","Auth"];const ZI=XI;function ek(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="INTEGRATIONS.EDIT_ZOHOCONFIGURATION",g.zohoConfiguration=angular.copy(l),g.configurations=s,g.newZohoConfiguration=!1,g.zohoConfiguration||(g.zohoConfiguration={channel:"voice",type:"inbound"},g.title="INTEGRATIONS.NEW_ZOHOCONFIGURATION",g.newZohoConfiguration=!0),g.addNewZohoConfiguration=function(){g.errors=[],c.intZohoAccount.addConfiguration({id:t.params.id},g.zohoConfiguration).$promise.then((function(e){g.configurations.unshift(e.toJSON()),i.success({title:"ZohoConfiguration properly created",msg:g.zohoConfiguration.name?g.zohoConfiguration.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZohoConfiguration.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZohoConfiguration.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveZohoConfiguration=function(){g.errors=[],c.intZohoConfiguration.update({id:g.zohoConfiguration.id},g.zohoConfiguration).$promise.then((function(e){const t=u().find(g.configurations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"ZohoConfiguration properly saved!",msg:g.zohoConfiguration.name?g.zohoConfiguration.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZohoConfiguration.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZohoConfiguration.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteZohoConfiguration=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The zohoConfiguration will be deleted.").ariaLabel("Delete ZohoConfiguration").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.intZohoConfiguration.delete({id:g.zohoConfiguration.id}).$promise.then((function(){u().remove(g.configurations,{id:g.zohoConfiguration.id}),i.success({title:"ZohoConfiguration properly deleted!",msg:(g.zohoConfiguration.name||"zohoConfiguration")+" has been deleted!"}),h(g.zohoConfiguration)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.intZohoConfiguration.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.intZohoConfiguration.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}ek.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","configurations","zohoConfiguration","api","Auth","license","setting","crudPermissions"];const tk=ek;function nk(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(){a.hide()}p.currentUser=f.getCurrentUser(),p.errors=[],p.title="INTEGRATIONS.EDIT_"+u().toUpper(c),p.item=angular.copy(s),p.items=i,p.type=c,p.crudPermissions=m,p.newItem=!1,p.item||(p.item={type:"string"},p.item[u().capitalize(c)+"Id"]=r.id,p.title="INTEGRATIONS.NEW_"+u().toUpper(c),p.newItem=!0),p.addNewItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intZohoField.save(p.item).$promise.then((function(e){p.items.unshift(e),o.success({title:u().capitalize(c)+" properly created",msg:u().capitalize(c)+" has been created!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.save"}]}))},p.saveItem=function(){p.errors=[],p.customField&&(p.item.idField=p.customField.id,p.item.nameField=p.customField.name,p.item.customField=p.customField.custom);d.intZohoField.update({id:p.item.id},p.item).$promise.then((function(e){const t=u().find(p.items,{id:e.id});t&&u().merge(t,e),o.success({title:u().capitalize(c)+" properly saved!",msg:u().capitalize(c)+" has been saved!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.intItem.update"}]}))},p.deleteItem=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The "+c+" will be deleted.").ariaLabel("Delete "+u().capitalize(c)).ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.intZohoField.delete({id:p.item.id}).$promise.then((function(){u().remove(p.items,{id:p.item.id}),o.success({title:u().capitalize(c)+" properly deleted!",msg:u().capitalize(c)+" has been deleted!"}),g()})).catch((function(e){console.error(e),p.errors=e.data.errors||[{message:e.toString(),type:"api.item.delete"}]}))}),(function(){}))},p.getSelectedVariable=function(){return void 0!==p.item.variableName?p.item.variableName:"Please select a variable"},p.closeDialog=g,d.variable.get({nolimit:!0}).$promise.then((function(e){return p.variables=e.rows?e.rows:[],d.voiceAgentReport.describe().$promise})).then((function(e){return p.voiceAgentReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceAgentReportColumns.push("recordingURL"),d.voiceDialReport.describe().$promise})).then((function(e){p.voiceDialReportColumns=u().difference(u().keys(e),["$promise","$resolved","createdAt","updatedAt","sourceid"]),p.voiceDialReportColumns.push("recordingURL")})).catch((function(e){o.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETVARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.intZohoAccount.getFields({id:l.id,ticketType:r.ticketType?r.ticketType:void 0}).$promise.then((function(e){p.accountConnected=!0,p.fields=e.rows?e.rows:[],p.item.idField&&(p.customField=u().find(p.fields,{id:p.item.idField}))})).catch((function(e){p.accountConnected=!1,console.error(e)}))}nk.$inject=["$scope","$state","$location","$mdDialog","toasty","configuration","items","item","account","type","api","Auth","crudPermissions"];const ak=nk;function ok(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.zohoAccount=u||e.params.zohoAccount||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoZohoAccounts=function(){e.go("app.integrations.zohoAccounts",{},{reload:"app.integrations.zohoAccounts"})},f.saveZohoAccount=function(){s.intZohoAccount.update({id:f.zohoAccount.id},f.zohoAccount).$promise.then((function(){l.success({title:"ZohoAccount updated!",msg:f.zohoAccount.name?f.zohoAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETintZohoAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}ok.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","zohoAccount","userProfileSection"];const rk=ok,ik=n.p+"templates/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog.html";function sk(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.zohoAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="zohoAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedZohoAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description",sort:"-updatedAt",limit:10,page:1},b.arrayhost=u().keyBy([{option:"zoho.com",value:"'zoho.com'"},{option:"zoho.eu",value:"'zoho.eu'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayzone=u().keyBy([{option:"US",value:"'US'"},{option:"AU",value:"'AU'"},{option:"EU",value:"'EU'"},{option:"IN",value:"'IN'"},{option:"CN",value:"'CN'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.integrations.zohoAccounts.edit",{id:e.id,zohoAccount:e,crudPermissions:b.crudPermissions})},b.testtestintegrationaccount=function(e){return f.intZohoAccount.getFields({id:e.id,test:!0}).$promise.then((function(){p.success({title:"ZohoAccount properly tested",msg:"Connection succeded!"})})).catch((function(e){p.error({title:"ZohoAccount properly tested",msg:e.data?e.data.message?e.data.message:JSON.stringify(e.data):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("zohoAccount")+"?").htmlContent("<b>"+(e.name||"zohoAccount")+"</b> will be deleted.").ariaLabel("delete zohoAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getZohoAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.intZohoAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ZohoAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditZohoAccount=function(e,t){o.show({controller:"CreateOrEditZohoAccountDialogController",controllerAs:"vm",templateUrl:ik,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{zohoAccount:t,zohoAccounts:b.zohoAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteZohoAccount=S,b.exportSelectedZohoAccounts=function(){const e=angular.copy(b.selectedZohoAccounts);return b.selectedZohoAccounts=[],e},b.deleteSelectedZohoAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected zohoAccounts?").htmlContent("<b>"+b.selectedZohoAccounts.length+" selected</b> will be deleted.").ariaLabel("delete ZohoAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedZohoAccounts.forEach((function(e){S(e)})),b.selectedZohoAccounts=[]}))},b.deselectZohoAccounts=function(){b.selectedZohoAccounts=[]},b.selectAllZohoAccounts=function(){b.selectedZohoAccounts=b.zohoAccounts.rows};let y=!0,v=1;function A(e){b.zohoAccounts=e||{count:0,rows:[]}}function S(e){f.intZohoAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.zohoAccounts.rows,{id:e.id}),b.zohoAccounts.count-=1,b.zohoAccounts.rows.length||b.getZohoAccounts(),p.success({title:u().startCase("ZohoAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEintZohoAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEintZohoAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getZohoAccounts())}))}sk.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","zohoAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const lk=sk;function ck(e,t){e.state("app.integrations",{abstract:!0,url:"/integrations"}).state("app.integrations.zendeskAccounts",{url:"/zendeskAccounts",views:{"content@app":{templateUrl:tC,controller:"ZendeskAccountsController as vm"}},resolve:{zendeskAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intZendeskAccount@get",{fields:"createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ZendeskAccounts",fields:"createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1301})}]},authenticate:!0,permissionId:1301,bodyClass:"integrations"}).state("app.integrations.zendeskAccounts.edit",{url:"/:id?tab",params:{zendeskAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:nC,controller:"ZendeskAccountController as vm"}},resolve:{zendeskAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intZendeskAccount@get",{fields:"createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1301})}]},authenticate:!0,permissionId:1301,bodyClass:"integrations"}).state("app.integrations.salesforceAccounts",{url:"/salesforceAccounts",views:{"content@app":{templateUrl:aC,controller:"SalesforceAccountsController as vm"}},resolve:{salesforceAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intSalesforceAccount@get",{fields:"createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SalesforceAccounts",fields:"createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1302})}]},authenticate:!0,permissionId:1302,bodyClass:"integrations"}).state("app.integrations.salesforceAccounts.edit",{url:"/:id?tab",params:{salesforceAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:oC,controller:"SalesforceAccountController as vm"}},resolve:{salesforceAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intSalesforceAccount@get",{fields:"createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description",sort:"-updatedAt",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",sort:"-updatedAt",userProfileId:t.getCurrentUser().userProfileId,sectionId:1302})}]},authenticate:!0,permissionId:1302,bodyClass:"integrations"}).state("app.integrations.freshdeskAccounts",{url:"/freshdeskAccounts",views:{"content@app":{templateUrl:rC,controller:"FreshdeskAccountsController as vm"}},resolve:{freshdeskAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intFreshdeskAccount@get",{fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"FreshdeskAccounts",fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1303})}]},authenticate:!0,permissionId:1303,bodyClass:"integrations"}).state("app.integrations.freshdeskAccounts.edit",{url:"/:id?tab",params:{freshdeskAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:iC,controller:"FreshdeskAccountController as vm"}},resolve:{freshdeskAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intFreshdeskAccount@get",{fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1303})}]},authenticate:!0,permissionId:1303,bodyClass:"integrations"}).state("app.integrations.sugarcrmAccounts",{url:"/sugarcrmAccounts",views:{"content@app":{templateUrl:sC,controller:"SugarcrmAccountsController as vm"}},resolve:{sugarcrmAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intSugarcrmAccount@get",{fields:"createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"SugarcrmAccounts",fields:"createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1305})}]},authenticate:!0,permissionId:1305,bodyClass:"integrations"}).state("app.integrations.sugarcrmAccounts.edit",{url:"/:id?tab",params:{sugarcrmAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:lC,controller:"SugarcrmAccountController as vm"}},resolve:{sugarcrmAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intSugarcrmAccount@get",{fields:"createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1305})}]},authenticate:!0,permissionId:1305,bodyClass:"integrations"}).state("app.integrations.deskAccounts",{url:"/deskAccounts",views:{"content@app":{templateUrl:cC,controller:"DeskAccountsController as vm"}},resolve:{deskAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intDeskAccount@get",{fields:"createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"DeskAccounts",fields:"createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1306})}]},authenticate:!0,permissionId:1306,bodyClass:"integrations"}).state("app.integrations.deskAccounts.edit",{url:"/:id?tab",params:{deskAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:uC,controller:"DeskAccountController as vm"}},resolve:{deskAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intDeskAccount@get",{fields:"createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1306})}]},authenticate:!0,permissionId:1306,bodyClass:"integrations"}).state("app.integrations.zohoAccounts",{url:"/zohoAccounts",views:{"content@app":{templateUrl:dC,controller:"ZohoAccountsController as vm"}},resolve:{zohoAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intZohoAccount@get",{fields:"createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ZohoAccounts",fields:"createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1307})}]},authenticate:!0,permissionId:1307,bodyClass:"integrations"}).state("app.integrations.zohoAccounts.edit",{url:"/:id?tab",params:{zohoAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:fC,controller:"ZohoAccountController as vm"}},resolve:{zohoAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intZohoAccount@get",{fields:"createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1307})}]},authenticate:!0,permissionId:1307,bodyClass:"integrations"}).state("app.integrations.vtigerAccounts",{url:"/vtigerAccounts",views:{"content@app":{templateUrl:mC,controller:"VtigerAccountsController as vm"}},resolve:{vtigerAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intVtigerAccount@get",{fields:"createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"VtigerAccounts",fields:"createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1308})}]},authenticate:!0,permissionId:1308,bodyClass:"integrations"}).state("app.integrations.vtigerAccounts.edit",{url:"/:id?tab",params:{vtigerAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:pC,controller:"VtigerAccountController as vm"}},resolve:{vtigerAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intVtigerAccount@get",{fields:"createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1308})}]},authenticate:!0,permissionId:1308,bodyClass:"integrations"}).state("app.integrations.dynamics365Accounts",{url:"/dynamics365Accounts",views:{"content@app":{templateUrl:gC,controller:"Dynamics365AccountsController as vm"}},resolve:{dynamics365Accounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intDynamics365Account@get",{fields:"createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Dynamics365Accounts",fields:"createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1309})}]},authenticate:!0,permissionId:1309,bodyClass:"integrations"}).state("app.integrations.dynamics365Accounts.edit",{url:"/:id?tab",params:{dynamics365Account:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:hC,controller:"Dynamics365AccountController as vm"}},resolve:{dynamics365Account:["apiResolver","$stateParams",function(e,t){return e.resolve("intDynamics365Account@get",{fields:"createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1309})}]},authenticate:!0,permissionId:1309,bodyClass:"integrations"}).state("app.integrations.servicenowAccounts",{url:"/servicenowAccounts",views:{"content@app":{templateUrl:_C,controller:"ServicenowAccountsController as vm"}},resolve:{servicenowAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intServicenowAccount@get",{fields:"createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ServicenowAccounts",fields:"createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1310})}]},authenticate:!0,permissionId:1310,bodyClass:"integrations"}).state("app.integrations.servicenowAccounts.edit",{url:"/:id?tab",params:{servicenowAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:bC,controller:"ServicenowAccountController as vm"}},resolve:{servicenowAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intServicenowAccount@get",{fields:"createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1310})}]},authenticate:!0,permissionId:1310,bodyClass:"integrations"}).state("app.integrations.freshsalesAccounts",{url:"/freshsalesAccounts",views:{"content@app":{templateUrl:yC,controller:"FreshsalesAccountsController as vm"}},resolve:{freshsalesAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("intFreshsalesAccount@get",{fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"FreshsalesAccounts",fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1304})}]},authenticate:!0,permissionId:1304,bodyClass:"integrations"}).state("app.integrations.freshsalesAccounts.edit",{url:"/:id?tab",params:{freshsalesAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:vC,controller:"FreshsalesAccountController as vm"}},resolve:{freshsalesAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("intFreshsalesAccount@get",{fields:"createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1304})}]},authenticate:!0,permissionId:1304,bodyClass:"integrations"}),t.addPart("app/main/apps/integrations")}ck.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.integrations",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter"]).config(ck).controller("CreateOrEditDeskAccountDialogController",SC).controller("DeskAccountsController",CC).controller("DeskAccountConfigurationsController",DC).controller("CreateOrEditDeskConfigurationDialogController",MC).controller("CreateOrEditDeskAccountItemDialogController",OC).controller("DeskAccountController",NC).controller("CreateOrEditDynamics365AccountDialogController",$C).controller("Dynamics365AccountsController",FC).controller("Dynamics365AccountConfigurationsController",BC).controller("CreateOrEditDynamics365ConfigurationDialogController",VC).controller("CreateOrEditDynamics365AccountItemDialogController",QC).controller("Dynamics365AccountController",KC).controller("CreateOrEditFreshdeskAccountDialogController",XC).controller("FreshdeskAccountConfigurationsController",nT).controller("CreateOrEditFreshdeskConfigurationDialogController",oT).controller("CreateOrEditFreshdeskAccountItemDialogController",iT).controller("FreshdeskAccountController",lT).controller("FreshdeskAccountsController",dT).controller("CreateOrEditFreshsalesAccountDialogController",mT).controller("FreshsalesAccountConfigurationsController",_T).controller("CreateOrEditFreshsalesConfigurationDialogController",yT).controller("CreateOrEditFreshsalesAccountItemDialogController",AT).controller("FreshsalesAccountController",wT).controller("FreshsalesAccountsController",TT).controller("CreateOrEditSalesforceAccountDialogController",kT).controller("SalesforceAccountConfigurationsController",PT).controller("CreateOrEditSalesforceConfigurationDialogController",RT).controller("CreateOrEditSalesforceAccountItemDialogController",LT).controller("SalesforceAccountController",UT).controller("SalesforceAccountsController",qT).controller("CreateOrEditServicenowAccountDialogController",HT).controller("ServicenowAccountConfigurationsController",WT).controller("CreateOrEditServicenowConfigurationDialogController",zT).controller("CreateOrEditServicenowAccountItemDialogController",JT).controller("ServicenowAccountController",ZT).controller("ServicenowAccountsController",nI).controller("CreateOrEditSugarcrmAccountDialogController",oI).controller("SugarcrmAccountConfigurationsController",lI).controller("CreateOrEditSugarcrmConfigurationDialogController",uI).controller("CreateOrEditSugarcrmAccountItemDialogController",fI).controller("SugarcrmAccountController",pI).controller("SugarcrmAccountsController",_I).controller("CreateOrEditVtigerAccountDialogController",yI).controller("VtigerAccountConfigurationsController",wI).controller("CreateOrEditVtigerConfigurationDialogController",CI).controller("CreateOrEditVtigerAccountItemDialogController",II).controller("VtigerAccountController",DI).controller("VtigerAccountsController",PI).controller("CreateOrEditZendeskAccountDialogController",RI).controller("CreateOrEditZendeskAccountItemDialogController",LI).controller("ZendeskAccountController",UI).controller("ZendeskAccountConfigurationsController",YI).controller("CreateOrEditZendeskConfigurationDialogController",BI).controller("ZendeskAccountsController",WI).controller("CreateOrEditZohoAccountDialogController",zI).controller("ZohoAccountConfigurationsController",ZI).controller("CreateOrEditZohoConfigurationDialogController",tk).controller("CreateOrEditZohoAccountItemDialogController",ak).controller("ZohoAccountController",rk).controller("ZohoAccountsController",lk);const uk=n.p+"templates/main/apps/settings/views/license/license.html/license.html",dk=n.p+"templates/main/apps/settings/views/license/update/dialog.html/dialog.html",fk=n.p+"templates/main/apps/settings/views/license/request/dialog.html/dialog.html";function mk(e,t,n,a,o,r){const i=this;i.license=a||{},i.agents=0,i.users=0,i.telephones=0,i.channels=[{name:"voice",icon:"icon-phone"},{name:"chat",icon:"icon-hangouts"},{name:"mail",icon:"icon-email"},{name:"messaging",icon:"icon-message-text"},{name:"fax",icon:"icon-deskphone"},{name:"openchannel",icon:"icon-google-earth"},{name:"whatsapp",icon:"icon-whatsapp"}],i.modules=[{name:"cm",icon:"icon-account-circle"},{name:"dialer",icon:"icon-crosshairs"},{name:"jscripty",icon:"icon-console"}],i.addons=[{name:"webrtc",icon:"icon-server-plus"},{name:"jaws",icon:"icon-fish"},{name:"custom",icon:"icon-table-edit"},{name:"screenrecording",icon:"icon-video"},{name:"ai",icon:"icon-text-to-speech"}],i.sessions=[{name:"callysquare",icon:"icon-sitemap",restart:!0,label:"channels",enabled:"voice"},{name:"virtual",icon:"icon-dots-horizontal",restart:!1,label:"sessions",enabled:"chat"}],i.others=[{name:"update",icon:"icon-cloud-download"}],r.user.get({fields:"id",role:"agent",online:!0}).$promise.then((function(e){return i.agents=e&&e.count?e.count:0,r.user.get({fields:"id",role:"user,admin"}).$promise})).then((function(e){return i.users=e&&e.count?e.count:0,r.user.get({fields:"id",role:"telephone"}).$promise})).then((function(e){i.telephones=e&&e.count?e.count:0})).catch((function(e){console.log(e)})),i.requestLicense=function(n){t.show({controller:"RequestLicenseDialogController",controllerAs:"vm",templateUrl:fk,parent:angular.element(e.body),targetEvent:n,clickOutsideToClose:!0,locals:{license:a,channels:i.channels,modules:i.modules,addons:i.addons,sessions:i.sessions,others:i.others}})},i.updateLicense=function(n){t.show({controller:"UpdateLicenseDialogController",controllerAs:"vm",templateUrl:dk,parent:angular.element(e.body),targetEvent:n,clickOutsideToClose:!0,locals:{license:a}})},i.gotoProcess=function(){n.go("app.settings.system",{tab:1})}}mk.$inject=["$document","$mdDialog","$state","license","toasty","api"];const pk=mk;function gk(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(){e.hide()}f.errors=[],f.user=c.getCurrentUser(),f.license=angular.copy(n),f.channels=a,f.modules=o,f.addons=r,f.sessions=i,f.others=s,f.license.name=f.user.fullname,f.license.email=f.user.email,f.sendRequest=function(){f.errors=[],f.table="||FIELD||OLD||NEW||\n";for(const e in f.license)void 0===f.license[e]||u().includes(["$promise","$resolved"],e)||(n[e]===f.license[e]?f.table+="|"+e+"|"+(void 0!==n[e]?n[e]:"")+"|"+f.license[e]+"|\n":f.table+="|"+e+"|{color:red}"+(void 0!==n[e]?n[e]:"")+"{color}|*"+f.license[e]+"*|\n");l.jira.save({key:"MOTLICENSE",summary:"Motion License Request",description:f.table,issuetype:"License Request"}).$promise.then((function(){t.success({title:"Request sent!",msg:d.instant("SETTINGS.LICENSE_REQUEST_SENT"),timeout:15e3}),m()})).catch((function(e){console.error(e),f.errors=[{message:d.instant("SETTINGS.JIRA_ERROR_MESSAGE"),type:"api.jira"}]}))},f.closeDialog=m}gk.$inject=["$mdDialog","toasty","license","channels","modules","addons","sessions","others","api","Auth","$translate"];const hk=gk;function _k(e,t,n,a){const o=this;o.errors=[],o.license=angular.copy(n),o.licenseKey,o.updateLicense=function(){return a.license.update({id:1,key:o.licenseKey}).$promise.then((function(e){e&&(e.demo?t.error({title:"License update failed!",msg:"Invalid license key"}):t.success({title:"License properly updated!",msg:"The license has been updated!"}))})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:UPDATElicense",msg:e.data?JSON.stringify(e.data):e.toString()})}))},o.closeDialog=function(){e.hide()}}_k.$inject=["$mdDialog","toasty","license","api"];const bk=_k;function yk(e){e.state("app.settings.license",{url:"/license",views:{"content@app":{templateUrl:uk,controller:"LicenseController as vm"}},authenticate:!0,permissionId:1400,bodyClass:"settings"})}yk.$inject=["$stateProvider"],angular.module("app.settings.license",[]).config(yk).controller("LicenseController",pk).controller("RequestLicenseDialogController",hk).controller("UpdateLicenseDialogController",bk);const vk=n.p+"templates/main/apps/settings/views/system/system.html/system.html";function Ak(e,t,n,a,o,r,i,s){const l=this;let c=null;l.system=o||{},l.processes=r?r.rows:[],l.processLimit=7,l.selectedTab=a.params.tab||0,l.getInfo=function(){return s.system.get().$promise.then((function(e){u().merge(l.system,e)})).catch(l.cancelInterval)},l.getProcesses=function(){return s.pm2.get().$promise.then((function(e){u().merge(l.processes,e?e.rows:[])})).catch(l.cancelInterval)},l.cancelInterval=function(){t.cancel(c),c=null},l.updateProcess=function(e,a,o){const r=n.confirm().title("Would you like to change the status of the process #"+a+"?").textContent("The status will be changed to: "+o.toUpperCase()).ariaLabel("Lucky day").targetEvent(e).ok("Ok").cancel("Cancel");n.show(r).then((function(){return s.pm2.update({id:a,status:o})})).then((function(){t(l.getProcesses,1e3,1)})).then((function(){i.success({title:"Process updated!",msg:"Status properly changed to: "+o})}))},l.searchTerm1={},l.searchTerm2={},c=t(l.getInfo,5e3),e.$on("$destroy",(function(){l.cancelInterval()}))}Ak.$inject=["$scope","$interval","$mdDialog","$state","system","processes","toasty","api"];const Sk=Ak;function wk(e){e.state("app.settings.system",{url:"/system?tab",views:{"content@app":{templateUrl:vk,controller:"SystemController as vm"}},resolve:{system:["apiResolver",function(e){return e.resolve("system@get")}],processes:["apiResolver",function(e){return e.resolve("pm2@get")}]},authenticate:!0,permissionId:1400,bodyClass:"settings"})}wk.$inject=["$stateProvider"],angular.module("app.settings.system",[]).config(wk).controller("SystemController",Sk);const Ek=n.p+"templates/main/apps/settings/views/updates/updates.html/updates.html";function Ck(e,t,n,a,o){const r=this;r.title="SETTINGS.UPDATE",r.progress=0,r.updating=!0,r.output="Waiting...",r.success=!0,r.interval=t((function(){r.progress<90&&(r.progress+=1)}),1e3),o.version.fetch().$promise.then((function(e){return r.output=e.output+"...",o.version.reset().$promise})).then((function(e){return r.output=e.output+"...",o.version.pull().$promise})).then((function(e){return r.output=e.output+"...",o.version.migrations().$promise})).then((function(e){return r.output=e.output+"...",o.version.restart().$promise})).then((function(){r.output="Waiting to restart motion...",a((function(){r.stopInterval()}),3e4)})).catch((function(e){r.success=!1,r.stopInterval(),r.output=JSON.stringify(e)})),r.closeDialog=function(){e.hide()},r.reload=function(){n.location.reload()},r.stopInterval=function(){angular.isDefined(r.interval)&&(t.cancel(r.interval),r.interval=void 0),r.progress=100,r.updating=!1}}Ck.$inject=["$mdDialog","$interval","$window","$timeout","api"];const Tk=Ck,Ik=n.p+"templates/main/apps/settings/views/updates/update/dialog.html/dialog.html";function kk(e,t,n,a){this.version=a||{},this.updateConfirm=function(t){const a=e.confirm().title("Would you like to update your system?").htmlContent('The system request time for the update should be below 1 minute.<br><br>Do you agree the terms of this <a href="http://www.xcally.com/support/eula-xcally-license-en.pdf" target="_blank">End User License Agreement<a>?').ariaLabel("").targetEvent(t).clickOutsideToClose(!0).parent(angular.element(n.body)).ok("I agree").cancel("Disagree");e.show(a).then((function(){e.show({controller:"UpdateDialogController",controllerAs:"vm",templateUrl:Ik,parent:angular.element(n.body),targetEvent:t,clickOutsideToClose:!1})}))}}kk.$inject=["$mdDialog","$interval","$document","version"];const Dk=kk;function xk(e){e.state("app.settings.updates",{url:"/updates",views:{"content@app":{templateUrl:Ek,controller:"UpdatesController as vm"}},resolve:{version:["apiResolver",function(e){return e.resolve("version@get",{latest:!0})}],userProfile:["apiResolver","Auth",function(e,t){return e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1400})}]},authenticate:!0,permissionId:1400,bodyClass:"settings"})}xk.$inject=["$stateProvider"],angular.module("app.settings.updates",[]).config(xk).controller("UpdateDialogController",Tk).controller("UpdatesController",Dk);const Mk=n.p+"templates/main/apps/settings/views/generals/generals.html/generals.html",Pk=n.p+"templates/main/apps/settings/views/smtps/smtps.html/smtps.html",Ok=n.p+"templates/main/apps/settings/views/networks/networks.html/networks.html",Rk=n.p+"templates/main/apps/settings/views/customizations/customizations.html/customizations.html",Nk=n.p+"templates/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders.html",Lk=n.p+"templates/main/apps/settings/views/cloudProviders/create/dialog.html/dialog.html";function $k(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g){const h=this;h.baseUrl=c.baseUrl,h.license=p,h.setting=g,h.currentUser=m.getCurrentUser(),h.cloudProviders=l||{count:0,rows:[]},h.table="cloudProviders",h.listOrder="",h.listOrderAsc=null,h.selectedAiTools=[],h.query={fields:"createdAt,updatedAt,id,name,service,data2,data1",sort:"-updatedAt",limit:10,page:1},h.arrayservice=u().keyBy([{option:"AmazonAWS",value:"'AmazonAWS'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),h.editdialog=function(e,t){o.show({controller:"CreateOrEditCloudProviderDialogController",controllerAs:"vm",templateUrl:Lk,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{cloudProvider:e,cloudProviders:h.cloudProviders.rows,license:h.license,setting:null,crudPermissions:h.crudPermissions}})},h.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("cloudProvider")+"?").htmlContent("<b>"+(e.name||"cloudProvider")+"</b> will be deleted.").ariaLabel("delete cloudProvider").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){v(e)}),(function(){console.log("CANCEL")}))},h.success=y,h.getAiTools=function(){h.query.offset=(h.query.page-1)*h.query.limit,m.hasRole("admin")?h.promise=c.cloudProvider.get(h.query,y).$promise:(h.query.id=h.userProfile.id,h.query.section="AiTools",h.promise=c.userProfile.getResources(h.query,y).$promise)},h.createOrEditCloudProvider=function(e,t){o.show({controller:"CreateOrEditCloudProviderDialogController",controllerAs:"vm",templateUrl:Lk,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{cloudProvider:t,cloudProviders:h.cloudProviders.rows,license:h.license,setting:h.setting,crudPermissions:h.crudPermissions}})},h.deleteCloudProvider=v,h.exportSelectedAiTools=function(){const e=angular.copy(h.selectedAiTools);return h.selectedAiTools=[],e},h.deleteSelectedAiTools=function(e){const t=o.confirm().title("Are you sure want to delete the selected cloudProviders?").htmlContent("<b>"+h.selectedAiTools.length+" selected</b> will be deleted.").ariaLabel("delete CloudProviders").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){h.selectedAiTools.forEach((function(e){v(e)})),h.selectedAiTools=[]}))},h.deselectAiTools=function(){h.selectedAiTools=[]},h.selectAllAiTools=function(){h.selectedAiTools=h.cloudProviders.rows};let _=!0,b=1;function y(e){h.cloudProviders=e||{count:0,rows:[]}}function v(e){c.cloudProvider.delete({id:e.id}).$promise.then((function(){u().remove(h.cloudProviders.rows,{id:e.id}),h.cloudProviders.count-=1,h.cloudProviders.rows.length||h.getAiTools(),f.success({title:u().startCase("CloudProvider")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEcloudProvider"}];for(let t=0;t<e.data.errors.length;t++)f.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEcloudProvider",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){_?i((function(){_=!1})):(t||(b=h.query.page),e!==t&&(h.query.page=1),e||(h.query.page=b),h.getAiTools())}))}$k.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","cloudProviders","api","msUtils","toasty","Auth","license","setting"];const Uk=$k;function jk(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(e){a.hide(e)}p.currentUser=d.getCurrentUser(),p.errors=[],p.setting=m,p.license=f,p.hasModulePermissions={},p.passwordPattern=p.setting&&p.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",p.title="SETTINGS.EDIT_CLOUDPROVIDER",p.cloudProvider=angular.copy(l),p.cloudProviders=s,p.newCloudProvider=!1,p.cloudProvider||(p.cloudProvider={},p.title="SETTINGS.NEW_CLOUDPROVIDER",p.newCloudProvider=!0),p.addNewCloudProvider=function(){p.errors=[],c.cloudProvider.save(p.cloudProvider).$promise.then((function(e){p.cloudProviders.unshift(e.toJSON()),i.success({title:"CloudProvider properly created",msg:p.cloudProvider.name?p.cloudProvider.name+" has been created!":""}),g(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.cloudProvider.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cloudProvider.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.saveCloudProvider=function(){p.errors=[],c.cloudProvider.update({id:p.cloudProvider.id},p.cloudProvider).$promise.then((function(e){const t=u().find(p.cloudProviders,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"CloudProvider properly saved!",msg:p.cloudProvider.name?p.cloudProvider.name+" has been saved!":""}),g(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.cloudProvider.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cloudProvider.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.deleteCloudProvider=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The cloudProvider will be deleted.").ariaLabel("Delete CloudProvider").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cloudProvider.delete({id:p.cloudProvider.id}).$promise.then((function(){u().remove(p.cloudProviders,{id:p.cloudProvider.id}),i.success({title:"CloudProvider properly deleted!",msg:(p.cloudProvider.name||"cloudProvider")+" has been deleted!"}),g(p.cloudProvider)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.cloudProvider.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cloudProvider.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},p.getDateFromString=function(e){return null===e?void 0:new Date(e)},p.closeDialog=g}jk.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","cloudProviders","cloudProvider","api","Auth","license","setting"];const Fk=jk;function qk(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="SETTINGS.EDIT_CUSTOMIZATION",g.customization=angular.copy(l),g.customizations=s,g.newCustomization=!1,g.customization||(g.customization={},g.title="SETTINGS.NEW_CUSTOMIZATION",g.newCustomization=!0),g.addNewCustomization=function(){g.errors=[],c.setting.save(g.customization).$promise.then((function(e){g.customizations.unshift(e.toJSON()),i.success({title:"Customization properly created",msg:g.customization.name?g.customization.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.setting.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.setting.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveCustomization=function(){g.errors=[],c.setting.update({id:g.customization.id},g.customization).$promise.then((function(e){const t=u().find(g.customizations,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Customization properly saved!",msg:g.customization.name?g.customization.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.setting.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.setting.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteCustomization=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The customization will be deleted.").ariaLabel("Delete Customization").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.setting.delete({id:g.customization.id}).$promise.then((function(){u().remove(g.customizations,{id:g.customization.id}),i.success({title:"Customization properly deleted!",msg:(g.customization.name||"customization")+" has been deleted!"}),h(g.customization)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.setting.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.setting.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}qk.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","customizations","customization","api","Auth","license","setting","crudPermissions"];const Yk=qk;function Hk(e,t,n,a,o){const r=this;r.currentUser=o.getCurrentUser(),r.license=a,r.customizations=e,r.customization={},r.customizations&&r.customizations.rows&&r.customizations.rows.length&&(r.customization=r.customizations.rows[0]),r.saveCustomization=function(){r.customization.id?t.setting.update({id:r.customization.id},r.customization).$promise.then((function(){n.success({title:"Customization updated!",msg:r.customization.name?r.customization.name+" has been updated!":""})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsetting",msg:e.data?JSON.stringify(e.data):e.toString()})})):t.setting.save(r.customization).$promise.then((function(e){u().merge(r.customization,e),n.success({title:"Customization updated!",msg:r.customization.name?r.customization.name+" has been updated!":""})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsetting",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}Hk.$inject=["customizations","api","toasty","license","Auth"];const Bk=Hk;function Gk(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.customization={},a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg","ico"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.customization.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.customization.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e){a.customization=angular.copy(e),a.ngFlowOptions.target=`${a.baseUrl}api/settings/1/favicon`.replace(":id",a.customization.id),a.customization.images=[]}}Gk.$inject=["$cookies","toasty","api"];const Vk=Gk;function Wk(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.customization={},a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.customization.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.customization.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e){a.customization=angular.copy(e),a.ngFlowOptions.target=`${a.baseUrl}api/settings/1/logo`.replace(":id",a.customization.id),a.customization.images=[]}}Wk.$inject=["$cookies","toasty","api"];const Qk=Wk;function zk(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.customization={},a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.customization.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.customization.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e){a.customization=angular.copy(e),a.ngFlowOptions.target=`${a.baseUrl}api/settings/1/logo_login`.replace(":id",a.customization.id),a.customization.images=[]}}zk.$inject=["$cookies","toasty","api"];const Kk=zk;function Jk(e,t,n){const a=this,o=8388608;a.baseUrl=n.baseUrl,a.customization={},a.ngFlowOptions={singleFile:!0,maxChunkRetries:1,chunkSize:o,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0},a.ngFlow={flow:{}},a.dropping=!1,a.fileAdded=function(e){const n=["png","jpg"];if(!u().includes(n,e.getExtension()))return t.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+n.join()}),!1;if(e.size>o)return t.error({title:"File too big",msg:"The max allowed size is 8MB"}),!1;const r={id:e.uniqueIdentifier,file:e,type:"uploading"};return a.customization.images.unshift(r),!0},a.upload=function(){a.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},a.ngFlow.flow.upload()},a.fileSuccess=function(e){angular.forEach(a.customization.images,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result},t.type="image"}}))},a.init=function(e){a.customization=angular.copy(e),a.ngFlowOptions.target=`${a.baseUrl}api/settings/1/preferred`.replace(":id",a.customization.id),a.customization.images=[]}}Jk.$inject=["$cookies","toasty","api"];const Xk=Jk;function Zk(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="SETTINGS.EDIT_GENERAL",g.general=angular.copy(l),g.generals=s,g.newGeneral=!1,g.general||(g.general={min_internal:1e3,chatTimeout:30,phoneBarAutoUpdater:!0,phoneBarAutoUpdaterUrl:"https://www.xcally.com/bar/phonebar/autoupdater.xml",splitSizeCsv:5e3,splitSizePdf:1e3,splitSizeXlsx:5e3,messagesAlignment:"alternate",phoneBarRememberMeEnabled:!0,allowedLoginAttempts:5,blockDuration:10,loginMailFrequency:10,enforcePasswordHistory:!0,passwordHistoryLimit:3},g.title="SETTINGS.NEW_GENERAL",g.newGeneral=!0),g.addNewGeneral=function(){g.errors=[],c.setting.save(g.general).$promise.then((function(e){g.generals.unshift(e.toJSON()),i.success({title:"General properly created",msg:g.general.name?g.general.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.setting.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.setting.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveGeneral=function(){g.errors=[],c.setting.update({id:g.general.id},g.general).$promise.then((function(e){const t=u().find(g.generals,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"General properly saved!",msg:g.general.name?g.general.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.setting.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.setting.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteGeneral=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The general will be deleted.").ariaLabel("Delete General").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.setting.delete({id:g.general.id}).$promise.then((function(){u().remove(g.generals,{id:g.general.id}),i.success({title:"General properly deleted!",msg:(g.general.name||"general")+" has been deleted!"}),h(g.general)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.setting.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.setting.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,c.cloudProvider.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){g.cloudProviders=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CLOUDPROVIDERS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Zk.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","generals","general","api","Auth","license","setting","crudPermissions"];const eD=Zk;function tD(e,t,n,a,o){const r=this;r.currentUser=o.getCurrentUser(),r.license=a,r.generals=e,r.general={},r.generals&&r.generals.rows&&r.generals.rows.length&&(r.general=r.generals.rows[0]),u().isNil(r.general.privacyPolicyEmail)||(r.general.enablePrivacyPolicyEmail=!0),u().isNil(r.general.privacyPolicyName)||(r.general.enablePrivacyPolicyName=!0),u().isNil(r.general.privacyPolicyNumber)||(r.general.enablePrivacyPolicyNumber=!0),t.cloudProvider.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){r.cloudProviders=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_CLOUDPROVIDERS",msg:e.data?JSON.stringify(e.data):e.toString()})})),r.saveGeneral=function(){(function(){r.general.enablePrivacyPolicyEmail||(r.general.privacyPolicyEmail=null);r.general.enablePrivacyPolicyNumber||(r.general.privacyPolicyNumber=null);r.general.enablePrivacyPolicyName||(r.general.privacyPolicyName=null)})(),r.general.id?t.setting.update({id:r.general.id},r.general).$promise.then((function(){n.success({title:"General updated!",msg:r.general.name?r.general.name+" has been updated!":""})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsetting",msg:e.data?JSON.stringify(e.data):e.toString()})})):t.setting.save(r.general).$promise.then((function(e){u().merge(r.general,e),n.success({title:"General updated!",msg:r.general.name?r.general.name+" has been updated!":""})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETsetting",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.onPrivacyPolicyChange=function(e){switch(e){case"email":r.general.enablePrivacyPolicyEmail&&!r.general.privacyPolicyEmail&&(r.general.privacyPolicyEmail=0);break;case"name":r.general.enablePrivacyPolicyName&&!r.general.privacyPolicyName&&(r.general.privacyPolicyName=0);break;case"number":r.general.enablePrivacyPolicyNumber&&!r.general.privacyPolicyNumber&&(r.general.privacyPolicyNumber=0)}}}tD.$inject=["generals","api","toasty","license","Auth"];const nD=tD;function aD(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;function g(e){a.hide(e)}p.currentUser=d.getCurrentUser(),p.errors=[],p.setting=m,p.license=f,p.hasModulePermissions={},p.passwordPattern=p.setting&&p.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",p.title="SETTINGS.EDIT_NETWORK",p.network=angular.copy(l),p.networks=s,p.newNetwork=!1,p.network||(p.network={type:"localnet"},p.title="SETTINGS.NEW_NETWORK",p.newNetwork=!0),p.addNewNetwork=function(){p.errors=[],c.network.save(p.network).$promise.then((function(e){p.networks.unshift(e.toJSON()),i.success({title:"Network properly created",msg:p.network.name?p.network.name+" has been created!":""}),g(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.network.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.network.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.saveNetwork=function(){p.errors=[],c.network.update({id:p.network.id},p.network).$promise.then((function(e){const t=u().find(p.networks,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Network properly saved!",msg:p.network.name?p.network.name+" has been saved!":""}),g(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.network.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.network.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},p.deleteNetwork=function(e){p.errors=[];const t=a.confirm().title("Are you sure?").content("The network will be deleted.").ariaLabel("Delete Network").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.network.delete({id:p.network.id}).$promise.then((function(){u().remove(p.networks,{id:p.network.id}),i.success({title:"Network properly deleted!",msg:(p.network.name||"network")+" has been deleted!"}),g(p.network)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){p.errors=e.data.errors||[{message:e.toString(),type:"api.network.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.network.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},p.getDateFromString=function(e){return null===e?void 0:new Date(e)},p.closeDialog=g}aD.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","networks","network","api","Auth","license","setting"];const oD=aD,rD=n.p+"templates/main/apps/settings/views/networks/create/dialog.html/dialog.html";function iD(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g){const h=this;h.baseUrl=c.baseUrl,h.license=p,h.setting=g,h.currentUser=m.getCurrentUser(),h.networks=l||{count:0,rows:[]},h.table="networks",h.listOrder="",h.listOrderAsc=null,h.selectedNetworks=[],h.query={fields:"createdAt,updatedAt,id,type,value,username,password",sort:"-updatedAt",limit:10,page:1},h.arraytype=u().keyBy([{option:"LocalNET",value:"'localnet'"},{option:"ExternIP",value:"'externip'"},{option:"Turn",value:"'turn'"},{option:"Stun",value:"'stun'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),h.editdialog=function(e,t){o.show({controller:"CreateOrEditNetworkDialogController",controllerAs:"vm",templateUrl:rD,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{network:e,networks:h.networks.rows,license:h.license,setting:null,crudPermissions:h.crudPermissions}})},h.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("network")+"?").htmlContent("<b>"+(e.name||"network")+"</b> will be deleted.").ariaLabel("delete network").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){v(e)}),(function(){console.log("CANCEL")}))},h.success=y,h.getNetworks=function(){h.query.offset=(h.query.page-1)*h.query.limit,m.hasRole("admin")?h.promise=c.network.get(h.query,y).$promise:(h.query.id=h.userProfile.id,h.query.section="Networks",h.promise=c.userProfile.getResources(h.query,y).$promise)},h.createOrEditNetwork=function(e,t){o.show({controller:"CreateOrEditNetworkDialogController",controllerAs:"vm",templateUrl:rD,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{network:t,networks:h.networks.rows,license:h.license,setting:h.setting,crudPermissions:h.crudPermissions}})},h.deleteNetwork=v,h.exportSelectedNetworks=function(){const e=angular.copy(h.selectedNetworks);return h.selectedNetworks=[],e},h.deleteSelectedNetworks=function(e){const t=o.confirm().title("Are you sure want to delete the selected networks?").htmlContent("<b>"+h.selectedNetworks.length+" selected</b> will be deleted.").ariaLabel("delete Networks").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){h.selectedNetworks.forEach((function(e){v(e)})),h.selectedNetworks=[]}))},h.deselectNetworks=function(){h.selectedNetworks=[]},h.selectAllNetworks=function(){h.selectedNetworks=h.networks.rows};let _=!0,b=1;function y(e){h.networks=e||{count:0,rows:[]}}function v(e){c.network.delete({id:e.id}).$promise.then((function(){u().remove(h.networks.rows,{id:e.id}),h.networks.count-=1,h.networks.rows.length||h.getNetworks(),f.success({title:u().startCase("Network")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEnetwork"}];for(let t=0;t<e.data.errors.length;t++)f.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else f.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEnetwork",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){_?i((function(){_=!1})):(t||(b=h.query.page),e!==t&&(h.query.page=1),e||(h.query.page=b),h.getNetworks())}))}iD.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","networks","api","msUtils","toasty","Auth","license","setting"];const sD=iD;function lD(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="SETTINGS.EDIT_SMTP",g.smtp=angular.copy(l),g.smtps=s,g.newSmtp=!1,g.smtp||(g.smtp={service:!0},g.title="SETTINGS.NEW_SMTP",g.newSmtp=!0),g.addNewSmtp=function(){g.errors=[],c.mailAccount.save(g.smtp).$promise.then((function(e){g.smtps.unshift(e.toJSON()),i.success({title:"Smtp properly created",msg:g.smtp.name?g.smtp.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveSmtp=function(){g.errors=[],c.mailAccount.update({id:g.smtp.id},g.smtp).$promise.then((function(e){const t=u().find(g.smtps,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Smtp properly saved!",msg:g.smtp.name?g.smtp.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteSmtp=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The smtp will be deleted.").ariaLabel("Delete Smtp").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.mailAccount.delete({id:g.smtp.id}).$promise.then((function(){u().remove(g.smtps,{id:g.smtp.id}),i.success({title:"Smtp properly deleted!",msg:(g.smtp.name||"smtp")+" has been deleted!"}),h(g.smtp)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.mailAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.mailAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}lD.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","smtps","smtp","api","Auth","license","setting","crudPermissions"];const cD=lD;function uD(e,t,n,a,o){const r=this;r.currentUser=o.getCurrentUser(),r.license=a,r.smtps=e,r.smtp={},r.smtps&&r.smtps.rows&&r.smtps.rows.length?r.smtp=r.smtps.rows[0]:r.smtp={service:!0,Smtp:{service:null}},r.saveSmtp=function(){r.smtp.id?t.mailAccount.update({id:r.smtp.id},r.smtp).$promise.then((function(){n.success({title:"Smtp updated!",msg:r.smtp.name?r.smtp.name+" has been updated!":""})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailAccount",msg:e.data?JSON.stringify(e.data):e.toString()})})):t.mailAccount.save(r.smtp).$promise.then((function(e){u().merge(r.smtp,e),n.success({title:"Smtp updated!",msg:r.smtp.name?r.smtp.name+" has been updated!":""})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmailAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))},r.verifySmtp=function(){r.smtp.id&&t.mailAccount.verifySmtp({id:r.smtp.id}).$promise.then((function(){n.success({title:"Smtp verified!",msg:r.smtp.name?r.smtp.name+" has been verified!":""})})).catch((function(e){n.error({title:"Smtp not verified! Remember to save before to verify!",msg:e.data?JSON.stringify(e.data):e.toString(),timeout:1e4})}))}}uD.$inject=["smtps","api","toasty","license","Auth"];const dD=uD;function fD(e,t){e.state("app.settings",{abstract:!0,url:"/settings"}).state("app.settings.generals",{url:"/generals",views:{"content@app":{templateUrl:Mk,controller:"GeneralsController as vm"}},resolve:{generals:["apiResolver",function(e){return e.resolve("setting@get",{fields:"createdAt,updatedAt,id,min_internal,securePassword,callRecordingEncryption,chatTimeout,phoneBarAutoUpdater,defaultScreenRecordingPath,phoneBarAutoUpdaterUrl,enableEmailPreview,split,splitSizeCsv,splitSizePdf,splitSizeXlsx,searchOnEnterKey,messagesAlignment,phoneBarRememberMeEnabled,rtlSupport,allowedLoginAttempts,blockDuration,loginMailFrequency,language,bucket,transcribe,transcribeRegion,transcribeAccountId,sentiment,sentimentRegion,sentimentAccountId,googleSsoEnabled,enforcePasswordHistory,passwordHistoryLimit,enablePrivacyPolicyEmail,privacyPolicyEmail,enablePrivacyPolicyName,privacyPolicyName,enablePrivacyPolicyNumber,privacyPolicyNumber,chatInteractionsReloadTimeout,mailInteractionsReloadTimeout,openchannelInteractionsReloadTimeout,smsInteractionsReloadTimeout,whatsappInteractionsReloadTimeout",limit:10,offset:0})}]},authenticate:!0,permissionId:1400,bodyClass:"settings"}).state("app.settings.smtps",{url:"/smtps",views:{"content@app":{templateUrl:Pk,controller:"SmtpController as vm"}},resolve:{smtps:["apiResolver",function(e){return e.resolve("mailAccount@get",{fields:"createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description",service:"1",limit:10,offset:0})}]},authenticate:!0,permissionId:1400,bodyClass:"settings"}).state("app.settings.networks",{url:"/networks",views:{"content@app":{templateUrl:Ok,controller:"NetworksController as vm"}},resolve:{networks:["apiResolver",function(e){return e.resolve("network@get",{fields:"createdAt,updatedAt,id,type,value,username,password",sort:"-updatedAt",limit:10,offset:0})}]},authenticate:!0,permissionId:1400,bodyClass:"settings"}).state("app.settings.customizations",{url:"/customizations",views:{"content@app":{templateUrl:Rk,controller:"CustomizationsController as vm"}},resolve:{customizations:["apiResolver",function(e){return e.resolve("setting@get",{fields:"createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred",limit:10,offset:0})}]},authenticate:!0,permissionId:1400,bodyClass:"settings"}).state("app.settings.cloudProviders",{url:"/cloudProviders",views:{"content@app":{templateUrl:Nk,controller:"CloudProvidersController as vm"}},resolve:{cloudProviders:["apiResolver",function(e){return e.resolve("cloudProvider@get",{fields:"createdAt,updatedAt,id,name,service,data2,data1",sort:"-updatedAt",limit:10,offset:0})}]},authenticate:!0,permissionId:1400,bodyClass:"settings"}),t.addPart("app/main/apps/settings")}fD.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.settings",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.settings.updates","app.settings.license","app.settings.system"]).config(fD).controller("CloudProvidersController",Uk).controller("CreateOrEditCloudProviderDialogController",Fk).controller("CreateOrEditCustomizationDialogController",Yk).controller("CustomizationsController",Bk).controller("CustomizationfaviconController",Vk).controller("CustomizationlogoController",Qk).controller("CustomizationlogologinController",Kk).controller("CustomizationpreferredController",Xk).controller("CreateOrEditGeneralDialogController",eD).controller("GeneralsController",nD).controller("CreateOrEditNetworkDialogController",oD).controller("NetworksController",sD).controller("CreateOrEditSmtpDialogController",cD).controller("SmtpController",dD);const mD=n.p+"templates/main/apps/motiondialer/views/realtime/realtime.html/realtime.html",pD=n.p+"templates/main/apps/motiondialer/views/realtime/agents/view.html/view.html",gD=n.p+"templates/main/apps/motiondialer/views/realtime/queues/view.html/view.html",hD=n.p+"templates/main/apps/motiondialer/views/realtime/queue_calls/view.html/view.html",_D=n.p+"templates/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view.html",bD=n.p+"templates/main/apps/motiondialer/views/realtime/queue_params/view.html/view.html",yD=n.p+"templates/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view.html";function vD(e,t,n,a,r,i,s,l,c,d,f,m,p,g){const h=this;function _(){return[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Agent",key:"lastAssignedTo",type:"select",label:"DASHBOARDS.SELECT_AGENT",options:h.agents.rows,customOptions:[{value:"null",translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}],ngValue:"name"},{name:"Campaign",key:"queue",type:"multiselect",label:"DASHBOARDS.SELECT_CAMPAIGN",options:h.queues.rows,ngValue:"name"}]}function b(){var e,t;if(h.refresh=!1,0===h.queues.count)return y(null);if(h.query.queue=1===h.queues.count?h.queues.rows[0].name:h.query.queue,void 0===h.query.queue&&(h.query.queue=u().map(h.queues.rows,"name")),u().isEmpty(h.query.queue))return y(null);const n="number"==typeof(null===(e=h.query)||void 0===e?void 0:e.limit)?h.query.limit:0,a="number"==typeof(null===(t=h.query)||void 0===t?void 0:t.page)?h.query.page:1;h.query.offset=(a-1)*n,r.localStorage.setItem("motion2.realtime.abandoned.bull.abandonedCalls:"+h.currentUser.id,JSON.stringify({query:u().omit(h.query,"queue")})),h.promise=s.voiceQueueReport.getVoiceQueuesReport(h.query,y).$promise}function y(e){h.abandonedCalls=e||{count:0,rows:[]},h.refresh=!0}h.currentUser=d.getCurrentUser(),h.agents=p||[],h.dispositions=g.rows,h.abandonedCalls={count:0,rows:[]},h.showTooltip=!1,h.refresh=!0,h.userProfile=l,h.userProfileSection=c&&1==c.count?c.rows[0]:null,h.crudPermissions=d.parseCrudPermissions(h.userProfileSection?h.userProfileSection.crudPermissions:null),h.query={fields:"id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition",type:"outbound",queuecallerexitreason:"TIMEOUT,ABANDONED",sort:"-updatedAt",limit:10,page:1},h.getAbandonedCalls=b,h.refreshAbandonedCalls=function(){h.showTooltip=!1,b()},h.assignTo=function(e,t){e&&s.voiceQueueReport.update({id:e.id,lastAssignedTo:t?t.name:null,assigned:!!t}).$promise.catch((function(e){console.log(e)}))},h.dispose=function(e){n.show({controller:"DisposeAbandonedCallDialogController",controllerAs:"vm",templateUrl:Xa,parent:angular.element(a.body),targetEvent:e,locals:{dispositions:h.dispositions,call:e}}).then((function(t){if(t){const n={id:e.id,disposition:t.firstLevel||null,secondDisposition:t.secondLevel||null,thirdDisposition:t.thirdLevel||null};s.voiceQueueReport.update(n).$promise.catch((function(e){console.log(e)}))}}))},h.onSaveVoiceQueueReport=function(e){e&&h.queuesMap&&"outbound"===e.queue.type&&h.queuesMap[e.queue]&&(h.showTooltip=!0)},h.onUpdateVoiceQueueReport=function(e){if(e){const t=u().findIndex(h.abandonedCalls.rows,["id",e.id]);t>=0&&u().merge(h.abandonedCalls.rows[t],e)}},f.onWithoutApply("voiceQueueReport:save",h.onSaveVoiceQueueReport),f.on("voiceQueueReport:update",h.onUpdateVoiceQueueReport),function(){let e=r.localStorage.getItem("motion2.realtime.abandoned.bull.abandonedCalls:"+h.currentUser.id);if(e)e=JSON.parse(e),e&&e.query&&(h.query=u().merge(e.query,u().omit(h.query,["sort","limit","page"])),h.query=u().omit(h.query,"filter"));else{const e={$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()};h.query.createdAt=e}d.hasRole("admin")?s.user.getQueues({id:d.getCurrentUser().id,fields:"id,name",channel:"voice",type:"outbound",nolimit:!0}).$promise.then((function(e){h.queues=e||{count:0,rows:[]},h.queuesMap=u().mapValues(u().keyBy(h.queues.rows,"name"),"name")})).catch((function(e){console.error(e)})).finally((function(){h.quickFilters=_(),b()})):s.userProfile.getResources({id:h.currentUser.userProfileId,section:"QueueCampaigns",channel:"voice",type:"outbound",sort:"-updatedAt",nolimit:!0}).$promise.then((function(e){h.queues=e||{count:0,rows:[]},h.queuesMap=u().mapValues(u().keyBy(h.queues.rows,"name"),"name")})).catch((function(e){console.error(e)})).finally((function(){h.quickFilters=_(),b()}))}(),e.$on("$destroy",(function(){f.removeAllListeners("voiceQueueReport:save"),f.removeAllListeners("voiceQueueReport:update")}))}vD.$inject=["$scope","$timeout","$mdDialog","$document","$window","$translate","api","userProfile","userProfileSection","Auth","socket","toasty","agents","dispositions"];const AD=vD;function SD(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"voice",direction:"outbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}SD.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const wD=SD,ED=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog.html";function CD(e,t,n,a,o,r,i,s,l,c,d,f){const m=this,p=["name","active","limitCalls","message","originated","IntervalId","SquareProjectId","Trunk","TrunkId","ivrAnswerCallsDay","dialQueueProject","ivrTotalCallsDays","description"];function g(){u().forIn(m.campaigns,(function(e,t){m.rpcCampaigns[t]&&u().merge(e,u().pick(m.rpcCampaigns[t],p))}))}function h(e){m.count=e.count,m.campaigns=e?u().keyBy(e.rows?e.rows:[],"id"):{},g()}m.currentUser=f.getCurrentUser(),m.count=i.count,m.campaigns=i?u().keyBy(i.rows?i.rows:[],"id"):{},m.rpcCampaigns=r?u().keyBy(r.rows?r.rows:[],"id"):{},m.userProfile=c,m.userProfileSection=d&&1==d.count?d.rows[0]:null,m.crudPermissions=f.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.query={sort:"-updatedAt",limit:10,page:1},m.success=h,m.getCampaigns=function(){m.query.offset=(m.query.page-1)*m.query.limit,f.hasRole("admin")?m.promise=s.campaign.get(m.query,h).$promise:(m.query.id=m.userProfile.id,m.query.section="IvrCampaigns",m.promise=s.userProfile.getResources(m.query,h).$promise)},m.onSave=function(e){m.campaigns[e.id]&&(u().merge(m.campaigns[e.id],u().pick(e,p)),u().merge(m.rpcCampaigns[e.id],u().pick(e,p)))},m.$onInit=g,m.createOrEditIvrCampaign=function(e,t){n.show({controller:"CreateOrEditIvrCampaignDialogController",controllerAs:"vm",templateUrl:ED,parent:angular.element(a.body),targetEvent:e,clickOutsideToClose:!0,locals:{ivrCampaign:t,ivrCampaigns:u().values(m.campaigns),license:null,setting:null,crudPermissions:m.crudPermissions}})},l.onWithoutApply("campaign:save",m.onSave),m.interval=o((function(){}),999),e.$on("$destroy",(function(){l.removeAllListeners("campaign:save"),m.interval&&o.cancel(m.interval)}))}CD.$inject=["$scope","$timeout","$mdDialog","$document","$interval","rpcCampaigns","campaigns","api","socket","userProfile","userProfileSection","Auth"];const TD=CD;function ID(e,t,n,a,o,r,i,s,l,c,d,f,m){const p=this;p.currentUser=m.getCurrentUser(),p.queues=o?u().keyBy(o.rows?o.rows:[],"name"):{},p.rpcVoiceQueuesChannelsTmp=r?u().keyBy(r.rows?u().filter(r.rows,{type:"outbound"}):[],"uniqueid"):{},p.rpcVoiceQueuesChannels={},p.userProfile=d,p.userProfileSection=f&&1==f.count?f.rows[0]:null,p.crudPermissions=m.parseCrudPermissions(p.userProfileSection?p.userProfileSection.crudPermissions:null),p.queryChannels={limit:10,page:1},p.getAvailableAgents=function(){p.availableAgents=null,i.rpc.getAgents().$promise.then((function(e){const t=[],n=e?e.rows:[],o=u().filter(n,{online:!0,voicePause:!1,voiceStatus:"idle"});for(let e=0;e<o.length;e++){const n=u().find(a.rows,["id",o[e].id]);n&&t.push(n)}p.availableAgents=t})).catch((function(e){c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},p.getSize=function(e){return u().size(e)},p.$onInit=function(){u().forIn(p.rpcVoiceQueuesChannelsTmp,(function(e,t){u().find(p.queues,{name:e.name})&&(p.rpcVoiceQueuesChannels[t]=e)}))},p.onSave=function(e){"outbound"===e.type&&u().find(p.queues,{name:e.name})&&(p.rpcVoiceQueuesChannels[e.uniqueid]=e)},p.onRemove=function(e){p.rpcVoiceQueuesChannels[e.uniqueid]&&delete p.rpcVoiceQueuesChannels[e.uniqueid]},p.hangup=function(e){return i.rpc.getVoiceQueuesChannelHangup({uniqueid:e}).$promise.then((function(t){c.success({title:"Channel "+e+" properly hangup!",msg:t.message||""})})).catch((function(e){c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},p.redirectToAgent=function(e,t,n){return i.rpc.getVoiceQueuesChannelRedirect({uniqueid:e,exten:t,context:n}).$promise.then((function(t){c.success({title:"Channel "+e+" properly redirect!",msg:t.message||""})})).catch((function(e){c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},p.redirectToNumber=function(e,t){const a=n.prompt().title("Which number do you want transfer the call to?").placeholder("Number").targetEvent(e).ok("Ok").cancel("Cancel");return n.show(a).then((function(e){return i.rpc.getVoiceQueuesChannelRedirect({uniqueid:t,exten:e}).$promise})).then((function(e){c.success({title:"Channel "+t+" properly redirect!",msg:e.message||""})})).catch((function(e){e&&c.error({title:e.status+" - "+e.statusText,msg:JSON.stringify(e.data)||e.message.join(" ")})}))},s.on("voice_queue_channel:save",p.onSave),s.on("voice_queue_channel:remove",p.onRemove),e.$on("$destroy",(function(){s.removeAllListeners("voice_queue_channel:save"),s.removeAllListeners("voice_queue_channel:remove")}))}ID.$inject=["$scope","$timeout","$mdDialog","agents","queues","rpcVoiceQueuesChannels","api","socket","helperClasses","toasty","userProfile","userProfileSection","Auth"];const kD=ID;function DD(e,t,n,a,o,r,i,s,l,c){const d=this,f=["total","answered","sumHoldTime","sumDuration","sumBillable","outboundNoAnswerCallsDay","outboundBusyCallsDay","outboundCongestionCallsDay","outboundNoSuchCallsDay","outboundUnknownCallsDay","outboundDropCallsDayTimeout","outboundDropCallsDayCallersExit","outboundBlacklistCallsDay","outboundOriginateFailureCallsDay","outboundAnswerAgiCallsDay","outboundReCallsDay","outboundRejectCallsDay"];function m(){u().forIn(d.queues,(function(e,t){d.rpcQueues[t]&&u().merge(e,u().pick(d.rpcQueues[t],f))}))}function p(e){d.count=e.count,d.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},m()}d.count=a.count,d.queues=a?u().keyBy(a.rows?a.rows:[],"id"):{},d.rpcQueues=o?u().keyBy(o.rows?o.rows:[],"id"):{},d.userProfile=s,d.userProfileSection=l&&1==l.count?l.rows[0]:null,d.crudPermissions=c.parseCrudPermissions(d.userProfileSection?d.userProfileSection.crudPermissions:null),c.hasRole("admin")?d.query={type:"outbound",fields:"id,name",sort:"-updatedAt",limit:10,page:1}:d.query={id:c.getCurrentUser().id,channel:"voice",type:"outbound",fields:"id,name",sort:"-updatedAt",limit:10,page:1},d.success=p,d.getQueues=function(){d.query.offset=(d.query.page-1)*d.query.limit,c.hasRole("admin")?d.promise=r.voiceQueue.get(d.query,p).$promise:(d.query.id=d.userProfile.id,d.query.section="QueueCampaigns",d.promise=r.userProfile.getResources(d.query,p).$promise)},d.onSave=function(e){d.queues[e.id]&&u().merge(d.queues[e.id],u().pick(e,f))},d.$onInit=m,i.onWithoutApply("voice_queue:save",d.onSave),d.interval=n((function(){}),999),e.$on("$destroy",(function(){i.removeAllListeners("voice_queue:save"),d.interval&&n.cancel(d.interval)}))}DD.$inject=["$scope","$timeout","$interval","queues","rpcQueues","api","socket","userProfile","userProfileSection","Auth"];const xD=DD,MD=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog.html",PD=n.p+"templates/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog.html",OD=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd.html";function RD(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused","startPredictive","startProgressive","erlangCalls","erlangCallToSecond","erlangAbandonmentRate","erlangBusyFactor","dialPredictiveInterval","dialPredictiveIntervalMaxThreshold","dialPredictiveIntervalMinThreshold","predictiveIntervalAvailable","predictiveIntervalTotalCalls","predictiveIntervalAnsweredCalls","predictiveIntervalDroppedCallsTimeout","predictiveIntervalDroppedCallsCallersExit","predictiveIntervalAvgHoldtime","predictiveIntervalAvgTalktime"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.voiceQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].VoiceQueueId].paused++,g.queues[e[t].rows[n].VoiceQueueId].loggedInDb++,g.queues[e[t].rows[n].VoiceQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].VoiceQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"outbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"voice",type:"outbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.voiceQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="QueueCampaigns",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditMotionDialerQueue=function(e,t){n.show({controller:"CreateOrEditQueueCampaignDialogController",controllerAs:"vm",templateUrl:MD,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{queueCampaign:t,queueCampaigns:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.showPredictiveQueueCampaignInfo=function(e,t){n.show({controller:"PredictiveQueueCampaignDialogController",controllerAs:"vm",templateUrl:PD,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{queueCampaign:t}})},g.agentAdd=function(e,t){n.show({controller:"QueueCampaignagentaddController",controllerAs:"vm",templateUrl:OD,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{queueCampaign:t,queueCampaigns:g.queues?g.queues.rows:[],realtime:!0,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.voiceQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&(u().merge(g.queues[e.id],u().pick(e,h)),u().isNil(e.startPredictive)&&(g.queues[e.id].startPredictive=void 0))},g.onSaveMember=function(e){g.queues[e.MotionDialerQueueId]&&g.queues[e.MotionDialerQueueId].loggedInDb++},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.VoiceQueueId]&&(g.queues[e.VoiceQueueId].loggedInDb+=1,g.queues[e.VoiceQueueId].agents[e.UserId]=e.VoiceQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.VoiceQueueId]&&g.queues[e.VoiceQueueId].loggedInDb>0&&(g.queues[e.VoiceQueueId].loggedInDb-=1,delete g.queues[e.VoiceQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.onWithoutApply("voice_queue:save",g.onSave),g.interval=r((function(){}),999),c.on("userVoiceQueueRt:save",g.onSaveMember),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("voice_queue:save"),g.interval&&r.cancel(g.interval),c.removeAllListeners("userVoiceQueueRt:save"),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}RD.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const ND=RD;function LD(e,t,n){const a=this;a.queueCampaign=n,a.addMinutes=function(e,t){return o()(e).add("m",t).format("HH:mm:ss")},a.setFormatTime=function(e){return o()(e).format("HH:mm:ss")},a.closeDialog=function(){e.hide()}}LD.$inject=["$mdDialog","$interval","queueCampaign"];const $D=LD;const UD=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function jD(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.motiondialer.realtime.agents":a.selectedTab=0;break;case"app.motiondialer.realtime.queues":a.selectedTab=1;break;case"app.motiondialer.realtime.queue_calls":a.selectedTab=2;break;case"app.motiondialer.realtime.abandonedcalls":a.selectedTab=3;break;case"app.motiondialer.realtime.queue_params":a.selectedTab=4;break;case"app.motiondialer.realtime.ivr_campaigns":a.selectedTab=5;break;default:a.selectedTab=0,t.go("app.motiondialer.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.motiondialer.realtime.agents");break;case 1:t.go("app.motiondialer.realtime.queues");break;case 2:t.go("app.motiondialer.realtime.queue_calls");break;case 3:t.go("app.motiondialer.realtime.abandonedcalls");break;case 4:t.go("app.motiondialer.realtime.queue_params");break;case 5:t.go("app.motiondialer.realtime.ivr_campaigns");break;default:t.go("app.motiondialer.realtime.agents")}}))}jD.$inject=["$scope","$state","socket"];const FD=jD;function qD(e){e.state("app.motiondialer.realtime",{url:"/realtime",views:{"content@app":{templateUrl:mD,controller:"MotionDialerRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1510})}]},authenticate:!0,permissionId:1510}).state("app.motiondialer.realtime.agents",{url:"/agents",controller:"AgentsMotionDialerRealtimeController as vm",templateUrl:pD,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:1510}).state("app.motiondialer.realtime.queues",{url:"/queues",controller:"QueuesMotionDialerRealtimeController as vm",templateUrl:gD,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"outbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"QueueCampaigns",channel:"voice",type:"outbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1501})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueues")}]},authenticate:!0,permissionId:1510}).state("app.motiondialer.realtime.queue_calls",{url:"/queue_calls",controller:"QueueCallsMotionDialerRealtimeController as vm",templateUrl:hD,resolve:{agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,role,context",role:"agent",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,role,context",role:"agent",nolimit:!0})}],queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"outbound",sort:"-updatedAt",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"QueueCampaigns",channel:"voice",type:"outbound",sort:"-updatedAt",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1501})}],rpcVoiceQueuesChannels:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueuesChannels")}]},authenticate:!0,permissionId:1510}).state("app.motiondialer.realtime.abandonedcalls",{url:"/abandonedcalls",controller:"AbandonedCallsMotionDialerRealtimeController as vm",templateUrl:_D,resolve:{agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,role,context",role:"agent",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,role,context",role:"agent",nolimit:!0})}],queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"outbound",sort:"-updatedAt",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"QueueCampaigns",channel:"voice",type:"outbound",sort:"-updatedAt",nolimit:!0})}],dispositions:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("disposition@get",{fields:"createdAt,updatedAt,id,name,level,ParentId",sort:"name",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Dispositions",fields:"createdAt,updatedAt,id,name",sort:"name",MailAccountId:"null",FaxAccountId:"null",SmsAccountId:"null",WhatsappAccountId:"null",OpenchannelAccountId:"null",ChatWebsiteId:"null",ListId:"null",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1501})}]},authenticate:!0,permissionId:1510}).state("app.motiondialer.realtime.queue_params",{url:"/queue_params",controller:"QueueParamsMotionDialerRealtimeController as vm",templateUrl:bD,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{type:"outbound",fields:"id,name",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"QueueCampaigns",channel:"voice",type:"outbound",sort:"-updatedAt",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1501})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getVoiceQueues")}]},authenticate:!0,permissionId:1510}).state("app.motiondialer.realtime.ivr_campaigns",{url:"/ivr_campaigns",controller:"IvrCampaignsMotionDialerRealtimeController as vm",templateUrl:yD,resolve:{campaigns:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("campaign@get",{sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"IvrCampaigns",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1502})}],rpcCampaigns:["apiResolver",function(e){return e.resolve("rpc@getCampaigns")}]},authenticate:!0,permissionId:1510})}qD.$inject=["$stateProvider"],angular.module("app.motiondialer.realtime",[]).config(qD).controller("AbandonedCallsMotionDialerRealtimeController",AD).controller("AgentsMotionDialerRealtimeController",wD).controller("IvrCampaignsMotionDialerRealtimeController",TD).controller("QueueCallsMotionDialerRealtimeController",kD).controller("QueueParamsMotionDialerRealtimeController",xD).controller("QueuesMotionDialerRealtimeController",ND).controller("PredictiveQueueCampaignDialogController",$D).factory("helperClasses",UD).controller("MotionDialerRealtimeController",FD);const YD=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns.html",HD=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html",BD=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html/ivrCampaigns.html",GD=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view.html";function VD(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="MOTIONDIALER.EDIT_IVRCAMPAIGN",g.ivrCampaign=angular.copy(l),g.ivrCampaigns=s,g.newIvrCampaign=!1,g.ivrCampaign||(g.ivrCampaign={active:!0,type:"ivr",dialCheckDuplicateType:"always",dialCutDigit:0,limitCalls:30,dialRandomLastDigitCallerIdNumber:0,dialOriginateTimeout:30,dialGlobalMaxRetry:4,dialCongestionMaxRetry:3,dialCongestionRetryFrequency:150,dialBusyMaxRetry:3,dialBusyRetryFrequency:150,dialNoAnswerMaxRetry:3,dialNoAnswerRetryFrequency:150,dialNoSuchNumberMaxRetry:3,dialNoSuchNumberRetryFrequency:150,dialDropMaxRetry:3,dialDropRetryFrequency:150,dialAbandonedMaxRetry:3,dialAbandonedRetryFrequency:150,dialMachineMaxRetry:3,dialMachineRetryFrequency:150,dialAgentRejectMaxRetry:3,dialAgentRejectRetryFrequency:150,dialOrderByScheduledAt:"ASC",dialGlobalInterval:"07:00-22:00,*,*,*",dialAMDInitialSilence:2500,dialAMDGreeting:1500,dialAMDAfterGreetingSilence:800,dialAMDTotalAnalysisTime:5e3,dialAMDMinWordLength:100,dialAMDBetweenWordsSilence:50,dialAMDMaximumNumberOfWords:3,dialAMDSilenceThreshold:256,dialAMDMaximumWordLength:5e3},g.title="MOTIONDIALER.NEW_IVRCAMPAIGN",g.newIvrCampaign=!0),g.addNewIvrCampaign=function(){g.errors=[],c.campaign.save(g.ivrCampaign).$promise.then((function(e){g.ivrCampaigns.unshift(e.toJSON()),i.success({title:"IvrCampaign properly created",msg:g.ivrCampaign.name?g.ivrCampaign.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.campaign.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.campaign.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveIvrCampaign=function(){g.errors=[],c.campaign.update({id:g.ivrCampaign.id},g.ivrCampaign).$promise.then((function(e){const t=u().find(g.ivrCampaigns,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"IvrCampaign properly saved!",msg:g.ivrCampaign.name?g.ivrCampaign.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.campaign.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.campaign.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteIvrCampaign=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The ivrCampaign will be deleted.").ariaLabel("Delete IvrCampaign").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.campaign.delete({id:g.ivrCampaign.id}).$promise.then((function(){u().remove(g.ivrCampaigns,{id:g.ivrCampaign.id}),i.success({title:"IvrCampaign properly deleted!",msg:(g.ivrCampaign.name||"ivrCampaign")+" has been deleted!"}),h(g.ivrCampaign)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.campaign.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.campaign.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.trunk.get({fields:"id,name",sort:"name",table:"true"}).$promise.then((function(e){g.trunks=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.trunk.get({fields:"id,name",sort:"name",table:"true"}).$promise.then((function(e){g.trunks=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.trunks,{id:e.resourceId})}));g.trunks.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),g.trunks=t}))}else g.trunks=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.hasRole("admin")?c.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.projects=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.projects=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1103}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.projects,{id:e.resourceId})}));let n=null;if(g.ivrCampaign&&(n=u().find(g.projects,{id:Number(g.ivrCampaign.SquareProjectId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.projects,{id:n.id});e.canSelect=!1,t.push(e)}g.projects=t}))}else{const e=[];let t=null;g.ivrCampaign&&(t=u().find(g.projects,{id:Number(g.ivrCampaign.SquareProjectId)}));for(let n=0;n<g.projects.length;n++)t&&g.projects[n].id===t.id&&(g.projects[n].canSelect=!1,e.push(g.projects[n]));g.projects=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.hasRole("admin")?c.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){g.interval=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){g.interval=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.interval,{id:e.resourceId})}));let n=null;if(g.ivrCampaign&&(n=u().find(g.interval,{id:Number(g.ivrCampaign.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.interval,{id:n.id});e.canSelect=!1,t.push(e)}g.interval=t}))}else{const e=[];let t=null;g.ivrCampaign&&(t=u().find(g.interval,{id:Number(g.ivrCampaign.IntervalId)}));for(let n=0;n<g.interval.length;n++)t&&g.interval[n].id===t.id&&(g.interval[n].canSelect=!1,e.push(g.interval[n]));g.interval=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}))}VD.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","ivrCampaigns","ivrCampaign","api","Auth","license","setting","crudPermissions"];const WD=VD;function QD(e,t,n,a,o,r,i,s,l){const c=this;function d(){return t((function(e,n){return t((function(e,t){return a.cmList.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return c.items=e.rows?e.rows:[],s.hasRole("admin")?e:c.section?c.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:c.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return c.allowedItems=u().map(n,(function(e){return u().find(c.items,{id:s.hasRole("admin")||c.section.autoAssociation?e.id:e.resourceId})})),c.startingAllowedItems=angular.copy(c.allowedItems),c.items.forEach((function(e){const t=u().find(c.allowedItems,{id:e.id});"admin"===c.currentUser.role?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a[c.apiRoute][c.getApi]({id:c.ivrCampaign.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];c.selectedItems=u().map(n,(function(e){return u().find(c.items,{id:e.id})})),c.startingSelectedItems=angular.copy(c.selectedItems),c.dualMultiselectOptions.selectedItems=c.selectedItems,c.dualMultiselectOptions.items=u().differenceBy(c.allowedItems,c.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}c.currentUser=s.getCurrentUser(),c.ivrCampaign=o,c.crudPermissions=l,c.apiRoute="campaign",c.getApi="getBlackLists",c.addApi="addBlackLists",c.removeApi="removeBlackLists",c.items=[],c.allowedItems=[],c.selectedItems=[],c.startingAllowedItems=[],c.startingSelectedItems=[],c.pendingChanges=!1,c.loading=!1,c.dualMultiselectOptions={allowedItems:[],selectedItems:[],showSelectAndDeselectAll:!1,orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("MOTIONDIALER.ALL_LISTS"),labelSelected:r.instant("MOTIONDIALER.SELECTED_LISTS"),transferCallback:function(){const e=u().xorBy(c.startingSelectedItems,c.selectedItems,"id");c.pendingChanges=!u().isEmpty(e)}},c.onInit=function(){return s.hasRole("admin")?d().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:c.currentUser.userProfileId,name:"Lists"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return c.section=e,d()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},c.saveLists=function(){c.loading=!0;const e=u().differenceBy(c.startingSelectedItems,c.selectedItems,"id"),o=u().differenceBy(c.selectedItems,c.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a[c.apiRoute][c.removeApi]({id:c.ivrCampaign.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){if(u().isEmpty(e))t();else{a[c.apiRoute][c.addApi]({id:c.ivrCampaign.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}}))}(o)})).then((function(){c.pendingChanges=!1,c.startingAllowedItems=angular.copy(c.allowedItems),c.startingSelectedItems=angular.copy(c.selectedItems),n.success({title:"SUCCESS",msg:"Lists association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})})).finally((function(){c.loading=!1}));var r},c.closeDialog=function(){e.hide()}}QD.$inject=["$mdDialog","$q","toasty","api","ivrCampaign","$translate","$timeout","Auth","crudPermissions"];const zD=QD;function KD(e,t,n,a,o,r,i){const s=this;function l(t){e.hide(t)}s.newIvrCampaign=!0,s.ivrCampaign=angular.copy(o),s.ivrCampaigns=r,s.title=i.instant("MOTIONDIALER.CLONE_IVRCAMPAIGN"),o&&o.name&&(s.title+=": "+o.name),s.cloneIvrCampaign=function(){return a.campaign.clone({id:o.id},s.ivrCampaign).$promise.then((function(e){s.ivrCampaigns.unshift(e.toJSON()),n.success({title:"IvrCampaign properly cloned",msg:s.ivrCampaign.name?s.ivrCampaign.name+" has been cloned!":""}),t.go("app.motiondialer.ivrCampaigns.edit",{id:e.id}),l(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){s.errors=e.data.errors||[{message:e.toString(),type:"api.campaign.clone"}];for(let t=0;t<e.data.errors.length;t+=1)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.campaign.clone",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},s.closeDialog=l}KD.$inject=["$mdDialog","$state","toasty","api","ivrCampaign","ivrCampaigns","$translate"];const JD=KD;function XD(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.ivrCampaignHopperBlacks=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.campaign.getHopperBlacks(f.query,m).$promise}function g(e){c.hopperBlack.delete({id:e.id}).$promise.then((function(){u().remove(f.ivrCampaignHopperBlacks.rows,{id:e.id}),f.ivrCampaignHopperBlacks.count-=1,f.ivrCampaignHopperBlacks.rows.length||p(),l.success({title:"HopperBlack deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETcampaign"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcampaign",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.ivrCampaign={},f.ivrCampaignHopperBlacks={count:0,rows:[]},f.selectedIvrCampaignHopperBlacks=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,ContactId,phone",sort:"-id",limit:10,page:1},f.init=function(e,t){f.ivrCampaign=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.CampaignId=f.ivrCampaign.id,f.query.id=f.ivrCampaign.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the hopperBlack?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopperBlack #")+e.id||"hopperBlack")+"</b> will be deleted.").ariaLabel("delete hopperBlack").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getIvrCampaignHopperBlacks=p,f.exportSelectedIvrCampaignHopperBlacks=function(){const e=angular.copy(f.selectedIvrCampaignHopperBlacks);return f.selectedIvrCampaignHopperBlacks=[],e},f.deleteIvrCampaignHopperBlack=g,f.deleteSelectedIvrCampaignHopperBlacks=function(e){const t=i.confirm().title("Are you sure want to delete the selected hopperBlacks?").htmlContent("<b>"+f.selectedIvrCampaignHopperBlacks.length+" selected</b> will be deleted.").ariaLabel("delete hopperBlacks").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedIvrCampaignHopperBlacks.forEach((function(e){g(e)})),f.selectedIvrCampaignHopperBlacks=[]}))}}XD.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const ZD=XD;function ex(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.ivrCampaignHopperFinals=e||{count:0,rows:[]}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,m.promise=d.campaign.getHopperFinals(m.query,p).$promise}function h(e){d.hopperFinal.delete({id:e.id}).$promise.then((function(){u().remove(m.ivrCampaignHopperFinals.rows,{id:e.id}),m.ivrCampaignHopperFinals.count-=1,m.ivrCampaignHopperFinals.rows.length||g(),c.success({title:"HopperFinal deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETcampaign"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcampaign",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){d.cmHopperFinal.checkContactHopper(e).$promise.then((function(e){c.info({title:"The contact is in the hopper",msg:"Contact ID "+e.ContactId})})).catch((function(t){"Not Found"===t.data?d.cmHopper.save(function(e){const t={};return t.phone=e.calleridnum,t.scheduledat=o()().format("YYYY-MM-DD HH:mm:ss"),t.countbusyretry=0,t.countcongestionretry=0,t.countnoanswerretry=0,t.countglobal=0,t.ContactId=e.ContactId,t.ListId=e.ListId,t.UserId=e.deleted?null:e.UserId,t.VoiceQueueId=e.VoiceQueueId,t.CampaignId=e.CampaignId,t.priority=e.recallme?3:2,t.recallme=!!e.recallme,t}(e)).$promise.then((function(t){c.info({title:"Restored Contact",msg:"Contact ID "+t.ContactId}),t.ContactId&&d.cmHopperHistory.save(function(e){const t={};return t.calleridnum=e.calleridnum,t.calleridname=e.calleridname,t.scheduledat=o()().format("YYYY-MM-DD HH:mm:ss"),t.countbusyretry=e.countbusyretry,t.countcongestionretry=e.countcongestionretry,t.countnoanswerretry=e.countnoanswerretry,t.countglobal=e.countglobal,t.ContactId=e.ContactId,t.ListId=e.ListId,t.UserId=f.getCurrentUser().id,t.VoiceQueueId=e.VoiceQueueId,t.CampaignId=e.CampaignId,t.editedat=o()().format("YYYY-MM-DD HH:mm:ss"),t.edited=!0,t.state=25,t.statedesc="Restored",t.campaign=e.campaign,t.campaigntype=e.VoiceQueueId?"queue":"ivr",t}(e))})).catch((function(t){u().isNil(t.data)||"Validation error"!==t.data.message?c.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GETvoiceQueue",msg:t.data?JSON.stringify(t.data.message):t.message||t.toString()}):c.info({title:"The contact is in the hopper",msg:"Contact ID "+e.ContactId})})):c.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GETvoiceQueue",msg:t.data?JSON.stringify(t.data.message):t.message||t.toString()})}))}m.currentUser=f.getCurrentUser(),m.contacts={},m.ivrCampaign={},m.ivrCampaignHopperFinals={count:0,rows:[]},m.selectedIvrCampaignHopperFinals=[],m.crudPermissions,m.query={fields:"createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,countglobal,scheduledat,starttime,responsetime,endtime,disposition,ListId,UserId,VoiceQueueId,CampaignId,recallme,deleted,campaign",sort:"-id",limit:10,page:1},m.init=function(e,t){m.ivrCampaign=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.CampaignId=m.ivrCampaign.id,m.query.id=m.ivrCampaign.id,g()},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the hopperFinal?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopperFinal #")+e.id||"hopperFinal")+"</b> will be deleted.").ariaLabel("delete hopperFinal").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.success=p,m.getIvrCampaignHopperFinals=g,m.exportSelectedIvrCampaignHopperFinals=function(){const e=angular.copy(m.selectedIvrCampaignHopperFinals);return m.selectedIvrCampaignHopperFinals=[],e},m.deleteIvrCampaignHopperFinal=h,m.deleteSelectedIvrCampaignHopperFinals=function(e){const t=s.confirm().title("Are you sure want to delete the selected hopperFinals?").htmlContent("<b>"+m.selectedIvrCampaignHopperFinals.length+" selected</b> will be deleted.").ariaLabel("delete hopperFinals").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedIvrCampaignHopperFinals.forEach((function(e){h(e)})),m.selectedIvrCampaignHopperFinals=[]}))},m.moveIvrCampaignHopperFinal=_,m.moveContactsIvrCampaignHopperFinal=function(e){d.cmHopperFinal.moveContactsIvrCampaignHopperFinal({id:m.query.id,state:e}).$promise.then((function(e){u().isNil(e)&&u().isNil(e[0])?c.info({title:"Restored Contacts",msg:"0"}):c.info({title:"Restored Contacts",msg:JSON.stringify(e[0].affectedRows)})})).catch((function(e){c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))},m.countContactsIvrCampaignHopperFinal=function(e){d.cmHopperFinal.countContactsIvrCampaignHopperFinal({id:e}).$promise.then((function(e){u().merge(m.contacts,e[0])})).catch((function(e){c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcampaign",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))},m.moveConfirm=function(e,t){const n=s.confirm().title("Are you sure want to restore the contact?").htmlContent("<b>Contact</b> will be restored.").ariaLabel("Restore Contact").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){_(e)}),(function(){console.log("CANCEL")}))},m.moveSelectedIvrCampaignHopperFinals=function(e){const t=s.confirm().title("Are you sure want to restore the selected contacts?").htmlContent("<b> Contacts selected</b> will be restored.").ariaLabel("Restore Contacts").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedIvrCampaignHopperFinals.forEach((function(e){_(e)})),m.selectedIvrCampaignHopperFinals=[]}))}}ex.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const tx=ex;function nx(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.ivrCampaignHopperHistories=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.campaign.getHopperHistories(f.query,m).$promise}function g(e){c.hopperHistory.delete({id:e.id}).$promise.then((function(){u().remove(f.ivrCampaignHopperHistories.rows,{id:e.id}),f.ivrCampaignHopperHistories.count-=1,f.ivrCampaignHopperHistories.rows.length||p(),l.success({title:"HopperHistory deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETcampaign"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcampaign",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.ivrCampaign={},f.ivrCampaignHopperHistories={count:0,rows:[]},f.selectedIvrCampaignHopperHistories=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime",sort:"-id",limit:10,page:1},f.init=function(e,t){f.ivrCampaign=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.CampaignId=f.ivrCampaign.id,f.query.id=f.ivrCampaign.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the hopperHistory?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopperHistory #")+e.id||"hopperHistory")+"</b> will be deleted.").ariaLabel("delete hopperHistory").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getIvrCampaignHopperHistories=p,f.exportSelectedIvrCampaignHopperHistories=function(){const e=angular.copy(f.selectedIvrCampaignHopperHistories);return f.selectedIvrCampaignHopperHistories=[],e},f.deleteIvrCampaignHopperHistory=g,f.deleteSelectedIvrCampaignHopperHistories=function(e){const t=i.confirm().title("Are you sure want to delete the selected hopperHistories?").htmlContent("<b>"+f.selectedIvrCampaignHopperHistories.length+" selected</b> will be deleted.").ariaLabel("delete hopperHistories").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedIvrCampaignHopperHistories.forEach((function(e){g(e)})),f.selectedIvrCampaignHopperHistories=[]}))}}nx.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const ax=nx;function ox(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.ivrCampaignHoppers=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.campaign.getHoppers(f.query,m).$promise}function g(e){c.cmHopper.delete({id:e.id}).$promise.then((function(){u().remove(f.ivrCampaignHoppers.rows,{id:e.id}),f.ivrCampaignHoppers.count-=1,f.ivrCampaignHoppers.rows.length||p(),l.success({title:"Hopper deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETcampaign"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcampaign",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.ivrCampaign={},f.ivrCampaignHoppers={count:0,rows:[]},f.selectedIvrCampaignHoppers=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority",sort:"-updatedAt",limit:10,page:1},f.arraypriority=u().keyBy([{option:"Highest",value:"'4'"},{option:"High",value:"'3'"},{option:"Medium",value:"'2'"},{option:"Low",value:"'1'"},{option:"Lowest",value:"'0'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),f.init=function(e,t){f.ivrCampaign=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.CampaignId=f.ivrCampaign.id,f.query.id=f.ivrCampaign.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the hopper?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopper #")+e.id||"hopper")+"</b> will be deleted.").ariaLabel("delete hopper").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getIvrCampaignHoppers=p,f.createOrEditIvrCampaignHopper=function(e,t){i.show({controller:"CreateOrEditHopperCampaignIdDialogController",controllerAs:"vm",templateUrl:Es,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{ivrCampaign:f.ivrCampaign,hopper:t,hoppers:f.ivrCampaignHoppers.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedIvrCampaignHoppers=function(){const e=angular.copy(f.selectedIvrCampaignHoppers);return f.selectedIvrCampaignHoppers=[],e},f.deleteIvrCampaignHopper=g,f.deleteSelectedIvrCampaignHoppers=function(e){const t=i.confirm().title("Are you sure want to delete the selected hoppers?").htmlContent("<b>"+f.selectedIvrCampaignHoppers.length+" selected</b> will be deleted.").ariaLabel("delete hoppers").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedIvrCampaignHoppers.forEach((function(e){g(e)})),f.selectedIvrCampaignHoppers=[]}))},d.hasRole("admin")?c.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){f.agents=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){f.agents=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:f.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(f.agents,{id:e.resourceId})}));f.agents.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),f.agents=t}))}else f.agents=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}ox.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const rx=ox;function ix(e,t,n,a,r,i,s,l,c,d,f,m,p,g){const h=this;function _(e){a.hide(e)}h.currentUser=f.getCurrentUser(),h.errors=[],h.setting=p,h.license=m,h.crudPermissions=g,h.hasModulePermissions={},h.passwordPattern=h.setting&&h.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",h.title="MOTIONDIALER.EDIT_HOPPER",h.hopper=angular.copy(c),h.hoppers=l,h.newHopper=!1,h.hopper||(h.hopper={},h.title="MOTIONDIALER.NEW_HOPPER",h.newHopper=!0),t.params.id&&(h.hopper.CampaignId=t.params.id),h.addNewHopper=function(){h.errors=[],d.cmHopper.save(h.hopper).$promise.then((function(e){h.hoppers.unshift(e.toJSON()),s.success({title:"Hopper properly created",msg:h.hopper.name?h.hopper.name+" has been created!":""}),_(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"api.cmHopper.save"}];for(let t=0;t<e.data.errors.length;t+=1)s.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmHopper.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},h.saveHopper=function(){let e,t,n,a;h.errors=[],h.hopper.UserId=h.hopper.recallme?h.hopper.UserId:null,h.hopper.OwnerId=f.getCurrentUser().id,d.cmHopper.get({id:h.hopper.id,attributes:["scheduledat"]}).$promise.then((function(t){e=u().isNil(t)||u().isEmpty(t)?o()().format("YYYY-MM-DD HH:mm:ss"):t.scheduledat})).finally((function(){d.cmHopper.update({id:h.hopper.id},u().omit(h.hopper,["VoiceQueueId","CampaignId","ContactId","ListId"])).$promise.then((function(r){t=r,d.cmContact.get({id:t.ContactId,attributes:["firstName","lastName"]}).$promise.then((function(e){u().isNil(e)||u().isNil(e.firstName)||(n=e.firstName,u().isNil(e.lastName)||(n+=" "+e.lastName))})).catch((function(){n=void 0})).finally((function(){d.campaign.get({raw:!1,id:t.CampaignId,attributes:["name"]}).$promise.then((function(e){a=e.name})).catch((function(){a=void 0})).finally((function(){d.cmHopperHistory.save({state:24,statedesc:"Edited",scheduledat:e,calleridnum:t.phone,calleridname:n,campaigntype:t.VoiceQueueId?"queue":"ivr",campaign:a,editedat:o()().format("YYYY-MM-DD HH:mm:ss"),edited:!0,ListId:t.ListId,UserId:f.getCurrentUser().id,VoiceQueueId:t.VoiceQueueId,CampaignId:t.CampaignId,ContactId:t.ContactId,callback:t.callback,callbackuniqueid:t.callbackuniqueid,countbusyretry:t.countbusyretry,countcongestionretry:t.countcongestionretry,countglobal:t.countglobal,countnoanswerretry:t.countnoanswerretry,followuptime:t.followuptime,recallme:t.recallme})}))}));const i=u().find(h.hoppers,{id:r.id});i&&u().merge(i,u().pick(r.toJSON(),u().keys(i))),s.success({title:"Hopper properly saved!",msg:h.hopper.name?h.hopper.name+" has been saved!":""}),_(r)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"api.cmHopper.update"}];for(let t=0;t<e.data.errors.length;t++)s.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmHopper.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}))},h.deleteHopper=function(e){h.errors=[];const t=a.confirm().title("Are you sure?").content("The hopper will be deleted.").ariaLabel("Delete Hopper").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.cmHopper.delete({id:h.hopper.id}).$promise.then((function(){u().remove(h.hoppers,{id:h.hopper.id}),s.success({title:"Hopper properly deleted!",msg:(h.hopper.name||"hopper")+" has been deleted!"}),_(h.hopper)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"api.cmHopper.delete"}];for(let t=0;t<e.data.errors.length;t++)s.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmHopper.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},h.getDateFromString=function(e){return null===e?void 0:new Date(e)},h.closeDialog=_,f.hasRole("admin")?d.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){h.agents=e.rows||[]})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):d.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){h.agents=e.rows||[]})).then((function(){return d.userProfileSection.get({userProfileId:h.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return d.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(h.agents,{id:e.resourceId})}));h.agents.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),h.agents=t}))}else h.agents=[]})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}ix.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","hoppers","hopper","api","Auth","license","setting","crudPermissions"];const sx=ix;function lx(e,t){const n=this;n.ivrCampaign={},n.init=function(a){n.ivrCampaign=a,e.cmHopper.get({limit:0,CampaignId:a.id}).$promise.then((function(t){return n.total=t.count||0,e.cmHopper.get({limit:0,CampaignId:a.id,active:!1,countbusyretry:0,countcongestionretry:0,countnoanswerretry:0,countnosuchnumberretry:0,countdropretry:0,countabandonedretry:0,countmachineretry:0,countagentrejectretry:0}).$promise})).then((function(t){return n.fresh=t.count||0,e.cmHopperFinal.get({limit:0,CampaignId:a.id}).$promise})).then((function(e){n.closed=e.count||0})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}lx.$inject=["api","toasty"];const cx=lx;function ux(e,t,n,a,o,r,i,s,l){const c=this;function d(){return t((function(e,n){return t((function(e,t){return a.cmList.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return c.items=e.rows?e.rows:[],s.hasRole("admin")?e:c.section?c.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:c.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return c.allowedItems=u().map(n,(function(e){return u().find(c.items,{id:s.hasRole("admin")||c.section.autoAssociation?e.id:e.resourceId})})),c.startingAllowedItems=angular.copy(c.allowedItems),c.items.forEach((function(e){const t=u().find(c.allowedItems,{id:e.id});"admin"===c.currentUser.role?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a[c.apiRoute][c.getApi]({id:c.ivrCampaign.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];c.selectedItems=u().map(n,(function(e){return u().find(c.items,{id:e.id})})),c.startingSelectedItems=angular.copy(c.selectedItems),c.dualMultiselectOptions.selectedItems=c.selectedItems,c.dualMultiselectOptions.items=u().differenceBy(c.allowedItems,c.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}c.currentUser=s.getCurrentUser(),c.ivrCampaign=o,c.crudPermissions=l,c.apiRoute="campaign",c.getApi="getLists",c.addApi="addLists",c.removeApi="removeLists",c.items=[],c.allowedItems=[],c.selectedItems=[],c.startingAllowedItems=[],c.startingSelectedItems=[],c.pendingChanges=!1,c.loading=!1,c.dualMultiselectOptions={allowedItems:[],selectedItems:[],showSelectAndDeselectAll:!1,orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("MOTIONDIALER.ALL_LISTS"),labelSelected:r.instant("MOTIONDIALER.SELECTED_LISTS"),transferCallback:function(){const e=u().xorBy(c.startingSelectedItems,c.selectedItems,"id");c.pendingChanges=!u().isEmpty(e)}},c.onInit=function(){return s.hasRole("admin")?d().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:c.currentUser.userProfileId,name:"Lists"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return c.section=e,d()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},c.saveLists=function(){c.loading=!0;const e=u().differenceBy(c.startingSelectedItems,c.selectedItems,"id"),o=u().differenceBy(c.selectedItems,c.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a[c.apiRoute][c.removeApi]({id:c.ivrCampaign.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){if(u().isEmpty(e))t();else{a[c.apiRoute][c.addApi]({id:c.ivrCampaign.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}}))}(o)})).then((function(){c.pendingChanges=!1,c.startingAllowedItems=angular.copy(c.allowedItems),c.startingSelectedItems=angular.copy(c.selectedItems),n.success({title:"SUCCESS",msg:"Lists association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})})).finally((function(){c.loading=!1}));var r},c.closeDialog=function(){e.hide()}}ux.$inject=["$mdDialog","$q","toasty","api","ivrCampaign","$translate","$timeout","Auth","crudPermissions"];const dx=ux;function fx(e,t,n,a,o,r,i,s){const l=this;function c(){t.hide()}function u(e,t){const o=t.id;i.enqueue((function(){return a.campaign.removeLists({id:e,ids:o}).$promise.then((function(){return a.campaign.addLists({id:e,ids:o,dialCheckDuplicateType:"never"}).$promise})).then((function(){n.success({title:"Reset Succesfull",msg:"List "+t.name+" has been reset"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:queueCampaign.RESETLIST",msg:e.status?JSON.stringify(e.data):e.toString()})}))}))}l.selected=[],l.items=r||[],l.loading=!1,l.closeDialog=c,l.exists=function(e,t){return t.indexOf(e)>-1},l.toggle=function(e,t){const n=t.indexOf(e);n>-1?t.splice(n,1):t.push(e)},l.isIndeterminate=function(){return 0!==l.selected.length&&l.selected.length!==l.items.length},l.isChecked=function(){return l.selected.length===l.items.length},l.toggleAll=function(){l.selected.length===l.items.length?l.selected=[]:(0===l.selected.length||l.selected.length>0)&&(l.selected=l.items.slice(0))},l.listSelected=function(){l.loading=!0;s((function(e){for(let e=0;e<l.selected.length;e+=1)u(o.id,l.selected[e]);!function(e){i.enqueue((function(){return e()}))}(e)})).finally((function(){l.loading=!1,c()}))}}fx.$inject=["$scope","$mdDialog","toasty","api","ivrCampaign","listsCampaign","Sequence","$q"];const mx=fx,px=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone.html",gx=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html/listadd.html",hx=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html",_x=n.p+"templates/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist.html";function bx(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.ivrCampaign=d||e.params.ivrCampaign||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.clonedialog=function(e,t){n.show({controller:"IvrCampaigncloneController",controllerAs:"vm",templateUrl:px,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{ivrCampaign:e,ivrCampaigns:m.ivrCampaigns?m.ivrCampaigns.rows:[],crudPermissions:m.crudPermissions}})},m.listadddialog=function(e,t){n.show({controller:"IvrCampaignlistaddController",controllerAs:"vm",templateUrl:gx,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{ivrCampaign:e,ivrCampaigns:m.ivrCampaigns?m.ivrCampaigns.rows:[],crudPermissions:m.crudPermissions}})},m.blacklistadddialog=function(e,t){n.show({controller:"IvrCampaignblacklistaddController",controllerAs:"vm",templateUrl:hx,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{ivrCampaign:e,ivrCampaigns:m.ivrCampaigns?m.ivrCampaigns.rows:[],crudPermissions:m.crudPermissions}})},m.resetlistdialog=function(e,t){s.campaign.getLists({id:e.id,fields:"id,name",nolimit:!0}).$promise.then((function(o){if(u().isNil(o.rows)||u().isEmpty(o.rows))l.info({title:"Campaign Without Lists"});else if(1===o.rows.length){const e=n.confirm().title("Are you sure want to reset the list "+o.rows[0].name+" ?").htmlContent("<b>"+o.rows[0].name+"</b> will be reset.").ariaLabel("Reset List").targetEvent(t).ok("OK").cancel("CANCEL");n.show(e).then((function(){!function(e,t){const n=t.id;s.campaign.removeLists({id:e,ids:n}).$promise.then((function(){return s.campaign.addLists({id:e,ids:n,dialCheckDuplicateType:"never"}).$promise})).then((function(){l.success({title:"Reset Succesfull",msg:"List "+t.name+" has been reset"})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:ivrCampaign.REMOVELIST",msg:e.status?JSON.stringify(e.data):e.toString()})}))}(m.ivrCampaign.id,o.rows[0])}))}else n.show({controller:"IvrCampaignresetlistController",controllerAs:"vm",templateUrl:_x,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!1,locals:{ivrCampaign:e,listsCampaign:o?o.rows:[]}})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:RESETLIST",msg:e.status?JSON.stringify(e.data):e.toString()})}))},m.gotogoto=function(){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:1510}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;n&&n.enabled?e.go("app.motiondialer.realtime.ivr_campaigns",{}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.motiondialer.realtime.ivr_campaigns",{})},m.alert=l.info,m.gotoIvrCampaigns=function(){e.go("app.motiondialer.ivrCampaigns",{},{reload:"app.motiondialer.ivrCampaigns"})},m.saveIvrCampaign=function(){s.campaign.update({id:m.ivrCampaign.id},m.ivrCampaign).$promise.then((function(){l.success({title:"IvrCampaign updated!",msg:m.ivrCampaign.name?m.ivrCampaign.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETcampaign",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.trunks=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.trunks=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.trunks,{id:e.resourceId})}));m.trunks.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.trunks=t}))}else m.trunks=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.projects=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.projects=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1103}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.projects,{id:e.resourceId})}));let n=null;if(m.ivrCampaign&&(n=u().find(m.projects,{id:Number(m.ivrCampaign.SquareProjectId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.projects,{id:n.id});e.canSelect=!1,t.push(e)}m.projects=t}))}else{const e=[];let t=null;m.ivrCampaign&&(t=u().find(m.projects,{id:Number(m.ivrCampaign.SquareProjectId)}));for(let n=0;n<m.projects.length;n++)t&&m.projects[n].id===t.id&&(m.projects[n].canSelect=!1,e.push(m.projects[n]));m.projects=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){m.interval=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){m.interval=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.interval,{id:e.resourceId})}));let n=null;if(m.ivrCampaign&&(n=u().find(m.interval,{id:Number(m.ivrCampaign.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.interval,{id:n.id});e.canSelect=!1,t.push(e)}m.interval=t}))}else{const e=[];let t=null;m.ivrCampaign&&(t=u().find(m.interval,{id:Number(m.ivrCampaign.IntervalId)}));for(let n=0;n<m.interval.length;n++)t&&m.interval[n].id===t.id&&(m.interval[n].canSelect=!1,e.push(m.interval[n]));m.interval=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}))}bx.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","ivrCampaign","userProfileSection"];const yx=bx;function vx(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.ivrCampaigns=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="ivrCampaigns",b.listOrder="",b.listOrderAsc=null,b.selectedIvrCampaigns=[],b.query={fields:"createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength",type:"ivr",sort:"-updatedAt",limit:10,page:1},b.arraydialCheckDuplicateType=u().keyBy([{option:"ALWAYS",value:"'always'"},{option:"NEVER",value:"'never'"},{option:"ONLY_IF_OPEN",value:"'onlyIfOpen'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraydialOrderByScheduledAt=u().keyBy([{option:"DESC",value:"'DESC'"},{option:"ASC",value:"'ASC'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.motiondialer.ivrCampaigns.edit",{id:e.id,ivrCampaign:e,crudPermissions:b.crudPermissions})},b.clonedialog=function(e,t){o.show({controller:"IvrCampaigncloneController",controllerAs:"vm",templateUrl:px,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{ivrCampaign:e,ivrCampaigns:b.ivrCampaigns?b.ivrCampaigns.rows:[],crudPermissions:b.crudPermissions}})},b.listadddialog=function(e,t){o.show({controller:"IvrCampaignlistaddController",controllerAs:"vm",templateUrl:gx,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{ivrCampaign:e,ivrCampaigns:b.ivrCampaigns?b.ivrCampaigns.rows:[],crudPermissions:b.crudPermissions}})},b.blacklistadddialog=function(e,t){o.show({controller:"IvrCampaignblacklistaddController",controllerAs:"vm",templateUrl:hx,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{ivrCampaign:e,ivrCampaigns:b.ivrCampaigns?b.ivrCampaigns.rows:[],crudPermissions:b.crudPermissions}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("ivrCampaign")+"?").htmlContent("<b>"+(e.name||"ivrCampaign")+"</b> will be deleted.").ariaLabel("delete ivrCampaign").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:1510}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.motiondialer.realtime.ivr_campaigns",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.motiondialer.realtime.ivr_campaigns",{})},b.success=A,b.getIvrCampaigns=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.campaign.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="IvrCampaigns",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditIvrCampaign=function(e,t){o.show({controller:"CreateOrEditIvrCampaignDialogController",controllerAs:"vm",templateUrl:ED,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{ivrCampaign:t,ivrCampaigns:b.ivrCampaigns.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteIvrCampaign=S,b.exportSelectedIvrCampaigns=function(){const e=angular.copy(b.selectedIvrCampaigns);return b.selectedIvrCampaigns=[],e},b.deleteSelectedIvrCampaigns=function(e){const t=o.confirm().title("Are you sure want to delete the selected ivrCampaigns?").htmlContent("<b>"+b.selectedIvrCampaigns.length+" selected</b> will be deleted.").ariaLabel("delete IvrCampaigns").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedIvrCampaigns.forEach((function(e){S(e)})),b.selectedIvrCampaigns=[]}))},b.deselectIvrCampaigns=function(){b.selectedIvrCampaigns=[]},b.selectAllIvrCampaigns=function(){b.selectedIvrCampaigns=b.ivrCampaigns.rows},g.hasRole("admin")?f.trunk.get({fields:"id,name",sort:"name",table:"true"}).$promise.then((function(e){b.trunks=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.trunk.get({fields:"id,name",sort:"name",table:"true"}).$promise.then((function(e){b.trunks=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.trunks,{id:e.resourceId})}));b.trunks.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),b.trunks=t}))}else b.trunks=[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),g.hasRole("admin")?f.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.projects=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.projects=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1103}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.projects,{id:e.resourceId})}));let n=null;n=[],b.ivrCampaigns.rows.forEach((function(e){const t=u().find(b.projects,{id:Number(e.SquareProjectId)});n.push(t)})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(b.projects,{id:e.id});n.canSelect=!1,t.push(n)}})),b.projects=t}))}else{const e=[],t=[];b.ivrCampaigns.rows.forEach((function(e){const n=u().find(b.projects,{id:Number(e.SquareProjectId)});t.push(n)}));for(let n=0;n<b.projects.length;n++){u().some(t,{id:b.projects[n].id})&&(b.projects[n].canSelect=!1,e.push(b.projects[n]))}b.projects=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})})),g.hasRole("admin")?f.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){b.interval=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){b.interval=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.interval,{id:e.resourceId})}));let n=null;if(b.ivrCampaign&&(n=u().find(b.interval,{id:Number(b.ivrCampaign.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.interval,{id:n.id});e.canSelect=!1,t.push(e)}b.interval=t}))}else{const e=[];let t=null;b.ivrCampaign&&(t=u().find(b.interval,{id:Number(b.ivrCampaign.IntervalId)}));for(let n=0;n<b.interval.length;n++)t&&b.interval[n].id===t.id&&(b.interval[n].canSelect=!1,e.push(b.interval[n]));b.interval=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.ivrCampaigns=e||{count:0,rows:[]}}function S(e){f.campaign.delete({id:e.id}).$promise.then((function(){u().remove(b.ivrCampaigns.rows,{id:e.id}),b.ivrCampaigns.count-=1,b.ivrCampaigns.rows.length||b.getIvrCampaigns(),p.success({title:u().startCase("IvrCampaign")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEcampaign"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEcampaign",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getIvrCampaigns())}))}vx.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","ivrCampaigns","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const Ax=vx;function Sx(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="MOTIONDIALER.EDIT_QUEUECAMPAIGN",g.queueCampaign=angular.copy(l),g.queueCampaigns=s,g.newQueueCampaign=!1,g.queueCampaign||(g.queueCampaign={dialActive:!0,type:"outbound",dialCheckDuplicateType:"always",dialCutDigit:0,autopause:"no",ringinuse:"no",timeoutrestart:"no",setinterfacevar:"no",setqueuevar:"no",setqueueentryvar:"no",dialOrderByScheduledAt:"ASC",dialGlobalInterval:"07:00-22:00,*,*,*",dialAMDInitialSilence:2500,dialAMDGreeting:1500,dialAMDAfterGreetingSilence:800,dialAMDTotalAnalysisTime:5e3,dialAMDMinWordLength:100,dialAMDBetweenWordsSilence:50,dialAMDMaximumNumberOfWords:3,dialAMDSilenceThreshold:256,dialAMDMaximumWordLength:5e3,dialMethod:"progressive",dialPowerLevel:1,dialPredictiveOptimization:"dropRate",dialPredictiveOptimizationPercentage:3,dialPredictiveInterval:10,dialLimitQueue:0,dialRandomLastDigitCallerIdNumber:0,dialOriginateTimeout:30,dialQueueOptions:"tTxX",dialQueueTimeout:3,strategy:"rrmemory",timeout:3,retry:3,weight:1,dialGlobalMaxRetry:4,dialCongestionMaxRetry:3,dialCongestionRetryFrequency:150,dialBusyMaxRetry:3,dialBusyRetryFrequency:150,dialNoAnswerMaxRetry:3,dialNoAnswerRetryFrequency:150,dialNoSuchNumberMaxRetry:3,dialNoSuchNumberRetryFrequency:150,dialDropMaxRetry:3,dialDropRetryFrequency:150,dialAbandonedMaxRetry:3,dialAbandonedRetryFrequency:150,dialMachineMaxRetry:3,dialMachineRetryFrequency:150,dialAgentRejectMaxRetry:3,dialAgentRejectRetryFrequency:150,dialPredictiveIntervalMaxThreshold:20,dialPredictiveIntervalMinThreshold:10},g.title="MOTIONDIALER.NEW_QUEUECAMPAIGN",g.newQueueCampaign=!0),g.addNewQueueCampaign=function(){g.errors=[],c.voiceQueue.save(g.queueCampaign).$promise.then((function(e){g.queueCampaigns.unshift(e.toJSON()),i.success({title:"QueueCampaign properly created",msg:g.queueCampaign.name?g.queueCampaign.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveQueueCampaign=function(){g.errors=[],c.voiceQueue.update({id:g.queueCampaign.id},g.queueCampaign).$promise.then((function(e){const t=u().find(g.queueCampaigns,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"QueueCampaign properly saved!",msg:g.queueCampaign.name?g.queueCampaign.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteQueueCampaign=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The queueCampaign will be deleted.").ariaLabel("Delete QueueCampaign").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.voiceQueue.delete({id:g.queueCampaign.id}).$promise.then((function(){u().remove(g.queueCampaigns,{id:g.queueCampaign.id}),i.success({title:"QueueCampaign properly deleted!",msg:(g.queueCampaign.name||"queueCampaign")+" has been deleted!"}),h(g.queueCampaign)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.voiceQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.trunks=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.trunks=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.trunks,{id:e.resourceId})}));let n=null;if(g.queueCampaign&&(n=u().find(g.trunks,{id:Number(g.queueCampaign.TrunkId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.trunks,{id:n.id});e.canSelect=!1,t.push(e)}g.trunks=t}))}else{const e=[];let t=null;g.queueCampaign&&(t=u().find(g.trunks,{id:Number(g.queueCampaign.TrunkId)}));for(let n=0;n<g.trunks.length;n++)t&&g.trunks[n].id===t.id&&(g.trunks[n].canSelect=!1,e.push(g.trunks[n]));g.trunks=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.hasRole("admin")?c.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){g.interval=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){g.interval=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.interval,{id:e.resourceId})}));let n=null;if(g.queueCampaign&&(n=u().find(g.interval,{id:Number(g.queueCampaign.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.interval,{id:n.id});e.canSelect=!1,t.push(e)}g.interval=t}))}else{const e=[];let t=null;g.queueCampaign&&(t=u().find(g.interval,{id:Number(g.queueCampaign.IntervalId)}));for(let n=0;n<g.interval.length;n++)t&&g.interval[n].id===t.id&&(g.interval[n].canSelect=!1,e.push(g.interval[n]));g.interval=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Sx.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","queueCampaigns","queueCampaign","api","Auth","license","setting","crudPermissions"];const wx=Sx;function Ex(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.voiceQueue.getAgents({id:d.queueCampaign.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserVoiceQueue?"penalty "+e.UserVoiceQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.queueCampaign=o,d.crudPermissions=c,d.penalty=0,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceWith(d.selectedItems,d.startingSelectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));return(r=e,t((function(e,t){u().isEmpty(r)?e():a.voiceQueue.removeAgents({id:d.queueCampaign.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(n,o){if(u().isEmpty(e))n();else{const r=[],i=u().groupBy(e,"penalty");for(let t=0;t<Object.keys(i).length;t++){const n=Object.keys(i)[t],o=u().filter(e,["penalty",n]);r.push(a.voiceQueue.addAgents({id:d.queueCampaign.id,ids:u().map(o,"id"),penalty:u().trim(n,"penalty "),realtime:d.realtime||!1}).$promise)}t.all(r).then((function(){n()})).catch((function(e){o(e)}))}}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"penalty",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(e,t){t?e.forEach((function(e){e.penalty=void 0})):e.forEach((function(e){e.penalty="penalty "+d.penalty}));const n=u().xorWith(d.startingSelectedItems,d.selectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));d.pendingChanges=!u().isEmpty(n)}}}Ex.$inject=["$mdDialog","$q","toasty","api","queueCampaign","queueCampaigns","realtime","$translate","Auth","crudPermissions"];const Cx=Ex;function Tx(e,t,n,a,o,r,i,s,l){const c=this;function d(){return t((function(e,n){return t((function(e,t){return a.cmList.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return c.items=e.rows?e.rows:[],s.hasRole("admin")?e:c.section?c.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:c.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return c.allowedItems=u().map(n,(function(e){return u().find(c.items,{id:s.hasRole("admin")||c.section.autoAssociation?e.id:e.resourceId})})),c.startingAllowedItems=angular.copy(c.allowedItems),c.items.forEach((function(e){const t=u().find(c.allowedItems,{id:e.id});"admin"===c.currentUser.role?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a[c.apiRoute][c.getApi]({id:c.queueCampaign.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];c.selectedItems=u().map(n,(function(e){return u().find(c.items,{id:e.id})})),c.startingSelectedItems=angular.copy(c.selectedItems),c.dualMultiselectOptions.selectedItems=c.selectedItems,c.dualMultiselectOptions.items=u().differenceBy(c.allowedItems,c.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}c.currentUser=s.getCurrentUser(),c.queueCampaign=o,c.crudPermissions=l,c.apiRoute="voiceQueue",c.getApi="getBlackLists",c.addApi="addBlackLists",c.removeApi="removeBlackLists",c.items=[],c.allowedItems=[],c.selectedItems=[],c.startingAllowedItems=[],c.startingSelectedItems=[],c.pendingChanges=!1,c.loading=!1,c.dualMultiselectOptions={allowedItems:[],selectedItems:[],showSelectAndDeselectAll:!1,orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("MOTIONDIALER.ALL_LISTS"),labelSelected:r.instant("MOTIONDIALER.SELECTED_LISTS"),transferCallback:function(){const e=u().xorBy(c.startingSelectedItems,c.selectedItems,"id");c.pendingChanges=!u().isEmpty(e)}},c.onInit=function(){return s.hasRole("admin")?d().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:c.currentUser.userProfileId,name:"Lists"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return c.section=e,d()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},c.saveLists=function(){c.loading=!0;const e=u().differenceBy(c.startingSelectedItems,c.selectedItems,"id"),o=u().differenceBy(c.selectedItems,c.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a[c.apiRoute][c.removeApi]({id:c.queueCampaign.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){if(u().isEmpty(e))t();else{a[c.apiRoute][c.addApi]({id:c.queueCampaign.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}}))}(o)})).then((function(){c.pendingChanges=!1,c.startingAllowedItems=angular.copy(c.allowedItems),c.startingSelectedItems=angular.copy(c.selectedItems),n.success({title:"SUCCESS",msg:"Lists association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})})).finally((function(){c.loading=!1}));var r},c.closeDialog=function(){e.hide()}}Tx.$inject=["$mdDialog","$q","toasty","api","queueCampaign","$translate","$timeout","Auth","crudPermissions"];const Ix=Tx;function kx(e,t,n,a,o,r,i){const s=this;function l(t){e.hide(t)}s.newQueueCampaign=!0,s.queueCampaign=angular.copy(o),s.queueCampaigns=r,s.title=i.instant("MOTIONDIALER.CLONE_QUEUECAMPAIGN"),o&&o.name&&(s.title+=": "+o.name),s.cloneQueueCampaign=function(){return a.voiceQueue.clone({id:o.id},s.queueCampaign).$promise.then((function(e){s.queueCampaigns.unshift(e.toJSON()),n.success({title:"QueueCampaign properly cloned",msg:s.queueCampaign.name?s.queueCampaign.name+" has been cloned!":""}),t.go("app.motiondialer.queueCampaigns.edit",{id:e.id}),l(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){s.errors=e.data.errors||[{message:e.toString(),type:"api.voiceQueue.clone"}];for(let t=0;t<e.data.errors.length;t+=1)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.voiceQueue.clone",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},s.closeDialog=l}kx.$inject=["$mdDialog","$state","toasty","api","queueCampaign","queueCampaigns","$translate"];const Dx=kx;function xx(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.queueCampaignHopperBlacks=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.voiceQueue.getHopperBlacks(f.query,m).$promise}function g(e){c.hopperBlack.delete({id:e.id}).$promise.then((function(){u().remove(f.queueCampaignHopperBlacks.rows,{id:e.id}),f.queueCampaignHopperBlacks.count-=1,f.queueCampaignHopperBlacks.rows.length||p(),l.success({title:"HopperBlack deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETvoiceQueue"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.queueCampaign={},f.queueCampaignHopperBlacks={count:0,rows:[]},f.selectedQueueCampaignHopperBlacks=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,ContactId,phone",sort:"-id",limit:10,page:1},f.init=function(e,t){f.queueCampaign=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.VoiceQueueId=f.queueCampaign.id,f.query.id=f.queueCampaign.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the hopperBlack?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopperBlack #")+e.id||"hopperBlack")+"</b> will be deleted.").ariaLabel("delete hopperBlack").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getQueueCampaignHopperBlacks=p,f.exportSelectedQueueCampaignHopperBlacks=function(){const e=angular.copy(f.selectedQueueCampaignHopperBlacks);return f.selectedQueueCampaignHopperBlacks=[],e},f.deleteQueueCampaignHopperBlack=g,f.deleteSelectedQueueCampaignHopperBlacks=function(e){const t=i.confirm().title("Are you sure want to delete the selected hopperBlacks?").htmlContent("<b>"+f.selectedQueueCampaignHopperBlacks.length+" selected</b> will be deleted.").ariaLabel("delete hopperBlacks").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedQueueCampaignHopperBlacks.forEach((function(e){g(e)})),f.selectedQueueCampaignHopperBlacks=[]}))}}xx.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Mx=xx;function Px(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.queueCampaignHopperFinals=e||{count:0,rows:[]}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,m.promise=d.voiceQueue.getHopperFinals(m.query,p).$promise}function h(e){d.hopperFinal.delete({id:e.id}).$promise.then((function(){u().remove(m.queueCampaignHopperFinals.rows,{id:e.id}),m.queueCampaignHopperFinals.count-=1,m.queueCampaignHopperFinals.rows.length||g(),c.success({title:"HopperFinal deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETvoiceQueue"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){d.cmHopperFinal.checkContactHopper(e).$promise.then((function(e){c.info({title:"The contact is in the hopper",msg:"Contact ID "+e.ContactId})})).catch((function(t){"Not Found"===t.data?d.cmHopper.save(function(e){const t={};return t.phone=e.calleridnum,t.scheduledat=o()().format("YYYY-MM-DD HH:mm:ss"),t.countbusyretry=0,t.countcongestionretry=0,t.countnoanswerretry=0,t.countglobal=0,t.ContactId=e.ContactId,t.ListId=e.ListId,t.UserId=e.deleted?null:e.UserId,t.VoiceQueueId=e.VoiceQueueId,t.CampaignId=e.CampaignId,t.priority=e.recallme?3:2,t.recallme=!!e.recallme,t}(e)).$promise.then((function(t){c.info({title:"Restored Contact",msg:"Contact ID "+t.ContactId}),t.ContactId&&d.cmHopperHistory.save(function(e){const t={};return t.calleridnum=e.calleridnum,t.calleridname=e.calleridname,t.scheduledat=o()().format("YYYY-MM-DD HH:mm:ss"),t.countbusyretry=e.countbusyretry,t.countcongestionretry=e.countcongestionretry,t.countnoanswerretry=e.countnoanswerretry,t.countglobal=e.countglobal,t.ContactId=e.ContactId,t.ListId=e.ListId,t.UserId=f.getCurrentUser().id,t.VoiceQueueId=e.VoiceQueueId,t.CampaignId=e.CampaignId,t.editedat=o()().format("YYYY-MM-DD HH:mm:ss"),t.edited=!0,t.state=25,t.statedesc="Restored",t.campaign=e.campaign,t.campaigntype=e.VoiceQueueId?"queue":"ivr",t}(e))})).catch((function(t){u().isNil(t.data)||"Validation error"!==t.data.message?c.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GETvoiceQueue",msg:t.data?JSON.stringify(t.data.message):t.message||t.toString()}):c.info({title:"The contact is in the hopper",msg:"Contact ID "+e.ContactId})})):c.error({title:t.status?"API:"+t.status+" - "+t.statusText:"SYSTEM:GETvoiceQueue",msg:t.data?JSON.stringify(t.data.message):t.message||t.toString()})}))}m.currentUser=f.getCurrentUser(),m.contacts={},m.queueCampaign={},m.queueCampaignHopperFinals={count:0,rows:[]},m.selectedQueueCampaignHopperFinals=[],m.crudPermissions,m.query={fields:"createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,countglobal,scheduledat,starttime,responsetime,endtime,disposition,secondDisposition,thirdDisposition,ListId,UserId,VoiceQueueId,CampaignId,recallme,deleted,campaign",sort:"-id",limit:10,page:1},m.init=function(e,t){m.queueCampaign=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.VoiceQueueId=m.queueCampaign.id,m.query.id=m.queueCampaign.id,g()},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the hopperFinal?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopperFinal #")+e.id||"hopperFinal")+"</b> will be deleted.").ariaLabel("delete hopperFinal").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.success=p,m.getQueueCampaignHopperFinals=g,m.exportSelectedQueueCampaignHopperFinals=function(){const e=angular.copy(m.selectedQueueCampaignHopperFinals);return m.selectedQueueCampaignHopperFinals=[],e},m.deleteQueueCampaignHopperFinal=h,m.deleteSelectedQueueCampaignHopperFinals=function(e){const t=s.confirm().title("Are you sure want to delete the selected hopperFinals?").htmlContent("<b>"+m.selectedQueueCampaignHopperFinals.length+" selected</b> will be deleted.").ariaLabel("delete hopperFinals").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedQueueCampaignHopperFinals.forEach((function(e){h(e)})),m.selectedQueueCampaignHopperFinals=[]}))},m.moveQueueCampaignHopperFinal=_,m.moveContactsQueueCampaignHopperFinal=function(e){d.cmHopperFinal.moveContactsQueueCampaignHopperFinal({id:m.query.id,state:e}).$promise.then((function(e){u().isNil(e)&&u().isNil(e[0])?c.info({title:"Restored Contacts",msg:"0"}):c.info({title:"Restored Contacts",msg:JSON.stringify(e[0].affectedRows)})})).catch((function(e){c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))},m.countContactsQueueCampaignHopperFinal=function(e){d.cmHopperFinal.countContactsQueueCampaignHopperFinal({id:e}).$promise.then((function(e){u().merge(m.contacts,e[0])})).catch((function(e){c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))},m.moveConfirm=function(e,t){const n=s.confirm().title("Are you sure want to restore the contact?").htmlContent("<b>Contact</b> will be restored.").ariaLabel("Restore Contact").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){_(e)}),(function(){console.log("CANCEL")}))},m.moveSelectedQueueCampaignHopperFinals=function(e){const t=s.confirm().title("Are you sure want to restore the selected contacts?").htmlContent("<b> Contacts selected</b> will be restored.").ariaLabel("Restore Contacts").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedQueueCampaignHopperFinals.forEach((function(e){_(e)})),m.selectedQueueCampaignHopperFinals=[]}))}}Px.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Ox=Px;function Rx(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.queueCampaignHopperHistories=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.voiceQueue.getHopperHistories(f.query,m).$promise}function g(e){c.hopperHistory.delete({id:e.id}).$promise.then((function(){u().remove(f.queueCampaignHopperHistories.rows,{id:e.id}),f.queueCampaignHopperHistories.count-=1,f.queueCampaignHopperHistories.rows.length||p(),l.success({title:"HopperHistory deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETvoiceQueue"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.queueCampaign={},f.queueCampaignHopperHistories={count:0,rows:[]},f.selectedQueueCampaignHopperHistories=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime",sort:"-id",limit:10,page:1},f.init=function(e,t){f.queueCampaign=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.VoiceQueueId=f.queueCampaign.id,f.query.id=f.queueCampaign.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the hopperHistory?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopperHistory #")+e.id||"hopperHistory")+"</b> will be deleted.").ariaLabel("delete hopperHistory").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getQueueCampaignHopperHistories=p,f.exportSelectedQueueCampaignHopperHistories=function(){const e=angular.copy(f.selectedQueueCampaignHopperHistories);return f.selectedQueueCampaignHopperHistories=[],e},f.deleteQueueCampaignHopperHistory=g,f.deleteSelectedQueueCampaignHopperHistories=function(e){const t=i.confirm().title("Are you sure want to delete the selected hopperHistories?").htmlContent("<b>"+f.selectedQueueCampaignHopperHistories.length+" selected</b> will be deleted.").ariaLabel("delete hopperHistories").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedQueueCampaignHopperHistories.forEach((function(e){g(e)})),f.selectedQueueCampaignHopperHistories=[]}))}}Rx.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const Nx=Rx;function Lx(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.queueCampaignHoppers=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.voiceQueue.getHoppers(f.query,m).$promise}function g(e){c.cmHopper.delete({id:e.id}).$promise.then((function(){u().remove(f.queueCampaignHoppers.rows,{id:e.id}),f.queueCampaignHoppers.count-=1,f.queueCampaignHoppers.rows.length||p(),l.success({title:"Hopper deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETvoiceQueue"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.queueCampaign={},f.queueCampaignHoppers={count:0,rows:[]},f.selectedQueueCampaignHoppers=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId",sort:"-updatedAt",limit:10,page:1},f.arraypriority=u().keyBy([{option:"Highest",value:"'4'"},{option:"High",value:"'3'"},{option:"Medium",value:"'2'"},{option:"Low",value:"'1'"},{option:"Lowest",value:"'0'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),f.init=function(e,t){f.queueCampaign=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.VoiceQueueId=f.queueCampaign.id,f.query.id=f.queueCampaign.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the hopper?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("hopper #")+e.id||"hopper")+"</b> will be deleted.").ariaLabel("delete hopper").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getQueueCampaignHoppers=p,f.createOrEditQueueCampaignHopper=function(e,t){i.show({controller:"CreateOrEditHopperVoiceQueueIdDialogController",controllerAs:"vm",templateUrl:Go,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{queueCampaign:f.queueCampaign,hopper:t,hoppers:f.queueCampaignHoppers.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedQueueCampaignHoppers=function(){const e=angular.copy(f.selectedQueueCampaignHoppers);return f.selectedQueueCampaignHoppers=[],e},f.deleteQueueCampaignHopper=g,f.deleteSelectedQueueCampaignHoppers=function(e){const t=i.confirm().title("Are you sure want to delete the selected hoppers?").htmlContent("<b>"+f.selectedQueueCampaignHoppers.length+" selected</b> will be deleted.").ariaLabel("delete hoppers").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedQueueCampaignHoppers.forEach((function(e){g(e)})),f.selectedQueueCampaignHoppers=[]}))},d.hasRole("admin")?c.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){f.agents=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){f.agents=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:f.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(f.agents,{id:e.resourceId})}));let n=null;if(f.queueCampaign&&(n=u().find(f.agents,{id:Number(f.queueCampaign.UserId)})),n&&!u().some(t,["id",n.id])){const e=u().find(f.agents,{id:n.id});e.canSelect=!1,t.push(e)}f.agents=t}))}else{const e=[];let t=null;f.queueCampaign&&(t=u().find(f.agents,{id:Number(f.queueCampaign.UserId)}));for(let n=0;n<f.agents.length;n++)t&&f.agents[n].id===t.id&&(f.agents[n].canSelect=!1,e.push(f.agents[n]));f.agents=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Lx.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const $x=Lx;function Ux(e,t,n,a,r,i,s,l,c,d,f,m,p,g){const h=this;function _(e){a.hide(e)}h.currentUser=f.getCurrentUser(),h.errors=[],h.setting=p,h.license=m,h.crudPermissions=g,h.hasModulePermissions={},h.passwordPattern=h.setting&&h.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",h.title="MOTIONDIALER.EDIT_HOPPER",h.hopper=angular.copy(c),h.hoppers=l,h.newHopper=!1,h.hopper||(h.hopper={},h.title="MOTIONDIALER.NEW_HOPPER",h.newHopper=!0),t.params.id&&(h.hopper.VoiceQueueId=t.params.id),h.addNewHopper=function(){h.errors=[],d.cmHopper.save(h.hopper).$promise.then((function(e){h.hoppers.unshift(e.toJSON()),s.success({title:"Hopper properly created",msg:h.hopper.name?h.hopper.name+" has been created!":""}),_(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"api.cmHopper.save"}];for(let t=0;t<e.data.errors.length;t+=1)s.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmHopper.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},h.saveHopper=function(){let e,t,n,a;h.errors=[],h.hopper.UserId=h.hopper.recallme?h.hopper.UserId:null,h.hopper.OwnerId=f.getCurrentUser().id,d.cmHopper.get({id:h.hopper.id,attributes:["scheduledat"]}).$promise.then((function(t){e=u().isNil(t)||u().isEmpty(t)?o()().format("YYYY-MM-DD HH:mm:ss"):t.scheduledat})).finally((function(){d.cmHopper.update({id:h.hopper.id},u().omit(h.hopper,["VoiceQueueId","CampaignId","ContactId","ListId"])).$promise.then((function(r){t=r,d.cmContact.get({id:t.ContactId,attributes:["firstName","lastName"]}).$promise.then((function(e){u().isNil(e)||u().isNil(e.firstName)||(n=e.firstName,u().isNil(e.lastName)||(n+=" "+e.lastName))})).catch((function(){n=void 0})).finally((function(){d.voiceQueue.get({raw:!1,id:t.VoiceQueueId,attributes:["name"]}).$promise.then((function(e){a=e.name})).catch((function(){a=void 0})).finally((function(){d.cmHopperHistory.save({state:24,statedesc:"Edited",scheduledat:e,calleridnum:t.phone,calleridname:n,campaigntype:t.VoiceQueueId?"queue":"ivr",campaign:a,editedat:o()().format("YYYY-MM-DD HH:mm:ss"),edited:!0,ListId:t.ListId,UserId:f.getCurrentUser().id,VoiceQueueId:t.VoiceQueueId,CampaignId:t.CampaignId,ContactId:t.ContactId,callback:t.callback,callbackuniqueid:t.callbackuniqueid,countbusyretry:t.countbusyretry,countcongestionretry:t.countcongestionretry,countglobal:t.countglobal,countnoanswerretry:t.countnoanswerretry,followuptime:t.followuptime,recallme:t.recallme})}))}));const i=u().find(h.hoppers,{id:r.id});i&&u().merge(i,u().pick(r.toJSON(),u().keys(i))),s.success({title:"Hopper properly saved!",msg:h.hopper.name?h.hopper.name+" has been saved!":""}),_(r)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"api.cmHopper.update"}];for(let t=0;t<e.data.errors.length;t++)s.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmHopper.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))}))},h.deleteHopper=function(e){h.errors=[];const t=a.confirm().title("Are you sure?").content("The hopper will be deleted.").ariaLabel("Delete Hopper").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){d.cmHopper.delete({id:h.hopper.id}).$promise.then((function(){u().remove(h.hoppers,{id:h.hopper.id}),s.success({title:"Hopper properly deleted!",msg:(h.hopper.name||"hopper")+" has been deleted!"}),_(h.hopper)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){h.errors=e.data.errors||[{message:e.toString(),type:"api.cmHopper.delete"}];for(let t=0;t<e.data.errors.length;t++)s.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cmHopper.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},h.getDateFromString=function(e){return null===e?void 0:new Date(e)},h.closeDialog=_,f.hasRole("admin")?d.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){h.agents=e.rows||[]})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):d.user.get({fields:"id,name",role:"agent",sort:"name",nolimit:"true"}).$promise.then((function(e){h.agents=e.rows||[]})).then((function(){return d.userProfileSection.get({userProfileId:h.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return d.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(h.agents,{id:e.resourceId})}));let n=null;if(h.hopper&&(n=u().find(h.agents,{id:Number(h.hopper.UserId)})),n&&!u().some(t,["id",n.id])){const e=u().find(h.agents,{id:n.id});e.canSelect=!1,t.push(e)}h.agents=t}))}else{const e=[];let t=null;h.hopper&&(t=u().find(h.agents,{id:Number(h.hopper.UserId)}));for(let n=0;n<h.agents.length;n++)t&&h.agents[n].id===t.id&&(h.agents[n].canSelect=!1,e.push(h.agents[n]));h.agents=e}})).catch((function(e){s.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Ux.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","hoppers","hopper","api","Auth","license","setting","crudPermissions"];const jx=Ux;function Fx(e,t){const n=this;n.queueCampaign={},n.init=function(a){n.queueCampaign=a,e.cmHopper.get({limit:0,VoiceQueueId:a.id}).$promise.then((function(t){return n.total=t.count||0,e.cmHopper.get({limit:0,VoiceQueueId:a.id,active:!1,countbusyretry:0,countcongestionretry:0,countnoanswerretry:0,countnosuchnumberretry:0,countdropretry:0,countabandonedretry:0,countmachineretry:0,countagentrejectretry:0}).$promise})).then((function(t){return n.fresh=t.count||0,e.cmHopperFinal.get({limit:0,VoiceQueueId:a.id}).$promise})).then((function(e){n.closed=e.count||0})).catch((function(e){t.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETTAGS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}Fx.$inject=["api","toasty"];const qx=Fx;function Yx(e,t,n,a,o,r,i,s,l){const c=this;function d(){return t((function(e,n){return t((function(e,t){return a.cmList.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return c.items=e.rows?e.rows:[],s.hasRole("admin")?e:c.section?c.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:c.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return c.allowedItems=u().map(n,(function(e){return u().find(c.items,{id:s.hasRole("admin")||c.section.autoAssociation?e.id:e.resourceId})})),c.startingAllowedItems=angular.copy(c.allowedItems),c.items.forEach((function(e){const t=u().find(c.allowedItems,{id:e.id});"admin"===c.currentUser.role?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a[c.apiRoute][c.getApi]({id:c.queueCampaign.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];c.selectedItems=u().map(n,(function(e){return u().find(c.items,{id:e.id})})),c.startingSelectedItems=angular.copy(c.selectedItems),c.dualMultiselectOptions.selectedItems=c.selectedItems,c.dualMultiselectOptions.items=u().differenceBy(c.allowedItems,c.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}c.currentUser=s.getCurrentUser(),c.queueCampaign=o,c.crudPermissions=l,c.apiRoute="voiceQueue",c.getApi="getLists",c.addApi="addLists",c.removeApi="removeLists",c.items=[],c.allowedItems=[],c.selectedItems=[],c.startingAllowedItems=[],c.startingSelectedItems=[],c.pendingChanges=!1,c.loading=!1,c.dualMultiselectOptions={allowedItems:[],selectedItems:[],showSelectAndDeselectAll:!1,orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("MOTIONDIALER.ALL_LISTS"),labelSelected:r.instant("MOTIONDIALER.SELECTED_LISTS"),transferCallback:function(){const e=u().xorBy(c.startingSelectedItems,c.selectedItems,"id");c.pendingChanges=!u().isEmpty(e)}},c.onInit=function(){return s.hasRole("admin")?d().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:c.currentUser.userProfileId,name:"Lists"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return c.section=e,d()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETLISTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},c.saveLists=function(){c.loading=!0;const e=u().differenceBy(c.startingSelectedItems,c.selectedItems,"id"),o=u().differenceBy(c.selectedItems,c.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a[c.apiRoute][c.removeApi]({id:c.queueCampaign.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){if(u().isEmpty(e))t();else{a[c.apiRoute][c.addApi]({id:c.queueCampaign.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}}))}(o)})).then((function(){c.pendingChanges=!1,c.startingAllowedItems=angular.copy(c.allowedItems),c.startingSelectedItems=angular.copy(c.selectedItems),n.success({title:"SUCCESS",msg:"Lists association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})})).finally((function(){c.loading=!1}));var r},c.closeDialog=function(){e.hide()}}Yx.$inject=["$mdDialog","$q","toasty","api","queueCampaign","$translate","$timeout","Auth","crudPermissions"];const Hx=Yx;function Bx(e,t,n,a,o,r,i,s){const l=this;function c(){t.hide()}function u(e,t){const o=t.id;i.enqueue((function(){return a.voiceQueue.removeLists({id:e,ids:o}).$promise.then((function(){return a.voiceQueue.addLists({id:e,ids:o,dialCheckDuplicateType:"never"}).$promise})).then((function(){n.success({title:"Reset Succesfull",msg:"List "+t.name+" has been reset"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:queueCampaign.RESETLIST",msg:e.status?JSON.stringify(e.data):e.toString()})}))}))}l.selected=[],l.items=r||[],l.loading=!1,l.closeDialog=c,l.exists=function(e,t){return t.indexOf(e)>-1},l.toggle=function(e,t){const n=t.indexOf(e);n>-1?t.splice(n,1):t.push(e)},l.isIndeterminate=function(){return 0!==l.selected.length&&l.selected.length!==l.items.length},l.isChecked=function(){return l.selected.length===l.items.length},l.toggleAll=function(){l.selected.length===l.items.length?l.selected=[]:(0===l.selected.length||l.selected.length>0)&&(l.selected=l.items.slice(0))},l.listSelected=function(){l.loading=!0;s((function(e){for(let e=0;e<l.selected.length;e+=1)u(o.id,l.selected[e]);!function(e){i.enqueue((function(){return e()}))}(e)})).finally((function(){l.loading=!1,c()}))}}Bx.$inject=["$scope","$mdDialog","toasty","api","queueCampaign","listsCampaign","Sequence","$q"];const Gx=Bx;function Vx(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.voiceQueue.getTeams({id:l.queueCampaign.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.queueCampaign=o,l.crudPermissions=s,l.penalty=0,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"penalty",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(e,t){t?e.forEach((function(e){e.penalty=void 0})):e.forEach((function(e){e.penalty="penalty "+l.penalty}));const n=u().xorWith(l.startingSelectedItems,l.selectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));l.pendingChanges=!u().isEmpty(n)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceWith(l.selectedItems,l.startingSelectedItems,(function(e,t){return e.id===t.id&&e.penalty===t.penalty}));return(r=e,t((function(e,t){u().isEmpty(r)?e():a.voiceQueue.removeTeams({id:l.queueCampaign.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){if(!u().isEmpty(e)){const o=u().map(e,(function(e){return{id:e.id,penalty:u().trim(e.penalty,"penalty ")}}));return a.voiceQueue.addTeams({id:l.queueCampaign.id,teams:o}).$promise.then((function(){t()})).catch((function(e){n(e)}))}t()}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}Vx.$inject=["$mdDialog","$q","toasty","api","queueCampaign","$translate","Auth","crudPermissions"];const Wx=Vx,Qx=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone.html",zx=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html/listadd.html",Kx=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html",Jx=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd.html",Xx=n.p+"templates/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist.html";function Zx(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.queueCampaign=d||e.params.queueCampaign||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.clonedialog=function(e,t){n.show({controller:"QueueCampaigncloneController",controllerAs:"vm",templateUrl:Qx,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:m.queueCampaigns?m.queueCampaigns.rows:[],crudPermissions:m.crudPermissions}})},m.listadddialog=function(e,t){n.show({controller:"QueueCampaignlistaddController",controllerAs:"vm",templateUrl:zx,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:m.queueCampaigns?m.queueCampaigns.rows:[],crudPermissions:m.crudPermissions}})},m.blacklistadddialog=function(e,t){n.show({controller:"QueueCampaignblacklistaddController",controllerAs:"vm",templateUrl:Kx,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:m.queueCampaigns?m.queueCampaigns.rows:[],crudPermissions:m.crudPermissions}})},m.teamadddialog=function(e,t){n.show({controller:"QueueCampaignteamaddController",controllerAs:"vm",templateUrl:Jx,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:m.queueCampaigns?m.queueCampaigns.rows:[],crudPermissions:m.crudPermissions}})},m.agentadddialog=function(e,t){n.show({controller:"QueueCampaignagentaddController",controllerAs:"vm",templateUrl:OD,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:m.queueCampaigns?m.queueCampaigns.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.resetlistdialog=function(e,t){s.voiceQueue.getLists({id:e.id,fields:"id,name",nolimit:!0}).$promise.then((function(o){if(u().isNil(o.rows)||u().isEmpty(o.rows))l.info({title:"Campaign Without Lists"});else if(1===o.rows.length){const e=n.confirm().title("Are you sure want to reset the list "+o.rows[0].name+" ?").htmlContent("<b>"+o.rows[0].name+"</b> will be reset.").ariaLabel("Reset List").targetEvent(t).ok("OK").cancel("CANCEL");n.show(e).then((function(){!function(e,t){const n=t.id;s.voiceQueue.removeLists({id:e,ids:n}).$promise.then((function(){return s.voiceQueue.addLists({id:e,ids:n,dialCheckDuplicateType:"never"}).$promise})).then((function(){l.success({title:"Reset Succesfull",msg:"List "+t.name+" has been reset"})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:queueCampaign.REMOVELIST",msg:e.status?JSON.stringify(e.data):e.toString()})}))}(m.queueCampaign.id,o.rows[0])}))}else n.show({controller:"QueueCampaignresetlistController",controllerAs:"vm",templateUrl:Xx,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!1,locals:{queueCampaign:e,listsCampaign:o?o.rows:[]}})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:RESETLIST",msg:e.status?JSON.stringify(e.data):e.toString()})}))},m.gotogoto=function(){if(!c.hasRole("admin"))return s.userProfileSection.get({userProfileId:c.getCurrentUser().userProfileId,sectionId:1510}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;n&&n.enabled?e.go("app.motiondialer.realtime.queues",{}):l.info({title:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:o.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));e.go("app.motiondialer.realtime.queues",{})},m.alert=l.info,m.gotoQueueCampaigns=function(){e.go("app.motiondialer.queueCampaigns",{},{reload:"app.motiondialer.queueCampaigns"})},m.saveQueueCampaign=function(){s.voiceQueue.update({id:m.queueCampaign.id},m.queueCampaign).$promise.then((function(){l.success({title:"QueueCampaign updated!",msg:m.queueCampaign.name?m.queueCampaign.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvoiceQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.voiceMusicOnHold.get({fields:"id,name",nolimit:"true"}).$promise.then((function(e){m.musiconholds=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_MUSICONHOLDS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.voiceMusicOnHold.get({fields:"id,name",nolimit:"true"}).$promise.then((function(e){m.musiconholds=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:407}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;return t?t.autoAssociation?void 0:s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.musiconholds,{id:e.resourceId})}));let n=null;if(m.queueCampaign&&(n=u().find(m.musiconholds,{name:m.queueCampaign.musiconhold})),n&&!u().some(t,["id",n.id])){const e=u().find(m.musiconholds,{id:n.id});e.canSelect=!1,t.push(e)}m.musiconholds=t})):s.voiceMusicOnHold.get({fields:"id,name",nolimit:"true",defaultEntry:!0}).$promise.then((function(e){m.musiconholds=e.rows||[]}))})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETmusiconholds",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.trunks=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.trunks=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.trunks,{id:e.resourceId})}));let n=null;if(m.queueCampaign&&(n=u().find(m.trunks,{id:Number(m.queueCampaign.TrunkId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.trunks,{id:n.id});e.canSelect=!1,t.push(e)}m.trunks=t}))}else{const e=[];let t=null;m.queueCampaign&&(t=u().find(m.trunks,{id:Number(m.queueCampaign.TrunkId)}));for(let n=0;n<m.trunks.length;n++)t&&m.trunks[n].id===t.id&&(m.trunks[n].canSelect=!1,e.push(m.trunks[n]));m.trunks=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.projects=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PROJECTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.squareProject.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.projects=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1103}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.projects,{id:e.resourceId})}));let n=null;if(m.queueCampaign&&(n=u().find(m.projects,{name:m.queueCampaign.dialQueueProject})),n&&!u().some(t,["id",n.id])){const e=u().find(m.projects,{id:n.id});e.canSelect=!1,t.push(e)}m.projects=t}))}else{const e=[];let t=null;m.queueCampaign&&(t=u().find(m.projects,{name:m.queueCampaign.dialQueueProject}));for(let n=0;n<m.projects.length;n++)t&&m.projects[n].id===t.id&&(m.projects[n].canSelect=!1,e.push(m.projects[n]));m.projects=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETprojects",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){m.interval=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){m.interval=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.interval,{id:e.resourceId})}));let n=null;if(m.queueCampaign&&(n=u().find(m.interval,{id:Number(m.queueCampaign.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.interval,{id:n.id});e.canSelect=!1,t.push(e)}m.interval=t}))}else{const e=[];let t=null;m.queueCampaign&&(t=u().find(m.interval,{id:Number(m.queueCampaign.IntervalId)}));for(let n=0;n<m.interval.length;n++)t&&m.interval[n].id===t.id&&(m.interval[n].canSelect=!1,e.push(m.interval[n]));m.interval=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}Zx.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","queueCampaign","userProfileSection"];const eM=Zx;function tM(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.queueCampaigns=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="queueCampaigns",b.listOrder="",b.listOrderAsc=null,b.selectedQueueCampaigns=[],b.query={fields:"createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold",type:"outbound",sort:"-updatedAt",channel:"voice",limit:10,page:1},b.arraydialCheckDuplicateType=u().keyBy([{option:"ALWAYS",value:"'always'"},{option:"NEVER",value:"'never'"},{option:"ONLY_IF_OPEN",value:"'onlyIfOpen'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayautopause=u().keyBy([{option:"Yes",value:"'all'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arrayringinuse=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraytimeoutrestart=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraymonitor_format=u().keyBy([{option:"Inactive",value:"''"},{option:"wav",value:"'wav'"},{option:"wav49",value:"'wav49'"},{option:"gsm",value:"'gsm'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysetinterfacevar=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysetqueuevar=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraysetqueueentryvar=u().keyBy([{option:"Yes",value:"'yes'"},{option:"No",value:"'no'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraydialOrderByScheduledAt=u().keyBy([{option:"DESC",value:"'DESC'"},{option:"ASC",value:"'ASC'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraydialMethod=u().keyBy([{option:"Progressive",value:"'progressive'"},{option:"PowerDialing",value:"'power'"},{option:"Predictive",value:"'predictive'"},{option:"Preview",value:"'preview'"},{option:"BookedProgressive",value:"'booked'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraydialPredictiveOptimization=u().keyBy([{option:"AgentBusyFactor",value:"'agentBusyFactor'"},{option:"DropRate",value:"'dropRate'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.arraystrategy=u().keyBy([{option:"Round Robin Memory",value:"'rrmemory'"},{option:"Round Robin",value:"'roundrobin'",ngIf:"vm.queueCampaign.dialMethod === 'booked'"},{option:"Least Recent",value:"'leastrecent'",ngIf:"vm.queueCampaign.dialMethod !== 'booked'"},{option:"Fewest Calls",value:"'fewestcalls'",ngIf:"vm.queueCampaign.dialMethod !== 'booked'"},{option:"Random",value:"'random'",ngIf:"vm.queueCampaign.dialMethod !== 'booked'"},{option:"Linear",value:"'linear'",ngIf:"vm.queueCampaign.dialMethod !== 'booked'"},{option:"Weight Random",value:"'wrandom'",ngIf:"vm.queueCampaign.dialMethod !== 'booked'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.motiondialer.queueCampaigns.edit",{id:e.id,queueCampaign:e,crudPermissions:b.crudPermissions})},b.clonedialog=function(e,t){o.show({controller:"QueueCampaigncloneController",controllerAs:"vm",templateUrl:Qx,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:b.queueCampaigns?b.queueCampaigns.rows:[],crudPermissions:b.crudPermissions}})},b.listadddialog=function(e,t){o.show({controller:"QueueCampaignlistaddController",controllerAs:"vm",templateUrl:zx,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:b.queueCampaigns?b.queueCampaigns.rows:[],crudPermissions:b.crudPermissions}})},b.blacklistadddialog=function(e,t){o.show({controller:"QueueCampaignblacklistaddController",controllerAs:"vm",templateUrl:Kx,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:b.queueCampaigns?b.queueCampaigns.rows:[],crudPermissions:b.crudPermissions}})},b.teamadddialog=function(e,t){o.show({controller:"QueueCampaignteamaddController",controllerAs:"vm",templateUrl:Jx,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:b.queueCampaigns?b.queueCampaigns.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"QueueCampaignagentaddController",controllerAs:"vm",templateUrl:OD,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{queueCampaign:e,queueCampaigns:b.queueCampaigns?b.queueCampaigns.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("queueCampaign")+"?").htmlContent("<b>"+(e.name||"queueCampaign")+"</b> will be deleted.").ariaLabel("delete queueCampaign").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:1510}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.motiondialer.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.motiondialer.realtime.queues",{})},b.success=A,b.getQueueCampaigns=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.voiceQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="QueueCampaigns",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditQueueCampaign=function(e,t){o.show({controller:"CreateOrEditQueueCampaignDialogController",controllerAs:"vm",templateUrl:MD,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{queueCampaign:t,queueCampaigns:b.queueCampaigns.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteQueueCampaign=S,b.exportSelectedQueueCampaigns=function(){const e=angular.copy(b.selectedQueueCampaigns);return b.selectedQueueCampaigns=[],e},b.deleteSelectedQueueCampaigns=function(e){const t=o.confirm().title("Are you sure want to delete the selected queueCampaigns?").htmlContent("<b>"+b.selectedQueueCampaigns.length+" selected</b> will be deleted.").ariaLabel("delete QueueCampaigns").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedQueueCampaigns.forEach((function(e){S(e)})),b.selectedQueueCampaigns=[]}))},b.deselectQueueCampaigns=function(){b.selectedQueueCampaigns=[]},b.selectAllQueueCampaigns=function(){b.selectedQueueCampaigns=b.queueCampaigns.rows},g.hasRole("admin")?f.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.trunks=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TRUNKS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.trunk.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.trunks=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1011}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.trunks,{id:e.resourceId})}));let n=null;n=[],b.queueCampaigns.rows.forEach((function(e){const t=u().find(b.trunks,{id:Number(e.TrunkId)});n.push(t)})),u().isEmpty(n)||n.forEach((function(e){if(!u().some(t,["id",e.id])){const n=u().find(b.trunks,{id:e.id});n.canSelect=!1,t.push(n)}})),b.trunks=t}))}else{const e=[],t=[];b.queueCampaigns.rows.forEach((function(e){const n=u().find(b.trunks,{id:Number(e.TrunkId)});t.push(n)}));for(let n=0;n<b.trunks.length;n++){u().some(t,{id:b.trunks[n].id})&&(b.trunks[n].canSelect=!1,e.push(b.trunks[n]))}b.trunks=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtrunks",msg:e.data?JSON.stringify(e.data):e.toString()})})),g.hasRole("admin")?f.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){b.interval=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVAL",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.interval.get({fields:"id,name",sort:"name",IntervalId:"null"}).$promise.then((function(e){b.interval=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.interval,{id:e.resourceId})}));let n=null;if(b.queueCampaign&&(n=u().find(b.interval,{id:Number(b.queueCampaign.IntervalId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.interval,{id:n.id});e.canSelect=!1,t.push(e)}b.interval=t}))}else{const e=[];let t=null;b.queueCampaign&&(t=u().find(b.interval,{id:Number(b.queueCampaign.IntervalId)}));for(let n=0;n<b.interval.length;n++)t&&b.interval[n].id===t.id&&(b.interval[n].canSelect=!1,e.push(b.interval[n]));b.interval=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETinterval",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.queueCampaigns=e||{count:0,rows:[]}}function S(e){f.voiceQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.queueCampaigns.rows,{id:e.id}),b.queueCampaigns.count-=1,b.queueCampaigns.rows.length||b.getQueueCampaigns(),p.success({title:u().startCase("QueueCampaign")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEvoiceQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEvoiceQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getQueueCampaigns())}))}tM.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","queueCampaigns","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const nM=tM;function aM(e,t){e.state("app.motiondialer",{abstract:!0,url:"/motiondialer"}).state("app.motiondialer.queueCampaigns",{url:"/queueCampaigns",views:{"content@app":{templateUrl:YD,controller:"QueueCampaignsController as vm"}},resolve:{queueCampaigns:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("voiceQueue@get",{fields:"createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold",type:"outbound",sort:"-updatedAt",channel:"voice",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"QueueCampaigns",fields:"createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold",type:"outbound",sort:"-updatedAt",channel:"voice",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1501})}]},authenticate:!0,permissionId:1501,bodyClass:"motiondialer"}).state("app.motiondialer.queueCampaigns.edit",{url:"/:id?tab",params:{queueCampaign:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:HD,controller:"QueueCampaignController as vm"}},resolve:{queueCampaign:["apiResolver","$stateParams",function(e,t){return e.resolve("voiceQueue@get",{fields:"createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1501})}]},authenticate:!0,permissionId:1501,bodyClass:"motiondialer"}).state("app.motiondialer.ivrCampaigns",{url:"/ivrCampaigns",views:{"content@app":{templateUrl:BD,controller:"IvrCampaignsController as vm"}},resolve:{ivrCampaigns:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("campaign@get",{fields:"createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength",type:"ivr",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"IvrCampaigns",fields:"createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength",type:"ivr",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1502})}]},authenticate:!0,permissionId:1502,bodyClass:"motiondialer"}).state("app.motiondialer.ivrCampaigns.edit",{url:"/:id?tab",params:{ivrCampaign:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:GD,controller:"IvrCampaignController as vm"}},resolve:{ivrCampaign:["apiResolver","$stateParams",function(e,t){return e.resolve("campaign@get",{fields:"createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1502})}]},authenticate:!0,permissionId:1502,bodyClass:"motiondialer"}),t.addPart("app/main/apps/motiondialer")}aM.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.motiondialer",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.motiondialer.realtime"]).config(aM).controller("CreateOrEditIvrCampaignDialogController",WD).controller("IvrCampaignblacklistaddController",zD).controller("IvrCampaigncloneController",JD).controller("IvrCampaignHopperBlacksController",ZD).controller("IvrCampaignHopperFinalsController",tx).controller("IvrCampaignHopperHistoriesController",ax).controller("IvrCampaignHoppersController",rx).controller("CreateOrEditHopperCampaignIdDialogController",sx).controller("IvrCampaignHopperStatisticsController",cx).controller("IvrCampaignlistaddController",dx).controller("IvrCampaignresetlistController",mx).controller("IvrCampaignController",yx).controller("IvrCampaignsController",Ax).controller("CreateOrEditQueueCampaignDialogController",wx).controller("QueueCampaignagentaddController",Cx).controller("QueueCampaignblacklistaddController",Ix).controller("QueueCampaigncloneController",Dx).controller("QueueCampaignHopperBlacksController",Mx).controller("QueueCampaignHopperFinalsController",Ox).controller("QueueCampaignHopperHistoriesController",Nx).controller("QueueCampaignHoppersController",$x).controller("CreateOrEditHopperVoiceQueueIdDialogController",jx).controller("QueueCampaignHopperStatisticsController",qx).controller("QueueCampaignlistaddController",Hx).controller("QueueCampaignresetlistController",Gx).controller("QueueCampaignteamaddController",Wx).controller("QueueCampaignController",eM).controller("QueueCampaignsController",nM);const oM=n.p+"templates/main/apps/help/views/about/about.html/about.html";function rM(e){const t=o()(e);return t.isValid()?t.format("lll Z"):""}function iM(e,t,n){const a=this;a.baseUrl=n.baseUrl;const{buildDate:o,committedOn:r,tag:i,branch:s,shortHash:l,version:c,name:u,phonebar:d,current:f}=e;a.info={name:u,version:c,branch:s,shortHash:l,tag:i,buildDate:rM(o),committedOn:rM(r),current:f,phonebar:d,client:{name:"motion-client",version:"3.0.0-alpha.8",shortHash:"018e878a",branch:"develop",tag:"",committedOn:"2021-04-20T13:47:37.000Z",buildDate:"2021-04-21T15:39:38.465Z"}},a.license=t}iM.$inject=["info","license","api"];const sM=iM;function lM(e){e.state("app.help.about",{url:"/about",views:{"content@app":{templateUrl:oM,controller:"AboutController as vm"}},resolve:{info:["apiResolver",function(e){return e.resolve("version@get")}]},authenticate:!0,permissionId:1600,bodyClass:"help"})}function cM(e,t){e.state("app.help",{abstract:!0,url:"/help"}),t.addPart("app/main/apps/help")}lM.$inject=["$stateProvider"],angular.module("app.help.about",[]).config(lM).controller("AboutController",sM),cM.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.help",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.help.about"]).config(cM);const uM=n.p+"templates/main/apps/jscripty/views/projects/projects.html/projects.html",dM=n.p+"templates/main/apps/jscripty/views/projects/edit/view.html/view.html";function fM(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="JSCRIPTY.EDIT_PROJECT",g.project=angular.copy(l),g.projects=s,g.newProject=!1,g.project||(g.project={enableUncompleteSave:!0,sendUnpauseOnSubmit:!0},g.title="JSCRIPTY.NEW_PROJECT",g.newProject=!0),g.addNewProject=function(){g.errors=[],c.jscriptyProject.save(g.project).$promise.then((function(e){g.projects.unshift(e.toJSON()),i.success({title:"Project properly created",msg:g.project.name?g.project.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.jscriptyProject.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.jscriptyProject.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveProject=function(){g.errors=[],c.jscriptyProject.update({id:g.project.id},g.project).$promise.then((function(e){const t=u().find(g.projects,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Project properly saved!",msg:g.project.name?g.project.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.jscriptyProject.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.jscriptyProject.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteProject=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The project will be deleted.").ariaLabel("Delete Project").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.jscriptyProject.delete({id:g.project.id}).$promise.then((function(){u().remove(g.projects,{id:g.project.id}),i.success({title:"Project properly deleted!",msg:(g.project.name||"project")+" has been deleted!"}),h(g.project)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.jscriptyProject.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.jscriptyProject.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}fM.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","projects","project","api","Auth","license","setting","crudPermissions"];const mM=fM;function pM(e,t,n,a,r,i){const s=this;s.project={},s.localizationMap=i;const l=new Date;l.setHours(0,0,0,0),s.pickerModel={dateStart:new Date(l.getFullYear(),l.getMonth(),1),dateEnd:new Date(l.getFullYear(),l.getMonth()+1,0),selectedTemplate:"TM"},s.init=function(e){s.project=e,s.getAnswers()},s.getSummary=function(){return a.jscriptyProject.getSummary({id:s.project.id,startTime:{$gte:o()(s.pickerModel.dateStart).add(0,"hours").add(0,"minutes").add(0,"seconds").format(),$lte:o()(s.pickerModel.dateEnd).add(23,"hours").add(59,"minutes").add(59,"seconds").format()},nolimit:!0}).$promise.then((function(e){if(void 0!==e.length){const t=[e.buffer],n=new Blob(t,{type:e.type}),a=window.document.createElement("a");a.setAttribute("href",URL.createObjectURL(n)),a.setAttribute("download","jscriptyProjectSummary_"+s.project.id+".csv"),a.click()}else r.info({title:"EXPORT",msg:"No answers available"})})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.jscriptyProject.getSummary",msg:e.data?JSON.stringify(e.data):e.toString()})}))},s.getAnswers=function(){return s.hasIdAnswers=!1,a.jscriptyProject.getAnswers({id:s.project.id,sort:"-createdAt,questionId",createdAt:{$gte:o()(s.pickerModel.dateStart).add(0,"hours").add(0,"minutes").add(0,"seconds").utcOffset(0,!0).format(),$lte:o()(s.pickerModel.dateEnd).add(23,"hours").add(59,"minutes").add(59,"seconds").utcOffset(0,!0).format()},nolimit:!0}).$promise.then((function(e){if(e&&e.rows&&void 0!==e.count){s.answers={};for(let t=0,n=e.count;t<n;t++)e.rows[t].questionId&&(s.hasIdAnswers=!0,void 0===s.answers[e.rows[t].questionId]&&(s.answers[e.rows[t].questionId]={question:e.rows[t].question,answers:{},sum:0}),""===e.rows[t].answer&&(e.rows[t].answer="NO_ANSWER"),s.answers[e.rows[t].questionId].answers[e.rows[t].answer]?s.answers[e.rows[t].questionId].answers[e.rows[t].answer]+=1:s.answers[e.rows[t].questionId].answers[e.rows[t].answer]=1,s.answers[e.rows[t].questionId].sum+=1)}})).catch((function(e){r.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETANSWERS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}pM.$inject=["$mdDialog","$document","$window","api","toasty","dateFilterLocalizationFactory"];const gM=pM;const hM=function(){const e=this;e.project={},e.optionsBuilder={questionTypes:["text","textarea","radio","checkbox","select","number","date","time","email","range","url"],elementTypes:["question","paragraph"]},e.init=function(t){e.project=t,u().isObjectLike(t.formData)?e.project.formData=t.formData:e.isJsonString(t.formData)?e.project.formData=JSON.parse(t.formData):e.project.formData={}},e.isJsonString=function(e){if(u().isNil(e))return!1;try{JSON.parse(e)}catch(e){return!1}return!0}};function _M(e,t,n,a,o,r,i){const s=this;function l(t){e.hide(t)}s.newProject=!0,s.project=angular.copy(o),s.projects=r,s.title=i.instant("JSCRIPTY.CLONE_PROJECT"),o&&o.name&&(s.title+=": "+o.name),s.cloneProject=function(){return a.jscriptyProject.clone({id:o.id},s.project).$promise.then((function(e){s.projects.unshift(e.toJSON()),n.success({title:"Project properly cloned",msg:s.project.name?s.project.name+" has been cloned!":""}),t.go("app.jscripty.projects.edit",{id:e.id}),l(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){s.errors=e.data.errors||[{message:e.toString(),type:"api.jscriptyProject.clone"}];for(let t=0;t<e.data.errors.length;t+=1)n.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.jscriptyProject.clone",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},s.closeDialog=l}_M.$inject=["$mdDialog","$state","toasty","api","project","projects","$translate"];const bM=_M;function yM(e,t,n){const a=this;a.project={},a.responseData={},a.formViewer={},a.init=function(e){a.project=e,n.$on("mwForm.pageEvents.pageCurrentChanged",(function(e,t){if(t.currentPage&&a.project.formData&&a.project.formData.pages)for(let e=0,n=a.project.formData.pages.length;e<n;e++)if(t.currentPage.number<e+1&&a.project.formData.pages[e].elements)for(let t=0,n=a.project.formData.pages[e].elements.length;t<n;t++)"question"===a.project.formData.pages[e].elements[t].type&&a.project.formData.pages[e].elements[t].question&&delete a.responseData[a.project.formData.pages[e].elements[t].question.id]}))},a.onSubmit=function(n){const a=e.defer(),o=t.confirm().title("Would you like to save your survey?").textContent("").ariaLabel("survey").targetEvent(n).ok("SAVE").cancel("CANCEL");return t.show(o).then((function(){a.resolve(!0)}),(function(){a.reject()})),a.promise},a.resetViewer=function(){a.formViewer.reset&&a.formViewer.reset()}}yM.$inject=["$q","$mdDialog","$scope"];const vM=yM,AM=n.p+"templates/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog.html";function SM(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.projectSessions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.jscriptyProject.getSessions(f.query,m).$promise}function g(e){c.jscriptySessionReport.delete({id:e.id}).$promise.then((function(){u().remove(f.projectSessions.rows,{id:e.id}),f.projectSessions.count-=1,f.projectSessions.rows.length||p(),l.success({title:"Session deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETjscriptyProject"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETjscriptyProject",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.project={},f.projectSessions={count:0,rows:[]},f.selectedProjectSessions=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed",sort:"-starttime",limit:10,page:1},f.init=function(e,t){f.project=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.id=f.project.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the session?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("session #")+e.id||"session")+"</b> will be deleted.").ariaLabel("delete session").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getProjectSessions=p,f.createOrEditProjectSession=function(e,t){i.show({controller:"CreateOrEditSessionDialogController",controllerAs:"vm",templateUrl:AM,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{project:f.project,session:t,sessions:f.projectSessions.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.showQuestionsProjectSession=function(e,t){i.show({controller:"ShowQuestionsSessionDialogController",controllerAs:"vm",templateUrl:AM,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,resolve:{questions:["apiResolver",function(e){return e.resolve("jscriptySessionReport@getQuestions",{fields:"question,answer",sort:"id",id:t.id})}]},locals:{project:f.project,session:t}})},f.exportSelectedProjectSessions=function(){const e=angular.copy(f.selectedProjectSessions);return f.selectedProjectSessions=[],e},f.deleteProjectSession=g,f.deleteSelectedProjectSessions=function(e){const t=i.confirm().title("Are you sure want to delete the selected sessions?").htmlContent("<b>"+f.selectedProjectSessions.length+" selected</b> will be deleted.").ariaLabel("delete sessions").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedProjectSessions.forEach((function(e){g(e)})),f.selectedProjectSessions=[]}))}}SM.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const wM=SM;function EM(e,t,n,a,o,r,i,s){const l=this;l.title="JSCRIPTY.SESSION_RESULTS",l.session=r,l.questions=i,l.project=s,l.closeDialog=function(e){a.hide(e)}}EM.$inject=["$scope","$state","$location","$mdDialog","toasty","session","questions","project"];const CM=EM,TM=n.p+"templates/main/apps/jscripty/views/projects/edit/clone/clone.html/clone.html";function IM(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.project=u||e.params.project||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.clonedialog=function(e,t){n.show({controller:"ProjectcloneController",controllerAs:"vm",templateUrl:TM,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{project:e,projects:f.projects?f.projects.rows:[],crudPermissions:f.crudPermissions}})},f.alert=l.info,f.gotoProjects=function(){e.go("app.jscripty.projects",{},{reload:"app.jscripty.projects"})},f.saveProject=function(){s.jscriptyProject.update({id:f.project.id},f.project).$promise.then((function(){l.success({title:"Project updated!",msg:f.project.name?f.project.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETjscriptyProject",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}IM.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","project","userProfileSection"];const kM=IM,DM=n.p+"templates/main/apps/jscripty/views/projects/create/dialog.html/dialog.html";function xM(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.projects=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="projects",b.listOrder="",b.listOrderAsc=null,b.selectedProjects=[],b.query={fields:"createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData",sort:"-updatedAt",limit:10,page:1},b.editstate=function(e){n.go("app.jscripty.projects.edit",{id:e.id,project:e,crudPermissions:b.crudPermissions})},b.clonedialog=function(e,t){o.show({controller:"ProjectcloneController",controllerAs:"vm",templateUrl:TM,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{project:e,projects:b.projects?b.projects.rows:[],crudPermissions:b.crudPermissions}})},b.sessionsgoto=function(e){n.go("app.jscripty.projects.edit",{id:e.id,tab:3})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("project")+"?").htmlContent("<b>"+(e.name||"project")+"</b> will be deleted.").ariaLabel("delete project").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getProjects=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.jscriptyProject.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Projects",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditProject=function(e,t){o.show({controller:"CreateOrEditProjectDialogController",controllerAs:"vm",templateUrl:DM,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{project:t,projects:b.projects.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteProject=S,b.exportSelectedProjects=function(){const e=angular.copy(b.selectedProjects);return b.selectedProjects=[],e},b.deleteSelectedProjects=function(e){const t=o.confirm().title("Are you sure want to delete the selected projects?").htmlContent("<b>"+b.selectedProjects.length+" selected</b> will be deleted.").ariaLabel("delete Projects").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedProjects.forEach((function(e){S(e)})),b.selectedProjects=[]}))},b.deselectProjects=function(){b.selectedProjects=[]},b.selectAllProjects=function(){b.selectedProjects=b.projects.rows};let y=!0,v=1;function A(e){b.projects=e||{count:0,rows:[]}}function S(e){f.jscriptyProject.delete({id:e.id}).$promise.then((function(){u().remove(b.projects.rows,{id:e.id}),b.projects.count-=1,b.projects.rows.length||b.getProjects(),p.success({title:u().startCase("Project")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEjscriptyProject"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEjscriptyProject",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getProjects())}))}xM.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","projects","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const MM=xM;function PM(e,t){e.state("app.jscripty",{abstract:!0,url:"/jscripty"}).state("app.jscripty.projects",{url:"/projects",views:{"content@app":{templateUrl:uM,controller:"JscriptyProjectsController as vm"}},resolve:{projects:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("jscriptyProject@get",{fields:"createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Projects",fields:"createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1701})}]},authenticate:!0,permissionId:1701,bodyClass:"jscripty"}).state("app.jscripty.projects.edit",{url:"/:id?tab",params:{project:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:dM,controller:"JscriptyProjectController as vm"}},resolve:{project:["apiResolver","$stateParams",function(e,t){return e.resolve("jscriptyProject@get",{fields:"createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1701})}]},authenticate:!0,permissionId:1701,bodyClass:"jscripty"}),t.addPart("app/main/apps/jscripty")}PM.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.jscripty",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter"]).config(PM).controller("CreateOrEditProjectDialogController",mM).controller("ProjectAnswersController",gM).controller("ProjectBuilderController",hM).controller("ProjectcloneController",bM).controller("ProjectViewerController",vM).controller("ProjectSessionsController",wM).controller("ShowQuestionsSessionDialogController",CM).controller("JscriptyProjectController",kM).controller("JscriptyProjectsController",MM);const OM=n.p+"templates/main/apps/marketplace/views/plugins/plugins.html/plugins.html",RM=n.p+"templates/main/apps/marketplace/views/plugins/edit/view.html/view.html";function NM(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="MARKETPLACE.EDIT_PLUGIN",g.plugin=angular.copy(l),g.plugins=s,g.newPlugin=!1,g.plugin||(g.plugin={},g.title="MARKETPLACE.NEW_PLUGIN",g.newPlugin=!0),g.addNewPlugin=function(){g.errors=[],c.plugin.save(g.plugin).$promise.then((function(e){g.plugins.unshift(e.toJSON()),i.success({title:"Plugin properly created",msg:g.plugin.name?g.plugin.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.plugin.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.plugin.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.savePlugin=function(){g.errors=[],c.plugin.update({id:g.plugin.id},g.plugin).$promise.then((function(e){const t=u().find(g.plugins,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"Plugin properly saved!",msg:g.plugin.name?g.plugin.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.plugin.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.plugin.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deletePlugin=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The plugin will be deleted.").ariaLabel("Delete Plugin").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.plugin.delete({id:g.plugin.id}).$promise.then((function(){u().remove(g.plugins,{id:g.plugin.id}),i.success({title:"Plugin properly deleted!",msg:(g.plugin.name||"plugin")+" has been deleted!"}),h(g.plugin)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.plugin.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.plugin.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}NM.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","plugins","plugin","api","Auth","license","setting","crudPermissions"];const LM=NM;function $M(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.plugin=u||e.params.plugin||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.alert=l.info,f.gotoPlugins=function(){e.go("app.marketplace.plugins",{},{reload:"app.marketplace.plugins"})},f.savePlugin=function(){s.plugin.update({id:f.plugin.id},f.plugin).$promise.then((function(){l.success({title:"Plugin updated!",msg:f.plugin.name?f.plugin.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETplugin",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}$M.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","plugin","userProfileSection"];const UM=$M,jM=n.p+"templates/main/apps/marketplace/views/plugins/create/dialog.html/dialog.html",FM=n.p+"templates/main/apps/marketplace/views/plugins/upload/dialog.html/dialog.html";function qM(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.plugins=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="plugins",b.listOrder="",b.listOrderAsc=null,b.selectedPlugins=[],b.query={fields:"createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version",sort:"-updatedAt",limit:10,page:1},b.installing=!1,b.arraysidebar=u().keyBy([{option:"Always",value:"'always'"},{option:"Admin Only",value:"'adminOnly'"},{option:"Agent Only",value:"'agentOnly'"},{option:"Never",value:"'never'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.installplugin=function(e){if("script"!==e.type)return e.active=!0,f.plugin.update({id:e.id},e).$promise.then((function(){p.success({title:"Plugin installed!",msg:e.name?e.name+" has been installed!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"api.plugin.update"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.plugin.update",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}));b.installing=!0,f.pm2.save({name:e.scriptName,script:e.path+"/"+e.scriptPath}).$promise.then((function(){return e.active=!0,f.plugin.update({id:e.id},e).$promise})).then((function(){b.installing=!1,p.success({title:"Plugin installed!",msg:e.name?e.name+" has been installed!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"api.pm2.save"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.pm2.save",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))},b.editstate=function(e){n.go("app.marketplace.plugins.edit",{id:e.id,plugin:e,crudPermissions:b.crudPermissions})},b.stopplugin=function(e,t){const n=o.confirm().title("Are you sure want to stop the plugin attached process?").htmlContent("<b>"+(e.name||"plugin")+"</b> attached process will be stoppped.").ariaLabel("stop plugin process").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){!function(e){f.pm2.get().$promise.then((function(t){if(!t||!t.rows)throw new Error("Failed to retrieve pm2 processes");const n=u().find(t.rows,{name:e.scriptName});if(!n)throw new Error("No corresponding process found");f.pm2.update({id:n.pm_id,status:"stopped"}).$promise.then((function(){p.success({title:"Process stopped!",msg:"Attached pm2 process successfully stopped"})}))})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"api.pm2.update"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.pm2.update",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}(e)}),(function(){console.log("CANCEL")}))},b.restartplugin=function(e,t){const n=o.confirm().title("Are you sure want to restart the plugin attached process?").htmlContent("<b>"+(e.name||"plugin")+"</b> attached process will be restarted.").ariaLabel("restart plugin process").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){!function(e){f.pm2.get().$promise.then((function(t){if(!t||!t.rows)throw new Error("Failed to retrieve pm2 processes");const n=u().find(t.rows,{name:e.scriptName});if(!n)throw new Error("No corresponding process found");f.pm2.update({id:n.pm_id,status:"online"}).$promise.then((function(){p.success({title:"Process restarted!",msg:"Attached pm2 process successfully restarted"})}))})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"api.pm2.update"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.pm2.update",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}(e)}),(function(){console.log("CANCEL")}))},b.downloadfile2=function(e){return f.plugin.download({id:e.id}).$promise.then((function(t){const n=[t.buffer];let a="download";const o=new Blob(n,{type:t.type});a=e.name.replace(" ","_").toLowerCase()+".zip";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.plugin.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},b.uninstallplugin=function(e,t){const n=o.confirm().title("Are you sure want to uninstall the plugin?").htmlContent("<b>"+(e.name||"plugin")+"</b> will be uninstalled.").ariaLabel("uninstall plugin").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){!function(e){"script"===e.type&&f.pm2.get().$promise.then((function(t){if(!t||!t.rows)throw new Error("Failed to retrieve pm2 processes");const n=u().find(t.rows,{name:e.scriptName});if(!n)throw new Error("No corresponding process found");f.pm2.delete({id:n.pm_id,name:e.scriptName}).$promise})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.pm2.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}));e.active=!1,f.plugin.update({id:e.id},e).$promise.then((function(){p.success({title:"Plugin uninstalled!",msg:e.name?e.name+" has been uninstalled!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"api.plugin.update"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.plugin.update",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}(e)}),(function(){console.log("CANCEL")}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("plugin")+"?").htmlContent("<b>"+(e.name||"plugin")+"</b> will be deleted.").ariaLabel("delete plugin").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getPlugins=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.plugin.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="Plugins",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditPlugin=function(e,t){o.show({controller:"CreateOrEditPluginDialogController",controllerAs:"vm",templateUrl:jM,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{plugin:t,plugins:b.plugins.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deletePlugin=S,b.exportSelectedPlugins=function(){const e=angular.copy(b.selectedPlugins);return b.selectedPlugins=[],e},b.deleteSelectedPlugins=function(e){const t=o.confirm().title("Are you sure want to delete the selected plugins?").htmlContent("<b>"+b.selectedPlugins.length+" selected</b> will be deleted.").ariaLabel("delete Plugins").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedPlugins.forEach((function(e){S(e)})),b.selectedPlugins=[]}))},b.deselectPlugins=function(){b.selectedPlugins=[]},b.selectAllPlugins=function(){b.selectedPlugins=b.plugins.rows},b.uploadPlugin=function(e){o.show({controller:"UploadPluginDialogController",controllerAs:"vm",templateUrl:FM,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{plugins:b.plugins.rows}})};let y=!0,v=1;function A(e){b.plugins=e||{count:0,rows:[]}}function S(e){e.active&&"script"==e.type&&f.pm2.get().$promise.then((function(t){if(!t||!t.rows)return p.error({title:"Plugin not deleted!",msg:"Failed to retrieve pm2 processes"});const n=u().find(t.rows,{name:e.scriptName});n?f.pm2.delete({id:n.pm_id,name:e.scriptName}).$promise:console.log("No '%s' process found",e.scriptName)})).catch((function(){return p.error({title:"PM2 process not found!",msg:"Failed to delete the attached pm2 process"})})),f.plugin.delete({id:e.id}).$promise.then((function(){u().remove(b.plugins.rows,{id:e.id}),b.plugins.count-=1,b.plugins.rows.length||b.getPlugins(),p.success({title:u().startCase("Plugin")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEplugin"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEplugin",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getPlugins())}))}qM.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","plugins","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const YM=qM;function HM(e,t,n,a,o,r){const i=this,s=2097152;i.baseUrl=o.baseUrl,i.currentUser=r.getCurrentUser(),i.errors=[],i.title="MARKETPLACE.UPLOAD_PLUGIN",i.plugins=a,i.uploadPlugins=[],i.uploadState="none",i.plugin={},i.ngFlowOptions={maxChunkRetries:1,chunkSize:s,simultaneousUploads:1,testChunks:!1,progressCallbacksInterval:1e3,allowDuplicateUploads:!0,target:`${i.baseUrl}api/plugins`},i.ngFlow={flow:{}},i.dropping=!1,i.fileAdded=function(e){const t=["zip"];if(!u().includes(t,e.getExtension()))return n.error({title:"Invalid extension: "+e.getExtension(),msg:"Supported extension: "+t.join()}),!1;if(e.size>s)return n.error({title:"File too big",msg:"The max allowed size is 2MB"}),!1;return i.plugin={id:e.uniqueIdentifier,file:e},i.uploadPlugins.unshift(i.plugin),!0},i.upload=function(){i.uploadState="uploading",i.ngFlow.flow.opts.headers={"X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+e.get("motion.token")},i.ngFlow.flow.opts.query={role:i.currentUser.role,userProfileId:i.currentUser.userProfileId},i.ngFlow.flow.upload()},i.fileSuccess=function(e,t){i.plugins.unshift(JSON.parse(t)),angular.forEach(i.uploadPlugins,(function(t){if(t.id===e.uniqueIdentifier){const e=new FileReader;e.readAsDataURL(t.file.file),e.onload=function(e){t.url=e.target.result}}}))},i.uploadError=function(){i.ngFlow.flow.cancel(),n.error({title:"Upload error",msg:"Cannot upload the plugin"}),i.uploadState="failed"},i.uploadComplete=function(){"failed"!==i.uploadState&&(i.uploadState="completed",n.success({title:"Upload completed",msg:i.plugin.file.name+" uploaded successfully"}))},i.closeDialog=function(){t.hide()}}HM.$inject=["$cookies","$mdDialog","toasty","plugins","api","Auth"];const BM=HM;function GM(e,t){e.state("app.marketplace",{abstract:!0,url:"/marketplace"}).state("app.marketplace.plugins",{url:"/plugins",views:{"content@app":{templateUrl:OM,controller:"MarketplacePluginsController as vm"}},resolve:{plugins:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("plugin@get",{fields:"createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Plugins",fields:"createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1801})}]},authenticate:!0,permissionId:1801,bodyClass:"marketplace"}).state("app.marketplace.plugins.edit",{url:"/:id?tab",params:{plugin:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:RM,controller:"MarketplacePluginController as vm"}},resolve:{plugin:["apiResolver","$stateParams",function(e,t){return e.resolve("plugin@get",{fields:"createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:1801})}]},authenticate:!0,permissionId:1801,bodyClass:"marketplace"}),t.addPart("app/main/apps/marketplace")}GM.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.marketplace",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter"]).config(GM).controller("CreateOrEditPluginDialogController",LM).controller("MarketplacePluginController",UM).controller("MarketplacePluginsController",YM).controller("UploadPluginDialogController",BM);const VM=n.p+"templates/main/apps/plugins/views/plugin/plugin.html/plugin.html";function WM(e,t,n,a,o,r){const i=this;i.currentUser=r.getCurrentUser(),i.plugin={},i.getTrustedURL=function(){return n.trustAsResourceUrl(""+i.plugin.adminUrl)},a.plugin.get({id:e.params.id}).$promise.then((function(e){if(e)return i.plugin=e,a.plugin.get({id:i.plugin.id}).$promise})).catch((function(){i.plugin=void 0}))}WM.$inject=["$state","$scope","$sce","api","socket","Auth"];const QM=WM;function zM(e){e.state("app.plugins.plugin",{url:"/plugin/:id",views:{"content@app":{templateUrl:VM,controller:"PluginController as vm"}},resolve:{},authenticate:!0,bodyClass:"plugins"})}function KM(e,t){e.state("app.plugins",{abstract:!0,url:"/plugins"}),t.addPart("app/main/apps/plugins")}zM.$inject=["$stateProvider"],angular.module("app.plugins.plugin",[]).config(zM).controller("PluginController",QM),KM.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.plugins",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.plugins.plugin"]).config(KM);const JM=n.p+"templates/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings.html";function XM(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="VIDEO.EDIT_SCREENRECORDING",g.screenRecording=angular.copy(l),g.screenRecordings=s,g.newscreenRecording=!1,g.screenRecording||(g.screenRecording={},g.title="VIDEO.NEW_SCREENRECORDING",g.newscreenRecording=!0),g.addNewscreenRecording=function(){g.errors=[],c.screenRecording.save(g.screenRecording).$promise.then((function(e){g.screenRecordings.unshift(e.toJSON()),i.success({title:"screenRecording properly created",msg:g.screenRecording.name?g.screenRecording.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.screenRecording.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.screenRecording.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.savescreenRecording=function(){g.errors=[],c.screenRecording.update({id:g.screenRecording.id},g.screenRecording).$promise.then((function(e){const t=u().find(g.screenRecordings,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"screenRecording properly saved!",msg:g.screenRecording.name?g.screenRecording.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.screenRecording.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.screenRecording.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deletescreenRecording=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The screenRecording will be deleted.").ariaLabel("Delete screenRecording").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.screenRecording.delete({id:g.screenRecording.id}).$promise.then((function(){u().remove(g.screenRecordings,{id:g.screenRecording.id}),i.success({title:"screenRecording properly deleted!",msg:(g.screenRecording.name||"screenRecording")+" has been deleted!"}),h(g.screenRecording)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.screenRecording.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.screenRecording.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,c.user.get({fields:"id,name,fullname",sort:"name",nolimit:"true"}).$promise.then((function(e){g.users=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERS",msg:e.data?JSON.stringify(e.data):e.toString()})}))}XM.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","screenRecordings","screenRecording","api","Auth","license","setting","crudPermissions"];const ZM=XM;function eP(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.loading=!1,d.recording=Object.assign({},o),d.route="screenRecording",d.element=l,d.actionOptions=Object.assign({},r),d.path=s,d.label=i,d.app="video",d.model="screenRecording",console.log("TCL: vm.path",d.path),console.log("TCL: vm.recording[vm.path]",d.recording[d.path]),d.filename=d.recording[d.path].indexOf("/")>-1?d.recording[d.path].substring(d.recording[d.path].lastIndexOf("/")+1):d.recording[d.path].indexOf("\\")>-1?d.recording[d.path].substring(d.recording[d.path].lastIndexOf("\\")+1):d.recording[d.path],d.format=!1,u().isNil(d.recording.format)&&(d.recording.format=d.filename.slice(d.filename.lastIndexOf("."))),(".wav"===d.recording.format&&"audio"===d.element||".mp4"===d.recording.format&&"video"===d.element)&&(d.format=!0),d.found=!0,d.format&&function(){const e=c.defer();a.screenRecording.download({id:d.recording.id,path:String(d.path)}).$promise.then((function(){d.format=!0,d.found=!0,e.resolve()})).catch((function(){console.log("err"),d.format=!1,d.found=!1,e.resolve()})),e.promise}(),!u().isNil(r.properties)&&r.properties){d.properties=Object.assign({},o);if(Object.keys(o).forEach((function(e){String(e[0].toUpperCase())===String(e[0])&&delete d.properties[e]})),d.propertiesDefault={},!u().isNil(r.propertiesList)&&r.propertiesList.length>0){d.propertiesDefault=Object.assign({},o);const e=r.propertiesList,t=Object.keys(o);let n=!0;t.forEach((function(t){n=!0,e.forEach((function(e){String(t)===String(e)&&(n=!1)})),n&&delete d.propertiesDefault[t]})),d.properties=d.propertiesDefault}if(!u().isNil(r.extraData)&&r.extraData.length>0){d.propertiesExtra={};const e=r.extraData;for(let t=0;t<e.length;t++){const n=e[t].values,a=e[t].model;for(let e=0;e<n.length;e++)d.propertiesExtra[n[e].text]=o[a][n[e].key]}d.properties=Object.assign({},d.propertiesDefault,d.propertiesExtra)}}d.closeDialog=function(){t.hide()}}eP.$inject=["$scope","$mdDialog","toasty","api","recording","actionOptions","label","varPath","elementTag","$q"];const tP=eP,nP=n.p+"templates/main/apps/video/views/screenRecordings/create/dialog.html/dialog.html",aP=n.p+"templates/main/apps/video/views/screenRecordings/partialViews/play.html/play.html";function oP(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.baseUrl=f.baseUrl,b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.screenRecordings=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="screenRecordings",b.listOrder="",b.listOrderAsc=null,b.selectedScreenRecordings=[],b.query={fields:"createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt",createdAt:"@msUtils.firstLastDayMonth()",includeAll:!0,sort:"-updatedAt",limit:10,page:1},b.query.createdAt=m.firstLastDayMonth(),b.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE_RANGE"}],b.playrecording=function(e,t,n,a,i){const s={route:"screenRecording",name:"screenRecordings",model:"screenRecording",singular:"screenRecording"};a=String(a);const l=String(n);console.log("TCL:  path",String(n)),o.show({controller:"ScreenRecordingplayController",controllerAs:"vm",templateUrl:aP,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{recording:e,recordings:b.screenRecordings.rows,license:b.license,setting:null,item:s,actionOptions:{upperTitle:!1,lowerTitle:!0,properties:!0,propertiesIcon:"icon-video",propertiesList:["format","interactionid","duration","startedAt","closedAt","createdAt"],extraData:[{model:"User",values:[{key:"name",text:"agentname"}]}]},label:a,varPath:l,elementTag:String(i)}})},b.downloadfile2=function(e){let t=!1;const n=u().isNil(e.format)?e.value.substring(e.value.lastIndexOf(".")):e.format;t=".mp4"===n;const a=e.value.lastIndexOf("/")>-1?e.value.substring(e.value.lastIndexOf("/")+1):e.value.lastIndexOf("\\")>-1?e.value.substring(e.value.lastIndexOf("\\")+1):e.value;return f.screenRecording.download({id:e.id}).$promise.then((function(e){const t=[e.buffer];let n="download";const o=new Blob(t,{type:e.type});n=a;const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",n),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else"404"===String(e.status)&&!1===t?p.info({title:s.instant("APP.CANT_DOWNLOAD_THIS_FILE"),msg:s.instant("APP.WRONG_EXTENSION")}):"404"===String(e.status)?p.info({title:s.instant("APP.CANT_DOWNLOAD_THIS_FILE"),msg:s.instant("APP.FILE_NOT_FOUND")}):p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.screenRecording.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("screenRecording")+"?").htmlContent("<b>"+(e.name||"screenRecording")+"</b> will be deleted.").ariaLabel("delete screenRecording").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getScreenRecordings=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.screenRecording.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="ScreenRecordings",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditscreenRecording=function(e,t){o.show({controller:"CreateOrEditscreenRecordingDialogController",controllerAs:"vm",templateUrl:nP,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{screenRecording:t,screenRecordings:b.screenRecordings.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deletescreenRecording=S,b.exportSelectedScreenRecordings=function(){const e=angular.copy(b.selectedScreenRecordings);return b.selectedScreenRecordings=[],e},b.deleteSelectedScreenRecordings=function(e){const t=o.confirm().title("Are you sure want to delete the selected screenRecordings?").htmlContent("<b>"+b.selectedScreenRecordings.length+" selected</b> will be deleted.").ariaLabel("delete screenRecordings").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedScreenRecordings.forEach((function(e){S(e)})),b.selectedScreenRecordings=[]}))},b.deselectScreenRecordings=function(){b.selectedScreenRecordings=[]},b.selectAllScreenRecordings=function(){b.selectedScreenRecordings=b.screenRecordings.rows},b.convertDuration=function(e){const t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),a=Math.floor(e/36e5%24),o=a<10?"0"+String(a):String(a),r=n<10?"0"+String(n):String(n),i=t<10?"0"+String(t):String(t);return o+":"+r+":"+i},f.user.get({fields:"id,name,fullname",sort:"name",nolimit:"true"}).$promise.then((function(e){b.users=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_USERS",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.screenRecordings=e||{count:0,rows:[]}}function S(e){f.screenRecording.delete({id:e.id}).$promise.then((function(){u().remove(b.screenRecordings.rows,{id:e.id}),b.screenRecordings.count-=1,b.screenRecordings.rows.length||b.getScreenRecordings(),p.success({title:u().startCase("screenRecording")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEscreenRecording"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEscreenRecording",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getScreenRecordings())}))}oP.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","screenRecordings","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const rP=oP;function iP(e,t){e.state("app.video",{abstract:!0,url:"/video"}).state("app.video.screenRecordings",{url:"/screenRecordings",views:{"content@app":{templateUrl:JM,controller:"ScreenRecordingsController as vm"}},resolve:{screenRecordings:["apiResolver","Auth","msUtils",function(e,t,n){return t.hasRole("admin")?e.resolve("screenRecording@get",{fields:"createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt",createdAt:n.firstLastDayMonth(),includeAll:!0,sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"ScreenRecordings",fields:"createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt",createdAt:n.firstLastDayMonth(),includeAll:!0,sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:2001})}]},authenticate:!0,permissionId:2001,bodyClass:"video"}),t.addPart("app/main/apps/video")}iP.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.video",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter"]).config(iP).controller("CreateOrEditscreenRecordingDialogController",ZM).controller("ScreenRecordingplayController",tP).controller("ScreenRecordingsController",rP);const sP=n.p+"templates/main/apps/whatsapp/views/realtime/realtime.html/realtime.html",lP=n.p+"templates/main/apps/whatsapp/views/realtime/agents/view.html/view.html",cP=n.p+"templates/main/apps/whatsapp/views/realtime/queues/view.html/view.html";function uP(e,t,n,a,r,i,s,l,c,d,f,m,p,g,h,_,b,y){const v=this,A=["userpic","online","lastLoginAt","lastPauseAt","pauseType","lastPauseAt","internal","address","chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","chatCapacity","openchannelCapacity","mailCapacity","smsCapacity","whatsappCapacity","faxCapacity","chatCurrentCapacity","openchannelCurrentCapacity","mailCurrentCapacity","smsCurrentCapacity","whatsappCurrentCapacity","faxCurrentCapacity","chatStatus","openchannelStatus","mailStatus","smsStatus","whatsappStatus","faxStatus","voiceStatus","chatStatusTime","openchannelStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","faxStatusTime","voiceStatusTime","queue","destconnectedlinenum","screenrecording","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording"],S=["chatPause","openchannelPause","mailPause","smsPause","whatsappPause","faxPause","voicePause","online"];v.baseUrl=d.baseUrl,v.currentUser=_.getCurrentUser(),v.availableStates=["ringing","inuse","busy","onhold","not_inuse"],v.pauses=s||{count:0,rows:[]},v.license=b,v.userProfile=g,v.userProfileSection=h&&1==h.count?h.rows[0]:null,v.crudPermissions=_.parseCrudPermissions(v.userProfileSection?v.userProfileSection.crudPermissions:null),v.agents=l?u().keyBy(l.rows?l.rows:[],"id"):{},v.rpcAgents=c?u().keyBy(c.rows?c.rows:[],"id"):{},v.paginatedAgents={},v.load=!1,v.order=[],v.agentInternal={};for(const e in v.agents)void 0!==v.agents[e]&&(v.agents[e].init=!0);v.query={limit:10,page:1,order:"fullname",globalStatusFilter:"",pauseTypeFilter:""},v.logout=function(e){return d.user.logout({id:e.id,device:"realtime",agent_id:e.id,agent_name:e.name}).$promise.then((function(){m.success({title:"Agent logout",msg:e.fullname+"  properly logout"}),v.agents[e.id]&&(v.agents[e.id].online=!1),v.rpcAgents[e.id]&&(v.rpcAgents[e.id].online=!1),E()})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.queueAdd=function(e,t){a.show({controller:"AgentqueueaddController",controllerAs:"vm",templateUrl:ii,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{agent:e,agents:[],channel:"whatsapp",direction:"inbound",crudPermissions:v.crudPermissions}})},v.pause=function(e,t){return d.user.pause({id:e.id,type:t}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.unPause=function(e){return d.user.unpause({id:e.id}).$promise.then((function(t){v.agents[e.id]&&u().merge(v.agents[e.id],u().pick(t,A)),v.rpcAgents[e.id]&&u().merge(v.rpcAgents[e.id],u().pick(t,A)),k(v.agents[e.id])})).catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.staff.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},v.showInfo=function(e){a.show(a.alert().clickOutsideToClose(!0).title("Legend").htmlContent("<div>TODO legend status + state</div>").ok("Ok").targetEvent(e))},v.getAgentStatus=I,v.getAgentGlobalStatus=k,v.isPause=C,v.checkPause=function(e){return"pause"===e},v.isPartialPause=function(e){return"*pause"===e},v.onSave=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(u().omit(e,S),A)),u().merge(v.rpcAgents[e.id],u().pick(u().omit(e,S),A)),k(v.agents[e.id]))},v.onUpdate=function(e){v.agents[e.id]&&(u().merge(v.agents[e.id],u().pick(e,A)),u().merge(v.rpcAgents[e.id],u().pick(e,A)),e.lastPauseAt&&(v.agents[e.id].globalStatusTime=e.lastPauseAt,v.rpcAgents[e.id].globalStatusTime=e.lastPauseAt),k(v.agents[e.id]))},v.onInit=E,v.onConnect=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(u().merge(v.agents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])),u().merge(v.rpcAgents[v.agentInternal[e.destaccountcode]],u().pick(e,["queue","destconnectedlinenum"])))},v.onComplete=function(e){v.agents[v.agentInternal[e.destaccountcode]]&&(v.agents[v.agentInternal[e.destaccountcode]]=u().omit(v.agents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]),v.rpcAgents[v.agentInternal[e.destaccountcode]]=u().omit(v.rpcAgents[v.agentInternal[e.destaccountcode]],["queue","destconnectedlinenum"]))},v.screenRecording=function(e,t){return d.user.update({id:e.id},{screenrecording:t}).$promise.catch((function(e){m.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.user.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},f.on("user:save",v.onSave),f.on("user:update",v.onUpdate),f.on("user:agentconnect",v.onConnect),f.on("user:agentcomplete",v.onComplete),E();let w=y((function(){v.load&&(v.load=!1,E())}),999);function E(){v.load=!1;const e=t.defer();v.promise=e.promise,v.filteredAgents=[],v.order=[],u().forIn(v.agents,(function(e,t){v.rpcAgents[t]&&u().merge(e,u().pick(u().omit(v.rpcAgents[t],S),A)),k(e),e.online?(v.filteredAgents.push(e),v.agentInternal[e.internal]=t):e.globalStatusTime=u().toNumber(o()().format("x"))})),v.query.globalStatusFilter&&u().remove(v.filteredAgents,(function(e){return e.globalStatus!==v.query.globalStatusFilter})),v.query.pauseTypeFilter&&u().remove(v.filteredAgents,(function(e){return e.pauseType!==v.query.pauseTypeFilter})),v.query.filter&&u().remove(v.filteredAgents,(function(e){return e.fullname.toLowerCase().indexOf(v.query.filter.toLowerCase())<0})),v.filteredAgents=function(e){const t=u().startsWith(v.query.order,"-")?"desc":"asc";return u().orderBy(e,[v.query.order.replace("-","")],[t])}(v.filteredAgents);const n=(v.query.page-1)*v.query.limit;v.paginatedAgents=u().drop(v.filteredAgents,n).slice(0,v.query.limit);for(let e=0;e<v.paginatedAgents.length;e+=1)v.order.push(v.paginatedAgents[e].id);e.resolve(),v.load=!0}function C(e){return"pause"===e||"*pause"===e}function T(e){return"idle"===e||"unknown"===e||"unavailable"===e||"ringing"===e||u().isNil(e)}function I(e,t){return"voice"===t?"idle"!==e[t+"Status"]?e[t+"Status"]:e[t+"Pause"]?(e[t+"Status"]="pause","pause"):"idle":e[t+"Pause"]?(e[t+"Status"]="pause","pause"):e[t+"Status"]}function k(e){let t="unknown";t=u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"pause":u().some([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],C)?"*pause":u().every([I(e,"voice"),I(e,"chat"),I(e,"mail"),I(e,"openchannel"),I(e,"sms"),I(e,"whatsapp"),I(e,"fax")],T)?"idle":"busy",e.globalStatus!==t&&(e.globalStatus=t,e.init?(e.init=!1,e.globalStatusTime=C(t)?u().toNumber(o()(e.lastPauseAt).format("x")):u().max([e.voiceStatusTime,e.chatStatusTime,e.mailStatusTime,e.smsStatusTime,e.whatsappStatusTime,e.openchannelStatusTime,e.faxStatusTime])):e.globalStatusTime=u().toNumber(o()().format("x")))}e.$on("$destroy",(function(){f.removeAllListeners("user:save"),f.removeAllListeners("user:update"),f.removeAllListeners("user:agentconnect"),f.removeAllListeners("user:agentcomplete"),w&&(y.cancel(w),w=null)}))}uP.$inject=["$scope","$q","$timeout","$mdDialog","$document","$filter","pauses","agents","rpcAgents","api","socket","toasty","helperClasses","userProfile","userProfileSection","Auth","license","$interval"];const dP=uP,fP=n.p+"templates/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog.html",mP=n.p+"templates/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd.html";function pP(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this,h=["loggedIn","available","waiting","talking","pTalking","originated","message","dialActive","dialMethod","Trunk","paused"];function _(){const e=[];return u().forIn(g.queues,(function(t,n){t.paused=0,t.loggedInDb=0,g.queues[n].agents={},e.push(l.whatsappQueue.getMembers({id:n}).$promise),g.rpcQueues[n]&&u().merge(t,u().pick(g.rpcQueues[n],h))})),a.all(e).then((function(e){for(let t=0;t<e.length;t+=1)for(let n=0;n<e[t].rows.length;n++)e[t].rows[n].paused&&g.queues[e[t].rows[n].WhatsappQueueId].paused++,g.queues[e[t].rows[n].WhatsappQueueId].loggedInDb++,g.queues[e[t].rows[n].WhatsappQueueId].agents[e[t].rows[n].UserId]=e[t].rows[n].WhatsappQueueId})).catch((function(e){console.error(e)}))}function b(e){if(g.count=e.count,g.queues=e?u().keyBy(e.rows?e.rows:[],"id"):{},e.rows){g.order=[];for(let t=0;t<e.rows.length;t++)g.order.push(e.rows[t].id)}_()}g.currentUser=p.getCurrentUser(),g.count=i.count?i.count:0,g.queues=i?u().keyBy(i.rows?i.rows:[],"id"):{},g.rpcQueues=s?u().keyBy(s.rows?s.rows:[],"id"):{},g.userProfile=f,g.userProfileSection=m&&1==m.count?m.rows[0]:null,g.crudPermissions=p.parseCrudPermissions(g.userProfileSection?g.userProfileSection.crudPermissions:null),p.hasRole("admin")?g.query={type:"inbound",sort:"-updatedAt",limit:10,page:1}:g.query={id:g.currentUser.id,channel:"whatsapp",type:"inbound",sort:"-updatedAt",limit:10,page:1},g.success=b,g.getQueues=function(){g.query.offset=(g.query.page-1)*g.query.limit,p.hasRole("admin")?g.promise=l.whatsappQueue.get(g.query,b).$promise:(g.query.id=g.userProfile.id,g.query.section="WhatsappQueues",g.promise=l.userProfile.getResources(g.query,b).$promise)},g.createOrEditWhatsappQueue=function(e,t){n.show({controller:"CreateOrEditWhatsappQueueDialogController",controllerAs:"vm",templateUrl:fP,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{whatsappQueue:t,whatsappQueues:u().values(g.queues),license:null,setting:null,crudPermissions:g.crudPermissions}})},g.agentAdd=function(e,t){n.show({controller:"WhatsappQueueagentaddController",controllerAs:"vm",templateUrl:mP,parent:angular.element(o.body),targetEvent:e,clickOutsideToClose:!0,locals:{whatsappQueue:t,whatsappQueues:g.queues?g.queues.rows:[],realtime:!1,crudPermissions:g.crudPermissions}})},g.updateQueue=function(e){return l.whatsappQueue.update(e).$promise.then((function(){d.success({title:"Queue properly updated!",msg:e.name?e.name+" has been updated!":""})})).catch((function(e){d.error({title:"Error creating queue!",msg:e.message})}))},g.onSave=function(e){g.queues[e.id]&&u().merge(g.queues[e.id],u().pick(e,h))},g.onSaveMember=function(e){g.queues[e.WhatsappQueueId]&&g.queues[e.WhatsappQueueId].loggedInDb++},g.onRemoveMember=function(e){g.queues[e.WhatsappQueueId]&&g.queues[e.WhatsappQueueId].loggedInDb--},g.onPause=function(e){console.log("onPause",e),e.voicePause?u().forIn(g.queues,(function(t){t.agents[e.id]&&(t.paused+=1,console.log("pause"))})):e.voicePause||u().forIn(g.queues,(function(t){t.agents[e.id]&&t.paused>0&&(t.paused-=1,console.log("unpause"))}))},g.onLogin=function(e){console.log("onLogged",e),g.queues[e.WhatsappQueueId]&&(g.queues[e.WhatsappQueueId].loggedInDb+=1,g.queues[e.WhatsappQueueId].agents[e.UserId]=e.WhatsappQueueId)},g.onLogout=function(e){console.log("onLogout",e),g.queues[e.WhatsappQueueId]&&g.queues[e.WhatsappQueueId].loggedInDb>0&&(g.queues[e.WhatsappQueueId].loggedInDb-=1,delete g.queues[e.WhatsappQueueId].agents[e.UserId])},g.$onInit=_,g.order=[],u().forIn(g.queues,(function(e){g.order.push(e.id)})),c.on("whatsapp_queue:save",g.onSave),c.on("userWhatsappQueue:save",g.onSaveMember),c.on("userWhatsappQueue:remove",g.onRemoveMember),c.on("user:update",g.onPause),c.on("userVoiceQueue:remove",g.onLogout),c.on("userVoiceQueue:save",g.onLogin),e.$on("$destroy",(function(){c.removeAllListeners("whatsapp_queue:save"),c.removeAllListeners("userWhatsappQueue:remove"),c.removeAllListeners("userWhatsappQueue:save"),c.removeAllListeners("user:update"),c.removeAllListeners("userVoiceQueue:remove"),c.removeAllListeners("userVoiceQueue:save")}))}pP.$inject=["$scope","$timeout","$mdDialog","$q","$document","$interval","queues","rpcQueues","api","socket","toasty","userProfile","userProfileSection","Auth"];const gP=pP;const hP=function(){return{status:{registered:"green-300-fg icon-checkbox-marked-circle",unregistered:"red-300-fg icon-close-circle",lagged:"red-300-fg icon-close-circle",reachable:"green-300-fg icon-checkbox-marked-circle",unreachable:"red-300-fg icon-close-circle",unknown:"grey-fg icon-minus-circle"},state:{unknown:"grey-fg icon-phone-hangup",not_inuse:"green-300-fg icon-phone-hangup",inuse:"red-300-fg icon-phone-in-talk",busy:"red-300-fg icon-phone-locked",invalid:"grey-fg icon-phone-hangup",unavailable:"grey-fg icon-phone-hangup",ringing:"blue-300-fg icon-phone-incoming",ringinuse:"blue-300-fg icon-phone-incoming",onhold:"blue-300-fg icon-phone-paused"},channelStatus:{ring:"blue-300-fg icon-phone-incoming",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"},channelStatusOut:{ring:"blue-300-fg icon-phone-outgoing",up:"green-300-fg icon-phone-in-talk",hangup:"red-300-fg icon-phone-hangup"}}};function _P(e,t,n){const a=this;switch(n.disconnect(),n.connect(),a.selectedTab=0,t.current.name){case"app.whatsapp.realtime.agents":a.selectedTab=0;break;case"app.whatsapp.realtime.queues":a.selectedTab=1;break;default:a.selectedTab=0,t.go("app.whatsapp.realtime.agents")}e.$watch("vm.selectedTab",(function(e,n){if(e!==n)switch(e){case 0:t.go("app.whatsapp.realtime.agents");break;case 1:t.go("app.whatsapp.realtime.queues");break;default:t.go("app.whatsapp.realtime.agents")}}))}_P.$inject=["$scope","$state","socket"];const bP=_P;function yP(e){e.state("app.whatsapp.realtime",{url:"/realtime",views:{"content@app":{templateUrl:sP,controller:"WhatsappRealtimeController as vm"}},resolve:{userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:2110})}]},authenticate:!0,permissionId:2110}).state("app.whatsapp.realtime.agents",{url:"/agents",controller:"AgentsWhatsappRealtimeController as vm",templateUrl:lP,resolve:{pauses:["apiResolver",function(e){return e.resolve("pause@get",{nolimit:!0})}],agents:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("user@get",{fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"Agents",fields:"id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording",role:"agent",sort:"fullname",nolimit:!0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:202})}],rpcAgents:["apiResolver",function(e){return e.resolve("rpc@getAgents")}]},authenticate:!0,permissionId:2110}).state("app.whatsapp.realtime.queues",{url:"/queues",controller:"QueuesWhatsappRealtimeController as vm",templateUrl:cP,resolve:{queues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("whatsappQueue@get",{type:"inbound",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"WhatsappQueues",channel:"whatsapp",type:"inbound",sort:"-updatedAt",limit:10,page:1})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:2101})}],rpcQueues:["apiResolver",function(e){return e.resolve("rpc@getWhatsappQueues")}]},authenticate:!0,permissionId:2110})}yP.$inject=["$stateProvider"],angular.module("app.whatsapp.realtime",[]).config(yP).controller("AgentsWhatsappRealtimeController",dP).controller("QueuesWhatsappRealtimeController",gP).factory("helperClasses",hP).controller("WhatsappRealtimeController",bP);const vP=n.p+"templates/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues.html",AP=n.p+"templates/main/apps/whatsapp/views/whatsappQueues/edit/view.html/view.html",SP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts.html",wP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view.html";function EP(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="WHATSAPP.EDIT_WHATSAPPACCOUNT",g.whatsappAccount=angular.copy(l),g.whatsappAccounts=s,g.newWhatsappAccount=!1,g.whatsappAccount||(g.whatsappAccount={remote:n.protocol()+"://"+n.host()+(n.port()?":"+n.port():""),type:"twilio",notificationSound:!0,queueTransferTimeout:300,waitForTheAssignedAgent:10,agentTransferTimeout:300},g.title="WHATSAPP.NEW_WHATSAPPACCOUNT",g.newWhatsappAccount=!0),t.params.id&&(g.whatsappAccount.WhatsappAccountId=t.params.id),g.addNewWhatsappAccount=function(){g.errors=[],c.whatsappAccount.save(g.whatsappAccount).$promise.then((function(e){g.whatsappAccounts.unshift(e.toJSON()),i.success({title:"WhatsappAccount properly created",msg:g.whatsappAccount.name?g.whatsappAccount.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.whatsappAccount.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.whatsappAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveWhatsappAccount=function(){g.errors=[],c.whatsappAccount.update({id:g.whatsappAccount.id},g.whatsappAccount).$promise.then((function(e){const t=u().find(g.whatsappAccounts,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"WhatsappAccount properly saved!",msg:g.whatsappAccount.name?g.whatsappAccount.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.whatsappAccount.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.whatsappAccount.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteWhatsappAccount=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The whatsappAccount will be deleted.").ariaLabel("Delete WhatsappAccount").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.whatsappAccount.delete({id:g.whatsappAccount.id}).$promise.then((function(){u().remove(g.whatsappAccounts,{id:g.whatsappAccount.id}),i.success({title:"WhatsappAccount properly deleted!",msg:(g.whatsappAccount.name||"whatsappAccount")+" has been deleted!"}),h(g.whatsappAccount)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.whatsappAccount.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.whatsappAccount.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h,d.hasRole("admin")?c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){g.lists=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.lists,{id:e.resourceId})}));let n=null;if(g.whatsappAccount&&(n=u().find(g.lists,{id:Number(g.whatsappAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(g.lists,{id:n.id});e.canSelect=!1,t.push(e)}g.lists=t}))}else{const e=[];let t=null;g.whatsappAccount&&(t=u().find(g.lists,{id:Number(g.whatsappAccount.ListId)}));for(let n=0;n<g.lists.length;n++)t&&g.lists[n].id===t.id&&(g.lists[n].canSelect=!1,e.push(g.lists[n]));g.lists=e}})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),d.hasRole("admin")?c.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){g.pauses=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):c.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){g.pauses=e.rows||[]})).then((function(){return c.userProfileSection.get({userProfileId:g.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return c.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(g.pauses,{id:e.resourceId})}));g.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),g.pauses=t}))}else g.pauses=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}EP.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","whatsappAccounts","whatsappAccount","api","Auth","license","setting","crudPermissions"];const CP=EP,TP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html/dialog.html",IP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog.html",kP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog.html",DP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog.html",xP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html",MP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflowv2/dialog.html/dialog.html",PP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html/dialog.html",OP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog.html",RP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog.html",NP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog.html",LP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html/dialog.html",$P=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html",UP=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog.html";FP.$inject=["api","$mdDialog","$document","toasty","Auth"];const jP={agent:TP,amazonlex:IP,autoreply:kP,close:DP,dialogflow:xP,dialogflowv2:MP,gotoif:PP,gotop:OP,interval:RP,noop:NP,queue:LP,system:$P,tag:UP};function FP(e,t,n,a,o){const r=this;function i(e,o){if(r.whatsappAccountApps.rows.length){const i=r.whatsappAccountApps.rows[o]?r.whatsappAccountApps.rows[o]:r.whatsappAccountApps.rows[0],l=(i.appType||i.app).toLowerCase();t.show({controller:`EditWhatsappAccountApp${l}DialogController`,controllerAs:"vm",templateUrl:jP[l],parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{whatsappAccountApp:i,whatsappAccount:r.whatsappAccount,crudPermissions:r.crudPermissions}}).then((function(e){e&&(e.id?r.whatsappAccountApps.rows[o]=e:r.whatsappAccountApps.rows.splice(o,0,e),s())})).catch((function(e){e&&a.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:EDITMODALSHOW",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}function s(){let t=1,n=[];r.whatsappAccountApps.rows=r.whatsappAccountApps.rows.filter((e=>e.appdata));for(let e=0;e<r.whatsappAccountApps.rows.length;e++){const a=r.whatsappAccountApps.rows[e],o=[],i=[];a.intervals="*,*,*,*"!==a.interval?[a.interval]:a.IntervalId?u().map(u().filter(r.intervals.rows,{IntervalId:a.IntervalId}),"interval"):[],a.context=r.whatsappAccount.context,a.exten=r.whatsappAccount.exten,a.type&&(a.type=a.type.toLowerCase()),a.priority=o.length?u().last(o).priority+1:t,t=(i.length?u().last(i).priority:a.priority)+1,n=u().concat(n,o,[a],i)}e.whatsappAccount.addApplications({id:r.whatsappAccount.id},u().sortBy(n,"priority")).$promise.then((function(e){r.whatsappAccountApps.rows=e.rows})).catch((function(e){console.error(e)}))}function l(e){r.whatsappAccountApps=e||{count:0,rows:[]}}r.currentUser=o.getCurrentUser(),r.whatsappAccount={},r.whatsappAccountApps={count:0,rows:[]},r.selectedWhatsappAccountApps=[],r.crudPermissions,r.query={sort:"priority"},r.apps=u().reject(u().sortBy([{app:"Interval",appType:"interval",types:["always","custom","list"],fields:[],isApp:!1},{app:"noop",appType:"noop",type:"noop",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,fields:[{title:"Value",name:"value",type:"text",param:0}]},{app:"system",appType:"system",type:"system",icon:"icon-apps",interval:"*,*,*,*",required:!0,isApp:!0,extraApi:[{name:"variables",field:{name:"variable",key:"name"},route:"variable",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1012}}],fields:[{title:"Command",name:"command",type:"text",required:!0,param:0},{title:"Variable",name:"variable",type:"apiselect",values:"variables",value:"variable.name",option:"variable.name",defaultValues:[{value:"''",option:"None"}],defaultValue:"''",param:1}]},{app:"gotop",appType:"gotop",type:"goto",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Priority",name:"priority",type:"number",required:!0,min:0,param:0}]},{app:"gotoif",appType:"gotoif",type:"gotoif",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Condition",name:"condition",type:"text",required:!0,param:0},{title:"truepriority",name:"truepriority",type:"number",min:1,required:!0,param:1},{title:"falsepriority",name:"falsepriority",type:"number",min:1,required:!0,param:2}]},{app:"queue",appType:"queue",foreignKey:"WhatsappQueueId",type:"queue",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"queues",field:{name:"queue",key:"name"},route:"whatsappQueue",filters:{fields:"id,name,type",sort:"name",nolimit:!0},permissions:{section:2102}}],fields:[{title:"Queue",name:"queue",type:"apiselect",values:"queues",value:"queue.name",option:"queue.name",defaultValue:300,required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:300,param:1}]},{app:"agent",appType:"agent",type:"agent",foreignKey:"UserId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"agents",field:{name:"agent",key:"name"},route:"user",filters:{fields:"id,name",sort:"name",nolimit:!0,role:"agent"},permissions:{section:202}}],fields:[{title:"Agent",name:"agent",type:"apiselect",values:"agents",value:"agent.name",option:"agent.name",required:!0,param:0},{title:"Timeout",name:"timeout",type:"number",max:2147483,min:0,required:!0,defaultValue:30,param:1}]},{app:"autoreply",appType:"autoreply",type:"autoreply",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"times",name:"times",type:"select",defaultValue:"1",values:[{option:"One Time",value:"1"},{option:"Always",value:"0"}],required:!0,param:0},{title:"Text",name:"text",type:"textarea",required:!0,param:1}]},{app:"close",appType:"close",type:"close",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Disposition",name:"disposition",type:"text",required:!0,param:0}]},{app:"tag",appType:"tag",type:"tag",foreignKey:"TagId",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,extraApi:[{name:"tags",field:{name:"tag",key:"name"},route:"tag",filters:{fields:"id,name",sort:"name",nolimit:!0},permissions:{section:1008}}],fields:[{title:"Tag",name:"tag",type:"apiselect",values:"tags",value:"tag.name",option:"tag.name",required:!0,param:0}]},{app:"dialogflow",appType:"dialogflow",type:"dialogflow",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"Key",name:"key",type:"text",required:!0,param:0},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{option:"Danish",value:"'da'"},{option:"English",value:"'en'"},{option:"German",value:"'de'"},{option:"Italian",value:"'it'"},{option:"Spanish",value:"'es'"},{option:"French",value:"'fr'"},{option:"Indonesian",value:"'id'"},{option:"Japanese",value:"'ja'"},{option:"Korean (South Korea)",value:"'ko'"},{option:"Dutch",value:"'nl'"},{option:"Norwegian",value:"'no'"},{option:"Portuguese (European)",value:"'pt'"},{option:"Portuguese (Nrazilian)",value:"'pt-br'"},{option:"Russian",value:"'ru'"},{option:"Swedish",value:"'sv'"},{option:"Thai",value:"'th'"},{option:"Ukrainian",value:"'uk'"},{option:"Chinese (Simplified)",value:"'zh-CN'"},{option:"Chinese (Hong Kong)",value:"'zh-HK'"},{option:"Chinese (Traditional)",value:"'zh-TW'"}],required:!0,param:1},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,required:!1,param:2,help:!0}]},{app:"dialogflowV2",appType:"dialogflowv2",type:"dialogflowv2",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"ProjectID",name:"projectId",type:"text",required:!0,param:0},{title:"ClientEmail",name:"clientEmail",type:"text",required:!0,param:1},{title:"PrivateKey",name:"privateKey",type:"textarea",required:!0,param:2},{title:"language",name:"language",type:"select",defaultValue:"'en'",values:[{value:"'zh-HK'",option:"Chinese (Cantonese)"},{value:"'zh-CN'",option:"Chinese (Simplified)"},{value:"'zh-TW'",option:"Chinese (Traditional)"},{value:"'da'",option:"Danish"},{value:"'nl'",option:"Dutch"},{value:"'en'",option:"English"},{value:"'en-AU'",option:"English (Australia)"},{value:"'en-CA'",option:"English (Canada)"},{value:"'en-GB'",option:"English (Great Britain)"},{value:"'en-IN'",option:"English (India)"},{value:"'en-US'",option:"English (US)"},{value:"'fr'",option:"French"},{value:"'fr-CA'",option:"French (Canada)"},{value:"'fr-FR'",option:"'France (France)"},{value:"'de'",option:"German"},{value:"'hi'",option:"Hindi"},{value:"'id'",option:"Indonesian"},{value:"'it'",option:"Italian"},{value:"'ja'",option:"Japanese"},{value:"'ko'",option:"Korean"},{value:"'no'",option:"Norwegian"},{value:"'pl'",option:"Polish"},{value:"'pt-BR'",option:"Portuguese (Brazil)"},{value:"'pt-PT'",option:"Portuguese (Portugal)"},{value:"'ru'",option:"Russian"},{value:"'es'",option:"Spanish"},{value:"'es-419'",option:"Spanish (Latin America)"},{value:"'es-ES'",option:"Spanish (Spain)"},{value:"'sw'",option:"Swedish"},{value:"'th'",option:"Thai"},{value:"'tr'",option:"Turkish"},{value:"'uk'",option:"Ukrainian"}],required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,param:4,help:!0}]},{app:"amazonlex",appType:"amazonlex",type:"amazonlex",icon:"icon-apps",interval:"*,*,*,*",isApp:!0,fields:[{title:"accesskeyid",name:"accesskeyid",type:"text",required:!0,param:0},{title:"secretaccesskey",name:"secretaccesskey",type:"text",required:!0,param:1},{title:"lexregion",name:"lexregion",type:"select",defaultValue:"'us-east-1'",values:[{option:"US East (N. Virginia)",value:"'us-east-1'"},{option:"US West (Oregon)",value:"'us-west-2'"},{option:"EU (Ireland)",value:"'eu-west-1'"},{option:"Asia Pacific (Sydney)",value:"'ap-southeast-2'"}],required:!0,param:2},{title:"botname",name:"botname",type:"text",required:!0,param:3},{title:"welcomemessage",name:"welcomemessage",type:"textarea",maxlength:255,required:!1,param:4,help:!0}]}],["app"]),{isApp:!1}),r.list={group:{name:"opt1",pull:"clone"},animation:100,sort:!1},r.applications={group:{name:"opt2",put:"opt1"},animation:100,onAdd:function(e){i(e,e.newIndex)},onSort:function(){s()}},r.init=function(e,t){r.whatsappAccount=e,r.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},r.applications.disabled=!r.crudPermissions.canEdit,r.query.id=e.id,r.query.isApp=!0,r.query.nolimit=!0,r.getWhatsappAccountApps(),r.getIntervals()},r.deleteConfirm=function(e,n,a){const o=t.confirm().title("Are you sure want to delete the application?").htmlContent("<b>"+e.app+"</b> will be deleted.").ariaLabel("delete application").targetEvent(a).ok("OK").cancel("CANCEL");t.show(o).then((function(){r.whatsappAccountApps.rows.splice(n,1),s()}),(function(){console.log("CANCEL")}))},r.getWhatsappAccountApps=function(){r.promise=e.whatsappAccount.getApplications(r.query,l).$promise},r.editWhatsappAccountApp=i,r.editInterval=function(e,a){if(r.whatsappAccountApps.rows.length){const o=r.whatsappAccountApps.rows[a]?r.whatsappAccountApps.rows[a]:r.whatsappAccountApps.rows[0];t.show({controller:"EditWhatsappAccountAppintervalDialogController",controllerAs:"vm",templateUrl:RP,parent:angular.element(n.body),targetEvent:e,clickOutsideToClose:!0,locals:{interval:{interval:o.interval,IntervalId:o.IntervalId,application:!0},intervals:[],crudPermissions:r.crudPermissions}}).then((function(e){e&&(o.interval=e.interval||"*,*,*,*",o.IntervalId=e.IntervalId||null,s())}))}},r.deleteWhatsappAccountApp=function(e){u().remove(r.whatsappAccountApps.rows,{id:e.id}),s(),a.success({title:"App deleted!",msg:e.app?e.app+" has been deleted!":""})},r.deleteSelectedWhatsappAccountApps=function(e){const n=t.confirm().title("Are you sure want to delete the selected applications?").htmlContent("<b>"+r.selectedWhatsappAccountApps.length+" selected</b> will be deleted.").ariaLabel("delete applications").targetEvent(e).ok("OK").cancel("CANCEL");t.show(n).then((function(){r.selectedWhatsappAccountApps.forEach((function(e){u().remove(r.whatsappAccountApps.rows,{id:e.id})})),r.selectedWhatsappAccountApps=[],s()}))},r.rewriteRouting=s,r.getIntervals=function(){return e.interval.get({fields:"id,interval,IntervalId"}).$promise.then((function(e){r.intervals=e})).catch((function(e){console.error(e)}))}}const qP=FP;function YP(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.whatsappAccount.getAgents({id:d.whatsappAccount.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserWhatsappAccount?"penalty "+e.UserWhatsappAccount.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.whatsappAccount=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.whatsappAccount.removeAgents({id:d.whatsappAccount.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.whatsappAccount.addAgents({id:d.whatsappAccount.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}YP.$inject=["$mdDialog","$q","toasty","api","whatsappAccount","whatsappAccounts","realtime","$translate","Auth","crudPermissions"];const HP=YP;function BP(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.agent=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.agent.appdata)switch(l.agent.appType?l.agent.appType.toLowerCase():l.agent.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.agent.appdata.split(",");l.agent.key=e[0],l.agent.language=e[1],l.agent.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.agent.appdata.split(",");l.agent.projectId=e[0],l.agent.clientEmail=e[1],l.agent.privateKey=e[2],l.agent.language=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.agent.appdata.split(",");l.agent.accesskeyid=e[0],l.agent.secretaccesskey=e[1],l.agent.lexregion=e[2],l.agent.botname=e[3],l.agent.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.agent.appdata.split(",");l.agent.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.text=e.slice(1,e.length).join(",")}break;case"message":l.agent.text=l.agent.appdata;break;case"set":l.agent.name=l.agent.appdata.split("=")[0],l.agent.value=l.agent.appdata.split("=")[1];break;case"agi":l.agent.project=l.agent.appdata;break;default:{const e=l.agent.appdata.split(",");l.agent.agent=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.agent.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.agent.timeout=30;function c(t){e.hide(t)}l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outbounddial"===l.agent.appType.toLowerCase()&&(l.agent.prefix=l.agent.phone?l.agent.phone.split("$")[0]:void 0,l.agent.callerId=l.agent.callerID?"CALLERID(all)="+l.agent.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.agent.type&&"outbound"===l.agent.type.toLowerCase()&&"outboundDial"===l.agent.appType&&(l.agent.phone=o.cutdigits?(l.agent.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.agent.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.agent.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.agent.options+="U(xcally-mixmonitor-context)"):l.agent.options=l.agent.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.agents,{name:l.agent.agent});t&&(l.agent.UserId=t.id);if(l.agent.appType&&"custom"===l.agent.appType);else switch((l.agent.app||l.agent.appType).toLowerCase()){case"set":l.agent.appdata=l.agent.name+"="+l.agent.value;break;case"custom":break;default:e[0]=l.agent.agent,e[1]=l.agent.timeout,l.agent.appdata=e.join(",")}c(l.agent)},l.closeDialog=c,i.hasRole("admin")?r.user.get({fields:"id,name",sort:"name",nolimit:"true",role:"agent"}).$promise.then((function(e){l.agents=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.user.get({fields:"id,name",sort:"name",nolimit:"true",role:"agent"}).$promise.then((function(e){l.agents=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:202}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.agents,{id:e.resourceId})}));let n=null;if(l.agent&&(n=u().find(l.agents,{name:l.agent.agent})),n&&!u().some(t,["id",n.id])){const e=u().find(l.agents,{id:n.id});e.canSelect=!1,t.push(e)}l.agents=t}))}else{const e=[];let t=null;l.agent&&(t=u().find(l.agents,{name:l.agent.agent}));for(let n=0;n<l.agents.length;n++)t&&l.agents[n].id===t.id&&(l.agents[n].canSelect=!1,e.push(l.agents[n]));l.agents=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETagents",msg:e.data?JSON.stringify(e.data):e.toString()})}))}BP.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const GP=BP;function VP(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.amazonlex=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.amazonlex.appdata)switch(l.amazonlex.appType?l.amazonlex.appType.toLowerCase():l.amazonlex.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.amazonlex.appdata.split(",");l.amazonlex.key=e[0],l.amazonlex.language=e[1],l.amazonlex.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.amazonlex.appdata.split(",");l.amazonlex.projectId=e[0],l.amazonlex.clientEmail=e[1],l.amazonlex.privateKey=e[2],l.amazonlex.language=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=e[0],l.amazonlex.secretaccesskey=e[1],l.amazonlex.lexregion=e[2],l.amazonlex.botname=e[3],l.amazonlex.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.amazonlex.appdata.split(",");l.amazonlex.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.text=e.slice(1,e.length).join(",")}break;case"message":l.amazonlex.text=l.amazonlex.appdata;break;case"set":l.amazonlex.name=l.amazonlex.appdata.split("=")[0],l.amazonlex.value=l.amazonlex.appdata.split("=")[1];break;case"agi":l.amazonlex.project=l.amazonlex.appdata;break;default:{const e=l.amazonlex.appdata.split(",");l.amazonlex.accesskeyid=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.amazonlex.secretaccesskey=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.amazonlex.lexregion=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.amazonlex.botname=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.amazonlex.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.amazonlex.lexregion="us-east-1";function c(t){e.hide(t)}l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outbounddial"===l.amazonlex.appType.toLowerCase()&&(l.amazonlex.prefix=l.amazonlex.phone?l.amazonlex.phone.split("$")[0]:void 0,l.amazonlex.callerId=l.amazonlex.callerID?"CALLERID(all)="+l.amazonlex.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.amazonlex.type&&"outbound"===l.amazonlex.type.toLowerCase()&&"outboundDial"===l.amazonlex.appType&&(l.amazonlex.phone=o.cutdigits?(l.amazonlex.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.amazonlex.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.amazonlex.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.amazonlex.options+="U(xcally-mixmonitor-context)"):l.amazonlex.options=l.amazonlex.options.replace("U(xcally-mixmonitor-context)",""));if(l.amazonlex.appType&&"custom"===l.amazonlex.appType);else switch((l.amazonlex.app||l.amazonlex.appType).toLowerCase()){case"set":l.amazonlex.appdata=l.amazonlex.name+"="+l.amazonlex.value;break;case"custom":break;default:e[0]=l.amazonlex.accesskeyid,e[1]=l.amazonlex.secretaccesskey,e[2]=l.amazonlex.lexregion,e[3]=l.amazonlex.botname,e[4]=l.amazonlex.welcomemessage,l.amazonlex.appdata=e.join(",")}c(l.amazonlex)},l.closeDialog=c}VP.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const WP=VP;function QP(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.autoreply=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.autoreply.appdata)switch(l.autoreply.appType?l.autoreply.appType.toLowerCase():l.autoreply.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.autoreply.appdata.split(",");l.autoreply.key=e[0],l.autoreply.language=e[1],l.autoreply.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.autoreply.appdata.split(",");l.autoreply.projectId=e[0],l.autoreply.clientEmail=e[1],l.autoreply.privateKey=e[2],l.autoreply.language=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.autoreply.appdata.split(",");l.autoreply.accesskeyid=e[0],l.autoreply.secretaccesskey=e[1],l.autoreply.lexregion=e[2],l.autoreply.botname=e[3],l.autoreply.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.autoreply.appdata.split(",");l.autoreply.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=e.slice(1,e.length).join(",")}break;case"message":l.autoreply.text=l.autoreply.appdata;break;case"set":l.autoreply.name=l.autoreply.appdata.split("=")[0],l.autoreply.value=l.autoreply.appdata.split("=")[1];break;case"agi":l.autoreply.project=l.autoreply.appdata;break;default:{const e=l.autoreply.appdata.split(",");l.autoreply.times=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.autoreply.text=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.autoreply.times=1;function c(t){e.hide(t)}l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outbounddial"===l.autoreply.appType.toLowerCase()&&(l.autoreply.prefix=l.autoreply.phone?l.autoreply.phone.split("$")[0]:void 0,l.autoreply.callerId=l.autoreply.callerID?"CALLERID(all)="+l.autoreply.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.autoreply.type&&"outbound"===l.autoreply.type.toLowerCase()&&"outboundDial"===l.autoreply.appType&&(l.autoreply.phone=o.cutdigits?(l.autoreply.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.autoreply.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.autoreply.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.autoreply.options+="U(xcally-mixmonitor-context)"):l.autoreply.options=l.autoreply.options.replace("U(xcally-mixmonitor-context)",""));if(l.autoreply.appType&&"custom"===l.autoreply.appType);else switch((l.autoreply.app||l.autoreply.appType).toLowerCase()){case"set":l.autoreply.appdata=l.autoreply.name+"="+l.autoreply.value;break;case"custom":break;default:e[0]=l.autoreply.times,e[1]=l.autoreply.text,l.autoreply.appdata=e.join(",")}c(l.autoreply)},l.closeDialog=c}QP.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const zP=QP;function KP(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.close=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.close.appdata)switch(l.close.appType?l.close.appType.toLowerCase():l.close.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.close.appdata.split(",");l.close.key=e[0],l.close.language=e[1],l.close.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.close.appdata.split(",");l.close.projectId=e[0],l.close.clientEmail=e[1],l.close.privateKey=e[2],l.close.language=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.close.appdata.split(",");l.close.accesskeyid=e[0],l.close.secretaccesskey=e[1],l.close.lexregion=e[2],l.close.botname=e[3],l.close.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.close.appdata.split(",");l.close.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.close.text=e.slice(1,e.length).join(",")}break;case"message":l.close.text=l.close.appdata;break;case"set":l.close.name=l.close.appdata.split("=")[0],l.close.value=l.close.appdata.split("=")[1];break;case"agi":l.close.project=l.close.appdata;break;default:{const e=l.close.appdata.split(",");l.close.disposition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outbounddial"===l.close.appType.toLowerCase()&&(l.close.prefix=l.close.phone?l.close.phone.split("$")[0]:void 0,l.close.callerId=l.close.callerID?"CALLERID(all)="+l.close.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.close.type&&"outbound"===l.close.type.toLowerCase()&&"outboundDial"===l.close.appType&&(l.close.phone=o.cutdigits?(l.close.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.close.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.close.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.close.options+="U(xcally-mixmonitor-context)"):l.close.options=l.close.options.replace("U(xcally-mixmonitor-context)",""));if(l.close.appType&&"custom"===l.close.appType);else switch((l.close.app||l.close.appType).toLowerCase()){case"set":l.close.appdata=l.close.name+"="+l.close.value;break;case"custom":break;default:e[0]=l.close.disposition,l.close.appdata=e.join(",")}c(l.close)},l.closeDialog=c}KP.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const JP=KP;function XP(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflow=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflow.appdata)switch(l.dialogflow.appType?l.dialogflow.appType.toLowerCase():l.dialogflow.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=e[0],l.dialogflow.language=e[1],l.dialogflow.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflow.appdata.split(",");l.dialogflow.projectId=e[0],l.dialogflow.clientEmail=e[1],l.dialogflow.privateKey=e[2],l.dialogflow.language=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflow.appdata.split(",");l.dialogflow.accesskeyid=e[0],l.dialogflow.secretaccesskey=e[1],l.dialogflow.lexregion=e[2],l.dialogflow.botname=e[3],l.dialogflow.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflow.appdata.split(",");l.dialogflow.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflow.text=l.dialogflow.appdata;break;case"set":l.dialogflow.name=l.dialogflow.appdata.split("=")[0],l.dialogflow.value=l.dialogflow.appdata.split("=")[1];break;case"agi":l.dialogflow.project=l.dialogflow.appdata;break;default:{const e=l.dialogflow.appdata.split(",");l.dialogflow.key=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflow.language=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflow.welcomemessage=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}else l.dialogflow.language="en";function c(t){e.hide(t)}l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outbounddial"===l.dialogflow.appType.toLowerCase()&&(l.dialogflow.prefix=l.dialogflow.phone?l.dialogflow.phone.split("$")[0]:void 0,l.dialogflow.callerId=l.dialogflow.callerID?"CALLERID(all)="+l.dialogflow.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.dialogflow.type&&"outbound"===l.dialogflow.type.toLowerCase()&&"outboundDial"===l.dialogflow.appType&&(l.dialogflow.phone=o.cutdigits?(l.dialogflow.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflow.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflow.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflow.options+="U(xcally-mixmonitor-context)"):l.dialogflow.options=l.dialogflow.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflow.appType&&"custom"===l.dialogflow.appType);else switch((l.dialogflow.app||l.dialogflow.appType).toLowerCase()){case"set":l.dialogflow.appdata=l.dialogflow.name+"="+l.dialogflow.value;break;case"custom":break;default:e[0]=l.dialogflow.key,e[1]=l.dialogflow.language,e[2]=l.dialogflow.welcomemessage,l.dialogflow.appdata=e.join(",")}c(l.dialogflow)},l.closeDialog=c}XP.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const ZP=XP;function eO(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.dialogflowv2=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.dialogflowv2.appdata)switch(l.dialogflowv2.appType?l.dialogflowv2.appType.toLowerCase():l.dialogflowv2.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.key=e[0],l.dialogflowv2.language=e[1],l.dialogflowv2.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=e[0],l.dialogflowv2.clientEmail=e[1],l.dialogflowv2.privateKey=e[2],l.dialogflowv2.language=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.accesskeyid=e[0],l.dialogflowv2.secretaccesskey=e[1],l.dialogflowv2.lexregion=e[2],l.dialogflowv2.botname=e[3],l.dialogflowv2.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.text=e.slice(1,e.length).join(",")}break;case"message":l.dialogflowv2.text=l.dialogflowv2.appdata;break;case"set":l.dialogflowv2.name=l.dialogflowv2.appdata.split("=")[0],l.dialogflowv2.value=l.dialogflowv2.appdata.split("=")[1];break;case"agi":l.dialogflowv2.project=l.dialogflowv2.appdata;break;default:{const e=l.dialogflowv2.appdata.split(",");l.dialogflowv2.projectId=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.dialogflowv2.clientEmail=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.dialogflowv2.privateKey=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10),l.dialogflowv2.language=u().isEmpty(e[3])||isNaN(e[3])?e[3]:parseInt(e[3],10),l.dialogflowv2.welcomemessage=u().isEmpty(e[4])||isNaN(e[4])?e[4]:parseInt(e[4],10)}}else l.dialogflowv2.language="en";function c(t){e.hide(t)}l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outbounddial"===l.dialogflowv2.appType.toLowerCase()&&(l.dialogflowv2.prefix=l.dialogflowv2.phone?l.dialogflowv2.phone.split("$")[0]:void 0,l.dialogflowv2.callerId=l.dialogflowv2.callerID?"CALLERID(all)="+l.dialogflowv2.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.dialogflowv2.type&&"outbound"===l.dialogflowv2.type.toLowerCase()&&"outboundDial"===l.dialogflowv2.appType&&(l.dialogflowv2.phone=o.cutdigits?(l.dialogflowv2.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.dialogflowv2.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.dialogflowv2.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.dialogflowv2.options+="U(xcally-mixmonitor-context)"):l.dialogflowv2.options=l.dialogflowv2.options.replace("U(xcally-mixmonitor-context)",""));if(l.dialogflowv2.appType&&"custom"===l.dialogflowv2.appType);else switch((l.dialogflowv2.app||l.dialogflowv2.appType).toLowerCase()){case"set":l.dialogflowv2.appdata=l.dialogflowv2.name+"="+l.dialogflowv2.value;break;case"custom":break;default:e[0]=l.dialogflowv2.projectId,e[1]=l.dialogflowv2.clientEmail,e[2]=l.dialogflowv2.privateKey,e[3]=l.dialogflowv2.language,e[4]=l.dialogflowv2.welcomemessage,l.dialogflowv2.appdata=e.join(",")}c(l.dialogflowv2)},l.closeDialog=c}eO.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const tO=eO;function nO(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotoif=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotoif.appdata)switch(l.gotoif.appType?l.gotoif.appType.toLowerCase():l.gotoif.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotoif.appdata.split(",");l.gotoif.key=e[0],l.gotoif.language=e[1],l.gotoif.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotoif.appdata.split(",");l.gotoif.projectId=e[0],l.gotoif.clientEmail=e[1],l.gotoif.privateKey=e[2],l.gotoif.language=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotoif.appdata.split(",");l.gotoif.accesskeyid=e[0],l.gotoif.secretaccesskey=e[1],l.gotoif.lexregion=e[2],l.gotoif.botname=e[3],l.gotoif.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotoif.appdata.split(",");l.gotoif.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.text=e.slice(1,e.length).join(",")}break;case"message":l.gotoif.text=l.gotoif.appdata;break;case"set":l.gotoif.name=l.gotoif.appdata.split("=")[0],l.gotoif.value=l.gotoif.appdata.split("=")[1];break;case"agi":l.gotoif.project=l.gotoif.appdata;break;default:{const e=l.gotoif.appdata.split(",");l.gotoif.condition=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotoif.truepriority=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10),l.gotoif.falsepriority=u().isEmpty(e[2])||isNaN(e[2])?e[2]:parseInt(e[2],10)}}function c(t){e.hide(t)}l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outbounddial"===l.gotoif.appType.toLowerCase()&&(l.gotoif.prefix=l.gotoif.phone?l.gotoif.phone.split("$")[0]:void 0,l.gotoif.callerId=l.gotoif.callerID?"CALLERID(all)="+l.gotoif.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.gotoif.type&&"outbound"===l.gotoif.type.toLowerCase()&&"outboundDial"===l.gotoif.appType&&(l.gotoif.phone=o.cutdigits?(l.gotoif.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotoif.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotoif.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotoif.options+="U(xcally-mixmonitor-context)"):l.gotoif.options=l.gotoif.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotoif.appType&&"custom"===l.gotoif.appType);else switch((l.gotoif.app||l.gotoif.appType).toLowerCase()){case"set":l.gotoif.appdata=l.gotoif.name+"="+l.gotoif.value;break;case"custom":break;default:e[0]=l.gotoif.condition,e[1]=l.gotoif.truepriority,e[2]=l.gotoif.falsepriority,l.gotoif.appdata=e.join(",")}c(l.gotoif)},l.closeDialog=c}nO.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const aO=nO;function oO(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.gotop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.gotop.appdata)switch(l.gotop.appType?l.gotop.appType.toLowerCase():l.gotop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.gotop.appdata.split(",");l.gotop.key=e[0],l.gotop.language=e[1],l.gotop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.gotop.appdata.split(",");l.gotop.projectId=e[0],l.gotop.clientEmail=e[1],l.gotop.privateKey=e[2],l.gotop.language=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.gotop.appdata.split(",");l.gotop.accesskeyid=e[0],l.gotop.secretaccesskey=e[1],l.gotop.lexregion=e[2],l.gotop.botname=e[3],l.gotop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.gotop.appdata.split(",");l.gotop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.gotop.text=e.slice(1,e.length).join(",")}break;case"message":l.gotop.text=l.gotop.appdata;break;case"set":l.gotop.name=l.gotop.appdata.split("=")[0],l.gotop.value=l.gotop.appdata.split("=")[1];break;case"agi":l.gotop.project=l.gotop.appdata;break;default:{const e=l.gotop.appdata.split(",");l.gotop.priority=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outbounddial"===l.gotop.appType.toLowerCase()&&(l.gotop.prefix=l.gotop.phone?l.gotop.phone.split("$")[0]:void 0,l.gotop.callerId=l.gotop.callerID?"CALLERID(all)="+l.gotop.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.gotop.type&&"outbound"===l.gotop.type.toLowerCase()&&"outboundDial"===l.gotop.appType&&(l.gotop.phone=o.cutdigits?(l.gotop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.gotop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.gotop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.gotop.options+="U(xcally-mixmonitor-context)"):l.gotop.options=l.gotop.options.replace("U(xcally-mixmonitor-context)",""));if(l.gotop.appType&&"custom"===l.gotop.appType);else switch((l.gotop.app||l.gotop.appType).toLowerCase()){case"set":l.gotop.appdata=l.gotop.name+"="+l.gotop.value;break;case"custom":break;default:e[0]=l.gotop.priority,l.gotop.appdata=e.join(",")}c(l.gotop)},l.closeDialog=c}oO.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const rO=oO;function iO(e,t,n,a,o,r,i,s,l,c){const d=this;if(d.currentUser=l.getCurrentUser(),d.errors=[],d.title="TOOLS.EDIT_INTERVAL",d.interval=angular.copy(o),d.intervals=r,d.newInterval=!1,d.types=["always","custom","list"],d.crudPermissions=c,d.daysOfWeek=a.getDaysOfWeek(),d.monthNumber=a.getMonthNumber(),d.monthName=a.getMonthName(),d.daysOfMonth=a.getDaysOfMonth(),d.interval)if("*,*,*,*"!==d.interval.interval){d.type="custom";const e=d.interval.interval.split(","),t=e[0],n=e[1],a=e[2],o=e[3];if("*"!==t){const e=t.split("-")[0],n=t.split("-")[1];let a;a=new Date,a.setHours(Number(e.split(":")[0])),a.setMinutes(Number(e.split(":")[1])),d.timeRangeFrom=a,a=new Date,a.setHours(Number(n.split(":")[0])),a.setMinutes(Number(n.split(":")[1])),d.timeRangeTo=a}"*"!==n&&(d.dayOfWeekFrom=n.split("-")[0],d.dayOfWeekTo=n.split("-")[1]),"*"!==a&&(d.monthDayFrom=a.split("-")[0],d.monthDayTo=a.split("-")[1]),"*"!==o&&(d.monthFrom=o.split("-")[0],d.monthTo=o.split("-")[1])}else d.type="always";else d.interval={interval:"*,*,*,*"},d.type="always",d.title="TOOLS.NEW_INTERVAL",d.newInterval=!0;function f(){switch(d.type){case"always":case"list":return"*,*,*,*";case"custom":{const e=[];if("*"!==d.timeRangeFrom&&d.timeRangeFrom&&d.timeRangeTo){const t=(d.timeRangeFrom.getHours()<10?"0":"")+d.timeRangeFrom.getHours()+":"+(d.timeRangeFrom.getMinutes()<10?"0":"")+d.timeRangeFrom.getMinutes(),n=(d.timeRangeTo.getHours()<10?"0":"")+d.timeRangeTo.getHours()+":"+(d.timeRangeTo.getMinutes()<10?"0":"")+d.timeRangeTo.getMinutes();e.push(t+"-"+n)}else e.push("*");return d.dayOfWeekFrom?d.dayOfWeekTo?e.push(d.dayOfWeekFrom+"-"+d.dayOfWeekTo):e.push(d.dayOfWeekFrom):e.push("*"),d.monthDayFrom?d.monthDayTo?e.push(d.monthDayFrom+"-"+d.monthDayTo):e.push(d.monthDayFrom):e.push("*"),d.monthFrom?d.monthTo?e.push(d.monthFrom+"-"+d.monthTo):e.push(d.monthFrom):e.push("*"),e.join()}}}function m(e){t.hide(e)}e.params.id&&!d.interval.application&&(d.interval.IntervalId=e.params.id),d.interval.IntervalId&&d.interval.application&&(d.type="list"),d.addNewInterval=function(){d.errors=[],d.interval.interval=f(),s.interval.save(d.interval).$promise.then((function(e){d.intervals.push(e),i.success({title:"Interval properly created",msg:d.interval.name?d.interval.name+" has been created!":""}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.save"}]}))},d.saveInterval=function(){d.errors=[],d.interval.interval=f(),d.interval.application?("list"!==d.type&&(d.interval.IntervalId=null),m(d.interval)):s.interval.update({id:d.interval.id},d.interval).$promise.then((function(e){const t=u().find(d.intervals,{id:e.id});t&&u().merge(t,e),i.success({title:"Interval properly saved!",msg:"Interval has been saved!"}),m()})).catch((function(e){console.error(e),d.errors=e.data.errors||[{message:e.toString(),type:"api.interval.update"}]}))},d.closeDialog=m,d.interval.application&&(l.hasRole("admin")?s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.interval.get({fields:"id,name,interval,IntervalId",IntervalId:"null",nolimit:!0}).$promise.then((function(e){d.intervals=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:d.currentUser.userProfileId,sectionId:1004}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=e&&e.rows?e.rows:[],n=[];let a=null;d.interval&&(a=u().find(d.intervals,{name:d.interval.IntervalId})),a&&!u().some(t,["resourceId",a.id])&&d.intervals.forEach((function(e){e.id===a.id&&(e.canSelect=!1,n.push(e))})),d.intervals=n}))}else d.intervals=[]})).catch((function(e){i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_INTERVALS",msg:e.data?JSON.stringify(e.data):e.toString()})})))}iO.$inject=["$state","$mdDialog","$mdToast","IndexFactory","interval","intervals","toasty","api","Auth","crudPermissions"];const sO=iO;function lO(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.noop=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.noop.appdata)switch(l.noop.appType?l.noop.appType.toLowerCase():l.noop.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.noop.appdata.split(",");l.noop.key=e[0],l.noop.language=e[1],l.noop.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.noop.appdata.split(",");l.noop.projectId=e[0],l.noop.clientEmail=e[1],l.noop.privateKey=e[2],l.noop.language=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.noop.appdata.split(",");l.noop.accesskeyid=e[0],l.noop.secretaccesskey=e[1],l.noop.lexregion=e[2],l.noop.botname=e[3],l.noop.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.noop.appdata.split(",");l.noop.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.noop.text=e.slice(1,e.length).join(",")}break;case"message":l.noop.text=l.noop.appdata;break;case"set":l.noop.name=l.noop.appdata.split("=")[0],l.noop.value=l.noop.appdata.split("=")[1];break;case"agi":l.noop.project=l.noop.appdata;break;default:{const e=l.noop.appdata.split(",");l.noop.value=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outbounddial"===l.noop.appType.toLowerCase()&&(l.noop.prefix=l.noop.phone?l.noop.phone.split("$")[0]:void 0,l.noop.callerId=l.noop.callerID?"CALLERID(all)="+l.noop.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.noop.type&&"outbound"===l.noop.type.toLowerCase()&&"outboundDial"===l.noop.appType&&(l.noop.phone=o.cutdigits?(l.noop.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.noop.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.noop.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.noop.options+="U(xcally-mixmonitor-context)"):l.noop.options=l.noop.options.replace("U(xcally-mixmonitor-context)",""));if(l.noop.appType&&"custom"===l.noop.appType);else switch((l.noop.app||l.noop.appType).toLowerCase()){case"set":l.noop.appdata=l.noop.name+"="+l.noop.value;break;case"custom":break;default:e[0]=l.noop.value,l.noop.appdata=e.join(",")}c(l.noop)},l.closeDialog=c}lO.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const cO=lO;function uO(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.queue=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.queue.appdata)switch(l.queue.appType?l.queue.appType.toLowerCase():l.queue.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.queue.appdata.split(",");l.queue.key=e[0],l.queue.language=e[1],l.queue.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.queue.appdata.split(",");l.queue.projectId=e[0],l.queue.clientEmail=e[1],l.queue.privateKey=e[2],l.queue.language=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.queue.appdata.split(",");l.queue.accesskeyid=e[0],l.queue.secretaccesskey=e[1],l.queue.lexregion=e[2],l.queue.botname=e[3],l.queue.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.queue.appdata.split(",");l.queue.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.text=e.slice(1,e.length).join(",")}break;case"message":l.queue.text=l.queue.appdata;break;case"set":l.queue.name=l.queue.appdata.split("=")[0],l.queue.value=l.queue.appdata.split("=")[1];break;case"agi":l.queue.project=l.queue.appdata;break;default:{const e=l.queue.appdata.split(",");l.queue.queue=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.queue.timeout=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.queue.queue=300,l.queue.timeout=300;function c(t){e.hide(t)}l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outbounddial"===l.queue.appType.toLowerCase()&&(l.queue.prefix=l.queue.phone?l.queue.phone.split("$")[0]:void 0,l.queue.callerId=l.queue.callerID?"CALLERID(all)="+l.queue.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.queue.type&&"outbound"===l.queue.type.toLowerCase()&&"outboundDial"===l.queue.appType&&(l.queue.phone=o.cutdigits?(l.queue.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.queue.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.queue.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.queue.options+="U(xcally-mixmonitor-context)"):l.queue.options=l.queue.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.queues,{name:l.queue.queue});t&&(l.queue[u().capitalize("whatsapp")+"QueueId"]=t.id);if(l.queue.appType&&"custom"===l.queue.appType);else switch((l.queue.app||l.queue.appType).toLowerCase()){case"set":l.queue.appdata=l.queue.name+"="+l.queue.value;break;case"custom":break;default:e[0]=l.queue.queue,e[1]=l.queue.timeout,l.queue.appdata=e.join(",")}c(l.queue)},l.closeDialog=c,i.hasRole("admin")?r.whatsappQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_QUEUES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.whatsappQueue.get({fields:"id,name,type",sort:"name",nolimit:"true"}).$promise.then((function(e){l.queues=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:2102}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.queues,{id:e.resourceId})}));let n=null;if(l.queue&&(n=u().find(l.queues,{name:l.queue.queue})),n&&!u().some(t,["id",n.id])){const e=u().find(l.queues,{id:n.id});e.canSelect=!1,t.push(e)}l.queues=t}))}else{const e=[];let t=null;l.queue&&(t=u().find(l.queues,{name:l.queue.queue}));for(let n=0;n<l.queues.length;n++)t&&l.queues[n].id===t.id&&(l.queues[n].canSelect=!1,e.push(l.queues[n]));l.queues=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETqueues",msg:e.data?JSON.stringify(e.data):e.toString()})}))}uO.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const dO=uO;function fO(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.system=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.system.appdata)switch(l.system.appType?l.system.appType.toLowerCase():l.system.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.system.appdata.split(",");l.system.key=e[0],l.system.language=e[1],l.system.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.system.appdata.split(",");l.system.projectId=e[0],l.system.clientEmail=e[1],l.system.privateKey=e[2],l.system.language=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.system.appdata.split(",");l.system.accesskeyid=e[0],l.system.secretaccesskey=e[1],l.system.lexregion=e[2],l.system.botname=e[3],l.system.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.system.appdata.split(",");l.system.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.text=e.slice(1,e.length).join(",")}break;case"message":l.system.text=l.system.appdata;break;case"set":l.system.name=l.system.appdata.split("=")[0],l.system.value=l.system.appdata.split("=")[1];break;case"agi":l.system.project=l.system.appdata;break;default:{const e=l.system.appdata.split(",");l.system.command=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10),l.system.variable=u().isEmpty(e[1])||isNaN(e[1])?e[1]:parseInt(e[1],10)}}else l.system.variable="";function c(t){e.hide(t)}l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outbounddial"===l.system.appType.toLowerCase()&&(l.system.prefix=l.system.phone?l.system.phone.split("$")[0]:void 0,l.system.callerId=l.system.callerID?"CALLERID(all)="+l.system.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.system.type&&"outbound"===l.system.type.toLowerCase()&&"outboundDial"===l.system.appType&&(l.system.phone=o.cutdigits?(l.system.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.system.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.system.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.system.options+="U(xcally-mixmonitor-context)"):l.system.options=l.system.options.replace("U(xcally-mixmonitor-context)",""));if(l.system.appType&&"custom"===l.system.appType);else switch((l.system.app||l.system.appType).toLowerCase()){case"set":l.system.appdata=l.system.name+"="+l.system.value;break;case"custom":break;default:e[0]=l.system.command,e[1]=l.system.variable,l.system.appdata=e.join(",")}c(l.system)},l.closeDialog=c,i.hasRole("admin")?r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_VARIABLES",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.variable.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.variables=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1012}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.variables,{id:e.resourceId})}));let n=null;if(l.system&&(n=u().find(l.variables,{name:l.system.variable})),n&&!u().some(t,["id",n.id])){const e=u().find(l.variables,{id:n.id});e.canSelect=!1,t.push(e)}l.variables=t}))}else{const e=[];let t=null;l.system&&(t=u().find(l.variables,{name:l.system.variable}));for(let n=0;n<l.variables.length;n++)t&&l.variables[n].id===t.id&&(l.variables[n].canSelect=!1,e.push(l.variables[n]));l.variables=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETvariables",msg:e.data?JSON.stringify(e.data):e.toString()})}))}fO.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const mO=fO;function pO(e,t,n,a,o,r,i,s){const l=this;if(l.currentUser=i.getCurrentUser(),l.errors=[],l.title="WHATSAPP.EDIT_"+(a.appType||a.app).toUpperCase(),l.tag=angular.copy(a),l.crudPermissions=s,l.hasModulePermissions={},l.tag.appdata)switch(l.tag.appType?l.tag.appType.toLowerCase():l.tag.app.toLowerCase()){case"custom":break;case"dialogflow":{const e=l.tag.appdata.split(",");l.tag.key=e[0],l.tag.language=e[1],l.tag.welcomemessage=e.slice(2,e.length).join(",")}break;case"dialogflowv2":{const e=l.tag.appdata.split(",");l.tag.projectId=e[0],l.tag.clientEmail=e[1],l.tag.privateKey=e[2],l.tag.language=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"amazonlex":{const e=l.tag.appdata.split(",");l.tag.accesskeyid=e[0],l.tag.secretaccesskey=e[1],l.tag.lexregion=e[2],l.tag.botname=e[3],l.tag.welcomemessage=e.slice(4,e.length).join(",")}break;case"autoreply":{const e=l.tag.appdata.split(",");l.tag.times=isNaN(e[0])?e[0]:parseInt(e[0],10),l.tag.text=e.slice(1,e.length).join(",")}break;case"message":l.tag.text=l.tag.appdata;break;case"set":l.tag.name=l.tag.appdata.split("=")[0],l.tag.value=l.tag.appdata.split("=")[1];break;case"agi":l.tag.project=l.tag.appdata;break;default:{const e=l.tag.appdata.split(",");l.tag.tag=u().isEmpty(e[0])||isNaN(e[0])?e[0]:parseInt(e[0],10)}}function c(t){e.hide(t)}l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outbounddial"===l.tag.appType.toLowerCase()&&(l.tag.prefix=l.tag.phone?l.tag.phone.split("$")[0]:void 0,l.tag.callerId=l.tag.callerID?"CALLERID(all)="+l.tag.callerID:void 0),l.saveWhatsappAccountApp=function(){l.errors=[];const e=[];l.tag.type&&"outbound"===l.tag.type.toLowerCase()&&"outboundDial"===l.tag.appType&&(l.tag.phone=o.cutdigits?(l.tag.prefix||"")+"${EXTEN:"+o.cutdigits+"}":(l.tag.prefix||"")+"${EXTEN}","none"!==o.recordingFormat?l.tag.options.indexOf("U(xcally-mixmonitor-context)")<0&&(l.tag.options+="U(xcally-mixmonitor-context)"):l.tag.options=l.tag.options.replace("U(xcally-mixmonitor-context)",""));const t=u().find(l.tags,{name:l.tag.tag});t&&(l.tag.TagId=t.id);if(l.tag.appType&&"custom"===l.tag.appType);else switch((l.tag.app||l.tag.appType).toLowerCase()){case"set":l.tag.appdata=l.tag.name+"="+l.tag.value;break;case"custom":break;default:e[0]=l.tag.tag,l.tag.appdata=e.join(",")}c(l.tag)},l.closeDialog=c,i.hasRole("admin")?r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TAGS",msg:e.data?JSON.stringify(e.data):e.toString()})})):r.tag.get({fields:"id,name",sort:"name",nolimit:"true"}).$promise.then((function(e){l.tags=e.rows||[]})).then((function(){return r.userProfileSection.get({userProfileId:l.currentUser.userProfileId,sectionId:1008}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return r.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(l.tags,{id:e.resourceId})}));let n=null;if(l.tag&&(n=u().find(l.tags,{name:l.tag.tag})),n&&!u().some(t,["id",n.id])){const e=u().find(l.tags,{id:n.id});e.canSelect=!1,t.push(e)}l.tags=t}))}else{const e=[];let t=null;l.tag&&(t=u().find(l.tags,{name:l.tag.tag}));for(let n=0;n<l.tags.length;n++)t&&l.tags[n].id===t.id&&(l.tags[n].canSelect=!1,e.push(l.tags[n]));l.tags=e}})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETtags",msg:e.data?JSON.stringify(e.data):e.toString()})}))}pO.$inject=["$mdDialog","$q","toasty","whatsappAccountApp","whatsappAccount","api","Auth","crudPermissions"];const gO=pO;function hO(e,t,n,a,r,i,s,l,c,d,f){const m=this;function p(e){m.whatsappAccountInteractions=e||{count:0,rows:[]};for(let e=0;e<m.whatsappAccountInteractions.rows.length;e+=1){const t=m.whatsappAccountInteractions.rows[e];_(t),t.Owner.name=b(t)}}function g(){m.query.offset=(m.query.page-1)*m.query.limit,m.promise=d.whatsappInteraction.get(m.query,p).$promise}function h(e){d.whatsappInteraction.delete({id:e.id}).$promise.then((function(){u().remove(m.whatsappAccountInteractions.rows,{id:e.id}),m.whatsappAccountInteractions.count-=1,m.whatsappAccountInteractions.rows.length||g(),c.success({title:"Interaction deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){m.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETwhatsappAccount"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETwhatsappAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}function _(e){e.Contact?e.contactName=(e.Contact.firstName||"")+" "+(e.Contact.lastName||""):e.contactName=r.instant("APP.UNKNOWN")}function b(e){return e.UserId?e.UserId===m.currentUser.id?r.instant("DASHBOARDS.ME"):e.Owner.fullname+" <"+e.Owner.internal+">":r.instant("DASHBOARDS.NOT_ASSIGNED")}m.currentUser=f.getCurrentUser(),m.whatsappAccount={},m.whatsappAccountInteractions={count:0,rows:[]},m.selectedWhatsappAccountInteractions=[],m.crudPermissions,m.query={read:null,closed:null,sort:"-createdAt",includeAll:!0,limit:10,page:1,createdAt:{$gte:o()().startOf("month").utcOffset(0,!0).format(),$lte:o()().endOf("month").utcOffset(0,!0).format()}},m.init=function(e,t){m.whatsappAccount=e,m.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},m.query.WhatsappAccountId=m.whatsappAccount.id,m.advancedSearch={fields:[{name:"Id",column:"id",type:"number"},{name:"Contact",column:"Contact",type:"autocomplete",options:{searchFields:["firstName","lastName","email"],route:{model:"cmContact",action:"get",params:{fields:"id,firstName,lastName,email",Contact:"@autocomplete",nolimit:!0}},extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Subject",column:"subject",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Body",column:"body",type:"text",options:{excludedOperators:["$eq","$ne"]}},{name:"Status",column:"closed",type:"select",values:[{id:0,translate:"DASHBOARDS.OPENED"},{id:1,translate:"DASHBOARDS.CLOSED"}],options:{excludedOperators:["$ne"]}},{name:"Agent",column:"User",type:"autocomplete",options:{table:"i",route:{model:"user",action:"get",params:{role:"agent",fields:"id,name,fullname",nolimit:!0}},searchFields:["fullname","name"],extraOperators:["$substring"],excludedOperators:["$ne"]}},{name:"Tags",column:"Tag",type:"multiselect",options:{route:{model:"tag",action:"get",params:{nolimit:!0}},excludedOperators:["$notIn"]}},{name:"Start Date",column:"createdAt",type:"date",options:{excludedOperators:["$ne"]}},{name:"Read",column:"unreadMessages",type:"select",values:[{id:1,translate:"DASHBOARDS.READ"},{id:0,translate:"DASHBOARDS.UNREAD"}],options:{excludedOperators:["$ne"]}}]},d.tag.get().$promise.then((function(e){m.tags=e||{count:0,rows:[]}})).then((function(){m.quickFilters=[{name:"Start Date",key:"createdAt",type:"date",label:"DASHBOARDS.SELECT_DATE"},{name:"Messages",key:"read",type:"select",label:"DASHBOARDS.SELECT_READ_UNREAD",customOptions:[{value:0,translate:"DASHBOARDS.UNREAD"},{value:1,translate:"DASHBOARDS.READ"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Status",key:"closed",type:"select",label:"DASHBOARDS.SELECT_STATUS",customOptions:[{value:0,translate:"DASHBOARDS.OPENED"},{value:1,translate:"DASHBOARDS.CLOSED"},{value:null,translate:"DASHBOARDS.ALL"}]},{name:"Agent",key:"UserId",type:"select",label:"DASHBOARDS.SELECT_AGENT",customOptions:[{value:null,translate:"DASHBOARDS.NOT_ASSIGNED"},{value:void 0,translate:"DASHBOARDS.ALL"}]},{name:"Tag",key:"tag",type:"multiselect",label:"DASHBOARDS.SELECT_TAG",options:m.tags.rows,placeholder:"DASHBOARDS.TAGS"}]})).then((()=>g()))},m.deleteConfirm=function(e,t){const n=s.confirm().title("Are you sure want to delete the interaction?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("interaction #")+e.id||"interaction")+"</b> will be deleted.").ariaLabel("delete interaction").targetEvent(t).ok("OK").cancel("CANCEL");s.show(n).then((function(){h(e)}),(function(){console.log("CANCEL")}))},m.whatsappInteractionDownload=function(e,t,n){return d.whatsappInteraction.download({id:e.id,exists:!0,attachments:n}).$promise.then((function(t){const n=[t.buffer];let a="interaction"+e.id;const o=new Blob(n,{type:t.type});a="whatsapp-interaction"+e.id+".zip";const r=window.document.createElement("a");r.setAttribute("href",URL.createObjectURL(o)),r.setAttribute("download",a),document.body.appendChild(r),r.click()})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length)for(let t=0;t<e.data.errors.length;t+=1)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message});else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.whatsappAccount.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.success=p,m.getWhatsappAccountInteractions=g,m.spywhatsappInteraction=function(e,n){s.show({controller:"AgentGeneralInteractionController",controllerAs:"vm",templateUrl:up,parent:angular.element(l.body),targetEvent:e,clickOutsideToClose:!0,onShowing:function(e){e.vm.init({id:1,channel:"whatsapp",interaction:n,spy:!0},t.$parent.vm.setting)}})},m.openAdvancedSearch=function(){s.show({controller:"AdvancedSearchController",controllerAs:"vm",templateUrl:so,parent:angular.element(l.body),clickOutsideToClose:!1,locals:{fields:m.advancedSearch.fields,color:void 0,storagePath:"whatsapp.whatsappAccounts"},fullscreen:!0}).then((function(e){if(m.isSearchBarVisible=!(e.value||!m.query.filter),e.apply){let t="";t+="||WhatsappAccountId:=$eq["+m.whatsappAccount.id+"]",m.query.search=e.value?e.value+=t:e.value,g()}})).catch((function(e){c.error({title:"ERROR",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},m.exportSelectedWhatsappAccountInteractions=function(){const e=angular.copy(m.selectedWhatsappAccountInteractions);return m.selectedWhatsappAccountInteractions=[],e},m.deleteWhatsappAccountInteraction=h,m.deleteSelectedWhatsappAccountInteractions=function(e){const t=s.confirm().title("Are you sure want to delete the selected interactions?").htmlContent("<b>"+m.selectedWhatsappAccountInteractions.length+" selected</b> will be deleted.").ariaLabel("delete interactions").targetEvent(e).ok("OK").cancel("CANCEL");s.show(t).then((function(){m.selectedWhatsappAccountInteractions.forEach((function(e){h(e)})),m.selectedWhatsappAccountInteractions=[]}))}}hO.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const _O=hO,bO=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html/agentadd.html";function yO(e,t,n,a,o,r,i,s,l,c,d,f){const m=this;m.currentUser=c.getCurrentUser(),m.license=r,m.setting=i,m.passwordPattern=m.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",m.location=t.protocol()+"://"+t.host(),m.whatsappAccount=d||e.params.whatsappAccount||{},m.userProfileSection=f&&1==f.count?f.rows[0]:null,m.crudPermissions=c.parseCrudPermissions(m.userProfileSection?m.userProfileSection.crudPermissions:null),m.hasModulePermissions={},m.selectedTab=e.params.tab||0,m.agentadddialog=function(e,t){n.show({controller:"WhatsappAccountagentaddController",controllerAs:"vm",templateUrl:bO,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{whatsappAccount:e,whatsappAccounts:m.whatsappAccounts?m.whatsappAccounts.rows:[],crudPermissions:m.crudPermissions,realtime:!1}})},m.alert=l.info,m.gotoWhatsappAccounts=function(){e.go("app.whatsapp.whatsappAccounts",{},{reload:"app.whatsapp.whatsappAccounts"})},m.saveWhatsappAccount=function(){s.whatsappAccount.update({id:m.whatsappAccount.id},m.whatsappAccount).$promise.then((function(){l.success({title:"WhatsappAccount updated!",msg:m.whatsappAccount.name?m.whatsappAccount.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETwhatsappAccount",msg:e.data?JSON.stringify(e.data):e.toString()})}))},c.hasRole("admin")?s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){m.lists=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.lists,{id:e.resourceId})}));let n=null;if(m.whatsappAccount&&(n=u().find(m.lists,{id:Number(m.whatsappAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(m.lists,{id:n.id});e.canSelect=!1,t.push(e)}m.lists=t}))}else{const e=[];let t=null;m.whatsappAccount&&(t=u().find(m.lists,{id:Number(m.whatsappAccount.ListId)}));for(let n=0;n<m.lists.length;n++)t&&m.lists[n].id===t.id&&(m.lists[n].canSelect=!1,e.push(m.lists[n]));m.lists=e}})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),c.hasRole("admin")?s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):s.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){m.pauses=e.rows||[]})).then((function(){return s.userProfileSection.get({userProfileId:m.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return s.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(m.pauses,{id:e.resourceId})}));m.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),m.pauses=t}))}else m.pauses=[]})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}))}yO.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","whatsappAccount","userProfileSection"];const vO=yO,AO=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog.html";function SO(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.whatsappAccountWhatsappCannedAnswers=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=c.whatsappAccount.getAnswers(f.query,m).$promise}function g(e){c.cannedAnswer.delete({id:e.id}).$promise.then((function(){u().remove(f.whatsappAccountWhatsappCannedAnswers.rows,{id:e.id}),f.whatsappAccountWhatsappCannedAnswers.count-=1,f.whatsappAccountWhatsappCannedAnswers.rows.length||p(),l.success({title:"WhatsappCannedAnswer deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:GETwhatsappAccount"}];for(let t=0;t<e.data.errors.length;t++)l.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETwhatsappAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.whatsappAccount={},f.whatsappAccountWhatsappCannedAnswers={count:0,rows:[]},f.selectedWhatsappAccountWhatsappCannedAnswers=[],f.crudPermissions,f.query={fields:"createdAt,updatedAt,id,key,value,description",limit:10,page:1},f.init=function(e,t){f.whatsappAccount=e,f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.WhatsappAccountId=f.whatsappAccount.id,f.query.id=f.whatsappAccount.id,p()},f.deleteConfirm=function(e,t){const n=i.confirm().title("Are you sure want to delete the whatsappCannedAnswer?").htmlContent("<b>"+(e.name||e.id&&u().upperFirst("whatsappCannedAnswer #")+e.id||"whatsappCannedAnswer")+"</b> will be deleted.").ariaLabel("delete whatsappCannedAnswer").targetEvent(t).ok("OK").cancel("CANCEL");i.show(n).then((function(){g(e)}),(function(){console.log("CANCEL")}))},f.success=m,f.getWhatsappAccountWhatsappCannedAnswers=p,f.createOrEditWhatsappAccountWhatsappCannedAnswer=function(e,t){i.show({controller:"CreateOrEditWhatsappCannedAnswerDialogController",controllerAs:"vm",templateUrl:AO,parent:angular.element(s.body),targetEvent:e,clickOutsideToClose:!0,locals:{whatsappAccount:f.whatsappAccount,whatsappCannedAnswer:t,whatsappCannedAnswers:f.whatsappAccountWhatsappCannedAnswers.rows,license:null,setting:null,crudPermissions:f.crudPermissions}})},f.exportSelectedWhatsappAccountWhatsappCannedAnswers=function(){const e=angular.copy(f.selectedWhatsappAccountWhatsappCannedAnswers);return f.selectedWhatsappAccountWhatsappCannedAnswers=[],e},f.deleteWhatsappAccountWhatsappCannedAnswer=g,f.deleteSelectedWhatsappAccountWhatsappCannedAnswers=function(e){const t=i.confirm().title("Are you sure want to delete the selected whatsappCannedAnswers?").htmlContent("<b>"+f.selectedWhatsappAccountWhatsappCannedAnswers.length+" selected</b> will be deleted.").ariaLabel("delete whatsappCannedAnswers").targetEvent(e).ok("OK").cancel("CANCEL");i.show(t).then((function(){f.selectedWhatsappAccountWhatsappCannedAnswers.forEach((function(e){g(e)})),f.selectedWhatsappAccountWhatsappCannedAnswers=[]}))}}SO.$inject=["$cookies","$scope","$state","$q","$translate","$timeout","$mdDialog","$document","toasty","api","Auth"];const wO=SO;function EO(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="WHATSAPP.EDIT_WHATSAPPCANNEDANSWER",g.whatsappCannedAnswer=angular.copy(l),g.whatsappCannedAnswers=s,g.newWhatsappCannedAnswer=!1,g.whatsappCannedAnswer||(g.whatsappCannedAnswer={},g.title="WHATSAPP.NEW_WHATSAPPCANNEDANSWER",g.newWhatsappCannedAnswer=!0),t.params.id&&(g.whatsappCannedAnswer.WhatsappAccountId=t.params.id),g.addNewWhatsappCannedAnswer=function(){g.errors=[],c.cannedAnswer.save(g.whatsappCannedAnswer).$promise.then((function(e){g.whatsappCannedAnswers.unshift(e.toJSON()),i.success({title:"WhatsappCannedAnswer properly created",msg:g.whatsappCannedAnswer.name?g.whatsappCannedAnswer.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveWhatsappCannedAnswer=function(){g.errors=[],c.cannedAnswer.update({id:g.whatsappCannedAnswer.id},g.whatsappCannedAnswer).$promise.then((function(e){const t=u().find(g.whatsappCannedAnswers,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"WhatsappCannedAnswer properly saved!",msg:g.whatsappCannedAnswer.name?g.whatsappCannedAnswer.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteWhatsappCannedAnswer=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The whatsappCannedAnswer will be deleted.").ariaLabel("Delete WhatsappCannedAnswer").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.cannedAnswer.delete({id:g.whatsappCannedAnswer.id}).$promise.then((function(){u().remove(g.whatsappCannedAnswers,{id:g.whatsappCannedAnswer.id}),i.success({title:"WhatsappCannedAnswer properly deleted!",msg:(g.whatsappCannedAnswer.name||"whatsappCannedAnswer")+" has been deleted!"}),h(g.whatsappCannedAnswer)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.cannedAnswer.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.cannedAnswer.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}EO.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","whatsappCannedAnswers","whatsappCannedAnswer","api","Auth","license","setting","crudPermissions"];const CO=EO;function TO(e,t,n,a,o,r,i,s,l,c,d){const f=this;function m(e){f.dispositions=e||{count:0,rows:[]}}function p(){f.query.offset=(f.query.page-1)*f.query.limit,f.promise=l.whatsappAccount.getDispositions(f.query,m).$promise}function g(e){l.disposition.delete({id:e.id}).$promise.then((function(){p(),c.success({title:s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE")})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){f.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEdisposition"}];for(let t=0;t<e.data.errors.length;t++)c.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else c.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEdisposition",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}f.currentUser=d.getCurrentUser(),f.dispositions={count:0,rows:[]},f.selectedDispositions=[],f.crudPermissions,f.levels={first:"1st",second:"2nd",third:"3rd"},f.query={fields:"id,level,name,description,ParentId,createdAt,updatedAt",sort:"-updatedAt",limit:10,page:1},f.init=function(e,t){f.whatsappAccount=e||{},f.crudPermissions=void 0!==t?t:{readOnly:!0,canEdit:!1,canDelete:!1},f.query.WhatsappAccountId=f.whatsappAccount.id,f.query.id=f.whatsappAccount.id,p()},f.deleteConfirm=function(e,t){const n=u().some(f.dispositions.rows,["ParentId",e.id]),a=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS."+(n?"DISPOSITION_DELETE_MESSAGE_CHILDREN":"DISPOSITION_DELETE_MESSAGE"),{name:e.name})).ariaLabel("Delete disposition").targetEvent(t).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(a).then((function(){g(e)}))},f.success=m,f.getDispositions=p,f.createOrEditDisposition=function(e,t){o.show({controller:"CreateOrEditDispositionDialogController",controllerAs:"vm",templateUrl:ol,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{disposition:t,model:{id:f.whatsappAccount.id,field:"WhatsappAccountId",route:"whatsappAccount"},license:null,setting:null,crudPermissions:f.crudPermissions}}).then((function(e){e&&p()}))},f.deleteDisposition=g,f.exportSelectedDispositions=function(){const e=angular.copy(f.selectedDispositions);return f.selectedDispositions=[],e},f.deleteSelectedDispositions=function(e){const t=o.confirm().title(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE")).content(s.instant("TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE",{total:f.selectedDispositions.length})).ariaLabel("Delete dispositions").targetEvent(e).ok("OK").cancel(s.instant("APP.CANCEL"));o.show(t).then((function(){f.selectedDispositions.forEach((function(e){g(e)})),f.selectedDispositions=[]}))},f.deselectDispositions=function(){f.selectedDispositions=[]},f.selectAllDispositions=function(){f.selectedDispositions=f.dispositions.rows}}TO.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","api","toasty","Auth"];const IO=TO,kO=n.p+"templates/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog.html";function DO(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.whatsappAccounts=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="whatsappAccounts",b.listOrder="",b.listOrderAsc=null,b.selectedWhatsappAccounts=[],b.query={fields:"createdAt,updatedAt,id,name,key,ListId,remote,token,type,accountSid,authToken,phone,receiveUrl,deliveryReportUrl,notificationShake,notificationSound,notificationTemplate,queueTransfer,queueTransferTimeout,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,agentTransfer,agentTransferTimeout,description",sort:"-updatedAt",limit:10,page:1},b.arraytype=u().keyBy([{option:"Twilio",value:"'twilio'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.whatsapp.whatsappAccounts.edit",{id:e.id,whatsappAccount:e,crudPermissions:b.crudPermissions})},b.interactionsgoto=function(e){n.go("app.whatsapp.whatsappAccounts.edit",{id:e.id,tab:5})},b.agentadddialog=function(e,t){o.show({controller:"WhatsappAccountagentaddController",controllerAs:"vm",templateUrl:bO,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{whatsappAccount:e,whatsappAccounts:b.whatsappAccounts?b.whatsappAccounts.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("whatsappAccount")+"?").htmlContent("<b>"+(e.name||"whatsappAccount")+"</b> will be deleted.").ariaLabel("delete whatsappAccount").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.success=A,b.getWhatsappAccounts=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.whatsappAccount.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="WhatsappAccounts",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditWhatsappAccount=function(e,t){o.show({controller:"CreateOrEditWhatsappAccountDialogController",controllerAs:"vm",templateUrl:kO,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{whatsappAccount:t,whatsappAccounts:b.whatsappAccounts.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteWhatsappAccount=S,b.exportSelectedWhatsappAccounts=function(){const e=angular.copy(b.selectedWhatsappAccounts);return b.selectedWhatsappAccounts=[],e},b.deleteSelectedWhatsappAccounts=function(e){const t=o.confirm().title("Are you sure want to delete the selected whatsappAccounts?").htmlContent("<b>"+b.selectedWhatsappAccounts.length+" selected</b> will be deleted.").ariaLabel("delete WhatsappAccounts").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedWhatsappAccounts.forEach((function(e){S(e)})),b.selectedWhatsappAccounts=[]}))},b.deselectWhatsappAccounts=function(){b.selectedWhatsappAccounts=[]},b.selectAllWhatsappAccounts=function(){b.selectedWhatsappAccounts=b.whatsappAccounts.rows},g.hasRole("admin")?f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_LISTS",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.cmList.get({fields:"id,name",sort:"name"}).$promise.then((function(e){b.lists=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:301}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.lists,{id:e.resourceId})}));let n=null;if(b.whatsappAccount&&(n=u().find(b.lists,{id:Number(b.whatsappAccount.ListId)})),n&&!u().some(t,["id",n.id])){const e=u().find(b.lists,{id:n.id});e.canSelect=!1,t.push(e)}b.lists=t}))}else{const e=[];let t=null;b.whatsappAccount&&(t=u().find(b.lists,{id:Number(b.whatsappAccount.ListId)}));for(let n=0;n<b.lists.length;n++)t&&b.lists[n].id===t.id&&(b.lists[n].canSelect=!1,e.push(b.lists[n]));b.lists=e}})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETlists",msg:e.data?JSON.stringify(e.data):e.toString()})})),g.hasRole("admin")?f.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){b.pauses=e.rows||[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_PAUSES",msg:e.data?JSON.stringify(e.data):e.toString()})})):f.pause.get({fields:"name,id",sort:"name",nolimit:"true"}).$promise.then((function(e){b.pauses=e.rows||[]})).then((function(){return f.userProfileSection.get({userProfileId:b.currentUser.userProfileId,sectionId:1005}).$promise})).then((function(e){const t=e&&e.rows?e.rows[0]:null;if(t){if(!t.autoAssociation)return f.userProfileResource.get({sectionId:t.id}).$promise.then((function(e){const t=u().map(e.rows,(function(e){return u().find(b.pauses,{id:e.resourceId})}));b.pauses.forEach((function(e){u().some(t,["id",e.id])||(e.canSelect=!1),t.push(e)})),b.pauses=t}))}else b.pauses=[]})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETpauses",msg:e.data?JSON.stringify(e.data):e.toString()})}));let y=!0,v=1;function A(e){b.whatsappAccounts=e||{count:0,rows:[]}}function S(e){f.whatsappAccount.delete({id:e.id}).$promise.then((function(){u().remove(b.whatsappAccounts.rows,{id:e.id}),b.whatsappAccounts.count-=1,b.whatsappAccounts.rows.length||b.getWhatsappAccounts(),p.success({title:u().startCase("WhatsappAccount")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEwhatsappAccount"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEwhatsappAccount",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getWhatsappAccounts())}))}DO.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","whatsappAccounts","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const xO=DO;function MO(e,t,n,a,o,r,i,s,l,c,d,f,m,p){const g=this;function h(e){a.hide(e)}g.currentUser=d.getCurrentUser(),g.errors=[],g.setting=m,g.license=f,g.crudPermissions=p,g.hasModulePermissions={},g.passwordPattern=g.setting&&g.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",g.title="WHATSAPP.EDIT_WHATSAPPQUEUE",g.whatsappQueue=angular.copy(l),g.whatsappQueues=s,g.newWhatsappQueue=!1,g.whatsappQueue||(g.whatsappQueue={strategy:"beepall",timeout:10},g.title="WHATSAPP.NEW_WHATSAPPQUEUE",g.newWhatsappQueue=!0),g.addNewWhatsappQueue=function(){g.errors=[],c.whatsappQueue.save(g.whatsappQueue).$promise.then((function(e){g.whatsappQueues.unshift(e.toJSON()),i.success({title:"WhatsappQueue properly created",msg:g.whatsappQueue.name?g.whatsappQueue.name+" has been created!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.whatsappQueue.save"}];for(let t=0;t<e.data.errors.length;t+=1)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.whatsappQueue.save",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.saveWhatsappQueue=function(){g.errors=[],c.whatsappQueue.update({id:g.whatsappQueue.id},g.whatsappQueue).$promise.then((function(e){const t=u().find(g.whatsappQueues,{id:e.id});t&&u().merge(t,u().pick(e.toJSON(),u().keys(t))),i.success({title:"WhatsappQueue properly saved!",msg:g.whatsappQueue.name?g.whatsappQueue.name+" has been saved!":""}),h(e)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.whatsappQueue.update"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.whatsappQueue.update",msg:e.data?JSON.stringify(e.data.message):e.toString()})}))},g.deleteWhatsappQueue=function(e){g.errors=[];const t=a.confirm().title("Are you sure?").content("The whatsappQueue will be deleted.").ariaLabel("Delete WhatsappQueue").ok("Delete").cancel("Cancel").targetEvent(e);a.show(t).then((function(){c.whatsappQueue.delete({id:g.whatsappQueue.id}).$promise.then((function(){u().remove(g.whatsappQueues,{id:g.whatsappQueue.id}),i.success({title:"WhatsappQueue properly deleted!",msg:(g.whatsappQueue.name||"whatsappQueue")+" has been deleted!"}),h(g.whatsappQueue)})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){g.errors=e.data.errors||[{message:e.toString(),type:"api.whatsappQueue.delete"}];for(let t=0;t<e.data.errors.length;t++)i.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else i.error({title:e.status?"API:"+e.status+" - "+e.statusText:"api.whatsappQueue.delete",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}),(function(){}))},g.getDateFromString=function(e){return null===e?void 0:new Date(e)},g.closeDialog=h}MO.$inject=["$scope","$state","$location","$mdDialog","$q","$translate","toasty","whatsappQueues","whatsappQueue","api","Auth","license","setting","crudPermissions"];const PO=MO;function OO(e,t,n,a,o,r,i,s,l,c){const d=this;function f(){return t((function(e,n){return t((function(e,t){return a.user.get({fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return d.items=e.rows?e.rows:[],l.hasRole("admin")?e:d.section?d.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:d.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return d.allowedItems=u().map(n,(function(e){return u().find(d.items,{id:l.hasRole("admin")||d.section.autoAssociation?e.id:e.resourceId})})),d.startingAllowedItems=angular.copy(d.allowedItems),d.items.forEach((function(e){const t=u().find(d.allowedItems,{id:e.id});l.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.whatsappQueue.getAgents({id:d.whatsappQueue.id,fields:"id,name,internal,fullname",nolimit:!0,role:"agent"}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];d.selectedItems=u().map(n,(function(e){const t=u().find(d.items,{id:e.id});return t.penalty=e.UserWhatsappQueue?"penalty "+e.UserWhatsappQueue.penalty:"",t.internal=void 0!==e.internal?"<"+e.internal+">":"",t})),d.startingSelectedItems=angular.copy(d.selectedItems),d.dualMultiselectOptions.selectedItems=d.selectedItems,d.dualMultiselectOptions.items=u().differenceBy(d.allowedItems,d.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}d.currentUser=l.getCurrentUser(),d.whatsappQueue=o,d.crudPermissions=c,d.realtime=i,d.items=[],d.allowedItems=[],d.selectedItems=[],d.startingAllowedItems=[],d.startingSelectedItems=[],d.pendingChanges=!1,d.onInit=function(){return l.hasRole("admin")?f().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:d.currentUser.userProfileId,name:"Agents"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return d.section=e,f()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_AGENTS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},d.saveAgents=function(){const e=u().differenceBy(d.startingSelectedItems,d.selectedItems,"id"),o=u().differenceBy(d.selectedItems,d.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.whatsappQueue.removeAgents({id:d.whatsappQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.whatsappQueue.addAgents({id:d.whatsappQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){d.pendingChanges=!1,d.startingAllowedItems=angular.copy(d.allowedItems),d.startingSelectedItems=angular.copy(d.selectedItems),n.success({title:"SUCCESS",msg:"Agents association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},d.closeDialog=function(){e.hide()},d.dualMultiselectOptions={items:[],selectedItems:[],orderBy:"name",line1:"fullname",line2:["name","internal"],line3:"",labelAll:s.instant("APP.ALL_AGENTS"),labelSelected:s.instant("APP.SELECTED_AGENTS"),transferCallback:function(){const e=u().xorBy(d.startingSelectedItems,d.selectedItems,"id");d.pendingChanges=!u().isEmpty(e)}}}OO.$inject=["$mdDialog","$q","toasty","api","whatsappQueue","whatsappQueues","realtime","$translate","Auth","crudPermissions"];const RO=OO;function NO(e,t,n,a,o,r,i,s){const l=this;function c(){return t((function(e,n){return t((function(e,t){return a.team.get({fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})).then((function(e){return l.items=e.rows?e.rows:[],i.hasRole("admin")?e:l.section?l.section.autoAssociation?e:t((function(e,t){return a.userProfileResource.get({sectionId:l.section.id,nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))})):null})).then((function(e){const n=e&&e.rows?e.rows:[];return l.allowedItems=u().map(n,(function(e){return u().find(l.items,{id:i.hasRole("admin")||l.section.autoAssociation?e.id:e.resourceId})})),l.items.forEach((function(e){const t=u().find(l.allowedItems,{id:e.id});i.hasRole("admin")?e.isValid=!0:e.isValid=void 0!==t})),t((function(e,t){return a.whatsappQueue.getTeams({id:l.whatsappQueue.id,fields:"id,name",nolimit:!0}).$promise.then((function(t){e(t)})).catch((function(e){t(e)}))}))})).then((function(t){const n=t&&t.rows?t.rows:[];l.selectedItems=u().map(n,(function(e){const t=u().find(l.items,{id:e.id});return t.penalty=e.TeamVoiceQueue?"penalty "+e.TeamVoiceQueue.penalty:"",t})),l.startingSelectedItems=angular.copy(l.selectedItems),l.dualMultiselectOptions.selectedItems=l.selectedItems,l.dualMultiselectOptions.items=u().differenceBy(l.allowedItems,l.dualMultiselectOptions.selectedItems,"id"),e()})).catch((function(e){n(e)}))}))}l.currentUser=i.getCurrentUser(),l.whatsappQueue=o,l.crudPermissions=s,l.items=[],l.allowedItems=[],l.selectedItems=[],l.startingAllowedItems=[],l.startingSelectedItems=[],l.pendingChanges=!1,l.dualMultiselectOptions={allowedItems:[],selectedItems:[],orderBy:"name",line1:"name",line2:"",line3:"",labelAll:r.instant("APP.ALL_TEAMS"),labelSelected:r.instant("APP.SELECTED_TEAMS"),transferCallback:function(){const e=u().xorBy(l.startingSelectedItems,l.selectedItems,"id");l.pendingChanges=!u().isEmpty(e)}},l.onInit=function(){return i.hasRole("admin")?c().catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})})):t((function(e,t){a.userProfileSection.get({userProfileId:l.currentUser.userProfileId,name:"Teams"}).$promise.then((function(t){const n=t&&t.rows?t.rows[0]:null;e(n)})).catch((function(e){t(e)}))})).then((function(e){return l.section=e,c()})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GET_TEAMS",msg:e.status?JSON.stringify(e.data):e.toString()})}))},l.saveTeams=function(){const e=u().differenceBy(l.startingSelectedItems,l.selectedItems,"id"),o=u().differenceBy(l.selectedItems,l.startingSelectedItems,"id");return(r=e,t((function(e,t){u().isEmpty(r)?e():a.whatsappQueue.removeTeams({id:l.whatsappQueue.id,ids:u().map(r,"id")}).$promise.then((function(){e()})).catch((function(e){t(e)}))}))).then((function(){return function(e){return t((function(t,n){u().isEmpty(e)?t():a.whatsappQueue.addTeams({id:l.whatsappQueue.id,ids:u().map(e,"id")}).$promise.then((function(){t()})).catch((function(e){n(e)}))}))}(o)})).then((function(){l.pendingChanges=!1,l.startingAllowedItems=angular.copy(l.allowedItems),l.startingSelectedItems=angular.copy(l.selectedItems),n.success({title:"SUCCESS",msg:"Teams association has been updated!"})})).catch((function(e){n.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:LISTS_ASSOCIATION",msg:e.status?JSON.stringify(e.data):e.toString()})}));var r},l.closeDialog=function(){e.hide()}}NO.$inject=["$mdDialog","$q","toasty","api","whatsappQueue","$translate","Auth","crudPermissions"];const LO=NO,$O=n.p+"templates/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd.html";function UO(e,t,n,a,o,r,i,s,l,c,u,d){const f=this;f.currentUser=c.getCurrentUser(),f.license=r,f.setting=i,f.passwordPattern=f.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:"",f.location=t.protocol()+"://"+t.host(),f.whatsappQueue=u||e.params.whatsappQueue||{},f.userProfileSection=d&&1==d.count?d.rows[0]:null,f.crudPermissions=c.parseCrudPermissions(f.userProfileSection?f.userProfileSection.crudPermissions:null),f.hasModulePermissions={},f.selectedTab=e.params.tab||0,f.teamadddialog=function(e,t){n.show({controller:"WhatsappQueueteamaddController",controllerAs:"vm",templateUrl:$O,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{whatsappQueue:e,whatsappQueues:f.whatsappQueues?f.whatsappQueues.rows:[],crudPermissions:f.crudPermissions}})},f.agentadddialog=function(e,t){n.show({controller:"WhatsappQueueagentaddController",controllerAs:"vm",templateUrl:mP,parent:angular.element(a.body),targetEvent:t,clickOutsideToClose:!0,locals:{whatsappQueue:e,whatsappQueues:f.whatsappQueues?f.whatsappQueues.rows:[],crudPermissions:f.crudPermissions,realtime:!1}})},f.alert=l.info,f.gotoWhatsappQueues=function(){e.go("app.whatsapp.whatsappQueues",{},{reload:"app.whatsapp.whatsappQueues"})},f.saveWhatsappQueue=function(){s.whatsappQueue.update({id:f.whatsappQueue.id},f.whatsappQueue).$promise.then((function(){l.success({title:"WhatsappQueue updated!",msg:f.whatsappQueue.name?f.whatsappQueue.name+" has been updated!":""})})).catch((function(e){l.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:GETwhatsappQueue",msg:e.data?JSON.stringify(e.data):e.toString()})}))}}UO.$inject=["$state","$location","$mdDialog","$document","$translate","license","setting","api","toasty","Auth","whatsappQueue","userProfileSection"];const jO=UO;function FO(e,t,n,a,o,r,i,s,l,c,d,f,m,p,g,h,_){const b=this;b.license=h,b.setting=_,b.currentUser=g.getCurrentUser(),b.whatsappQueues=l||{count:0,rows:[]},b.userProfile=c,b.userProfileSection=d&&1==d.count?d.rows[0]:null,b.crudPermissions=g.parseCrudPermissions(b.userProfileSection?b.userProfileSection.crudPermissions:null),b.table="whatsappQueues",b.listOrder="",b.listOrderAsc=null,b.selectedWhatsappQueues=[],b.query={fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"whatsapp",limit:10,page:1},b.arraystrategy=u().keyBy([{option:"Beepall",value:"'beepall'"},{option:"RR Memory",value:"'rrmemory'"}],(function(e){return u().replace(e.value,new RegExp("'","g"),"")})),b.editstate=function(e){n.go("app.whatsapp.whatsappQueues.edit",{id:e.id,whatsappQueue:e,crudPermissions:b.crudPermissions})},b.teamadddialog=function(e,t){o.show({controller:"WhatsappQueueteamaddController",controllerAs:"vm",templateUrl:$O,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{whatsappQueue:e,whatsappQueues:b.whatsappQueues?b.whatsappQueues.rows:[],crudPermissions:b.crudPermissions}})},b.agentadddialog=function(e,t){o.show({controller:"WhatsappQueueagentaddController",controllerAs:"vm",templateUrl:mP,parent:angular.element(r.body),targetEvent:t,clickOutsideToClose:!0,locals:{whatsappQueue:e,whatsappQueues:b.whatsappQueues?b.whatsappQueues.rows:[],crudPermissions:b.crudPermissions,realtime:!1}})},b.deleteconfirm=function(e,t){const n=o.confirm().title("Are you sure want to delete the "+u().startCase("whatsappQueue")+"?").htmlContent("<b>"+(e.name||"whatsappQueue")+"</b> will be deleted.").ariaLabel("delete whatsappQueue").targetEvent(t).ok("OK").cancel("CANCEL");o.show(n).then((function(){S(e)}),(function(){console.log("CANCEL")}))},b.gotorealtimegoto=function(){if(!g.hasRole("admin"))return f.userProfileSection.get({userProfileId:g.getCurrentUser().userProfileId,sectionId:2110}).$promise.then((function(e){const t=e&&e.rows?e.rows[0]:null;t&&t.enabled?n.go("app.whatsapp.realtime.queues",{}):p.info({title:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE"),msg:s.instant("STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE")})})).catch((function(e){p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"USERPROFILE:GET_SECTION",msg:e.status?JSON.stringify(e.data):e.toString()})}));n.go("app.whatsapp.realtime.queues",{})},b.success=A,b.getWhatsappQueues=function(){b.query.offset=(b.query.page-1)*b.query.limit,g.hasRole("admin")?b.promise=f.whatsappQueue.get(b.query,A).$promise:(b.query.id=b.userProfile.id,b.query.section="WhatsappQueues",b.promise=f.userProfile.getResources(b.query,A).$promise)},b.createOrEditWhatsappQueue=function(e,t){o.show({controller:"CreateOrEditWhatsappQueueDialogController",controllerAs:"vm",templateUrl:fP,parent:angular.element(r.body),targetEvent:e,clickOutsideToClose:!0,locals:{whatsappQueue:t,whatsappQueues:b.whatsappQueues.rows,license:b.license,setting:b.setting,crudPermissions:b.crudPermissions}})},b.deleteWhatsappQueue=S,b.exportSelectedWhatsappQueues=function(){const e=angular.copy(b.selectedWhatsappQueues);return b.selectedWhatsappQueues=[],e},b.deleteSelectedWhatsappQueues=function(e){const t=o.confirm().title("Are you sure want to delete the selected whatsappQueues?").htmlContent("<b>"+b.selectedWhatsappQueues.length+" selected</b> will be deleted.").ariaLabel("delete WhatsappQueues").targetEvent(e).ok("OK").cancel("CANCEL");o.show(t).then((function(){b.selectedWhatsappQueues.forEach((function(e){S(e)})),b.selectedWhatsappQueues=[]}))},b.deselectWhatsappQueues=function(){b.selectedWhatsappQueues=[]},b.selectAllWhatsappQueues=function(){b.selectedWhatsappQueues=b.whatsappQueues.rows};let y=!0,v=1;function A(e){b.whatsappQueues=e||{count:0,rows:[]}}function S(e){f.whatsappQueue.delete({id:e.id}).$promise.then((function(){u().remove(b.whatsappQueues.rows,{id:e.id}),b.whatsappQueues.count-=1,b.whatsappQueues.rows.length||b.getWhatsappQueues(),p.success({title:u().startCase("WhatsappQueue")+" deleted!",msg:e.name?e.name+" has been deleted!":""})})).catch((function(e){if(e.data&&e.data.errors&&e.data.errors.length){b.errors=e.data.errors||[{message:e.toString(),type:"SYSTEM:DELETEwhatsappQueue"}];for(let t=0;t<e.data.errors.length;t++)p.error({title:e.data.errors[t].type,msg:e.data.errors[t].message})}else p.error({title:e.status?"API:"+e.status+" - "+e.statusText:"SYSTEM:DELETEwhatsappQueue",msg:e.data?JSON.stringify(e.data.message):e.message||e.toString()})}))}e.$watch("vm.query.filter",(function(e,t){y?i((function(){y=!1})):(t||(v=b.query.page),e!==t&&(b.query.page=1),e||(b.query.page=v),b.getWhatsappQueues())}))}FO.$inject=["$scope","$window","$state","$mdSidenav","$mdDialog","$document","$timeout","$translate","whatsappQueues","userProfile","userProfileSection","api","msUtils","toasty","Auth","license","setting"];const qO=FO;function YO(e,t){e.state("app.whatsapp",{abstract:!0,url:"/whatsapp"}).state("app.whatsapp.whatsappQueues",{url:"/whatsappQueues",views:{"content@app":{templateUrl:vP,controller:"WhatsappQueuesController as vm"}},resolve:{whatsappQueues:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("whatsappQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"whatsapp",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"WhatsappQueues",fields:"createdAt,updatedAt,id,name,strategy,timeout,description",sort:"-updatedAt",channel:"whatsapp",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:2101})}]},authenticate:!0,permissionId:2101,bodyClass:"whatsapp"}).state("app.whatsapp.whatsappQueues.edit",{url:"/:id?tab",params:{whatsappQueue:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:AP,controller:"WhatsappQueueController as vm"}},resolve:{whatsappQueue:["apiResolver","$stateParams",function(e,t){return e.resolve("whatsappQueue@get",{fields:"createdAt,updatedAt,id,name,strategy,timeout,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:2101})}]},authenticate:!0,permissionId:2101,bodyClass:"whatsapp"}).state("app.whatsapp.whatsappAccounts",{url:"/whatsappAccounts",views:{"content@app":{templateUrl:SP,controller:"WhatsappAccountsController as vm"}},resolve:{whatsappAccounts:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?e.resolve("whatsappAccount@get",{fields:"createdAt,updatedAt,id,name,key,ListId,remote,token,type,accountSid,authToken,phone,receiveUrl,deliveryReportUrl,notificationShake,notificationSound,notificationTemplate,queueTransfer,queueTransferTimeout,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,agentTransfer,agentTransferTimeout,description",sort:"-updatedAt",limit:10,offset:0}):e.resolve("userProfile@getResources",{id:t.getCurrentUser().userProfileId,section:"WhatsappAccounts",fields:"createdAt,updatedAt,id,name,key,ListId,remote,token,type,accountSid,authToken,phone,receiveUrl,deliveryReportUrl,notificationShake,notificationSound,notificationTemplate,queueTransfer,queueTransferTimeout,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,agentTransfer,agentTransferTimeout,description",sort:"-updatedAt",limit:10,offset:0})}],userProfile:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfile@get",{fields:"id,name,crudPermissions",id:t.getCurrentUser().userProfileId})}],userProfileSection:["apiResolver","Auth",function(e,t){return t.hasRole("admin")?null:e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:2102})}]},authenticate:!0,permissionId:2102,bodyClass:"whatsapp"}).state("app.whatsapp.whatsappAccounts.edit",{url:"/:id?tab",params:{whatsappAccount:void 0,crudPermissions:void 0},views:{"content@app":{templateUrl:wP,controller:"WhatsappAccountController as vm"}},resolve:{whatsappAccount:["apiResolver","$stateParams",function(e,t){return e.resolve("whatsappAccount@get",{fields:"createdAt,updatedAt,id,name,key,ListId,remote,token,type,accountSid,authToken,phone,receiveUrl,deliveryReportUrl,notificationShake,notificationSound,notificationTemplate,queueTransfer,queueTransferTimeout,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,agentTransfer,agentTransferTimeout,description",id:t.id})}],userProfileSection:["apiResolver","Auth",function(e,t){return e.resolve("userProfileSection@get",{fields:"id,name,enabled,includeAll,autoAssociation,crudPermissions",userProfileId:t.getCurrentUser().userProfileId,sectionId:2102})}]},authenticate:!0,permissionId:2102,bodyClass:"whatsapp"}),t.addPart("app/main/apps/whatsapp")}YO.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.whatsapp",["ngCsv","ngPassword","md.data.table","flow","mdColorPicker","ckeditor","ng-sortable","ngAria","ngAnimate","mdPickers","mwFormBuilder","mwFormViewer","mwFormUtils","ngclipboard","angular-cron-jobs","ngEmbed","angularMaterialFormBuilder","material.components.expansionPanels","chart.js","angular.filter","app.whatsapp.realtime"]).config(YO).controller("CreateOrEditWhatsappAccountDialogController",CP).controller("WhatsappAccountActionsController",qP).controller("WhatsappAccountagentaddController",HP).controller("EditWhatsappAccountAppagentDialogController",GP).controller("EditWhatsappAccountAppamazonlexDialogController",WP).controller("EditWhatsappAccountAppautoreplyDialogController",zP).controller("EditWhatsappAccountAppcloseDialogController",JP).controller("EditWhatsappAccountAppdialogflowDialogController",ZP).controller("EditWhatsappAccountAppdialogflowv2DialogController",tO).controller("EditWhatsappAccountAppgotoifDialogController",aO).controller("EditWhatsappAccountAppgotopDialogController",rO).controller("EditWhatsappAccountAppintervalDialogController",sO).controller("EditWhatsappAccountAppnoopDialogController",cO).controller("EditWhatsappAccountAppqueueDialogController",dO).controller("EditWhatsappAccountAppsystemDialogController",mO).controller("EditWhatsappAccountApptagDialogController",gO).controller("WhatsappAccountInteractionsController",_O).controller("WhatsappAccountController",vO).controller("WhatsappAccountWhatsappCannedAnswersController",wO).controller("CreateOrEditWhatsappCannedAnswerDialogController",CO).controller("WhatsappAccountDispositionsController",IO).controller("WhatsappAccountsController",xO).controller("CreateOrEditWhatsappQueueDialogController",PO).controller("WhatsappQueueagentaddController",RO).controller("WhatsappQueueteamaddController",LO).controller("WhatsappQueueController",jO).controller("WhatsappQueuesController",qO);const HO=n.p+"templates/login/login.html/login.html",BO=n.p+"templates/core/layouts/content-only.html/content-only.html",GO=n.p+"templates/core/layouts/content-with-toolbar.html/content-with-toolbar.html",VO=n.p+"templates/core/layouts/horizontal-navigation.html/horizontal-navigation.html",WO=n.p+"templates/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2.html",QO=n.p+"templates/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar.html",zO=n.p+"templates/core/layouts/vertical-navigation.html/vertical-navigation.html";class KO{constructor(e,t,n,a,o,r,i){this.message="",this.progresslogin=!1,this.progressloginClassname="loading-overlay",this.googleSsoEnabled=!1,this.baseUrl=a.baseUrl,this.$scope=i,this.form=null,this.Auth=o,this.$state=e,this.$window=t,this.$cookies=n,this.setting=r,this.api=a}async setProgressLogin(e=!1){await Ye(),this.progresslogin=e,this.progressloginClassname=e?"loading-overlay loading":"loading-overlay",this.$scope.$apply()}async $onInit(){const{$state:e,Auth:t,api:n,$cookies:a,setting:o}=this;if(e.params.token&&e.params.userId){t.removeCookies(),await this.setProgressLogin(!0);try{a.put("motion.token",e.params.token);const o=await n.user.get({id:e.params.userId}).$promise;o&&(t.setCurrentUser(o),await e.go("app.dashboards.general"))}catch(e){console.error(e)}finally{await this.setProgressLogin(!1)}}else t.isLoggedIn()&&await e.go("app.dashboards.general");this.googleSsoEnabled=o.googleSsoEnabled}async login(){await this.setProgressLogin(!0),this.message="";try{await this.Auth.login(this.form),await this.$state.go("app.dashboards.general")}catch(e){this.message=e.data?e.data.message:e.message}finally{await this.setProgressLogin(!1)}}loginOauth(e){this.message="",this.$window.location.href=this.Auth.loginSSO(e)}}KO.$inject=["$state","$window","$cookies","api","Auth","setting","$scope"];const JO=KO;function XO(e,t){e.state("app.login",{url:"/login?token&userId",views:{"main@":{templateUrl:BO,controller:"MainController as vm"},"content@app.login":{templateUrl:HO,controller:"LoginController as vm"}},bodyClass:"login"}),t.addPart("app/login")}XO.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.login",[]).config(XO).controller("LoginController",JO);const ZO=n.p+"templates/forgot/forgot.html/forgot.html";function eR(e,t,n,a,o){const r=this;r.form={},r.baseUrl=o.baseUrl,r.forgotPassword=function(){return o.auth.forgot(r.form).$promise.then((function(){t.success({title:n.instant("FORGOTPASSWORD.LINK_SENT"),msg:n.instant("FORGOTPASSWORD.LINNK_SENT_MESSAGE")})})).catch((function(e){e&&t.error({title:n.instant("FORGOTPASSWORD.PASSWORD_RESET_ERROR"),msg:e.data?e.data.message||e.message||e:e.message||e})}))},r.onInit=function(){e.isLoggedIn()&&a.go("app.dashboards.general")}}eR.$inject=["Auth","toasty","$translate","$state","api"];const tR=eR;function nR(e,t){e.state("app.forgot",{url:"/forgot",views:{"main@":{templateUrl:BO,controller:"MainController as vm"},"content@app.forgot":{templateUrl:ZO,controller:"ForgotPasswordController as vm"}},bodyClass:"forgot"}),t.addPart("app/forgot")}nR.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.forgot",[]).config(nR).controller("ForgotPasswordController",tR);const aR=n.p+"templates/reset/reset.html/reset.html";function oR(e,t,n,a,o,r){const i=this;i.form={token:r.token},i.setting={},i.baseUrl=o.baseUrl,i.resetPassword=function(){return o.auth.reset(i.form).$promise.then((function(){t.success({title:n.instant("RESETPASSWORD.PASSWORD_RESET"),msg:n.instant("RESETPASSWORD.PASSWORD_RESET_MESSAGE")}),a.go("app.login")})).catch((function(e){e&&t.error({title:n.instant("RESETPASSWORD.PASSWORD_RESET_ERROR"),msg:e.data?e.data.message||e.message||e:e.message||e})}))},i.onInit=function(){return e.isLoggedIn()&&a.go("app.dashboards.general"),o.setting.gdpr({id:1}).$promise.then((function(e){i.setting=e,i.passwordPattern=i.setting.securePassword?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:""})).catch((function(e){e&&t.error({title:"Error",msg:e.data?e.data.message||e.message||e:e.message||e})}))}}oR.$inject=["Auth","toasty","$translate","$state","api","$stateParams"];const rR=oR;function iR(e,t){e.state("app.reset",{url:"/reset/:token",views:{"main@":{templateUrl:BO,controller:"MainController as vm"},"content@app.reset":{templateUrl:aR,controller:"ResetPasswordController as vm"}},bodyClass:"reset"}),t.addPart("app/reset")}iR.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.reset",[]).config(iR).controller("ResetPasswordController",rR);const sR=n.p+"templates/errors/404/error-404.html/error-404.html";function lR(e,t,n,a){this.search=function(e){let o=[];const r=a.getFlatNavigation(),i=n.defer();for(let e=0;e<r.length;e+=1)r[e].uisref&&o.push(r[e]);return e&&(o=o.filter((function(t){if(t.title.toLowerCase().includes(e.toLowerCase()))return!0}))),t((function(){i.resolve(o)}),1e3),i.promise},this.searchResultClick=function(t){t.uisref&&(t.stateParams?e.go(t.state,t.stateParams):e.go(t.state))}}lR.$inject=["$state","$timeout","$q","msNavigationService"];const cR=lR;function uR(e,t){e.state("app.errors_error-404",{url:"/errors/error-404",views:{"main@":{templateUrl:BO,controller:"MainController as vm"},"content@app.errors_error-404":{templateUrl:sR,controller:"Error404Controller as vm"}},params:{status:404,statusText:"",data:{},config:{}},bodyClass:"error-404"}),t.addPart("app/errors/404")}uR.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.errors.error-404",[]).config(uR).controller("Error404Controller",cR);const dR=n.p+"templates/errors/500/error-500.html/error-500.html";function fR(e,t){const n=this;n.code="",n.send=!1,n.error=e.params,n.sendReport=function(){t.post("/api/jira",n.error).then((function(e){n.send=!0,e.data&&(n.code=e.data.id)}),(function(){n.send=!1}))}}fR.$inject=["$state","$http"];const mR=fR;function pR(e,t){e.state("app.errors_error-500",{url:"/errors/error-500",views:{"main@":{templateUrl:BO,controller:"MainController as vm"},"content@app.errors_error-500":{templateUrl:dR,controller:"Error500Controller as vm"}},params:{status:500,statusText:"",data:{},config:{}},bodyClass:"error-500"}),t.addPart("app/errors/500")}pR.$inject=["$stateProvider","$translatePartialLoaderProvider"],angular.module("app.errors.error-500",[]).config(pR).controller("Error500Controller",mR),angular.module("app.errors",["app.errors.error-404","app.errors.error-500"]),hR.$inject=["$resource"],gR.$inject=["$httpProvider"];function gR(e){e.interceptors.push("httpQSToNullInterceptor")}function hR(e){const t={baseUrl:"/"};return t.auth=e(t.baseUrl+"api/auth/local",{},{local:{method:"post",url:t.baseUrl+"api/auth/local"},forgot:{method:"post",url:t.baseUrl+"api/auth/local/forgot"},reset:{method:"post",url:t.baseUrl+"api/auth/local/reset/:token",params:{token:"@token"}},user:{method:"get",url:t.baseUrl+"api/auth/local/user/:token",params:{token:"@token"}},google:{method:"post",url:t.baseUrl+"api/auth/google"}}),t.jira=e(t.baseUrl+"api/jira"),t.rpc=e(t.baseUrl+"api/rpc",{},{startMonitor:{method:"get",url:t.baseUrl+"api/rpc/voice/channels/:uniqueid/mixmonitor",params:{uniqueid:"@uniqueid"}},stopMonitor:{method:"get",url:t.baseUrl+"api/rpc/voice/channels/:uniqueid/stopmixmonitor",params:{uniqueid:"@uniqueid"}},getVoiceChannels:{method:"get",url:t.baseUrl+"api/rpc/voice/channels"},getVoiceQueues:{method:"get",url:t.baseUrl+"api/rpc/voice/queues"},getChatQueues:{method:"get",url:t.baseUrl+"api/rpc/chat/queues"},getMailQueues:{method:"get",url:t.baseUrl+"api/rpc/mail/queues"},getSmsQueues:{method:"get",url:t.baseUrl+"api/rpc/sms/queues"},getWhatsappQueues:{method:"get",url:t.baseUrl+"api/rpc/whatsapp/queues"},getOpenchannelQueues:{method:"get",url:t.baseUrl+"api/rpc/openchannel/queues"},getFaxQueues:{method:"get",url:t.baseUrl+"api/rpc/fax/queues"},getVoiceQueuesPreview:{method:"get",url:t.baseUrl+"api/rpc/voice/queues/preview/:id"},getVoiceQueuesChannels:{method:"get",url:t.baseUrl+"api/rpc/voice/queues/channels"},getVoiceQueuesChannel:{method:"get",url:t.baseUrl+"api/rpc/voice/queues/channels/:uniqueid"},getVoiceQueuesChannelHangup:{method:"get",url:t.baseUrl+"api/rpc/voice/queues/channels/:uniqueid/hangup"},getVoiceQueuesChannelRedirect:{method:"get",url:t.baseUrl+"api/rpc/voice/queues/channels/:uniqueid/redirect/:exten"},getOutbound:{method:"get",url:t.baseUrl+"api/rpc/outbound"},getOutboundChannels:{method:"get",url:t.baseUrl+"api/rpc/outbound/channels"},getAgents:{method:"get",url:t.baseUrl+"api/rpc/agents"},setAgentCapacity:{method:"put",url:t.baseUrl+"api/rpc/agents/:id/capacity",params:{id:"@id"}},getTelephones:{method:"get",url:t.baseUrl+"api/rpc/telephones"},getTrunks:{method:"get",url:t.baseUrl+"api/rpc/trunks"},getCampaigns:{method:"get",url:t.baseUrl+"api/rpc/campaigns"},getMailAccounts:{method:"get",url:t.baseUrl+"api/rpc/mail/accounts"},getFaxAccounts:{method:"get",url:t.baseUrl+"api/rpc/fax/accounts"},getChatQueuesWaitingInteractions:{method:"get",url:t.baseUrl+"api/rpc/chat/queues/waitinginteractions"},getMailQueuesWaitingInteractions:{method:"get",url:t.baseUrl+"api/rpc/mail/queues/waitinginteractions"},getOpenchannelQueuesWaitingInteractions:{method:"get",url:t.baseUrl+"api/rpc/openchannel/queues/waitinginteractions"},getOpenchannelQueuesIdWaitingInteractions:{method:"get",url:t.baseUrl+"api/rpc/openchannel/queues/:id/waitinginteractions"},getSmsQueuesWaitingInteractions:{method:"get",url:t.baseUrl+"api/rpc/sms/queues/waitinginteractions"},getFaxQueuesWaitingInteractions:{method:"get",url:t.baseUrl+"api/rpc/fax/queues/waitinginteractions"},getWhatsappQueuesWaitingInteractions:{method:"get",url:t.baseUrl+"api/rpc/whatsapp/queues/waitinginteractions"},mailQueueNotify:{method:"post",url:t.baseUrl+"api/rpc/mail/queues/:id/notify",params:{id:"@id"}},chatQueueNotify:{method:"post",url:t.baseUrl+"api/rpc/chat/queues/:id/notify",params:{id:"@id"}},faxQueueNotify:{method:"post",url:t.baseUrl+"api/rpc/fax/queues/:id/notify",params:{id:"@id"}},smsQueueNotify:{method:"post",url:t.baseUrl+"api/rpc/sms/queues/:id/notify",params:{id:"@id"}},openchannelQueueNotify:{method:"post",url:t.baseUrl+"api/rpc/openchannel/queues/:id/notify",params:{id:"@id"}},agentNotify:{method:"post",url:t.baseUrl+"api/rpc/agents/:id/notify",params:{id:"@id"}}}),t.version=e(t.baseUrl+"api/version",{},{fetch:{method:"get",url:t.baseUrl+"api/version/fetch"},reset:{method:"get",url:t.baseUrl+"api/version/reset"},pull:{method:"get",url:t.baseUrl+"api/version/pull"},restart:{method:"get",url:t.baseUrl+"api/version/restart"},migrations:{method:"get",url:t.baseUrl+"api/version/migrations"}}),t.system=e(t.baseUrl+"api/system",{},{killProcess:{method:"get",url:t.baseUrl+"api/system/process/:pid/kill",params:{pid:"@pid"}}}),t.pm2=e(t.baseUrl+"api/pm2/:id",{id:"@id"},{update:{method:"put",isArray:!0}}),t.user=e(t.baseUrl+"api/users/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/users/describe"},clone:{method:"post",url:t.baseUrl+"api/users/:id/clone",params:{includeAll:"@includeAll"}},bulkCreate:{method:"post",url:t.baseUrl+"api/users/create_many",isArray:!0},addContacts:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/contacts"},changePassword:{isArray:!1,method:"put",url:t.baseUrl+"api/users/:id/password"},addQueues:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/queues"},removeQueues:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/queues"},addAvatar:{isArray:!1,method:"post",url:t.baseUrl+"api/users/:id/avatar"},getAvatar:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/avatar"},getContacts:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/contacts"},getQueues:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/queues"},getVoiceQueuesRt:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/queues_rt"},getGroups:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/groups"},getRecordings:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/recordings"},getScreenRecordings:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/screen_recordings"},getChatInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/chat/interactions"},getOpenchannelInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/openchannel/interactions"},getMailInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/mail/interactions"},getSmsInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/sms/interactions"},getFaxInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/fax/interactions"},getWhatsappInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/whatsapp/interactions"},login:{isArray:!1,method:"post",url:t.baseUrl+"api/users/:id/login"},logout:{isArray:!1,method:"post",url:t.baseUrl+"api/users/:id/logout"},pause:{isArray:!1,method:"post",url:t.baseUrl+"api/users/:id/pause"},unpause:{isArray:!1,method:"post",url:t.baseUrl+"api/users/:id/unpause"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/teams"},getLists:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/lists"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/agents"},addChatInteractions:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/chat_interactions"},removeChatInteractions:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/chat_interactions"},addMailInteractions:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/mail_interactions"},removeMailInteractions:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/mail_interactions"},addFaxInteractions:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/fax_interactions"},removeFaxInteractions:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/fax_interactions"},addSmsInteractions:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/sms_interactions"},removeSmsInteractions:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/sms_interactions"},addOpenchannelInteractions:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/openchannel_interactions"},removeOpenchannelInteractions:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/openchannel_interactions"},addWhatsappInteractions:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/whatsapp_interactions"},removeWhatsappInteractions:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/whatsapp_interactions"},getVoicePrefixes:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/prefixes"},getFaxAccounts:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/fax_accounts"},addFaxAccounts:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/fax_accounts"},removeFaxAccounts:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/fax_accounts"},getMailAccounts:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/mail_accounts"},addMailAccounts:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/mail_accounts"},removeMailAccounts:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/mail_accounts"},getOpenchannelAccounts:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/openchannel_accounts"},addOpenchannelAccounts:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/openchannel_accounts"},removeOpenchannelAccounts:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/openchannel_accounts"},getSmsAccounts:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/sms_accounts"},addSmsAccounts:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/sms_accounts"},removeSmsAccounts:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/sms_accounts"},getChatWebsites:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/chat_websites"},addChatWebsites:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/chat_websites"},removeChatWebsites:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/chat_websites"},getWhatsappAccounts:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/whatsapp_accounts"},addWhatsappAccounts:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/whatsapp_accounts"},removeWhatsappAccounts:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/whatsapp_accounts"},getSquareProjects:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/square_projects"},addSquareProjects:{isArray:!0,method:"post",url:t.baseUrl+"api/users/:id/square_projects"},removeSquareProjects:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/square_projects"},getScheduledCalls:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/scheduled_calls"},getApiKey:{isArray:!1,method:"get",url:t.baseUrl+"api/users/:id/api_key"},createApiKey:{isArray:!1,method:"post",url:t.baseUrl+"api/users/:id/api_key"},removeApiKey:{isArray:!1,method:"delete",url:t.baseUrl+"api/users/:id/api_key"},whoami:{isArray:!1,method:"get",url:t.baseUrl+"api/users/whoami"},getPresence:{isArray:!1,method:"get",url:t.baseUrl+"api/users/presence"}}),t.voiceChanSpy=e(t.baseUrl+"api/voice/chanspy/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/chanspy/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/chanspy/:id/clone",params:{includeAll:"@includeAll"}}}),t.voiceContext=e(t.baseUrl+"api/voice/contexts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/contexts/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/contexts/:id/clone",params:{includeAll:"@includeAll"}}}),t.voiceExtension=e(t.baseUrl+"api/voice/extensions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/extensions/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/extensions/:id/clone",params:{includeAll:"@includeAll"}},addApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/voice/extensions/:id/applications"}}),t.voiceMusicOnHold=e(t.baseUrl+"api/voice/mohs/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/mohs/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/mohs/:id/clone",params:{includeAll:"@includeAll"}},addSound:{isArray:!1,method:"post",url:t.baseUrl+"api/voice/mohs/:id/sounds"},removeSound:{isArray:!1,method:"delete",url:t.baseUrl+"api/voice/mohs/:id/sounds/:id2"},getSounds:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/mohs/:id/sounds"}}),t.voiceQueue=e(t.baseUrl+"api/voice/queues/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/queues/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/queues/:id/clone",params:{includeAll:"@includeAll"}},getHoppers:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/hoppers"},getHopperHistories:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/hopper_histories"},getHopperFinals:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/hopper_finals"},getHopperBlacks:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/hopper_black"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/voice/queues/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/voice/queues/:id/teams"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/voice/queues/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/voice/queues/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/users"},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/members"},getLists:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/lists"},addLists:{isArray:!0,method:"post",url:t.baseUrl+"api/voice/queues/:id/lists"},removeLists:{isArray:!0,method:"delete",url:t.baseUrl+"api/voice/queues/:id/lists"},getBlackLists:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/:id/blacklists"},addBlackLists:{isArray:!0,method:"post",url:t.baseUrl+"api/voice/queues/:id/blacklists"},removeBlackLists:{isArray:!0,method:"delete",url:t.baseUrl+"api/voice/queues/:id/blacklists"}}),t.voiceRecording=e(t.baseUrl+"api/voice/recordings/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/recordings/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/recordings/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/recordings/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}},downloads:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/recordings/:id/downloads"},runTranscribe:{isArray:!1,method:"post",url:t.baseUrl+"api/voice/recordings/:id/transcribe"},downloadTranscribe:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/recordings/:id/transcribe",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.screenRecording=e(t.baseUrl+"api/screen/recordings/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/screen/recordings/describe"},clone:{method:"post",url:t.baseUrl+"api/screen/recordings/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/screen/recordings/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.voiceMail=e(t.baseUrl+"api/voice/mails/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/mails/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/mails/:id/clone",params:{includeAll:"@includeAll"}},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/mails/:id/messages"}}),t.voiceMailMessage=e(t.baseUrl+"api/voice/mails/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/mails/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/mails/messages/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/mails/messages/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.voiceCallReport=e(t.baseUrl+"api/voice/calls/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/calls/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/calls/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.voiceDialReport=e(t.baseUrl+"api/voice/dials/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/dials/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/dials/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.voiceAgentReport=e(t.baseUrl+"api/voice/agents/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/agents/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/agents/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.voiceQueueReport=e(t.baseUrl+"api/voice/queues/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/queues/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/queues/reports/:id/clone",params:{includeAll:"@includeAll"}},getVoiceQueuesReport:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/queues/reports/index"}}),t.memberReport=e(t.baseUrl+"api/members/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/members/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/members/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.trunk=e(t.baseUrl+"api/trunks/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/trunks/describe"},clone:{method:"post",url:t.baseUrl+"api/trunks/:id/clone",params:{includeAll:"@includeAll"}}}),t.voiceTransferReport=e(t.baseUrl+"api/voice/transfers/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/transfers/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/transfers/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.mailServerOut=e(t.baseUrl+"api/mail/out_servers/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/out_servers/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/out_servers/:id/clone",params:{includeAll:"@includeAll"}}}),t.mailAccount=e(t.baseUrl+"api/mail/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/accounts/:id/clone",params:{includeAll:"@includeAll"}},addDisposition:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/accounts/:id/dispositions"},getDispositions:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/dispositions"},removeDispositions:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/accounts/:id/dispositions"},addAnswer:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/accounts/:id/canned_answers"},getAnswers:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/canned_answers"},removeAnswers:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/accounts/:id/canned_answers"},getImap:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/in_servers"},addImap:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/accounts/:id/in_servers"},removeImap:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/accounts/:id/in_servers"},getSmtp:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/out_servers"},addSmtp:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/accounts/:id/out_servers"},removeSmtp:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/accounts/:id/out_servers"},addInteraction:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/accounts/:id/interactions"},getInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/interactions"},addApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/accounts/:id/applications"},getApplications:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/applications"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/messages"},send:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/accounts/:id/send"},verifySmtp:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/verify"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/mail/accounts/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/accounts/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/accounts/:id/users"}}),t.mailQueue=e(t.baseUrl+"api/mail/queues/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/queues/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/queues/:id/clone",params:{includeAll:"@includeAll"}},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/queues/:id/members"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/queues/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/mail/queues/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/queues/:id/teams"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/mail/queues/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/queues/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/queues/:id/users"}}),t.mailSubstatus=e(t.baseUrl+"api/mail/substatuses/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/substatuses/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/substatuses/:id/clone",params:{includeAll:"@includeAll"}}}),t.mailInteraction=e(t.baseUrl+"api/mail/interactions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/interactions/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/interactions/:id/clone",params:{includeAll:"@includeAll"}},addMessage:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/interactions/:id/messages"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/interactions/:id/messages"},addTags:{isArray:!1,method:"post",url:t.baseUrl+"api/mail/interactions/:id/tags"},removeTags:{isArray:!1,method:"delete",url:t.baseUrl+"api/mail/interactions/:id/tags"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/interactions/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.mailMessage=e(t.baseUrl+"api/mail/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/messages/:id/clone",params:{includeAll:"@includeAll"}},accept:{isArray:!1,method:"put",url:t.baseUrl+"api/mail/messages/:id/accept"},reject:{isArray:!1,method:"put",url:t.baseUrl+"api/mail/messages/:id/reject"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/mail/messages/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.mailApplication=e(t.baseUrl+"api/mail/applications/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/applications/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/applications/:id/clone",params:{includeAll:"@includeAll"}}}),t.mailQueueReport=e(t.baseUrl+"api/mail/reports/queue/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/reports/queue/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/reports/queue/:id/clone",params:{includeAll:"@includeAll"}}}),t.dashboard=e(t.baseUrl+"api/dashboards/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/dashboards/describe"},clone:{method:"post",url:t.baseUrl+"api/dashboards/:id/clone",params:{includeAll:"@includeAll"}},addItem:{isArray:!1,method:"post",url:t.baseUrl+"api/dashboards/:id/items"},getItems:{isArray:!1,method:"get",url:t.baseUrl+"api/dashboards/:id/items"}}),t.dashboardItem=e(t.baseUrl+"api/dashboards/items/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/dashboards/items/describe"},clone:{method:"post",url:t.baseUrl+"api/dashboards/items/:id/clone",params:{includeAll:"@includeAll"}}}),t.faxAccount=e(t.baseUrl+"api/fax/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/fax/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/fax/accounts/:id/clone",params:{includeAll:"@includeAll"}},addDisposition:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/accounts/:id/dispositions"},getDispositions:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/accounts/:id/dispositions"},removeDispositions:{isArray:!1,method:"delete",url:t.baseUrl+"api/fax/accounts/:id/dispositions"},addAnswer:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/accounts/:id/canned_answers"},getAnswers:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/accounts/:id/canned_answers"},removeAnswers:{isArray:!1,method:"delete",url:t.baseUrl+"api/fax/accounts/:id/canned_answers"},addInteraction:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/accounts/:id/interactions"},getInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/accounts/:id/interactions"},addApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/accounts/:id/applications"},getApplications:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/accounts/:id/applications"},addAccountApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/accounts/addaccountapplications"},updateAccountApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/accounts/updateaccountapplications"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/accounts/:id/messages"},send:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/accounts/:id/send"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/fax/accounts/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/fax/accounts/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/accounts/:id/users"}}),t.faxApplication=e(t.baseUrl+"api/fax/applications/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/fax/applications/describe"},clone:{method:"post",url:t.baseUrl+"api/fax/applications/:id/clone",params:{includeAll:"@includeAll"}}}),t.faxInteraction=e(t.baseUrl+"api/fax/interactions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/fax/interactions/describe"},clone:{method:"post",url:t.baseUrl+"api/fax/interactions/:id/clone",params:{includeAll:"@includeAll"}},addMessage:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/interactions/:id/messages"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/interactions/:id/messages"},addTags:{isArray:!1,method:"post",url:t.baseUrl+"api/fax/interactions/:id/tags"},removeTags:{isArray:!1,method:"delete",url:t.baseUrl+"api/fax/interactions/:id/tags"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/interactions/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.faxMessage=e(t.baseUrl+"api/fax/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/fax/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/fax/messages/:id/clone",params:{includeAll:"@includeAll"}},accept:{isArray:!1,method:"put",url:t.baseUrl+"api/fax/messages/:id/accept"},reject:{isArray:!1,method:"put",url:t.baseUrl+"api/fax/messages/:id/reject"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/messages/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.faxQueue=e(t.baseUrl+"api/fax/queues/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/fax/queues/describe"},clone:{method:"post",url:t.baseUrl+"api/fax/queues/:id/clone",params:{includeAll:"@includeAll"}},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/queues/:id/members"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/queues/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/fax/queues/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/fax/queues/:id/teams"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/fax/queues/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/fax/queues/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/fax/queues/:id/users"}}),t.faxQueueReport=e(t.baseUrl+"api/fax/reports/queue/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/fax/reports/queue/describe"},clone:{method:"post",url:t.baseUrl+"api/fax/reports/queue/:id/clone",params:{includeAll:"@includeAll"}}}),t.smsAccount=e(t.baseUrl+"api/sms/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sms/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/sms/accounts/:id/clone",params:{includeAll:"@includeAll"}},addDisposition:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/accounts/:id/dispositions"},getDispositions:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/accounts/:id/dispositions"},removeDispositions:{isArray:!1,method:"delete",url:t.baseUrl+"api/sms/accounts/:id/dispositions"},addAnswer:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/accounts/:id/canned_answers"},getAnswers:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/accounts/:id/canned_answers"},removeAnswers:{isArray:!1,method:"delete",url:t.baseUrl+"api/sms/accounts/:id/canned_answers"},notify:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/accounts/:id/notify"},addApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/accounts/:id/applications"},getApplications:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/accounts/:id/applications"},getInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/accounts/:id/interactions"},send:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/accounts/:id/send"},status:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/accounts/:id/status"},statusGet:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/accounts/:id/status"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/sms/accounts/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/sms/accounts/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/accounts/:id/users"}}),t.smsApplication=e(t.baseUrl+"api/sms/applications/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sms/applications/describe"},clone:{method:"post",url:t.baseUrl+"api/sms/applications/:id/clone",params:{includeAll:"@includeAll"}}}),t.smsInteraction=e(t.baseUrl+"api/sms/interactions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sms/interactions/describe"},clone:{method:"post",url:t.baseUrl+"api/sms/interactions/:id/clone",params:{includeAll:"@includeAll"}},addMessage:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/interactions/:id/messages"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/interactions/:id/messages"},addTags:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/interactions/:id/tags"},removeTags:{isArray:!1,method:"delete",url:t.baseUrl+"api/sms/interactions/:id/tags"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/interactions/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.smsMessage=e(t.baseUrl+"api/sms/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sms/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/sms/messages/:id/clone",params:{includeAll:"@includeAll"}},accept:{isArray:!1,method:"put",url:t.baseUrl+"api/sms/messages/:id/accept"},reject:{isArray:!1,method:"put",url:t.baseUrl+"api/sms/messages/:id/reject"},status:{isArray:!1,method:"post",url:t.baseUrl+"api/sms/messages/:id/status"}}),t.smsQueue=e(t.baseUrl+"api/sms/queues/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sms/queues/describe"},clone:{method:"post",url:t.baseUrl+"api/sms/queues/:id/clone",params:{includeAll:"@includeAll"}},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/queues/:id/members"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/queues/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/sms/queues/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/sms/queues/:id/teams"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/sms/queues/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/sms/queues/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/sms/queues/:id/users"}}),t.openchannelAccount=e(t.baseUrl+"api/openchannel/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/openchannel/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/openchannel/accounts/:id/clone",params:{includeAll:"@includeAll"}},addDisposition:{isArray:!1,method:"post",url:t.baseUrl+"api/openchannel/accounts/:id/dispositions"},getDispositions:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/accounts/:id/dispositions"},removeDispositions:{isArray:!1,method:"delete",url:t.baseUrl+"api/openchannel/accounts/:id/dispositions"},addAnswer:{isArray:!1,method:"post",url:t.baseUrl+"api/openchannel/accounts/:id/canned_answers"},getAnswers:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/accounts/:id/canned_answers"},removeAnswers:{isArray:!1,method:"delete",url:t.baseUrl+"api/openchannel/accounts/:id/canned_answers"},notify:{isArray:!1,method:"post",url:t.baseUrl+"api/openchannel/accounts/:id/notify"},addApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/openchannel/accounts/:id/applications"},getApplications:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/accounts/:id/applications"},getInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/accounts/:id/interactions"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/openchannel/accounts/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/openchannel/accounts/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/accounts/:id/users"},send:{isArray:!1,method:"post",url:t.baseUrl+"api/openchannel/accounts/:id/send"}}),t.openchannelApplication=e(t.baseUrl+"api/openchannel/applications/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/openchannel/applications/describe"},clone:{method:"post",url:t.baseUrl+"api/openchannel/applications/:id/clone",params:{includeAll:"@includeAll"}}}),t.openchannelInteraction=e(t.baseUrl+"api/openchannel/interactions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/openchannel/interactions/describe"},clone:{method:"post",url:t.baseUrl+"api/openchannel/interactions/:id/clone",params:{includeAll:"@includeAll"}},addMessage:{isArray:!1,method:"post",url:t.baseUrl+"api/openchannel/interactions/:id/messages"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/interactions/:id/messages"},addTags:{isArray:!1,method:"post",url:t.baseUrl+"api/openchannel/interactions/:id/tags"},removeTags:{isArray:!1,method:"delete",url:t.baseUrl+"api/openchannel/interactions/:id/tags"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/interactions/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.openchannelMessage=e(t.baseUrl+"api/openchannel/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/openchannel/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/openchannel/messages/:id/clone",params:{includeAll:"@includeAll"}},accept:{isArray:!1,method:"put",url:t.baseUrl+"api/openchannel/messages/:id/accept"},reject:{isArray:!1,method:"put",url:t.baseUrl+"api/openchannel/messages/:id/reject"}}),t.openchannelQueue=e(t.baseUrl+"api/openchannel/queues/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/openchannel/queues/describe"},clone:{method:"post",url:t.baseUrl+"api/openchannel/queues/:id/clone",params:{includeAll:"@includeAll"}},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/queues/:id/members"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/queues/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/openchannel/queues/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/openchannel/queues/:id/teams"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/openchannel/queues/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/openchannel/queues/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/openchannel/queues/:id/users"}}),t.chatWebsite=e(t.baseUrl+"api/chat/websites/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/websites/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/websites/:id/clone",params:{includeAll:"@includeAll"}},addDisposition:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/dispositions"},getDispositions:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/dispositions"},removeDispositions:{isArray:!1,method:"delete",url:t.baseUrl+"api/chat/websites/:id/dispositions"},addAnswer:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/canned_answers"},getAnswers:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/canned_answers"},removeAnswers:{isArray:!1,method:"delete",url:t.baseUrl+"api/chat/websites/:id/canned_answers"},addLogo:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/logo"},addAvatar:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/avatar"},addCustomerAvatar:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/customer_avatar"},addSystemAvatar:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/system_avatar"},getLogo:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/logo"},getAvatar:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/avatar"},getCustomerAvatar:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/customer_avatar"},getSystemAvatar:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/system_avatar"},notify:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/notify"},offline:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/offline"},addInteraction:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/interactions"},getInteractions:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/interactions"},getSnippet:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/snippet"},addApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/applications"},getApplications:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/applications"},addProactiveActions:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/websites/:id/proactive_actions"},getProactiveActions:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/proactive_actions"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/fields"},getOfflineMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/offline_messages"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/chat/websites/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/chat/websites/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/websites/:id/users"}}),t.openchannelQueueReport=e(t.baseUrl+"api/openchannel/reports/queue/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/openchannel/reports/queue/describe"},clone:{method:"post",url:t.baseUrl+"api/openchannel/reports/queue/:id/clone",params:{includeAll:"@includeAll"}}}),t.chatApplication=e(t.baseUrl+"api/chat/applications/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/applications/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/applications/:id/clone",params:{includeAll:"@includeAll"}}}),t.chatInteraction=e(t.baseUrl+"api/chat/interactions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/interactions/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/interactions/:id/clone",params:{includeAll:"@includeAll"}},createVidaooSession:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/interactions/:id/vidaoo"},customUpdate:{isArray:!1,method:"put",url:t.baseUrl+"api/chat/interactions/:id/custom_update"},abandon:{isArray:!1,method:"put",url:t.baseUrl+"api/chat/interactions/:id/abandon"},attachmentUpload:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/interactions/:id/attachment_upload"},attachmentDownload:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/interactions/:id/attachment_download"},close:{isArray:!1,method:"put",url:t.baseUrl+"api/chat/interactions/:id/close"},addMessage:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/interactions/:id/messages"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/interactions/:id/messages"},getMyMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/interactions/:id/my_messages"},addTags:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/interactions/:id/tags"},removeTags:{isArray:!1,method:"delete",url:t.baseUrl+"api/chat/interactions/:id/tags"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/interactions/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.chatMessage=e(t.baseUrl+"api/chat/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/messages/:id/clone",params:{includeAll:"@includeAll"}},accept:{isArray:!1,method:"put",url:t.baseUrl+"api/chat/messages/:id/accept"},reject:{isArray:!1,method:"put",url:t.baseUrl+"api/chat/messages/:id/reject"}}),t.chatOfflineMessage=e(t.baseUrl+"api/chat/offline_messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/offline_messages/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/offline_messages/:id/clone",params:{includeAll:"@includeAll"}}}),t.chatQueue=e(t.baseUrl+"api/chat/queues/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/queues/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/queues/:id/clone",params:{includeAll:"@includeAll"}},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/queues/:id/members"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/queues/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/chat/queues/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/chat/queues/:id/teams"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/chat/queues/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/chat/queues/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/queues/:id/users"}}),t.chatGroup=e(t.baseUrl+"api/chat/groups/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/groups/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/groups/:id/clone",params:{includeAll:"@includeAll"}},getUnread:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/groups/:id/unread"},addMembers:{isArray:!0,method:"post",url:t.baseUrl+"api/chat/groups/:id/members"},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/groups/:id/members"},removeMembers:{isArray:!1,method:"delete",url:t.baseUrl+"api/chat/groups/:id/members"},addMessage:{isArray:!1,method:"post",url:t.baseUrl+"api/chat/groups/:id/messages"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/groups/:id/messages"}}),t.chatProactiveAction=e(t.baseUrl+"api/chat/proactive_actions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/proactive_actions/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/proactive_actions/:id/clone",params:{includeAll:"@includeAll"}}}),t.cmCompany=e(t.baseUrl+"api/cm/companies/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/companies/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/companies/:id/clone",params:{includeAll:"@includeAll"}},addContacts:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/companies/:id/contacts"},getContacts:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/companies/:id/contacts"}}),t.cmContact=e(t.baseUrl+"api/cm/contacts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/contacts/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/contacts/:id/clone",params:{includeAll:"@includeAll"}},merge:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/contacts/merge"},bulkCreate:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/contacts/create_many"},getTags:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/contacts/:id/tags"},setTags:{isArray:!0,method:"post",url:t.baseUrl+"api/cm/contacts/:id/tags"},getHoppers:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/contacts/:id/hoppers"},getHopperHistories:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/contacts/:id/hopper_histories"},getHopperFinals:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/contacts/:id/hopper_finals"},getJscriptySessions:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/contacts/:id/jscripty_sessions"},upload:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/contacts/upload"},import:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/contacts/upload/:id"},getJourney:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/contacts/:id/journey"}}),t.cmHopper=e(t.baseUrl+"api/cm/hopper/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/hopper/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/hopper/:id/clone",params:{includeAll:"@includeAll"}},getPreview:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/hopper/preview"},getOpenContacts:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/hopper/opencontacts"}}),t.cmHopperBlack=e(t.baseUrl+"api/cm/hopper_black/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/hopper_black/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/hopper_black/:id/clone",params:{includeAll:"@includeAll"}}}),t.cmHopperFinal=e(t.baseUrl+"api/cm/hopper_final/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/hopper_final/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/hopper_final/:id/clone",params:{includeAll:"@includeAll"}},countContactsQueueCampaignHopperFinal:{isArray:!0,method:"get",url:t.baseUrl+"api/cm/hopper_final/voice/queue/countAttributes/:id"},countContactsIvrCampaignHopperFinal:{isArray:!0,method:"get",url:t.baseUrl+"api/cm/hopper_final/campaign/countAttributes/:id"},moveContactsQueueCampaignHopperFinal:{isArray:!0,method:"post",url:t.baseUrl+"api/cm/hopper_final/voice/queue/moveContacts/:id"},moveContactsIvrCampaignHopperFinal:{isArray:!0,method:"post",url:t.baseUrl+"api/cm/hopper_final/voice/campaign/moveContacts/:id"},checkContactHopper:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/hopper_final/checkContactHopper"}}),t.cmHopperHistory=e(t.baseUrl+"api/cm/hopper_history/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/hopper_history/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/hopper_history/:id/clone",params:{includeAll:"@includeAll"}}}),t.cmCustomField=e(t.baseUrl+"api/cm/custom_fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/custom_fields/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/custom_fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.action=e(t.baseUrl+"api/actions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/actions/describe"},clone:{method:"post",url:t.baseUrl+"api/actions/:id/clone",params:{includeAll:"@includeAll"}}}),t.automation=e(t.baseUrl+"api/automations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/automations/describe"},clone:{method:"post",url:t.baseUrl+"api/automations/:id/clone",params:{includeAll:"@includeAll"}},addConditions:{isArray:!1,method:"post",url:t.baseUrl+"api/automations/:id/conditions"},getConditions:{isArray:!1,method:"get",url:t.baseUrl+"api/automations/:id/conditions"},addActions:{isArray:!1,method:"post",url:t.baseUrl+"api/automations/:id/actions"},getActions:{isArray:!1,method:"get",url:t.baseUrl+"api/automations/:id/actions"}}),t.cannedAnswer=e(t.baseUrl+"api/canned_answers/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/canned_answers/describe"},clone:{method:"post",url:t.baseUrl+"api/canned_answers/:id/clone",params:{includeAll:"@includeAll"}}}),t.disposition=e(t.baseUrl+"api/dispositions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/dispositions/describe"},clone:{method:"post",url:t.baseUrl+"api/dispositions/:id/clone",params:{includeAll:"@includeAll"}}}),t.condition=e(t.baseUrl+"api/conditions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/conditions/describe"},clone:{method:"post",url:t.baseUrl+"api/conditions/:id/clone",params:{includeAll:"@includeAll"}}}),t.interval=e(t.baseUrl+"api/intervals/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/intervals/describe"},clone:{method:"post",url:t.baseUrl+"api/intervals/:id/clone",params:{includeAll:"@includeAll"}},addInterval:{isArray:!1,method:"post",url:t.baseUrl+"api/intervals/:id/sub_intervals"},getIntervals:{isArray:!1,method:"get",url:t.baseUrl+"api/intervals/:id/sub_intervals"},addIntervals:{isArray:!0,method:"post",url:t.baseUrl+"api/intervals/:id/sub_intervals/create_many"}}),t.pause=e(t.baseUrl+"api/pauses/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/pauses/describe"},clone:{method:"post",url:t.baseUrl+"api/pauses/:id/clone",params:{includeAll:"@includeAll"}}}),t.cdr=e(t.baseUrl+"api/cdr/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cdr/describe"},clone:{method:"post",url:t.baseUrl+"api/cdr/:id/clone",params:{includeAll:"@includeAll"}}}),t.voiceQueuesLog=e(t.baseUrl+"api/voiceQueuesLog/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voiceQueuesLog/describe"},clone:{method:"post",url:t.baseUrl+"api/voiceQueuesLog/:id/clone",params:{includeAll:"@includeAll"}}}),t.schedule=e(t.baseUrl+"api/schedules/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/schedules/describe"},clone:{method:"post",url:t.baseUrl+"api/schedules/:id/clone",params:{includeAll:"@includeAll"}},run:{isArray:!1,method:"get",url:t.baseUrl+"api/schedules/:id/run"}}),t.sound=e(t.baseUrl+"api/sounds/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sounds/describe"},clone:{method:"post",url:t.baseUrl+"api/sounds/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/sounds/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}},delete:{isArray:!1,method:"delete",url:t.baseUrl+"api/sounds/:id"}}),t.tag=e(t.baseUrl+"api/tags/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/tags/describe"},clone:{method:"post",url:t.baseUrl+"api/tags/:id/clone",params:{includeAll:"@includeAll"}}}),t.template=e(t.baseUrl+"api/templates/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/templates/describe"},clone:{method:"post",url:t.baseUrl+"api/templates/:id/clone",params:{includeAll:"@includeAll"}}}),t.trigger=e(t.baseUrl+"api/triggers/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/triggers/describe"},clone:{method:"post",url:t.baseUrl+"api/triggers/:id/clone",params:{includeAll:"@includeAll"}},addAllCondition:{isArray:!1,method:"post",url:t.baseUrl+"api/triggers/:id/all_conditions"},addAnyCondition:{isArray:!1,method:"post",url:t.baseUrl+"api/triggers/:id/any_conditions"},getAllConditions:{isArray:!1,method:"get",url:t.baseUrl+"api/triggers/:id/all_conditions"},getAnyConditions:{isArray:!1,method:"get",url:t.baseUrl+"api/triggers/:id/any_conditions"},addAction:{isArray:!1,method:"post",url:t.baseUrl+"api/triggers/:id/actions"},getActions:{isArray:!1,method:"get",url:t.baseUrl+"api/triggers/:id/actions"}}),t.variable=e(t.baseUrl+"api/variables/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/variables/describe"},clone:{method:"post",url:t.baseUrl+"api/variables/:id/clone",params:{includeAll:"@includeAll"}}}),t.integration=e(t.baseUrl+"api/integrations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/:id/clone",params:{includeAll:"@includeAll"}}}),t.integrationReport=e(t.baseUrl+"api/integrations/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.analyticCustomReport=e(t.baseUrl+"api/analytics/custom_reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/analytics/custom_reports/describe"},clone:{method:"post",url:t.baseUrl+"api/analytics/custom_reports/:id/clone",params:{includeAll:"@includeAll"}},preview:{isArray:!0,method:"get",url:t.baseUrl+"api/analytics/custom_reports/:id/preview"},run:{isArray:!1,method:"get",url:t.baseUrl+"api/analytics/custom_reports/:id/run"},query:{isArray:!1,method:"get",url:t.baseUrl+"api/analytics/custom_reports/:id/query"}}),t.analyticDefaultReport=e(t.baseUrl+"api/analytics/default_reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/analytics/default_reports/describe"},clone:{method:"post",url:t.baseUrl+"api/analytics/default_reports/:id/clone",params:{includeAll:"@includeAll"}},preview:{isArray:!0,method:"get",url:t.baseUrl+"api/analytics/default_reports/:id/preview"},run:{isArray:!1,method:"get",url:t.baseUrl+"api/analytics/default_reports/:id/run"},query:{isArray:!1,method:"get",url:t.baseUrl+"api/analytics/default_reports/:id/query"}}),t.analyticExtractedReport=e(t.baseUrl+"api/analytics/extracted_reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/analytics/extracted_reports/describe"},clone:{method:"post",url:t.baseUrl+"api/analytics/extracted_reports/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/analytics/extracted_reports/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.analyticMetric=e(t.baseUrl+"api/analytics/metrics/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/analytics/metrics/describe"},clone:{method:"post",url:t.baseUrl+"api/analytics/metrics/:id/clone",params:{includeAll:"@includeAll"}}}),t.analyticFieldReport=e(t.baseUrl+"api/analytics/field_reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/analytics/field_reports/describe"},clone:{method:"post",url:t.baseUrl+"api/analytics/field_reports/:id/clone",params:{includeAll:"@includeAll"}},bulkCreate:{method:"post",url:t.baseUrl+"api/analytics/field_reports/create_many",isArray:!0},bulkDestroy:{method:"delete",url:t.baseUrl+"api/analytics/field_reports/destroy_many",isArray:!0},addFields:{isArray:!0,method:"post",url:t.baseUrl+"api/analytics/field_reports/:id/create_many"}}),t.analyticTreeReport=e(t.baseUrl+"api/analytics/tree_reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/analytics/tree_reports/describe"},clone:{method:"post",url:t.baseUrl+"api/analytics/tree_reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.intSalesforceAccount=e(t.baseUrl+"api/integrations/salesforce/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/salesforce/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/salesforce/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/salesforce/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/salesforce/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/salesforce/accounts/:id/fields"}}),t.intSalesforceConfiguration=e(t.baseUrl+"api/integrations/salesforce/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/salesforce/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/salesforce/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/salesforce/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/salesforce/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"integrations/salesforce/configurations/:id/descriptions"}}),t.intSalesforceField=e(t.baseUrl+"api/integrations/salesforce/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/salesforce/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/salesforce/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intSugarcrmAccount=e(t.baseUrl+"api/integrations/sugarcrm/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/sugarcrm/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/sugarcrm/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/sugarcrm/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/sugarcrm/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/sugarcrm/accounts/:id/fields"}}),t.intSugarcrmConfiguration=e(t.baseUrl+"api/integrations/sugarcrm/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/sugarcrm/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/sugarcrm/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/sugarcrm/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/sugarcrm/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/sugarcrm/configurations/:id/descriptions"}}),t.intSugarcrmField=e(t.baseUrl+"api/integrations/sugarcrm/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/sugarcrm/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/sugarcrm/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intDeskAccount=e(t.baseUrl+"api/integrations/desk/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/desk/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/desk/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/desk/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/desk/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/desk/accounts/:id/fields"}}),t.intDeskConfiguration=e(t.baseUrl+"api/integrations/desk/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/desk/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/desk/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/desk/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/desk/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/desk/configurations/:id/descriptions"},getTags:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/desk/configurations/:id/tags"},setTags:{isArray:!0,method:"post",url:t.baseUrl+"api/integrations/desk/configurations/:id/tags"}}),t.intDeskField=e(t.baseUrl+"api/integrations/desk/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/desk/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/desk/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intZohoAccount=e(t.baseUrl+"api/integrations/zoho/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/zoho/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/zoho/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zoho/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/zoho/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zoho/accounts/:id/fields"}}),t.intZohoConfiguration=e(t.baseUrl+"api/integrations/zoho/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/zoho/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/zoho/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zoho/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zoho/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zoho/configurations/:id/descriptions"}}),t.intZohoField=e(t.baseUrl+"api/integrations/zoho/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/zoho/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/zoho/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intZendeskAccount=e(t.baseUrl+"api/integrations/zendesk/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/zendesk/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/zendesk/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zendesk/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/zendesk/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zendesk/accounts/:id/fields"}}),t.intZendeskConfiguration=e(t.baseUrl+"api/integrations/zendesk/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/zendesk/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/zendesk/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zendesk/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zendesk/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zendesk/configurations/:id/descriptions"},getTags:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/zendesk/configurations/:id/tags"},setTags:{isArray:!0,method:"post",url:t.baseUrl+"api/integrations/zendesk/configurations/:id/tags"}}),t.intZendeskField=e(t.baseUrl+"api/integrations/zendesk/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/zendesk/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/zendesk/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intFreshdeskAccount=e(t.baseUrl+"api/integrations/freshdesk/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/freshdesk/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/freshdesk/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshdesk/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/freshdesk/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshdesk/accounts/:id/fields"}}),t.intFreshdeskConfiguration=e(t.baseUrl+"api/integrations/freshdesk/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/freshdesk/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/freshdesk/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshdesk/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshdesk/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"integrations/freshdesk/configurations/:id/descriptions"},getTags:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshdesk/configurations/:id/tags"},setTags:{isArray:!0,method:"post",url:t.baseUrl+"api/integrations/freshdesk/configurations/:id/tags"}}),t.intFreshdeskField=e(t.baseUrl+"api/integrations/freshdesk/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/freshdesk/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/freshdesk/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intVtigerAccount=e(t.baseUrl+"api/integrations/vtiger/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/vtiger/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/vtiger/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/vtiger/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/vtiger/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/vtiger/accounts/:id/fields"}}),t.intVtigerConfiguration=e(t.baseUrl+"api/integrations/vtiger/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/vtiger/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/vtiger/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/vtiger/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/vtiger/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/vtiger/configurations/:id/descriptions"}}),t.intVtigerField=e(t.baseUrl+"api/integrations/vtiger/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/vtiger/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/vtiger/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intServicenowAccount=e(t.baseUrl+"api/integrations/servicenow/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/servicenow/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/servicenow/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/servicenow/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/servicenow/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/servicenow/accounts/:id/fields"}}),t.intServicenowConfiguration=e(t.baseUrl+"api/integrations/servicenow/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/servicenow/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/servicenow/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/servicenow/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/servicenow/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"integrations/servicenow/configurations/:id/descriptions"}}),t.intServicenowField=e(t.baseUrl+"api/integrations/servicenow/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/servicenow/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/servicenow/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intDynamics365Account=e(t.baseUrl+"api/integrations/dynamics365/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/dynamics365/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/dynamics365/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/dynamics365/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/dynamics365/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/dynamics365/accounts/:id/fields"}}),t.intDynamics365Configuration=e(t.baseUrl+"api/integrations/dynamics365/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/dynamics365/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/dynamics365/configurations/:id/clone",params:{includeAll:"@includeAll"}},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/dynamics365/configurations/:id/fields"},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/dynamics365/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"integrations/dynamics365/configurations/:id/descriptions"}}),t.intDynamics365Field=e(t.baseUrl+"api/integrations/dynamics365/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/dynamics365/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/dynamics365/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.intFreshsalesAccount=e(t.baseUrl+"api/integrations/freshsales/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/freshsales/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/freshsales/accounts/:id/clone",params:{includeAll:"@includeAll"}},getConfigurations:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshsales/accounts/:id/configurations"},addConfiguration:{isArray:!1,method:"post",url:t.baseUrl+"api/integrations/freshsales/accounts/:id/configurations"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshsales/accounts/:id/fields"}}),t.intFreshsalesConfiguration=e(t.baseUrl+"api/integrations/freshsales/configurations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/freshsales/configurations/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/freshsales/configurations/:id/clone",params:{includeAll:"@includeAll"}},getSubjects:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshsales/configurations/:id/subjects"},getDescriptions:{isArray:!1,method:"get",url:t.baseUrl+"integrations/freshsales/configurations/:id/descriptions"},getFields:{isArray:!1,method:"get",url:t.baseUrl+"api/integrations/freshsales/configurations/:id/fields"}}),t.intFreshsalesField=e(t.baseUrl+"api/integrations/freshsales/fields/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/integrations/freshsales/fields/describe"},clone:{method:"post",url:t.baseUrl+"api/integrations/freshsales/fields/:id/clone",params:{includeAll:"@includeAll"}}}),t.network=e(t.baseUrl+"api/networks/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/networks/describe"},clone:{method:"post",url:t.baseUrl+"api/networks/:id/clone",params:{includeAll:"@includeAll"}}}),t.chatQueueReport=e(t.baseUrl+"api/chat/reports/queue/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/reports/queue/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/reports/queue/:id/clone",params:{includeAll:"@includeAll"}}}),t.chatInternalMessage=e(t.baseUrl+"api/chat/internal/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/internal/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/internal/messages/:id/clone",params:{includeAll:"@includeAll"}},getUsers:{isArray:!1,method:"get",url:t.baseUrl+"api/chat/internal/messages/users"}}),t.jscriptyAnswerReport=e(t.baseUrl+"api/jscripty/answers/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/jscripty/answers/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/jscripty/answers/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.jscriptyQuestionReport=e(t.baseUrl+"api/jscripty/questions/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/jscripty/questions/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/jscripty/questions/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.jscriptySessionReport=e(t.baseUrl+"api/jscripty/sessions/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/jscripty/sessions/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/jscripty/sessions/reports/:id/clone",params:{includeAll:"@includeAll"}},getQuestions:{isArray:!1,method:"get",url:t.baseUrl+"api/jscripty/sessions/reports/:id/questions"}}),t.smsQueueReport=e(t.baseUrl+"api/sms/reports/queue/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sms/reports/queue/describe"},clone:{method:"post",url:t.baseUrl+"api/sms/reports/queue/:id/clone",params:{includeAll:"@includeAll"}}}),t.squareReport=e(t.baseUrl+"api/square/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/square/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/square/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.squareReportDetail=e(t.baseUrl+"api/square/details/reports/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/square/details/reports/describe"},clone:{method:"post",url:t.baseUrl+"api/square/details/reports/:id/clone",params:{includeAll:"@includeAll"}}}),t.jscriptyProject=e(t.baseUrl+"api/jscripty/projects/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/jscripty/projects/describe"},clone:{method:"post",url:t.baseUrl+"api/jscripty/projects/:id/clone",params:{includeAll:"@includeAll"}},getSessions:{isArray:!1,method:"get",url:t.baseUrl+"api/jscripty/projects/:id/sessions"},getAnswers:{isArray:!1,method:"get",url:t.baseUrl+"api/jscripty/projects/:id/answers"},getSummary:{isArray:!1,method:"get",url:t.baseUrl+"api/jscripty/projects/:id/summary",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.setting=e(t.baseUrl+"api/settings/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/settings/describe"},clone:{method:"post",url:t.baseUrl+"api/settings/:id/clone",params:{includeAll:"@includeAll"}},addLogo:{isArray:!1,method:"post",url:t.baseUrl+"api/settings/:id/logo"},addLogoLogin:{isArray:!1,method:"post",url:t.baseUrl+"api/settings/:id/logo_login"},getLogo:{isArray:!1,method:"get",url:t.baseUrl+"api/settings/:id/logo"},getLogoLogin:{isArray:!1,method:"get",url:t.baseUrl+"api/settings/:id/logo_login"},gdpr:{isArray:!1,method:"get",url:t.baseUrl+"api/settings/:id/gdpr"},addPreferred:{isArray:!1,method:"post",url:t.baseUrl+"api/settings/:id/preferred"},getPreferred:{isArray:!1,method:"get",url:t.baseUrl+"api/settings/:id/preferred"},addFavicon:{isArray:!1,method:"post",url:t.baseUrl+"api/settings/:id/favicon"},getFavicon:{isArray:!1,method:"get",url:t.baseUrl+"api/settings/:id/favicon"},getDate:{isArray:!1,method:"get",url:t.baseUrl+"api/settings/now"}}),t.squareOdbc=e(t.baseUrl+"api/square/odbc/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/square/odbc/describe"},clone:{method:"post",url:t.baseUrl+"api/square/odbc/:id/clone",params:{includeAll:"@includeAll"}},test:{isArray:!1,method:"get",url:t.baseUrl+"api/square/odbc/:id/test"}}),t.squareProject=e(t.baseUrl+"api/square/projects/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/square/projects/describe"},clone:{method:"post",url:t.baseUrl+"api/square/projects/:id/clone",params:{includeAll:"@includeAll"}},addUsers:{isArray:!0,method:"post",url:t.baseUrl+"api/square/projects/:id/users"},removeUsers:{isArray:!1,method:"delete",url:t.baseUrl+"api/square/projects/:id/users"},getUsers:{isArray:!1,method:"get",url:t.baseUrl+"api/square/projects/:id/users"}}),t.squareRecording=e(t.baseUrl+"api/square/recordings/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/square/recordings/describe"},clone:{method:"post",url:t.baseUrl+"api/square/recordings/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/square/recordings/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.squareMessage=e(t.baseUrl+"api/square/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/square/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/square/messages/:id/clone",params:{includeAll:"@includeAll"}}}),t.team=e(t.baseUrl+"api/teams/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/teams/describe"},clone:{method:"post",url:t.baseUrl+"api/teams/:id/clone",params:{includeAll:"@includeAll"}},getQueues:{isArray:!0,method:"get",url:t.baseUrl+"api/teams/:id/queues"},addQueues:{isArray:!0,method:"post",url:t.baseUrl+"api/teams/:id/queues"},removeQueues:{isArray:!1,method:"delete",url:t.baseUrl+"api/teams/:id/queues"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/teams/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/teams/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/teams/:id/users"}}),t.license=e(t.baseUrl+"api/license/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/license/describe"},clone:{method:"post",url:t.baseUrl+"api/license/:id/clone",params:{includeAll:"@includeAll"}}}),t.campaign=e(t.baseUrl+"api/campaigns/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/campaigns/describe"},clone:{method:"post",url:t.baseUrl+"api/campaigns/:id/clone",params:{includeAll:"@includeAll"}},getHoppers:{isArray:!1,method:"get",url:t.baseUrl+"api/campaigns/:id/hoppers"},getHopperHistories:{isArray:!1,method:"get",url:t.baseUrl+"api/campaigns/:id/hopper_histories"},getHopperFinals:{isArray:!1,method:"get",url:t.baseUrl+"api/campaigns/:id/hopper_finals"},getHopperBlacks:{isArray:!1,method:"get",url:t.baseUrl+"api/campaigns/:id/hopper_black"},getLists:{isArray:!1,method:"get",url:t.baseUrl+"api/campaigns/:id/lists"},addLists:{isArray:!0,method:"post",url:t.baseUrl+"api/campaigns/:id/lists"},removeLists:{isArray:!0,method:"delete",url:t.baseUrl+"api/campaigns/:id/lists"},getBlackLists:{isArray:!1,method:"get",url:t.baseUrl+"api/campaigns/:id/blacklists"},addBlackLists:{isArray:!0,method:"post",url:t.baseUrl+"api/campaigns/:id/blacklists"},removeBlackLists:{isArray:!0,method:"delete",url:t.baseUrl+"api/campaigns/:id/blacklists"}}),t.migration=e(t.baseUrl+"api/migrations/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/migrations/describe"},clone:{method:"post",url:t.baseUrl+"api/migrations/:id/clone",params:{includeAll:"@includeAll"}}}),t.attachment=e(t.baseUrl+"api/attachments/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/attachments/describe"},clone:{method:"post",url:t.baseUrl+"api/attachments/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/attachments/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.plugin=e(t.baseUrl+"api/plugins/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/plugins/describe"},clone:{method:"post",url:t.baseUrl+"api/plugins/:id/clone",params:{includeAll:"@includeAll"}},download:{isArray:!1,method:"get",url:t.baseUrl+"api/plugins/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}},upload:{isArray:!1,method:"post",url:t.baseUrl+"api/plugins/"},delete:{isArray:!1,method:"delete",url:t.baseUrl+"api/plugins/:id"},webhookGet:{isArray:!1,method:"get",url:t.baseUrl+"api/plugins/webhook"},webhookPost:{isArray:!1,method:"post",url:t.baseUrl+"api/plugins/webhook"}}),t.mailTransferReport=e(t.baseUrl+"api/mail/reports/transfer/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/mail/reports/transfer/describe"},clone:{method:"post",url:t.baseUrl+"api/mail/reports/transfer/:id/clone",params:{includeAll:"@includeAll"}}}),t.chatTransferReport=e(t.baseUrl+"api/chat/reports/transfer/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/chat/reports/transfer/describe"},clone:{method:"post",url:t.baseUrl+"api/chat/reports/transfer/:id/clone",params:{includeAll:"@includeAll"}}}),t.faxTransferReport=e(t.baseUrl+"api/fax/reports/transfer/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/fax/reports/transfer/describe"},clone:{method:"post",url:t.baseUrl+"api/fax/reports/transfer/:id/clone",params:{includeAll:"@includeAll"}}}),t.openchannelTransferReport=e(t.baseUrl+"api/openchannel/reports/transfer/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/openchannel/reports/transfer/describe"},clone:{method:"post",url:t.baseUrl+"api/openchannel/reports/transfer/:id/clone",params:{includeAll:"@includeAll"}}}),t.smsTransferReport=e(t.baseUrl+"api/sms/reports/transfer/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/sms/reports/transfer/describe"},clone:{method:"post",url:t.baseUrl+"api/sms/reports/transfer/:id/clone",params:{includeAll:"@includeAll"}}}),t.cmList=e(t.baseUrl+"api/cm/lists/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cm/lists/describe"},clone:{method:"post",url:t.baseUrl+"api/cm/lists/:id/clone",params:{includeAll:"@includeAll"}},addDisposition:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/lists/:id/dispositions"},getDispositions:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/lists/:id/dispositions"},removeDispositions:{isArray:!1,method:"delete",url:t.baseUrl+"api/cm/lists/:id/dispositions"},addContacts:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/lists/:id/contacts"},getContacts:{isArray:!0,method:"get",url:t.baseUrl+"api/cm/lists/:id/contacts"},getContactsCsv:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/lists/:id/contacts/csv",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}},addCustomField:{isArray:!1,method:"post",url:t.baseUrl+"api/cm/lists/:id/fields"},getCustomFields:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/lists/:id/fields"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/cm/lists/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/cm/lists/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/cm/lists/:id/users"}}),t.voicePrefix=e(t.baseUrl+"api/voice/prefixes/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/voice/prefixes/describe"},clone:{method:"post",url:t.baseUrl+"api/voice/prefixes/:id/clone",params:{includeAll:"@includeAll"}},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/voice/prefixes/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/voice/prefixes/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/voice/prefixes/:id/users"}}),t.userProfile=e(t.baseUrl+"api/userProfiles/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/userProfiles/describe"},clone:{method:"post",url:t.baseUrl+"api/userProfiles/:id/clone",params:{includeAll:"@includeAll"}},addSections:{isArray:!0,method:"post",url:t.baseUrl+"api/userProfiles/:id/sections"},removeSections:{isArray:!1,method:"delete",url:t.baseUrl+"api/userProfiles/:id/sections"},getSections:{isArray:!0,method:"get",url:t.baseUrl+"api/userProfiles/:id/sections"},addResources:{isArray:!0,method:"post",url:t.baseUrl+"api/userProfiles/:id/resources"},removeResources:{isArray:!1,method:"delete",url:t.baseUrl+"api/userProfiles/:id/resources"},getResources:{isArray:!1,method:"get",url:t.baseUrl+"api/userProfiles/:id/resources"}}),t.userProfileSection=e(t.baseUrl+"api/userProfile/sections/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/userProfile/sections/describe"},clone:{method:"post",url:t.baseUrl+"api/userProfile/sections/:id/clone",params:{includeAll:"@includeAll"}}}),t.userProfileResource=e(t.baseUrl+"api/userProfile/resources/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/userProfile/resources/describe"},clone:{method:"post",url:t.baseUrl+"api/userProfile/resources/:id/clone",params:{includeAll:"@includeAll"}}}),t.userNotification=e(t.baseUrl+"api/userNotifications/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/userNotifications/describe"},clone:{method:"post",url:t.baseUrl+"api/userNotifications/:id/clone",params:{includeAll:"@includeAll"}},sendUserNotification:{isArray:!1,method:"post",url:t.baseUrl+"api/userNotifications/"}}),t.whatsappAccount=e(t.baseUrl+"api/whatsapp/accounts/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/whatsapp/accounts/describe"},clone:{method:"post",url:t.baseUrl+"api/whatsapp/accounts/:id/clone",params:{includeAll:"@includeAll"}},addDisposition:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/accounts/:id/dispositions"},getDispositions:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/accounts/:id/dispositions"},removeDispositions:{isArray:!1,method:"delete",url:t.baseUrl+"api/whatsapp/accounts/:id/dispositions"},addAnswer:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/accounts/:id/canned_answers"},getAnswers:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/accounts/:id/canned_answers"},removeAnswers:{isArray:!1,method:"delete",url:t.baseUrl+"api/whatsapp/accounts/:id/canned_answers"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/whatsapp/accounts/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/whatsapp/accounts/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/accounts/:id/users"},addApplications:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/accounts/:id/applications"},getApplications:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/accounts/:id/applications"},notify:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/accounts/:id/notify"},send:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/accounts/:id/send"}}),t.whatsappApplication=e(t.baseUrl+"api/whatsapp/applications/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/whatsapp/applications/describe"},clone:{method:"post",url:t.baseUrl+"api/whatsapp/applications/:id/clone",params:{includeAll:"@includeAll"}}}),t.whatsappInteraction=e(t.baseUrl+"api/whatsapp/interactions/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/whatsapp/interactions/describe"},clone:{method:"post",url:t.baseUrl+"api/whatsapp/interactions/:id/clone",params:{includeAll:"@includeAll"}},addMessage:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/interactions/:id/messages"},getMessages:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/interactions/:id/messages"},addTags:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/interactions/:id/tags"},removeTags:{isArray:!1,method:"delete",url:t.baseUrl+"api/whatsapp/interactions/:id/tags"},download:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/interactions/:id/download",responseType:"arraybuffer",cache:!1,transformResponse:function(e,t){const n=t();return{type:n["content-type"],length:n["content-length"],buffer:e}}}}),t.whatsappMessage=e(t.baseUrl+"api/whatsapp/messages/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/whatsapp/messages/describe"},clone:{method:"post",url:t.baseUrl+"api/whatsapp/messages/:id/clone",params:{includeAll:"@includeAll"}},accept:{isArray:!1,method:"put",url:t.baseUrl+"api/whatsapp/messages/:id/accept"},reject:{isArray:!1,method:"put",url:t.baseUrl+"api/whatsapp/messages/:id/reject"},status:{isArray:!1,method:"post",url:t.baseUrl+"api/whatsapp/messages/:id/status"}}),t.whatsappQueueReport=e(t.baseUrl+"api/whatsapp/reports/queue/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/whatsapp/reports/queue/describe"},clone:{method:"post",url:t.baseUrl+"api/whatsapp/reports/queue/:id/clone",params:{includeAll:"@includeAll"}}}),t.whatsappTransferReport=e(t.baseUrl+"api/whatsapp/reports/transfer/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/whatsapp/reports/transfer/describe"},clone:{method:"post",url:t.baseUrl+"api/whatsapp/reports/transfer/:id/clone",params:{includeAll:"@includeAll"}}}),t.whatsappQueue=e(t.baseUrl+"api/whatsapp/queues/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/whatsapp/queues/describe"},clone:{method:"post",url:t.baseUrl+"api/whatsapp/queues/:id/clone",params:{includeAll:"@includeAll"}},getMembers:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/queues/:id/members"},getTeams:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/queues/:id/teams"},addTeams:{isArray:!0,method:"post",url:t.baseUrl+"api/whatsapp/queues/:id/teams"},removeTeams:{isArray:!1,method:"delete",url:t.baseUrl+"api/whatsapp/queues/:id/teams"},addAgents:{isArray:!0,method:"post",url:t.baseUrl+"api/whatsapp/queues/:id/users"},removeAgents:{isArray:!1,method:"delete",url:t.baseUrl+"api/whatsapp/queues/:id/users"},getAgents:{isArray:!1,method:"get",url:t.baseUrl+"api/whatsapp/queues/:id/users"}}),t.cloudProvider=e(t.baseUrl+"api/cloudProviders/:id",{id:"@id"},{update:{method:"put"},describe:{method:"get",url:t.baseUrl+"api/cloudProviders/describe"},clone:{method:"post",url:t.baseUrl+"api/cloudProviders/:id/clone",params:{includeAll:"@includeAll"}}}),t}function _R(e,t,n){n.setConfig({position:"top-right",sound:!1,html:!0,theme:"material"}),e.useLoader("$translatePartialLoader",{urlTemplate:"{part}/i18n/{lang}.json"}),e.preferredLanguage("en"),t.addPart("app/main"),e.useSanitizeValueStrategy(null)}_R.$inject=["$translateProvider","$translatePartialLoaderProvider","toastyConfigProvider"];const bR=_R;function yR(e,t,n,a,o){const r=this;r.themes=e.themes,r.direction="ltr";const i=["ar","fa","he"],s=n.get("motion.language");s&&(t.use(s),i.indexOf(s)>=0&&a.setting.get({id:1}).$promise.then((function(e){e&&e.rtlSupport&&(r.direction="rtl")})).catch((function(e){e&&o.error({title:"Error",msg:e.data?e.data.message||e.message||e:e.message||e})})))}yR.$inject=["motionTheming","$translate","$cookies","api","toasty"];const vR=yR;function AR(e,t){return function(n){const a=new Date,o=new Date(n);return o.getDate()===a.getDate()&&o.getMonth()===a.getMonth()&&o.getFullYear()===a.getFullYear()?e("date")(o.getTime(),"shortTime"):o.getDate()===a.getDate()-1&&o.getMonth()===a.getMonth()&&o.getFullYear()===a.getFullYear()?t.instant("DASHBOARDS.YESTERDAY")+" "+e("date")(o.getTime(),"shortTime"):e("date")(o.getTime(),"MMM d, y h:mm a")}}function SR(e){return{Today:e.instant("DASHBOARDS.TODAY"),Yesterday:e.instant("DASHBOARDS.YESTERDAY"),"This Week":e.instant("DASHBOARDS.THIS_WEEK"),"Last Week":e.instant("DASHBOARDS.LAST_WEEK"),"This Month":e.instant("DASHBOARDS.THIS_MONTH"),"Last Month":e.instant("DASHBOARDS.LAST_MONTH"),"This Year":e.instant("DASHBOARDS.THIS_YEAR"),"Last Year":e.instant("DASHBOARDS.LAST_YEAR"),January:e.instant("DASHBOARDS.JANUARY"),February:e.instant("DASHBOARDS.FEBRUARY"),March:e.instant("DASHBOARDS.MARCH"),April:e.instant("DASHBOARDS.APRIL"),May:e.instant("DASHBOARDS.MAY"),June:e.instant("DASHBOARDS.JUNE"),July:e.instant("DASHBOARDS.JULY"),August:e.instant("DASHBOARDS.AUGUST"),September:e.instant("DASHBOARDS.SEPTEMBER"),October:e.instant("DASHBOARDS.OCTOBER"),November:e.instant("DASHBOARDS.NOVEMBER"),December:e.instant("DASHBOARDS.DECEMBER"),Mon:e.instant("DASHBOARDS.MON"),Tue:e.instant("DASHBOARDS.TUE"),Wed:e.instant("DASHBOARDS.WED"),Thu:e.instant("DASHBOARDS.THU"),Fri:e.instant("DASHBOARDS.FRI"),Sat:e.instant("DASHBOARDS.SAT"),Sun:e.instant("DASHBOARDS.SUN")}}SR.$inject=["$translate"],AR.$inject=["$filter","$translate"];const wR=n.p+"templates/toolbar/layouts/vertical-navigation/toolbar.html/toolbar.html",ER=n.p+"templates/navigation/layouts/horizontal-navigation/navigation.html/navigation.html",CR=n.p+"templates/navigation/layouts/vertical-navigation/navigation.html/navigation.html",TR=n.p+"templates/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation.html",IR=n.p+"templates/header/layouts/vertical-navigation/header.html/header.html",kR=n.p+"templates/footer/layouts/vertical-navigation/footer.html/footer.html",DR=n.p+"templates/quick-panel/quick-panel.html/quick-panel.html";function xR(e,t,n){let a;n.html5Mode(!0),t.rules.otherwise("/dashboards/general"),angular.injector(["ngCookies"]).invoke(["$cookies",function(e){a=e}]);const o=a.get("motion.layoutStyle")||"verticalNavigation",r={verticalNavigation:{main:zO,toolbar:wR,navigation:CR,header:IR,footer:kR},verticalNavigationFullwidthToolbar:{main:QO,toolbar:"",navigation:CR},verticalNavigationFullwidthToolbar2:{main:WO,toolbar:"",navigation:TR},horizontalNavigation:{main:VO,toolbar:"",navigation:ER},contentOnly:{main:BO,toolbar:"",navigation:""},contentWithToolbar:{main:GO,toolbar:"",navigation:""}};e.state("app",{abstract:!0,views:{"main@":{templateUrl:r[o].main,controller:"MainController as vm"},"toolbar@app":{templateUrl:r[o].toolbar,controller:"ToolbarController as vm"},"navigation@app":{templateUrl:r[o].navigation,controller:"NavigationController as vm"},"quickPanel@app":{templateUrl:DR,controller:"QuickPanelController as vm"},"header@app":{templateUrl:r[o].header,controller:"HeaderController as vm"},"footer@app":{templateUrl:r[o].footer,controller:"FooterController as vm"}},resolve:{license:["apiResolver",function(e){return e.resolve("license@get")}],setting:["apiResolver","settingsManager",function(e,t){return e.resolve("setting@get",{id:1}).then((function(e){return t.set(e),e}))}]}})}xR.$inject=["$stateProvider","$urlServiceProvider","$locationProvider"];const MR=xR;function PR(e,t){e.onStart({},t.showLoadingIndicator),e.onFinish({},t.hideLoadingIndicator)}PR.$inject=["$transitions","LoadingIndicatorService"];const OR=PR;n("./node_modules/socket.io-client/build/index.js").Manager;function RR(e,t){let n;const a={};function o(){if(e.$broadcast("socket:connect"),n&&n.connected)return;const a=window.io,o={query:t.getCurrentUser()?`id=${t.getCurrentUser().id}`:void 0,transports:["websocket","polling"]};n=a(o),n.once("disconnect",r)}function r(t){n.once("connect",o),"logout"===t?n.removeAllListeners():e.$broadcast("socket:disconnect"),n&&n.connected&&n.disconnect()}function i(e,t,n){a[e]||(a[e]=[]),a[e].push({wrapper:t,fn:n})}return{connect:o,disconnect:r,getListeners:function(e){return e?a[e]:a},on:function(t,a){a=a||angular.noop,n||o();const r=function(){const t=arguments;e.$applyAsync((function(){a.apply(n,t)}))};i(t,r,a),n.on(t,r)},onWithoutApply:function(e,t){t=t||angular.noop,n||o();const a=function(){t.apply(n,arguments)};i(e,a,t),n.on(e,a)},emit:function(t,a,r){r=r||angular.noop,n||o(),n.emit(t,a,(function(){const t=arguments;e.$applyAsync((function(){r.apply(n,t)}))}))},removeAllListeners:function(e){n||o(),n.removeAllListeners(e),function(e){u().isEmpty(a[e])||delete a[e]}(e)},removeListener:function(e,t){n||o();const r=function(e,t){const n=a[e];if(!u().isEmpty(n))for(let e=0;e<n.length;e++){const a=n[e];if(a.fn===t){const t=a.wrapper;return n.splice(e,1),t}}}(e,t);n.removeListener(e,r)}}}RR.$inject=["$rootScope","Auth"];const NR=RR;function LR(e,t,n,a,o,r,i,s,l,c){const d=this;function f(e,t){return{id:e,title:t.name||"NONAME",state:"app.dashboards.custom",stateParams:t,weight:2,hidden:function(){return i.hasRole("agent")||!i.hasPermission(e)&&!i.hasRole("admin")}}}function m(e,t){return{id:e,title:t.name||"NONAME",state:"app.plugins.plugin",stateParams:t,weight:2,hidden:function(){return i.hasRole("agent")||!i.hasPermission(e)&&!i.hasRole("admin")}}}function p(e,t){const n={user:u().pick(i.getCurrentUser(),["id","name","fullname","email","role","internal","interface"])};t.agentUrl=ka().render(t.agentUrl,n),o.saveItem("apps.home.plugin_"+e,{id:e,title:t.name,translate:t.name,state:"plugin_"+t.id,stateParams:t,view:"plugin",icon:t.icon,weight:12,hidden:function(){return!i.hasPermission(e)}})}function g(e){return u().map(e.children,(function(e){return e.id}))}r.clear(),d.isAgent=function(){return i.getCurrentUser()&&i.hasRole("agent")},a.saveItem("apps",{title:"APPS",group:!0,weight:1,hidden:function(){return i.hasRole("agent")}}),l.version.get().$promise.then((function(e){d.version=e&&e.current?e.current:"UNKNOWN"})).catch((function(){d.version="UNKNOWN"})).finally((function(){a.saveItem("version",{title:"VERSION "+d.version,group:!0,weight:2,hidden:function(){return i.hasRole("agent")}})})),i.isLoggedIn()&&(s.gray&&r.warning({msg:n.instant("DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS"),showClose:!0,timeout:!1}),l.dashboard.get().$promise.then((function(e){let t=0;for(let n=0;n<e.rows.length;n+=1)t=99999+e.rows[n].id,a.saveItem("apps.dashboards.custom_"+t,f(t,e.rows[n]))})),l.plugin.get({active:!0}).$promise.then((function(e){let t=0;if(e.count){const n=u().filter(e.rows,(function(e){return"never"!==e.sidebar&&"agentOnly"!==e.sidebar}));if(n.length>0){a.saveItem("apps.plugins",{id:1900,title:"Plugins",translate:"PLUGINS.PLUGINS",icon:"icon-apps",permissions:{hidden:!0},weight:17,hidden:function(){return i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}});for(let e=0;e<n.length;e+=1)t=88888+n[e].id,a.saveItem("apps.plugins.plugin_"+t,m(t,n[e]));a.sort()}const o=u().filter(e.rows,(function(e){return"never"!==e.sidebar&&"adminOnly"!==e.sidebar}));if(o.length>0)for(let e=0;e<o.length;e+=1)t=88888+o[e].id,p(t,o[e])}}))),s.custom&&!c.defaultPageTitle&&c.pageTitle&&angular.element("#pageTitle").html(c.pageTitle),a.saveItem("apps.dashboards",{id:100,title:"Dashboards",translate:"DASHBOARDS.DASHBOARDS",icon:"icon-tile-four",weight:2,hidden:function(){return i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.dashboards.general",{id:101,title:"General",route:"",translate:"DASHBOARDS.GENERAL",state:"app.dashboards.general",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(101)&&!i.hasRole("admin")}}),a.saveItem("apps.staff",{id:200,title:"Staff",translate:"APP.STAFF",icon:"icon-account-multiple",weight:3,hidden:function(){return i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.staff.users",{id:201,title:"Users",route:"user",translate:"APP.USERS",state:"app.staff.users",weight:1,permissions:{hidden:!0},hidden:function(){return i.hasRole("agent")||i.hasRole("user")||!i.hasPermission(201)&&!i.hasRole("admin")}}),a.saveItem("apps.staff.agents",{id:202,title:"Agents",route:"user",translate:"APP.AGENTS",state:"app.staff.agents",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(202)&&!i.hasRole("admin")}}),a.saveItem("apps.staff.telephones",{id:203,title:"Telephones",route:"user",translate:"APP.TELEPHONES",state:"app.staff.telephones",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(203)&&!i.hasRole("admin")}}),a.saveItem("apps.staff.teams",{id:204,title:"Teams",route:"team",translate:"STAFF.TEAMS",state:"app.staff.teams",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(204)&&!i.hasRole("admin")}}),a.saveItem("apps.staff.userProfiles",{id:205,title:"UserProfiles",route:"userProfile",translate:"STAFF.USERPROFILES",state:"app.staff.userProfiles",weight:1,permissions:{hidden:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(205)&&!i.hasRole("admin")}}),a.saveItem("apps.contactmanager",{id:300,title:"ContactManager",translate:"CONTACTMANAGER.CONTACTMANAGER",icon:"icon-account-circle",weight:4,license:"cm",hidden:function(){return!s.cm||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.contactmanager.lists",{id:301,title:"Lists",route:"cmList",translate:"CONTACTMANAGER.LISTS",state:"app.contactmanager.lists",weight:2,hidden:function(){return i.hasRole("agent")||!i.hasPermission(301)&&!i.hasRole("admin")}}),a.saveItem("apps.contactmanager.companies",{id:302,title:"Companies",route:"cmCompany",translate:"CONTACTMANAGER.COMPANIES",state:"app.contactmanager.companies",weight:3,hidden:function(){return i.hasRole("agent")||!i.hasPermission(302)&&!i.hasRole("admin")}}),a.saveItem("apps.contactmanager.globalCustomFields",{id:304,title:"GlobalCustomFields",route:"cmCustomField",translate:"CONTACTMANAGER.GLOBALCUSTOMFIELDS",state:"app.contactmanager.globalCustomFields",weight:4,permissions:{association:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(304)&&!i.hasRole("admin")}}),a.saveItem("apps.contactmanager.contacts",{id:303,title:"Contacts",route:"",translate:"CONTACTMANAGER.CONTACTS",state:"app.contactmanager.contacts",weight:1,permissions:{association:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(303)&&!i.hasRole("admin")}}),a.saveItem("apps.voice",{id:400,title:"Voice",translate:"VOICE.VOICE",icon:"icon-phone",weight:5,license:"voice",hidden:function(){return!s.voice||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.voice.voiceQueues",{id:401,title:"VoiceQueues",route:"voiceQueue",translate:"VOICE.VOICEQUEUES",state:"app.voice.voiceQueues",weight:1,channel:"voice",hidden:function(){return i.hasRole("agent")||!i.hasPermission(401)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.inboundroutes",{id:402,title:"InboundRoutes",route:"voiceExtension",translate:"VOICE.INBOUNDROUTES",state:"app.voice.inboundroutes",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(402)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.outboundroutes",{id:403,title:"OutboundRoutes",route:"voiceExtension",translate:"VOICE.OUTBOUNDROUTES",state:"app.voice.outboundroutes",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(403)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.internalroutes",{id:404,title:"InternalRoutes",route:"voiceExtension",translate:"VOICE.INTERNALROUTES",state:"app.voice.internalroutes",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(404)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.contexts",{id:405,title:"Contexts",route:"voiceContext",translate:"VOICE.CONTEXTS",state:"app.voice.contexts",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(405)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.voicemails",{id:406,title:"Voicemails",route:"voiceMail",translate:"VOICE.VOICEMAILS",state:"app.voice.voicemails",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(406)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.musiconholds",{id:407,title:"MusicOnHolds",route:"voiceMusicOnHold",translate:"VOICE.MUSICONHOLDS",state:"app.voice.musiconholds",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(407)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.voiceRecordings",{id:408,title:"VoiceRecordings",route:"voiceRecording",translate:"VOICE.VOICERECORDINGS",state:"app.voice.voiceRecordings",weight:1,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(408)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.chanSpies",{id:409,title:"ChanSpies",route:"voiceChanSpy",translate:"VOICE.CHANSPIES",state:"app.voice.chanSpies",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(409)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.voicePrefixes",{id:410,title:"VoicePrefixes",route:"voicePrefix",translate:"VOICE.VOICEPREFIXES",state:"app.voice.voicePrefixes",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(410)&&!i.hasRole("admin")}}),a.saveItem("apps.voice.realtime",{id:411,title:"Realtime",route:"",translate:"VOICE.REALTIME",state:"app.voice.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(411)&&!i.hasRole("admin")}}),a.saveItem("apps.chat",{id:500,title:"Chat",translate:"CHAT.CHAT",icon:"icon-hangouts",weight:6,license:"chat",hidden:function(){return!s.chat||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.chat.chatQueues",{id:501,title:"ChatQueues",route:"chatQueue",translate:"CHAT.CHATQUEUES",state:"app.chat.chatQueues",weight:1,channel:"chat",hidden:function(){return i.hasRole("agent")||!i.hasPermission(501)&&!i.hasRole("admin")}}),a.saveItem("apps.chat.chatWebsites",{id:502,title:"ChatWebsites",route:"chatWebsite",translate:"CHAT.CHATWEBSITES",state:"app.chat.chatWebsites",weight:1,channel:"chat",hidden:function(){return i.hasRole("agent")||!i.hasPermission(502)&&!i.hasRole("admin")}}),a.saveItem("apps.chat.realtime",{id:510,title:"Realtime",route:"",translate:"CHAT.REALTIME",state:"app.chat.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(510)&&!i.hasRole("admin")}}),a.saveItem("apps.mail",{id:600,title:"Mail",translate:"MAIL.MAIL",icon:"icon-email",weight:7,license:"mail",hidden:function(){return!s.mail||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.mail.mailQueues",{id:601,title:"MailQueues",route:"mailQueue",translate:"MAIL.MAILQUEUES",state:"app.mail.mailQueues",weight:1,channel:"mail",hidden:function(){return i.hasRole("agent")||!i.hasPermission(601)&&!i.hasRole("admin")}}),a.saveItem("apps.mail.mailAccounts",{id:602,title:"MailAccounts",route:"mailAccount",translate:"MAIL.MAILACCOUNTS",state:"app.mail.mailAccounts",weight:1,channel:"mail",hidden:function(){return i.hasRole("agent")||!i.hasPermission(602)&&!i.hasRole("admin")}}),a.saveItem("apps.mail.mailSubtatuses",{id:603,title:"MailSubstatuses",route:"mailSubstatus",translate:"MAIL.MAILSUBSTATUSES",state:"app.mail.mailSubtatuses",weight:1,channel:"mail",permissions:{association:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(603)&&!i.hasRole("admin")}}),a.saveItem("apps.mail.realtime",{id:610,title:"Realtime",route:"",translate:"MAIL.REALTIME",state:"app.mail.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(610)&&!i.hasRole("admin")}}),a.saveItem("apps.sms",{id:700,title:"Sms",translate:"SMS.SMS",icon:"icon-message-text",weight:8,license:"messaging",hidden:function(){return!s.messaging||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.sms.smsQueues",{id:701,title:"SmsQueues",route:"smsQueue",translate:"SMS.SMSQUEUES",state:"app.sms.smsQueues",weight:1,channel:"sms",hidden:function(){return i.hasRole("agent")||!i.hasPermission(701)&&!i.hasRole("admin")}}),a.saveItem("apps.sms.smsAccounts",{id:702,title:"SmsAccounts",route:"smsAccount",translate:"SMS.SMSACCOUNTS",state:"app.sms.smsAccounts",weight:1,channel:"sms",hidden:function(){return i.hasRole("agent")||!i.hasPermission(702)&&!i.hasRole("admin")}}),a.saveItem("apps.sms.realtime",{id:710,title:"Realtime",route:"",translate:"SMS.REALTIME",state:"app.sms.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(710)&&!i.hasRole("admin")}}),a.saveItem("apps.openchannel",{id:800,title:"Openchannel",translate:"OPENCHANNEL.OPENCHANNEL",icon:"icon-google-earth",weight:9,license:"openchannel",hidden:function(){return!s.openchannel||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.openchannel.openchannelQueues",{id:801,title:"OpenchannelQueues",route:"openchannelQueue",translate:"OPENCHANNEL.OPENCHANNELQUEUES",state:"app.openchannel.openchannelQueues",weight:1,channel:"openChannel",hidden:function(){return i.hasRole("agent")||!i.hasPermission(801)&&!i.hasRole("admin")}}),a.saveItem("apps.openchannel.openchannelAccounts",{id:802,title:"OpenchannelAccounts",route:"openchannelAccount",translate:"OPENCHANNEL.OPENCHANNELACCOUNTS",state:"app.openchannel.openchannelAccounts",weight:1,channel:"openChannel",hidden:function(){return i.hasRole("agent")||!i.hasPermission(802)&&!i.hasRole("admin")}}),a.saveItem("apps.openchannel.realtime",{id:810,title:"Realtime",route:"",translate:"OPENCHANNEL.REALTIME",state:"app.openchannel.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(810)&&!i.hasRole("admin")}}),a.saveItem("apps.fax",{id:900,title:"Fax",translate:"FAX.FAX",icon:"icon-deskphone",weight:10,license:"fax",hidden:function(){return!s.fax||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.fax.faxQueues",{id:901,title:"FaxQueues",route:"faxQueue",translate:"FAX.FAXQUEUES",state:"app.fax.faxQueues",weight:1,channel:"fax",hidden:function(){return i.hasRole("agent")||!i.hasPermission(901)&&!i.hasRole("admin")}}),a.saveItem("apps.fax.faxAccounts",{id:902,title:"FaxAccounts",route:"faxAccount",translate:"FAX.FAXACCOUNTS",state:"app.fax.faxAccounts",weight:1,channel:"fax",hidden:function(){return i.hasRole("agent")||!i.hasPermission(902)&&!i.hasRole("admin")}}),a.saveItem("apps.fax.realtime",{id:910,title:"Realtime",route:"",translate:"FAX.REALTIME",state:"app.fax.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(910)&&!i.hasRole("admin")}}),a.saveItem("apps.tools",{id:1e3,title:"Tools",translate:"TOOLS.TOOLS",icon:"icon-auto-fix",weight:15,hidden:function(){return i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.tools.cannedAnswers",{id:1001,title:"CannedAnswers",route:"cannedAnswer",translate:"TOOLS.CANNEDANSWERS",state:"app.tools.cannedAnswers",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1001)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.customDashboards",{id:1003,title:"CustomDashboards",route:"dashboard",translate:"TOOLS.CUSTOMDASHBOARDS",state:"app.tools.customDashboards",weight:3,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1003)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.intervals",{id:1004,title:"Intervals",route:"interval",translate:"TOOLS.INTERVALS",state:"app.tools.intervals",weight:4,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1004)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.pauses",{id:1005,title:"Pauses",route:"pause",translate:"TOOLS.PAUSES",state:"app.tools.pauses",weight:5,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1005)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.schedules",{id:1006,title:"Scheduler",route:"schedule",translate:"TOOLS.SCHEDULER",state:"app.tools.schedules",weight:6,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1006)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.sounds",{id:1007,title:"Sounds",route:"sound",translate:"TOOLS.SOUNDS",state:"app.tools.sounds",weight:7,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1007)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.tags",{id:1008,title:"Tags",route:"tag",translate:"TOOLS.TAGS",state:"app.tools.tags",weight:8,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1008)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.templates",{id:1009,title:"Templates",route:"template",translate:"TOOLS.TEMPLATES",state:"app.tools.templates",weight:9,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1009)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.trunks",{id:1011,title:"Trunks",route:"trunk",translate:"TOOLS.TRUNKS",state:"app.tools.trunks",weight:11,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1011)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.variables",{id:1012,title:"Variables",route:"variable",translate:"TOOLS.VARIABLES",state:"app.tools.variables",weight:12,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1012)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.dispositions",{id:1002,title:"Dispositions",route:"disposition",translate:"TOOLS.DISPOSITIONS",state:"app.tools.dispositions",weight:2,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1002)&&!i.hasRole("admin")}}),a.saveItem("apps.tools.triggers",{id:1010,title:"Triggers",route:"",translate:"TOOLS.TRIGGERS",state:"app.tools.triggers",weight:10,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1010)&&!i.hasRole("admin")}}),a.saveItem("apps.callysquare",{id:1100,title:"CallySquare",translate:"CALLYSQUARE.CALLYSQUARE",icon:"icon-sitemap",weight:13,license:"voice",hidden:function(){return!s.voice||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.callysquare.odbcs",{id:1101,title:"ODBC",route:"squareOdbc",translate:"CALLYSQUARE.ODBC",state:"app.callysquare.odbcs",weight:2,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1101)&&!i.hasRole("admin")}}),a.saveItem("apps.callysquare.squareRecordings",{id:1102,title:"SquareRecordings",route:"squareRecording",translate:"CALLYSQUARE.SQUARERECORDINGS",state:"app.callysquare.squareRecordings",weight:3,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1102)&&!i.hasRole("admin")}}),a.saveItem("apps.callysquare.projects",{id:1103,title:"Projects",route:"squareProject",translate:"CALLYSQUARE.PROJECTS",state:"app.callysquare.projects",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1103)&&!i.hasRole("admin")}}),a.saveItem("apps.analytics",{id:1200,title:"Analytics",translate:"ANALYTICS.ANALYTICS",icon:"icon-chart-line",weight:16,hidden:function(){return i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.analytics.metrics",{id:1201,title:"Metrics",route:"analyticMetric",translate:"ANALYTICS.METRICS",state:"app.analytics.metrics",weight:3,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1201)&&!i.hasRole("admin")}}),a.saveItem("apps.analytics.extractedReports",{id:1202,title:"ExtractedReports",route:"analyticExtractedReport",translate:"ANALYTICS.EXTRACTEDREPORTS",state:"app.analytics.extractedReports",weight:2,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1202)&&!i.hasRole("admin")}}),a.saveItem("apps.analytics.reports",{id:1203,title:"Reports",route:"",translate:"ANALYTICS.REPORTS",state:"app.analytics.reports",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1203)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations",{id:1300,title:"Integrations",translate:"INTEGRATIONS.INTEGRATIONS",icon:"icon-heart",weight:17,hidden:function(){return i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.zendeskAccounts",{id:1301,title:"ZendeskAccounts",route:"intZendeskAccount",translate:"INTEGRATIONS.ZENDESKACCOUNTS",state:"app.integrations.zendeskAccounts",weight:1,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1301)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.salesforceAccounts",{id:1302,title:"SalesforceAccounts",route:"intSalesforceAccount",translate:"INTEGRATIONS.SALESFORCEACCOUNTS",state:"app.integrations.salesforceAccounts",weight:2,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1302)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.freshdeskAccounts",{id:1303,title:"FreshdeskAccounts",route:"intFreshdeskAccount",translate:"INTEGRATIONS.FRESHDESKACCOUNTS",state:"app.integrations.freshdeskAccounts",weight:3,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1303)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.sugarcrmAccounts",{id:1305,title:"SugarcrmAccounts",route:"intSugarcrmAccount",translate:"INTEGRATIONS.SUGARCRMACCOUNTS",state:"app.integrations.sugarcrmAccounts",weight:4,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1305)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.deskAccounts",{id:1306,title:"DeskAccounts",route:"intDeskAccount",translate:"INTEGRATIONS.DESKACCOUNTS",state:"app.integrations.deskAccounts",weight:5,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1306)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.zohoAccounts",{id:1307,title:"ZohoAccounts",route:"intZohoAccount",translate:"INTEGRATIONS.ZOHOACCOUNTS",state:"app.integrations.zohoAccounts",weight:6,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1307)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.vtigerAccounts",{id:1308,title:"VtigerAccounts",route:"intVtigerAccount",translate:"INTEGRATIONS.VTIGERACCOUNTS",state:"app.integrations.vtigerAccounts",weight:7,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1308)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.dynamics365Accounts",{id:1309,title:"Dynamics365Accounts",route:"intDynamics365Account",translate:"INTEGRATIONS.DYNAMICS365ACCOUNTS",state:"app.integrations.dynamics365Accounts",weight:8,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1309)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.servicenowAccounts",{id:1310,title:"ServicenowAccounts",route:"intServicenowAccount",translate:"INTEGRATIONS.SERVICENOWACCOUNTS",state:"app.integrations.servicenowAccounts",weight:9,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1310)&&!i.hasRole("admin")}}),a.saveItem("apps.integrations.freshsalesAccounts",{id:1304,title:"FreshsalesAccounts",route:"intFreshsalesAccount",translate:"INTEGRATIONS.FRESHSALESACCOUNTS",state:"app.integrations.freshsalesAccounts",weight:10,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1304)&&!i.hasRole("admin")}}),a.saveItem("apps.settings",{id:1400,title:"Settings",translate:"SETTINGS.SETTINGS",icon:"icon-cog",weight:20,permissions:{hidden:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")||i.hasRole("admin")&&!i.getCurrentUser().settingsEnabled}}),a.saveItem("apps.settings.generals",{id:1401,title:"General",route:"setting",translate:"SETTINGS.GENERAL",state:"app.settings.generals",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.settings.smtps",{id:1402,title:"Smtp",route:"mailAccount",translate:"SETTINGS.SMTP",state:"app.settings.smtps",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.settings.networks",{id:1403,title:"Networks",route:"network",translate:"SETTINGS.NETWORKS",state:"app.settings.networks",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.settings.customizations",{id:1407,title:"Customizations",route:"setting",translate:"SETTINGS.CUSTOMIZATIONS",state:"app.settings.customizations",weight:1,hidden:function(){return!s.custom||i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.settings.cloudProviders",{id:1408,title:"AiTools",route:"cloudProvider",translate:"SETTINGS.AITOOLS",state:"app.settings.cloudProviders",weight:1,hidden:function(){return!s.ai||i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.settings.updates",{id:1404,title:"Updates",route:"",translate:"SETTINGS.UPDATES",state:"app.settings.updates",weight:1,hidden:function(){return!s.update||i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.settings.license",{id:1405,title:"License",route:"",translate:"SETTINGS.LICENSE",state:"app.settings.license",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.settings.system",{id:1406,title:"System",route:"",translate:"SETTINGS.SYSTEM",state:"app.settings.system",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1400)&&!i.hasRole("admin")}}),a.saveItem("apps.motiondialer",{id:1500,title:"MotionDialer",translate:"MOTIONDIALER.MOTIONDIALER",icon:"icon-fire",weight:5,license:"dialer",hidden:function(){return!s.dialer||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.motiondialer.queueCampaigns",{id:1501,title:"QueueCampaigns",route:"voiceQueue",translate:"MOTIONDIALER.QUEUECAMPAIGNS",state:"app.motiondialer.queueCampaigns",weight:1,channel:"bull",hidden:function(){return i.hasRole("agent")||!i.hasPermission(1501)&&!i.hasRole("admin")}}),a.saveItem("apps.motiondialer.ivrCampaigns",{id:1502,title:"IvrCampaigns",route:"campaign",translate:"MOTIONDIALER.IVRCAMPAIGNS",state:"app.motiondialer.ivrCampaigns",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1502)&&!i.hasRole("admin")}}),a.saveItem("apps.motiondialer.realtime",{id:1510,title:"Realtime",route:"",translate:"MOTIONDIALER.REALTIME",state:"app.motiondialer.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1510)&&!i.hasRole("admin")}}),a.saveItem("apps.help",{id:1600,title:"Help",translate:"HELP.HELP",icon:"icon-help",weight:21,permissions:{association:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(1600)&&!i.hasRole("admin")}}),a.saveItem("apps.help.about",{id:1601,title:"About",route:"",translate:"HELP.ABOUT",state:"app.help.about",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1600)&&!i.hasRole("admin")}}),a.saveItem("apps.jscripty",{id:1700,title:"jscripty",translate:"JSCRIPTY.JSCRIPTY",icon:"icon-script",weight:14,license:"jscripty",hidden:function(){return!s.jscripty||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.jscripty.projects",{id:1701,title:"Projects",route:"jscriptyProject",translate:"JSCRIPTY.PROJECTS",state:"app.jscripty.projects",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1701)&&!i.hasRole("admin")}}),a.saveItem("apps.marketplace",{id:1800,title:"Marketplace",translate:"MARKETPLACE.MARKETPLACE",icon:"icon-cart",weight:18,hidden:function(){return i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.marketplace.plugins",{id:1801,title:"Plugins",route:"plugin",translate:"MARKETPLACE.PLUGINS",state:"app.marketplace.plugins",weight:1,hidden:function(){return i.hasRole("agent")||!i.hasPermission(1801)&&!i.hasRole("admin")}}),a.saveItem("apps.video",{id:2e3,title:"Video",translate:"VIDEO.VIDEO",icon:"icon-video",weight:12,license:"screenrecording",hidden:function(){return!s.screenrecording||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.video.screenRecordings",{id:2001,title:"ScreenRecordings",route:"screenRecording",translate:"VIDEO.SCREENRECORDINGS",state:"app.video.screenRecordings",weight:1,permissions:{association:!1,loading:!0},hidden:function(){return i.hasRole("agent")||!i.hasPermission(2001)&&!i.hasRole("admin")}}),a.saveItem("apps.whatsapp",{id:2100,title:"Whatsapp",translate:"APP.WHATSAPP",icon:"icon-whatsapp",weight:11,license:"whatsapp",hidden:function(){return!s.whatsapp||i.hasRole("agent")||!i.hasChildrenPermissions(g(this))&&!i.hasRole("admin")}}),a.saveItem("apps.whatsapp.whatsappQueues",{id:2101,title:"WhatsappQueues",route:"whatsappQueue",translate:"WHATSAPP.WHATSAPPQUEUES",state:"app.whatsapp.whatsappQueues",weight:1,channel:"whatsapp",hidden:function(){return i.hasRole("agent")||!i.hasPermission(2101)&&!i.hasRole("admin")}}),a.saveItem("apps.whatsapp.whatsappAccounts",{id:2102,title:"WhatsappAccounts",route:"whatsappAccount",translate:"WHATSAPP.WHATSAPPACCOUNTS",state:"app.whatsapp.whatsappAccounts",weight:1,channel:"whatsapp",hidden:function(){return i.hasRole("agent")||!i.hasPermission(2102)&&!i.hasRole("admin")}}),a.saveItem("apps.whatsapp.realtime",{id:2110,title:"Realtime",route:"",translate:"APP.REALTIME",state:"app.whatsapp.realtime",weight:1,permissions:{association:!1,crud:!1},hidden:function(){return i.hasRole("agent")||!i.hasPermission(2110)&&!i.hasRole("admin")}}),a.sort(),o.saveItem("apps",{title:"APPS",group:!0,weight:1}),o.saveItem("apps.home",{id:100,title:"Home",translate:"DASHBOARDS.HOME",icon:"icon-home",weight:1}),o.saveItem("apps.home.dashboard",{id:101,title:"Dashboard",translate:"DASHBOARDS.DASHBOARD",state:"dashboard",view:"dashboard",icon:"icon-tile-four",iconClass:"cyan-500-fg",weight:1,hidden:function(){return!i.hasPermission(101)}}),o.saveItem("apps.home.agentPresence",{id:115,title:"AgentPresence",translate:"DASHBOARDS.AGENT_PRESENCE",state:"agentPresence",view:"agentPresence",icon:"icon-webcam",iconClass:"xenialab-violet-light-fg",weight:2,hidden:function(){return!i.hasPermission(115)}}),o.saveItem("apps.home.contacts",{id:102,title:"Contacts",translate:"DASHBOARDS.CONTACTS",state:"contacts",view:"contacts",icon:"icon-account-circle",iconClass:"red-fg",weight:3,hidden:function(){return!s.cm||!i.hasPermission(102)}}),o.saveItem("apps.home.mycontacts",{id:103,title:"Contacts",translate:"DASHBOARDS.MYCONTACTS",state:"mycontacts",view:"mycontacts",icon:"icon-account-multiple",iconClass:"red-fg",weight:4,hidden:function(){return!s.cm||!i.hasPermission(103)}}),o.saveItem("apps.home.scheduled",{id:113,title:"Scheduled Calls",translate:"DASHBOARDS.SCHEDULED_CALLS",state:"scheduled",view:"scheduled",icon:"icon-calendar-clock",iconClass:"blue-grey-fg",weight:5,hidden:function(){return!s.dialer||!i.hasPermission(113)}}),o.saveItem("apps.home.voice",{id:110,title:"Voice",translate:"DASHBOARDS.VOICE",state:"voice",view:"voice",icon:"icon-phone",iconClass:"blue-A700-fg",weight:6,hidden:function(){return!s.voice||!i.hasPermission(110)}}),o.saveItem("apps.home.abandoned",{id:111,title:"Abandoned",translate:"DASHBOARDS.ABANDONED",state:"abandoned",view:"abandoned",icon:"icon-phone-missed",iconClass:"blue-fg",weight:7,hidden:function(){return!s.voice||!i.hasPermission(111)}}),o.saveItem("apps.home.recordings",{id:104,title:"Recordings",translate:"DASHBOARDS.RECORDINGS",state:"recordings",view:"recordings",icon:"icon-audiobook",iconClass:"indigo-A100-fg",weight:8,hidden:function(){return!s.voice||!i.hasPermission(104)}}),o.saveItem("apps.home.chat",{id:105,title:"Chat",translate:"DASHBOARDS.CHAT",state:"chat",view:"chat",icon:"icon-hangouts",iconClass:"green-A700-fg",weight:9,hidden:function(){return!s.chat||!i.hasPermission(105)}}),o.saveItem("apps.home.mail",{id:106,title:"Mail",translate:"DASHBOARDS.MAIL",state:"mail",view:"mail",icon:"icon-email",iconClass:"teal-fg",weight:10,hidden:function(){return!s.mail||!i.hasPermission(106)}}),o.saveItem("apps.home.sms",{id:107,title:"Sms",translate:"DASHBOARDS.SMS",state:"sms",view:"sms",icon:"icon-message-text",iconClass:"orange-fg",weight:11,hidden:function(){return!s.messaging||!i.hasPermission(107)}}),o.saveItem("apps.home.openchannel",{id:108,title:"Openchannel",translate:"DASHBOARDS.OPENCHANNEL",state:"openchannel",view:"openchannel",icon:"icon-google-earth",iconClass:"amber-fg",weight:12,hidden:function(){return!s.openchannel||!i.hasPermission(108)}}),o.saveItem("apps.home.fax",{id:109,title:"Fax",translate:"DASHBOARDS.FAX",state:"fax",view:"fax",icon:"icon-deskphone",iconClass:"blue-grey-A200-fg",weight:13,hidden:function(){return!s.fax||!i.hasPermission(109)}}),o.saveItem("apps.home.whatsapp",{id:114,title:"Whatsapp",translate:"DASHBOARDS.WHATSAPP",state:"whatsapp",view:"whatsapp",icon:"icon-whatsapp",iconClass:"lime-A700-fg",weight:14,hidden:function(){return!s.whatsapp||!i.hasPermission(114)}}),e.$on("$viewContentAnimationEnded",(function(n){n.targetScope.$id===e.$id&&t.$broadcast("msSplashScreen::remove")})),e.$on("socket:connect",(function(){t.toastySocketLost&&(r.clear(t.toastySocketLost),t.toastySocketLost=void 0)})),e.$on("socket:disconnect",(function(){t.toastySocketLost||r.warning({title:n.instant("TOOLBAR.WARNING"),msg:n.instant("DASHBOARDS.LOST_CONNECTION"),timeout:!1,onAdd:function(){t.toastySocketLost=this.id}})}))}LR.$inject=["$scope","$rootScope","$translate","msNavigationService","msNavigationAgentService","toasty","Auth","license","api","setting"];const $R=LR;angular.module("motion",["angular-toasty","app.core","app.auth","app.navigation","app.toolbar","app.quick-panel","app.header","app.footer","app.dashboards","app.staff","app.contactmanager","app.voice","app.chat","app.mail","app.sms","app.openchannel","app.fax","app.tools","app.callysquare","app.analytics","app.integrations","app.settings","app.motiondialer","app.help","app.jscripty","app.marketplace","app.plugins","app.video","app.whatsapp","app.login","app.forgot","app.reset","app.errors"]).factory("httpQSToNullInterceptor",(function(){return{request:function(e){return"GET"===e.method&&e.url.includes("/api")&&"object"==typeof e.params&&(e.params=Object.fromEntries(Object.entries(e.params).map((([e,t])=>[e,null===t?"null":t])))),e}}})).config(gR).factory("api",hR).config(bR).controller("IndexController",vR).filter("limitObjectFromTo",(function(){return function(e,t,n){const a={};let o,r=0;for(o in e)if(r>=n&&(a[o]=e[o]),++r===n+t)break;return a}})).filter("formatdate",AR).factory("IndexFactory",(function(){const e=[{value:"jan"},{value:"feb"},{value:"mar"},{value:"apr"},{value:"may"},{value:"jun"},{value:"jul"},{value:"aug"},{value:"sep"},{value:"oct"},{value:"nov"},{value:"dec"}],t=[{value:"1"},{value:"2"},{value:"3"},{value:"4"},{value:"5"},{value:"6"},{value:"7"},{value:"8"},{value:"9"},{value:"10"},{value:"11"},{value:"12"}],n=[{value:"mon"},{value:"tue"},{value:"wed"},{value:"thu"},{value:"fri"},{value:"sat"},{value:"sun"}],a=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];return{getMonthName:function(){return e},getMonthNumber:function(){return t},getDaysOfWeek:function(){return n},getDaysOfMonth:function(){return a}}})).factory("dateFilterLocalizationFactory",SR).factory("Sequence",(function(){return{enqueue:function(e){this.tail=this.tail?this.tail.finally(e):e()}}})).config(MR).run(OR).factory("socket",NR).controller("MainController",$R)},"./node_modules/backo2/index.js":e=>{function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},"./node_modules/chart.js/src/chart.js":(e,t,n)=>{var a=n("./node_modules/chart.js/src/core/core.js")();n("./node_modules/chart.js/src/core/core.helpers.js")(a),n("./node_modules/chart.js/src/core/core.canvasHelpers.js")(a),n("./node_modules/chart.js/src/core/core.element.js")(a),n("./node_modules/chart.js/src/core/core.animation.js")(a),n("./node_modules/chart.js/src/core/core.controller.js")(a),n("./node_modules/chart.js/src/core/core.datasetController.js")(a),n("./node_modules/chart.js/src/core/core.layoutService.js")(a),n("./node_modules/chart.js/src/core/core.scaleService.js")(a),n("./node_modules/chart.js/src/core/core.plugin.js")(a),n("./node_modules/chart.js/src/core/core.scale.js")(a),n("./node_modules/chart.js/src/core/core.title.js")(a),n("./node_modules/chart.js/src/core/core.legend.js")(a),n("./node_modules/chart.js/src/core/core.tooltip.js")(a),n("./node_modules/chart.js/src/elements/element.arc.js")(a),n("./node_modules/chart.js/src/elements/element.line.js")(a),n("./node_modules/chart.js/src/elements/element.point.js")(a),n("./node_modules/chart.js/src/elements/element.rectangle.js")(a),n("./node_modules/chart.js/src/scales/scale.linearbase.js")(a),n("./node_modules/chart.js/src/scales/scale.category.js")(a),n("./node_modules/chart.js/src/scales/scale.linear.js")(a),n("./node_modules/chart.js/src/scales/scale.logarithmic.js")(a),n("./node_modules/chart.js/src/scales/scale.radialLinear.js")(a),n("./node_modules/chart.js/src/scales/scale.time.js")(a),n("./node_modules/chart.js/src/controllers/controller.bar.js")(a),n("./node_modules/chart.js/src/controllers/controller.bubble.js")(a),n("./node_modules/chart.js/src/controllers/controller.doughnut.js")(a),n("./node_modules/chart.js/src/controllers/controller.line.js")(a),n("./node_modules/chart.js/src/controllers/controller.polarArea.js")(a),n("./node_modules/chart.js/src/controllers/controller.radar.js")(a),n("./node_modules/chart.js/src/charts/Chart.Bar.js")(a),n("./node_modules/chart.js/src/charts/Chart.Bubble.js")(a),n("./node_modules/chart.js/src/charts/Chart.Doughnut.js")(a),n("./node_modules/chart.js/src/charts/Chart.Line.js")(a),n("./node_modules/chart.js/src/charts/Chart.PolarArea.js")(a),n("./node_modules/chart.js/src/charts/Chart.Radar.js")(a),n("./node_modules/chart.js/src/charts/Chart.Scatter.js")(a),window.Chart=e.exports=a},"./node_modules/chart.js/src/charts/Chart.Bar.js":e=>{"use strict";e.exports=function(e){e.Bar=function(t,n){return n.type="bar",new e(t,n)}}},"./node_modules/chart.js/src/charts/Chart.Bubble.js":e=>{"use strict";e.exports=function(e){e.Bubble=function(t,n){return n.type="bubble",new e(t,n)}}},"./node_modules/chart.js/src/charts/Chart.Doughnut.js":e=>{"use strict";e.exports=function(e){e.Doughnut=function(t,n){return n.type="doughnut",new e(t,n)}}},"./node_modules/chart.js/src/charts/Chart.Line.js":e=>{"use strict";e.exports=function(e){e.Line=function(t,n){return n.type="line",new e(t,n)}}},"./node_modules/chart.js/src/charts/Chart.PolarArea.js":e=>{"use strict";e.exports=function(e){e.PolarArea=function(t,n){return n.type="polarArea",new e(t,n)}}},"./node_modules/chart.js/src/charts/Chart.Radar.js":e=>{"use strict";e.exports=function(e){e.Radar=function(t,n){return n.options=e.helpers.configMerge({aspectRatio:1},n.options),n.type="radar",new e(t,n)}}},"./node_modules/chart.js/src/charts/Chart.Scatter.js":e=>{"use strict";e.exports=function(e){e.defaults.scatter={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}},e.controllers.scatter=e.controllers.line,e.Scatter=function(t,n){return n.type="scatter",new e(t,n)}}},"./node_modules/chart.js/src/controllers/controller.bar.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},e.controllers.bar=e.DatasetController.extend({dataElementType:e.elements.Rectangle,initialize:function(t,n){e.DatasetController.prototype.initialize.call(this,t,n),this.getMeta().bar=!0},getBarCount:function(){var e=this,n=0;return t.each(e.chart.data.datasets,(function(t,a){e.chart.getDatasetMeta(a).bar&&e.chart.isDatasetVisible(a)&&++n}),e),n},update:function(e){var n=this;t.each(n.getMeta().data,(function(t,a){n.updateElement(t,a,e)}),n)},updateElement:function(e,n,a){var o=this,r=o.getMeta(),i=o.getScaleForId(r.xAxisID),s=o.getScaleForId(r.yAxisID),l=s.getBasePixel(),c=o.chart.options.elements.rectangle,u=e.custom||{},d=o.getDataset();t.extend(e,{_xScale:i,_yScale:s,_datasetIndex:o.index,_index:n,_model:{x:o.calculateBarX(n,o.index),y:a?l:o.calculateBarY(n,o.index),label:o.chart.data.labels[n],datasetLabel:d.label,base:a?l:o.calculateBarBase(o.index,n),width:o.calculateBarWidth(n),backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(d.backgroundColor,n,c.backgroundColor),borderSkipped:u.borderSkipped?u.borderSkipped:c.borderSkipped,borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(d.borderColor,n,c.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(d.borderWidth,n,c.borderWidth)}}),e.pivot()},calculateBarBase:function(e,t){var n=this,a=n.getMeta(),o=n.getScaleForId(a.yAxisID),r=0;if(o.options.stacked){for(var i=n.chart,s=i.data.datasets,l=Number(s[e].data[t]),c=0;c<e;c++){var u=s[c],d=i.getDatasetMeta(c);if(d.bar&&d.yAxisID===o.id&&i.isDatasetVisible(c)){var f=Number(u.data[t]);r+=l<0?Math.min(f,0):Math.max(f,0)}}return o.getPixelForValue(r)}return o.getBasePixel()},getRuler:function(e){var t,n=this,a=n.getMeta(),o=n.getScaleForId(a.xAxisID),r=n.getBarCount(),i=(t="category"===o.options.type?o.getPixelForTick(e+1)-o.getPixelForTick(e):o.width/o.ticks.length)*o.options.categoryPercentage,s=(t-t*o.options.categoryPercentage)/2,l=i/r;o.ticks.length!==n.chart.data.labels.length&&(l*=o.ticks.length/n.chart.data.labels.length);return{datasetCount:r,tickWidth:t,categoryWidth:i,categorySpacing:s,fullBarWidth:l,barWidth:l*o.options.barPercentage,barSpacing:l-l*o.options.barPercentage}},calculateBarWidth:function(e){var t=this.getScaleForId(this.getMeta().xAxisID);if(t.options.barThickness)return t.options.barThickness;var n=this.getRuler(e);return t.options.stacked?n.categoryWidth:n.barWidth},getBarIndex:function(e){var t,n=0;for(t=0;t<e;++t)this.chart.getDatasetMeta(t).bar&&this.chart.isDatasetVisible(t)&&++n;return n},calculateBarX:function(e,t){var n=this,a=n.getMeta(),o=n.getScaleForId(a.xAxisID),r=n.getBarIndex(t),i=n.getRuler(e),s=o.getPixelForValue(null,e,t,n.chart.isCombo);return s-=n.chart.isCombo?i.tickWidth/2:0,o.options.stacked?s+i.categoryWidth/2+i.categorySpacing:s+i.barWidth/2+i.categorySpacing+i.barWidth*r+i.barSpacing/2+i.barSpacing*r},calculateBarY:function(e,t){var n=this,a=n.getMeta(),o=n.getScaleForId(a.yAxisID),r=Number(n.getDataset().data[e]);if(o.options.stacked){for(var i=0,s=0,l=0;l<t;l++){var c=n.chart.data.datasets[l],u=n.chart.getDatasetMeta(l);if(u.bar&&u.yAxisID===o.id&&n.chart.isDatasetVisible(l)){var d=Number(c.data[e]);d<0?s+=d||0:i+=d||0}}return r<0?o.getPixelForValue(s+r):o.getPixelForValue(i+r)}return o.getPixelForValue(r)},draw:function(e){var n=this,a=e||1;t.each(n.getMeta().data,(function(e,t){var o=n.getDataset().data[t];null==o||isNaN(o)||e.transition(a).draw()}),n)},setHoverStyle:function(e){var n=this.chart.data.datasets[e._datasetIndex],a=e._index,o=e.custom||{},r=e._model;r.backgroundColor=o.hoverBackgroundColor?o.hoverBackgroundColor:t.getValueAtIndexOrDefault(n.hoverBackgroundColor,a,t.getHoverColor(r.backgroundColor)),r.borderColor=o.hoverBorderColor?o.hoverBorderColor:t.getValueAtIndexOrDefault(n.hoverBorderColor,a,t.getHoverColor(r.borderColor)),r.borderWidth=o.hoverBorderWidth?o.hoverBorderWidth:t.getValueAtIndexOrDefault(n.hoverBorderWidth,a,r.borderWidth)},removeHoverStyle:function(e){var n=this.chart.data.datasets[e._datasetIndex],a=e._index,o=e.custom||{},r=e._model,i=this.chart.options.elements.rectangle;r.backgroundColor=o.backgroundColor?o.backgroundColor:t.getValueAtIndexOrDefault(n.backgroundColor,a,i.backgroundColor),r.borderColor=o.borderColor?o.borderColor:t.getValueAtIndexOrDefault(n.borderColor,a,i.borderColor),r.borderWidth=o.borderWidth?o.borderWidth:t.getValueAtIndexOrDefault(n.borderWidth,a,i.borderWidth)}}),e.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var n="";return e.length>0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(n=t.labels[e[0].index])),n},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.xLabel}}}},e.controllers.horizontalBar=e.controllers.bar.extend({updateElement:function(e,n,a){var o=this,r=o.getMeta(),i=o.getScaleForId(r.xAxisID),s=o.getScaleForId(r.yAxisID),l=i.getBasePixel(),c=e.custom||{},u=o.getDataset(),d=o.chart.options.elements.rectangle;t.extend(e,{_xScale:i,_yScale:s,_datasetIndex:o.index,_index:n,_model:{x:a?l:o.calculateBarX(n,o.index),y:o.calculateBarY(n,o.index),label:o.chart.data.labels[n],datasetLabel:u.label,base:a?l:o.calculateBarBase(o.index,n),height:o.calculateBarHeight(n),backgroundColor:c.backgroundColor?c.backgroundColor:t.getValueAtIndexOrDefault(u.backgroundColor,n,d.backgroundColor),borderSkipped:c.borderSkipped?c.borderSkipped:d.borderSkipped,borderColor:c.borderColor?c.borderColor:t.getValueAtIndexOrDefault(u.borderColor,n,d.borderColor),borderWidth:c.borderWidth?c.borderWidth:t.getValueAtIndexOrDefault(u.borderWidth,n,d.borderWidth)},draw:function(){var e=this._chart.ctx,t=this._view,n=t.height/2,a=t.y-n,o=t.y+n,r=t.base-(t.base-t.x),i=t.borderWidth/2;t.borderWidth&&(a+=i,o-=i,r+=i),e.beginPath(),e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth;var s=[[t.base,o],[t.base,a],[r,a],[r,o]],l=["bottom","left","top","right"].indexOf(t.borderSkipped,0);function c(e){return s[(l+e)%4]}-1===l&&(l=0),e.moveTo.apply(e,c(0));for(var u=1;u<4;u++)e.lineTo.apply(e,c(u));e.fill(),t.borderWidth&&e.stroke()},inRange:function(e,t){var n=this._view,a=!1;return n&&(a=n.x<n.base?t>=n.y-n.height/2&&t<=n.y+n.height/2&&e>=n.x&&e<=n.base:t>=n.y-n.height/2&&t<=n.y+n.height/2&&e>=n.base&&e<=n.x),a}}),e.pivot()},calculateBarBase:function(e,t){var n=this,a=n.getMeta(),o=n.getScaleForId(a.xAxisID),r=0;if(o.options.stacked){for(var i=n.chart,s=i.data.datasets,l=Number(s[e].data[t]),c=0;c<e;c++){var u=s[c],d=i.getDatasetMeta(c);if(d.bar&&d.xAxisID===o.id&&i.isDatasetVisible(c)){var f=Number(u.data[t]);r+=l<0?Math.min(f,0):Math.max(f,0)}}return o.getPixelForValue(r)}return o.getBasePixel()},getRuler:function(e){var t,n=this,a=n.getMeta(),o=n.getScaleForId(a.yAxisID),r=n.getBarCount(),i=(t="category"===o.options.type?o.getPixelForTick(e+1)-o.getPixelForTick(e):o.width/o.ticks.length)*o.options.categoryPercentage,s=(t-t*o.options.categoryPercentage)/2,l=i/r;o.ticks.length!==n.chart.data.labels.length&&(l*=o.ticks.length/n.chart.data.labels.length);return{datasetCount:r,tickHeight:t,categoryHeight:i,categorySpacing:s,fullBarHeight:l,barHeight:l*o.options.barPercentage,barSpacing:l-l*o.options.barPercentage}},calculateBarHeight:function(e){var t=this,n=t.getScaleForId(t.getMeta().yAxisID);if(n.options.barThickness)return n.options.barThickness;var a=t.getRuler(e);return n.options.stacked?a.categoryHeight:a.barHeight},calculateBarX:function(e,t){var n=this,a=n.getMeta(),o=n.getScaleForId(a.xAxisID),r=Number(n.getDataset().data[e]);if(o.options.stacked){for(var i=0,s=0,l=0;l<t;l++){var c=n.chart.data.datasets[l],u=n.chart.getDatasetMeta(l);if(u.bar&&u.xAxisID===o.id&&n.chart.isDatasetVisible(l)){var d=Number(c.data[e]);d<0?s+=d||0:i+=d||0}}return r<0?o.getPixelForValue(s+r):o.getPixelForValue(i+r)}return o.getPixelForValue(r)},calculateBarY:function(e,t){var n=this,a=n.getMeta(),o=n.getScaleForId(a.yAxisID),r=n.getBarIndex(t),i=n.getRuler(e),s=o.getPixelForValue(null,e,t,n.chart.isCombo);return s-=n.chart.isCombo?i.tickHeight/2:0,o.options.stacked?s+i.categoryHeight/2+i.categorySpacing:s+i.barHeight/2+i.categorySpacing+i.barHeight*r+i.barSpacing/2+i.barSpacing*r}})}},"./node_modules/chart.js/src/controllers/controller.bubble.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",a=t.datasets[e.datasetIndex].data[e.index];return n+": ("+a.x+", "+a.y+", "+a.r+")"}}}},e.controllers.bubble=e.DatasetController.extend({dataElementType:e.elements.Point,update:function(e){var n=this,a=n.getMeta().data;t.each(a,(function(t,a){n.updateElement(t,a,e)}))},updateElement:function(n,a,o){var r=this,i=r.getMeta(),s=r.getScaleForId(i.xAxisID),l=r.getScaleForId(i.yAxisID),c=n.custom||{},u=r.getDataset(),d=u.data[a],f=r.chart.options.elements.point,m=r.index;t.extend(n,{_xScale:s,_yScale:l,_datasetIndex:m,_index:a,_model:{x:o?s.getPixelForDecimal(.5):s.getPixelForValue("object"==typeof d?d:NaN,a,m,r.chart.isCombo),y:o?l.getBasePixel():l.getPixelForValue(d,a,m),radius:o?0:c.radius?c.radius:r.getRadius(d),hitRadius:c.hitRadius?c.hitRadius:t.getValueAtIndexOrDefault(u.hitRadius,a,f.hitRadius)}}),e.DatasetController.prototype.removeHoverStyle.call(r,n,f);var p=n._model;p.skip=c.skip?c.skip:isNaN(p.x)||isNaN(p.y),n.pivot()},getRadius:function(e){return e.r||this.chart.options.elements.point.radius},setHoverStyle:function(n){var a=this;e.DatasetController.prototype.setHoverStyle.call(a,n);var o=a.chart.data.datasets[n._datasetIndex],r=n._index,i=n.custom||{};n._model.radius=i.hoverRadius?i.hoverRadius:t.getValueAtIndexOrDefault(o.hoverRadius,r,a.chart.options.elements.point.hoverRadius)+a.getRadius(o.data[r])},removeHoverStyle:function(t){var n=this;e.DatasetController.prototype.removeHoverStyle.call(n,t,n.chart.options.elements.point);var a=n.chart.data.datasets[t._datasetIndex].data[t._index],o=t.custom||{};t._model.radius=o.radius?o.radius:n.getRadius(a)}})}},"./node_modules/chart.js/src/controllers/controller.doughnut.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=e.defaults;n.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,a=n.datasets,o=n.labels;if(a.length)for(var r=0;r<a[0].data.length;++r)t.push('<li><span style="background-color:'+a[0].backgroundColor[r]+'"></span>'),o[r]&&t.push(o[r]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var n=e.data;return n.labels.length&&n.datasets.length?n.labels.map((function(a,o){var r=e.getDatasetMeta(0),i=n.datasets[0],s=r.data[o],l=s&&s.custom||{},c=t.getValueAtIndexOrDefault,u=e.options.elements.arc;return{text:a,fillStyle:l.backgroundColor?l.backgroundColor:c(i.backgroundColor,o,u.backgroundColor),strokeStyle:l.borderColor?l.borderColor:c(i.borderColor,o,u.borderColor),lineWidth:l.borderWidth?l.borderWidth:c(i.borderWidth,o,u.borderWidth),hidden:isNaN(i.data[o])||r.data[o].hidden,index:o}})):[]}},onClick:function(e,t){var n,a,o,r=t.index,i=this.chart;for(n=0,a=(i.data.datasets||[]).length;n<a;++n)(o=i.getDatasetMeta(n)).data[r]&&(o.data[r].hidden=!o.data[r].hidden);i.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+t.datasets[e.datasetIndex].data[e.index]}}}},n.pie=t.clone(n.doughnut),t.extend(n.pie,{cutoutPercentage:0}),e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:e.elements.Arc,linkScales:t.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var n=this,a=n.chart,o=a.chartArea,r=a.options,i=r.elements.arc,s=o.right-o.left-i.borderWidth,l=o.bottom-o.top-i.borderWidth,c=Math.min(s,l),u={x:0,y:0},d=n.getMeta(),f=r.cutoutPercentage,m=r.circumference;if(m<2*Math.PI){var p=r.rotation%(2*Math.PI),g=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+m,h={x:Math.cos(p),y:Math.sin(p)},_={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&0<=g||p<=2*Math.PI&&2*Math.PI<=g,y=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,v=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,A=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,S=f/100,w={x:v?-1:Math.min(h.x*(h.x<0?1:S),_.x*(_.x<0?1:S)),y:A?-1:Math.min(h.y*(h.y<0?1:S),_.y*(_.y<0?1:S))},E={x:b?1:Math.max(h.x*(h.x>0?1:S),_.x*(_.x>0?1:S)),y:y?1:Math.max(h.y*(h.y>0?1:S),_.y*(_.y>0?1:S))},C={width:.5*(E.x-w.x),height:.5*(E.y-w.y)};c=Math.min(s/C.width,l/C.height),u={x:-.5*(E.x+w.x),y:-.5*(E.y+w.y)}}a.borderWidth=n.getMaxBorderWidth(d.data),a.outerRadius=Math.max((c-a.borderWidth)/2,0),a.innerRadius=Math.max(f?a.outerRadius/100*f:1,0),a.radiusLength=(a.outerRadius-a.innerRadius)/a.getVisibleDatasetCount(),a.offsetX=u.x*a.outerRadius,a.offsetY=u.y*a.outerRadius,d.total=n.calculateTotal(),n.outerRadius=a.outerRadius-a.radiusLength*n.getRingIndex(n.index),n.innerRadius=n.outerRadius-a.radiusLength,t.each(d.data,(function(t,a){n.updateElement(t,a,e)}))},updateElement:function(e,n,a){var o=this,r=o.chart,i=r.chartArea,s=r.options,l=s.animation,c=(i.left+i.right)/2,u=(i.top+i.bottom)/2,d=s.rotation,f=s.rotation,m=o.getDataset(),p=a&&l.animateRotate||e.hidden?0:o.calculateCircumference(m.data[n])*(s.circumference/(2*Math.PI)),g=a&&l.animateScale?0:o.innerRadius,h=a&&l.animateScale?0:o.outerRadius,_=t.getValueAtIndexOrDefault;t.extend(e,{_datasetIndex:o.index,_index:n,_model:{x:c+r.offsetX,y:u+r.offsetY,startAngle:d,endAngle:f,circumference:p,outerRadius:h,innerRadius:g,label:_(m.label,n,r.data.labels[n])}});var b=e._model;this.removeHoverStyle(e),a&&l.animateRotate||(b.startAngle=0===n?s.rotation:o.getMeta().data[n-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),e.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var e,n=this.getDataset(),a=this.getMeta(),o=0;return t.each(a.data,(function(t,a){e=n.data[a],isNaN(e)||t.hidden||(o+=Math.abs(e))})),o},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(e/t):0},getMaxBorderWidth:function(e){for(var t,n,a=0,o=this.index,r=e.length,i=0;i<r;i++)t=e[i]._model?e[i]._model.borderWidth:0,a=(n=e[i]._chart?e[i]._chart.config.data.datasets[o].hoverBorderWidth:0)>(a=t>a?t:a)?n:a;return a}})}},"./node_modules/chart.js/src/controllers/controller.line.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;function n(e,n){return t.getValueOrDefault(e.showLine,n.showLines)}e.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},e.controllers.line=e.DatasetController.extend({datasetElementType:e.elements.Line,dataElementType:e.elements.Point,addElementAndReset:function(t){var a=this,o=a.chart.options,r=a.getMeta();e.DatasetController.prototype.addElementAndReset.call(a,t),n(a.getDataset(),o)&&0!==r.dataset._model.tension&&a.updateBezierControlPoints()},update:function(e){var a,o,r,i=this,s=i.getMeta(),l=s.dataset,c=s.data||[],u=i.chart.options,d=u.elements.line,f=i.getScaleForId(s.yAxisID),m=i.getDataset(),p=n(m,u);for(p&&(r=l.custom||{},void 0!==m.tension&&void 0===m.lineTension&&(m.lineTension=m.tension),l._scale=f,l._datasetIndex=i.index,l._children=c,l._model={spanGaps:m.spanGaps?m.spanGaps:u.spanGaps,tension:r.tension?r.tension:t.getValueOrDefault(m.lineTension,d.tension),backgroundColor:r.backgroundColor?r.backgroundColor:m.backgroundColor||d.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:m.borderWidth||d.borderWidth,borderColor:r.borderColor?r.borderColor:m.borderColor||d.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:m.borderCapStyle||d.borderCapStyle,borderDash:r.borderDash?r.borderDash:m.borderDash||d.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:m.borderDashOffset||d.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:m.borderJoinStyle||d.borderJoinStyle,fill:r.fill?r.fill:void 0!==m.fill?m.fill:d.fill,steppedLine:r.steppedLine?r.steppedLine:t.getValueOrDefault(m.steppedLine,d.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:t.getValueOrDefault(m.cubicInterpolationMode,d.cubicInterpolationMode),scaleTop:f.top,scaleBottom:f.bottom,scaleZero:f.getBasePixel()},l.pivot()),a=0,o=c.length;a<o;++a)i.updateElement(c[a],a,e);for(p&&0!==l._model.tension&&i.updateBezierControlPoints(),a=0,o=c.length;a<o;++a)c[a].pivot()},getPointBackgroundColor:function(e,n){var a=this.chart.options.elements.point.backgroundColor,o=this.getDataset(),r=e.custom||{};return r.backgroundColor?a=r.backgroundColor:o.pointBackgroundColor?a=t.getValueAtIndexOrDefault(o.pointBackgroundColor,n,a):o.backgroundColor&&(a=o.backgroundColor),a},getPointBorderColor:function(e,n){var a=this.chart.options.elements.point.borderColor,o=this.getDataset(),r=e.custom||{};return r.borderColor?a=r.borderColor:o.pointBorderColor?a=t.getValueAtIndexOrDefault(o.pointBorderColor,n,a):o.borderColor&&(a=o.borderColor),a},getPointBorderWidth:function(e,n){var a=this.chart.options.elements.point.borderWidth,o=this.getDataset(),r=e.custom||{};return r.borderWidth?a=r.borderWidth:o.pointBorderWidth?a=t.getValueAtIndexOrDefault(o.pointBorderWidth,n,a):o.borderWidth&&(a=o.borderWidth),a},updateElement:function(e,n,a){var o,r,i=this,s=i.getMeta(),l=e.custom||{},c=i.getDataset(),u=i.index,d=c.data[n],f=i.getScaleForId(s.yAxisID),m=i.getScaleForId(s.xAxisID),p=i.chart.options.elements.point,g=1===(i.chart.data.labels||[]).length||1===c.data.length||i.chart.isCombo;void 0!==c.radius&&void 0===c.pointRadius&&(c.pointRadius=c.radius),void 0!==c.hitRadius&&void 0===c.pointHitRadius&&(c.pointHitRadius=c.hitRadius),o=m.getPixelForValue("object"==typeof d?d:NaN,n,u,g),r=a?f.getBasePixel():i.calculatePointY(d,n,u),e._xScale=m,e._yScale=f,e._datasetIndex=u,e._index=n,e._model={x:o,y:r,skip:l.skip||isNaN(o)||isNaN(r),radius:l.radius||t.getValueAtIndexOrDefault(c.pointRadius,n,p.radius),pointStyle:l.pointStyle||t.getValueAtIndexOrDefault(c.pointStyle,n,p.pointStyle),backgroundColor:i.getPointBackgroundColor(e,n),borderColor:i.getPointBorderColor(e,n),borderWidth:i.getPointBorderWidth(e,n),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||t.getValueAtIndexOrDefault(c.pointHitRadius,n,p.hitRadius)}},calculatePointY:function(e,t,n){var a,o,r,i=this,s=i.chart,l=i.getMeta(),c=i.getScaleForId(l.yAxisID),u=0,d=0;if(c.options.stacked){for(a=0;a<n;a++)if(o=s.data.datasets[a],"line"===(r=s.getDatasetMeta(a)).type&&r.yAxisID===c.id&&s.isDatasetVisible(a)){var f=Number(c.getRightValue(o.data[t]));f<0?d+=f||0:u+=f||0}var m=Number(c.getRightValue(e));return m<0?c.getPixelForValue(d+m):c.getPixelForValue(u+m)}return c.getPixelForValue(e)},updateBezierControlPoints:function(){var e,n,a,o,r=this,i=r.getMeta(),s=r.chart.chartArea,l=i.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(i.dataset._model.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===i.dataset._model.cubicInterpolationMode)t.splineCurveMonotone(l);else for(e=0,n=l.length;e<n;++e)a=l[e]._model,o=t.splineCurve(t.previousItem(l,e)._model,a,t.nextItem(l,e)._model,i.dataset._model.tension),a.controlPointPreviousX=o.previous.x,a.controlPointPreviousY=o.previous.y,a.controlPointNextX=o.next.x,a.controlPointNextY=o.next.y;if(r.chart.options.elements.line.capBezierPoints)for(e=0,n=l.length;e<n;++e)(a=l[e]._model).controlPointPreviousX=c(a.controlPointPreviousX,s.left,s.right),a.controlPointPreviousY=c(a.controlPointPreviousY,s.top,s.bottom),a.controlPointNextX=c(a.controlPointNextX,s.left,s.right),a.controlPointNextY=c(a.controlPointNextY,s.top,s.bottom)},draw:function(e){var t,a,o=this,r=o.getMeta(),i=r.data||[],s=e||1;for(t=0,a=i.length;t<a;++t)i[t].transition(s);for(n(o.getDataset(),o.chart.options)&&r.dataset.transition(s).draw(),t=0,a=i.length;t<a;++t)i[t].draw()},setHoverStyle:function(e){var n=this.chart.data.datasets[e._datasetIndex],a=e._index,o=e.custom||{},r=e._model;r.radius=o.hoverRadius||t.getValueAtIndexOrDefault(n.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius),r.backgroundColor=o.hoverBackgroundColor||t.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,a,t.getHoverColor(r.backgroundColor)),r.borderColor=o.hoverBorderColor||t.getValueAtIndexOrDefault(n.pointHoverBorderColor,a,t.getHoverColor(r.borderColor)),r.borderWidth=o.hoverBorderWidth||t.getValueAtIndexOrDefault(n.pointHoverBorderWidth,a,r.borderWidth)},removeHoverStyle:function(e){var n=this,a=n.chart.data.datasets[e._datasetIndex],o=e._index,r=e.custom||{},i=e._model;void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),i.radius=r.radius||t.getValueAtIndexOrDefault(a.pointRadius,o,n.chart.options.elements.point.radius),i.backgroundColor=n.getPointBackgroundColor(e,o),i.borderColor=n.getPointBorderColor(e,o),i.borderWidth=n.getPointBorderWidth(e,o)}})}},"./node_modules/chart.js/src/controllers/controller.polarArea.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,a=n.datasets,o=n.labels;if(a.length)for(var r=0;r<a[0].data.length;++r)t.push('<li><span style="background-color:'+a[0].backgroundColor[r]+'">'),o[r]&&t.push(o[r]),t.push("</span></li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var n=e.data;return n.labels.length&&n.datasets.length?n.labels.map((function(a,o){var r=e.getDatasetMeta(0),i=n.datasets[0],s=r.data[o].custom||{},l=t.getValueAtIndexOrDefault,c=e.options.elements.arc;return{text:a,fillStyle:s.backgroundColor?s.backgroundColor:l(i.backgroundColor,o,c.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(i.borderColor,o,c.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(i.borderWidth,o,c.borderWidth),hidden:isNaN(i.data[o])||r.data[o].hidden,index:o}})):[]}},onClick:function(e,t){var n,a,o,r=t.index,i=this.chart;for(n=0,a=(i.data.datasets||[]).length;n<a;++n)(o=i.getDatasetMeta(n)).data[r].hidden=!o.data[r].hidden;i.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}},e.controllers.polarArea=e.DatasetController.extend({dataElementType:e.elements.Arc,linkScales:t.noop,update:function(e){var n=this,a=n.chart,o=a.chartArea,r=n.getMeta(),i=a.options,s=i.elements.arc,l=Math.min(o.right-o.left,o.bottom-o.top);a.outerRadius=Math.max((l-s.borderWidth/2)/2,0),a.innerRadius=Math.max(i.cutoutPercentage?a.outerRadius/100*i.cutoutPercentage:1,0),a.radiusLength=(a.outerRadius-a.innerRadius)/a.getVisibleDatasetCount(),n.outerRadius=a.outerRadius-a.radiusLength*n.index,n.innerRadius=n.outerRadius-a.radiusLength,r.count=n.countVisibleElements(),t.each(r.data,(function(t,a){n.updateElement(t,a,e)}))},updateElement:function(e,n,a){for(var o=this,r=o.chart,i=o.getDataset(),s=r.options,l=s.animation,c=r.scale,u=t.getValueAtIndexOrDefault,d=r.data.labels,f=o.calculateCircumference(i.data[n]),m=c.xCenter,p=c.yCenter,g=0,h=o.getMeta(),_=0;_<n;++_)isNaN(i.data[_])||h.data[_].hidden||++g;var b=s.startAngle,y=e.hidden?0:c.getDistanceFromCenterForValue(i.data[n]),v=b+f*g,A=v+(e.hidden?0:f),S=l.animateScale?0:c.getDistanceFromCenterForValue(i.data[n]);t.extend(e,{_datasetIndex:o.index,_index:n,_scale:c,_model:{x:m,y:p,innerRadius:0,outerRadius:a?S:y,startAngle:a&&l.animateRotate?b:v,endAngle:a&&l.animateRotate?b:A,label:u(d,n,d[n])}}),o.removeHoverStyle(e),e.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var e=this.getDataset(),n=this.getMeta(),a=0;return t.each(n.data,(function(t,n){isNaN(e.data[n])||t.hidden||a++})),a},calculateCircumference:function(e){var t=this.getMeta().count;return t>0&&!isNaN(e)?2*Math.PI/t:0}})}},"./node_modules/chart.js/src/controllers/controller.radar.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.defaults.radar={scale:{type:"radialLinear"},elements:{line:{tension:0}}},e.controllers.radar=e.DatasetController.extend({datasetElementType:e.elements.Line,dataElementType:e.elements.Point,linkScales:t.noop,addElementAndReset:function(t){e.DatasetController.prototype.addElementAndReset.call(this,t),this.updateBezierControlPoints()},update:function(e){var n=this,a=n.getMeta(),o=a.dataset,r=a.data,i=o.custom||{},s=n.getDataset(),l=n.chart.options.elements.line,c=n.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),t.extend(a.dataset,{_datasetIndex:n.index,_children:r,_loop:!0,_model:{tension:i.tension?i.tension:t.getValueOrDefault(s.lineTension,l.tension),backgroundColor:i.backgroundColor?i.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:s.borderWidth||l.borderWidth,borderColor:i.borderColor?i.borderColor:s.borderColor||l.borderColor,fill:i.fill?i.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:i.borderDash?i.borderDash:s.borderDash||l.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle,scaleTop:c.top,scaleBottom:c.bottom,scaleZero:c.getBasePosition()}}),a.dataset.pivot(),t.each(r,(function(t,a){n.updateElement(t,a,e)}),n),n.updateBezierControlPoints()},updateElement:function(e,n,a){var o=this,r=e.custom||{},i=o.getDataset(),s=o.chart.scale,l=o.chart.options.elements.point,c=s.getPointPositionForValue(n,i.data[n]);t.extend(e,{_datasetIndex:o.index,_index:n,_scale:s,_model:{x:a?s.xCenter:c.x,y:a?s.yCenter:c.y,tension:r.tension?r.tension:t.getValueOrDefault(i.tension,o.chart.options.elements.line.tension),radius:r.radius?r.radius:t.getValueAtIndexOrDefault(i.pointRadius,n,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:t.getValueAtIndexOrDefault(i.pointBackgroundColor,n,l.backgroundColor),borderColor:r.borderColor?r.borderColor:t.getValueAtIndexOrDefault(i.pointBorderColor,n,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:t.getValueAtIndexOrDefault(i.pointBorderWidth,n,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:t.getValueAtIndexOrDefault(i.pointStyle,n,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:t.getValueAtIndexOrDefault(i.hitRadius,n,l.hitRadius)}}),e._model.skip=r.skip?r.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,n=this.getMeta();t.each(n.data,(function(a,o){var r=a._model,i=t.splineCurve(t.previousItem(n.data,o,!0)._model,r,t.nextItem(n.data,o,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(i.previous.x,e.right),e.left),r.controlPointPreviousY=Math.max(Math.min(i.previous.y,e.bottom),e.top),r.controlPointNextX=Math.max(Math.min(i.next.x,e.right),e.left),r.controlPointNextY=Math.max(Math.min(i.next.y,e.bottom),e.top),a.pivot()}))},draw:function(e){var n=this.getMeta(),a=e||1;t.each(n.data,(function(e){e.transition(a)})),n.dataset.transition(a).draw(),t.each(n.data,(function(e){e.draw()}))},setHoverStyle:function(e){var n=this.chart.data.datasets[e._datasetIndex],a=e.custom||{},o=e._index,r=e._model;r.radius=a.hoverRadius?a.hoverRadius:t.getValueAtIndexOrDefault(n.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius),r.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:t.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,o,t.getHoverColor(r.backgroundColor)),r.borderColor=a.hoverBorderColor?a.hoverBorderColor:t.getValueAtIndexOrDefault(n.pointHoverBorderColor,o,t.getHoverColor(r.borderColor)),r.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:t.getValueAtIndexOrDefault(n.pointHoverBorderWidth,o,r.borderWidth)},removeHoverStyle:function(e){var n=this.chart.data.datasets[e._datasetIndex],a=e.custom||{},o=e._index,r=e._model,i=this.chart.options.elements.point;r.radius=a.radius?a.radius:t.getValueAtIndexOrDefault(n.radius,o,i.radius),r.backgroundColor=a.backgroundColor?a.backgroundColor:t.getValueAtIndexOrDefault(n.pointBackgroundColor,o,i.backgroundColor),r.borderColor=a.borderColor?a.borderColor:t.getValueAtIndexOrDefault(n.pointBorderColor,o,i.borderColor),r.borderWidth=a.borderWidth?a.borderWidth:t.getValueAtIndexOrDefault(n.pointBorderWidth,o,i.borderWidth)}})}},"./node_modules/chart.js/src/core/core.animation.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:t.noop,onComplete:t.noop},e.Animation=e.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),e.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(e,t,n,a){var o=this;a||(e.animating=!0);for(var r=0;r<o.animations.length;++r)if(o.animations[r].chartInstance===e)return void(o.animations[r].animationObject=t);o.animations.push({chartInstance:e,animationObject:t}),1===o.animations.length&&o.requestAnimationFrame()},cancelAnimation:function(e){var n=t.findIndex(this.animations,(function(t){return t.chartInstance===e}));-1!==n&&(this.animations.splice(n,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=t.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this,t=Date.now(),n=0;e.dropFrames>1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1);for(var a=0;a<e.animations.length;)null===e.animations[a].animationObject.currentStep&&(e.animations[a].animationObject.currentStep=0),e.animations[a].animationObject.currentStep+=1+n,e.animations[a].animationObject.currentStep>e.animations[a].animationObject.numSteps&&(e.animations[a].animationObject.currentStep=e.animations[a].animationObject.numSteps),e.animations[a].animationObject.render(e.animations[a].chartInstance,e.animations[a].animationObject),e.animations[a].animationObject.onAnimationProgress&&e.animations[a].animationObject.onAnimationProgress.call&&e.animations[a].animationObject.onAnimationProgress.call(e.animations[a].chartInstance,e.animations[a]),e.animations[a].animationObject.currentStep===e.animations[a].animationObject.numSteps?(e.animations[a].animationObject.onAnimationComplete&&e.animations[a].animationObject.onAnimationComplete.call&&e.animations[a].animationObject.onAnimationComplete.call(e.animations[a].chartInstance,e.animations[a]),e.animations[a].chartInstance.animating=!1,e.animations.splice(a,1)):++a;var o=(Date.now()-t)/e.frameDuration;e.dropFrames+=o,e.animations.length>0&&e.requestAnimationFrame()}}}},"./node_modules/chart.js/src/core/core.canvasHelpers.js":e=>{"use strict";e.exports=function(e){(e.canvasHelpers={}).drawPoint=function(e,t,n,a,o){var r,i,s,l,c,u;if("object"!=typeof t||"[object HTMLImageElement]"!==(r=t.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(t){default:e.beginPath(),e.arc(a,o,n,0,2*Math.PI),e.closePath(),e.fill();break;case"triangle":e.beginPath(),c=(i=3*n/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(a-i/2,o+c/3),e.lineTo(a+i/2,o+c/3),e.lineTo(a,o-2*c/3),e.closePath(),e.fill();break;case"rect":u=1/Math.SQRT2*n,e.beginPath(),e.fillRect(a-u,o-u,2*u,2*u),e.strokeRect(a-u,o-u,2*u,2*u);break;case"rectRot":u=1/Math.SQRT2*n,e.beginPath(),e.moveTo(a-u,o),e.lineTo(a,o+u),e.lineTo(a+u,o),e.lineTo(a,o-u),e.closePath(),e.fill();break;case"cross":e.beginPath(),e.moveTo(a,o+n),e.lineTo(a,o-n),e.moveTo(a-n,o),e.lineTo(a+n,o),e.closePath();break;case"crossRot":e.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,e.moveTo(a-s,o-l),e.lineTo(a+s,o+l),e.moveTo(a-s,o+l),e.lineTo(a+s,o-l),e.closePath();break;case"star":e.beginPath(),e.moveTo(a,o+n),e.lineTo(a,o-n),e.moveTo(a-n,o),e.lineTo(a+n,o),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,e.moveTo(a-s,o-l),e.lineTo(a+s,o+l),e.moveTo(a-s,o+l),e.lineTo(a+s,o-l),e.closePath();break;case"line":e.beginPath(),e.moveTo(a-n,o),e.lineTo(a+n,o),e.closePath();break;case"dash":e.beginPath(),e.moveTo(a,o),e.lineTo(a+n,o),e.closePath()}e.stroke()}}else e.drawImage(t,a-t.width/2,o-t.height/2)}}},"./node_modules/chart.js/src/core/core.controller.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.types={},e.instances={},e.controllers={},e.Controller=function(n){return this.chart=n,this.config=n.config,this.options=this.config.options=t.configMerge(e.defaults.global,e.defaults[this.config.type],this.config.options||{}),this.id=t.uid(),Object.defineProperty(this,"data",{get:function(){return this.config.data}}),e.instances[this.id]=this,this.options.responsive&&this.resize(!0),this.initialize(),this},t.extend(e.Controller.prototype,{initialize:function(){var t=this;return e.plugins.notify("beforeInit",[t]),t.bindEvents(),t.ensureScalesHaveIDs(),t.buildOrUpdateControllers(),t.buildScales(),t.updateLayout(),t.resetElements(),t.initToolTip(),t.update(),e.plugins.notify("afterInit",[t]),t},clear:function(){return t.clear(this.chart),this},stop:function(){return e.animationService.cancelAnimation(this),this},resize:function(n){var a=this,o=a.chart,r=o.canvas,i=t.getMaximumWidth(r),s=o.aspectRatio,l=a.options.maintainAspectRatio&&!1===isNaN(s)&&isFinite(s)&&0!==s?i/s:t.getMaximumHeight(r);if(!(o.width!==i||o.height!==l))return a;r.width=o.width=i,r.height=o.height=l,t.retinaScale(o);var c={width:i,height:l};return e.plugins.notify("resize",[a,c]),a.options.onResize&&a.options.onResize(a,c),n||(a.stop(),a.update(a.options.responsiveAnimationDuration)),a},ensureScalesHaveIDs:function(){var e=this.options,n=e.scales||{},a=e.scale;t.each(n.xAxes,(function(e,t){e.id=e.id||"x-axis-"+t})),t.each(n.yAxes,(function(e,t){e.id=e.id||"y-axis-"+t})),a&&(a.id=a.id||"scale")},buildScales:function(){var n=this,a=n.options,o=n.scales={},r=[];a.scales&&(r=r.concat((a.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category"}})),(a.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear"}})))),a.scale&&r.push({options:a.scale,dtype:"radialLinear",isDefault:!0}),t.each(r,(function(a){var r=a.options,i=t.getValueOrDefault(r.type,a.dtype),s=e.scaleService.getScaleConstructor(i);if(s){var l=new s({id:r.id,options:r,ctx:n.chart.ctx,chart:n});o[l.id]=l,a.isDefault&&(n.scale=l)}})),e.scaleService.addScalesToLayout(this)},updateLayout:function(){e.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var n=this,a=[],o=[];if(t.each(n.data.datasets,(function(t,r){var i=n.getDatasetMeta(r);i.type||(i.type=t.type||n.config.type),a.push(i.type),i.controller?i.controller.updateIndex(r):(i.controller=new e.controllers[i.type](n,r),o.push(i.controller))}),n),a.length>1)for(var r=1;r<a.length;r++)if(a[r]!==a[r-1]){n.isCombo=!0;break}return o},resetElements:function(){var e=this;t.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},update:function(n,a){var o=this;e.plugins.notify("beforeUpdate",[o]),o.tooltip._data=o.data;var r=o.buildOrUpdateControllers();t.each(o.data.datasets,(function(e,t){o.getDatasetMeta(t).controller.buildOrUpdateElements()}),o),e.layoutService.update(o,o.chart.width,o.chart.height),e.plugins.notify("afterScaleUpdate",[o]),t.each(r,(function(e){e.reset()})),o.updateDatasets(),e.plugins.notify("afterUpdate",[o]),o.render(n,a)},updateDatasets:function(){var t,n,a=this;if(e.plugins.notify("beforeDatasetsUpdate",[a])){for(t=0,n=a.data.datasets.length;t<n;++t)a.getDatasetMeta(t).controller.update();e.plugins.notify("afterDatasetsUpdate",[a])}},render:function(n,a){var o=this;e.plugins.notify("beforeRender",[o]);var r=o.options.animation;if(r&&(void 0!==n&&0!==n||void 0===n&&0!==r.duration)){var i=new e.Animation;i.numSteps=(n||r.duration)/16.66,i.easing=r.easing,i.render=function(e,n){var a=t.easingEffects[n.easing],o=n.currentStep/n.numSteps,r=a(o);e.draw(r,o,n.currentStep)},i.onAnimationProgress=r.onProgress,i.onAnimationComplete=r.onComplete,e.animationService.addAnimation(o,i,n,a)}else o.draw(),r&&r.onComplete&&r.onComplete.call&&r.onComplete.call(o);return o},draw:function(n){var a=this,o=n||1;a.clear(),e.plugins.notify("beforeDraw",[a,o]),t.each(a.boxes,(function(e){e.draw(a.chartArea)}),a),a.scale&&a.scale.draw(),e.plugins.notify("beforeDatasetsDraw",[a,o]),t.each(a.data.datasets,(function(e,t){a.isDatasetVisible(t)&&a.getDatasetMeta(t).controller.draw(n)}),a,!0),e.plugins.notify("afterDatasetsDraw",[a,o]),a.tooltip.transition(o).draw(),e.plugins.notify("afterDraw",[a,o])},getElementAtEvent:function(e){var n=this,a=t.getRelativePosition(e,n.chart),o=[];return t.each(n.data.datasets,(function(e,r){if(n.isDatasetVisible(r)){var i=n.getDatasetMeta(r);t.each(i.data,(function(e){if(e.inRange(a.x,a.y))return o.push(e),o}))}})),o.slice(0,1)},getElementsAtEvent:function(e){var n=this,a=t.getRelativePosition(e,n.chart),o=[],r=function(){if(n.data.datasets)for(var e=0;e<n.data.datasets.length;e++){var t=n.getDatasetMeta(e);if(n.isDatasetVisible(e))for(var o=0;o<t.data.length;o++)if(t.data[o].inRange(a.x,a.y))return t.data[o]}}.call(n);return r?(t.each(n.data.datasets,(function(e,t){if(n.isDatasetVisible(t)){var a=n.getDatasetMeta(t).data[r._index];a&&!a._view.skip&&o.push(a)}}),n),o):o},getElementsAtXAxis:function(e){var n=this,a=t.getRelativePosition(e,n.chart),o=[],r=function(){if(n.data.datasets)for(var e=0;e<n.data.datasets.length;e++){var t=n.getDatasetMeta(e);if(n.isDatasetVisible(e))for(var o=0;o<t.data.length;o++)if(t.data[o].inLabelRange(a.x,a.y))return t.data[o]}}.call(n);return r?(t.each(n.data.datasets,(function(e,a){if(n.isDatasetVisible(a)){var i=n.getDatasetMeta(a),s=t.findIndex(i.data,(function(e){return r._model.x===e._model.x}));-1===s||i.data[s]._view.skip||o.push(i.data[s])}}),n),o):o},getElementsAtEventForMode:function(e,t){var n=this;switch(t){case"single":return n.getElementAtEvent(e);case"label":return n.getElementsAtEvent(e);case"dataset":return n.getDatasetAtEvent(e);case"x-axis":return n.getElementsAtXAxis(e);default:return e}},getDatasetAtEvent:function(e){var t=this.getElementAtEvent(e);return t.length>0&&(t=this.getDatasetMeta(t[0]._datasetIndex).data),t},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var a=n._meta[t.id];return a||(a=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),a},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var n=this;n.stop(),n.clear(),t.unbindEvents(n,n.events),t.removeResizeListener(n.chart.canvas.parentNode);var a=n.chart.canvas;a.width=n.chart.width,a.height=n.chart.height,void 0!==n.chart.originalDevicePixelRatio&&n.chart.ctx.scale(1/n.chart.originalDevicePixelRatio,1/n.chart.originalDevicePixelRatio),a.style.width=n.chart.originalCanvasStyleWidth,a.style.height=n.chart.originalCanvasStyleHeight,e.plugins.notify("destroy",[n]),delete e.instances[n.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new e.Tooltip({_chart:t.chart,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this;t.bindEvents(e,e.options.events,(function(t){e.eventHandler(t)}))},updateHoverStyle:function(e,t,n){var a,o,r,i=n?"setHoverStyle":"removeHoverStyle";switch(t){case"single":e=[e[0]];break;case"label":case"dataset":case"x-axis":break;default:return}for(o=0,r=e.length;o<r;++o)(a=e[o])&&this.getDatasetMeta(a._datasetIndex).controller[i](a)},eventHandler:function(e){var n=this,a=n.tooltip,o=n.options||{},r=o.hover,i=o.tooltips;return n.lastActive=n.lastActive||[],n.lastTooltipActive=n.lastTooltipActive||[],"mouseout"===e.type?(n.active=[],n.tooltipActive=[]):(n.active=n.getElementsAtEventForMode(e,r.mode),n.tooltipActive=n.getElementsAtEventForMode(e,i.mode)),r.onHover&&r.onHover.call(n,n.active),n.legend&&n.legend.handleEvent&&n.legend.handleEvent(e),"mouseup"!==e.type&&"click"!==e.type||o.onClick&&o.onClick.call(n,e,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),(i.enabled||i.custom)&&(a.initialize(),a._active=n.tooltipActive,a.update(!0)),a.pivot(),n.animating||t.arrayEquals(n.active,n.lastActive)&&t.arrayEquals(n.tooltipActive,n.lastTooltipActive)||(n.stop(),(i.enabled||i.custom)&&a.update(!0),n.render(r.animationDuration,!0)),n.lastActive=n.active,n.lastTooltipActive=n.tooltipActive,n}})}},"./node_modules/chart.js/src/core/core.datasetController.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=t.noop;e.DatasetController=function(e,t){this.initialize(e,t)},t.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null===t.xAxisID&&(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null===t.yAxisID&&(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,a=n.getMeta(),o=n.getDataset().data||[],r=a.data;for(e=0,t=o.length;e<t;++e)r[e]=r[e]||n.createMetaData(a,e);a.dataset=a.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this,n=t.createMetaData(e);t.getMeta().data.splice(e,0,n),t.updateElement(n,e,!0)},buildOrUpdateElements:function(){var e=this.getMeta().data,t=this.getDataset().data.length,n=e.length;if(t<n)e.splice(t,n-t);else if(t>n)for(var a=n;a<t;++a)this.addElementAndReset(a)},update:n,draw:function(e){var n=e||1;t.each(this.getMeta().data,(function(e){e.transition(n).draw()}))},removeHoverStyle:function(e,n){var a=this.chart.data.datasets[e._datasetIndex],o=e._index,r=e.custom||{},i=t.getValueAtIndexOrDefault,s=e._model;s.backgroundColor=r.backgroundColor?r.backgroundColor:i(a.backgroundColor,o,n.backgroundColor),s.borderColor=r.borderColor?r.borderColor:i(a.borderColor,o,n.borderColor),s.borderWidth=r.borderWidth?r.borderWidth:i(a.borderWidth,o,n.borderWidth)},setHoverStyle:function(e){var n=this.chart.data.datasets[e._datasetIndex],a=e._index,o=e.custom||{},r=t.getValueAtIndexOrDefault,i=t.getHoverColor,s=e._model;s.backgroundColor=o.hoverBackgroundColor?o.hoverBackgroundColor:r(n.hoverBackgroundColor,a,i(s.backgroundColor)),s.borderColor=o.hoverBorderColor?o.hoverBorderColor:r(n.hoverBorderColor,a,i(s.borderColor)),s.borderWidth=o.hoverBorderWidth?o.hoverBorderWidth:r(n.hoverBorderWidth,a,s.borderWidth)}}),e.DatasetController.extend=t.inherits}},"./node_modules/chart.js/src/core/core.element.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.elements={},e.Element=function(e){t.extend(this,e),this.initialize.apply(this,arguments)},t.extend(e.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=t.clone(e._model)),e._start=t.clone(e._view),e},transition:function(e){var n=this;return n._view||(n._view=t.clone(n._model)),1===e?(n._view=n._model,n._start=null,n):(n._start||n.pivot(),t.each(n._model,(function(a,o){if("_"===o[0]);else if(n._view.hasOwnProperty(o))if(a===n._view[o]);else if("string"==typeof a)try{var r=t.color(n._model[o]).mix(t.color(n._start[o]),e);n._view[o]=r.rgbString()}catch(e){n._view[o]=a}else if("number"==typeof a){var i=void 0!==n._start[o]&&!1===isNaN(n._start[o])?n._start[o]:0;n._view[o]=(n._model[o]-i)*e+i}else n._view[o]=a;else"number"!=typeof a||isNaN(n._view[o])?n._view[o]=a:n._view[o]=a*e}),n),n)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return t.isNumber(this._model.x)&&t.isNumber(this._model.y)}}),e.Element.extend=t.inherits}},"./node_modules/chart.js/src/core/core.helpers.js":(e,t,n)=>{"use strict";var a=n("./node_modules/chartjs-color/index.js");e.exports=function(e){var t,n=e.helpers={};n.each=function(e,t,a,o){var r,i;if(n.isArray(e))if(i=e.length,o)for(r=i-1;r>=0;r--)t.call(a,e[r],r);else for(r=0;r<i;r++)t.call(a,e[r],r);else if("object"==typeof e){var s=Object.keys(e);for(i=s.length,r=0;r<i;r++)t.call(a,e[s[r]],s[r])}},n.clone=function(e){var t={};return n.each(e,(function(e,a){n.isArray(e)?t[a]=e.slice(0):t[a]="object"==typeof e&&null!==e?n.clone(e):e})),t},n.extend=function(e){for(var t=function(t,n){e[n]=t},a=1,o=arguments.length;a<o;a++)n.each(arguments[a],t);return e},n.configMerge=function(t){var a=n.clone(t);return n.each(Array.prototype.slice.call(arguments,1),(function(t){n.each(t,(function(t,o){if("scales"===o)a[o]=n.scaleMerge(a.hasOwnProperty(o)?a[o]:{},t);else if("scale"===o)a[o]=n.configMerge(a.hasOwnProperty(o)?a[o]:{},e.scaleService.getScaleDefaults(t.type),t);else if(a.hasOwnProperty(o)&&n.isArray(a[o])&&n.isArray(t)){var r=a[o];n.each(t,(function(e,t){t<r.length?"object"==typeof r[t]&&null!==r[t]&&"object"==typeof e&&null!==e?r[t]=n.configMerge(r[t],e):r[t]=e:r.push(e)}))}else a.hasOwnProperty(o)&&"object"==typeof a[o]&&null!==a[o]&&"object"==typeof t?a[o]=n.configMerge(a[o],t):a[o]=t}))})),a},n.scaleMerge=function(t,a){var o=n.clone(t);return n.each(a,(function(t,a){"xAxes"===a||"yAxes"===a?o.hasOwnProperty(a)?n.each(t,(function(t,r){var i=n.getValueOrDefault(t.type,"xAxes"===a?"category":"linear"),s=e.scaleService.getScaleDefaults(i);r>=o[a].length||!o[a][r].type?o[a].push(n.configMerge(s,t)):t.type&&t.type!==o[a][r].type?o[a][r]=n.configMerge(o[a][r],s,t):o[a][r]=n.configMerge(o[a][r],t)})):(o[a]=[],n.each(t,(function(t){var r=n.getValueOrDefault(t.type,"xAxes"===a?"category":"linear");o[a].push(n.configMerge(e.scaleService.getScaleDefaults(r),t))}))):o.hasOwnProperty(a)&&"object"==typeof o[a]&&null!==o[a]&&"object"==typeof t?o[a]=n.configMerge(o[a],t):o[a]=t})),o},n.getValueAtIndexOrDefault=function(e,t,a){return null==e?a:n.isArray(e)?t<e.length?e[t]:a:e},n.getValueOrDefault=function(e,t){return void 0===e?t:e},n.indexOf=Array.prototype.indexOf?function(e,t){return e.indexOf(t)}:function(e,t){for(var n=0,a=e.length;n<a;++n)if(e[n]===t)return n;return-1},n.where=function(e,t){if(n.isArray(e)&&Array.prototype.filter)return e.filter(t);var a=[];return n.each(e,(function(e){t(e)&&a.push(e)})),a},n.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var a=0,o=e.length;a<o;++a)if(t.call(n,e[a],a,e))return a;return-1},n.findNextWhere=function(e,t,n){null==n&&(n=-1);for(var a=n+1;a<e.length;a++){var o=e[a];if(t(o))return o}},n.findPreviousWhere=function(e,t,n){null==n&&(n=e.length);for(var a=n-1;a>=0;a--){var o=e[a];if(t(o))return o}},n.inherits=function(e){var t=this,a=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},o=function(){this.constructor=a};return o.prototype=t.prototype,a.prototype=new o,a.extend=n.inherits,e&&n.extend(a.prototype,e),a.__super__=t.prototype,a},n.noop=function(){},n.uid=(t=0,function(){return t++}),n.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},n.almostEquals=function(e,t,n){return Math.abs(e-t)<n},n.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},n.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},n.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},n.log10=Math.log10?function(e){return Math.log10(e)}:function(e){return Math.log(e)/Math.LN10},n.toRadians=function(e){return e*(Math.PI/180)},n.toDegrees=function(e){return e*(180/Math.PI)},n.getAngleFromPoint=function(e,t){var n=t.x-e.x,a=t.y-e.y,o=Math.sqrt(n*n+a*a),r=Math.atan2(a,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:o}},n.aliasPixel=function(e){return e%2==0?0:.5},n.splineCurve=function(e,t,n,a){var o=e.skip?t:e,r=t,i=n.skip?t:n,s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),l=Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2)),c=s/(s+l),u=l/(s+l),d=a*(c=isNaN(c)?0:c),f=a*(u=isNaN(u)?0:u);return{previous:{x:r.x-d*(i.x-o.x),y:r.y-d*(i.y-o.y)},next:{x:r.x+f*(i.x-o.x),y:r.y+f*(i.y-o.y)}}},n.EPSILON=Number.EPSILON||1e-14,n.splineCurveMonotone=function(e){var t,a,o,r,i,s,l,c,u,d=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),f=d.length;for(t=0;t<f;++t)(o=d[t]).model.skip||(a=t>0?d[t-1]:null,(r=t<f-1?d[t+1]:null)&&!r.model.skip&&(o.deltaK=(r.model.y-o.model.y)/(r.model.x-o.model.x)),!a||a.model.skip?o.mK=o.deltaK:!r||r.model.skip?o.mK=a.deltaK:this.sign(a.deltaK)!==this.sign(o.deltaK)?o.mK=0:o.mK=(a.deltaK+o.deltaK)/2);for(t=0;t<f-1;++t)o=d[t],r=d[t+1],o.model.skip||r.model.skip||(n.almostEquals(o.deltaK,0,this.EPSILON)?o.mK=r.mK=0:(i=o.mK/o.deltaK,s=r.mK/o.deltaK,(c=Math.pow(i,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(c),o.mK=i*l*o.deltaK,r.mK=s*l*o.deltaK)));for(t=0;t<f;++t)(o=d[t]).model.skip||(a=t>0?d[t-1]:null,r=t<f-1?d[t+1]:null,a&&!a.model.skip&&(u=(o.model.x-a.model.x)/3,o.model.controlPointPreviousX=o.model.x-u,o.model.controlPointPreviousY=o.model.y-u*o.mK),r&&!r.model.skip&&(u=(r.model.x-o.model.x)/3,o.model.controlPointNextX=o.model.x+u,o.model.controlPointNextY=o.model.y+u*o.mK))},n.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},n.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},n.niceNum=function(e,t){var a=Math.floor(n.log10(e)),o=e/Math.pow(10,a);return(t?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,a)};var o=n.easingEffects={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-1*e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1*((e=e/1-1)*e*e+1)},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-1*((e=e/1-1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return 1*(e/=1)*e*e*e*e},easeOutQuint:function(e){return 1*((e=e/1-1)*e*e*e*e+1)},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return-1*Math.cos(e/1*(Math.PI/2))+1},easeOutSine:function(e){return 1*Math.sin(e/1*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e/1)-1)},easeInExpo:function(e){return 0===e?1:1*Math.pow(2,10*(e/1-1))},easeOutExpo:function(e){return 1===e?1:1*(1-Math.pow(2,-10*e/1))},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 e>=1?e:-1*(Math.sqrt(1-(e/=1)*e)-1)},easeOutCirc:function(e){return 1*Math.sqrt(1-(e=e/1-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,a=1;return 0===e?0:1==(e/=1)?1:(n||(n=.3),a<Math.abs(1)?(a=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(e-=1))*Math.sin((1*e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,a=1;return 0===e?0:1==(e/=1)?1:(n||(n=.3),a<Math.abs(1)?(a=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*e)*Math.sin((1*e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,a=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.3*1.5*1),a<Math.abs(1)?(a=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/a),e<1?a*Math.pow(2,10*(e-=1))*Math.sin((1*e-t)*(2*Math.PI)/n)*-.5:a*Math.pow(2,-10*(e-=1))*Math.sin((1*e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return 1*(e/=1)*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return 1*((e=e/1-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)},easeInBounce:function(e){return 1-o.easeOutBounce(1-e)},easeOutBounce:function(e){return(e/=1)<1/2.75?7.5625*e*e*1:e<2/2.75?1*(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1*(7.5625*(e-=2.25/2.75)*e+.9375):1*(7.5625*(e-=2.625/2.75)*e+.984375)},easeInOutBounce:function(e){return e<.5?.5*o.easeInBounce(2*e):.5*o.easeOutBounce(2*e-1)+.5}};function r(e,t,n){var a;return"string"==typeof e?(a=parseInt(e,10),-1!==e.indexOf("%")&&(a=a/100*t.parentNode[n])):a=e,a}function i(e){return null!=e&&"none"!==e}function s(e,t,n){var a=document.defaultView,o=e.parentNode,s=a.getComputedStyle(e)[t],l=a.getComputedStyle(o)[t],c=i(s),u=i(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?r(s,e,n):d,u?r(l,o,n):d):"none"}n.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},n.cancelAnimFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return window.clearTimeout(e,1e3/60)},n.getRelativePosition=function(e,t){var a,o,r=e.originalEvent||e,i=e.currentTarget||e.srcElement,s=i.getBoundingClientRect(),l=r.touches;l&&l.length>0?(a=l[0].clientX,o=l[0].clientY):(a=r.clientX,o=r.clientY);var c=parseFloat(n.getStyle(i,"padding-left")),u=parseFloat(n.getStyle(i,"padding-top")),d=parseFloat(n.getStyle(i,"padding-right")),f=parseFloat(n.getStyle(i,"padding-bottom")),m=s.right-s.left-c-d,p=s.bottom-s.top-u-f;return{x:a=Math.round((a-s.left-c)/m*i.width/t.currentDevicePixelRatio),y:o=Math.round((o-s.top-u)/p*i.height/t.currentDevicePixelRatio)}},n.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},n.removeEvent=function(e,t,a){e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent?e.detachEvent("on"+t,a):e["on"+t]=n.noop},n.bindEvents=function(e,t,a){var o=e.events=e.events||{};n.each(t,(function(t){o[t]=function(){a.apply(e,arguments)},n.addEvent(e.chart.canvas,t,o[t])}))},n.unbindEvents=function(e,t){var a=e.chart.canvas;n.each(t,(function(e,t){n.removeEvent(a,t,e)}))},n.getConstraintWidth=function(e){return s(e,"max-width","clientWidth")},n.getConstraintHeight=function(e){return s(e,"max-height","clientHeight")},n.getMaximumWidth=function(e){var t=e.parentNode,a=parseInt(n.getStyle(t,"padding-left"),10),o=parseInt(n.getStyle(t,"padding-right"),10),r=t.clientWidth-a-o,i=n.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},n.getMaximumHeight=function(e){var t=e.parentNode,a=parseInt(n.getStyle(t,"padding-top"),10),o=parseInt(n.getStyle(t,"padding-bottom"),10),r=t.clientHeight-a-o,i=n.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},n.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},n.retinaScale=function(e){var t=e.ctx,n=e.canvas,a=n.width,o=n.height,r=e.currentDevicePixelRatio=window.devicePixelRatio||1;1!==r&&(n.height=o*r,n.width=a*r,t.scale(r,r),e.originalDevicePixelRatio=e.originalDevicePixelRatio||r),n.style.width=a+"px",n.style.height=o+"px"},n.clear=function(e){e.ctx.clearRect(0,0,e.width,e.height)},n.fontString=function(e,t,n){return t+" "+e+"px "+n},n.longestText=function(e,t,a,o){var r=(o=o||{}).data=o.data||{},i=o.garbageCollect=o.garbageCollect||[];o.font!==t&&(r=o.data={},i=o.garbageCollect=[],o.font=t),e.font=t;var s=0;n.each(a,(function(t){null!=t&&!0!==n.isArray(t)?s=n.measureText(e,r,i,s,t):n.isArray(t)&&n.each(t,(function(t){null==t||n.isArray(t)||(s=n.measureText(e,r,i,s,t))}))}));var l=i.length/2;if(l>a.length){for(var c=0;c<l;c++)delete r[i[c]];i.splice(0,l)}return s},n.measureText=function(e,t,n,a,o){var r=t[o];return r||(r=t[o]=e.measureText(o).width,n.push(o)),r>a&&(a=r),a},n.numberOfLabelLines=function(e){var t=1;return n.each(e,(function(e){n.isArray(e)&&e.length>t&&(t=e.length)})),t},n.drawRoundedRectangle=function(e,t,n,a,o,r){e.beginPath(),e.moveTo(t+r,n),e.lineTo(t+a-r,n),e.quadraticCurveTo(t+a,n,t+a,n+r),e.lineTo(t+a,n+o-r),e.quadraticCurveTo(t+a,n+o,t+a-r,n+o),e.lineTo(t+r,n+o),e.quadraticCurveTo(t,n+o,t,n+o-r),e.lineTo(t,n+r),e.quadraticCurveTo(t,n,t+r,n),e.closePath()},n.color=function(t){return a?t instanceof CanvasGradient?a(e.defaults.global.defaultColor):a(t):(console.error("Color.js not found!"),t)},n.addResizeListener=function(e,t){var n=document.createElement("iframe"),a="chartjs-hidden-iframe";n.classlist?n.classlist.add(a):n.setAttribute("class",a),n.tabIndex=-1;var o=n.style;o.width="100%",o.display="block",o.border=0,o.height=0,o.margin=0,o.position="absolute",o.left=0,o.right=0,o.top=0,o.bottom=0,e.insertBefore(n,e.firstChild),(n.contentWindow||n).onresize=function(){if(t)return t()}},n.removeResizeListener=function(e){var t=e.querySelector(".chartjs-hidden-iframe");t&&t.parentNode.removeChild(t)},n.isArray=Array.isArray?function(e){return Array.isArray(e)}:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n.arrayEquals=function(e,t){var a,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(a=0,o=e.length;a<o;++a)if(r=e[a],i=t[a],r instanceof Array&&i instanceof Array){if(!n.arrayEquals(r,i))return!1}else if(r!==i)return!1;return!0},n.callCallback=function(e,t,n){e&&"function"==typeof e.call&&e.apply(n,t)},n.getHoverColor=function(e){return e instanceof CanvasPattern?e:n.color(e).saturate(.5).darken(.1).rgbString()}}},"./node_modules/chart.js/src/core/core.js":e=>{"use strict";e.exports=function(){var e=function(t,n){var a=this,o=e.helpers;return a.config=n||{data:{datasets:[]}},t.length&&t[0].getContext&&(t=t[0]),t.getContext&&(t=t.getContext("2d")),a.ctx=t,a.canvas=t.canvas,t.canvas.style.display=t.canvas.style.display||"block",a.width=t.canvas.width||parseInt(o.getStyle(t.canvas,"width"),10)||o.getMaximumWidth(t.canvas),a.height=t.canvas.height||parseInt(o.getStyle(t.canvas,"height"),10)||o.getMaximumHeight(t.canvas),a.aspectRatio=a.width/a.height,(isNaN(a.aspectRatio)||!1===isFinite(a.aspectRatio))&&(a.aspectRatio=void 0!==n.aspectRatio?n.aspectRatio:2),a.originalCanvasStyleWidth=t.canvas.style.width,a.originalCanvasStyleHeight=t.canvas.style.height,o.retinaScale(a),a.controller=new e.Controller(a),o.addResizeListener(t.canvas.parentNode,(function(){a.controller&&a.controller.config.options.responsive&&a.controller.resize()})),a.controller?a.controller:a};return e.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}}},e.Chart=e,e}},"./node_modules/chart.js/src/core/core.layoutService.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.layoutService={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),e.boxes.push(t)},removeBox:function(e,t){e.boxes&&e.boxes.splice(e.boxes.indexOf(t),1)},update:function(e,n,a){if(e){var o=t.where(e.boxes,(function(e){return"left"===e.options.position})),r=t.where(e.boxes,(function(e){return"right"===e.options.position})),i=t.where(e.boxes,(function(e){return"top"===e.options.position})),s=t.where(e.boxes,(function(e){return"bottom"===e.options.position})),l=t.where(e.boxes,(function(e){return"chartArea"===e.options.position}));i.sort((function(e,t){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)})),s.sort((function(e,t){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}));var c=n-0,u=a-0,d=u/2,f=(n-c/2)/(o.length+r.length),m=(a-d)/(i.length+s.length),p=c,g=u,h=[];t.each(o.concat(r,i,s),(function(e){var t,n=e.isHorizontal();n?(t=e.update(e.options.fullWidth?c:p,m),g-=t.height):(t=e.update(f,d),p-=t.width),h.push({horizontal:n,minSize:t,box:e})}));var _=0,b=0,y=0,v=0;t.each(o.concat(r),C),t.each(o,(function(e){_+=e.width})),t.each(r,(function(e){b+=e.width})),t.each(i.concat(s),C),t.each(i,(function(e){y+=e.height})),t.each(s,(function(e){v+=e.height})),t.each(o.concat(r),(function(e){var n=t.findNextWhere(h,(function(t){return t.box===e})),a={left:0,right:0,top:y,bottom:v};n&&e.update(n.minSize.width,g,a)})),_=0,b=0,y=0,v=0,t.each(o,(function(e){_+=e.width})),t.each(r,(function(e){b+=e.width})),t.each(i,(function(e){y+=e.height})),t.each(s,(function(e){v+=e.height}));var A=a-y-v,S=n-_-b;S===p&&A===g||(t.each(o,(function(e){e.height=A})),t.each(r,(function(e){e.height=A})),t.each(i,(function(e){e.options.fullWidth||(e.width=S)})),t.each(s,(function(e){e.options.fullWidth||(e.width=S)})),g=A,p=S);var w=0,E=0;t.each(o.concat(i),T),w+=p,E+=g,t.each(r,T),t.each(s,T),e.chartArea={left:_,top:y,right:_+p,bottom:y+g},t.each(l,(function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(p,g)}))}function C(e){var n=t.findNextWhere(h,(function(t){return t.box===e}));if(n)if(e.isHorizontal()){var a={left:_,right:b,top:0,bottom:0};e.update(e.options.fullWidth?c:p,u/2,a)}else e.update(n.minSize.width,g)}function T(e){e.isHorizontal()?(e.left=e.options.fullWidth?0:_,e.right=e.options.fullWidth?n-0:_+p,e.top=E,e.bottom=E+e.height,E=e.bottom):(e.left=w,e.right=w+e.width,e.top=y,e.bottom=y+g,w=e.right)}}}}},"./node_modules/chart.js/src/core/core.legend.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=t.noop;e.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(e,t){var n=t.datasetIndex,a=this.chart,o=a.getDatasetMeta(n);o.hidden=null===o.hidden?!a.data.datasets[n].hidden:null,a.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var n=e.data;return t.isArray(n.datasets)?n.datasets.map((function(n,a){return{text:n.label,fillStyle:t.isArray(n.backgroundColor)?n.backgroundColor[0]:n.backgroundColor,hidden:!e.isDatasetVisible(a),lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:n.borderWidth,strokeStyle:n.borderColor,pointStyle:n.pointStyle,datasetIndex:a}}),this):[]}}},e.Legend=e.Element.extend({initialize:function(e){t.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:n,update:function(e,t,n){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=n,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:n,beforeSetDimensions:n,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:n,beforeBuildLabels:n,buildLabels:function(){var e=this;e.legendItems=e.options.labels.generateLabels.call(e,e.chart),e.options.reverse&&e.legendItems.reverse()},afterBuildLabels:n,beforeFit:n,fit:function(){var n=this,a=n.options,o=a.labels,r=a.display,i=n.ctx,s=e.defaults.global,l=t.getValueOrDefault,c=l(o.fontSize,s.defaultFontSize),u=l(o.fontStyle,s.defaultFontStyle),d=l(o.fontFamily,s.defaultFontFamily),f=t.fontString(c,u,d),m=n.legendHitBoxes=[],p=n.minSize,g=n.isHorizontal();if(g?(p.width=n.maxWidth,p.height=r?10:0):(p.width=r?10:0,p.height=n.maxHeight),r)if(i.font=f,g){var h=n.lineWidths=[0],_=n.legendItems.length?c+o.padding:0;i.textAlign="left",i.textBaseline="top",t.each(n.legendItems,(function(e,t){var a=(o.usePointStyle?c*Math.sqrt(2):o.boxWidth)+c/2+i.measureText(e.text).width;h[h.length-1]+a+o.padding>=n.width&&(_+=c+o.padding,h[h.length]=n.left),m[t]={left:0,top:0,width:a,height:c},h[h.length-1]+=a+o.padding})),p.height+=_}else{var b=o.padding,y=n.columnWidths=[],v=o.padding,A=0,S=0,w=c+b;t.each(n.legendItems,(function(e,t){var n=(o.usePointStyle?2*o.boxWidth:o.boxWidth)+c/2+i.measureText(e.text).width;S+w>p.height&&(v+=A+o.padding,y.push(A),A=0,S=0),A=Math.max(A,n),S+=w,m[t]={left:0,top:0,width:n,height:c}})),v+=A,y.push(A),p.width+=v}n.width=p.width,n.height=p.height},afterFit:n,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var n=this,a=n.options,o=a.labels,r=e.defaults.global,i=r.elements.line,s=n.width,l=n.lineWidths;if(a.display){var c,u=n.ctx,d=t.getValueOrDefault,f=d(o.fontColor,r.defaultFontColor),m=d(o.fontSize,r.defaultFontSize),p=d(o.fontStyle,r.defaultFontStyle),g=d(o.fontFamily,r.defaultFontFamily),h=t.fontString(m,p,g);u.textAlign="left",u.textBaseline="top",u.lineWidth=.5,u.strokeStyle=f,u.fillStyle=f,u.font=h;var _=o.boxWidth,b=n.legendHitBoxes,y=n.isHorizontal();c=y?{x:n.left+(s-l[0])/2,y:n.top+o.padding,line:0}:{x:n.left+o.padding,y:n.top+o.padding,line:0};var v=m+o.padding;t.each(n.legendItems,(function(t,f){var p=u.measureText(t.text).width,g=o.usePointStyle?m+m/2+p:_+m/2+p,h=c.x,A=c.y;y?h+g>=s&&(A=c.y+=v,c.line++,h=c.x=n.left+(s-l[c.line])/2):A+v>n.bottom&&(h=c.x=h+n.columnWidths[c.line]+o.padding,A=c.y=n.top,c.line++),function(t,n,o){if(!(isNaN(_)||_<=0)){u.save(),u.fillStyle=d(o.fillStyle,r.defaultColor),u.lineCap=d(o.lineCap,i.borderCapStyle),u.lineDashOffset=d(o.lineDashOffset,i.borderDashOffset),u.lineJoin=d(o.lineJoin,i.borderJoinStyle),u.lineWidth=d(o.lineWidth,i.borderWidth),u.strokeStyle=d(o.strokeStyle,r.defaultColor);var s=0===d(o.lineWidth,i.borderWidth);if(u.setLineDash&&u.setLineDash(d(o.lineDash,i.borderDash)),a.labels&&a.labels.usePointStyle){var l=m*Math.SQRT2/2,c=l/Math.SQRT2,f=t+c,p=n+c;e.canvasHelpers.drawPoint(u,o.pointStyle,l,f,p)}else s||u.strokeRect(t,n,_,m),u.fillRect(t,n,_,m);u.restore()}}(h,A,t),b[f].left=h,b[f].top=A,function(e,t,n,a){u.fillText(n.text,_+m/2+e,t),n.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(_+m/2+e,t+m/2),u.lineTo(_+m/2+e+a,t+m/2),u.stroke())}(h,A,t,p),y?c.x+=g+o.padding:c.y+=v}))}},handleEvent:function(e){var n=this,a=n.options,o="mouseup"===e.type?"click":e.type;if("mousemove"===o){if(!a.onHover)return}else{if("click"!==o)return;if(!a.onClick)return}var r=t.getRelativePosition(e,n.chart.chart),i=r.x,s=r.y;if(i>=n.left&&i<=n.right&&s>=n.top&&s<=n.bottom)for(var l=n.legendHitBoxes,c=0;c<l.length;++c){var u=l[c];if(i>=u.left&&i<=u.left+u.width&&s>=u.top&&s<=u.top+u.height){if("click"===o){a.onClick.call(n,e,n.legendItems[c]);break}if("mousemove"===o){a.onHover.call(n,e,n.legendItems[c]);break}}}}}),e.plugins.register({beforeInit:function(t){var n=t.options.legend;n&&(t.legend=new e.Legend({ctx:t.chart.ctx,options:n,chart:t}),e.layoutService.addBox(t,t.legend))}})}},"./node_modules/chart.js/src/core/core.plugin.js":e=>{"use strict";e.exports=function(e){var t=e.helpers.noop;e.plugins={_plugins:[],register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)}))},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}))},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t){var n,a,o=this._plugins,r=o.length;for(n=0;n<r;++n)if("function"==typeof(a=o[n])[e]&&!1===a[e].apply(a,t||[]))return!1;return!0}},e.PluginBase=e.Element.extend({beforeInit:t,afterInit:t,beforeUpdate:t,afterUpdate:t,beforeDraw:t,afterDraw:t,destroy:t}),e.pluginService=e.plugins}},"./node_modules/chart.js/src/core/core.scale.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(e){return t.isArray(e)?e:""+e}}},e.Scale=e.Element.extend({beforeUpdate:function(){t.callCallback(this.options.beforeUpdate,[this])},update:function(e,n,a){var o=this;return o.beforeUpdate(),o.maxWidth=e,o.maxHeight=n,o.margins=t.extend({left:0,right:0,top:0,bottom:0},a),o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeDataLimits(),o.determineDataLimits(),o.afterDataLimits(),o.beforeBuildTicks(),o.buildTicks(),o.afterBuildTicks(),o.beforeTickToLabelConversion(),o.convertTicksToLabels(),o.afterTickToLabelConversion(),o.beforeCalculateTickRotation(),o.calculateTickRotation(),o.afterCalculateTickRotation(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:function(){t.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){t.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){t.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){t.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:t.noop,afterDataLimits:function(){t.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){t.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:t.noop,afterBuildTicks:function(){t.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){t.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this;e.ticks=e.ticks.map((function(t,n,a){return e.options.ticks.userCallback?e.options.ticks.userCallback(t,n,a):e.options.ticks.callback(t,n,a)}),e)},afterTickToLabelConversion:function(){t.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){t.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var n=this,a=n.ctx,o=e.defaults.global,r=n.options.ticks,i=t.getValueOrDefault(r.fontSize,o.defaultFontSize),s=t.getValueOrDefault(r.fontStyle,o.defaultFontStyle),l=t.getValueOrDefault(r.fontFamily,o.defaultFontFamily),c=t.fontString(i,s,l);a.font=c;var u,d=a.measureText(n.ticks[0]).width,f=a.measureText(n.ticks[n.ticks.length-1]).width;if(n.labelRotation=r.minRotation||0,n.paddingRight=0,n.paddingLeft=0,n.options.display&&n.isHorizontal()){n.paddingRight=f/2+3,n.paddingLeft=d/2+3,n.longestTextCache||(n.longestTextCache={});for(var m,p,g=t.longestText(a,c,n.ticks,n.longestTextCache),h=g,_=n.getPixelForTick(1)-n.getPixelForTick(0)-6;h>_&&n.labelRotation<r.maxRotation;){if(m=Math.cos(t.toRadians(n.labelRotation)),p=Math.sin(t.toRadians(n.labelRotation)),(u=m*d)+i/2>n.yLabelWidth&&(n.paddingLeft=u+i/2),n.paddingRight=i/2,p*g>n.maxHeight){n.labelRotation--;break}n.labelRotation++,h=m*g}}n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0))},afterCalculateTickRotation:function(){t.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){t.callCallback(this.options.beforeFit,[this])},fit:function(){var n=this,a=n.minSize={width:0,height:0},o=n.options,r=e.defaults.global,i=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=n.isHorizontal(),d=t.getValueOrDefault(i.fontSize,r.defaultFontSize),f=t.getValueOrDefault(i.fontStyle,r.defaultFontStyle),m=t.getValueOrDefault(i.fontFamily,r.defaultFontFamily),p=t.fontString(d,f,m),g=t.getValueOrDefault(s.fontSize,r.defaultFontSize),h=o.gridLines.tickMarkLength;if(a.width=u?n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:c&&l.drawTicks?h:0,a.height=u?c&&l.drawTicks?h:0:n.maxHeight,s.display&&c&&(u?a.height+=1.5*g:a.width+=1.5*g),i.display&&c){n.longestTextCache||(n.longestTextCache={});var _=t.longestText(n.ctx,p,n.ticks,n.longestTextCache),b=t.numberOfLabelLines(n.ticks),y=.5*d;if(u){n.longestLabelWidth=_;var v=Math.sin(t.toRadians(n.labelRotation))*n.longestLabelWidth+d*b+y*b;a.height=Math.min(n.maxHeight,a.height+v),n.ctx.font=p;var A=n.ctx.measureText(n.ticks[0]).width,S=n.ctx.measureText(n.ticks[n.ticks.length-1]).width,w=Math.cos(t.toRadians(n.labelRotation)),E=Math.sin(t.toRadians(n.labelRotation));n.paddingLeft=0!==n.labelRotation?w*A+3:A/2+3,n.paddingRight=0!==n.labelRotation?E*(d/2)+3:S/2+3}else{var C=n.maxWidth-a.width;i.mirror?_=0:_+=n.options.ticks.padding,_<C?a.width+=_:a.width=n.maxWidth,n.paddingTop=d/2,n.paddingBottom=d/2}}n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingTop=Math.max(n.paddingTop-n.margins.top,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0),n.paddingBottom=Math.max(n.paddingBottom-n.margins.bottom,0)),n.width=a.width,n.height=a.height},afterFit:function(){t.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){return null==e||"number"==typeof e&&isNaN(e)?NaN:"object"==typeof e?e instanceof Date||e.isValid?e:this.getRightValue(this.isHorizontal()?e.x:e.y):e},getLabelForIndex:t.noop,getPixelForValue:t.noop,getValueForPixel:t.noop,getPixelForTick:function(e,t){var n=this;if(n.isHorizontal()){var a=(n.width-(n.paddingLeft+n.paddingRight))/Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),o=a*e+n.paddingLeft;t&&(o+=a/2);var r=n.left+Math.round(o);return r+=n.isFullWidth()?n.margins.left:0}var i=n.height-(n.paddingTop+n.paddingBottom);return n.top+e*(i/(n.ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft,a=t.left+Math.round(n);return a+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){var e=this,t=e.min,n=e.max;return e.getPixelForValue(e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},draw:function(n){var a=this,o=a.options;if(o.display){var r,i,s=a.ctx,l=e.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,f=0!==a.labelRotation,m=c.autoSkip,p=a.isHorizontal();c.maxTicksLimit&&(i=c.maxTicksLimit);var g=t.getValueOrDefault(c.fontColor,l.defaultFontColor),h=t.getValueOrDefault(c.fontSize,l.defaultFontSize),_=t.getValueOrDefault(c.fontStyle,l.defaultFontStyle),b=t.getValueOrDefault(c.fontFamily,l.defaultFontFamily),y=t.fontString(h,_,b),v=u.tickMarkLength,A=t.getValueOrDefault(u.borderDash,l.borderDash),S=t.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),w=t.getValueOrDefault(d.fontColor,l.defaultFontColor),E=t.getValueOrDefault(d.fontSize,l.defaultFontSize),C=t.getValueOrDefault(d.fontStyle,l.defaultFontStyle),T=t.getValueOrDefault(d.fontFamily,l.defaultFontFamily),I=t.fontString(E,C,T),k=t.toRadians(a.labelRotation),D=Math.cos(k),x=a.longestLabelWidth*D;s.fillStyle=g;var M=[];if(p){if(r=!1,f&&(x/=2),(x+c.autoSkipPadding)*a.ticks.length>a.width-(a.paddingLeft+a.paddingRight)&&(r=1+Math.floor((x+c.autoSkipPadding)*a.ticks.length/(a.width-(a.paddingLeft+a.paddingRight)))),i&&a.ticks.length>i)for(;!r||a.ticks.length/(r||1)>i;)r||(r=1),r+=1;m||(r=!1)}var P="right"===o.position?a.left:a.right-v,O="right"===o.position?a.left+v:a.right,R="bottom"===o.position?a.top:a.bottom-v,N="bottom"===o.position?a.top+v:a.bottom;if(t.each(a.ticks,(function(e,i){if(null!=e){var s=a.ticks.length===i+1;if((!(r>1&&i%r>0||i%r==0&&i+r>=a.ticks.length)||s)&&null!=e){var l,d,m,g,h,_,b,y,w,E,C,T;i===(void 0!==a.zeroLineIndex?a.zeroLineIndex:0)?(l=u.zeroLineWidth,d=u.zeroLineColor):(l=t.getValueAtIndexOrDefault(u.lineWidth,i),d=t.getValueAtIndexOrDefault(u.color,i));var I="middle",D="middle";if(p){f||(D="top"===o.position?"bottom":"top"),I=f?"right":"center";var x=a.getPixelForTick(i)+t.aliasPixel(l);C=a.getPixelForTick(i,u.offsetGridLines)+c.labelOffset,T=f?a.top+12:"top"===o.position?a.bottom-v:a.top+v,m=h=b=w=x,g=R,_=N,y=n.top,E=n.bottom}else{"left"===o.position?c.mirror?(C=a.right+c.padding,I="left"):(C=a.right-c.padding,I="right"):c.mirror?(C=a.left-c.padding,I="right"):(C=a.left+c.padding,I="left");var L=a.getPixelForTick(i);L+=t.aliasPixel(l),T=a.getPixelForTick(i,u.offsetGridLines),m=P,h=O,b=n.left,w=n.right,g=_=y=E=L}M.push({tx1:m,ty1:g,tx2:h,ty2:_,x1:b,y1:y,x2:w,y2:E,labelX:C,labelY:T,glWidth:l,glColor:d,glBorderDash:A,glBorderDashOffset:S,rotation:-1*k,label:e,textBaseline:D,textAlign:I})}}})),t.each(M,(function(e){if(u.display&&(s.save(),s.lineWidth=e.glWidth,s.strokeStyle=e.glColor,s.setLineDash&&(s.setLineDash(e.glBorderDash),s.lineDashOffset=e.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(e.tx1,e.ty1),s.lineTo(e.tx2,e.ty2)),u.drawOnChartArea&&(s.moveTo(e.x1,e.y1),s.lineTo(e.x2,e.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(e.labelX,e.labelY),s.rotate(e.rotation),s.font=y,s.textBaseline=e.textBaseline,s.textAlign=e.textAlign;var n=e.label;if(t.isArray(n))for(var a=0,o=-(n.length-1)*h*.75;a<n.length;++a)s.fillText(""+n[a],0,o),o+=1.5*h;else s.fillText(n,0,0);s.restore()}})),d.display){var L,$,U=0;if(p)L=a.left+(a.right-a.left)/2,$="bottom"===o.position?a.bottom-E/2:a.top+E/2;else{var j="left"===o.position;L=j?a.left+E/2:a.right-E/2,$=a.top+(a.bottom-a.top)/2,U=j?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(L,$),s.rotate(U),s.textAlign="center",s.textBaseline="middle",s.fillStyle=w,s.font=I,s.fillText(d.labelString,0,0),s.restore()}if(u.drawBorder){s.lineWidth=t.getValueAtIndexOrDefault(u.lineWidth,0),s.strokeStyle=t.getValueAtIndexOrDefault(u.color,0);var F=a.left,q=a.right,Y=a.top,H=a.bottom,B=t.aliasPixel(s.lineWidth);p?(Y=H="top"===o.position?a.bottom:a.top,Y+=B,H+=B):(F=q="left"===o.position?a.right:a.left,F+=B,q+=B),s.beginPath(),s.moveTo(F,Y),s.lineTo(q,H),s.stroke()}}}})}},"./node_modules/chart.js/src/core/core.scaleService.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.scaleService={constructors:{},defaults:{},registerScaleType:function(e,n,a){this.constructors[e]=n,this.defaults[e]=t.clone(a)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(n){return this.defaults.hasOwnProperty(n)?t.scaleMerge(e.defaults.scale,this.defaults[n]):{}},updateScaleDefaults:function(e,n){var a=this.defaults;a.hasOwnProperty(e)&&(a[e]=t.extend(a[e],n))},addScalesToLayout:function(n){t.each(n.scales,(function(t){e.layoutService.addBox(n,t)}))}}}},"./node_modules/chart.js/src/core/core.title.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;e.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var n=t.noop;e.Title=e.Element.extend({initialize:function(n){var a=this;t.extend(a,n),a.options=t.configMerge(e.defaults.global.title,n.options),a.legendHitBoxes=[]},beforeUpdate:function(){var n=this.chart.options;n&&n.title&&(this.options=t.configMerge(e.defaults.global.title,n.title))},update:function(e,t,n){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=n,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:n,beforeSetDimensions:n,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:n,beforeBuildLabels:n,buildLabels:n,afterBuildLabels:n,beforeFit:n,fit:function(){var n=this,a=t.getValueOrDefault,o=n.options,r=e.defaults.global,i=o.display,s=a(o.fontSize,r.defaultFontSize),l=n.minSize;n.isHorizontal()?(l.width=n.maxWidth,l.height=i?s+2*o.padding:0):(l.width=i?s+2*o.padding:0,l.height=n.maxHeight),n.width=l.width,n.height=l.height},afterFit:n,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var n=this,a=n.ctx,o=t.getValueOrDefault,r=n.options,i=e.defaults.global;if(r.display){var s,l,c=o(r.fontSize,i.defaultFontSize),u=o(r.fontStyle,i.defaultFontStyle),d=o(r.fontFamily,i.defaultFontFamily),f=t.fontString(c,u,d),m=0,p=n.top,g=n.left,h=n.bottom,_=n.right;a.fillStyle=o(r.fontColor,i.defaultFontColor),a.font=f,n.isHorizontal()?(s=g+(_-g)/2,l=p+(h-p)/2):(s="left"===r.position?g+c/2:_-c/2,l=p+(h-p)/2,m=Math.PI*("left"===r.position?-.5:.5)),a.save(),a.translate(s,l),a.rotate(m),a.textAlign="center",a.textBaseline="middle",a.fillText(r.text,0,0),a.restore()}}}),e.plugins.register({beforeInit:function(t){var n=t.options.title;n&&(t.titleBlock=new e.Title({ctx:t.chart.ctx,options:n,chart:t}),e.layoutService.addBox(t,t.titleBlock))}})}},"./node_modules/chart.js/src/core/core.tooltip.js":e=>{"use strict";e.exports=function(e){var t=e.helpers;function n(e,n){return n&&(t.isArray(n)?Array.prototype.push.apply(e,n):e.push(n)),e}e.defaults.global.tooltips={enabled:!0,custom:null,mode:"single",backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,yAlign:"center",xAlign:"center",caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",callbacks:{beforeTitle:t.noop,title:function(e,t){var n="",a=t.labels,o=a?a.length:0;if(e.length>0){var r=e[0];r.xLabel?n=r.xLabel:o>0&&r.index<o&&(n=a[r.index])}return n},afterTitle:t.noop,beforeBody:t.noop,beforeLabel:t.noop,label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.yLabel},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},afterLabel:t.noop,afterBody:t.noop,beforeFooter:t.noop,footer:t.noop,afterFooter:t.noop}},e.Tooltip=e.Element.extend({initialize:function(){var n=e.defaults.global,a=this._options,o=t.getValueOrDefault;t.extend(this,{_model:{xPadding:a.xPadding,yPadding:a.yPadding,xAlign:a.xAlign,yAlign:a.yAlign,bodyFontColor:a.bodyFontColor,_bodyFontFamily:o(a.bodyFontFamily,n.defaultFontFamily),_bodyFontStyle:o(a.bodyFontStyle,n.defaultFontStyle),_bodyAlign:a.bodyAlign,bodyFontSize:o(a.bodyFontSize,n.defaultFontSize),bodySpacing:a.bodySpacing,titleFontColor:a.titleFontColor,_titleFontFamily:o(a.titleFontFamily,n.defaultFontFamily),_titleFontStyle:o(a.titleFontStyle,n.defaultFontStyle),titleFontSize:o(a.titleFontSize,n.defaultFontSize),_titleAlign:a.titleAlign,titleSpacing:a.titleSpacing,titleMarginBottom:a.titleMarginBottom,footerFontColor:a.footerFontColor,_footerFontFamily:o(a.footerFontFamily,n.defaultFontFamily),_footerFontStyle:o(a.footerFontStyle,n.defaultFontStyle),footerFontSize:o(a.footerFontSize,n.defaultFontSize),_footerAlign:a.footerAlign,footerSpacing:a.footerSpacing,footerMarginTop:a.footerMarginTop,caretSize:a.caretSize,cornerRadius:a.cornerRadius,backgroundColor:a.backgroundColor,opacity:0,legendColorBackground:a.multiKeyBackground}})},getTitle:function(){var e=this,t=e._options,a=t.callbacks,o=a.beforeTitle.apply(e,arguments),r=a.title.apply(e,arguments),i=a.afterTitle.apply(e,arguments),s=[];return s=n(s,o),s=n(s,r),s=n(s,i)},getBeforeBody:function(){var e=this._options.callbacks.beforeBody.apply(this,arguments);return t.isArray(e)?e:void 0!==e?[e]:[]},getBody:function(e,a){var o=this,r=o._options.callbacks,i=[];return t.each(e,(function(e){var t={before:[],lines:[],after:[]};n(t.before,r.beforeLabel.call(o,e,a)),n(t.lines,r.label.call(o,e,a)),n(t.after,r.afterLabel.call(o,e,a)),i.push(t)})),i},getAfterBody:function(){var e=this._options.callbacks.afterBody.apply(this,arguments);return t.isArray(e)?e:void 0!==e?[e]:[]},getFooter:function(){var e=this,t=e._options.callbacks,a=t.beforeFooter.apply(e,arguments),o=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),i=[];return i=n(i,a),i=n(i,o),i=n(i,r)},update:function(e){var n,a,o,r,i,s,l,c=this,u=c._options,d=c._model,f=c._active,m=c._data,p=c._chartInstance;if(f.length){d.opacity=1;var g=[],h=function(e){if(!e.length)return!1;var t,n,a=[],o=[];for(t=0,n=e.length;t<n;++t){var r=e[t];if(r&&r.hasValue()){var i=r.tooltipPosition();a.push(i.x),o.push(i.y)}}var s=0,l=0;for(t=0;t<a.length;++t)a[t]&&(s+=a[t],l+=o[t]);return{x:Math.round(s/a.length),y:Math.round(l/a.length)}}(f),_=[];for(n=0,a=f.length;n<a;++n)_.push((o=f[n],r=void 0,i=void 0,s=void 0,l=void 0,r=o._xScale,i=o._yScale||o._scale,s=o._index,l=o._datasetIndex,{xLabel:r?r.getLabelForIndex(s,l):"",yLabel:i?i.getLabelForIndex(s,l):"",index:s,datasetIndex:l}));u.itemSort&&(_=_.sort((function(e,t){return u.itemSort(e,t,m)}))),f.length>1&&t.each(_,(function(e){g.push(u.callbacks.labelColor.call(c,e,p))})),t.extend(d,{title:c.getTitle(_,m),beforeBody:c.getBeforeBody(_,m),body:c.getBody(_,m),afterBody:c.getAfterBody(_,m),footer:c.getFooter(_,m),x:Math.round(h.x),y:Math.round(h.y),caretPadding:t.getValueOrDefault(h.padding,2),labelColors:g});var b=c.getTooltipSize(d);c.determineAlignment(b),t.extend(d,c.getBackgroundPoint(d,b))}else c._model.opacity=0;return e&&u.custom&&u.custom.call(c,d),c},getTooltipSize:function(e){var n=this._chart.ctx,a={height:2*e.yPadding,width:0},o=e.body,r=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);r+=e.beforeBody.length+e.afterBody.length;var i=e.title.length,s=e.footer.length,l=e.titleFontSize,c=e.bodyFontSize,u=e.footerFontSize;a.height+=i*l,a.height+=(i-1)*e.titleSpacing,a.height+=i?e.titleMarginBottom:0,a.height+=r*c,a.height+=r?(r-1)*e.bodySpacing:0,a.height+=s?e.footerMarginTop:0,a.height+=s*u,a.height+=s?(s-1)*e.footerSpacing:0;var d=0,f=function(e){a.width=Math.max(a.width,n.measureText(e).width+d)};return n.font=t.fontString(l,e._titleFontStyle,e._titleFontFamily),t.each(e.title,f),n.font=t.fontString(c,e._bodyFontStyle,e._bodyFontFamily),t.each(e.beforeBody.concat(e.afterBody),f),d=o.length>1?c+2:0,t.each(o,(function(e){t.each(e.before,f),t.each(e.lines,f),t.each(e.after,f)})),d=0,n.font=t.fontString(u,e._footerFontStyle,e._footerFontFamily),t.each(e.footer,f),a.width+=2*e.xPadding,a},determineAlignment:function(e){var t,n,a,o,r,i=this,s=i._model,l=i._chart,c=i._chartInstance.chartArea;s.y<e.height?s.yAlign="top":s.y>l.height-e.height&&(s.yAlign="bottom");var u=(c.left+c.right)/2,d=(c.top+c.bottom)/2;"center"===s.yAlign?(t=function(e){return e<=u},n=function(e){return e>u}):(t=function(t){return t<=e.width/2},n=function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width>l.width},o=function(t){return t-e.width<0},r=function(e){return e<=d?"top":"bottom"},t(s.x)?(s.xAlign="left",a(s.x)&&(s.xAlign="center",s.yAlign=r(s.y))):n(s.x)&&(s.xAlign="right",o(s.x)&&(s.xAlign="center",s.yAlign=r(s.y)))},getBackgroundPoint:function(e,t){var n={x:e.x,y:e.y},a=e.caretSize,o=e.caretPadding,r=e.cornerRadius,i=e.xAlign,s=e.yAlign,l=a+o,c=r+o;return"right"===i?n.x-=t.width:"center"===i&&(n.x-=t.width/2),"top"===s?n.y+=l:n.y-="bottom"===s?t.height+l:t.height/2,"center"===s?"left"===i?n.x+=l:"right"===i&&(n.x-=l):"left"===i?n.x-=c:"right"===i&&(n.x+=c),n},drawCaret:function(e,n,a){var o,r,i,s,l,c,u=this._view,d=this._chart.ctx,f=u.caretSize,m=u.cornerRadius,p=u.xAlign,g=u.yAlign,h=e.x,_=e.y,b=n.width,y=n.height;"center"===g?("left"===p?(r=(o=h)-f,i=o):(r=(o=h+b)+f,i=o),s=(l=_+y/2)-f,c=l+f):("left"===p?i=(r=(o=h+m)+f)+f:"right"===p?i=(r=(o=h+b-m)-f)-f:(o=(r=h+b/2)-f,i=r+f),"top"===g?(l=(s=_)-f,c=s):(l=(s=_+y)+f,c=s));var v=t.color(u.backgroundColor);d.fillStyle=v.alpha(a*v.alpha()).rgbString(),d.beginPath(),d.moveTo(o,s),d.lineTo(r,l),d.lineTo(i,c),d.closePath(),d.fill()},drawTitle:function(e,n,a,o){var r=n.title;if(r.length){a.textAlign=n._titleAlign,a.textBaseline="top";var i,s,l=n.titleFontSize,c=n.titleSpacing,u=t.color(n.titleFontColor);for(a.fillStyle=u.alpha(o*u.alpha()).rgbString(),a.font=t.fontString(l,n._titleFontStyle,n._titleFontFamily),i=0,s=r.length;i<s;++i)a.fillText(r[i],e.x,e.y),e.y+=l+c,i+1===r.length&&(e.y+=n.titleMarginBottom-c)}},drawBody:function(e,n,a,o){var r=n.bodyFontSize,i=n.bodySpacing,s=n.body;a.textAlign=n._bodyAlign,a.textBaseline="top";var l=t.color(n.bodyFontColor),c=l.alpha(o*l.alpha()).rgbString();a.fillStyle=c,a.font=t.fontString(r,n._bodyFontStyle,n._bodyFontFamily);var u=0,d=function(t){a.fillText(t,e.x+u,e.y),e.y+=r+i};t.each(n.beforeBody,d);var f=s.length>1;u=f?r+2:0,t.each(s,(function(i,s){t.each(i.before,d),t.each(i.lines,(function(i){f&&(a.fillStyle=t.color(n.legendColorBackground).alpha(o).rgbaString(),a.fillRect(e.x,e.y,r,r),a.strokeStyle=t.color(n.labelColors[s].borderColor).alpha(o).rgbaString(),a.strokeRect(e.x,e.y,r,r),a.fillStyle=t.color(n.labelColors[s].backgroundColor).alpha(o).rgbaString(),a.fillRect(e.x+1,e.y+1,r-2,r-2),a.fillStyle=c),d(i)})),t.each(i.after,d)})),u=0,t.each(n.afterBody,d),e.y-=i},drawFooter:function(e,n,a,o){var r=n.footer;if(r.length){e.y+=n.footerMarginTop,a.textAlign=n._footerAlign,a.textBaseline="top";var i=t.color(n.footerFontColor);a.fillStyle=i.alpha(o*i.alpha()).rgbString(),a.font=t.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),t.each(r,(function(t){a.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))}},draw:function(){var e=this._chart.ctx,n=this._view;if(0!==n.opacity){var a=this.getTooltipSize(n),o={x:n.x,y:n.y},r=Math.abs(n.opacity<.001)?0:n.opacity;if(this._options.enabled){var i=t.color(n.backgroundColor);e.fillStyle=i.alpha(r*i.alpha()).rgbString(),t.drawRoundedRectangle(e,o.x,o.y,a.width,a.height,n.cornerRadius),e.fill(),this.drawCaret(o,a,r),o.x+=n.xPadding,o.y+=n.yPadding,this.drawTitle(o,n,e,r),this.drawBody(o,n,e,r),this.drawFooter(o,n,e,r)}}}})}},"./node_modules/chart.js/src/elements/element.arc.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=e.defaults.global;n.elements.arc={backgroundColor:n.defaultColor,borderColor:"#fff",borderWidth:2},e.elements.Arc=e.Element.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,n){var a=this._view;if(a){for(var o=t.getAngleFromPoint(a,{x:e,y:n}),r=o.angle,i=o.distance,s=a.startAngle,l=a.endAngle;l<s;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;r<s;)r+=2*Math.PI;var c=r>=s&&r<=l,u=i>=a.innerRadius&&i<=a.outerRadius;return c&&u}return!1},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,a=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,a),e.arc(t.x,t.y,t.innerRadius,a,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})}},"./node_modules/chart.js/src/elements/element.line.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=e.defaults.global;e.defaults.global.elements.line={tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},e.elements.Line=e.Element.extend({draw:function(){var e=this,a=e._view,o=a.spanGaps,r=a.scaleZero,i=e._loop,s=e._chart.ctx;function l(e,t){var n=t._view;!0===t._view.steppedLine?(s.lineTo(n.x,e._view.y),s.lineTo(n.x,n.y)):0===t._view.tension?s.lineTo(n.x,n.y):s.bezierCurveTo(e._view.controlPointNextX,e._view.controlPointNextY,n.controlPointPreviousX,n.controlPointPreviousY,n.x,n.y)}s.save();var c,u,d,f,m=e._children.slice(),p=-1;if(i&&m.length&&m.push(m[0]),m.length&&a.fill){for(s.beginPath(),c=0;c<m.length;++c)u=m[c],d=t.previousItem(m,c),f=u._view,0===c?(i?s.moveTo(r.x,r.y):s.moveTo(f.x,r),f.skip||(p=c,s.lineTo(f.x,f.y))):(d=-1===p?d:m[p],f.skip?o||p!==c-1||(i?s.lineTo(r.x,r.y):s.lineTo(d._view.x,r)):(p!==c-1?o&&-1!==p?l(d,u):(i||s.lineTo(f.x,r),s.lineTo(f.x,f.y)):l(d,u),p=c));i||-1===p||s.lineTo(m[p]._view.x,r),s.fillStyle=a.backgroundColor||n.defaultColor,s.closePath(),s.fill()}var g=n.elements.line;for(s.lineCap=a.borderCapStyle||g.borderCapStyle,s.setLineDash&&s.setLineDash(a.borderDash||g.borderDash),s.lineDashOffset=a.borderDashOffset||g.borderDashOffset,s.lineJoin=a.borderJoinStyle||g.borderJoinStyle,s.lineWidth=a.borderWidth||g.borderWidth,s.strokeStyle=a.borderColor||n.defaultColor,s.beginPath(),p=-1,c=0;c<m.length;++c)u=m[c],d=t.previousItem(m,c),f=u._view,0===c?f.skip||(s.moveTo(f.x,f.y),p=c):(d=-1===p?d:m[p],f.skip||(p!==c-1&&!o||-1===p?s.moveTo(f.x,f.y):l(d,u),p=c));s.stroke(),s.restore()}})}},"./node_modules/chart.js/src/elements/element.point.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=e.defaults.global,a=n.defaultColor;n.elements.point={radius:3,pointStyle:"circle",backgroundColor:a,borderWidth:1,borderColor:a,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},e.elements.Point=e.Element.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hitRadius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(){var o=this._view,r=this._chart.ctx,i=o.pointStyle,s=o.radius,l=o.x,c=o.y;o.skip||(r.strokeStyle=o.borderColor||a,r.lineWidth=t.getValueOrDefault(o.borderWidth,n.elements.point.borderWidth),r.fillStyle=o.backgroundColor||a,e.canvasHelpers.drawPoint(r,i,s,l,c))}})}},"./node_modules/chart.js/src/elements/element.rectangle.js":e=>{"use strict";e.exports=function(e){var t=e.defaults.global;t.elements.rectangle={backgroundColor:t.defaultColor,borderWidth:0,borderColor:t.defaultColor,borderSkipped:"bottom"},e.elements.Rectangle=e.Element.extend({draw:function(){var e=this._chart.ctx,t=this._view,n=t.width/2,a=t.x-n,o=t.x+n,r=t.base-(t.base-t.y),i=t.borderWidth/2;t.borderWidth&&(a+=i,o-=i,r+=i),e.beginPath(),e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth;var s=[[a,t.base],[a,r],[o,r],[o,t.base]],l=["bottom","left","top","right"].indexOf(t.borderSkipped,0);function c(e){return s[(l+e)%4]}-1===l&&(l=0),e.moveTo.apply(e,c(0));for(var u=1;u<4;u++)e.lineTo.apply(e,c(u));e.fill(),t.borderWidth&&e.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=this._view;return!!n&&(n.y<n.base?e>=n.x-n.width/2&&e<=n.x+n.width/2&&t>=n.y&&t<=n.base:e>=n.x-n.width/2&&e<=n.x+n.width/2&&t>=n.base&&t<=n.y)},inLabelRange:function(e){var t=this._view;return!!t&&(e>=t.x-t.width/2&&e<=t.x+t.width/2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})}},"./node_modules/chart.js/src/scales/scale.category.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=e.Scale.extend({getLabels:function(){var e=this.chart.data;return(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,n=this,a=n.getLabels();n.minIndex=0,n.maxIndex=a.length-1,void 0!==n.options.ticks.min&&(e=t.indexOf(a,n.options.ticks.min),n.minIndex=-1!==e?e:n.minIndex),void 0!==n.options.ticks.max&&(e=t.indexOf(a,n.options.ticks.max),n.maxIndex=-1!==e?e:n.maxIndex),n.min=a[n.minIndex],n.max=a[n.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,a=n.chart.data,o=n.isHorizontal();return a.xLabels&&o||a.yLabels&&!o?n.getRightValue(a.datasets[t].data[e]):n.ticks[e]},getPixelForValue:function(e,t,n,a){var o=this,r=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==e&&isNaN(t)){var i=o.getLabels().indexOf(e);t=-1!==i?i:t}if(o.isHorizontal()){var s=(o.width-(o.paddingLeft+o.paddingRight))/r,l=s*(t-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&a||o.maxIndex===o.minIndex&&a)&&(l+=s/2),o.left+Math.round(l)}var c=(o.height-(o.paddingTop+o.paddingBottom))/r,u=c*(t-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&a&&(u+=c/2),o.top+Math.round(u)},getPixelForTick:function(e,t){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null,t)},getValueForPixel:function(e){var t=this,n=Math.max(t.ticks.length-(t.options.gridLines.offsetGridLines?0:1),1),a=t.isHorizontal(),o=(a?t.width-(t.paddingLeft+t.paddingRight):t.height-(t.paddingTop+t.paddingBottom))/n;return e-=a?t.left:t.top,t.options.gridLines.offsetGridLines&&(e-=o/2),(e-=a?t.paddingLeft:t.paddingTop)<=0?0:Math.round(e/o)},getBasePixel:function(){return this.bottom}});e.scaleService.registerScaleType("category",n,{position:"bottom"})}},"./node_modules/chart.js/src/scales/scale.linear.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n={position:"left",ticks:{callback:function(e,n,a){var o=a.length>3?a[2]-a[1]:a[1]-a[0];Math.abs(o)>1&&e!==Math.floor(e)&&(o=e-Math.floor(e));var r=t.log10(Math.abs(o)),i="";if(0!==e){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),i=e.toFixed(s)}else i="0";return i}}},a=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,n=e.options,a=e.chart,o=a.data.datasets,r=e.isHorizontal();function i(t){return r?t.xAxisID===e.id:t.yAxisID===e.id}if(e.min=null,e.max=null,n.stacked){var s={};t.each(o,(function(o,r){var l=a.getDatasetMeta(r);void 0===s[l.type]&&(s[l.type]={positiveValues:[],negativeValues:[]});var c=s[l.type].positiveValues,u=s[l.type].negativeValues;a.isDatasetVisible(r)&&i(l)&&t.each(o.data,(function(t,a){var o=+e.getRightValue(t);isNaN(o)||l.data[a].hidden||(c[a]=c[a]||0,u[a]=u[a]||0,n.relativePoints?c[a]=100:o<0?u[a]+=o:c[a]+=o)}))})),t.each(s,(function(n){var a=n.positiveValues.concat(n.negativeValues),o=t.min(a),r=t.max(a);e.min=null===e.min?o:Math.min(e.min,o),e.max=null===e.max?r:Math.max(e.max,r)}))}else t.each(o,(function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&i(r)&&t.each(n.data,(function(t,n){var a=+e.getRightValue(t);isNaN(a)||r.data[n].hidden||((null===e.min||a<e.min)&&(e.min=a),(null===e.max||a>e.max)&&(e.max=a))}))}));this.handleTickRangeOptions()},getTickLimit:function(){var n,a=this,o=a.options.ticks;if(a.isHorizontal())n=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(a.width/50));else{var r=t.getValueOrDefault(o.fontSize,e.defaults.global.defaultFontSize);n=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(a.height/(2*r)))}return n},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t,n,a=this,o=a.paddingLeft,r=a.paddingBottom,i=a.start,s=+a.getRightValue(e),l=a.end-i;return a.isHorizontal()?(n=a.width-(o+a.paddingRight),t=a.left+n/l*(s-i),Math.round(t+o)):(n=a.height-(a.paddingTop+r),t=a.bottom-r-n/l*(s-i),Math.round(t))},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),a=t.paddingLeft,o=t.paddingBottom,r=n?t.width-(a+t.paddingRight):t.height-(t.paddingTop+o),i=(n?e-t.left-a:t.bottom-o-e)/r;return t.start+(t.end-t.start)*i},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});e.scaleService.registerScaleType("linear",a,n)}},"./node_modules/chart.js/src/scales/scale.linearbase.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=t.noop;e.LinearScaleBase=e.Scale.extend({handleTickRangeOptions:function(){var e=this,n=e.options.ticks;if(n.beginAtZero){var a=t.sign(e.min),o=t.sign(e.max);a<0&&o<0?e.max=0:a>0&&o>0&&(e.min=0)}void 0!==n.min?e.min=n.min:void 0!==n.suggestedMin&&(e.min=Math.min(e.min,n.suggestedMin)),void 0!==n.max?e.max=n.max:void 0!==n.suggestedMax&&(e.max=Math.max(e.max,n.suggestedMax)),e.min===e.max&&(e.max++,n.beginAtZero||e.min--)},getTickLimit:n,handleDirectionalChanges:n,buildTicks:function(){var e,n=this,a=n.options,o=n.ticks=[],r=a.ticks,i=t.getValueOrDefault,s=n.getTickLimit();if(s=Math.max(2,s),r.fixedStepSize&&r.fixedStepSize>0||r.stepSize&&r.stepSize>0)e=i(r.fixedStepSize,r.stepSize);else{var l=t.niceNum(n.max-n.min,!1);e=t.niceNum(l/(s-1),!0)}var c=Math.floor(n.min/e)*e,u=Math.ceil(n.max/e)*e,d=(u-c)/e;d=t.almostEquals(d,Math.round(d),e/1e3)?Math.round(d):Math.ceil(d),o.push(void 0!==r.min?r.min:c);for(var f=1;f<d;++f)o.push(c+f*e);o.push(void 0!==r.max?r.max:u),n.handleDirectionalChanges(),n.max=t.max(o),n.min=t.min(o),r.reverse?(o.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(t)}})}},"./node_modules/chart.js/src/scales/scale.logarithmic.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n={position:"left",ticks:{callback:function(e,n,a){var o=e/Math.pow(10,Math.floor(t.log10(e)));return 0===e?"0":1===o||2===o||5===o||0===n||n===a.length-1?e.toExponential():""}}},a=e.Scale.extend({determineDataLimits:function(){var e=this,n=e.options,a=n.ticks,o=e.chart,r=o.data.datasets,i=t.getValueOrDefault,s=e.isHorizontal();function l(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}if(e.min=null,e.max=null,e.minNotZero=null,n.stacked){var c={};t.each(r,(function(a,r){var i=o.getDatasetMeta(r);o.isDatasetVisible(r)&&l(i)&&(void 0===c[i.type]&&(c[i.type]=[]),t.each(a.data,(function(t,a){var o=c[i.type],r=+e.getRightValue(t);isNaN(r)||i.data[a].hidden||(o[a]=o[a]||0,n.relativePoints?o[a]=100:o[a]+=r)})))})),t.each(c,(function(n){var a=t.min(n),o=t.max(n);e.min=null===e.min?a:Math.min(e.min,a),e.max=null===e.max?o:Math.max(e.max,o)}))}else t.each(r,(function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&l(r)&&t.each(n.data,(function(t,n){var a=+e.getRightValue(t);isNaN(a)||r.data[n].hidden||((null===e.min||a<e.min)&&(e.min=a),(null===e.max||a>e.max)&&(e.max=a),0!==a&&(null===e.minNotZero||a<e.minNotZero)&&(e.minNotZero=a))}))}));e.min=i(a.min,e.min),e.max=i(a.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(t.log10(e.min))-1),e.max=Math.pow(10,Math.floor(t.log10(e.max))+1)):(e.min=1,e.max=10))},buildTicks:function(){for(var e=this,n=e.options.ticks,a=t.getValueOrDefault,o=e.ticks=[],r=a(n.min,Math.pow(10,Math.floor(t.log10(e.min))));r<e.max;){var i,s;o.push(r),0===r?(i=Math.floor(t.log10(e.minNotZero)),s=Math.round(e.minNotZero/Math.pow(10,i))):(i=Math.floor(t.log10(r)),s=Math.floor(r/Math.pow(10,i))+1),10===s&&(s=1,++i),r=s*Math.pow(10,i)}var l=a(n.max,r);o.push(l),e.isHorizontal()||o.reverse(),e.max=t.max(o),e.min=t.min(o),n.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),e.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},getPixelForValue:function(e){var n,a,o,r=this,i=r.start,s=+r.getRightValue(e),l=r.paddingTop,c=r.paddingBottom,u=r.paddingLeft,d=r.options.ticks;return r.isHorizontal()?(o=t.log10(r.end)-t.log10(i),0===s?a=r.left+u:(n=r.width-(u+r.paddingRight),a=r.left+n/o*(t.log10(s)-t.log10(i)),a+=u)):(n=r.height-(l+c),0!==i||d.reverse?0===r.end&&d.reverse?(o=t.log10(r.start)-t.log10(r.minNotZero),a=s===r.end?r.top+l:s===r.minNotZero?r.top+l+.02*n:r.top+l+.02*n+.98*n/o*(t.log10(s)-t.log10(r.minNotZero))):(o=t.log10(r.end)-t.log10(i),n=r.height-(l+c),a=r.bottom-c-n/o*(t.log10(s)-t.log10(i))):(o=t.log10(r.end)-t.log10(r.minNotZero),a=s===i?r.bottom-c:s===r.minNotZero?r.bottom-c-.02*n:r.bottom-c-.02*n-.98*n/o*(t.log10(s)-t.log10(r.minNotZero)))),a},getValueForPixel:function(e){var n,a,o=this,r=t.log10(o.end)-t.log10(o.start);return o.isHorizontal()?(a=o.width-(o.paddingLeft+o.paddingRight),n=o.start*Math.pow(10,(e-o.left-o.paddingLeft)*r/a)):(a=o.height-(o.paddingTop+o.paddingBottom),n=Math.pow(10,(o.bottom-o.paddingBottom-e)*r/a)/o.start),n}});e.scaleService.registerScaleType("logarithmic",a,n)}},"./node_modules/chart.js/src/scales/scale.radialLinear.js":e=>{"use strict";e.exports=function(e){var t=e.helpers,n=e.defaults.global,a=e.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length},setDimensions:function(){var e=this,a=e.options,o=a.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var r=t.min([e.height,e.width]),i=t.getValueOrDefault(o.fontSize,n.defaultFontSize);e.drawingArea=a.display?r/2-(i/2+o.backdropPaddingY):r/2},determineDataLimits:function(){var e=this,n=e.chart;e.min=null,e.max=null,t.each(n.data.datasets,(function(a,o){if(n.isDatasetVisible(o)){var r=n.getDatasetMeta(o);t.each(a.data,(function(t,n){var a=+e.getRightValue(t);isNaN(a)||r.data[n].hidden||((null===e.min||a<e.min)&&(e.min=a),(null===e.max||a>e.max)&&(e.max=a))}))}})),e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,a=t.getValueOrDefault(e.fontSize,n.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*a)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e,a,o,r,i,s,l,c,u,d,f,m,p=this.options.pointLabels,g=t.getValueOrDefault(p.fontSize,n.defaultFontSize),h=t.getValueOrDefault(p.fontStyle,n.defaultFontStyle),_=t.getValueOrDefault(p.fontFamily,n.defaultFontFamily),b=t.fontString(g,h,_),y=t.min([this.height/2-g-5,this.width/2]),v=this.width,A=0;for(this.ctx.font=b,a=0;a<this.getValueCount();a++){e=this.getPointPosition(a,y),o=this.ctx.measureText(this.pointLabels[a]?this.pointLabels[a]:"").width+5;var S=360*(this.getIndexAngle(a)+Math.PI/2)/(2*Math.PI)%360;0===S||180===S?(r=o/2,e.x+r>v&&(v=e.x+r,i=a),e.x-r<A&&(A=e.x-r,l=a)):S<180?e.x+o>v&&(v=e.x+o,i=a):e.x-o<A&&(A=e.x-o,l=a)}u=A,d=Math.ceil(v-this.width),s=this.getIndexAngle(i),c=this.getIndexAngle(l),f=d/Math.sin(s+Math.PI/2),m=u/Math.sin(c+Math.PI/2),f=t.isNumber(f)?f:0,m=t.isNumber(m)?m:0,this.drawingArea=Math.round(y-(m+f)/2),this.setCenterPoint(m,f)},setCenterPoint:function(e,t){var n=this,a=n.width-t-n.drawingArea,o=e+n.drawingArea;n.xCenter=Math.round((o+a)/2+n.left),n.yCenter=Math.round(n.height/2+n.top)},getIndexAngle:function(e){var t=2*Math.PI/this.getValueCount(),n=(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360;return e*t-Math.PI/2+n},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,a=n.getIndexAngle(e);return{x:Math.round(Math.cos(a)*t)+n.xCenter,y:Math.round(Math.sin(a)*t)+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this,t=e.min,n=e.max;return e.getPointPositionForValue(0,e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},draw:function(){var e=this,a=e.options,o=a.gridLines,r=a.ticks,i=a.angleLines,s=a.pointLabels,l=t.getValueOrDefault;if(a.display){var c=e.ctx,u=l(r.fontSize,n.defaultFontSize),d=l(r.fontStyle,n.defaultFontStyle),f=l(r.fontFamily,n.defaultFontFamily),m=t.fontString(u,d,f);if(t.each(e.ticks,(function(i,s){if(s>0||a.reverse){var d=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]),f=e.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=t.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=t.getValueAtIndexOrDefault(o.lineWidth,s-1),a.lineArc)c.beginPath(),c.arc(e.xCenter,e.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p<e.getValueCount();p++){var g=e.getPointPosition(p,d);0===p?c.moveTo(g.x,g.y):c.lineTo(g.x,g.y)}c.closePath(),c.stroke()}if(r.display){var h=l(r.fontColor,n.defaultFontColor);if(c.font=m,r.showLabelBackdrop){var _=c.measureText(i).width;c.fillStyle=r.backdropColor,c.fillRect(e.xCenter-_/2-r.backdropPaddingX,f-u/2-r.backdropPaddingY,_+2*r.backdropPaddingX,u+2*r.backdropPaddingY)}c.textAlign="center",c.textBaseline="middle",c.fillStyle=h,c.fillText(i,e.xCenter,f)}}})),!a.lineArc){c.lineWidth=i.lineWidth,c.strokeStyle=i.color;for(var p=e.getDistanceFromCenterForValue(a.reverse?e.min:e.max),g=l(s.fontSize,n.defaultFontSize),h=l(s.fontStyle,n.defaultFontStyle),_=l(s.fontFamily,n.defaultFontFamily),b=t.fontString(g,h,_),y=e.getValueCount()-1;y>=0;y--){if(i.display){var v=e.getPointPosition(y,p);c.beginPath(),c.moveTo(e.xCenter,e.yCenter),c.lineTo(v.x,v.y),c.stroke(),c.closePath()}var A=e.getPointPosition(y,p+5),S=l(s.fontColor,n.defaultFontColor);c.font=b,c.fillStyle=S;var w=e.pointLabels,E=360*(this.getIndexAngle(y)+Math.PI/2)/(2*Math.PI)%360;c.textAlign=0===E||180===E?"center":E<180?"left":"right",c.textBaseline=90===E||270===E?"middle":E>270||E<90?"bottom":"top",c.fillText(w[y]?w[y]:"",A.x,A.y)}}}}});e.scaleService.registerScaleType("radialLinear",a,{display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2},pointLabels:{fontSize:10,callback:function(e){return e}}})}},"./node_modules/chart.js/src/scales/scale.time.js":(e,t,n)=>{"use strict";var a=n("./node_modules/moment/moment.js"),o=n("./node_modules/moment/moment.js");o="function"==typeof o?o:a,e.exports=function(e){var t=e.helpers,n={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a=e.Scale.extend({initialize:function(){if(!o)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");e.Scale.prototype.initialize.call(this)},getLabelMoment:function(e,t){return null===e||null===t?null:void 0!==this.labelMoments[e]?this.labelMoments[e][t]:null},getLabelDiff:function(e,t){var n=this;return null===e||null===t?null:(void 0===n.labelDiffs&&n.buildLabelDiffs(),void 0!==n.labelDiffs[e]?n.labelDiffs[e][t]:null)},getMomentStartOf:function(e){var t=this;return"week"===t.options.time.unit&&!1!==t.options.time.isoWeekday?e.clone().startOf("isoWeek").isoWeekday(t.options.time.isoWeekday):e.clone().startOf(t.tickUnit)},determineDataLimits:function(){var e=this;e.labelMoments=[];var n=[];e.chart.data.labels&&e.chart.data.labels.length>0?(t.each(e.chart.data.labels,(function(t){var a=e.parseTime(t);a.isValid()&&(e.options.time.round&&a.startOf(e.options.time.round),n.push(a))}),e),e.firstTick=o.min.call(e,n),e.lastTick=o.max.call(e,n)):(e.firstTick=null,e.lastTick=null),t.each(e.chart.data.datasets,(function(a,r){var i=[],s=e.chart.isDatasetVisible(r);"object"==typeof a.data[0]&&null!==a.data[0]?t.each(a.data,(function(t){var n=e.parseTime(e.getRightValue(t));n.isValid()&&(e.options.time.round&&n.startOf(e.options.time.round),i.push(n),s&&(e.firstTick=null!==e.firstTick?o.min(e.firstTick,n):n,e.lastTick=null!==e.lastTick?o.max(e.lastTick,n):n))}),e):i=n,e.labelMoments.push(i)}),e),e.options.time.min&&(e.firstTick=e.parseTime(e.options.time.min)),e.options.time.max&&(e.lastTick=e.parseTime(e.options.time.max)),e.firstTick=(e.firstTick||o()).clone(),e.lastTick=(e.lastTick||o()).clone()},buildLabelDiffs:function(){var e=this;e.labelDiffs=[];var n=[];e.chart.data.labels&&e.chart.data.labels.length>0&&t.each(e.chart.data.labels,(function(t){var a=e.parseTime(t);a.isValid()&&(e.options.time.round&&a.startOf(e.options.time.round),n.push(a.diff(e.firstTick,e.tickUnit,!0)))}),e),t.each(e.chart.data.datasets,(function(a){var o=[];"object"==typeof a.data[0]&&null!==a.data[0]?t.each(a.data,(function(t){var n=e.parseTime(e.getRightValue(t));n.isValid()&&(e.options.time.round&&n.startOf(e.options.time.round),o.push(n.diff(e.firstTick,e.tickUnit,!0)))}),e):o=n,e.labelDiffs.push(o)}),e)},buildTicks:function(){var a=this;a.ctx.save();var o,r=t.getValueOrDefault(a.options.ticks.fontSize,e.defaults.global.defaultFontSize),i=t.getValueOrDefault(a.options.ticks.fontStyle,e.defaults.global.defaultFontStyle),s=t.getValueOrDefault(a.options.ticks.fontFamily,e.defaults.global.defaultFontFamily),l=t.fontString(r,i,s);if(a.ctx.font=l,a.ticks=[],a.unitScale=1,a.scaleSizeInUnits=0,a.options.time.unit)a.tickUnit=a.options.time.unit||"day",a.displayFormat=a.options.time.displayFormats[a.tickUnit],a.scaleSizeInUnits=a.lastTick.diff(a.firstTick,a.tickUnit,!0),a.unitScale=t.getValueOrDefault(a.options.time.unitStepSize,1);else{var c=a.isHorizontal()?a.width-(a.paddingLeft+a.paddingRight):a.height-(a.paddingTop+a.paddingBottom),u=a.tickFormatFunction(a.firstTick,0,[]),d=a.ctx.measureText(u).width,f=c/(d=d*Math.cos(t.toRadians(a.options.ticks.maxRotation))+r*Math.sin(t.toRadians(a.options.ticks.maxRotation)));a.tickUnit=a.options.time.minUnit,a.scaleSizeInUnits=a.lastTick.diff(a.firstTick,a.tickUnit,!0),a.displayFormat=a.options.time.displayFormats[a.tickUnit];for(var m=0,p=n.units[m];m<n.units.length;){if(a.unitScale=1,t.isArray(p.steps)&&Math.ceil(a.scaleSizeInUnits/f)<t.max(p.steps)){for(var g=0;g<p.steps.length;++g)if(p.steps[g]>=Math.ceil(a.scaleSizeInUnits/f)){a.unitScale=t.getValueOrDefault(a.options.time.unitStepSize,p.steps[g]);break}break}if(!1===p.maxStep||Math.ceil(a.scaleSizeInUnits/f)<p.maxStep){a.unitScale=t.getValueOrDefault(a.options.time.unitStepSize,Math.ceil(a.scaleSizeInUnits/f));break}++m,p=n.units[m],a.tickUnit=p.name;var h=a.firstTick.diff(a.getMomentStartOf(a.firstTick),a.tickUnit,!0),_=a.getMomentStartOf(a.lastTick.clone().add(1,a.tickUnit)).diff(a.lastTick,a.tickUnit,!0);a.scaleSizeInUnits=a.lastTick.diff(a.firstTick,a.tickUnit,!0)+h+_,a.displayFormat=a.options.time.displayFormats[p.name]}}if(a.options.time.min?o=a.getMomentStartOf(a.firstTick):(a.firstTick=a.getMomentStartOf(a.firstTick),o=a.firstTick),!a.options.time.max){var b=a.getMomentStartOf(a.lastTick),y=b.diff(a.lastTick,a.tickUnit,!0);y<0?a.lastTick=a.getMomentStartOf(a.lastTick.add(1,a.tickUnit)):y>=0&&(a.lastTick=b),a.scaleSizeInUnits=a.lastTick.diff(a.firstTick,a.tickUnit,!0)}a.options.time.displayFormat&&(a.displayFormat=a.options.time.displayFormat),a.ticks.push(a.firstTick.clone());for(var v=1;v<=a.scaleSizeInUnits;++v){var A=o.clone().add(v,a.tickUnit);if(a.options.time.max&&A.diff(a.lastTick,a.tickUnit,!0)>=0)break;v%a.unitScale==0&&a.ticks.push(A)}0===a.ticks[a.ticks.length-1].diff(a.lastTick,a.tickUnit)&&0!==a.scaleSizeInUnits||(a.options.time.max?(a.ticks.push(a.lastTick.clone()),a.scaleSizeInUnits=a.lastTick.diff(a.ticks[0],a.tickUnit,!0)):(a.ticks.push(a.lastTick.clone()),a.scaleSizeInUnits=a.lastTick.diff(a.firstTick,a.tickUnit,!0))),a.ctx.restore(),a.labelDiffs=void 0},getLabelForIndex:function(e,t){var n=this,a=n.chart.data.labels&&e<n.chart.data.labels.length?n.chart.data.labels[e]:"";return"object"==typeof n.chart.data.datasets[t].data[0]&&(a=n.getRightValue(n.chart.data.datasets[t].data[e])),n.options.time.tooltipFormat&&(a=n.parseTime(a).format(n.options.time.tooltipFormat)),a},tickFormatFunction:function(e,n,a){var o=e.format(this.displayFormat),r=this.options.ticks,i=t.getValueOrDefault(r.callback,r.userCallback);return i?i(o,n,a):o},convertTicksToLabels:function(){var e=this;e.tickMoments=e.ticks,e.ticks=e.ticks.map(e.tickFormatFunction,e)},getPixelForValue:function(e,t,n){var a=this,o=null;if(void 0!==t&&void 0!==n&&(o=a.getLabelDiff(n,t)),null===o&&(e&&e.isValid||(e=a.parseTime(a.getRightValue(e))),e&&e.isValid&&e.isValid()&&(o=e.diff(a.firstTick,a.tickUnit,!0))),null!==o){var r=0!==o?o/a.scaleSizeInUnits:o;if(a.isHorizontal()){var i=(a.width-(a.paddingLeft+a.paddingRight))*r+a.paddingLeft;return a.left+Math.round(i)}var s=(a.height-(a.paddingTop+a.paddingBottom))*r+a.paddingTop;return a.top+Math.round(s)}},getPixelForTick:function(e){return this.getPixelForValue(this.tickMoments[e],null,null)},getValueForPixel:function(e){var t=this,n=t.isHorizontal()?t.width-(t.paddingLeft+t.paddingRight):t.height-(t.paddingTop+t.paddingBottom),a=(e-(t.isHorizontal()?t.left+t.paddingLeft:t.top+t.paddingTop))/n;return a*=t.scaleSizeInUnits,t.firstTick.clone().add(o.duration(a,t.tickUnit).asSeconds(),"seconds")},parseTime:function(e){var t=this;return"string"==typeof t.options.time.parser?o(e,t.options.time.parser):"function"==typeof t.options.time.parser?t.options.time.parser(e):"function"==typeof e.getMonth||"number"==typeof e?o(e):e.isValid&&e.isValid()?e:"string"!=typeof t.options.time.format&&t.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),t.options.time.format(e)):o(e,t.options.time.format)}});e.scaleService.registerScaleType("time",a,{position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},"./node_modules/chartjs-color-string/color-string.js":(e,t,n)=>{var a=n("./node_modules/color-name/index.js");function o(e){if(e){var t=[0,0,0],n=1,o=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(o){r=(o=o[1])[3];for(var i=0;i<t.length;i++)t[i]=parseInt(o[i]+o[i],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(o=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){r=o[2],o=o[1];for(i=0;i<t.length;i++)t[i]=parseInt(o.slice(2*i,2*i+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(o=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(i=0;i<t.length;i++)t[i]=parseInt(o[i+1]);n=parseFloat(o[4])}else if(o=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(i=0;i<t.length;i++)t[i]=Math.round(2.55*parseFloat(o[i+1]));n=parseFloat(o[4])}else if(o=e.match(/(\w+)/)){if("transparent"==o[1])return[0,0,0,0];if(!(t=a[o[1]]))return}for(i=0;i<t.length;i++)t[i]=u(t[i],0,255);return n=n||0==n?u(n,0,1):1,t[3]=n,t}}function r(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[u(parseInt(t[1]),0,360),u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function i(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[u(parseInt(t[1]),0,360),u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function c(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function u(e,t,n){return Math.min(Math.max(t,e),n)}function d(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:o,getHsla:r,getRgb:function(e){var t=o(e);return t&&t.slice(0,3)},getHsl:function(e){var t=r(e);return t&&t.slice(0,3)},getHwb:i,getAlpha:function(e){var t=o(e);if(t)return t[3];if(t=r(e))return t[3];if(t=i(e))return t[3]},hexString:function(e,t){t=void 0!==t&&3===e.length?t:e[3];return"#"+d(e[0])+d(e[1])+d(e[2])+(t>=0&&t<1?d(Math.round(255*t)):"")},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return s(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return l(e,t);var n=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),o=Math.round(e[2]/255*100);return"rgb("+n+"%, "+a+"%, "+o+"%)"},percentaString:l,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return c(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:c,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return f[e.slice(0,3)]}};var f={};for(var m in a)f[a[m]]=m},"./node_modules/chartjs-color/index.js":(e,t,n)=>{var a=n("./node_modules/color-convert/index.js"),o=n("./node_modules/chartjs-color-string/color-string.js"),r=function(e){return e instanceof r?e:this instanceof r?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=o.getRgba(e))?this.setValues("rgb",t):(t=o.getHsla(e))?this.setValues("hsl",t):(t=o.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new r(e);var t};r.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return o.hexString(this.values.rgb)},rgbString:function(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var a=e[n]/255;t[n]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,a=e,o=void 0===t?.5:t,r=2*o-1,i=n.alpha()-a.alpha(),s=((r*i==-1?r:(r+i)/(1+r*i))+1)/2,l=1-s;return this.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue()).alpha(n.alpha()*o+a.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new r,a=this.values,o=n.values;for(var i in a)a.hasOwnProperty(i)&&(e=a[i],"[object Array]"===(t={}.toString.call(e))?o[i]=e.slice(0):"[object Number]"===t?o[i]=e:console.error("unexpected color value:",e));return n}},r.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(e){for(var t=this.values,n={},a=0;a<e.length;a++)n[e.charAt(a)]=t[e][a];return 1!==t.alpha&&(n.a=t.alpha),n},r.prototype.setValues=function(e,t){var n,o,r=this.values,i=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)r[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[i[e][0]]){var c=i[e];for(n=0;n<e.length;n++)r[e][n]=t[c[n]];l=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)o=Math.max(0,Math.min(s[e][n],r[e][n])),r[e][n]=Math.round(o);for(var u in i)u!==e&&(r[u]=a[e][u](r[e]));return!0},r.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},r.prototype.setChannel=function(e,t,n){var a=this.values[e];return void 0===n?a[t]:(n===a[t]||(a[t]=n,this.setValues(e,a)),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},"./node_modules/clipboard/dist/clipboard.js":function(e){var t;t=function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},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=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var a=window.getSelection(),o=document.createRange();o.selectNodeContents(e),a.removeAllRanges(),a.addRange(o),t=a.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var a=this;function o(){a.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),a=0,o=n.length;a<o;a++)n[a].fn.apply(n[a].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),a=n[e],o=[];if(a&&t)for(var r=0,i=a.length;r<i;r++)a[r].fn!==t&&a[r].fn._!==t&&o.push(a[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var a=n(3),o=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!a.string(t))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(a.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(a.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var a=n(5);function o(e,t,n,a,o){var i=r.apply(this,arguments);return e.addEventListener(n,i,o),{destroy:function(){e.removeEventListener(n,i,o)}}}function r(e,t,n,o){return function(n){n.delegateTarget=a(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,a,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,a,r)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),l=n(1),c=n.n(l),u=n(2),d=n.n(u),f="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},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=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.__proto__||Object.getPrototypeOf(t)).call(this));return a.resolveOptions(n),a.listenClick(e),a}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),m(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=d()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(c.a);function g(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=p}]).default},e.exports=t()},"./node_modules/color-convert/conversions.js":(e,t,n)=>{var a=n("./node_modules/color-name/index.js"),o={};for(var r in a)a.hasOwnProperty(r)&&(o[a[r]]=r);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in i)if(i.hasOwnProperty(s)){if(!("channels"in i[s]))throw new Error("missing channels property: "+s);if(!("labels"in i[s]))throw new Error("missing channel labels property: "+s);if(i[s].labels.length!==i[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=i[s].channels,c=i[s].labels;delete i[s].channels,delete i[s].labels,Object.defineProperty(i[s],"channels",{value:l}),Object.defineProperty(i[s],"labels",{value:c})}i.rgb.hsl=function(e){var t,n,a=e[0]/255,o=e[1]/255,r=e[2]/255,i=Math.min(a,o,r),s=Math.max(a,o,r),l=s-i;return s===i?t=0:a===s?t=(o-r)/l:o===s?t=2+(r-a)/l:r===s&&(t=4+(a-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s===i?0:n<=.5?l/(s+i):l/(2-s-i)),100*n]},i.rgb.hsv=function(e){var t,n,a,o,r,i=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(i,s,l),u=c-Math.min(i,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?o=r=0:(r=u/c,t=d(i),n=d(s),a=d(l),i===c?o=a-n:s===c?o=1/3+t-a:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*r,100*c]},i.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[i.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,a=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-a,1-o)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,r,i,s=1/0;for(var l in a)if(a.hasOwnProperty(l)){var c=a[l],u=(r=e,i=c,Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2)+Math.pow(r[2]-i[2],2));u<s&&(s=u,n=l)}return n},i.keyword.rgb=function(e){return a[e]},i.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],a=t[1],o=t[2];return a/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},i.hsl.rgb=function(e){var t,n,a,o,r,i=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[r=255*l,r,r];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var c=0;c<3;c++)(a=i+1/3*-(c-1))<0&&a++,a>1&&a--,r=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,o[c]=255*r;return o},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,a=e[2]/100,o=n,r=Math.max(a,.01);return n*=(a*=2)<=1?a:2-a,o*=r<=1?r:2-r,[t,100*(0===a?2*o/(r+o):2*n/(a+n)),100*((a+n)/2)]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,r=t-Math.floor(t),i=255*a*(1-n),s=255*a*(1-n*r),l=255*a*(1-n*(1-r));switch(a*=255,o){case 0:return[a,l,i];case 1:return[s,a,i];case 2:return[i,a,l];case 3:return[i,s,a];case 4:return[l,i,a];case 5:return[a,i,s]}},i.hsv.hsl=function(e){var t,n,a,o=e[0],r=e[1]/100,i=e[2]/100,s=Math.max(i,.01);return a=(2-r)*i,n=r*s,[o,100*(n=(n/=(t=(2-r)*s)<=1?t:2-t)||0),100*(a/=2)]},i.hwb.rgb=function(e){var t,n,a,o,r,i,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),a=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(a=1-a),o=c+a*((n=1-u)-c),t){default:case 6:case 0:r=n,i=o,s=c;break;case 1:r=o,i=n,s=c;break;case 2:r=c,i=n,s=o;break;case 3:r=c,i=o,s=n;break;case 4:r=o,i=c,s=n;break;case 5:r=n,i=c,s=o}return[255*r,255*i,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,a=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,a*(1-o)+o))]},i.xyz.rgb=function(e){var t,n,a,o=e[0]/100,r=e[1]/100,i=e[2]/100;return n=-.9689*o+1.8758*r+.0415*i,a=.0557*o+-.204*r+1.057*i,t=(t=3.2406*o+-1.5372*r+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],a=e[2];return n/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.lab.xyz=function(e){var t,n,a,o=e[0];t=e[1]/500+(n=(o+16)/116),a=n-e[2]/200;var r=Math.pow(n,3),i=Math.pow(t,3),s=Math.pow(a,3);return n=r>.008856?r:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,[t*=95.047,n*=100,a*=108.883]},i.lab.lch=function(e){var t,n=e[0],a=e[1],o=e[2];return(t=360*Math.atan2(o,a)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(a*a+o*o),t]},i.lch.lab=function(e){var t,n=e[0],a=e[1];return t=e[2]/360*2*Math.PI,[n,a*Math.cos(t),a*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],o=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var r=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(r+=60),r},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],a=e[2];return t===n&&n===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},i.rgb.hcg=function(e){var t,n=e[0]/255,a=e[1]/255,o=e[2]/255,r=Math.max(Math.max(n,a),o),i=Math.min(Math.min(n,a),o),s=r-i;return t=s<=0?0:r===n?(a-o)/s%6:r===a?2+(o-n)/s:4+(n-a)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?i/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=1,o=0;return(a=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*a)/(1-a)),[e[0],100*a,100*o]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=t*n,o=0;return a<1&&(o=(n-a)/(1-a)),[e[0],100*a,100*o]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];var o,r=[0,0,0],i=t%1*6,s=i%1,l=1-s;switch(Math.floor(i)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return o=(1-n)*a,[255*(n*r[0]+o),255*(n*r[1]+o),255*(n*r[2]+o)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,a=n-t,o=0;return a<1&&(o=(n-a)/(1-a)),[e[0],100*a,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},"./node_modules/color-convert/index.js":(e,t,n)=>{var a=n("./node_modules/color-convert/conversions.js"),o=n("./node_modules/color-convert/route.js"),r={};Object.keys(a).forEach((function(e){r[e]={},Object.defineProperty(r[e],"channels",{value:a[e].channels}),Object.defineProperty(r[e],"labels",{value:a[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var a=t[n];r[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var a=n.length,o=0;o<a;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(a),r[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))})),e.exports=r},"./node_modules/color-convert/route.js":(e,t,n)=>{var a=n("./node_modules/color-convert/conversions.js");function o(e){var t=function(){for(var e={},t=Object.keys(a),n=t.length,o=0;o<n;o++)e[t[o]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var o=n.pop(),r=Object.keys(a[o]),i=r.length,s=0;s<i;s++){var l=r[s],c=t[l];-1===c.distance&&(c.distance=t[o].distance+1,c.parent=o,n.unshift(l))}return t}function r(e,t){return function(n){return t(e(n))}}function i(e,t){for(var n=[t[e].parent,e],o=a[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),o=r(a[t[i].parent][i],o),i=t[i].parent;return o.conversion=n,o}e.exports=function(e){for(var t=o(e),n={},a=Object.keys(t),r=a.length,s=0;s<r;s++){var l=a[s];null!==t[l].parent&&(n[l]=i(l,t))}return n}},"./node_modules/color-name/index.js":e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},"./node_modules/component-emitter/index.js":e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,a=this._callbacks["$"+e];if(!a)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<a.length;o++)if((n=a[o])===t||n.fn===t){a.splice(o,1);break}return 0===a.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(n){a=0;for(var o=(n=n.slice(0)).length;a<o;++a)n[a].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},"./node_modules/detectrtc/DetectRTC.js":(e,t,n)=>{"use strict";var a;!function(){var o,r="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";if(S="object"==typeof process&&"object"==typeof process.versions&&process.versions.node&&!process.browser){var i=process.versions.node.toString().replace("v","");r="Nodejs/"+i+" (NodeOS) AppleWebKit/"+i+" (KHTML, like Gecko) Nodejs/"+i+" Nodejs/"+i}o=void 0!==n.g?n.g:window,"undefined"==typeof window&&("undefined"==typeof window&&void 0!==n.g&&(n.g.navigator={userAgent:r,getUserMedia:function(){}},o.window=n.g),"undefined"==typeof location&&(o.location={protocol:"file:",href:"",hash:""}),"undefined"==typeof screen&&(o.screen={width:0,height:0}));var s=window.navigator;void 0!==s?(void 0!==s.webkitGetUserMedia&&(s.getUserMedia=s.webkitGetUserMedia),void 0!==s.mozGetUserMedia&&(s.getUserMedia=s.mozGetUserMedia)):s={getUserMedia:function(){},userAgent:r};var l=!!/Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(s.userAgent||""),c=!(-1===s.userAgent.indexOf("Edge")||!s.msSaveOrOpenBlob&&!s.msSaveBlob),u=!!window.opera||s.userAgent.indexOf(" OPR/")>=0,d=s.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(s.userAgent),f=/^((?!chrome|android).)*safari/i.test(s.userAgent),m=!!window.chrome&&!u,p="undefined"!=typeof document&&!!document.documentMode&&!c;function g(e,t){var n=0,a=!1,o=window.setInterval((function(){e()&&(window.clearInterval(o),t(a)),n++>50&&(window.clearInterval(o),t(a=!0))}),10)}var h={Android:function(){return s.userAgent.match(/Android/i)},BlackBerry:function(){return s.userAgent.match(/BlackBerry|BB10/i)},iOS:function(){return s.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return s.userAgent.match(/Opera Mini/i)},Windows:function(){return s.userAgent.match(/IEMobile/i)},any:function(){return h.Android()||h.BlackBerry()||h.iOS()||h.Opera()||h.Windows()},getOsName:function(){var e="Unknown OS";return h.Android()&&(e="Android"),h.BlackBerry()&&(e="BlackBerry"),h.iOS()&&(e="iOS"),h.Opera()&&(e="Opera Mini"),h.Windows()&&(e="Windows"),e}};var _="Unknown OS",b="Unknown OS Version";var y,v,A=function(){for(var e,t=s.appVersion,n=s.userAgent,a="-",o=[{s:"Chrome OS",r:/CrOS/},{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}],r=0;e=o[r];r++)if(e.r.test(n)){a=e.s;break}var i="-";switch(/Windows/.test(a)&&(/Windows (.*)/.test(a)&&(i=/Windows (.*)/.exec(a)[1]),a="Windows"),a){case"Mac OS X":/Mac OS X (10[\.\_\d]+)/.test(n)&&(i=/Mac OS X (10[\.\_\d]+)/.exec(n)[1]);break;case"Android":/Android ([\.\_\d]+)/.test(n)&&(i=/Android ([\.\_\d]+)/.exec(n)[1]);break;case"iOS":/OS (\d+)_(\d+)_?(\d+)?/.test(n)&&(i=/OS (\d+)_(\d+)_?(\d+)?/.exec(t))&&i.length>3&&(i=i[1]+"."+i[2]+"."+(0|i[3]))}return{osName:a,osVersion:i}}();A&&A.osName&&"-"!=A.osName?(_=A.osName,b=A.osVersion):h.any()&&"Android"==(_=h.getOsName())&&(b=!!(v=(y=(y||s.userAgent).toLowerCase()).match(/android\s([0-9\.]*)/))&&v[1]);var S="object"==typeof process&&"object"==typeof process.versions&&process.versions.node;"Unknown OS"===_&&S&&(_="Nodejs",b=process.versions.node.toString().replace("v",""));var w=!1,E=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach((function(e){"undefined"!=typeof document&&"function"==typeof document.createElement&&(!w&&e in document.createElement("canvas")&&(w=!0),!E&&e in document.createElement("video")&&(E=!0))}));var C=/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/,T=/([0-9]{1,3}(\.[0-9]{1,3}){3})/,I=/[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7}/;var k=[],D=[],x=[],M=[];s.mediaDevices&&s.mediaDevices.enumerateDevices&&(s.enumerateDevices=function(e){var t=s.mediaDevices.enumerateDevices();t&&t.then?s.mediaDevices.enumerateDevices().then(e).catch((function(){e([])})):e([])});var P=!1;("undefined"!=typeof MediaStreamTrack&&"getSources"in MediaStreamTrack||s.mediaDevices&&s.mediaDevices.enumerateDevices)&&(P=!0);var O=!1,R=!1,N=!1,L=!1,$=!1;function U(e){if(P)if(!s.enumerateDevices&&window.MediaStreamTrack&&window.MediaStreamTrack.getSources&&(s.enumerateDevices=window.MediaStreamTrack.getSources.bind(window.MediaStreamTrack)),!s.enumerateDevices&&s.enumerateDevices&&(s.enumerateDevices=s.enumerateDevices.bind(s)),s.enumerateDevices){k=[],D=[],x=[],M=[],O=!1,R=!1,N=!1,L=!1,$=!1;var t={};s.enumerateDevices((function(n){k=[],D=[],x=[],M=[],n.forEach((function(e){var n={};for(var a in e)try{"function"!=typeof e[a]&&(n[a]=e[a])}catch(e){}t[n.deviceId+n.label+n.kind]||("audio"===n.kind&&(n.kind="audioinput"),"video"===n.kind&&(n.kind="videoinput"),n.deviceId||(n.deviceId=n.id),n.id||(n.id=n.deviceId),n.label?("videoinput"!==n.kind||$||($=!0),"audioinput"!==n.kind||L||(L=!0)):(n.isCustomLabel=!0,"videoinput"===n.kind?n.label="Camera "+(M.length+1):"audioinput"===n.kind?n.label="Microphone "+(D.length+1):"audiooutput"===n.kind?n.label="Speaker "+(x.length+1):n.label="Please invoke getUserMedia once.",void 0!==j&&j.browser.isChrome&&j.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(n.label="HTTPs is required to get label of this "+n.kind+" device.")),"audioinput"===n.kind&&(O=!0,-1===D.indexOf(n)&&D.push(n)),"audiooutput"===n.kind&&(R=!0,-1===x.indexOf(n)&&x.push(n)),"videoinput"===n.kind&&(N=!0,-1===M.indexOf(n)&&M.push(n)),k.push(n),t[n.deviceId+n.label+n.kind]=n)})),void 0!==j&&(j.MediaDevices=k,j.hasMicrophone=O,j.hasSpeakers=R,j.hasWebcam=N,j.isWebsiteHasWebcamPermissions=$,j.isWebsiteHasMicrophonePermissions=L,j.audioInputDevices=D,j.audioOutputDevices=x,j.videoInputDevices=M),e&&e()}))}else e&&e();else e&&e()}var j=window.DetectRTC||{};j.browser=function(){s.appVersion;var e,t,n,a=s.userAgent,o=s.appName,r=""+parseFloat(s.appVersion),i=parseInt(s.appVersion,10);if(u){o="Opera";try{i=(r=s.userAgent.split("OPR/")[1].split(" ")[0]).split(".")[0]}catch(e){r="0.0.0.0",i=0}}else p?((t=a.indexOf("rv:"))>0?r=a.substring(t+3):(t=a.indexOf("MSIE"),r=a.substring(t+5)),o="IE"):m?(t=a.indexOf("Chrome"),o="Chrome",r=a.substring(t+7)):f?-1!==a.indexOf("CriOS")?(t=a.indexOf("CriOS"),o="Chrome",r=a.substring(t+6)):-1!==a.indexOf("FxiOS")?(t=a.indexOf("FxiOS"),o="Firefox",r=a.substring(t+6)):(t=a.indexOf("Safari"),o="Safari",r=a.substring(t+7),-1!==(t=a.indexOf("Version"))&&(r=a.substring(t+8)),-1!==s.userAgent.indexOf("Version/")&&(r=s.userAgent.split("Version/")[1].split(" ")[0])):d?(t=a.indexOf("Firefox"),o="Firefox",r=a.substring(t+8)):(e=a.lastIndexOf(" ")+1)<(t=a.lastIndexOf("/"))&&(o=a.substring(e,t),r=a.substring(t+1),o.toLowerCase()===o.toUpperCase()&&(o=s.appName));return c&&(o="Edge",r=s.userAgent.split("Edge/")[1]),-1!==(n=r.search(/[; \)]/))&&(r=r.substring(0,n)),i=parseInt(""+r,10),isNaN(i)&&(r=""+parseFloat(s.appVersion),i=parseInt(s.appVersion,10)),{fullVersion:r,version:i,name:o,isPrivateBrowsing:!1}}(),function(e){var t;try{if(window.webkitRequestFileSystem)window.webkitRequestFileSystem(window.TEMPORARY,1,(function(){t=!1}),(function(e){t=!0}));else if(window.indexedDB&&/Firefox/.test(window.navigator.userAgent)){var n;try{(n=window.indexedDB.open("test")).onerror=function(){return!0}}catch(e){t=!0}void 0===t&&g((function(){return"done"===n.readyState}),(function(e){e||(t=!n.result)}))}else if(function(e){var t=e.toLowerCase();if(0===t.indexOf("msie")&&0===t.indexOf("trident"))return!1;var n=/(?:msie|rv:)\s?([\d\.]+)/.exec(t);return!!(n&&parseInt(n[1],10)>=10)}(window.navigator.userAgent)){t=!1;try{window.indexedDB||(t=!0)}catch(e){t=!0}}else if(window.localStorage&&/Safari/.test(window.navigator.userAgent)){try{window.localStorage.setItem("test",1)}catch(e){t=!0}void 0===t&&(t=!1,window.localStorage.removeItem("test"))}}catch(e){t=!1}g((function(){return void 0!==t}),(function(n){e(t)}))}((function(e){j.browser.isPrivateBrowsing=!!e})),j.browser["is"+j.browser.name]=!0,j.osName=_,j.osVersion=b;"object"==typeof process&&"object"==typeof process.versions&&process.versions["node-webkit"];var F=!1;["RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","RTCIceGatherer"].forEach((function(e){F||e in window&&(F=!0)})),j.isWebRTCSupported=F,j.isORTCSupported="undefined"!=typeof RTCIceGatherer;var q=!1;((j.browser.isChrome&&j.browser.version>=35||j.browser.isFirefox&&j.browser.version>=34||j.browser.isEdge&&j.browser.version>=17||"Android"===j.osName&&j.browser.isChrome)&&(q=!0),(s.getDisplayMedia||s.mediaDevices&&s.mediaDevices.getDisplayMedia)&&(q=!0),/^(https:|chrome-extension:)$/g.test(location.protocol||""))||("undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(j.browser.isChrome||j.browser.isEdge||j.browser.isOpera)||j.browser.isFirefox)&&(q=!1);j.isScreenCapturingSupported=q;var Y={isSupported:!1,isCreateMediaStreamSourceSupported:!1};["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"].forEach((function(e){Y.isSupported||e in window&&(Y.isSupported=!0,window[e]&&"createMediaStreamSource"in window[e].prototype&&(Y.isCreateMediaStreamSourceSupported=!0))})),j.isAudioContextSupported=Y.isSupported,j.isCreateMediaStreamSourceSupported=Y.isCreateMediaStreamSourceSupported;var H=!1;j.browser.isChrome&&j.browser.version>31&&(H=!0),j.isRtpDataChannelsSupported=H;var B=!1;(j.browser.isFirefox&&j.browser.version>28||j.browser.isChrome&&j.browser.version>25||j.browser.isOpera&&j.browser.version>=11)&&(B=!0),j.isSctpDataChannelsSupported=B,j.isMobileDevice=l;var G=!1;(s.getUserMedia||s.mediaDevices&&s.mediaDevices.getUserMedia)&&(G=!0),j.browser.isChrome&&j.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(G="Requires HTTPs"),"Nodejs"===j.osName&&(G=!1),j.isGetUserMediaSupported=G;var V,W,Q,z="";screen.width&&(z+=(screen.width?screen.width:"")+" x "+(screen.height?screen.height:""));j.displayResolution=z,j.displayAspectRatio=(V=screen.width,W=screen.height,Q=function e(t,n){return 0==n?t:e(n,t%n)}(V,W),V/Q/(W/Q)).toFixed(2),j.isCanvasSupportsStreamCapturing=w,j.isVideoSupportsStreamCapturing=E,"Chrome"==j.browser.name&&j.browser.version>=53&&(j.isCanvasSupportsStreamCapturing||(j.isCanvasSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features"),j.isVideoSupportsStreamCapturing||(j.isVideoSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features")),j.DetectLocalIPAddress=function(e,t){if(j.isWebRTCSupported){var n=!0,a=!0;!function(e,t){if("undefined"==typeof document||"function"!=typeof document.getElementById)return;var n={},a=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;if(!a){var o=document.getElementById("iframe");if(!o)return;var r=o.contentWindow;a=r.RTCPeerConnection||r.mozRTCPeerConnection||r.webkitRTCPeerConnection}if(!a)return;var i=null;"Chrome"===j.browser&&j.browser.version<58&&(i={optional:[{RtpDataChannels:!0}]});var s=new a({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},i);t&&(s.addStream?s.addStream(t):s.addTrack&&t.getTracks()[0]&&s.addTrack(t.getTracks()[0],t));function l(t){if(t){var a=T.exec(t);if(a){var o=a[1],r=t.match(C),i=!0;void 0===n[o]&&e(o,r,i),n[o]=!0}}else e()}if(s.onicecandidate=function(e){e.candidate&&e.candidate.candidate?l(e.candidate.candidate):l()},!t)try{s.createDataChannel("sctp",{})}catch(e){}j.isPromisesSupported?s.createOffer().then((function(e){s.setLocalDescription(e).then(c)})):s.createOffer((function(e){s.setLocalDescription(e,c,(function(){}))}),(function(){}));function c(){s.localDescription.sdp.split("\n").forEach((function(e){e&&0===e.indexOf("a=candidate:")&&l(e)}))}}((function(t){t?t.match(C)?e("Local: "+t,n=!1,a):t.match(I)?e("Public: "+t,n,a=!1):e("Public: "+t,n,a):e()}),t)}},j.isWebSocketsSupported="WebSocket"in window&&2===window.WebSocket.CLOSING,j.isWebSocketsBlocked=!j.isWebSocketsSupported,"Nodejs"===j.osName&&(j.isWebSocketsSupported=!0,j.isWebSocketsBlocked=!1),j.checkWebSocketsSupport=function(e){e=e||function(){};try{var t,n=new WebSocket("wss://echo.websocket.org:443/");n.onopen=function(){j.isWebSocketsBlocked=!1,t=(new Date).getTime(),n.send("ping")},n.onmessage=function(){j.WebsocketLatency=(new Date).getTime()-t+"ms",e(),n.close(),n=null},n.onerror=function(){j.isWebSocketsBlocked=!0,e()}}catch(t){j.isWebSocketsBlocked=!0,e()}},j.load=function(e){U(e=e||function(){})},j.MediaDevices=void 0!==k?k:[],j.hasMicrophone=O,j.hasSpeakers=R,j.hasWebcam=N,j.isWebsiteHasWebcamPermissions=$,j.isWebsiteHasMicrophonePermissions=L,j.audioInputDevices=D,j.audioOutputDevices=x,j.videoInputDevices=M;var K=!1;"undefined"!=typeof document&&"function"==typeof document.createElement&&"setSinkId"in document.createElement("video")&&(K=!0),j.isSetSinkIdSupported=K;var J=!1;j.browser.isFirefox&&"undefined"!=typeof mozRTCPeerConnection?"getSenders"in mozRTCPeerConnection.prototype&&(J=!0):j.browser.isChrome&&"undefined"!=typeof webkitRTCPeerConnection&&"getSenders"in webkitRTCPeerConnection.prototype&&(J=!0),j.isRTPSenderReplaceTracksSupported=J;var X=!1;j.browser.isFirefox&&j.browser.version>38&&(X=!0),j.isRemoteStreamProcessingSupported=X;var Z=!1;"undefined"!=typeof MediaStreamTrack&&"applyConstraints"in MediaStreamTrack.prototype&&(Z=!0),j.isApplyConstraintsSupported=Z;var ee=!1;j.browser.isFirefox&&j.browser.version>=43&&(ee=!0),j.isMultiMonitorScreenCapturingSupported=ee,j.isPromisesSupported=!!("Promise"in window),j.version="1.4.1",void 0===j&&(window.DetectRTC={});var te=window.MediaStream;void 0===te&&"undefined"!=typeof webkitMediaStream&&(te=webkitMediaStream),j.MediaStream=void 0!==te&&"function"==typeof te&&Object.keys(te.prototype),"undefined"!=typeof MediaStreamTrack?j.MediaStreamTrack=Object.keys(MediaStreamTrack.prototype):j.MediaStreamTrack=!1;var ne=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;j.RTCPeerConnection=void 0!==ne&&Object.keys(ne.prototype),window.DetectRTC=j,e.exports=j,void 0===(a=function(){return j}.apply(t,[]))||(e.exports=a)}()},"./node_modules/emojione/lib/js/emojione.js":function(e){!function(e){e.emojioneList={":kiss_mm:":{uc_base:"1f468-2764-1f48b-1f468",uc_output:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",uc_match:"1f468-2764-fe0f-1f48b-1f468",uc_greedy:"1f468-2764-1f48b-1f468",shortnames:[":couplekiss_mm:"],category:"people"},":kiss_woman_man:":{uc_base:"1f469-2764-1f48b-1f468",uc_output:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",uc_match:"1f469-2764-fe0f-1f48b-1f468",uc_greedy:"1f469-2764-1f48b-1f468",shortnames:[],category:"people"},":kiss_ww:":{uc_base:"1f469-2764-1f48b-1f469",uc_output:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",uc_match:"1f469-2764-fe0f-1f48b-1f469",uc_greedy:"1f469-2764-1f48b-1f469",shortnames:[":couplekiss_ww:"],category:"people"},":england:":{uc_base:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",uc_output:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",uc_match:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",uc_greedy:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",shortnames:[],category:"flags"},":scotland:":{uc_base:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",uc_output:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",uc_match:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",uc_greedy:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",shortnames:[],category:"flags"},":wales:":{uc_base:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",uc_output:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",uc_match:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",uc_greedy:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",shortnames:[],category:"flags"},":family_mmbb:":{uc_base:"1f468-1f468-1f466-1f466",uc_output:"1f468-200d-1f468-200d-1f466-200d-1f466",uc_match:"1f468-1f468-1f466-1f466",uc_greedy:"1f468-1f468-1f466-1f466",shortnames:[],category:"people"},":family_mmgb:":{uc_base:"1f468-1f468-1f467-1f466",uc_output:"1f468-200d-1f468-200d-1f467-200d-1f466",uc_match:"1f468-1f468-1f467-1f466",uc_greedy:"1f468-1f468-1f467-1f466",shortnames:[],category:"people"},":family_mmgg:":{uc_base:"1f468-1f468-1f467-1f467",uc_output:"1f468-200d-1f468-200d-1f467-200d-1f467",uc_match:"1f468-1f468-1f467-1f467",uc_greedy:"1f468-1f468-1f467-1f467",shortnames:[],category:"people"},":family_mwbb:":{uc_base:"1f468-1f469-1f466-1f466",uc_output:"1f468-200d-1f469-200d-1f466-200d-1f466",uc_match:"1f468-1f469-1f466-1f466",uc_greedy:"1f468-1f469-1f466-1f466",shortnames:[],category:"people"},":family_mwgb:":{uc_base:"1f468-1f469-1f467-1f466",uc_output:"1f468-200d-1f469-200d-1f467-200d-1f466",uc_match:"1f468-1f469-1f467-1f466",uc_greedy:"1f468-1f469-1f467-1f466",shortnames:[],category:"people"},":family_mwgg:":{uc_base:"1f468-1f469-1f467-1f467",uc_output:"1f468-200d-1f469-200d-1f467-200d-1f467",uc_match:"1f468-1f469-1f467-1f467",uc_greedy:"1f468-1f469-1f467-1f467",shortnames:[],category:"people"},":family_wwbb:":{uc_base:"1f469-1f469-1f466-1f466",uc_output:"1f469-200d-1f469-200d-1f466-200d-1f466",uc_match:"1f469-1f469-1f466-1f466",uc_greedy:"1f469-1f469-1f466-1f466",shortnames:[],category:"people"},":family_wwgb:":{uc_base:"1f469-1f469-1f467-1f466",uc_output:"1f469-200d-1f469-200d-1f467-200d-1f466",uc_match:"1f469-1f469-1f467-1f466",uc_greedy:"1f469-1f469-1f467-1f466",shortnames:[],category:"people"},":family_wwgg:":{uc_base:"1f469-1f469-1f467-1f467",uc_output:"1f469-200d-1f469-200d-1f467-200d-1f467",uc_match:"1f469-1f469-1f467-1f467",uc_greedy:"1f469-1f469-1f467-1f467",shortnames:[],category:"people"},":couple_mm:":{uc_base:"1f468-2764-1f468",uc_output:"1f468-200d-2764-fe0f-200d-1f468",uc_match:"1f468-2764-fe0f-1f468",uc_greedy:"1f468-2764-1f468",shortnames:[":couple_with_heart_mm:"],category:"people"},":couple_with_heart_woman_man:":{uc_base:"1f469-2764-1f468",uc_output:"1f469-200d-2764-fe0f-200d-1f468",uc_match:"1f469-2764-fe0f-1f468",uc_greedy:"1f469-2764-1f468",shortnames:[],category:"people"},":couple_ww:":{uc_base:"1f469-2764-1f469",uc_output:"1f469-200d-2764-fe0f-200d-1f469",uc_match:"1f469-2764-fe0f-1f469",uc_greedy:"1f469-2764-1f469",shortnames:[":couple_with_heart_ww:"],category:"people"},":family_man_boy_boy:":{uc_base:"1f468-1f466-1f466",uc_output:"1f468-200d-1f466-200d-1f466",uc_match:"1f468-1f466-1f466",uc_greedy:"1f468-1f466-1f466",shortnames:[],category:"people"},":family_man_girl_boy:":{uc_base:"1f468-1f467-1f466",uc_output:"1f468-200d-1f467-200d-1f466",uc_match:"1f468-1f467-1f466",uc_greedy:"1f468-1f467-1f466",shortnames:[],category:"people"},":family_man_girl_girl:":{uc_base:"1f468-1f467-1f467",uc_output:"1f468-200d-1f467-200d-1f467",uc_match:"1f468-1f467-1f467",uc_greedy:"1f468-1f467-1f467",shortnames:[],category:"people"},":family_man_woman_boy:":{uc_base:"1f468-1f469-1f466",uc_output:"1f468-200d-1f469-200d-1f466",uc_match:"1f468-1f469-1f466",uc_greedy:"1f468-1f469-1f466",shortnames:[],category:"people"},":family_mmb:":{uc_base:"1f468-1f468-1f466",uc_output:"1f468-200d-1f468-200d-1f466",uc_match:"1f468-1f468-1f466",uc_greedy:"1f468-1f468-1f466",shortnames:[],category:"people"},":family_mmg:":{uc_base:"1f468-1f468-1f467",uc_output:"1f468-200d-1f468-200d-1f467",uc_match:"1f468-1f468-1f467",uc_greedy:"1f468-1f468-1f467",shortnames:[],category:"people"},":family_mwg:":{uc_base:"1f468-1f469-1f467",uc_output:"1f468-200d-1f469-200d-1f467",uc_match:"1f468-1f469-1f467",uc_greedy:"1f468-1f469-1f467",shortnames:[],category:"people"},":family_woman_boy_boy:":{uc_base:"1f469-1f466-1f466",uc_output:"1f469-200d-1f466-200d-1f466",uc_match:"1f469-1f466-1f466",uc_greedy:"1f469-1f466-1f466",shortnames:[],category:"people"},":family_woman_girl_boy:":{uc_base:"1f469-1f467-1f466",uc_output:"1f469-200d-1f467-200d-1f466",uc_match:"1f469-1f467-1f466",uc_greedy:"1f469-1f467-1f466",shortnames:[],category:"people"},":family_woman_girl_girl:":{uc_base:"1f469-1f467-1f467",uc_output:"1f469-200d-1f467-200d-1f467",uc_match:"1f469-1f467-1f467",uc_greedy:"1f469-1f467-1f467",shortnames:[],category:"people"},":family_wwb:":{uc_base:"1f469-1f469-1f466",uc_output:"1f469-200d-1f469-200d-1f466",uc_match:"1f469-1f469-1f466",uc_greedy:"1f469-1f469-1f466",shortnames:[],category:"people"},":family_wwg:":{uc_base:"1f469-1f469-1f467",uc_output:"1f469-200d-1f469-200d-1f467",uc_match:"1f469-1f469-1f467",uc_greedy:"1f469-1f469-1f467",shortnames:[],category:"people"},":blond-haired_man_tone1:":{uc_base:"1f471-1f3fb-2642",uc_output:"1f471-1f3fb-200d-2642-fe0f",uc_match:"1f471-1f3fb-2642-fe0f",uc_greedy:"1f471-1f3fb-2642",shortnames:[":blond-haired_man_light_skin_tone:"],category:"people"},":blond-haired_man_tone2:":{uc_base:"1f471-1f3fc-2642",uc_output:"1f471-1f3fc-200d-2642-fe0f",uc_match:"1f471-1f3fc-2642-fe0f",uc_greedy:"1f471-1f3fc-2642",shortnames:[":blond-haired_man_medium_light_skin_tone:"],category:"people"},":blond-haired_man_tone3:":{uc_base:"1f471-1f3fd-2642",uc_output:"1f471-1f3fd-200d-2642-fe0f",uc_match:"1f471-1f3fd-2642-fe0f",uc_greedy:"1f471-1f3fd-2642",shortnames:[":blond-haired_man_medium_skin_tone:"],category:"people"},":blond-haired_man_tone4:":{uc_base:"1f471-1f3fe-2642",uc_output:"1f471-1f3fe-200d-2642-fe0f",uc_match:"1f471-1f3fe-2642-fe0f",uc_greedy:"1f471-1f3fe-2642",shortnames:[":blond-haired_man_medium_dark_skin_tone:"],category:"people"},":blond-haired_man_tone5:":{uc_base:"1f471-1f3ff-2642",uc_output:"1f471-1f3ff-200d-2642-fe0f",uc_match:"1f471-1f3ff-2642-fe0f",uc_greedy:"1f471-1f3ff-2642",shortnames:[":blond-haired_man_dark_skin_tone:"],category:"people"},":blond-haired_woman_tone1:":{uc_base:"1f471-1f3fb-2640",uc_output:"1f471-1f3fb-200d-2640-fe0f",uc_match:"1f471-1f3fb-2640-fe0f",uc_greedy:"1f471-1f3fb-2640",shortnames:[":blond-haired_woman_light_skin_tone:"],category:"people"},":blond-haired_woman_tone2:":{uc_base:"1f471-1f3fc-2640",uc_output:"1f471-1f3fc-200d-2640-fe0f",uc_match:"1f471-1f3fc-2640-fe0f",uc_greedy:"1f471-1f3fc-2640",shortnames:[":blond-haired_woman_medium_light_skin_tone:"],category:"people"},":blond-haired_woman_tone3:":{uc_base:"1f471-1f3fd-2640",uc_output:"1f471-1f3fd-200d-2640-fe0f",uc_match:"1f471-1f3fd-2640-fe0f",uc_greedy:"1f471-1f3fd-2640",shortnames:[":blond-haired_woman_medium_skin_tone:"],category:"people"},":blond-haired_woman_tone4:":{uc_base:"1f471-1f3fe-2640",uc_output:"1f471-1f3fe-200d-2640-fe0f",uc_match:"1f471-1f3fe-2640-fe0f",uc_greedy:"1f471-1f3fe-2640",shortnames:[":blond-haired_woman_medium_dark_skin_tone:"],category:"people"},":blond-haired_woman_tone5:":{uc_base:"1f471-1f3ff-2640",uc_output:"1f471-1f3ff-200d-2640-fe0f",uc_match:"1f471-1f3ff-2640-fe0f",uc_greedy:"1f471-1f3ff-2640",shortnames:[":blond-haired_woman_dark_skin_tone:"],category:"people"},":eye_in_speech_bubble:":{uc_base:"1f441-1f5e8",uc_output:"1f441-fe0f-200d-1f5e8-fe0f",uc_match:"1f441-fe0f-200d-1f5e8",uc_greedy:"1f441-1f5e8",shortnames:[],category:"symbols"},":man_biking_tone1:":{uc_base:"1f6b4-1f3fb-2642",uc_output:"1f6b4-1f3fb-200d-2642-fe0f",uc_match:"1f6b4-1f3fb-2642-fe0f",uc_greedy:"1f6b4-1f3fb-2642",shortnames:[":man_biking_light_skin_tone:"],category:"activity"},":man_biking_tone2:":{uc_base:"1f6b4-1f3fc-2642",uc_output:"1f6b4-1f3fc-200d-2642-fe0f",uc_match:"1f6b4-1f3fc-2642-fe0f",uc_greedy:"1f6b4-1f3fc-2642",shortnames:[":man_biking_medium_light_skin_tone:"],category:"activity"},":man_biking_tone3:":{uc_base:"1f6b4-1f3fd-2642",uc_output:"1f6b4-1f3fd-200d-2642-fe0f",uc_match:"1f6b4-1f3fd-2642-fe0f",uc_greedy:"1f6b4-1f3fd-2642",shortnames:[":man_biking_medium_skin_tone:"],category:"activity"},":man_biking_tone4:":{uc_base:"1f6b4-1f3fe-2642",uc_output:"1f6b4-1f3fe-200d-2642-fe0f",uc_match:"1f6b4-1f3fe-2642-fe0f",uc_greedy:"1f6b4-1f3fe-2642",shortnames:[":man_biking_medium_dark_skin_tone:"],category:"activity"},":man_biking_tone5:":{uc_base:"1f6b4-1f3ff-2642",uc_output:"1f6b4-1f3ff-200d-2642-fe0f",uc_match:"1f6b4-1f3ff-2642-fe0f",uc_greedy:"1f6b4-1f3ff-2642",shortnames:[":man_biking_dark_skin_tone:"],category:"activity"},":man_bowing_tone1:":{uc_base:"1f647-1f3fb-2642",uc_output:"1f647-1f3fb-200d-2642-fe0f",uc_match:"1f647-1f3fb-2642-fe0f",uc_greedy:"1f647-1f3fb-2642",shortnames:[":man_bowing_light_skin_tone:"],category:"people"},":man_bowing_tone2:":{uc_base:"1f647-1f3fc-2642",uc_output:"1f647-1f3fc-200d-2642-fe0f",uc_match:"1f647-1f3fc-2642-fe0f",uc_greedy:"1f647-1f3fc-2642",shortnames:[":man_bowing_medium_light_skin_tone:"],category:"people"},":man_bowing_tone3:":{uc_base:"1f647-1f3fd-2642",uc_output:"1f647-1f3fd-200d-2642-fe0f",uc_match:"1f647-1f3fd-2642-fe0f",uc_greedy:"1f647-1f3fd-2642",shortnames:[":man_bowing_medium_skin_tone:"],category:"people"},":man_bowing_tone4:":{uc_base:"1f647-1f3fe-2642",uc_output:"1f647-1f3fe-200d-2642-fe0f",uc_match:"1f647-1f3fe-2642-fe0f",uc_greedy:"1f647-1f3fe-2642",shortnames:[":man_bowing_medium_dark_skin_tone:"],category:"people"},":man_bowing_tone5:":{uc_base:"1f647-1f3ff-2642",uc_output:"1f647-1f3ff-200d-2642-fe0f",uc_match:"1f647-1f3ff-2642-fe0f",uc_greedy:"1f647-1f3ff-2642",shortnames:[":man_bowing_dark_skin_tone:"],category:"people"},":man_cartwheeling_tone1:":{uc_base:"1f938-1f3fb-2642",uc_output:"1f938-1f3fb-200d-2642-fe0f",uc_match:"1f938-1f3fb-2642-fe0f",uc_greedy:"1f938-1f3fb-2642",shortnames:[":man_cartwheeling_light_skin_tone:"],category:"activity"},":man_cartwheeling_tone2:":{uc_base:"1f938-1f3fc-2642",uc_output:"1f938-1f3fc-200d-2642-fe0f",uc_match:"1f938-1f3fc-2642-fe0f",uc_greedy:"1f938-1f3fc-2642",shortnames:[":man_cartwheeling_medium_light_skin_tone:"],category:"activity"},":man_cartwheeling_tone3:":{uc_base:"1f938-1f3fd-2642",uc_output:"1f938-1f3fd-200d-2642-fe0f",uc_match:"1f938-1f3fd-2642-fe0f",uc_greedy:"1f938-1f3fd-2642",shortnames:[":man_cartwheeling_medium_skin_tone:"],category:"activity"},":man_cartwheeling_tone4:":{uc_base:"1f938-1f3fe-2642",uc_output:"1f938-1f3fe-200d-2642-fe0f",uc_match:"1f938-1f3fe-2642-fe0f",uc_greedy:"1f938-1f3fe-2642",shortnames:[":man_cartwheeling_medium_dark_skin_tone:"],category:"activity"},":man_cartwheeling_tone5:":{uc_base:"1f938-1f3ff-2642",uc_output:"1f938-1f3ff-200d-2642-fe0f",uc_match:"1f938-1f3ff-2642-fe0f",uc_greedy:"1f938-1f3ff-2642",shortnames:[":man_cartwheeling_dark_skin_tone:"],category:"activity"},":man_climbing_tone1:":{uc_base:"1f9d7-1f3fb-2642",uc_output:"1f9d7-1f3fb-200d-2642-fe0f",uc_match:"1f9d7-1f3fb-2642-fe0f",uc_greedy:"1f9d7-1f3fb-2642",shortnames:[":man_climbing_light_skin_tone:"],category:"activity"},":man_climbing_tone2:":{uc_base:"1f9d7-1f3fc-2642",uc_output:"1f9d7-1f3fc-200d-2642-fe0f",uc_match:"1f9d7-1f3fc-2642-fe0f",uc_greedy:"1f9d7-1f3fc-2642",shortnames:[":man_climbing_medium_light_skin_tone:"],category:"activity"},":man_climbing_tone3:":{uc_base:"1f9d7-1f3fd-2642",uc_output:"1f9d7-1f3fd-200d-2642-fe0f",uc_match:"1f9d7-1f3fd-2642-fe0f",uc_greedy:"1f9d7-1f3fd-2642",shortnames:[":man_climbing_medium_skin_tone:"],category:"activity"},":man_climbing_tone4:":{uc_base:"1f9d7-1f3fe-2642",uc_output:"1f9d7-1f3fe-200d-2642-fe0f",uc_match:"1f9d7-1f3fe-2642-fe0f",uc_greedy:"1f9d7-1f3fe-2642",shortnames:[":man_climbing_medium_dark_skin_tone:"],category:"activity"},":man_climbing_tone5:":{uc_base:"1f9d7-1f3ff-2642",uc_output:"1f9d7-1f3ff-200d-2642-fe0f",uc_match:"1f9d7-1f3ff-2642-fe0f",uc_greedy:"1f9d7-1f3ff-2642",shortnames:[":man_climbing_dark_skin_tone:"],category:"activity"},":man_construction_worker_tone1:":{uc_base:"1f477-1f3fb-2642",uc_output:"1f477-1f3fb-200d-2642-fe0f",uc_match:"1f477-1f3fb-2642-fe0f",uc_greedy:"1f477-1f3fb-2642",shortnames:[":man_construction_worker_light_skin_tone:"],category:"people"},":man_construction_worker_tone2:":{uc_base:"1f477-1f3fc-2642",uc_output:"1f477-1f3fc-200d-2642-fe0f",uc_match:"1f477-1f3fc-2642-fe0f",uc_greedy:"1f477-1f3fc-2642",shortnames:[":man_construction_worker_medium_light_skin_tone:"],category:"people"},":man_construction_worker_tone3:":{uc_base:"1f477-1f3fd-2642",uc_output:"1f477-1f3fd-200d-2642-fe0f",uc_match:"1f477-1f3fd-2642-fe0f",uc_greedy:"1f477-1f3fd-2642",shortnames:[":man_construction_worker_medium_skin_tone:"],category:"people"},":man_construction_worker_tone4:":{uc_base:"1f477-1f3fe-2642",uc_output:"1f477-1f3fe-200d-2642-fe0f",uc_match:"1f477-1f3fe-2642-fe0f",uc_greedy:"1f477-1f3fe-2642",shortnames:[":man_construction_worker_medium_dark_skin_tone:"],category:"people"},":man_construction_worker_tone5:":{uc_base:"1f477-1f3ff-2642",uc_output:"1f477-1f3ff-200d-2642-fe0f",uc_match:"1f477-1f3ff-2642-fe0f",uc_greedy:"1f477-1f3ff-2642",shortnames:[":man_construction_worker_dark_skin_tone:"],category:"people"},":man_detective_tone1:":{uc_base:"1f575-1f3fb-2642",uc_output:"1f575-1f3fb-200d-2642-fe0f",uc_match:"1f575-fe0f-1f3fb-2642-fe0f",uc_greedy:"1f575-1f3fb-2642",shortnames:[":man_detective_light_skin_tone:"],category:"people"},":man_detective_tone2:":{uc_base:"1f575-1f3fc-2642",uc_output:"1f575-1f3fc-200d-2642-fe0f",uc_match:"1f575-fe0f-1f3fc-2642-fe0f",uc_greedy:"1f575-1f3fc-2642",shortnames:[":man_detective_medium_light_skin_tone:"],category:"people"},":man_detective_tone3:":{uc_base:"1f575-1f3fd-2642",uc_output:"1f575-1f3fd-200d-2642-fe0f",uc_match:"1f575-fe0f-1f3fd-2642-fe0f",uc_greedy:"1f575-1f3fd-2642",shortnames:[":man_detective_medium_skin_tone:"],category:"people"},":man_detective_tone4:":{uc_base:"1f575-1f3fe-2642",uc_output:"1f575-1f3fe-200d-2642-fe0f",uc_match:"1f575-fe0f-1f3fe-2642-fe0f",uc_greedy:"1f575-1f3fe-2642",shortnames:[":man_detective_medium_dark_skin_tone:"],category:"people"},":man_detective_tone5:":{uc_base:"1f575-1f3ff-2642",uc_output:"1f575-1f3ff-200d-2642-fe0f",uc_match:"1f575-fe0f-1f3ff-2642-fe0f",uc_greedy:"1f575-1f3ff-2642",shortnames:[":man_detective_dark_skin_tone:"],category:"people"},":man_elf_tone1:":{uc_base:"1f9dd-1f3fb-2642",uc_output:"1f9dd-1f3fb-200d-2642-fe0f",uc_match:"1f9dd-1f3fb-2642-fe0f",uc_greedy:"1f9dd-1f3fb-2642",shortnames:[":man_elf_light_skin_tone:"],category:"people"},":man_elf_tone2:":{uc_base:"1f9dd-1f3fc-2642",uc_output:"1f9dd-1f3fc-200d-2642-fe0f",uc_match:"1f9dd-1f3fc-2642-fe0f",uc_greedy:"1f9dd-1f3fc-2642",shortnames:[":man_elf_medium_light_skin_tone:"],category:"people"},":man_elf_tone3:":{uc_base:"1f9dd-1f3fd-2642",uc_output:"1f9dd-1f3fd-200d-2642-fe0f",uc_match:"1f9dd-1f3fd-2642-fe0f",uc_greedy:"1f9dd-1f3fd-2642",shortnames:[":man_elf_medium_skin_tone:"],category:"people"},":man_elf_tone4:":{uc_base:"1f9dd-1f3fe-2642",uc_output:"1f9dd-1f3fe-200d-2642-fe0f",uc_match:"1f9dd-1f3fe-2642-fe0f",uc_greedy:"1f9dd-1f3fe-2642",shortnames:[":man_elf_medium_dark_skin_tone:"],category:"people"},":man_elf_tone5:":{uc_base:"1f9dd-1f3ff-2642",uc_output:"1f9dd-1f3ff-200d-2642-fe0f",uc_match:"1f9dd-1f3ff-2642-fe0f",uc_greedy:"1f9dd-1f3ff-2642",shortnames:[":man_elf_dark_skin_tone:"],category:"people"},":man_facepalming_tone1:":{uc_base:"1f926-1f3fb-2642",uc_output:"1f926-1f3fb-200d-2642-fe0f",uc_match:"1f926-1f3fb-2642-fe0f",uc_greedy:"1f926-1f3fb-2642",shortnames:[":man_facepalming_light_skin_tone:"],category:"people"},":man_facepalming_tone2:":{uc_base:"1f926-1f3fc-2642",uc_output:"1f926-1f3fc-200d-2642-fe0f",uc_match:"1f926-1f3fc-2642-fe0f",uc_greedy:"1f926-1f3fc-2642",shortnames:[":man_facepalming_medium_light_skin_tone:"],category:"people"},":man_facepalming_tone3:":{uc_base:"1f926-1f3fd-2642",uc_output:"1f926-1f3fd-200d-2642-fe0f",uc_match:"1f926-1f3fd-2642-fe0f",uc_greedy:"1f926-1f3fd-2642",shortnames:[":man_facepalming_medium_skin_tone:"],category:"people"},":man_facepalming_tone4:":{uc_base:"1f926-1f3fe-2642",uc_output:"1f926-1f3fe-200d-2642-fe0f",uc_match:"1f926-1f3fe-2642-fe0f",uc_greedy:"1f926-1f3fe-2642",shortnames:[":man_facepalming_medium_dark_skin_tone:"],category:"people"},":man_facepalming_tone5:":{uc_base:"1f926-1f3ff-2642",uc_output:"1f926-1f3ff-200d-2642-fe0f",uc_match:"1f926-1f3ff-2642-fe0f",uc_greedy:"1f926-1f3ff-2642",shortnames:[":man_facepalming_dark_skin_tone:"],category:"people"},":man_fairy_tone1:":{uc_base:"1f9da-1f3fb-2642",uc_output:"1f9da-1f3fb-200d-2642-fe0f",uc_match:"1f9da-1f3fb-2642-fe0f",uc_greedy:"1f9da-1f3fb-2642",shortnames:[":man_fairy_light_skin_tone:"],category:"people"},":man_fairy_tone2:":{uc_base:"1f9da-1f3fc-2642",uc_output:"1f9da-1f3fc-200d-2642-fe0f",uc_match:"1f9da-1f3fc-2642-fe0f",uc_greedy:"1f9da-1f3fc-2642",shortnames:[":man_fairy_medium_light_skin_tone:"],category:"people"},":man_fairy_tone3:":{uc_base:"1f9da-1f3fd-2642",uc_output:"1f9da-1f3fd-200d-2642-fe0f",uc_match:"1f9da-1f3fd-2642-fe0f",uc_greedy:"1f9da-1f3fd-2642",shortnames:[":man_fairy_medium_skin_tone:"],category:"people"},":man_fairy_tone4:":{uc_base:"1f9da-1f3fe-2642",uc_output:"1f9da-1f3fe-200d-2642-fe0f",uc_match:"1f9da-1f3fe-2642-fe0f",uc_greedy:"1f9da-1f3fe-2642",shortnames:[":man_fairy_medium_dark_skin_tone:"],category:"people"},":man_fairy_tone5:":{uc_base:"1f9da-1f3ff-2642",uc_output:"1f9da-1f3ff-200d-2642-fe0f",uc_match:"1f9da-1f3ff-2642-fe0f",uc_greedy:"1f9da-1f3ff-2642",shortnames:[":man_fairy_dark_skin_tone:"],category:"people"},":man_frowning_tone1:":{uc_base:"1f64d-1f3fb-2642",uc_output:"1f64d-1f3fb-200d-2642-fe0f",uc_match:"1f64d-1f3fb-2642-fe0f",uc_greedy:"1f64d-1f3fb-2642",shortnames:[":man_frowning_light_skin_tone:"],category:"people"},":man_frowning_tone2:":{uc_base:"1f64d-1f3fc-2642",uc_output:"1f64d-1f3fc-200d-2642-fe0f",uc_match:"1f64d-1f3fc-2642-fe0f",uc_greedy:"1f64d-1f3fc-2642",shortnames:[":man_frowning_medium_light_skin_tone:"],category:"people"},":man_frowning_tone3:":{uc_base:"1f64d-1f3fd-2642",uc_output:"1f64d-1f3fd-200d-2642-fe0f",uc_match:"1f64d-1f3fd-2642-fe0f",uc_greedy:"1f64d-1f3fd-2642",shortnames:[":man_frowning_medium_skin_tone:"],category:"people"},":man_frowning_tone4:":{uc_base:"1f64d-1f3fe-2642",uc_output:"1f64d-1f3fe-200d-2642-fe0f",uc_match:"1f64d-1f3fe-2642-fe0f",uc_greedy:"1f64d-1f3fe-2642",shortnames:[":man_frowning_medium_dark_skin_tone:"],category:"people"},":man_frowning_tone5:":{uc_base:"1f64d-1f3ff-2642",uc_output:"1f64d-1f3ff-200d-2642-fe0f",uc_match:"1f64d-1f3ff-2642-fe0f",uc_greedy:"1f64d-1f3ff-2642",shortnames:[":man_frowning_dark_skin_tone:"],category:"people"},":man_gesturing_no_tone1:":{uc_base:"1f645-1f3fb-2642",uc_output:"1f645-1f3fb-200d-2642-fe0f",uc_match:"1f645-1f3fb-2642-fe0f",uc_greedy:"1f645-1f3fb-2642",shortnames:[":man_gesturing_no_light_skin_tone:"],category:"people"},":man_gesturing_no_tone2:":{uc_base:"1f645-1f3fc-2642",uc_output:"1f645-1f3fc-200d-2642-fe0f",uc_match:"1f645-1f3fc-2642-fe0f",uc_greedy:"1f645-1f3fc-2642",shortnames:[":man_gesturing_no_medium_light_skin_tone:"],category:"people"},":man_gesturing_no_tone3:":{uc_base:"1f645-1f3fd-2642",uc_output:"1f645-1f3fd-200d-2642-fe0f",uc_match:"1f645-1f3fd-2642-fe0f",uc_greedy:"1f645-1f3fd-2642",shortnames:[":man_gesturing_no_medium_skin_tone:"],category:"people"},":man_gesturing_no_tone4:":{uc_base:"1f645-1f3fe-2642",uc_output:"1f645-1f3fe-200d-2642-fe0f",uc_match:"1f645-1f3fe-2642-fe0f",uc_greedy:"1f645-1f3fe-2642",shortnames:[":man_gesturing_no_medium_dark_skin_tone:"],category:"people"},":man_gesturing_no_tone5:":{uc_base:"1f645-1f3ff-2642",uc_output:"1f645-1f3ff-200d-2642-fe0f",uc_match:"1f645-1f3ff-2642-fe0f",uc_greedy:"1f645-1f3ff-2642",shortnames:[":man_gesturing_no_dark_skin_tone:"],category:"people"},":man_gesturing_ok_tone1:":{uc_base:"1f646-1f3fb-2642",uc_output:"1f646-1f3fb-200d-2642-fe0f",uc_match:"1f646-1f3fb-2642-fe0f",uc_greedy:"1f646-1f3fb-2642",shortnames:[":man_gesturing_ok_light_skin_tone:"],category:"people"},":man_gesturing_ok_tone2:":{uc_base:"1f646-1f3fc-2642",uc_output:"1f646-1f3fc-200d-2642-fe0f",uc_match:"1f646-1f3fc-2642-fe0f",uc_greedy:"1f646-1f3fc-2642",shortnames:[":man_gesturing_ok_medium_light_skin_tone:"],category:"people"},":man_gesturing_ok_tone3:":{uc_base:"1f646-1f3fd-2642",uc_output:"1f646-1f3fd-200d-2642-fe0f",uc_match:"1f646-1f3fd-2642-fe0f",uc_greedy:"1f646-1f3fd-2642",shortnames:[":man_gesturing_ok_medium_skin_tone:"],category:"people"},":man_gesturing_ok_tone4:":{uc_base:"1f646-1f3fe-2642",uc_output:"1f646-1f3fe-200d-2642-fe0f",uc_match:"1f646-1f3fe-2642-fe0f",uc_greedy:"1f646-1f3fe-2642",shortnames:[":man_gesturing_ok_medium_dark_skin_tone:"],category:"people"},":man_gesturing_ok_tone5:":{uc_base:"1f646-1f3ff-2642",uc_output:"1f646-1f3ff-200d-2642-fe0f",uc_match:"1f646-1f3ff-2642-fe0f",uc_greedy:"1f646-1f3ff-2642",shortnames:[":man_gesturing_ok_dark_skin_tone:"],category:"people"},":man_getting_face_massage_tone1:":{uc_base:"1f486-1f3fb-2642",uc_output:"1f486-1f3fb-200d-2642-fe0f",uc_match:"1f486-1f3fb-2642-fe0f",uc_greedy:"1f486-1f3fb-2642",shortnames:[":man_getting_face_massage_light_skin_tone:"],category:"people"},":man_getting_face_massage_tone2:":{uc_base:"1f486-1f3fc-2642",uc_output:"1f486-1f3fc-200d-2642-fe0f",uc_match:"1f486-1f3fc-2642-fe0f",uc_greedy:"1f486-1f3fc-2642",shortnames:[":man_getting_face_massage_medium_light_skin_tone:"],category:"people"},":man_getting_face_massage_tone3:":{uc_base:"1f486-1f3fd-2642",uc_output:"1f486-1f3fd-200d-2642-fe0f",uc_match:"1f486-1f3fd-2642-fe0f",uc_greedy:"1f486-1f3fd-2642",shortnames:[":man_getting_face_massage_medium_skin_tone:"],category:"people"},":man_getting_face_massage_tone4:":{uc_base:"1f486-1f3fe-2642",uc_output:"1f486-1f3fe-200d-2642-fe0f",uc_match:"1f486-1f3fe-2642-fe0f",uc_greedy:"1f486-1f3fe-2642",shortnames:[":man_getting_face_massage_medium_dark_skin_tone:"],category:"people"},":man_getting_face_massage_tone5:":{uc_base:"1f486-1f3ff-2642",uc_output:"1f486-1f3ff-200d-2642-fe0f",uc_match:"1f486-1f3ff-2642-fe0f",uc_greedy:"1f486-1f3ff-2642",shortnames:[":man_getting_face_massage_dark_skin_tone:"],category:"people"},":man_getting_haircut_tone1:":{uc_base:"1f487-1f3fb-2642",uc_output:"1f487-1f3fb-200d-2642-fe0f",uc_match:"1f487-1f3fb-2642-fe0f",uc_greedy:"1f487-1f3fb-2642",shortnames:[":man_getting_haircut_light_skin_tone:"],category:"people"},":man_getting_haircut_tone2:":{uc_base:"1f487-1f3fc-2642",uc_output:"1f487-1f3fc-200d-2642-fe0f",uc_match:"1f487-1f3fc-2642-fe0f",uc_greedy:"1f487-1f3fc-2642",shortnames:[":man_getting_haircut_medium_light_skin_tone:"],category:"people"},":man_getting_haircut_tone3:":{uc_base:"1f487-1f3fd-2642",uc_output:"1f487-1f3fd-200d-2642-fe0f",uc_match:"1f487-1f3fd-2642-fe0f",uc_greedy:"1f487-1f3fd-2642",shortnames:[":man_getting_haircut_medium_skin_tone:"],category:"people"},":man_getting_haircut_tone4:":{uc_base:"1f487-1f3fe-2642",uc_output:"1f487-1f3fe-200d-2642-fe0f",uc_match:"1f487-1f3fe-2642-fe0f",uc_greedy:"1f487-1f3fe-2642",shortnames:[":man_getting_haircut_medium_dark_skin_tone:"],category:"people"},":man_getting_haircut_tone5:":{uc_base:"1f487-1f3ff-2642",uc_output:"1f487-1f3ff-200d-2642-fe0f",uc_match:"1f487-1f3ff-2642-fe0f",uc_greedy:"1f487-1f3ff-2642",shortnames:[":man_getting_haircut_dark_skin_tone:"],category:"people"},":man_golfing_tone1:":{uc_base:"1f3cc-1f3fb-2642",uc_output:"1f3cc-1f3fb-200d-2642-fe0f",uc_match:"1f3cc-fe0f-1f3fb-2642-fe0f",uc_greedy:"1f3cc-1f3fb-2642",shortnames:[":man_golfing_light_skin_tone:"],category:"activity"},":man_golfing_tone2:":{uc_base:"1f3cc-1f3fc-2642",uc_output:"1f3cc-1f3fc-200d-2642-fe0f",uc_match:"1f3cc-fe0f-1f3fc-2642-fe0f",uc_greedy:"1f3cc-1f3fc-2642",shortnames:[":man_golfing_medium_light_skin_tone:"],category:"activity"},":man_golfing_tone3:":{uc_base:"1f3cc-1f3fd-2642",uc_output:"1f3cc-1f3fd-200d-2642-fe0f",uc_match:"1f3cc-fe0f-1f3fd-2642-fe0f",uc_greedy:"1f3cc-1f3fd-2642",shortnames:[":man_golfing_medium_skin_tone:"],category:"activity"},":man_golfing_tone4:":{uc_base:"1f3cc-1f3fe-2642",uc_output:"1f3cc-1f3fe-200d-2642-fe0f",uc_match:"1f3cc-fe0f-1f3fe-2642-fe0f",uc_greedy:"1f3cc-1f3fe-2642",shortnames:[":man_golfing_medium_dark_skin_tone:"],category:"activity"},":man_golfing_tone5:":{uc_base:"1f3cc-1f3ff-2642",uc_output:"1f3cc-1f3ff-200d-2642-fe0f",uc_match:"1f3cc-fe0f-1f3ff-2642-fe0f",uc_greedy:"1f3cc-1f3ff-2642",shortnames:[":man_golfing_dark_skin_tone:"],category:"activity"},":man_guard_tone1:":{uc_base:"1f482-1f3fb-2642",uc_output:"1f482-1f3fb-200d-2642-fe0f",uc_match:"1f482-1f3fb-2642-fe0f",uc_greedy:"1f482-1f3fb-2642",shortnames:[":man_guard_light_skin_tone:"],category:"people"},":man_guard_tone2:":{uc_base:"1f482-1f3fc-2642",uc_output:"1f482-1f3fc-200d-2642-fe0f",uc_match:"1f482-1f3fc-2642-fe0f",uc_greedy:"1f482-1f3fc-2642",shortnames:[":man_guard_medium_light_skin_tone:"],category:"people"},":man_guard_tone3:":{uc_base:"1f482-1f3fd-2642",uc_output:"1f482-1f3fd-200d-2642-fe0f",uc_match:"1f482-1f3fd-2642-fe0f",uc_greedy:"1f482-1f3fd-2642",shortnames:[":man_guard_medium_skin_tone:"],category:"people"},":man_guard_tone4:":{uc_base:"1f482-1f3fe-2642",uc_output:"1f482-1f3fe-200d-2642-fe0f",uc_match:"1f482-1f3fe-2642-fe0f",uc_greedy:"1f482-1f3fe-2642",shortnames:[":man_guard_medium_dark_skin_tone:"],category:"people"},":man_guard_tone5:":{uc_base:"1f482-1f3ff-2642",uc_output:"1f482-1f3ff-200d-2642-fe0f",uc_match:"1f482-1f3ff-2642-fe0f",uc_greedy:"1f482-1f3ff-2642",shortnames:[":man_guard_dark_skin_tone:"],category:"people"},":man_health_worker_tone1:":{uc_base:"1f468-1f3fb-2695",uc_output:"1f468-1f3fb-200d-2695-fe0f",uc_match:"1f468-1f3fb-2695-fe0f",uc_greedy:"1f468-1f3fb-2695",shortnames:[":man_health_worker_light_skin_tone:"],category:"people"},":man_health_worker_tone2:":{uc_base:"1f468-1f3fc-2695",uc_output:"1f468-1f3fc-200d-2695-fe0f",uc_match:"1f468-1f3fc-2695-fe0f",uc_greedy:"1f468-1f3fc-2695",shortnames:[":man_health_worker_medium_light_skin_tone:"],category:"people"},":man_health_worker_tone3:":{uc_base:"1f468-1f3fd-2695",uc_output:"1f468-1f3fd-200d-2695-fe0f",uc_match:"1f468-1f3fd-2695-fe0f",uc_greedy:"1f468-1f3fd-2695",shortnames:[":man_health_worker_medium_skin_tone:"],category:"people"},":man_health_worker_tone4:":{uc_base:"1f468-1f3fe-2695",uc_output:"1f468-1f3fe-200d-2695-fe0f",uc_match:"1f468-1f3fe-2695-fe0f",uc_greedy:"1f468-1f3fe-2695",shortnames:[":man_health_worker_medium_dark_skin_tone:"],category:"people"},":man_health_worker_tone5:":{uc_base:"1f468-1f3ff-2695",uc_output:"1f468-1f3ff-200d-2695-fe0f",uc_match:"1f468-1f3ff-2695-fe0f",uc_greedy:"1f468-1f3ff-2695",shortnames:[":man_health_worker_dark_skin_tone:"],category:"people"},":man_in_lotus_position_tone1:":{uc_base:"1f9d8-1f3fb-2642",uc_output:"1f9d8-1f3fb-200d-2642-fe0f",uc_match:"1f9d8-1f3fb-2642-fe0f",uc_greedy:"1f9d8-1f3fb-2642",shortnames:[":man_in_lotus_position_light_skin_tone:"],category:"activity"},":man_in_lotus_position_tone2:":{uc_base:"1f9d8-1f3fc-2642",uc_output:"1f9d8-1f3fc-200d-2642-fe0f",uc_match:"1f9d8-1f3fc-2642-fe0f",uc_greedy:"1f9d8-1f3fc-2642",shortnames:[":man_in_lotus_position_medium_light_skin_tone:"],category:"activity"},":man_in_lotus_position_tone3:":{uc_base:"1f9d8-1f3fd-2642",uc_output:"1f9d8-1f3fd-200d-2642-fe0f",uc_match:"1f9d8-1f3fd-2642-fe0f",uc_greedy:"1f9d8-1f3fd-2642",shortnames:[":man_in_lotus_position_medium_skin_tone:"],category:"activity"},":man_in_lotus_position_tone4:":{uc_base:"1f9d8-1f3fe-2642",uc_output:"1f9d8-1f3fe-200d-2642-fe0f",uc_match:"1f9d8-1f3fe-2642-fe0f",uc_greedy:"1f9d8-1f3fe-2642",shortnames:[":man_in_lotus_position_medium_dark_skin_tone:"],category:"activity"},":man_in_lotus_position_tone5:":{uc_base:"1f9d8-1f3ff-2642",uc_output:"1f9d8-1f3ff-200d-2642-fe0f",uc_match:"1f9d8-1f3ff-2642-fe0f",uc_greedy:"1f9d8-1f3ff-2642",shortnames:[":man_in_lotus_position_dark_skin_tone:"],category:"activity"},":man_in_steamy_room_tone1:":{uc_base:"1f9d6-1f3fb-2642",uc_output:"1f9d6-1f3fb-200d-2642-fe0f",uc_match:"1f9d6-1f3fb-2642-fe0f",uc_greedy:"1f9d6-1f3fb-2642",shortnames:[":man_in_steamy_room_light_skin_tone:"],category:"people"},":man_in_steamy_room_tone2:":{uc_base:"1f9d6-1f3fc-2642",uc_output:"1f9d6-1f3fc-200d-2642-fe0f",uc_match:"1f9d6-1f3fc-2642-fe0f",uc_greedy:"1f9d6-1f3fc-2642",shortnames:[":man_in_steamy_room_medium_light_skin_tone:"],category:"people"},":man_in_steamy_room_tone3:":{uc_base:"1f9d6-1f3fd-2642",uc_output:"1f9d6-1f3fd-200d-2642-fe0f",uc_match:"1f9d6-1f3fd-2642-fe0f",uc_greedy:"1f9d6-1f3fd-2642",shortnames:[":man_in_steamy_room_medium_skin_tone:"],category:"people"},":man_in_steamy_room_tone4:":{uc_base:"1f9d6-1f3fe-2642",uc_output:"1f9d6-1f3fe-200d-2642-fe0f",uc_match:"1f9d6-1f3fe-2642-fe0f",uc_greedy:"1f9d6-1f3fe-2642",shortnames:[":man_in_steamy_room_medium_dark_skin_tone:"],category:"people"},":man_in_steamy_room_tone5:":{uc_base:"1f9d6-1f3ff-2642",uc_output:"1f9d6-1f3ff-200d-2642-fe0f",uc_match:"1f9d6-1f3ff-2642-fe0f",uc_greedy:"1f9d6-1f3ff-2642",shortnames:[":man_in_steamy_room_dark_skin_tone:"],category:"people"},":man_judge_tone1:":{uc_base:"1f468-1f3fb-2696",uc_output:"1f468-1f3fb-200d-2696-fe0f",uc_match:"1f468-1f3fb-2696-fe0f",uc_greedy:"1f468-1f3fb-2696",shortnames:[":man_judge_light_skin_tone:"],category:"people"},":man_judge_tone2:":{uc_base:"1f468-1f3fc-2696",uc_output:"1f468-1f3fc-200d-2696-fe0f",uc_match:"1f468-1f3fc-2696-fe0f",uc_greedy:"1f468-1f3fc-2696",shortnames:[":man_judge_medium_light_skin_tone:"],category:"people"},":man_judge_tone3:":{uc_base:"1f468-1f3fd-2696",uc_output:"1f468-1f3fd-200d-2696-fe0f",uc_match:"1f468-1f3fd-2696-fe0f",uc_greedy:"1f468-1f3fd-2696",shortnames:[":man_judge_medium_skin_tone:"],category:"people"},":man_judge_tone4:":{uc_base:"1f468-1f3fe-2696",uc_output:"1f468-1f3fe-200d-2696-fe0f",uc_match:"1f468-1f3fe-2696-fe0f",uc_greedy:"1f468-1f3fe-2696",shortnames:[":man_judge_medium_dark_skin_tone:"],category:"people"},":man_judge_tone5:":{uc_base:"1f468-1f3ff-2696",uc_output:"1f468-1f3ff-200d-2696-fe0f",uc_match:"1f468-1f3ff-2696-fe0f",uc_greedy:"1f468-1f3ff-2696",shortnames:[":man_judge_dark_skin_tone:"],category:"people"},":man_juggling_tone1:":{uc_base:"1f939-1f3fb-2642",uc_output:"1f939-1f3fb-200d-2642-fe0f",uc_match:"1f939-1f3fb-2642-fe0f",uc_greedy:"1f939-1f3fb-2642",shortnames:[":man_juggling_light_skin_tone:"],category:"activity"},":man_juggling_tone2:":{uc_base:"1f939-1f3fc-2642",uc_output:"1f939-1f3fc-200d-2642-fe0f",uc_match:"1f939-1f3fc-2642-fe0f",uc_greedy:"1f939-1f3fc-2642",shortnames:[":man_juggling_medium_light_skin_tone:"],category:"activity"},":man_juggling_tone3:":{uc_base:"1f939-1f3fd-2642",uc_output:"1f939-1f3fd-200d-2642-fe0f",uc_match:"1f939-1f3fd-2642-fe0f",uc_greedy:"1f939-1f3fd-2642",shortnames:[":man_juggling_medium_skin_tone:"],category:"activity"},":man_juggling_tone4:":{uc_base:"1f939-1f3fe-2642",uc_output:"1f939-1f3fe-200d-2642-fe0f",uc_match:"1f939-1f3fe-2642-fe0f",uc_greedy:"1f939-1f3fe-2642",shortnames:[":man_juggling_medium_dark_skin_tone:"],category:"activity"},":man_juggling_tone5:":{uc_base:"1f939-1f3ff-2642",uc_output:"1f939-1f3ff-200d-2642-fe0f",uc_match:"1f939-1f3ff-2642-fe0f",uc_greedy:"1f939-1f3ff-2642",shortnames:[":man_juggling_dark_skin_tone:"],category:"activity"},":man_lifting_weights_tone1:":{uc_base:"1f3cb-1f3fb-2642",uc_output:"1f3cb-1f3fb-200d-2642-fe0f",uc_match:"1f3cb-fe0f-1f3fb-2642-fe0f",uc_greedy:"1f3cb-1f3fb-2642",shortnames:[":man_lifting_weights_light_skin_tone:"],category:"activity"},":man_lifting_weights_tone2:":{uc_base:"1f3cb-1f3fc-2642",uc_output:"1f3cb-1f3fc-200d-2642-fe0f",uc_match:"1f3cb-fe0f-1f3fc-2642-fe0f",uc_greedy:"1f3cb-1f3fc-2642",shortnames:[":man_lifting_weights_medium_light_skin_tone:"],category:"activity"},":man_lifting_weights_tone3:":{uc_base:"1f3cb-1f3fd-2642",uc_output:"1f3cb-1f3fd-200d-2642-fe0f",uc_match:"1f3cb-fe0f-1f3fd-2642-fe0f",uc_greedy:"1f3cb-1f3fd-2642",shortnames:[":man_lifting_weights_medium_skin_tone:"],category:"activity"},":man_lifting_weights_tone4:":{uc_base:"1f3cb-1f3fe-2642",uc_output:"1f3cb-1f3fe-200d-2642-fe0f",uc_match:"1f3cb-fe0f-1f3fe-2642-fe0f",uc_greedy:"1f3cb-1f3fe-2642",shortnames:[":man_lifting_weights_medium_dark_skin_tone:"],category:"activity"},":man_lifting_weights_tone5:":{uc_base:"1f3cb-1f3ff-2642",uc_output:"1f3cb-1f3ff-200d-2642-fe0f",uc_match:"1f3cb-fe0f-1f3ff-2642-fe0f",uc_greedy:"1f3cb-1f3ff-2642",shortnames:[":man_lifting_weights_dark_skin_tone:"],category:"activity"},":man_mage_tone1:":{uc_base:"1f9d9-1f3fb-2642",uc_output:"1f9d9-1f3fb-200d-2642-fe0f",uc_match:"1f9d9-1f3fb-2642-fe0f",uc_greedy:"1f9d9-1f3fb-2642",shortnames:[":man_mage_light_skin_tone:"],category:"people"},":man_mage_tone2:":{uc_base:"1f9d9-1f3fc-2642",uc_output:"1f9d9-1f3fc-200d-2642-fe0f",uc_match:"1f9d9-1f3fc-2642-fe0f",uc_greedy:"1f9d9-1f3fc-2642",shortnames:[":man_mage_medium_light_skin_tone:"],category:"people"},":man_mage_tone3:":{uc_base:"1f9d9-1f3fd-2642",uc_output:"1f9d9-1f3fd-200d-2642-fe0f",uc_match:"1f9d9-1f3fd-2642-fe0f",uc_greedy:"1f9d9-1f3fd-2642",shortnames:[":man_mage_medium_skin_tone:"],category:"people"},":man_mage_tone4:":{uc_base:"1f9d9-1f3fe-2642",uc_output:"1f9d9-1f3fe-200d-2642-fe0f",uc_match:"1f9d9-1f3fe-2642-fe0f",uc_greedy:"1f9d9-1f3fe-2642",shortnames:[":man_mage_medium_dark_skin_tone:"],category:"people"},":man_mage_tone5:":{uc_base:"1f9d9-1f3ff-2642",uc_output:"1f9d9-1f3ff-200d-2642-fe0f",uc_match:"1f9d9-1f3ff-2642-fe0f",uc_greedy:"1f9d9-1f3ff-2642",shortnames:[":man_mage_dark_skin_tone:"],category:"people"},":man_mountain_biking_tone1:":{uc_base:"1f6b5-1f3fb-2642",uc_output:"1f6b5-1f3fb-200d-2642-fe0f",uc_match:"1f6b5-1f3fb-2642-fe0f",uc_greedy:"1f6b5-1f3fb-2642",shortnames:[":man_mountain_biking_light_skin_tone:"],category:"activity"},":man_mountain_biking_tone2:":{uc_base:"1f6b5-1f3fc-2642",uc_output:"1f6b5-1f3fc-200d-2642-fe0f",uc_match:"1f6b5-1f3fc-2642-fe0f",uc_greedy:"1f6b5-1f3fc-2642",shortnames:[":man_mountain_biking_medium_light_skin_tone:"],category:"activity"},":man_mountain_biking_tone3:":{uc_base:"1f6b5-1f3fd-2642",uc_output:"1f6b5-1f3fd-200d-2642-fe0f",uc_match:"1f6b5-1f3fd-2642-fe0f",uc_greedy:"1f6b5-1f3fd-2642",shortnames:[":man_mountain_biking_medium_skin_tone:"],category:"activity"},":man_mountain_biking_tone4:":{uc_base:"1f6b5-1f3fe-2642",uc_output:"1f6b5-1f3fe-200d-2642-fe0f",uc_match:"1f6b5-1f3fe-2642-fe0f",uc_greedy:"1f6b5-1f3fe-2642",shortnames:[":man_mountain_biking_medium_dark_skin_tone:"],category:"activity"},":man_mountain_biking_tone5:":{uc_base:"1f6b5-1f3ff-2642",uc_output:"1f6b5-1f3ff-200d-2642-fe0f",uc_match:"1f6b5-1f3ff-2642-fe0f",uc_greedy:"1f6b5-1f3ff-2642",shortnames:[":man_mountain_biking_dark_skin_tone:"],category:"activity"},":man_pilot_tone1:":{uc_base:"1f468-1f3fb-2708",uc_output:"1f468-1f3fb-200d-2708-fe0f",uc_match:"1f468-1f3fb-2708-fe0f",uc_greedy:"1f468-1f3fb-2708",shortnames:[":man_pilot_light_skin_tone:"],category:"people"},":man_pilot_tone2:":{uc_base:"1f468-1f3fc-2708",uc_output:"1f468-1f3fc-200d-2708-fe0f",uc_match:"1f468-1f3fc-2708-fe0f",uc_greedy:"1f468-1f3fc-2708",shortnames:[":man_pilot_medium_light_skin_tone:"],category:"people"},":man_pilot_tone3:":{uc_base:"1f468-1f3fd-2708",uc_output:"1f468-1f3fd-200d-2708-fe0f",uc_match:"1f468-1f3fd-2708-fe0f",uc_greedy:"1f468-1f3fd-2708",shortnames:[":man_pilot_medium_skin_tone:"],category:"people"},":man_pilot_tone4:":{uc_base:"1f468-1f3fe-2708",uc_output:"1f468-1f3fe-200d-2708-fe0f",uc_match:"1f468-1f3fe-2708-fe0f",uc_greedy:"1f468-1f3fe-2708",shortnames:[":man_pilot_medium_dark_skin_tone:"],category:"people"},":man_pilot_tone5:":{uc_base:"1f468-1f3ff-2708",uc_output:"1f468-1f3ff-200d-2708-fe0f",uc_match:"1f468-1f3ff-2708-fe0f",uc_greedy:"1f468-1f3ff-2708",shortnames:[":man_pilot_dark_skin_tone:"],category:"people"},":man_playing_handball_tone1:":{uc_base:"1f93e-1f3fb-2642",uc_output:"1f93e-1f3fb-200d-2642-fe0f",uc_match:"1f93e-1f3fb-2642-fe0f",uc_greedy:"1f93e-1f3fb-2642",shortnames:[":man_playing_handball_light_skin_tone:"],category:"activity"},":man_playing_handball_tone2:":{uc_base:"1f93e-1f3fc-2642",uc_output:"1f93e-1f3fc-200d-2642-fe0f",uc_match:"1f93e-1f3fc-2642-fe0f",uc_greedy:"1f93e-1f3fc-2642",shortnames:[":man_playing_handball_medium_light_skin_tone:"],category:"activity"},":man_playing_handball_tone3:":{uc_base:"1f93e-1f3fd-2642",uc_output:"1f93e-1f3fd-200d-2642-fe0f",uc_match:"1f93e-1f3fd-2642-fe0f",uc_greedy:"1f93e-1f3fd-2642",shortnames:[":man_playing_handball_medium_skin_tone:"],category:"activity"},":man_playing_handball_tone4:":{uc_base:"1f93e-1f3fe-2642",uc_output:"1f93e-1f3fe-200d-2642-fe0f",uc_match:"1f93e-1f3fe-2642-fe0f",uc_greedy:"1f93e-1f3fe-2642",shortnames:[":man_playing_handball_medium_dark_skin_tone:"],category:"activity"},":man_playing_handball_tone5:":{uc_base:"1f93e-1f3ff-2642",uc_output:"1f93e-1f3ff-200d-2642-fe0f",uc_match:"1f93e-1f3ff-2642-fe0f",uc_greedy:"1f93e-1f3ff-2642",shortnames:[":man_playing_handball_dark_skin_tone:"],category:"activity"},":man_playing_water_polo_tone1:":{uc_base:"1f93d-1f3fb-2642",uc_output:"1f93d-1f3fb-200d-2642-fe0f",uc_match:"1f93d-1f3fb-2642-fe0f",uc_greedy:"1f93d-1f3fb-2642",shortnames:[":man_playing_water_polo_light_skin_tone:"],category:"activity"},":man_playing_water_polo_tone2:":{uc_base:"1f93d-1f3fc-2642",uc_output:"1f93d-1f3fc-200d-2642-fe0f",uc_match:"1f93d-1f3fc-2642-fe0f",uc_greedy:"1f93d-1f3fc-2642",shortnames:[":man_playing_water_polo_medium_light_skin_tone:"],category:"activity"},":man_playing_water_polo_tone3:":{uc_base:"1f93d-1f3fd-2642",uc_output:"1f93d-1f3fd-200d-2642-fe0f",uc_match:"1f93d-1f3fd-2642-fe0f",uc_greedy:"1f93d-1f3fd-2642",shortnames:[":man_playing_water_polo_medium_skin_tone:"],category:"activity"},":man_playing_water_polo_tone4:":{uc_base:"1f93d-1f3fe-2642",uc_output:"1f93d-1f3fe-200d-2642-fe0f",uc_match:"1f93d-1f3fe-2642-fe0f",uc_greedy:"1f93d-1f3fe-2642",shortnames:[":man_playing_water_polo_medium_dark_skin_tone:"],category:"activity"},":man_playing_water_polo_tone5:":{uc_base:"1f93d-1f3ff-2642",uc_output:"1f93d-1f3ff-200d-2642-fe0f",uc_match:"1f93d-1f3ff-2642-fe0f",uc_greedy:"1f93d-1f3ff-2642",shortnames:[":man_playing_water_polo_dark_skin_tone:"],category:"activity"},":man_police_officer_tone1:":{uc_base:"1f46e-1f3fb-2642",uc_output:"1f46e-1f3fb-200d-2642-fe0f",uc_match:"1f46e-1f3fb-2642-fe0f",uc_greedy:"1f46e-1f3fb-2642",shortnames:[":man_police_officer_light_skin_tone:"],category:"people"},":man_police_officer_tone2:":{uc_base:"1f46e-1f3fc-2642",uc_output:"1f46e-1f3fc-200d-2642-fe0f",uc_match:"1f46e-1f3fc-2642-fe0f",uc_greedy:"1f46e-1f3fc-2642",shortnames:[":man_police_officer_medium_light_skin_tone:"],category:"people"},":man_police_officer_tone3:":{uc_base:"1f46e-1f3fd-2642",uc_output:"1f46e-1f3fd-200d-2642-fe0f",uc_match:"1f46e-1f3fd-2642-fe0f",uc_greedy:"1f46e-1f3fd-2642",shortnames:[":man_police_officer_medium_skin_tone:"],category:"people"},":man_police_officer_tone4:":{uc_base:"1f46e-1f3fe-2642",uc_output:"1f46e-1f3fe-200d-2642-fe0f",uc_match:"1f46e-1f3fe-2642-fe0f",uc_greedy:"1f46e-1f3fe-2642",shortnames:[":man_police_officer_medium_dark_skin_tone:"],category:"people"},":man_police_officer_tone5:":{uc_base:"1f46e-1f3ff-2642",uc_output:"1f46e-1f3ff-200d-2642-fe0f",uc_match:"1f46e-1f3ff-2642-fe0f",uc_greedy:"1f46e-1f3ff-2642",shortnames:[":man_police_officer_dark_skin_tone:"],category:"people"},":man_pouting_tone1:":{uc_base:"1f64e-1f3fb-2642",uc_output:"1f64e-1f3fb-200d-2642-fe0f",uc_match:"1f64e-1f3fb-2642-fe0f",uc_greedy:"1f64e-1f3fb-2642",shortnames:[":man_pouting_light_skin_tone:"],category:"people"},":man_pouting_tone2:":{uc_base:"1f64e-1f3fc-2642",uc_output:"1f64e-1f3fc-200d-2642-fe0f",uc_match:"1f64e-1f3fc-2642-fe0f",uc_greedy:"1f64e-1f3fc-2642",shortnames:[":man_pouting_medium_light_skin_tone:"],category:"people"},":man_pouting_tone3:":{uc_base:"1f64e-1f3fd-2642",uc_output:"1f64e-1f3fd-200d-2642-fe0f",uc_match:"1f64e-1f3fd-2642-fe0f",uc_greedy:"1f64e-1f3fd-2642",shortnames:[":man_pouting_medium_skin_tone:"],category:"people"},":man_pouting_tone4:":{uc_base:"1f64e-1f3fe-2642",uc_output:"1f64e-1f3fe-200d-2642-fe0f",uc_match:"1f64e-1f3fe-2642-fe0f",uc_greedy:"1f64e-1f3fe-2642",shortnames:[":man_pouting_medium_dark_skin_tone:"],category:"people"},":man_pouting_tone5:":{uc_base:"1f64e-1f3ff-2642",uc_output:"1f64e-1f3ff-200d-2642-fe0f",uc_match:"1f64e-1f3ff-2642-fe0f",uc_greedy:"1f64e-1f3ff-2642",shortnames:[":man_pouting_dark_skin_tone:"],category:"people"},":man_raising_hand_tone1:":{uc_base:"1f64b-1f3fb-2642",uc_output:"1f64b-1f3fb-200d-2642-fe0f",uc_match:"1f64b-1f3fb-2642-fe0f",uc_greedy:"1f64b-1f3fb-2642",shortnames:[":man_raising_hand_light_skin_tone:"],category:"people"},":man_raising_hand_tone2:":{uc_base:"1f64b-1f3fc-2642",uc_output:"1f64b-1f3fc-200d-2642-fe0f",uc_match:"1f64b-1f3fc-2642-fe0f",uc_greedy:"1f64b-1f3fc-2642",shortnames:[":man_raising_hand_medium_light_skin_tone:"],category:"people"},":man_raising_hand_tone3:":{uc_base:"1f64b-1f3fd-2642",uc_output:"1f64b-1f3fd-200d-2642-fe0f",uc_match:"1f64b-1f3fd-2642-fe0f",uc_greedy:"1f64b-1f3fd-2642",shortnames:[":man_raising_hand_medium_skin_tone:"],category:"people"},":man_raising_hand_tone4:":{uc_base:"1f64b-1f3fe-2642",uc_output:"1f64b-1f3fe-200d-2642-fe0f",uc_match:"1f64b-1f3fe-2642-fe0f",uc_greedy:"1f64b-1f3fe-2642",shortnames:[":man_raising_hand_medium_dark_skin_tone:"],category:"people"},":man_raising_hand_tone5:":{uc_base:"1f64b-1f3ff-2642",uc_output:"1f64b-1f3ff-200d-2642-fe0f",uc_match:"1f64b-1f3ff-2642-fe0f",uc_greedy:"1f64b-1f3ff-2642",shortnames:[":man_raising_hand_dark_skin_tone:"],category:"people"},":man_rowing_boat_tone1:":{uc_base:"1f6a3-1f3fb-2642",uc_output:"1f6a3-1f3fb-200d-2642-fe0f",uc_match:"1f6a3-1f3fb-2642-fe0f",uc_greedy:"1f6a3-1f3fb-2642",shortnames:[":man_rowing_boat_light_skin_tone:"],category:"activity"},":man_rowing_boat_tone2:":{uc_base:"1f6a3-1f3fc-2642",uc_output:"1f6a3-1f3fc-200d-2642-fe0f",uc_match:"1f6a3-1f3fc-2642-fe0f",uc_greedy:"1f6a3-1f3fc-2642",shortnames:[":man_rowing_boat_medium_light_skin_tone:"],category:"activity"},":man_rowing_boat_tone3:":{uc_base:"1f6a3-1f3fd-2642",uc_output:"1f6a3-1f3fd-200d-2642-fe0f",uc_match:"1f6a3-1f3fd-2642-fe0f",uc_greedy:"1f6a3-1f3fd-2642",shortnames:[":man_rowing_boat_medium_skin_tone:"],category:"activity"},":man_rowing_boat_tone4:":{uc_base:"1f6a3-1f3fe-2642",uc_output:"1f6a3-1f3fe-200d-2642-fe0f",uc_match:"1f6a3-1f3fe-2642-fe0f",uc_greedy:"1f6a3-1f3fe-2642",shortnames:[":man_rowing_boat_medium_dark_skin_tone:"],category:"activity"},":man_rowing_boat_tone5:":{uc_base:"1f6a3-1f3ff-2642",uc_output:"1f6a3-1f3ff-200d-2642-fe0f",uc_match:"1f6a3-1f3ff-2642-fe0f",uc_greedy:"1f6a3-1f3ff-2642",shortnames:[":man_rowing_boat_dark_skin_tone:"],category:"activity"},":man_running_tone1:":{uc_base:"1f3c3-1f3fb-2642",uc_output:"1f3c3-1f3fb-200d-2642-fe0f",uc_match:"1f3c3-1f3fb-2642-fe0f",uc_greedy:"1f3c3-1f3fb-2642",shortnames:[":man_running_light_skin_tone:"],category:"people"},":man_running_tone2:":{uc_base:"1f3c3-1f3fc-2642",uc_output:"1f3c3-1f3fc-200d-2642-fe0f",uc_match:"1f3c3-1f3fc-2642-fe0f",uc_greedy:"1f3c3-1f3fc-2642",shortnames:[":man_running_medium_light_skin_tone:"],category:"people"},":man_running_tone3:":{uc_base:"1f3c3-1f3fd-2642",uc_output:"1f3c3-1f3fd-200d-2642-fe0f",uc_match:"1f3c3-1f3fd-2642-fe0f",uc_greedy:"1f3c3-1f3fd-2642",shortnames:[":man_running_medium_skin_tone:"],category:"people"},":man_running_tone4:":{uc_base:"1f3c3-1f3fe-2642",uc_output:"1f3c3-1f3fe-200d-2642-fe0f",uc_match:"1f3c3-1f3fe-2642-fe0f",uc_greedy:"1f3c3-1f3fe-2642",shortnames:[":man_running_medium_dark_skin_tone:"],category:"people"},":man_running_tone5:":{uc_base:"1f3c3-1f3ff-2642",uc_output:"1f3c3-1f3ff-200d-2642-fe0f",uc_match:"1f3c3-1f3ff-2642-fe0f",uc_greedy:"1f3c3-1f3ff-2642",shortnames:[":man_running_dark_skin_tone:"],category:"people"},":man_shrugging_tone1:":{uc_base:"1f937-1f3fb-2642",uc_output:"1f937-1f3fb-200d-2642-fe0f",uc_match:"1f937-1f3fb-2642-fe0f",uc_greedy:"1f937-1f3fb-2642",shortnames:[":man_shrugging_light_skin_tone:"],category:"people"},":man_shrugging_tone2:":{uc_base:"1f937-1f3fc-2642",uc_output:"1f937-1f3fc-200d-2642-fe0f",uc_match:"1f937-1f3fc-2642-fe0f",uc_greedy:"1f937-1f3fc-2642",shortnames:[":man_shrugging_medium_light_skin_tone:"],category:"people"},":man_shrugging_tone3:":{uc_base:"1f937-1f3fd-2642",uc_output:"1f937-1f3fd-200d-2642-fe0f",uc_match:"1f937-1f3fd-2642-fe0f",uc_greedy:"1f937-1f3fd-2642",shortnames:[":man_shrugging_medium_skin_tone:"],category:"people"},":man_shrugging_tone4:":{uc_base:"1f937-1f3fe-2642",uc_output:"1f937-1f3fe-200d-2642-fe0f",uc_match:"1f937-1f3fe-2642-fe0f",uc_greedy:"1f937-1f3fe-2642",shortnames:[":man_shrugging_medium_dark_skin_tone:"],category:"people"},":man_shrugging_tone5:":{uc_base:"1f937-1f3ff-2642",uc_output:"1f937-1f3ff-200d-2642-fe0f",uc_match:"1f937-1f3ff-2642-fe0f",uc_greedy:"1f937-1f3ff-2642",shortnames:[":man_shrugging_dark_skin_tone:"],category:"people"},":man_surfing_tone1:":{uc_base:"1f3c4-1f3fb-2642",uc_output:"1f3c4-1f3fb-200d-2642-fe0f",uc_match:"1f3c4-1f3fb-2642-fe0f",uc_greedy:"1f3c4-1f3fb-2642",shortnames:[":man_surfing_light_skin_tone:"],category:"activity"},":man_surfing_tone2:":{uc_base:"1f3c4-1f3fc-2642",uc_output:"1f3c4-1f3fc-200d-2642-fe0f",uc_match:"1f3c4-1f3fc-2642-fe0f",uc_greedy:"1f3c4-1f3fc-2642",shortnames:[":man_surfing_medium_light_skin_tone:"],category:"activity"},":man_surfing_tone3:":{uc_base:"1f3c4-1f3fd-2642",uc_output:"1f3c4-1f3fd-200d-2642-fe0f",uc_match:"1f3c4-1f3fd-2642-fe0f",uc_greedy:"1f3c4-1f3fd-2642",shortnames:[":man_surfing_medium_skin_tone:"],category:"activity"},":man_surfing_tone4:":{uc_base:"1f3c4-1f3fe-2642",uc_output:"1f3c4-1f3fe-200d-2642-fe0f",uc_match:"1f3c4-1f3fe-2642-fe0f",uc_greedy:"1f3c4-1f3fe-2642",shortnames:[":man_surfing_medium_dark_skin_tone:"],category:"activity"},":man_surfing_tone5:":{uc_base:"1f3c4-1f3ff-2642",uc_output:"1f3c4-1f3ff-200d-2642-fe0f",uc_match:"1f3c4-1f3ff-2642-fe0f",uc_greedy:"1f3c4-1f3ff-2642",shortnames:[":man_surfing_dark_skin_tone:"],category:"activity"},":man_swimming_tone1:":{uc_base:"1f3ca-1f3fb-2642",uc_output:"1f3ca-1f3fb-200d-2642-fe0f",uc_match:"1f3ca-1f3fb-2642-fe0f",uc_greedy:"1f3ca-1f3fb-2642",shortnames:[":man_swimming_light_skin_tone:"],category:"activity"},":man_swimming_tone2:":{uc_base:"1f3ca-1f3fc-2642",uc_output:"1f3ca-1f3fc-200d-2642-fe0f",uc_match:"1f3ca-1f3fc-2642-fe0f",uc_greedy:"1f3ca-1f3fc-2642",shortnames:[":man_swimming_medium_light_skin_tone:"],category:"activity"},":man_swimming_tone3:":{uc_base:"1f3ca-1f3fd-2642",uc_output:"1f3ca-1f3fd-200d-2642-fe0f",uc_match:"1f3ca-1f3fd-2642-fe0f",uc_greedy:"1f3ca-1f3fd-2642",shortnames:[":man_swimming_medium_skin_tone:"],category:"activity"},":man_swimming_tone4:":{uc_base:"1f3ca-1f3fe-2642",uc_output:"1f3ca-1f3fe-200d-2642-fe0f",uc_match:"1f3ca-1f3fe-2642-fe0f",uc_greedy:"1f3ca-1f3fe-2642",shortnames:[":man_swimming_medium_dark_skin_tone:"],category:"activity"},":man_swimming_tone5:":{uc_base:"1f3ca-1f3ff-2642",uc_output:"1f3ca-1f3ff-200d-2642-fe0f",uc_match:"1f3ca-1f3ff-2642-fe0f",uc_greedy:"1f3ca-1f3ff-2642",shortnames:[":man_swimming_dark_skin_tone:"],category:"activity"},":man_tipping_hand_tone1:":{uc_base:"1f481-1f3fb-2642",uc_output:"1f481-1f3fb-200d-2642-fe0f",uc_match:"1f481-1f3fb-2642-fe0f",uc_greedy:"1f481-1f3fb-2642",shortnames:[":man_tipping_hand_light_skin_tone:"],category:"people"},":man_tipping_hand_tone2:":{uc_base:"1f481-1f3fc-2642",uc_output:"1f481-1f3fc-200d-2642-fe0f",uc_match:"1f481-1f3fc-2642-fe0f",uc_greedy:"1f481-1f3fc-2642",shortnames:[":man_tipping_hand_medium_light_skin_tone:"],category:"people"},":man_tipping_hand_tone3:":{uc_base:"1f481-1f3fd-2642",uc_output:"1f481-1f3fd-200d-2642-fe0f",uc_match:"1f481-1f3fd-2642-fe0f",uc_greedy:"1f481-1f3fd-2642",shortnames:[":man_tipping_hand_medium_skin_tone:"],category:"people"},":man_tipping_hand_tone4:":{uc_base:"1f481-1f3fe-2642",uc_output:"1f481-1f3fe-200d-2642-fe0f",uc_match:"1f481-1f3fe-2642-fe0f",uc_greedy:"1f481-1f3fe-2642",shortnames:[":man_tipping_hand_medium_dark_skin_tone:"],category:"people"},":man_tipping_hand_tone5:":{uc_base:"1f481-1f3ff-2642",uc_output:"1f481-1f3ff-200d-2642-fe0f",uc_match:"1f481-1f3ff-2642-fe0f",uc_greedy:"1f481-1f3ff-2642",shortnames:[":man_tipping_hand_dark_skin_tone:"],category:"people"},":man_vampire_tone1:":{uc_base:"1f9db-1f3fb-2642",uc_output:"1f9db-1f3fb-200d-2642-fe0f",uc_match:"1f9db-1f3fb-2642-fe0f",uc_greedy:"1f9db-1f3fb-2642",shortnames:[":man_vampire_light_skin_tone:"],category:"people"},":man_vampire_tone2:":{uc_base:"1f9db-1f3fc-2642",uc_output:"1f9db-1f3fc-200d-2642-fe0f",uc_match:"1f9db-1f3fc-2642-fe0f",uc_greedy:"1f9db-1f3fc-2642",shortnames:[":man_vampire_medium_light_skin_tone:"],category:"people"},":man_vampire_tone3:":{uc_base:"1f9db-1f3fd-2642",uc_output:"1f9db-1f3fd-200d-2642-fe0f",uc_match:"1f9db-1f3fd-2642-fe0f",uc_greedy:"1f9db-1f3fd-2642",shortnames:[":man_vampire_medium_skin_tone:"],category:"people"},":man_vampire_tone4:":{uc_base:"1f9db-1f3fe-2642",uc_output:"1f9db-1f3fe-200d-2642-fe0f",uc_match:"1f9db-1f3fe-2642-fe0f",uc_greedy:"1f9db-1f3fe-2642",shortnames:[":man_vampire_medium_dark_skin_tone:"],category:"people"},":man_vampire_tone5:":{uc_base:"1f9db-1f3ff-2642",uc_output:"1f9db-1f3ff-200d-2642-fe0f",uc_match:"1f9db-1f3ff-2642-fe0f",uc_greedy:"1f9db-1f3ff-2642",shortnames:[":man_vampire_dark_skin_tone:"],category:"people"},":man_walking_tone1:":{uc_base:"1f6b6-1f3fb-2642",uc_output:"1f6b6-1f3fb-200d-2642-fe0f",uc_match:"1f6b6-1f3fb-2642-fe0f",uc_greedy:"1f6b6-1f3fb-2642",shortnames:[":man_walking_light_skin_tone:"],category:"people"},":man_walking_tone2:":{uc_base:"1f6b6-1f3fc-2642",uc_output:"1f6b6-1f3fc-200d-2642-fe0f",uc_match:"1f6b6-1f3fc-2642-fe0f",uc_greedy:"1f6b6-1f3fc-2642",shortnames:[":man_walking_medium_light_skin_tone:"],category:"people"},":man_walking_tone3:":{uc_base:"1f6b6-1f3fd-2642",uc_output:"1f6b6-1f3fd-200d-2642-fe0f",uc_match:"1f6b6-1f3fd-2642-fe0f",uc_greedy:"1f6b6-1f3fd-2642",shortnames:[":man_walking_medium_skin_tone:"],category:"people"},":man_walking_tone4:":{uc_base:"1f6b6-1f3fe-2642",uc_output:"1f6b6-1f3fe-200d-2642-fe0f",uc_match:"1f6b6-1f3fe-2642-fe0f",uc_greedy:"1f6b6-1f3fe-2642",shortnames:[":man_walking_medium_dark_skin_tone:"],category:"people"},":man_walking_tone5:":{uc_base:"1f6b6-1f3ff-2642",uc_output:"1f6b6-1f3ff-200d-2642-fe0f",uc_match:"1f6b6-1f3ff-2642-fe0f",uc_greedy:"1f6b6-1f3ff-2642",shortnames:[":man_walking_dark_skin_tone:"],category:"people"},":man_wearing_turban_tone1:":{uc_base:"1f473-1f3fb-2642",uc_output:"1f473-1f3fb-200d-2642-fe0f",uc_match:"1f473-1f3fb-2642-fe0f",uc_greedy:"1f473-1f3fb-2642",shortnames:[":man_wearing_turban_light_skin_tone:"],category:"people"},":man_wearing_turban_tone2:":{uc_base:"1f473-1f3fc-2642",uc_output:"1f473-1f3fc-200d-2642-fe0f",uc_match:"1f473-1f3fc-2642-fe0f",uc_greedy:"1f473-1f3fc-2642",shortnames:[":man_wearing_turban_medium_light_skin_tone:"],category:"people"},":man_wearing_turban_tone3:":{uc_base:"1f473-1f3fd-2642",uc_output:"1f473-1f3fd-200d-2642-fe0f",uc_match:"1f473-1f3fd-2642-fe0f",uc_greedy:"1f473-1f3fd-2642",shortnames:[":man_wearing_turban_medium_skin_tone:"],category:"people"},":man_wearing_turban_tone4:":{uc_base:"1f473-1f3fe-2642",uc_output:"1f473-1f3fe-200d-2642-fe0f",uc_match:"1f473-1f3fe-2642-fe0f",uc_greedy:"1f473-1f3fe-2642",shortnames:[":man_wearing_turban_medium_dark_skin_tone:"],category:"people"},":man_wearing_turban_tone5:":{uc_base:"1f473-1f3ff-2642",uc_output:"1f473-1f3ff-200d-2642-fe0f",uc_match:"1f473-1f3ff-2642-fe0f",uc_greedy:"1f473-1f3ff-2642",shortnames:[":man_wearing_turban_dark_skin_tone:"],category:"people"},":mermaid_tone1:":{uc_base:"1f9dc-1f3fb-2640",uc_output:"1f9dc-1f3fb-200d-2640-fe0f",uc_match:"1f9dc-1f3fb-2640-fe0f",uc_greedy:"1f9dc-1f3fb-2640",shortnames:[":mermaid_light_skin_tone:"],category:"people"},":mermaid_tone2:":{uc_base:"1f9dc-1f3fc-2640",uc_output:"1f9dc-1f3fc-200d-2640-fe0f",uc_match:"1f9dc-1f3fc-2640-fe0f",uc_greedy:"1f9dc-1f3fc-2640",shortnames:[":mermaid_medium_light_skin_tone:"],category:"people"},":mermaid_tone3:":{uc_base:"1f9dc-1f3fd-2640",uc_output:"1f9dc-1f3fd-200d-2640-fe0f",uc_match:"1f9dc-1f3fd-2640-fe0f",uc_greedy:"1f9dc-1f3fd-2640",shortnames:[":mermaid_medium_skin_tone:"],category:"people"},":mermaid_tone4:":{uc_base:"1f9dc-1f3fe-2640",uc_output:"1f9dc-1f3fe-200d-2640-fe0f",uc_match:"1f9dc-1f3fe-2640-fe0f",uc_greedy:"1f9dc-1f3fe-2640",shortnames:[":mermaid_medium_dark_skin_tone:"],category:"people"},":mermaid_tone5:":{uc_base:"1f9dc-1f3ff-2640",uc_output:"1f9dc-1f3ff-200d-2640-fe0f",uc_match:"1f9dc-1f3ff-2640-fe0f",uc_greedy:"1f9dc-1f3ff-2640",shortnames:[":mermaid_dark_skin_tone:"],category:"people"},":merman_tone1:":{uc_base:"1f9dc-1f3fb-2642",uc_output:"1f9dc-1f3fb-200d-2642-fe0f",uc_match:"1f9dc-1f3fb-2642-fe0f",uc_greedy:"1f9dc-1f3fb-2642",shortnames:[":merman_light_skin_tone:"],category:"people"},":merman_tone2:":{uc_base:"1f9dc-1f3fc-2642",uc_output:"1f9dc-1f3fc-200d-2642-fe0f",uc_match:"1f9dc-1f3fc-2642-fe0f",uc_greedy:"1f9dc-1f3fc-2642",shortnames:[":merman_medium_light_skin_tone:"],category:"people"},":merman_tone3:":{uc_base:"1f9dc-1f3fd-2642",uc_output:"1f9dc-1f3fd-200d-2642-fe0f",uc_match:"1f9dc-1f3fd-2642-fe0f",uc_greedy:"1f9dc-1f3fd-2642",shortnames:[":merman_medium_skin_tone:"],category:"people"},":merman_tone4:":{uc_base:"1f9dc-1f3fe-2642",uc_output:"1f9dc-1f3fe-200d-2642-fe0f",uc_match:"1f9dc-1f3fe-2642-fe0f",uc_greedy:"1f9dc-1f3fe-2642",shortnames:[":merman_medium_dark_skin_tone:"],category:"people"},":merman_tone5:":{uc_base:"1f9dc-1f3ff-2642",uc_output:"1f9dc-1f3ff-200d-2642-fe0f",uc_match:"1f9dc-1f3ff-2642-fe0f",uc_greedy:"1f9dc-1f3ff-2642",shortnames:[":merman_dark_skin_tone:"],category:"people"},":woman_biking_tone1:":{uc_base:"1f6b4-1f3fb-2640",uc_output:"1f6b4-1f3fb-200d-2640-fe0f",uc_match:"1f6b4-1f3fb-2640-fe0f",uc_greedy:"1f6b4-1f3fb-2640",shortnames:[":woman_biking_light_skin_tone:"],category:"activity"},":woman_biking_tone2:":{uc_base:"1f6b4-1f3fc-2640",uc_output:"1f6b4-1f3fc-200d-2640-fe0f",uc_match:"1f6b4-1f3fc-2640-fe0f",uc_greedy:"1f6b4-1f3fc-2640",shortnames:[":woman_biking_medium_light_skin_tone:"],category:"activity"},":woman_biking_tone3:":{uc_base:"1f6b4-1f3fd-2640",uc_output:"1f6b4-1f3fd-200d-2640-fe0f",uc_match:"1f6b4-1f3fd-2640-fe0f",uc_greedy:"1f6b4-1f3fd-2640",shortnames:[":woman_biking_medium_skin_tone:"],category:"activity"},":woman_biking_tone4:":{uc_base:"1f6b4-1f3fe-2640",uc_output:"1f6b4-1f3fe-200d-2640-fe0f",uc_match:"1f6b4-1f3fe-2640-fe0f",uc_greedy:"1f6b4-1f3fe-2640",shortnames:[":woman_biking_medium_dark_skin_tone:"],category:"activity"},":woman_biking_tone5:":{uc_base:"1f6b4-1f3ff-2640",uc_output:"1f6b4-1f3ff-200d-2640-fe0f",uc_match:"1f6b4-1f3ff-2640-fe0f",uc_greedy:"1f6b4-1f3ff-2640",shortnames:[":woman_biking_dark_skin_tone:"],category:"activity"},":woman_bowing_tone1:":{uc_base:"1f647-1f3fb-2640",uc_output:"1f647-1f3fb-200d-2640-fe0f",uc_match:"1f647-1f3fb-2640-fe0f",uc_greedy:"1f647-1f3fb-2640",shortnames:[":woman_bowing_light_skin_tone:"],category:"people"},":woman_bowing_tone2:":{uc_base:"1f647-1f3fc-2640",uc_output:"1f647-1f3fc-200d-2640-fe0f",uc_match:"1f647-1f3fc-2640-fe0f",uc_greedy:"1f647-1f3fc-2640",shortnames:[":woman_bowing_medium_light_skin_tone:"],category:"people"},":woman_bowing_tone3:":{uc_base:"1f647-1f3fd-2640",uc_output:"1f647-1f3fd-200d-2640-fe0f",uc_match:"1f647-1f3fd-2640-fe0f",uc_greedy:"1f647-1f3fd-2640",shortnames:[":woman_bowing_medium_skin_tone:"],category:"people"},":woman_bowing_tone4:":{uc_base:"1f647-1f3fe-2640",uc_output:"1f647-1f3fe-200d-2640-fe0f",uc_match:"1f647-1f3fe-2640-fe0f",uc_greedy:"1f647-1f3fe-2640",shortnames:[":woman_bowing_medium_dark_skin_tone:"],category:"people"},":woman_bowing_tone5:":{uc_base:"1f647-1f3ff-2640",uc_output:"1f647-1f3ff-200d-2640-fe0f",uc_match:"1f647-1f3ff-2640-fe0f",uc_greedy:"1f647-1f3ff-2640",shortnames:[":woman_bowing_dark_skin_tone:"],category:"people"},":woman_cartwheeling_tone1:":{uc_base:"1f938-1f3fb-2640",uc_output:"1f938-1f3fb-200d-2640-fe0f",uc_match:"1f938-1f3fb-2640-fe0f",uc_greedy:"1f938-1f3fb-2640",shortnames:[":woman_cartwheeling_light_skin_tone:"],category:"activity"},":woman_cartwheeling_tone2:":{uc_base:"1f938-1f3fc-2640",uc_output:"1f938-1f3fc-200d-2640-fe0f",uc_match:"1f938-1f3fc-2640-fe0f",uc_greedy:"1f938-1f3fc-2640",shortnames:[":woman_cartwheeling_medium_light_skin_tone:"],category:"activity"},":woman_cartwheeling_tone3:":{uc_base:"1f938-1f3fd-2640",uc_output:"1f938-1f3fd-200d-2640-fe0f",uc_match:"1f938-1f3fd-2640-fe0f",uc_greedy:"1f938-1f3fd-2640",shortnames:[":woman_cartwheeling_medium_skin_tone:"],category:"activity"},":woman_cartwheeling_tone4:":{uc_base:"1f938-1f3fe-2640",uc_output:"1f938-1f3fe-200d-2640-fe0f",uc_match:"1f938-1f3fe-2640-fe0f",uc_greedy:"1f938-1f3fe-2640",shortnames:[":woman_cartwheeling_medium_dark_skin_tone:"],category:"activity"},":woman_cartwheeling_tone5:":{uc_base:"1f938-1f3ff-2640",uc_output:"1f938-1f3ff-200d-2640-fe0f",uc_match:"1f938-1f3ff-2640-fe0f",uc_greedy:"1f938-1f3ff-2640",shortnames:[":woman_cartwheeling_dark_skin_tone:"],category:"activity"},":woman_climbing_tone1:":{uc_base:"1f9d7-1f3fb-2640",uc_output:"1f9d7-1f3fb-200d-2640-fe0f",uc_match:"1f9d7-1f3fb-2640-fe0f",uc_greedy:"1f9d7-1f3fb-2640",shortnames:[":woman_climbing_light_skin_tone:"],category:"activity"},":woman_climbing_tone2:":{uc_base:"1f9d7-1f3fc-2640",uc_output:"1f9d7-1f3fc-200d-2640-fe0f",uc_match:"1f9d7-1f3fc-2640-fe0f",uc_greedy:"1f9d7-1f3fc-2640",shortnames:[":woman_climbing_medium_light_skin_tone:"],category:"activity"},":woman_climbing_tone3:":{uc_base:"1f9d7-1f3fd-2640",uc_output:"1f9d7-1f3fd-200d-2640-fe0f",uc_match:"1f9d7-1f3fd-2640-fe0f",uc_greedy:"1f9d7-1f3fd-2640",shortnames:[":woman_climbing_medium_skin_tone:"],category:"activity"},":woman_climbing_tone4:":{uc_base:"1f9d7-1f3fe-2640",uc_output:"1f9d7-1f3fe-200d-2640-fe0f",uc_match:"1f9d7-1f3fe-2640-fe0f",uc_greedy:"1f9d7-1f3fe-2640",shortnames:[":woman_climbing_medium_dark_skin_tone:"],category:"activity"},":woman_climbing_tone5:":{uc_base:"1f9d7-1f3ff-2640",uc_output:"1f9d7-1f3ff-200d-2640-fe0f",uc_match:"1f9d7-1f3ff-2640-fe0f",uc_greedy:"1f9d7-1f3ff-2640",shortnames:[":woman_climbing_dark_skin_tone:"],category:"activity"},":woman_construction_worker_tone1:":{uc_base:"1f477-1f3fb-2640",uc_output:"1f477-1f3fb-200d-2640-fe0f",uc_match:"1f477-1f3fb-2640-fe0f",uc_greedy:"1f477-1f3fb-2640",shortnames:[":woman_construction_worker_light_skin_tone:"],category:"people"},":woman_construction_worker_tone2:":{uc_base:"1f477-1f3fc-2640",uc_output:"1f477-1f3fc-200d-2640-fe0f",uc_match:"1f477-1f3fc-2640-fe0f",uc_greedy:"1f477-1f3fc-2640",shortnames:[":woman_construction_worker_medium_light_skin_tone:"],category:"people"},":woman_construction_worker_tone3:":{uc_base:"1f477-1f3fd-2640",uc_output:"1f477-1f3fd-200d-2640-fe0f",uc_match:"1f477-1f3fd-2640-fe0f",uc_greedy:"1f477-1f3fd-2640",shortnames:[":woman_construction_worker_medium_skin_tone:"],category:"people"},":woman_construction_worker_tone4:":{uc_base:"1f477-1f3fe-2640",uc_output:"1f477-1f3fe-200d-2640-fe0f",uc_match:"1f477-1f3fe-2640-fe0f",uc_greedy:"1f477-1f3fe-2640",shortnames:[":woman_construction_worker_medium_dark_skin_tone:"],category:"people"},":woman_construction_worker_tone5:":{uc_base:"1f477-1f3ff-2640",uc_output:"1f477-1f3ff-200d-2640-fe0f",uc_match:"1f477-1f3ff-2640-fe0f",uc_greedy:"1f477-1f3ff-2640",shortnames:[":woman_construction_worker_dark_skin_tone:"],category:"people"},":woman_detective_tone1:":{uc_base:"1f575-1f3fb-2640",uc_output:"1f575-1f3fb-200d-2640-fe0f",uc_match:"1f575-fe0f-1f3fb-2640-fe0f",uc_greedy:"1f575-1f3fb-2640",shortnames:[":woman_detective_light_skin_tone:"],category:"people"},":woman_detective_tone2:":{uc_base:"1f575-1f3fc-2640",uc_output:"1f575-1f3fc-200d-2640-fe0f",uc_match:"1f575-fe0f-1f3fc-2640-fe0f",uc_greedy:"1f575-1f3fc-2640",shortnames:[":woman_detective_medium_light_skin_tone:"],category:"people"},":woman_detective_tone3:":{uc_base:"1f575-1f3fd-2640",uc_output:"1f575-1f3fd-200d-2640-fe0f",uc_match:"1f575-fe0f-1f3fd-2640-fe0f",uc_greedy:"1f575-1f3fd-2640",shortnames:[":woman_detective_medium_skin_tone:"],category:"people"},":woman_detective_tone4:":{uc_base:"1f575-1f3fe-2640",uc_output:"1f575-1f3fe-200d-2640-fe0f",uc_match:"1f575-fe0f-1f3fe-2640-fe0f",uc_greedy:"1f575-1f3fe-2640",shortnames:[":woman_detective_medium_dark_skin_tone:"],category:"people"},":woman_detective_tone5:":{uc_base:"1f575-1f3ff-2640",uc_output:"1f575-1f3ff-200d-2640-fe0f",uc_match:"1f575-fe0f-1f3ff-2640-fe0f",uc_greedy:"1f575-1f3ff-2640",shortnames:[":woman_detective_dark_skin_tone:"],category:"people"},":woman_elf_tone1:":{uc_base:"1f9dd-1f3fb-2640",uc_output:"1f9dd-1f3fb-200d-2640-fe0f",uc_match:"1f9dd-1f3fb-2640-fe0f",uc_greedy:"1f9dd-1f3fb-2640",shortnames:[":woman_elf_light_skin_tone:"],category:"people"},":woman_elf_tone2:":{uc_base:"1f9dd-1f3fc-2640",uc_output:"1f9dd-1f3fc-200d-2640-fe0f",uc_match:"1f9dd-1f3fc-2640-fe0f",uc_greedy:"1f9dd-1f3fc-2640",shortnames:[":woman_elf_medium_light_skin_tone:"],category:"people"},":woman_elf_tone3:":{uc_base:"1f9dd-1f3fd-2640",uc_output:"1f9dd-1f3fd-200d-2640-fe0f",uc_match:"1f9dd-1f3fd-2640-fe0f",uc_greedy:"1f9dd-1f3fd-2640",shortnames:[":woman_elf_medium_skin_tone:"],category:"people"},":woman_elf_tone4:":{uc_base:"1f9dd-1f3fe-2640",uc_output:"1f9dd-1f3fe-200d-2640-fe0f",uc_match:"1f9dd-1f3fe-2640-fe0f",uc_greedy:"1f9dd-1f3fe-2640",shortnames:[":woman_elf_medium_dark_skin_tone:"],category:"people"},":woman_elf_tone5:":{uc_base:"1f9dd-1f3ff-2640",uc_output:"1f9dd-1f3ff-200d-2640-fe0f",uc_match:"1f9dd-1f3ff-2640-fe0f",uc_greedy:"1f9dd-1f3ff-2640",shortnames:[":woman_elf_dark_skin_tone:"],category:"people"},":woman_facepalming_tone1:":{uc_base:"1f926-1f3fb-2640",uc_output:"1f926-1f3fb-200d-2640-fe0f",uc_match:"1f926-1f3fb-2640-fe0f",uc_greedy:"1f926-1f3fb-2640",shortnames:[":woman_facepalming_light_skin_tone:"],category:"people"},":woman_facepalming_tone2:":{uc_base:"1f926-1f3fc-2640",uc_output:"1f926-1f3fc-200d-2640-fe0f",uc_match:"1f926-1f3fc-2640-fe0f",uc_greedy:"1f926-1f3fc-2640",shortnames:[":woman_facepalming_medium_light_skin_tone:"],category:"people"},":woman_facepalming_tone3:":{uc_base:"1f926-1f3fd-2640",uc_output:"1f926-1f3fd-200d-2640-fe0f",uc_match:"1f926-1f3fd-2640-fe0f",uc_greedy:"1f926-1f3fd-2640",shortnames:[":woman_facepalming_medium_skin_tone:"],category:"people"},":woman_facepalming_tone4:":{uc_base:"1f926-1f3fe-2640",uc_output:"1f926-1f3fe-200d-2640-fe0f",uc_match:"1f926-1f3fe-2640-fe0f",uc_greedy:"1f926-1f3fe-2640",shortnames:[":woman_facepalming_medium_dark_skin_tone:"],category:"people"},":woman_facepalming_tone5:":{uc_base:"1f926-1f3ff-2640",uc_output:"1f926-1f3ff-200d-2640-fe0f",uc_match:"1f926-1f3ff-2640-fe0f",uc_greedy:"1f926-1f3ff-2640",shortnames:[":woman_facepalming_dark_skin_tone:"],category:"people"},":woman_fairy_tone1:":{uc_base:"1f9da-1f3fb-2640",uc_output:"1f9da-1f3fb-200d-2640-fe0f",uc_match:"1f9da-1f3fb-2640-fe0f",uc_greedy:"1f9da-1f3fb-2640",shortnames:[":woman_fairy_light_skin_tone:"],category:"people"},":woman_fairy_tone2:":{uc_base:"1f9da-1f3fc-2640",uc_output:"1f9da-1f3fc-200d-2640-fe0f",uc_match:"1f9da-1f3fc-2640-fe0f",uc_greedy:"1f9da-1f3fc-2640",shortnames:[":woman_fairy_medium_light_skin_tone:"],category:"people"},":woman_fairy_tone3:":{uc_base:"1f9da-1f3fd-2640",uc_output:"1f9da-1f3fd-200d-2640-fe0f",uc_match:"1f9da-1f3fd-2640-fe0f",uc_greedy:"1f9da-1f3fd-2640",shortnames:[":woman_fairy_medium_skin_tone:"],category:"people"},":woman_fairy_tone4:":{uc_base:"1f9da-1f3fe-2640",uc_output:"1f9da-1f3fe-200d-2640-fe0f",uc_match:"1f9da-1f3fe-2640-fe0f",uc_greedy:"1f9da-1f3fe-2640",shortnames:[":woman_fairy_medium_dark_skin_tone:"],category:"people"},":woman_fairy_tone5:":{uc_base:"1f9da-1f3ff-2640",uc_output:"1f9da-1f3ff-200d-2640-fe0f",uc_match:"1f9da-1f3ff-2640-fe0f",uc_greedy:"1f9da-1f3ff-2640",shortnames:[":woman_fairy_dark_skin_tone:"],category:"people"},":woman_frowning_tone1:":{uc_base:"1f64d-1f3fb-2640",uc_output:"1f64d-1f3fb-200d-2640-fe0f",uc_match:"1f64d-1f3fb-2640-fe0f",uc_greedy:"1f64d-1f3fb-2640",shortnames:[":woman_frowning_light_skin_tone:"],category:"people"},":woman_frowning_tone2:":{uc_base:"1f64d-1f3fc-2640",uc_output:"1f64d-1f3fc-200d-2640-fe0f",uc_match:"1f64d-1f3fc-2640-fe0f",uc_greedy:"1f64d-1f3fc-2640",shortnames:[":woman_frowning_medium_light_skin_tone:"],category:"people"},":woman_frowning_tone3:":{uc_base:"1f64d-1f3fd-2640",uc_output:"1f64d-1f3fd-200d-2640-fe0f",uc_match:"1f64d-1f3fd-2640-fe0f",uc_greedy:"1f64d-1f3fd-2640",shortnames:[":woman_frowning_medium_skin_tone:"],category:"people"},":woman_frowning_tone4:":{uc_base:"1f64d-1f3fe-2640",uc_output:"1f64d-1f3fe-200d-2640-fe0f",uc_match:"1f64d-1f3fe-2640-fe0f",uc_greedy:"1f64d-1f3fe-2640",shortnames:[":woman_frowning_medium_dark_skin_tone:"],category:"people"},":woman_frowning_tone5:":{uc_base:"1f64d-1f3ff-2640",uc_output:"1f64d-1f3ff-200d-2640-fe0f",uc_match:"1f64d-1f3ff-2640-fe0f",uc_greedy:"1f64d-1f3ff-2640",shortnames:[":woman_frowning_dark_skin_tone:"],category:"people"},":woman_gesturing_no_tone1:":{uc_base:"1f645-1f3fb-2640",uc_output:"1f645-1f3fb-200d-2640-fe0f",uc_match:"1f645-1f3fb-2640-fe0f",uc_greedy:"1f645-1f3fb-2640",shortnames:[":woman_gesturing_no_light_skin_tone:"],category:"people"},":woman_gesturing_no_tone2:":{uc_base:"1f645-1f3fc-2640",uc_output:"1f645-1f3fc-200d-2640-fe0f",uc_match:"1f645-1f3fc-2640-fe0f",uc_greedy:"1f645-1f3fc-2640",shortnames:[":woman_gesturing_no_medium_light_skin_tone:"],category:"people"},":woman_gesturing_no_tone3:":{uc_base:"1f645-1f3fd-2640",uc_output:"1f645-1f3fd-200d-2640-fe0f",uc_match:"1f645-1f3fd-2640-fe0f",uc_greedy:"1f645-1f3fd-2640",shortnames:[":woman_gesturing_no_medium_skin_tone:"],category:"people"},":woman_gesturing_no_tone4:":{uc_base:"1f645-1f3fe-2640",uc_output:"1f645-1f3fe-200d-2640-fe0f",uc_match:"1f645-1f3fe-2640-fe0f",uc_greedy:"1f645-1f3fe-2640",shortnames:[":woman_gesturing_no_medium_dark_skin_tone:"],category:"people"},":woman_gesturing_no_tone5:":{uc_base:"1f645-1f3ff-2640",uc_output:"1f645-1f3ff-200d-2640-fe0f",uc_match:"1f645-1f3ff-2640-fe0f",uc_greedy:"1f645-1f3ff-2640",shortnames:[":woman_gesturing_no_dark_skin_tone:"],category:"people"},":woman_gesturing_ok_tone1:":{uc_base:"1f646-1f3fb-2640",uc_output:"1f646-1f3fb-200d-2640-fe0f",uc_match:"1f646-1f3fb-2640-fe0f",uc_greedy:"1f646-1f3fb-2640",shortnames:[":woman_gesturing_ok_light_skin_tone:"],category:"people"},":woman_gesturing_ok_tone2:":{uc_base:"1f646-1f3fc-2640",uc_output:"1f646-1f3fc-200d-2640-fe0f",uc_match:"1f646-1f3fc-2640-fe0f",uc_greedy:"1f646-1f3fc-2640",shortnames:[":woman_gesturing_ok_medium_light_skin_tone:"],category:"people"},":woman_gesturing_ok_tone3:":{uc_base:"1f646-1f3fd-2640",uc_output:"1f646-1f3fd-200d-2640-fe0f",uc_match:"1f646-1f3fd-2640-fe0f",uc_greedy:"1f646-1f3fd-2640",shortnames:[":woman_gesturing_ok_medium_skin_tone:"],category:"people"},":woman_gesturing_ok_tone4:":{uc_base:"1f646-1f3fe-2640",uc_output:"1f646-1f3fe-200d-2640-fe0f",uc_match:"1f646-1f3fe-2640-fe0f",uc_greedy:"1f646-1f3fe-2640",shortnames:[":woman_gesturing_ok_medium_dark_skin_tone:"],category:"people"},":woman_gesturing_ok_tone5:":{uc_base:"1f646-1f3ff-2640",uc_output:"1f646-1f3ff-200d-2640-fe0f",uc_match:"1f646-1f3ff-2640-fe0f",uc_greedy:"1f646-1f3ff-2640",shortnames:[":woman_gesturing_ok_dark_skin_tone:"],category:"people"},":woman_getting_face_massage_tone1:":{uc_base:"1f486-1f3fb-2640",uc_output:"1f486-1f3fb-200d-2640-fe0f",uc_match:"1f486-1f3fb-2640-fe0f",uc_greedy:"1f486-1f3fb-2640",shortnames:[":woman_getting_face_massage_light_skin_tone:"],category:"people"},":woman_getting_face_massage_tone2:":{uc_base:"1f486-1f3fc-2640",uc_output:"1f486-1f3fc-200d-2640-fe0f",uc_match:"1f486-1f3fc-2640-fe0f",uc_greedy:"1f486-1f3fc-2640",shortnames:[":woman_getting_face_massage_medium_light_skin_tone:"],category:"people"},":woman_getting_face_massage_tone3:":{uc_base:"1f486-1f3fd-2640",uc_output:"1f486-1f3fd-200d-2640-fe0f",uc_match:"1f486-1f3fd-2640-fe0f",uc_greedy:"1f486-1f3fd-2640",shortnames:[":woman_getting_face_massage_medium_skin_tone:"],category:"people"},":woman_getting_face_massage_tone4:":{uc_base:"1f486-1f3fe-2640",uc_output:"1f486-1f3fe-200d-2640-fe0f",uc_match:"1f486-1f3fe-2640-fe0f",uc_greedy:"1f486-1f3fe-2640",shortnames:[":woman_getting_face_massage_medium_dark_skin_tone:"],category:"people"},":woman_getting_face_massage_tone5:":{uc_base:"1f486-1f3ff-2640",uc_output:"1f486-1f3ff-200d-2640-fe0f",uc_match:"1f486-1f3ff-2640-fe0f",uc_greedy:"1f486-1f3ff-2640",shortnames:[":woman_getting_face_massage_dark_skin_tone:"],category:"people"},":woman_getting_haircut_tone1:":{uc_base:"1f487-1f3fb-2640",uc_output:"1f487-1f3fb-200d-2640-fe0f",uc_match:"1f487-1f3fb-2640-fe0f",uc_greedy:"1f487-1f3fb-2640",shortnames:[":woman_getting_haircut_light_skin_tone:"],category:"people"},":woman_getting_haircut_tone2:":{uc_base:"1f487-1f3fc-2640",uc_output:"1f487-1f3fc-200d-2640-fe0f",uc_match:"1f487-1f3fc-2640-fe0f",uc_greedy:"1f487-1f3fc-2640",shortnames:[":woman_getting_haircut_medium_light_skin_tone:"],category:"people"},":woman_getting_haircut_tone3:":{uc_base:"1f487-1f3fd-2640",uc_output:"1f487-1f3fd-200d-2640-fe0f",uc_match:"1f487-1f3fd-2640-fe0f",uc_greedy:"1f487-1f3fd-2640",shortnames:[":woman_getting_haircut_medium_skin_tone:"],category:"people"},":woman_getting_haircut_tone4:":{uc_base:"1f487-1f3fe-2640",uc_output:"1f487-1f3fe-200d-2640-fe0f",uc_match:"1f487-1f3fe-2640-fe0f",uc_greedy:"1f487-1f3fe-2640",shortnames:[":woman_getting_haircut_medium_dark_skin_tone:"],category:"people"},":woman_getting_haircut_tone5:":{uc_base:"1f487-1f3ff-2640",uc_output:"1f487-1f3ff-200d-2640-fe0f",uc_match:"1f487-1f3ff-2640-fe0f",uc_greedy:"1f487-1f3ff-2640",shortnames:[":woman_getting_haircut_dark_skin_tone:"],category:"people"},":woman_golfing_tone1:":{uc_base:"1f3cc-1f3fb-2640",uc_output:"1f3cc-1f3fb-200d-2640-fe0f",uc_match:"1f3cc-fe0f-1f3fb-2640-fe0f",uc_greedy:"1f3cc-1f3fb-2640",shortnames:[":woman_golfing_light_skin_tone:"],category:"activity"},":woman_golfing_tone2:":{uc_base:"1f3cc-1f3fc-2640",uc_output:"1f3cc-1f3fc-200d-2640-fe0f",uc_match:"1f3cc-fe0f-1f3fc-2640-fe0f",uc_greedy:"1f3cc-1f3fc-2640",shortnames:[":woman_golfing_medium_light_skin_tone:"],category:"activity"},":woman_golfing_tone3:":{uc_base:"1f3cc-1f3fd-2640",uc_output:"1f3cc-1f3fd-200d-2640-fe0f",uc_match:"1f3cc-fe0f-1f3fd-2640-fe0f",uc_greedy:"1f3cc-1f3fd-2640",shortnames:[":woman_golfing_medium_skin_tone:"],category:"activity"},":woman_golfing_tone4:":{uc_base:"1f3cc-1f3fe-2640",uc_output:"1f3cc-1f3fe-200d-2640-fe0f",uc_match:"1f3cc-fe0f-1f3fe-2640-fe0f",uc_greedy:"1f3cc-1f3fe-2640",shortnames:[":woman_golfing_medium_dark_skin_tone:"],category:"activity"},":woman_golfing_tone5:":{uc_base:"1f3cc-1f3ff-2640",uc_output:"1f3cc-1f3ff-200d-2640-fe0f",uc_match:"1f3cc-fe0f-1f3ff-2640-fe0f",uc_greedy:"1f3cc-1f3ff-2640",shortnames:[":woman_golfing_dark_skin_tone:"],category:"activity"},":woman_guard_tone1:":{uc_base:"1f482-1f3fb-2640",uc_output:"1f482-1f3fb-200d-2640-fe0f",uc_match:"1f482-1f3fb-2640-fe0f",uc_greedy:"1f482-1f3fb-2640",shortnames:[":woman_guard_light_skin_tone:"],category:"people"},":woman_guard_tone2:":{uc_base:"1f482-1f3fc-2640",uc_output:"1f482-1f3fc-200d-2640-fe0f",uc_match:"1f482-1f3fc-2640-fe0f",uc_greedy:"1f482-1f3fc-2640",shortnames:[":woman_guard_medium_light_skin_tone:"],category:"people"},":woman_guard_tone3:":{uc_base:"1f482-1f3fd-2640",uc_output:"1f482-1f3fd-200d-2640-fe0f",uc_match:"1f482-1f3fd-2640-fe0f",uc_greedy:"1f482-1f3fd-2640",shortnames:[":woman_guard_medium_skin_tone:"],category:"people"},":woman_guard_tone4:":{uc_base:"1f482-1f3fe-2640",uc_output:"1f482-1f3fe-200d-2640-fe0f",uc_match:"1f482-1f3fe-2640-fe0f",uc_greedy:"1f482-1f3fe-2640",shortnames:[":woman_guard_medium_dark_skin_tone:"],category:"people"},":woman_guard_tone5:":{uc_base:"1f482-1f3ff-2640",uc_output:"1f482-1f3ff-200d-2640-fe0f",uc_match:"1f482-1f3ff-2640-fe0f",uc_greedy:"1f482-1f3ff-2640",shortnames:[":woman_guard_dark_skin_tone:"],category:"people"},":woman_health_worker_tone1:":{uc_base:"1f469-1f3fb-2695",uc_output:"1f469-1f3fb-200d-2695-fe0f",uc_match:"1f469-1f3fb-2695-fe0f",uc_greedy:"1f469-1f3fb-2695",shortnames:[":woman_health_worker_light_skin_tone:"],category:"people"},":woman_health_worker_tone2:":{uc_base:"1f469-1f3fc-2695",uc_output:"1f469-1f3fc-200d-2695-fe0f",uc_match:"1f469-1f3fc-2695-fe0f",uc_greedy:"1f469-1f3fc-2695",shortnames:[":woman_health_worker_medium_light_skin_tone:"],category:"people"},":woman_health_worker_tone3:":{uc_base:"1f469-1f3fd-2695",uc_output:"1f469-1f3fd-200d-2695-fe0f",uc_match:"1f469-1f3fd-2695-fe0f",uc_greedy:"1f469-1f3fd-2695",shortnames:[":woman_health_worker_medium_skin_tone:"],category:"people"},":woman_health_worker_tone4:":{uc_base:"1f469-1f3fe-2695",uc_output:"1f469-1f3fe-200d-2695-fe0f",uc_match:"1f469-1f3fe-2695-fe0f",uc_greedy:"1f469-1f3fe-2695",shortnames:[":woman_health_worker_medium_dark_skin_tone:"],category:"people"},":woman_health_worker_tone5:":{uc_base:"1f469-1f3ff-2695",uc_output:"1f469-1f3ff-200d-2695-fe0f",uc_match:"1f469-1f3ff-2695-fe0f",uc_greedy:"1f469-1f3ff-2695",shortnames:[":woman_health_worker_dark_skin_tone:"],category:"people"},":woman_in_lotus_position_tone1:":{uc_base:"1f9d8-1f3fb-2640",uc_output:"1f9d8-1f3fb-200d-2640-fe0f",uc_match:"1f9d8-1f3fb-2640-fe0f",uc_greedy:"1f9d8-1f3fb-2640",shortnames:[":woman_in_lotus_position_light_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone2:":{uc_base:"1f9d8-1f3fc-2640",uc_output:"1f9d8-1f3fc-200d-2640-fe0f",uc_match:"1f9d8-1f3fc-2640-fe0f",uc_greedy:"1f9d8-1f3fc-2640",shortnames:[":woman_in_lotus_position_medium_light_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone3:":{uc_base:"1f9d8-1f3fd-2640",uc_output:"1f9d8-1f3fd-200d-2640-fe0f",uc_match:"1f9d8-1f3fd-2640-fe0f",uc_greedy:"1f9d8-1f3fd-2640",shortnames:[":woman_in_lotus_position_medium_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone4:":{uc_base:"1f9d8-1f3fe-2640",uc_output:"1f9d8-1f3fe-200d-2640-fe0f",uc_match:"1f9d8-1f3fe-2640-fe0f",uc_greedy:"1f9d8-1f3fe-2640",shortnames:[":woman_in_lotus_position_medium_dark_skin_tone:"],category:"activity"},":woman_in_lotus_position_tone5:":{uc_base:"1f9d8-1f3ff-2640",uc_output:"1f9d8-1f3ff-200d-2640-fe0f",uc_match:"1f9d8-1f3ff-2640-fe0f",uc_greedy:"1f9d8-1f3ff-2640",shortnames:[":woman_in_lotus_position_dark_skin_tone:"],category:"activity"},":woman_in_steamy_room_tone1:":{uc_base:"1f9d6-1f3fb-2640",uc_output:"1f9d6-1f3fb-200d-2640-fe0f",uc_match:"1f9d6-1f3fb-2640-fe0f",uc_greedy:"1f9d6-1f3fb-2640",shortnames:[":woman_in_steamy_room_light_skin_tone:"],category:"people"},":woman_in_steamy_room_tone2:":{uc_base:"1f9d6-1f3fc-2640",uc_output:"1f9d6-1f3fc-200d-2640-fe0f",uc_match:"1f9d6-1f3fc-2640-fe0f",uc_greedy:"1f9d6-1f3fc-2640",shortnames:[":woman_in_steamy_room_medium_light_skin_tone:"],category:"people"},":woman_in_steamy_room_tone3:":{uc_base:"1f9d6-1f3fd-2640",uc_output:"1f9d6-1f3fd-200d-2640-fe0f",uc_match:"1f9d6-1f3fd-2640-fe0f",uc_greedy:"1f9d6-1f3fd-2640",shortnames:[":woman_in_steamy_room_medium_skin_tone:"],category:"people"},":woman_in_steamy_room_tone4:":{uc_base:"1f9d6-1f3fe-2640",uc_output:"1f9d6-1f3fe-200d-2640-fe0f",uc_match:"1f9d6-1f3fe-2640-fe0f",uc_greedy:"1f9d6-1f3fe-2640",shortnames:[":woman_in_steamy_room_medium_dark_skin_tone:"],category:"people"},":woman_in_steamy_room_tone5:":{uc_base:"1f9d6-1f3ff-2640",uc_output:"1f9d6-1f3ff-200d-2640-fe0f",uc_match:"1f9d6-1f3ff-2640-fe0f",uc_greedy:"1f9d6-1f3ff-2640",shortnames:[":woman_in_steamy_room_dark_skin_tone:"],category:"people"},":woman_judge_tone1:":{uc_base:"1f469-1f3fb-2696",uc_output:"1f469-1f3fb-200d-2696-fe0f",uc_match:"1f469-1f3fb-2696-fe0f",uc_greedy:"1f469-1f3fb-2696",shortnames:[":woman_judge_light_skin_tone:"],category:"people"},":woman_judge_tone2:":{uc_base:"1f469-1f3fc-2696",uc_output:"1f469-1f3fc-200d-2696-fe0f",uc_match:"1f469-1f3fc-2696-fe0f",uc_greedy:"1f469-1f3fc-2696",shortnames:[":woman_judge_medium_light_skin_tone:"],category:"people"},":woman_judge_tone3:":{uc_base:"1f469-1f3fd-2696",uc_output:"1f469-1f3fd-200d-2696-fe0f",uc_match:"1f469-1f3fd-2696-fe0f",uc_greedy:"1f469-1f3fd-2696",shortnames:[":woman_judge_medium_skin_tone:"],category:"people"},":woman_judge_tone4:":{uc_base:"1f469-1f3fe-2696",uc_output:"1f469-1f3fe-200d-2696-fe0f",uc_match:"1f469-1f3fe-2696-fe0f",uc_greedy:"1f469-1f3fe-2696",shortnames:[":woman_judge_medium_dark_skin_tone:"],category:"people"},":woman_judge_tone5:":{uc_base:"1f469-1f3ff-2696",uc_output:"1f469-1f3ff-200d-2696-fe0f",uc_match:"1f469-1f3ff-2696-fe0f",uc_greedy:"1f469-1f3ff-2696",shortnames:[":woman_judge_dark_skin_tone:"],category:"people"},":woman_juggling_tone1:":{uc_base:"1f939-1f3fb-2640",uc_output:"1f939-1f3fb-200d-2640-fe0f",uc_match:"1f939-1f3fb-2640-fe0f",uc_greedy:"1f939-1f3fb-2640",shortnames:[":woman_juggling_light_skin_tone:"],category:"activity"},":woman_juggling_tone2:":{uc_base:"1f939-1f3fc-2640",uc_output:"1f939-1f3fc-200d-2640-fe0f",uc_match:"1f939-1f3fc-2640-fe0f",uc_greedy:"1f939-1f3fc-2640",shortnames:[":woman_juggling_medium_light_skin_tone:"],category:"activity"},":woman_juggling_tone3:":{uc_base:"1f939-1f3fd-2640",uc_output:"1f939-1f3fd-200d-2640-fe0f",uc_match:"1f939-1f3fd-2640-fe0f",uc_greedy:"1f939-1f3fd-2640",shortnames:[":woman_juggling_medium_skin_tone:"],category:"activity"},":woman_juggling_tone4:":{uc_base:"1f939-1f3fe-2640",uc_output:"1f939-1f3fe-200d-2640-fe0f",uc_match:"1f939-1f3fe-2640-fe0f",uc_greedy:"1f939-1f3fe-2640",shortnames:[":woman_juggling_medium_dark_skin_tone:"],category:"activity"},":woman_juggling_tone5:":{uc_base:"1f939-1f3ff-2640",uc_output:"1f939-1f3ff-200d-2640-fe0f",uc_match:"1f939-1f3ff-2640-fe0f",uc_greedy:"1f939-1f3ff-2640",shortnames:[":woman_juggling_dark_skin_tone:"],category:"activity"},":woman_lifting_weights_tone1:":{uc_base:"1f3cb-1f3fb-2640",uc_output:"1f3cb-1f3fb-200d-2640-fe0f",uc_match:"1f3cb-fe0f-1f3fb-2640-fe0f",uc_greedy:"1f3cb-1f3fb-2640",shortnames:[":woman_lifting_weights_light_skin_tone:"],category:"activity"},":woman_lifting_weights_tone2:":{uc_base:"1f3cb-1f3fc-2640",uc_output:"1f3cb-1f3fc-200d-2640-fe0f",uc_match:"1f3cb-fe0f-1f3fc-2640-fe0f",uc_greedy:"1f3cb-1f3fc-2640",shortnames:[":woman_lifting_weights_medium_light_skin_tone:"],category:"activity"},":woman_lifting_weights_tone3:":{uc_base:"1f3cb-1f3fd-2640",uc_output:"1f3cb-1f3fd-200d-2640-fe0f",uc_match:"1f3cb-fe0f-1f3fd-2640-fe0f",uc_greedy:"1f3cb-1f3fd-2640",shortnames:[":woman_lifting_weights_medium_skin_tone:"],category:"activity"},":woman_lifting_weights_tone4:":{uc_base:"1f3cb-1f3fe-2640",uc_output:"1f3cb-1f3fe-200d-2640-fe0f",uc_match:"1f3cb-fe0f-1f3fe-2640-fe0f",uc_greedy:"1f3cb-1f3fe-2640",shortnames:[":woman_lifting_weights_medium_dark_skin_tone:"],category:"activity"},":woman_lifting_weights_tone5:":{uc_base:"1f3cb-1f3ff-2640",uc_output:"1f3cb-1f3ff-200d-2640-fe0f",uc_match:"1f3cb-fe0f-1f3ff-2640-fe0f",uc_greedy:"1f3cb-1f3ff-2640",shortnames:[":woman_lifting_weights_dark_skin_tone:"],category:"activity"},":woman_mage_tone1:":{uc_base:"1f9d9-1f3fb-2640",uc_output:"1f9d9-1f3fb-200d-2640-fe0f",uc_match:"1f9d9-1f3fb-2640-fe0f",uc_greedy:"1f9d9-1f3fb-2640",shortnames:[":woman_mage_light_skin_tone:"],category:"people"},":woman_mage_tone2:":{uc_base:"1f9d9-1f3fc-2640",uc_output:"1f9d9-1f3fc-200d-2640-fe0f",uc_match:"1f9d9-1f3fc-2640-fe0f",uc_greedy:"1f9d9-1f3fc-2640",shortnames:[":woman_mage_medium_light_skin_tone:"],category:"people"},":woman_mage_tone3:":{uc_base:"1f9d9-1f3fd-2640",uc_output:"1f9d9-1f3fd-200d-2640-fe0f",uc_match:"1f9d9-1f3fd-2640-fe0f",uc_greedy:"1f9d9-1f3fd-2640",shortnames:[":woman_mage_medium_skin_tone:"],category:"people"},":woman_mage_tone4:":{uc_base:"1f9d9-1f3fe-2640",uc_output:"1f9d9-1f3fe-200d-2640-fe0f",uc_match:"1f9d9-1f3fe-2640-fe0f",uc_greedy:"1f9d9-1f3fe-2640",shortnames:[":woman_mage_medium_dark_skin_tone:"],category:"people"},":woman_mage_tone5:":{uc_base:"1f9d9-1f3ff-2640",uc_output:"1f9d9-1f3ff-200d-2640-fe0f",uc_match:"1f9d9-1f3ff-2640-fe0f",uc_greedy:"1f9d9-1f3ff-2640",shortnames:[":woman_mage_dark_skin_tone:"],category:"people"},":woman_mountain_biking_tone1:":{uc_base:"1f6b5-1f3fb-2640",uc_output:"1f6b5-1f3fb-200d-2640-fe0f",uc_match:"1f6b5-1f3fb-2640-fe0f",uc_greedy:"1f6b5-1f3fb-2640",shortnames:[":woman_mountain_biking_light_skin_tone:"],category:"activity"},":woman_mountain_biking_tone2:":{uc_base:"1f6b5-1f3fc-2640",uc_output:"1f6b5-1f3fc-200d-2640-fe0f",uc_match:"1f6b5-1f3fc-2640-fe0f",uc_greedy:"1f6b5-1f3fc-2640",shortnames:[":woman_mountain_biking_medium_light_skin_tone:"],category:"activity"},":woman_mountain_biking_tone3:":{uc_base:"1f6b5-1f3fd-2640",uc_output:"1f6b5-1f3fd-200d-2640-fe0f",uc_match:"1f6b5-1f3fd-2640-fe0f",uc_greedy:"1f6b5-1f3fd-2640",shortnames:[":woman_mountain_biking_medium_skin_tone:"],category:"activity"},":woman_mountain_biking_tone4:":{uc_base:"1f6b5-1f3fe-2640",uc_output:"1f6b5-1f3fe-200d-2640-fe0f",uc_match:"1f6b5-1f3fe-2640-fe0f",uc_greedy:"1f6b5-1f3fe-2640",shortnames:[":woman_mountain_biking_medium_dark_skin_tone:"],category:"activity"},":woman_mountain_biking_tone5:":{uc_base:"1f6b5-1f3ff-2640",uc_output:"1f6b5-1f3ff-200d-2640-fe0f",uc_match:"1f6b5-1f3ff-2640-fe0f",uc_greedy:"1f6b5-1f3ff-2640",shortnames:[":woman_mountain_biking_dark_skin_tone:"],category:"activity"},":woman_pilot_tone1:":{uc_base:"1f469-1f3fb-2708",uc_output:"1f469-1f3fb-200d-2708-fe0f",uc_match:"1f469-1f3fb-2708-fe0f",uc_greedy:"1f469-1f3fb-2708",shortnames:[":woman_pilot_light_skin_tone:"],category:"people"},":woman_pilot_tone2:":{uc_base:"1f469-1f3fc-2708",uc_output:"1f469-1f3fc-200d-2708-fe0f",uc_match:"1f469-1f3fc-2708-fe0f",uc_greedy:"1f469-1f3fc-2708",shortnames:[":woman_pilot_medium_light_skin_tone:"],category:"people"},":woman_pilot_tone3:":{uc_base:"1f469-1f3fd-2708",uc_output:"1f469-1f3fd-200d-2708-fe0f",uc_match:"1f469-1f3fd-2708-fe0f",uc_greedy:"1f469-1f3fd-2708",shortnames:[":woman_pilot_medium_skin_tone:"],category:"people"},":woman_pilot_tone4:":{uc_base:"1f469-1f3fe-2708",uc_output:"1f469-1f3fe-200d-2708-fe0f",uc_match:"1f469-1f3fe-2708-fe0f",uc_greedy:"1f469-1f3fe-2708",shortnames:[":woman_pilot_medium_dark_skin_tone:"],category:"people"},":woman_pilot_tone5:":{uc_base:"1f469-1f3ff-2708",uc_output:"1f469-1f3ff-200d-2708-fe0f",uc_match:"1f469-1f3ff-2708-fe0f",uc_greedy:"1f469-1f3ff-2708",shortnames:[":woman_pilot_dark_skin_tone:"],category:"people"},":woman_playing_handball_tone1:":{uc_base:"1f93e-1f3fb-2640",uc_output:"1f93e-1f3fb-200d-2640-fe0f",uc_match:"1f93e-1f3fb-2640-fe0f",uc_greedy:"1f93e-1f3fb-2640",shortnames:[":woman_playing_handball_light_skin_tone:"],category:"activity"},":woman_playing_handball_tone2:":{uc_base:"1f93e-1f3fc-2640",uc_output:"1f93e-1f3fc-200d-2640-fe0f",uc_match:"1f93e-1f3fc-2640-fe0f",uc_greedy:"1f93e-1f3fc-2640",shortnames:[":woman_playing_handball_medium_light_skin_tone:"],category:"activity"},":woman_playing_handball_tone3:":{uc_base:"1f93e-1f3fd-2640",uc_output:"1f93e-1f3fd-200d-2640-fe0f",uc_match:"1f93e-1f3fd-2640-fe0f",uc_greedy:"1f93e-1f3fd-2640",shortnames:[":woman_playing_handball_medium_skin_tone:"],category:"activity"},":woman_playing_handball_tone4:":{uc_base:"1f93e-1f3fe-2640",uc_output:"1f93e-1f3fe-200d-2640-fe0f",uc_match:"1f93e-1f3fe-2640-fe0f",uc_greedy:"1f93e-1f3fe-2640",shortnames:[":woman_playing_handball_medium_dark_skin_tone:"],category:"activity"},":woman_playing_handball_tone5:":{uc_base:"1f93e-1f3ff-2640",uc_output:"1f93e-1f3ff-200d-2640-fe0f",uc_match:"1f93e-1f3ff-2640-fe0f",uc_greedy:"1f93e-1f3ff-2640",shortnames:[":woman_playing_handball_dark_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone1:":{uc_base:"1f93d-1f3fb-2640",uc_output:"1f93d-1f3fb-200d-2640-fe0f",uc_match:"1f93d-1f3fb-2640-fe0f",uc_greedy:"1f93d-1f3fb-2640",shortnames:[":woman_playing_water_polo_light_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone2:":{uc_base:"1f93d-1f3fc-2640",uc_output:"1f93d-1f3fc-200d-2640-fe0f",uc_match:"1f93d-1f3fc-2640-fe0f",uc_greedy:"1f93d-1f3fc-2640",shortnames:[":woman_playing_water_polo_medium_light_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone3:":{uc_base:"1f93d-1f3fd-2640",uc_output:"1f93d-1f3fd-200d-2640-fe0f",uc_match:"1f93d-1f3fd-2640-fe0f",uc_greedy:"1f93d-1f3fd-2640",shortnames:[":woman_playing_water_polo_medium_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone4:":{uc_base:"1f93d-1f3fe-2640",uc_output:"1f93d-1f3fe-200d-2640-fe0f",uc_match:"1f93d-1f3fe-2640-fe0f",uc_greedy:"1f93d-1f3fe-2640",shortnames:[":woman_playing_water_polo_medium_dark_skin_tone:"],category:"activity"},":woman_playing_water_polo_tone5:":{uc_base:"1f93d-1f3ff-2640",uc_output:"1f93d-1f3ff-200d-2640-fe0f",uc_match:"1f93d-1f3ff-2640-fe0f",uc_greedy:"1f93d-1f3ff-2640",shortnames:[":woman_playing_water_polo_dark_skin_tone:"],category:"activity"},":woman_police_officer_tone1:":{uc_base:"1f46e-1f3fb-2640",uc_output:"1f46e-1f3fb-200d-2640-fe0f",uc_match:"1f46e-1f3fb-2640-fe0f",uc_greedy:"1f46e-1f3fb-2640",shortnames:[":woman_police_officer_light_skin_tone:"],category:"people"},":woman_police_officer_tone2:":{uc_base:"1f46e-1f3fc-2640",uc_output:"1f46e-1f3fc-200d-2640-fe0f",uc_match:"1f46e-1f3fc-2640-fe0f",uc_greedy:"1f46e-1f3fc-2640",shortnames:[":woman_police_officer_medium_light_skin_tone:"],category:"people"},":woman_police_officer_tone3:":{uc_base:"1f46e-1f3fd-2640",uc_output:"1f46e-1f3fd-200d-2640-fe0f",uc_match:"1f46e-1f3fd-2640-fe0f",uc_greedy:"1f46e-1f3fd-2640",shortnames:[":woman_police_officer_medium_skin_tone:"],category:"people"},":woman_police_officer_tone4:":{uc_base:"1f46e-1f3fe-2640",uc_output:"1f46e-1f3fe-200d-2640-fe0f",uc_match:"1f46e-1f3fe-2640-fe0f",uc_greedy:"1f46e-1f3fe-2640",shortnames:[":woman_police_officer_medium_dark_skin_tone:"],category:"people"},":woman_police_officer_tone5:":{uc_base:"1f46e-1f3ff-2640",uc_output:"1f46e-1f3ff-200d-2640-fe0f",uc_match:"1f46e-1f3ff-2640-fe0f",uc_greedy:"1f46e-1f3ff-2640",shortnames:[":woman_police_officer_dark_skin_tone:"],category:"people"},":woman_pouting_tone1:":{uc_base:"1f64e-1f3fb-2640",uc_output:"1f64e-1f3fb-200d-2640-fe0f",uc_match:"1f64e-1f3fb-2640-fe0f",uc_greedy:"1f64e-1f3fb-2640",shortnames:[":woman_pouting_light_skin_tone:"],category:"people"},":woman_pouting_tone2:":{uc_base:"1f64e-1f3fc-2640",uc_output:"1f64e-1f3fc-200d-2640-fe0f",uc_match:"1f64e-1f3fc-2640-fe0f",uc_greedy:"1f64e-1f3fc-2640",shortnames:[":woman_pouting_medium_light_skin_tone:"],category:"people"},":woman_pouting_tone3:":{uc_base:"1f64e-1f3fd-2640",uc_output:"1f64e-1f3fd-200d-2640-fe0f",uc_match:"1f64e-1f3fd-2640-fe0f",uc_greedy:"1f64e-1f3fd-2640",shortnames:[":woman_pouting_medium_skin_tone:"],category:"people"},":woman_pouting_tone4:":{uc_base:"1f64e-1f3fe-2640",uc_output:"1f64e-1f3fe-200d-2640-fe0f",uc_match:"1f64e-1f3fe-2640-fe0f",uc_greedy:"1f64e-1f3fe-2640",shortnames:[":woman_pouting_medium_dark_skin_tone:"],category:"people"},":woman_pouting_tone5:":{uc_base:"1f64e-1f3ff-2640",uc_output:"1f64e-1f3ff-200d-2640-fe0f",uc_match:"1f64e-1f3ff-2640-fe0f",uc_greedy:"1f64e-1f3ff-2640",shortnames:[":woman_pouting_dark_skin_tone:"],category:"people"},":woman_raising_hand_tone1:":{uc_base:"1f64b-1f3fb-2640",uc_output:"1f64b-1f3fb-200d-2640-fe0f",uc_match:"1f64b-1f3fb-2640-fe0f",uc_greedy:"1f64b-1f3fb-2640",shortnames:[":woman_raising_hand_light_skin_tone:"],category:"people"},":woman_raising_hand_tone2:":{uc_base:"1f64b-1f3fc-2640",uc_output:"1f64b-1f3fc-200d-2640-fe0f",uc_match:"1f64b-1f3fc-2640-fe0f",uc_greedy:"1f64b-1f3fc-2640",shortnames:[":woman_raising_hand_medium_light_skin_tone:"],category:"people"},":woman_raising_hand_tone3:":{uc_base:"1f64b-1f3fd-2640",uc_output:"1f64b-1f3fd-200d-2640-fe0f",uc_match:"1f64b-1f3fd-2640-fe0f",uc_greedy:"1f64b-1f3fd-2640",shortnames:[":woman_raising_hand_medium_skin_tone:"],category:"people"},":woman_raising_hand_tone4:":{uc_base:"1f64b-1f3fe-2640",uc_output:"1f64b-1f3fe-200d-2640-fe0f",uc_match:"1f64b-1f3fe-2640-fe0f",uc_greedy:"1f64b-1f3fe-2640",shortnames:[":woman_raising_hand_medium_dark_skin_tone:"],category:"people"},":woman_raising_hand_tone5:":{uc_base:"1f64b-1f3ff-2640",uc_output:"1f64b-1f3ff-200d-2640-fe0f",uc_match:"1f64b-1f3ff-2640-fe0f",uc_greedy:"1f64b-1f3ff-2640",shortnames:[":woman_raising_hand_dark_skin_tone:"],category:"people"},":woman_rowing_boat_tone1:":{uc_base:"1f6a3-1f3fb-2640",uc_output:"1f6a3-1f3fb-200d-2640-fe0f",uc_match:"1f6a3-1f3fb-2640-fe0f",uc_greedy:"1f6a3-1f3fb-2640",shortnames:[":woman_rowing_boat_light_skin_tone:"],category:"activity"},":woman_rowing_boat_tone2:":{uc_base:"1f6a3-1f3fc-2640",uc_output:"1f6a3-1f3fc-200d-2640-fe0f",uc_match:"1f6a3-1f3fc-2640-fe0f",uc_greedy:"1f6a3-1f3fc-2640",shortnames:[":woman_rowing_boat_medium_light_skin_tone:"],category:"activity"},":woman_rowing_boat_tone3:":{uc_base:"1f6a3-1f3fd-2640",uc_output:"1f6a3-1f3fd-200d-2640-fe0f",uc_match:"1f6a3-1f3fd-2640-fe0f",uc_greedy:"1f6a3-1f3fd-2640",shortnames:[":woman_rowing_boat_medium_skin_tone:"],category:"activity"},":woman_rowing_boat_tone4:":{uc_base:"1f6a3-1f3fe-2640",uc_output:"1f6a3-1f3fe-200d-2640-fe0f",uc_match:"1f6a3-1f3fe-2640-fe0f",uc_greedy:"1f6a3-1f3fe-2640",shortnames:[":woman_rowing_boat_medium_dark_skin_tone:"],category:"activity"},":woman_rowing_boat_tone5:":{uc_base:"1f6a3-1f3ff-2640",uc_output:"1f6a3-1f3ff-200d-2640-fe0f",uc_match:"1f6a3-1f3ff-2640-fe0f",uc_greedy:"1f6a3-1f3ff-2640",shortnames:[":woman_rowing_boat_dark_skin_tone:"],category:"activity"},":woman_running_tone1:":{uc_base:"1f3c3-1f3fb-2640",uc_output:"1f3c3-1f3fb-200d-2640-fe0f",uc_match:"1f3c3-1f3fb-2640-fe0f",uc_greedy:"1f3c3-1f3fb-2640",shortnames:[":woman_running_light_skin_tone:"],category:"people"},":woman_running_tone2:":{uc_base:"1f3c3-1f3fc-2640",uc_output:"1f3c3-1f3fc-200d-2640-fe0f",uc_match:"1f3c3-1f3fc-2640-fe0f",uc_greedy:"1f3c3-1f3fc-2640",shortnames:[":woman_running_medium_light_skin_tone:"],category:"people"},":woman_running_tone3:":{uc_base:"1f3c3-1f3fd-2640",uc_output:"1f3c3-1f3fd-200d-2640-fe0f",uc_match:"1f3c3-1f3fd-2640-fe0f",uc_greedy:"1f3c3-1f3fd-2640",shortnames:[":woman_running_medium_skin_tone:"],category:"people"},":woman_running_tone4:":{uc_base:"1f3c3-1f3fe-2640",uc_output:"1f3c3-1f3fe-200d-2640-fe0f",uc_match:"1f3c3-1f3fe-2640-fe0f",uc_greedy:"1f3c3-1f3fe-2640",shortnames:[":woman_running_medium_dark_skin_tone:"],category:"people"},":woman_running_tone5:":{uc_base:"1f3c3-1f3ff-2640",uc_output:"1f3c3-1f3ff-200d-2640-fe0f",uc_match:"1f3c3-1f3ff-2640-fe0f",uc_greedy:"1f3c3-1f3ff-2640",shortnames:[":woman_running_dark_skin_tone:"],category:"people"},":woman_shrugging_tone1:":{uc_base:"1f937-1f3fb-2640",uc_output:"1f937-1f3fb-200d-2640-fe0f",uc_match:"1f937-1f3fb-2640-fe0f",uc_greedy:"1f937-1f3fb-2640",shortnames:[":woman_shrugging_light_skin_tone:"],category:"people"},":woman_shrugging_tone2:":{uc_base:"1f937-1f3fc-2640",uc_output:"1f937-1f3fc-200d-2640-fe0f",uc_match:"1f937-1f3fc-2640-fe0f",uc_greedy:"1f937-1f3fc-2640",shortnames:[":woman_shrugging_medium_light_skin_tone:"],category:"people"},":woman_shrugging_tone3:":{uc_base:"1f937-1f3fd-2640",uc_output:"1f937-1f3fd-200d-2640-fe0f",uc_match:"1f937-1f3fd-2640-fe0f",uc_greedy:"1f937-1f3fd-2640",shortnames:[":woman_shrugging_medium_skin_tone:"],category:"people"},":woman_shrugging_tone4:":{uc_base:"1f937-1f3fe-2640",uc_output:"1f937-1f3fe-200d-2640-fe0f",uc_match:"1f937-1f3fe-2640-fe0f",uc_greedy:"1f937-1f3fe-2640",shortnames:[":woman_shrugging_medium_dark_skin_tone:"],category:"people"},":woman_shrugging_tone5:":{uc_base:"1f937-1f3ff-2640",uc_output:"1f937-1f3ff-200d-2640-fe0f",uc_match:"1f937-1f3ff-2640-fe0f",uc_greedy:"1f937-1f3ff-2640",shortnames:[":woman_shrugging_dark_skin_tone:"],category:"people"},":woman_surfing_tone1:":{uc_base:"1f3c4-1f3fb-2640",uc_output:"1f3c4-1f3fb-200d-2640-fe0f",uc_match:"1f3c4-1f3fb-2640-fe0f",uc_greedy:"1f3c4-1f3fb-2640",shortnames:[":woman_surfing_light_skin_tone:"],category:"activity"},":woman_surfing_tone2:":{uc_base:"1f3c4-1f3fc-2640",uc_output:"1f3c4-1f3fc-200d-2640-fe0f",uc_match:"1f3c4-1f3fc-2640-fe0f",uc_greedy:"1f3c4-1f3fc-2640",shortnames:[":woman_surfing_medium_light_skin_tone:"],category:"activity"},":woman_surfing_tone3:":{uc_base:"1f3c4-1f3fd-2640",uc_output:"1f3c4-1f3fd-200d-2640-fe0f",uc_match:"1f3c4-1f3fd-2640-fe0f",uc_greedy:"1f3c4-1f3fd-2640",shortnames:[":woman_surfing_medium_skin_tone:"],category:"activity"},":woman_surfing_tone4:":{uc_base:"1f3c4-1f3fe-2640",uc_output:"1f3c4-1f3fe-200d-2640-fe0f",uc_match:"1f3c4-1f3fe-2640-fe0f",uc_greedy:"1f3c4-1f3fe-2640",shortnames:[":woman_surfing_medium_dark_skin_tone:"],category:"activity"},":woman_surfing_tone5:":{uc_base:"1f3c4-1f3ff-2640",uc_output:"1f3c4-1f3ff-200d-2640-fe0f",uc_match:"1f3c4-1f3ff-2640-fe0f",uc_greedy:"1f3c4-1f3ff-2640",shortnames:[":woman_surfing_dark_skin_tone:"],category:"activity"},":woman_swimming_tone1:":{uc_base:"1f3ca-1f3fb-2640",uc_output:"1f3ca-1f3fb-200d-2640-fe0f",uc_match:"1f3ca-1f3fb-2640-fe0f",uc_greedy:"1f3ca-1f3fb-2640",shortnames:[":woman_swimming_light_skin_tone:"],category:"activity"},":woman_swimming_tone2:":{uc_base:"1f3ca-1f3fc-2640",uc_output:"1f3ca-1f3fc-200d-2640-fe0f",uc_match:"1f3ca-1f3fc-2640-fe0f",uc_greedy:"1f3ca-1f3fc-2640",shortnames:[":woman_swimming_medium_light_skin_tone:"],category:"activity"},":woman_swimming_tone3:":{uc_base:"1f3ca-1f3fd-2640",uc_output:"1f3ca-1f3fd-200d-2640-fe0f",uc_match:"1f3ca-1f3fd-2640-fe0f",uc_greedy:"1f3ca-1f3fd-2640",shortnames:[":woman_swimming_medium_skin_tone:"],category:"activity"},":woman_swimming_tone4:":{uc_base:"1f3ca-1f3fe-2640",uc_output:"1f3ca-1f3fe-200d-2640-fe0f",uc_match:"1f3ca-1f3fe-2640-fe0f",uc_greedy:"1f3ca-1f3fe-2640",shortnames:[":woman_swimming_medium_dark_skin_tone:"],category:"activity"},":woman_swimming_tone5:":{uc_base:"1f3ca-1f3ff-2640",uc_output:"1f3ca-1f3ff-200d-2640-fe0f",uc_match:"1f3ca-1f3ff-2640-fe0f",uc_greedy:"1f3ca-1f3ff-2640",shortnames:[":woman_swimming_dark_skin_tone:"],category:"activity"},":woman_tipping_hand_tone1:":{uc_base:"1f481-1f3fb-2640",uc_output:"1f481-1f3fb-200d-2640-fe0f",uc_match:"1f481-1f3fb-2640-fe0f",uc_greedy:"1f481-1f3fb-2640",shortnames:[":woman_tipping_hand_light_skin_tone:"],category:"people"},":woman_tipping_hand_tone2:":{uc_base:"1f481-1f3fc-2640",uc_output:"1f481-1f3fc-200d-2640-fe0f",uc_match:"1f481-1f3fc-2640-fe0f",uc_greedy:"1f481-1f3fc-2640",shortnames:[":woman_tipping_hand_medium_light_skin_tone:"],category:"people"},":woman_tipping_hand_tone3:":{uc_base:"1f481-1f3fd-2640",uc_output:"1f481-1f3fd-200d-2640-fe0f",uc_match:"1f481-1f3fd-2640-fe0f",uc_greedy:"1f481-1f3fd-2640",shortnames:[":woman_tipping_hand_medium_skin_tone:"],category:"people"},":woman_tipping_hand_tone4:":{uc_base:"1f481-1f3fe-2640",uc_output:"1f481-1f3fe-200d-2640-fe0f",uc_match:"1f481-1f3fe-2640-fe0f",uc_greedy:"1f481-1f3fe-2640",shortnames:[":woman_tipping_hand_medium_dark_skin_tone:"],category:"people"},":woman_tipping_hand_tone5:":{uc_base:"1f481-1f3ff-2640",uc_output:"1f481-1f3ff-200d-2640-fe0f",uc_match:"1f481-1f3ff-2640-fe0f",uc_greedy:"1f481-1f3ff-2640",shortnames:[":woman_tipping_hand_dark_skin_tone:"],category:"people"},":woman_vampire_tone1:":{uc_base:"1f9db-1f3fb-2640",uc_output:"1f9db-1f3fb-200d-2640-fe0f",uc_match:"1f9db-1f3fb-2640-fe0f",uc_greedy:"1f9db-1f3fb-2640",shortnames:[":woman_vampire_light_skin_tone:"],category:"people"},":woman_vampire_tone2:":{uc_base:"1f9db-1f3fc-2640",uc_output:"1f9db-1f3fc-200d-2640-fe0f",uc_match:"1f9db-1f3fc-2640-fe0f",uc_greedy:"1f9db-1f3fc-2640",shortnames:[":woman_vampire_medium_light_skin_tone:"],category:"people"},":woman_vampire_tone3:":{uc_base:"1f9db-1f3fd-2640",uc_output:"1f9db-1f3fd-200d-2640-fe0f",uc_match:"1f9db-1f3fd-2640-fe0f",uc_greedy:"1f9db-1f3fd-2640",shortnames:[":woman_vampire_medium_skin_tone:"],category:"people"},":woman_vampire_tone4:":{uc_base:"1f9db-1f3fe-2640",uc_output:"1f9db-1f3fe-200d-2640-fe0f",uc_match:"1f9db-1f3fe-2640-fe0f",uc_greedy:"1f9db-1f3fe-2640",shortnames:[":woman_vampire_medium_dark_skin_tone:"],category:"people"},":woman_vampire_tone5:":{uc_base:"1f9db-1f3ff-2640",uc_output:"1f9db-1f3ff-200d-2640-fe0f",uc_match:"1f9db-1f3ff-2640-fe0f",uc_greedy:"1f9db-1f3ff-2640",shortnames:[":woman_vampire_dark_skin_tone:"],category:"people"},":woman_walking_tone1:":{uc_base:"1f6b6-1f3fb-2640",uc_output:"1f6b6-1f3fb-200d-2640-fe0f",uc_match:"1f6b6-1f3fb-2640-fe0f",uc_greedy:"1f6b6-1f3fb-2640",shortnames:[":woman_walking_light_skin_tone:"],category:"people"},":woman_walking_tone2:":{uc_base:"1f6b6-1f3fc-2640",uc_output:"1f6b6-1f3fc-200d-2640-fe0f",uc_match:"1f6b6-1f3fc-2640-fe0f",uc_greedy:"1f6b6-1f3fc-2640",shortnames:[":woman_walking_medium_light_skin_tone:"],category:"people"},":woman_walking_tone3:":{uc_base:"1f6b6-1f3fd-2640",uc_output:"1f6b6-1f3fd-200d-2640-fe0f",uc_match:"1f6b6-1f3fd-2640-fe0f",uc_greedy:"1f6b6-1f3fd-2640",shortnames:[":woman_walking_medium_skin_tone:"],category:"people"},":woman_walking_tone4:":{uc_base:"1f6b6-1f3fe-2640",uc_output:"1f6b6-1f3fe-200d-2640-fe0f",uc_match:"1f6b6-1f3fe-2640-fe0f",uc_greedy:"1f6b6-1f3fe-2640",shortnames:[":woman_walking_medium_dark_skin_tone:"],category:"people"},":woman_walking_tone5:":{uc_base:"1f6b6-1f3ff-2640",uc_output:"1f6b6-1f3ff-200d-2640-fe0f",uc_match:"1f6b6-1f3ff-2640-fe0f",uc_greedy:"1f6b6-1f3ff-2640",shortnames:[":woman_walking_dark_skin_tone:"],category:"people"},":woman_wearing_turban_tone1:":{uc_base:"1f473-1f3fb-2640",uc_output:"1f473-1f3fb-200d-2640-fe0f",uc_match:"1f473-1f3fb-2640-fe0f",uc_greedy:"1f473-1f3fb-2640",shortnames:[":woman_wearing_turban_light_skin_tone:"],category:"people"},":woman_wearing_turban_tone2:":{uc_base:"1f473-1f3fc-2640",uc_output:"1f473-1f3fc-200d-2640-fe0f",uc_match:"1f473-1f3fc-2640-fe0f",uc_greedy:"1f473-1f3fc-2640",shortnames:[":woman_wearing_turban_medium_light_skin_tone:"],category:"people"},":woman_wearing_turban_tone3:":{uc_base:"1f473-1f3fd-2640",uc_output:"1f473-1f3fd-200d-2640-fe0f",uc_match:"1f473-1f3fd-2640-fe0f",uc_greedy:"1f473-1f3fd-2640",shortnames:[":woman_wearing_turban_medium_skin_tone:"],category:"people"},":woman_wearing_turban_tone4:":{uc_base:"1f473-1f3fe-2640",uc_output:"1f473-1f3fe-200d-2640-fe0f",uc_match:"1f473-1f3fe-2640-fe0f",uc_greedy:"1f473-1f3fe-2640",shortnames:[":woman_wearing_turban_medium_dark_skin_tone:"],category:"people"},":woman_wearing_turban_tone5:":{uc_base:"1f473-1f3ff-2640",uc_output:"1f473-1f3ff-200d-2640-fe0f",uc_match:"1f473-1f3ff-2640-fe0f",uc_greedy:"1f473-1f3ff-2640",shortnames:[":woman_wearing_turban_dark_skin_tone:"],category:"people"},":man_bouncing_ball_tone1:":{uc_base:"26f9-1f3fb-2642",uc_output:"26f9-1f3fb-200d-2642-fe0f",uc_match:"26f9-fe0f-1f3fb-2642-fe0f",uc_greedy:"26f9-1f3fb-2642",shortnames:[":man_bouncing_ball_light_skin_tone:"],category:"activity"},":man_bouncing_ball_tone2:":{uc_base:"26f9-1f3fc-2642",uc_output:"26f9-1f3fc-200d-2642-fe0f",uc_match:"26f9-fe0f-1f3fc-2642-fe0f",uc_greedy:"26f9-1f3fc-2642",shortnames:[":man_bouncing_ball_medium_light_skin_tone:"],category:"activity"},":man_bouncing_ball_tone3:":{uc_base:"26f9-1f3fd-2642",uc_output:"26f9-1f3fd-200d-2642-fe0f",uc_match:"26f9-fe0f-1f3fd-2642-fe0f",uc_greedy:"26f9-1f3fd-2642",shortnames:[":man_bouncing_ball_medium_skin_tone:"],category:"activity"},":man_bouncing_ball_tone4:":{uc_base:"26f9-1f3fe-2642",uc_output:"26f9-1f3fe-200d-2642-fe0f",uc_match:"26f9-fe0f-1f3fe-2642-fe0f",uc_greedy:"26f9-1f3fe-2642",shortnames:[":man_bouncing_ball_medium_dark_skin_tone:"],category:"activity"},":man_bouncing_ball_tone5:":{uc_base:"26f9-1f3ff-2642",uc_output:"26f9-1f3ff-200d-2642-fe0f",uc_match:"26f9-fe0f-1f3ff-2642-fe0f",uc_greedy:"26f9-1f3ff-2642",shortnames:[":man_bouncing_ball_dark_skin_tone:"],category:"activity"},":man_detective:":{uc_base:"1f575-2642",uc_output:"1f575-fe0f-200d-2642-fe0f",uc_match:"1f575-fe0f-200d-2642",uc_greedy:"1f575-2642",shortnames:[],category:"people"},":man_golfing:":{uc_base:"1f3cc-2642",uc_output:"1f3cc-fe0f-200d-2642-fe0f",uc_match:"1f3cc-fe0f-200d-2642",uc_greedy:"1f3cc-2642",shortnames:[],category:"activity"},":man_lifting_weights:":{uc_base:"1f3cb-2642",uc_output:"1f3cb-fe0f-200d-2642-fe0f",uc_match:"1f3cb-fe0f-200d-2642",uc_greedy:"1f3cb-2642",shortnames:[],category:"activity"},":woman_bouncing_ball_tone1:":{uc_base:"26f9-1f3fb-2640",uc_output:"26f9-1f3fb-200d-2640-fe0f",uc_match:"26f9-fe0f-1f3fb-2640-fe0f",uc_greedy:"26f9-1f3fb-2640",shortnames:[":woman_bouncing_ball_light_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone2:":{uc_base:"26f9-1f3fc-2640",uc_output:"26f9-1f3fc-200d-2640-fe0f",uc_match:"26f9-fe0f-1f3fc-2640-fe0f",uc_greedy:"26f9-1f3fc-2640",shortnames:[":woman_bouncing_ball_medium_light_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone3:":{uc_base:"26f9-1f3fd-2640",uc_output:"26f9-1f3fd-200d-2640-fe0f",uc_match:"26f9-fe0f-1f3fd-2640-fe0f",uc_greedy:"26f9-1f3fd-2640",shortnames:[":woman_bouncing_ball_medium_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone4:":{uc_base:"26f9-1f3fe-2640",uc_output:"26f9-1f3fe-200d-2640-fe0f",uc_match:"26f9-fe0f-1f3fe-2640-fe0f",uc_greedy:"26f9-1f3fe-2640",shortnames:[":woman_bouncing_ball_medium_dark_skin_tone:"],category:"activity"},":woman_bouncing_ball_tone5:":{uc_base:"26f9-1f3ff-2640",uc_output:"26f9-1f3ff-200d-2640-fe0f",uc_match:"26f9-fe0f-1f3ff-2640-fe0f",uc_greedy:"26f9-1f3ff-2640",shortnames:[":woman_bouncing_ball_dark_skin_tone:"],category:"activity"},":woman_detective:":{uc_base:"1f575-2640",uc_output:"1f575-fe0f-200d-2640-fe0f",uc_match:"1f575-fe0f-200d-2640",uc_greedy:"1f575-2640",shortnames:[],category:"people"},":woman_golfing:":{uc_base:"1f3cc-2640",uc_output:"1f3cc-fe0f-200d-2640-fe0f",uc_match:"1f3cc-fe0f-200d-2640",uc_greedy:"1f3cc-2640",shortnames:[],category:"activity"},":woman_lifting_weights:":{uc_base:"1f3cb-2640",uc_output:"1f3cb-fe0f-200d-2640-fe0f",uc_match:"1f3cb-fe0f-200d-2640",uc_greedy:"1f3cb-2640",shortnames:[],category:"activity"},":man_bouncing_ball:":{uc_base:"26f9-2642",uc_output:"26f9-fe0f-200d-2642-fe0f",uc_match:"26f9-fe0f-200d-2642",uc_greedy:"26f9-2642",shortnames:[],category:"activity"},":woman_bouncing_ball:":{uc_base:"26f9-2640",uc_output:"26f9-fe0f-200d-2640-fe0f",uc_match:"26f9-fe0f-200d-2640",uc_greedy:"26f9-2640",shortnames:[],category:"activity"},":man_artist_tone1:":{uc_base:"1f468-1f3fb-1f3a8",uc_output:"1f468-1f3fb-200d-1f3a8",uc_match:"1f468-1f3fb-1f3a8",uc_greedy:"1f468-1f3fb-1f3a8",shortnames:[":man_artist_light_skin_tone:"],category:"people"},":man_artist_tone2:":{uc_base:"1f468-1f3fc-1f3a8",uc_output:"1f468-1f3fc-200d-1f3a8",uc_match:"1f468-1f3fc-1f3a8",uc_greedy:"1f468-1f3fc-1f3a8",shortnames:[":man_artist_medium_light_skin_tone:"],category:"people"},":man_artist_tone3:":{uc_base:"1f468-1f3fd-1f3a8",uc_output:"1f468-1f3fd-200d-1f3a8",uc_match:"1f468-1f3fd-1f3a8",uc_greedy:"1f468-1f3fd-1f3a8",shortnames:[":man_artist_medium_skin_tone:"],category:"people"},":man_artist_tone4:":{uc_base:"1f468-1f3fe-1f3a8",uc_output:"1f468-1f3fe-200d-1f3a8",uc_match:"1f468-1f3fe-1f3a8",uc_greedy:"1f468-1f3fe-1f3a8",shortnames:[":man_artist_medium_dark_skin_tone:"],category:"people"},":man_artist_tone5:":{uc_base:"1f468-1f3ff-1f3a8",uc_output:"1f468-1f3ff-200d-1f3a8",uc_match:"1f468-1f3ff-1f3a8",uc_greedy:"1f468-1f3ff-1f3a8",shortnames:[":man_artist_dark_skin_tone:"],category:"people"},":man_astronaut_tone1:":{uc_base:"1f468-1f3fb-1f680",uc_output:"1f468-1f3fb-200d-1f680",uc_match:"1f468-1f3fb-1f680",uc_greedy:"1f468-1f3fb-1f680",shortnames:[":man_astronaut_light_skin_tone:"],category:"people"},":man_astronaut_tone2:":{uc_base:"1f468-1f3fc-1f680",uc_output:"1f468-1f3fc-200d-1f680",uc_match:"1f468-1f3fc-1f680",uc_greedy:"1f468-1f3fc-1f680",shortnames:[":man_astronaut_medium_light_skin_tone:"],category:"people"},":man_astronaut_tone3:":{uc_base:"1f468-1f3fd-1f680",uc_output:"1f468-1f3fd-200d-1f680",uc_match:"1f468-1f3fd-1f680",uc_greedy:"1f468-1f3fd-1f680",shortnames:[":man_astronaut_medium_skin_tone:"],category:"people"},":man_astronaut_tone4:":{uc_base:"1f468-1f3fe-1f680",uc_output:"1f468-1f3fe-200d-1f680",uc_match:"1f468-1f3fe-1f680",uc_greedy:"1f468-1f3fe-1f680",shortnames:[":man_astronaut_medium_dark_skin_tone:"],category:"people"},":man_astronaut_tone5:":{uc_base:"1f468-1f3ff-1f680",uc_output:"1f468-1f3ff-200d-1f680",uc_match:"1f468-1f3ff-1f680",uc_greedy:"1f468-1f3ff-1f680",shortnames:[":man_astronaut_dark_skin_tone:"],category:"people"},":man_cook_tone1:":{uc_base:"1f468-1f3fb-1f373",uc_output:"1f468-1f3fb-200d-1f373",uc_match:"1f468-1f3fb-1f373",uc_greedy:"1f468-1f3fb-1f373",shortnames:[":man_cook_light_skin_tone:"],category:"people"},":man_cook_tone2:":{uc_base:"1f468-1f3fc-1f373",uc_output:"1f468-1f3fc-200d-1f373",uc_match:"1f468-1f3fc-1f373",uc_greedy:"1f468-1f3fc-1f373",shortnames:[":man_cook_medium_light_skin_tone:"],category:"people"},":man_cook_tone3:":{uc_base:"1f468-1f3fd-1f373",uc_output:"1f468-1f3fd-200d-1f373",uc_match:"1f468-1f3fd-1f373",uc_greedy:"1f468-1f3fd-1f373",shortnames:[":man_cook_medium_skin_tone:"],category:"people"},":man_cook_tone4:":{uc_base:"1f468-1f3fe-1f373",uc_output:"1f468-1f3fe-200d-1f373",uc_match:"1f468-1f3fe-1f373",uc_greedy:"1f468-1f3fe-1f373",shortnames:[":man_cook_medium_dark_skin_tone:"],category:"people"},":man_cook_tone5:":{uc_base:"1f468-1f3ff-1f373",uc_output:"1f468-1f3ff-200d-1f373",uc_match:"1f468-1f3ff-1f373",uc_greedy:"1f468-1f3ff-1f373",shortnames:[":man_cook_dark_skin_tone:"],category:"people"},":man_factory_worker_tone1:":{uc_base:"1f468-1f3fb-1f3ed",uc_output:"1f468-1f3fb-200d-1f3ed",uc_match:"1f468-1f3fb-1f3ed",uc_greedy:"1f468-1f3fb-1f3ed",shortnames:[":man_factory_worker_light_skin_tone:"],category:"people"},":man_factory_worker_tone2:":{uc_base:"1f468-1f3fc-1f3ed",uc_output:"1f468-1f3fc-200d-1f3ed",uc_match:"1f468-1f3fc-1f3ed",uc_greedy:"1f468-1f3fc-1f3ed",shortnames:[":man_factory_worker_medium_light_skin_tone:"],category:"people"},":man_factory_worker_tone3:":{uc_base:"1f468-1f3fd-1f3ed",uc_output:"1f468-1f3fd-200d-1f3ed",uc_match:"1f468-1f3fd-1f3ed",uc_greedy:"1f468-1f3fd-1f3ed",shortnames:[":man_factory_worker_medium_skin_tone:"],category:"people"},":man_factory_worker_tone4:":{uc_base:"1f468-1f3fe-1f3ed",uc_output:"1f468-1f3fe-200d-1f3ed",uc_match:"1f468-1f3fe-1f3ed",uc_greedy:"1f468-1f3fe-1f3ed",shortnames:[":man_factory_worker_medium_dark_skin_tone:"],category:"people"},":man_factory_worker_tone5:":{uc_base:"1f468-1f3ff-1f3ed",uc_output:"1f468-1f3ff-200d-1f3ed",uc_match:"1f468-1f3ff-1f3ed",uc_greedy:"1f468-1f3ff-1f3ed",shortnames:[":man_factory_worker_dark_skin_tone:"],category:"people"},":man_farmer_tone1:":{uc_base:"1f468-1f3fb-1f33e",uc_output:"1f468-1f3fb-200d-1f33e",uc_match:"1f468-1f3fb-1f33e",uc_greedy:"1f468-1f3fb-1f33e",shortnames:[":man_farmer_light_skin_tone:"],category:"people"},":man_farmer_tone2:":{uc_base:"1f468-1f3fc-1f33e",uc_output:"1f468-1f3fc-200d-1f33e",uc_match:"1f468-1f3fc-1f33e",uc_greedy:"1f468-1f3fc-1f33e",shortnames:[":man_farmer_medium_light_skin_tone:"],category:"people"},":man_farmer_tone3:":{uc_base:"1f468-1f3fd-1f33e",uc_output:"1f468-1f3fd-200d-1f33e",uc_match:"1f468-1f3fd-1f33e",uc_greedy:"1f468-1f3fd-1f33e",shortnames:[":man_farmer_medium_skin_tone:"],category:"people"},":man_farmer_tone4:":{uc_base:"1f468-1f3fe-1f33e",uc_output:"1f468-1f3fe-200d-1f33e",uc_match:"1f468-1f3fe-1f33e",uc_greedy:"1f468-1f3fe-1f33e",shortnames:[":man_farmer_medium_dark_skin_tone:"],category:"people"},":man_farmer_tone5:":{uc_base:"1f468-1f3ff-1f33e",uc_output:"1f468-1f3ff-200d-1f33e",uc_match:"1f468-1f3ff-1f33e",uc_greedy:"1f468-1f3ff-1f33e",shortnames:[":man_farmer_dark_skin_tone:"],category:"people"},":man_firefighter_tone1:":{uc_base:"1f468-1f3fb-1f692",uc_output:"1f468-1f3fb-200d-1f692",uc_match:"1f468-1f3fb-1f692",uc_greedy:"1f468-1f3fb-1f692",shortnames:[":man_firefighter_light_skin_tone:"],category:"people"},":man_firefighter_tone2:":{uc_base:"1f468-1f3fc-1f692",uc_output:"1f468-1f3fc-200d-1f692",uc_match:"1f468-1f3fc-1f692",uc_greedy:"1f468-1f3fc-1f692",shortnames:[":man_firefighter_medium_light_skin_tone:"],category:"people"},":man_firefighter_tone3:":{uc_base:"1f468-1f3fd-1f692",uc_output:"1f468-1f3fd-200d-1f692",uc_match:"1f468-1f3fd-1f692",uc_greedy:"1f468-1f3fd-1f692",shortnames:[":man_firefighter_medium_skin_tone:"],category:"people"},":man_firefighter_tone4:":{uc_base:"1f468-1f3fe-1f692",uc_output:"1f468-1f3fe-200d-1f692",uc_match:"1f468-1f3fe-1f692",uc_greedy:"1f468-1f3fe-1f692",shortnames:[":man_firefighter_medium_dark_skin_tone:"],category:"people"},":man_firefighter_tone5:":{uc_base:"1f468-1f3ff-1f692",uc_output:"1f468-1f3ff-200d-1f692",uc_match:"1f468-1f3ff-1f692",uc_greedy:"1f468-1f3ff-1f692",shortnames:[":man_firefighter_dark_skin_tone:"],category:"people"},":man_mechanic_tone1:":{uc_base:"1f468-1f3fb-1f527",uc_output:"1f468-1f3fb-200d-1f527",uc_match:"1f468-1f3fb-1f527",uc_greedy:"1f468-1f3fb-1f527",shortnames:[":man_mechanic_light_skin_tone:"],category:"people"},":man_mechanic_tone2:":{uc_base:"1f468-1f3fc-1f527",uc_output:"1f468-1f3fc-200d-1f527",uc_match:"1f468-1f3fc-1f527",uc_greedy:"1f468-1f3fc-1f527",shortnames:[":man_mechanic_medium_light_skin_tone:"],category:"people"},":man_mechanic_tone3:":{uc_base:"1f468-1f3fd-1f527",uc_output:"1f468-1f3fd-200d-1f527",uc_match:"1f468-1f3fd-1f527",uc_greedy:"1f468-1f3fd-1f527",shortnames:[":man_mechanic_medium_skin_tone:"],category:"people"},":man_mechanic_tone4:":{uc_base:"1f468-1f3fe-1f527",uc_output:"1f468-1f3fe-200d-1f527",uc_match:"1f468-1f3fe-1f527",uc_greedy:"1f468-1f3fe-1f527",shortnames:[":man_mechanic_medium_dark_skin_tone:"],category:"people"},":man_mechanic_tone5:":{uc_base:"1f468-1f3ff-1f527",uc_output:"1f468-1f3ff-200d-1f527",uc_match:"1f468-1f3ff-1f527",uc_greedy:"1f468-1f3ff-1f527",shortnames:[":man_mechanic_dark_skin_tone:"],category:"people"},":man_office_worker_tone1:":{uc_base:"1f468-1f3fb-1f4bc",uc_output:"1f468-1f3fb-200d-1f4bc",uc_match:"1f468-1f3fb-1f4bc",uc_greedy:"1f468-1f3fb-1f4bc",shortnames:[":man_office_worker_light_skin_tone:"],category:"people"},":man_office_worker_tone2:":{uc_base:"1f468-1f3fc-1f4bc",uc_output:"1f468-1f3fc-200d-1f4bc",uc_match:"1f468-1f3fc-1f4bc",uc_greedy:"1f468-1f3fc-1f4bc",shortnames:[":man_office_worker_medium_light_skin_tone:"],category:"people"},":man_office_worker_tone3:":{uc_base:"1f468-1f3fd-1f4bc",uc_output:"1f468-1f3fd-200d-1f4bc",uc_match:"1f468-1f3fd-1f4bc",uc_greedy:"1f468-1f3fd-1f4bc",shortnames:[":man_office_worker_medium_skin_tone:"],category:"people"},":man_office_worker_tone4:":{uc_base:"1f468-1f3fe-1f4bc",uc_output:"1f468-1f3fe-200d-1f4bc",uc_match:"1f468-1f3fe-1f4bc",uc_greedy:"1f468-1f3fe-1f4bc",shortnames:[":man_office_worker_medium_dark_skin_tone:"],category:"people"},":man_office_worker_tone5:":{uc_base:"1f468-1f3ff-1f4bc",uc_output:"1f468-1f3ff-200d-1f4bc",uc_match:"1f468-1f3ff-1f4bc",uc_greedy:"1f468-1f3ff-1f4bc",shortnames:[":man_office_worker_dark_skin_tone:"],category:"people"},":man_scientist_tone1:":{uc_base:"1f468-1f3fb-1f52c",uc_output:"1f468-1f3fb-200d-1f52c",uc_match:"1f468-1f3fb-1f52c",uc_greedy:"1f468-1f3fb-1f52c",shortnames:[":man_scientist_light_skin_tone:"],category:"people"},":man_scientist_tone2:":{uc_base:"1f468-1f3fc-1f52c",uc_output:"1f468-1f3fc-200d-1f52c",uc_match:"1f468-1f3fc-1f52c",uc_greedy:"1f468-1f3fc-1f52c",shortnames:[":man_scientist_medium_light_skin_tone:"],category:"people"},":man_scientist_tone3:":{uc_base:"1f468-1f3fd-1f52c",uc_output:"1f468-1f3fd-200d-1f52c",uc_match:"1f468-1f3fd-1f52c",uc_greedy:"1f468-1f3fd-1f52c",shortnames:[":man_scientist_medium_skin_tone:"],category:"people"},":man_scientist_tone4:":{uc_base:"1f468-1f3fe-1f52c",uc_output:"1f468-1f3fe-200d-1f52c",uc_match:"1f468-1f3fe-1f52c",uc_greedy:"1f468-1f3fe-1f52c",shortnames:[":man_scientist_medium_dark_skin_tone:"],category:"people"},":man_scientist_tone5:":{uc_base:"1f468-1f3ff-1f52c",uc_output:"1f468-1f3ff-200d-1f52c",uc_match:"1f468-1f3ff-1f52c",uc_greedy:"1f468-1f3ff-1f52c",shortnames:[":man_scientist_dark_skin_tone:"],category:"people"},":man_singer_tone1:":{uc_base:"1f468-1f3fb-1f3a4",uc_output:"1f468-1f3fb-200d-1f3a4",uc_match:"1f468-1f3fb-1f3a4",uc_greedy:"1f468-1f3fb-1f3a4",shortnames:[":man_singer_light_skin_tone:"],category:"people"},":man_singer_tone2:":{uc_base:"1f468-1f3fc-1f3a4",uc_output:"1f468-1f3fc-200d-1f3a4",uc_match:"1f468-1f3fc-1f3a4",uc_greedy:"1f468-1f3fc-1f3a4",shortnames:[":man_singer_medium_light_skin_tone:"],category:"people"},":man_singer_tone3:":{uc_base:"1f468-1f3fd-1f3a4",uc_output:"1f468-1f3fd-200d-1f3a4",uc_match:"1f468-1f3fd-1f3a4",uc_greedy:"1f468-1f3fd-1f3a4",shortnames:[":man_singer_medium_skin_tone:"],category:"people"},":man_singer_tone4:":{uc_base:"1f468-1f3fe-1f3a4",uc_output:"1f468-1f3fe-200d-1f3a4",uc_match:"1f468-1f3fe-1f3a4",uc_greedy:"1f468-1f3fe-1f3a4",shortnames:[":man_singer_medium_dark_skin_tone:"],category:"people"},":man_singer_tone5:":{uc_base:"1f468-1f3ff-1f3a4",uc_output:"1f468-1f3ff-200d-1f3a4",uc_match:"1f468-1f3ff-1f3a4",uc_greedy:"1f468-1f3ff-1f3a4",shortnames:[":man_singer_dark_skin_tone:"],category:"people"},":man_student_tone1:":{uc_base:"1f468-1f3fb-1f393",uc_output:"1f468-1f3fb-200d-1f393",uc_match:"1f468-1f3fb-1f393",uc_greedy:"1f468-1f3fb-1f393",shortnames:[":man_student_light_skin_tone:"],category:"people"},":man_student_tone2:":{uc_base:"1f468-1f3fc-1f393",uc_output:"1f468-1f3fc-200d-1f393",uc_match:"1f468-1f3fc-1f393",uc_greedy:"1f468-1f3fc-1f393",shortnames:[":man_student_medium_light_skin_tone:"],category:"people"},":man_student_tone3:":{uc_base:"1f468-1f3fd-1f393",uc_output:"1f468-1f3fd-200d-1f393",uc_match:"1f468-1f3fd-1f393",uc_greedy:"1f468-1f3fd-1f393",shortnames:[":man_student_medium_skin_tone:"],category:"people"},":man_student_tone4:":{uc_base:"1f468-1f3fe-1f393",uc_output:"1f468-1f3fe-200d-1f393",uc_match:"1f468-1f3fe-1f393",uc_greedy:"1f468-1f3fe-1f393",shortnames:[":man_student_medium_dark_skin_tone:"],category:"people"},":man_student_tone5:":{uc_base:"1f468-1f3ff-1f393",uc_output:"1f468-1f3ff-200d-1f393",uc_match:"1f468-1f3ff-1f393",uc_greedy:"1f468-1f3ff-1f393",shortnames:[":man_student_dark_skin_tone:"],category:"people"},":man_teacher_tone1:":{uc_base:"1f468-1f3fb-1f3eb",uc_output:"1f468-1f3fb-200d-1f3eb",uc_match:"1f468-1f3fb-1f3eb",uc_greedy:"1f468-1f3fb-1f3eb",shortnames:[":man_teacher_light_skin_tone:"],category:"people"},":man_teacher_tone2:":{uc_base:"1f468-1f3fc-1f3eb",uc_output:"1f468-1f3fc-200d-1f3eb",uc_match:"1f468-1f3fc-1f3eb",uc_greedy:"1f468-1f3fc-1f3eb",shortnames:[":man_teacher_medium_light_skin_tone:"],category:"people"},":man_teacher_tone3:":{uc_base:"1f468-1f3fd-1f3eb",uc_output:"1f468-1f3fd-200d-1f3eb",uc_match:"1f468-1f3fd-1f3eb",uc_greedy:"1f468-1f3fd-1f3eb",shortnames:[":man_teacher_medium_skin_tone:"],category:"people"},":man_teacher_tone4:":{uc_base:"1f468-1f3fe-1f3eb",uc_output:"1f468-1f3fe-200d-1f3eb",uc_match:"1f468-1f3fe-1f3eb",uc_greedy:"1f468-1f3fe-1f3eb",shortnames:[":man_teacher_medium_dark_skin_tone:"],category:"people"},":man_teacher_tone5:":{uc_base:"1f468-1f3ff-1f3eb",uc_output:"1f468-1f3ff-200d-1f3eb",uc_match:"1f468-1f3ff-1f3eb",uc_greedy:"1f468-1f3ff-1f3eb",shortnames:[":man_teacher_dark_skin_tone:"],category:"people"},":man_technologist_tone1:":{uc_base:"1f468-1f3fb-1f4bb",uc_output:"1f468-1f3fb-200d-1f4bb",uc_match:"1f468-1f3fb-1f4bb",uc_greedy:"1f468-1f3fb-1f4bb",shortnames:[":man_technologist_light_skin_tone:"],category:"people"},":man_technologist_tone2:":{uc_base:"1f468-1f3fc-1f4bb",uc_output:"1f468-1f3fc-200d-1f4bb",uc_match:"1f468-1f3fc-1f4bb",uc_greedy:"1f468-1f3fc-1f4bb",shortnames:[":man_technologist_medium_light_skin_tone:"],category:"people"},":man_technologist_tone3:":{uc_base:"1f468-1f3fd-1f4bb",uc_output:"1f468-1f3fd-200d-1f4bb",uc_match:"1f468-1f3fd-1f4bb",uc_greedy:"1f468-1f3fd-1f4bb",shortnames:[":man_technologist_medium_skin_tone:"],category:"people"},":man_technologist_tone4:":{uc_base:"1f468-1f3fe-1f4bb",uc_output:"1f468-1f3fe-200d-1f4bb",uc_match:"1f468-1f3fe-1f4bb",uc_greedy:"1f468-1f3fe-1f4bb",shortnames:[":man_technologist_medium_dark_skin_tone:"],category:"people"},":man_technologist_tone5:":{uc_base:"1f468-1f3ff-1f4bb",uc_output:"1f468-1f3ff-200d-1f4bb",uc_match:"1f468-1f3ff-1f4bb",uc_greedy:"1f468-1f3ff-1f4bb",shortnames:[":man_technologist_dark_skin_tone:"],category:"people"},":woman_artist_tone1:":{uc_base:"1f469-1f3fb-1f3a8",uc_output:"1f469-1f3fb-200d-1f3a8",uc_match:"1f469-1f3fb-1f3a8",uc_greedy:"1f469-1f3fb-1f3a8",shortnames:[":woman_artist_light_skin_tone:"],category:"people"},":woman_artist_tone2:":{uc_base:"1f469-1f3fc-1f3a8",uc_output:"1f469-1f3fc-200d-1f3a8",uc_match:"1f469-1f3fc-1f3a8",uc_greedy:"1f469-1f3fc-1f3a8",shortnames:[":woman_artist_medium_light_skin_tone:"],category:"people"},":woman_artist_tone3:":{uc_base:"1f469-1f3fd-1f3a8",uc_output:"1f469-1f3fd-200d-1f3a8",uc_match:"1f469-1f3fd-1f3a8",uc_greedy:"1f469-1f3fd-1f3a8",shortnames:[":woman_artist_medium_skin_tone:"],category:"people"},":woman_artist_tone4:":{uc_base:"1f469-1f3fe-1f3a8",uc_output:"1f469-1f3fe-200d-1f3a8",uc_match:"1f469-1f3fe-1f3a8",uc_greedy:"1f469-1f3fe-1f3a8",shortnames:[":woman_artist_medium_dark_skin_tone:"],category:"people"},":woman_artist_tone5:":{uc_base:"1f469-1f3ff-1f3a8",uc_output:"1f469-1f3ff-200d-1f3a8",uc_match:"1f469-1f3ff-1f3a8",uc_greedy:"1f469-1f3ff-1f3a8",shortnames:[":woman_artist_dark_skin_tone:"],category:"people"},":woman_astronaut_tone1:":{uc_base:"1f469-1f3fb-1f680",uc_output:"1f469-1f3fb-200d-1f680",uc_match:"1f469-1f3fb-1f680",uc_greedy:"1f469-1f3fb-1f680",shortnames:[":woman_astronaut_light_skin_tone:"],category:"people"},":woman_astronaut_tone2:":{uc_base:"1f469-1f3fc-1f680",uc_output:"1f469-1f3fc-200d-1f680",uc_match:"1f469-1f3fc-1f680",uc_greedy:"1f469-1f3fc-1f680",shortnames:[":woman_astronaut_medium_light_skin_tone:"],category:"people"},":woman_astronaut_tone3:":{uc_base:"1f469-1f3fd-1f680",uc_output:"1f469-1f3fd-200d-1f680",uc_match:"1f469-1f3fd-1f680",uc_greedy:"1f469-1f3fd-1f680",shortnames:[":woman_astronaut_medium_skin_tone:"],category:"people"},":woman_astronaut_tone4:":{uc_base:"1f469-1f3fe-1f680",uc_output:"1f469-1f3fe-200d-1f680",uc_match:"1f469-1f3fe-1f680",uc_greedy:"1f469-1f3fe-1f680",shortnames:[":woman_astronaut_medium_dark_skin_tone:"],category:"people"},":woman_astronaut_tone5:":{uc_base:"1f469-1f3ff-1f680",uc_output:"1f469-1f3ff-200d-1f680",uc_match:"1f469-1f3ff-1f680",uc_greedy:"1f469-1f3ff-1f680",shortnames:[":woman_astronaut_dark_skin_tone:"],category:"people"},":woman_cook_tone1:":{uc_base:"1f469-1f3fb-1f373",uc_output:"1f469-1f3fb-200d-1f373",uc_match:"1f469-1f3fb-1f373",uc_greedy:"1f469-1f3fb-1f373",shortnames:[":woman_cook_light_skin_tone:"],category:"people"},":woman_cook_tone2:":{uc_base:"1f469-1f3fc-1f373",uc_output:"1f469-1f3fc-200d-1f373",uc_match:"1f469-1f3fc-1f373",uc_greedy:"1f469-1f3fc-1f373",shortnames:[":woman_cook_medium_light_skin_tone:"],category:"people"},":woman_cook_tone3:":{uc_base:"1f469-1f3fd-1f373",uc_output:"1f469-1f3fd-200d-1f373",uc_match:"1f469-1f3fd-1f373",uc_greedy:"1f469-1f3fd-1f373",shortnames:[":woman_cook_medium_skin_tone:"],category:"people"},":woman_cook_tone4:":{uc_base:"1f469-1f3fe-1f373",uc_output:"1f469-1f3fe-200d-1f373",uc_match:"1f469-1f3fe-1f373",uc_greedy:"1f469-1f3fe-1f373",shortnames:[":woman_cook_medium_dark_skin_tone:"],category:"people"},":woman_cook_tone5:":{uc_base:"1f469-1f3ff-1f373",uc_output:"1f469-1f3ff-200d-1f373",uc_match:"1f469-1f3ff-1f373",uc_greedy:"1f469-1f3ff-1f373",shortnames:[":woman_cook_dark_skin_tone:"],category:"people"},":woman_factory_worker_tone1:":{uc_base:"1f469-1f3fb-1f3ed",uc_output:"1f469-1f3fb-200d-1f3ed",uc_match:"1f469-1f3fb-1f3ed",uc_greedy:"1f469-1f3fb-1f3ed",shortnames:[":woman_factory_worker_light_skin_tone:"],category:"people"},":woman_factory_worker_tone2:":{uc_base:"1f469-1f3fc-1f3ed",uc_output:"1f469-1f3fc-200d-1f3ed",uc_match:"1f469-1f3fc-1f3ed",uc_greedy:"1f469-1f3fc-1f3ed",shortnames:[":woman_factory_worker_medium_light_skin_tone:"],category:"people"},":woman_factory_worker_tone3:":{uc_base:"1f469-1f3fd-1f3ed",uc_output:"1f469-1f3fd-200d-1f3ed",uc_match:"1f469-1f3fd-1f3ed",uc_greedy:"1f469-1f3fd-1f3ed",shortnames:[":woman_factory_worker_medium_skin_tone:"],category:"people"},":woman_factory_worker_tone4:":{uc_base:"1f469-1f3fe-1f3ed",uc_output:"1f469-1f3fe-200d-1f3ed",uc_match:"1f469-1f3fe-1f3ed",uc_greedy:"1f469-1f3fe-1f3ed",shortnames:[":woman_factory_worker_medium_dark_skin_tone:"],category:"people"},":woman_factory_worker_tone5:":{uc_base:"1f469-1f3ff-1f3ed",uc_output:"1f469-1f3ff-200d-1f3ed",uc_match:"1f469-1f3ff-1f3ed",uc_greedy:"1f469-1f3ff-1f3ed",shortnames:[":woman_factory_worker_dark_skin_tone:"],category:"people"},":woman_farmer_tone1:":{uc_base:"1f469-1f3fb-1f33e",uc_output:"1f469-1f3fb-200d-1f33e",uc_match:"1f469-1f3fb-1f33e",uc_greedy:"1f469-1f3fb-1f33e",shortnames:[":woman_farmer_light_skin_tone:"],category:"people"},":woman_farmer_tone2:":{uc_base:"1f469-1f3fc-1f33e",uc_output:"1f469-1f3fc-200d-1f33e",uc_match:"1f469-1f3fc-1f33e",uc_greedy:"1f469-1f3fc-1f33e",shortnames:[":woman_farmer_medium_light_skin_tone:"],category:"people"},":woman_farmer_tone3:":{uc_base:"1f469-1f3fd-1f33e",uc_output:"1f469-1f3fd-200d-1f33e",uc_match:"1f469-1f3fd-1f33e",uc_greedy:"1f469-1f3fd-1f33e",shortnames:[":woman_farmer_medium_skin_tone:"],category:"people"},":woman_farmer_tone4:":{uc_base:"1f469-1f3fe-1f33e",uc_output:"1f469-1f3fe-200d-1f33e",uc_match:"1f469-1f3fe-1f33e",uc_greedy:"1f469-1f3fe-1f33e",shortnames:[":woman_farmer_medium_dark_skin_tone:"],category:"people"},":woman_farmer_tone5:":{uc_base:"1f469-1f3ff-1f33e",uc_output:"1f469-1f3ff-200d-1f33e",uc_match:"1f469-1f3ff-1f33e",uc_greedy:"1f469-1f3ff-1f33e",shortnames:[":woman_farmer_dark_skin_tone:"],category:"people"},":woman_firefighter_tone1:":{uc_base:"1f469-1f3fb-1f692",uc_output:"1f469-1f3fb-200d-1f692",uc_match:"1f469-1f3fb-1f692",uc_greedy:"1f469-1f3fb-1f692",shortnames:[":woman_firefighter_light_skin_tone:"],category:"people"},":woman_firefighter_tone2:":{uc_base:"1f469-1f3fc-1f692",uc_output:"1f469-1f3fc-200d-1f692",uc_match:"1f469-1f3fc-1f692",uc_greedy:"1f469-1f3fc-1f692",shortnames:[":woman_firefighter_medium_light_skin_tone:"],category:"people"},":woman_firefighter_tone3:":{uc_base:"1f469-1f3fd-1f692",uc_output:"1f469-1f3fd-200d-1f692",uc_match:"1f469-1f3fd-1f692",uc_greedy:"1f469-1f3fd-1f692",shortnames:[":woman_firefighter_medium_skin_tone:"],category:"people"},":woman_firefighter_tone4:":{uc_base:"1f469-1f3fe-1f692",uc_output:"1f469-1f3fe-200d-1f692",uc_match:"1f469-1f3fe-1f692",uc_greedy:"1f469-1f3fe-1f692",shortnames:[":woman_firefighter_medium_dark_skin_tone:"],category:"people"},":woman_firefighter_tone5:":{uc_base:"1f469-1f3ff-1f692",uc_output:"1f469-1f3ff-200d-1f692",uc_match:"1f469-1f3ff-1f692",uc_greedy:"1f469-1f3ff-1f692",shortnames:[":woman_firefighter_dark_skin_tone:"],category:"people"},":woman_mechanic_tone1:":{uc_base:"1f469-1f3fb-1f527",uc_output:"1f469-1f3fb-200d-1f527",uc_match:"1f469-1f3fb-1f527",uc_greedy:"1f469-1f3fb-1f527",shortnames:[":woman_mechanic_light_skin_tone:"],category:"people"},":woman_mechanic_tone2:":{uc_base:"1f469-1f3fc-1f527",uc_output:"1f469-1f3fc-200d-1f527",uc_match:"1f469-1f3fc-1f527",uc_greedy:"1f469-1f3fc-1f527",shortnames:[":woman_mechanic_medium_light_skin_tone:"],category:"people"},":woman_mechanic_tone3:":{uc_base:"1f469-1f3fd-1f527",uc_output:"1f469-1f3fd-200d-1f527",uc_match:"1f469-1f3fd-1f527",uc_greedy:"1f469-1f3fd-1f527",shortnames:[":woman_mechanic_medium_skin_tone:"],category:"people"},":woman_mechanic_tone4:":{uc_base:"1f469-1f3fe-1f527",uc_output:"1f469-1f3fe-200d-1f527",uc_match:"1f469-1f3fe-1f527",uc_greedy:"1f469-1f3fe-1f527",shortnames:[":woman_mechanic_medium_dark_skin_tone:"],category:"people"},":woman_mechanic_tone5:":{uc_base:"1f469-1f3ff-1f527",uc_output:"1f469-1f3ff-200d-1f527",uc_match:"1f469-1f3ff-1f527",uc_greedy:"1f469-1f3ff-1f527",shortnames:[":woman_mechanic_dark_skin_tone:"],category:"people"},":woman_office_worker_tone1:":{uc_base:"1f469-1f3fb-1f4bc",uc_output:"1f469-1f3fb-200d-1f4bc",uc_match:"1f469-1f3fb-1f4bc",uc_greedy:"1f469-1f3fb-1f4bc",shortnames:[":woman_office_worker_light_skin_tone:"],category:"people"},":woman_office_worker_tone2:":{uc_base:"1f469-1f3fc-1f4bc",uc_output:"1f469-1f3fc-200d-1f4bc",uc_match:"1f469-1f3fc-1f4bc",uc_greedy:"1f469-1f3fc-1f4bc",shortnames:[":woman_office_worker_medium_light_skin_tone:"],category:"people"},":woman_office_worker_tone3:":{uc_base:"1f469-1f3fd-1f4bc",uc_output:"1f469-1f3fd-200d-1f4bc",uc_match:"1f469-1f3fd-1f4bc",uc_greedy:"1f469-1f3fd-1f4bc",shortnames:[":woman_office_worker_medium_skin_tone:"],category:"people"},":woman_office_worker_tone4:":{uc_base:"1f469-1f3fe-1f4bc",uc_output:"1f469-1f3fe-200d-1f4bc",uc_match:"1f469-1f3fe-1f4bc",uc_greedy:"1f469-1f3fe-1f4bc",shortnames:[":woman_office_worker_medium_dark_skin_tone:"],category:"people"},":woman_office_worker_tone5:":{uc_base:"1f469-1f3ff-1f4bc",uc_output:"1f469-1f3ff-200d-1f4bc",uc_match:"1f469-1f3ff-1f4bc",uc_greedy:"1f469-1f3ff-1f4bc",shortnames:[":woman_office_worker_dark_skin_tone:"],category:"people"},":woman_scientist_tone1:":{uc_base:"1f469-1f3fb-1f52c",uc_output:"1f469-1f3fb-200d-1f52c",uc_match:"1f469-1f3fb-1f52c",uc_greedy:"1f469-1f3fb-1f52c",shortnames:[":woman_scientist_light_skin_tone:"],category:"people"},":woman_scientist_tone2:":{uc_base:"1f469-1f3fc-1f52c",uc_output:"1f469-1f3fc-200d-1f52c",uc_match:"1f469-1f3fc-1f52c",uc_greedy:"1f469-1f3fc-1f52c",shortnames:[":woman_scientist_medium_light_skin_tone:"],category:"people"},":woman_scientist_tone3:":{uc_base:"1f469-1f3fd-1f52c",uc_output:"1f469-1f3fd-200d-1f52c",uc_match:"1f469-1f3fd-1f52c",uc_greedy:"1f469-1f3fd-1f52c",shortnames:[":woman_scientist_medium_skin_tone:"],category:"people"},":woman_scientist_tone4:":{uc_base:"1f469-1f3fe-1f52c",uc_output:"1f469-1f3fe-200d-1f52c",uc_match:"1f469-1f3fe-1f52c",uc_greedy:"1f469-1f3fe-1f52c",shortnames:[":woman_scientist_medium_dark_skin_tone:"],category:"people"},":woman_scientist_tone5:":{uc_base:"1f469-1f3ff-1f52c",uc_output:"1f469-1f3ff-200d-1f52c",uc_match:"1f469-1f3ff-1f52c",uc_greedy:"1f469-1f3ff-1f52c",shortnames:[":woman_scientist_dark_skin_tone:"],category:"people"},":woman_singer_tone1:":{uc_base:"1f469-1f3fb-1f3a4",uc_output:"1f469-1f3fb-200d-1f3a4",uc_match:"1f469-1f3fb-1f3a4",uc_greedy:"1f469-1f3fb-1f3a4",shortnames:[":woman_singer_light_skin_tone:"],category:"people"},":woman_singer_tone2:":{uc_base:"1f469-1f3fc-1f3a4",uc_output:"1f469-1f3fc-200d-1f3a4",uc_match:"1f469-1f3fc-1f3a4",uc_greedy:"1f469-1f3fc-1f3a4",shortnames:[":woman_singer_medium_light_skin_tone:"],category:"people"},":woman_singer_tone3:":{uc_base:"1f469-1f3fd-1f3a4",uc_output:"1f469-1f3fd-200d-1f3a4",uc_match:"1f469-1f3fd-1f3a4",uc_greedy:"1f469-1f3fd-1f3a4",shortnames:[":woman_singer_medium_skin_tone:"],category:"people"},":woman_singer_tone4:":{uc_base:"1f469-1f3fe-1f3a4",uc_output:"1f469-1f3fe-200d-1f3a4",uc_match:"1f469-1f3fe-1f3a4",uc_greedy:"1f469-1f3fe-1f3a4",shortnames:[":woman_singer_medium_dark_skin_tone:"],category:"people"},":woman_singer_tone5:":{uc_base:"1f469-1f3ff-1f3a4",uc_output:"1f469-1f3ff-200d-1f3a4",uc_match:"1f469-1f3ff-1f3a4",uc_greedy:"1f469-1f3ff-1f3a4",shortnames:[":woman_singer_dark_skin_tone:"],category:"people"},":woman_student_tone1:":{uc_base:"1f469-1f3fb-1f393",uc_output:"1f469-1f3fb-200d-1f393",uc_match:"1f469-1f3fb-1f393",uc_greedy:"1f469-1f3fb-1f393",shortnames:[":woman_student_light_skin_tone:"],category:"people"},":woman_student_tone2:":{uc_base:"1f469-1f3fc-1f393",uc_output:"1f469-1f3fc-200d-1f393",uc_match:"1f469-1f3fc-1f393",uc_greedy:"1f469-1f3fc-1f393",shortnames:[":woman_student_medium_light_skin_tone:"],category:"people"},":woman_student_tone3:":{uc_base:"1f469-1f3fd-1f393",uc_output:"1f469-1f3fd-200d-1f393",uc_match:"1f469-1f3fd-1f393",uc_greedy:"1f469-1f3fd-1f393",shortnames:[":woman_student_medium_skin_tone:"],category:"people"},":woman_student_tone4:":{uc_base:"1f469-1f3fe-1f393",uc_output:"1f469-1f3fe-200d-1f393",uc_match:"1f469-1f3fe-1f393",uc_greedy:"1f469-1f3fe-1f393",shortnames:[":woman_student_medium_dark_skin_tone:"],category:"people"},":woman_student_tone5:":{uc_base:"1f469-1f3ff-1f393",uc_output:"1f469-1f3ff-200d-1f393",uc_match:"1f469-1f3ff-1f393",uc_greedy:"1f469-1f3ff-1f393",shortnames:[":woman_student_dark_skin_tone:"],category:"people"},":woman_teacher_tone1:":{uc_base:"1f469-1f3fb-1f3eb",uc_output:"1f469-1f3fb-200d-1f3eb",uc_match:"1f469-1f3fb-1f3eb",uc_greedy:"1f469-1f3fb-1f3eb",shortnames:[":woman_teacher_light_skin_tone:"],category:"people"},":woman_teacher_tone2:":{uc_base:"1f469-1f3fc-1f3eb",uc_output:"1f469-1f3fc-200d-1f3eb",uc_match:"1f469-1f3fc-1f3eb",uc_greedy:"1f469-1f3fc-1f3eb",shortnames:[":woman_teacher_medium_light_skin_tone:"],category:"people"},":woman_teacher_tone3:":{uc_base:"1f469-1f3fd-1f3eb",uc_output:"1f469-1f3fd-200d-1f3eb",uc_match:"1f469-1f3fd-1f3eb",uc_greedy:"1f469-1f3fd-1f3eb",shortnames:[":woman_teacher_medium_skin_tone:"],category:"people"},":woman_teacher_tone4:":{uc_base:"1f469-1f3fe-1f3eb",uc_output:"1f469-1f3fe-200d-1f3eb",uc_match:"1f469-1f3fe-1f3eb",uc_greedy:"1f469-1f3fe-1f3eb",shortnames:[":woman_teacher_medium_dark_skin_tone:"],category:"people"},":woman_teacher_tone5:":{uc_base:"1f469-1f3ff-1f3eb",uc_output:"1f469-1f3ff-200d-1f3eb",uc_match:"1f469-1f3ff-1f3eb",uc_greedy:"1f469-1f3ff-1f3eb",shortnames:[":woman_teacher_dark_skin_tone:"],category:"people"},":woman_technologist_tone1:":{uc_base:"1f469-1f3fb-1f4bb",uc_output:"1f469-1f3fb-200d-1f4bb",uc_match:"1f469-1f3fb-1f4bb",uc_greedy:"1f469-1f3fb-1f4bb",shortnames:[":woman_technologist_light_skin_tone:"],category:"people"},":woman_technologist_tone2:":{uc_base:"1f469-1f3fc-1f4bb",uc_output:"1f469-1f3fc-200d-1f4bb",uc_match:"1f469-1f3fc-1f4bb",uc_greedy:"1f469-1f3fc-1f4bb",shortnames:[":woman_technologist_medium_light_skin_tone:"],category:"people"},":woman_technologist_tone3:":{uc_base:"1f469-1f3fd-1f4bb",uc_output:"1f469-1f3fd-200d-1f4bb",uc_match:"1f469-1f3fd-1f4bb",uc_greedy:"1f469-1f3fd-1f4bb",shortnames:[":woman_technologist_medium_skin_tone:"],category:"people"},":woman_technologist_tone4:":{uc_base:"1f469-1f3fe-1f4bb",uc_output:"1f469-1f3fe-200d-1f4bb",uc_match:"1f469-1f3fe-1f4bb",uc_greedy:"1f469-1f3fe-1f4bb",shortnames:[":woman_technologist_medium_dark_skin_tone:"],category:"people"},":woman_technologist_tone5:":{uc_base:"1f469-1f3ff-1f4bb",uc_output:"1f469-1f3ff-200d-1f4bb",uc_match:"1f469-1f3ff-1f4bb",uc_greedy:"1f469-1f3ff-1f4bb",shortnames:[":woman_technologist_dark_skin_tone:"],category:"people"},":rainbow_flag:":{uc_base:"1f3f3-1f308",uc_output:"1f3f3-fe0f-200d-1f308",uc_match:"1f3f3-fe0f-1f308",uc_greedy:"1f3f3-1f308",shortnames:[":gay_pride_flag:"],category:"flags"},":blond-haired_man:":{uc_base:"1f471-2642",uc_output:"1f471-200d-2642-fe0f",uc_match:"1f471-2642-fe0f",uc_greedy:"1f471-2642",shortnames:[],category:"people"},":blond-haired_woman:":{uc_base:"1f471-2640",uc_output:"1f471-200d-2640-fe0f",uc_match:"1f471-2640-fe0f",uc_greedy:"1f471-2640",shortnames:[],category:"people"},":man_biking:":{uc_base:"1f6b4-2642",uc_output:"1f6b4-200d-2642-fe0f",uc_match:"1f6b4-2642-fe0f",uc_greedy:"1f6b4-2642",shortnames:[],category:"activity"},":man_bowing:":{uc_base:"1f647-2642",uc_output:"1f647-200d-2642-fe0f",uc_match:"1f647-2642-fe0f",uc_greedy:"1f647-2642",shortnames:[],category:"people"},":man_cartwheeling:":{uc_base:"1f938-2642",uc_output:"1f938-200d-2642-fe0f",uc_match:"1f938-2642-fe0f",uc_greedy:"1f938-2642",shortnames:[],category:"activity"},":man_climbing:":{uc_base:"1f9d7-2642",uc_output:"1f9d7-200d-2642-fe0f",uc_match:"1f9d7-2642-fe0f",uc_greedy:"1f9d7-2642",shortnames:[],category:"activity"},":man_construction_worker:":{uc_base:"1f477-2642",uc_output:"1f477-200d-2642-fe0f",uc_match:"1f477-2642-fe0f",uc_greedy:"1f477-2642",shortnames:[],category:"people"},":man_elf:":{uc_base:"1f9dd-2642",uc_output:"1f9dd-200d-2642-fe0f",uc_match:"1f9dd-2642-fe0f",uc_greedy:"1f9dd-2642",shortnames:[],category:"people"},":man_facepalming:":{uc_base:"1f926-2642",uc_output:"1f926-200d-2642-fe0f",uc_match:"1f926-2642-fe0f",uc_greedy:"1f926-2642",shortnames:[],category:"people"},":man_fairy:":{uc_base:"1f9da-2642",uc_output:"1f9da-200d-2642-fe0f",uc_match:"1f9da-2642-fe0f",uc_greedy:"1f9da-2642",shortnames:[],category:"people"},":man_frowning:":{uc_base:"1f64d-2642",uc_output:"1f64d-200d-2642-fe0f",uc_match:"1f64d-2642-fe0f",uc_greedy:"1f64d-2642",shortnames:[],category:"people"},":man_genie:":{uc_base:"1f9de-2642",uc_output:"1f9de-200d-2642-fe0f",uc_match:"1f9de-2642-fe0f",uc_greedy:"1f9de-2642",shortnames:[],category:"people"},":man_gesturing_no:":{uc_base:"1f645-2642",uc_output:"1f645-200d-2642-fe0f",uc_match:"1f645-2642-fe0f",uc_greedy:"1f645-2642",shortnames:[],category:"people"},":man_gesturing_ok:":{uc_base:"1f646-2642",uc_output:"1f646-200d-2642-fe0f",uc_match:"1f646-2642-fe0f",uc_greedy:"1f646-2642",shortnames:[],category:"people"},":man_getting_face_massage:":{uc_base:"1f486-2642",uc_output:"1f486-200d-2642-fe0f",uc_match:"1f486-2642-fe0f",uc_greedy:"1f486-2642",shortnames:[],category:"people"},":man_getting_haircut:":{uc_base:"1f487-2642",uc_output:"1f487-200d-2642-fe0f",uc_match:"1f487-2642-fe0f",uc_greedy:"1f487-2642",shortnames:[],category:"people"},":man_guard:":{uc_base:"1f482-2642",uc_output:"1f482-200d-2642-fe0f",uc_match:"1f482-2642-fe0f",uc_greedy:"1f482-2642",shortnames:[],category:"people"},":man_health_worker:":{uc_base:"1f468-2695",uc_output:"1f468-200d-2695-fe0f",uc_match:"1f468-2695-fe0f",uc_greedy:"1f468-2695",shortnames:[],category:"people"},":man_in_lotus_position:":{uc_base:"1f9d8-2642",uc_output:"1f9d8-200d-2642-fe0f",uc_match:"1f9d8-2642-fe0f",uc_greedy:"1f9d8-2642",shortnames:[],category:"activity"},":man_in_steamy_room:":{uc_base:"1f9d6-2642",uc_output:"1f9d6-200d-2642-fe0f",uc_match:"1f9d6-2642-fe0f",uc_greedy:"1f9d6-2642",shortnames:[],category:"people"},":man_judge:":{uc_base:"1f468-2696",uc_output:"1f468-200d-2696-fe0f",uc_match:"1f468-2696-fe0f",uc_greedy:"1f468-2696",shortnames:[],category:"people"},":man_juggling:":{uc_base:"1f939-2642",uc_output:"1f939-200d-2642-fe0f",uc_match:"1f939-2642-fe0f",uc_greedy:"1f939-2642",shortnames:[],category:"activity"},":man_mage:":{uc_base:"1f9d9-2642",uc_output:"1f9d9-200d-2642-fe0f",uc_match:"1f9d9-2642-fe0f",uc_greedy:"1f9d9-2642",shortnames:[],category:"people"},":man_mountain_biking:":{uc_base:"1f6b5-2642",uc_output:"1f6b5-200d-2642-fe0f",uc_match:"1f6b5-2642-fe0f",uc_greedy:"1f6b5-2642",shortnames:[],category:"activity"},":man_pilot:":{uc_base:"1f468-2708",uc_output:"1f468-200d-2708-fe0f",uc_match:"1f468-2708-fe0f",uc_greedy:"1f468-2708",shortnames:[],category:"people"},":man_playing_handball:":{uc_base:"1f93e-2642",uc_output:"1f93e-200d-2642-fe0f",uc_match:"1f93e-2642-fe0f",uc_greedy:"1f93e-2642",shortnames:[],category:"activity"},":man_playing_water_polo:":{uc_base:"1f93d-2642",uc_output:"1f93d-200d-2642-fe0f",uc_match:"1f93d-2642-fe0f",uc_greedy:"1f93d-2642",shortnames:[],category:"activity"},":man_police_officer:":{uc_base:"1f46e-2642",uc_output:"1f46e-200d-2642-fe0f",uc_match:"1f46e-2642-fe0f",uc_greedy:"1f46e-2642",shortnames:[],category:"people"},":man_pouting:":{uc_base:"1f64e-2642",uc_output:"1f64e-200d-2642-fe0f",uc_match:"1f64e-2642-fe0f",uc_greedy:"1f64e-2642",shortnames:[],category:"people"},":man_raising_hand:":{uc_base:"1f64b-2642",uc_output:"1f64b-200d-2642-fe0f",uc_match:"1f64b-2642-fe0f",uc_greedy:"1f64b-2642",shortnames:[],category:"people"},":man_rowing_boat:":{uc_base:"1f6a3-2642",uc_output:"1f6a3-200d-2642-fe0f",uc_match:"1f6a3-2642-fe0f",uc_greedy:"1f6a3-2642",shortnames:[],category:"activity"},":man_running:":{uc_base:"1f3c3-2642",uc_output:"1f3c3-200d-2642-fe0f",uc_match:"1f3c3-2642-fe0f",uc_greedy:"1f3c3-2642",shortnames:[],category:"people"},":man_shrugging:":{uc_base:"1f937-2642",uc_output:"1f937-200d-2642-fe0f",uc_match:"1f937-2642-fe0f",uc_greedy:"1f937-2642",shortnames:[],category:"people"},":man_surfing:":{uc_base:"1f3c4-2642",uc_output:"1f3c4-200d-2642-fe0f",uc_match:"1f3c4-2642-fe0f",uc_greedy:"1f3c4-2642",shortnames:[],category:"activity"},":man_swimming:":{uc_base:"1f3ca-2642",uc_output:"1f3ca-200d-2642-fe0f",uc_match:"1f3ca-2642-fe0f",uc_greedy:"1f3ca-2642",shortnames:[],category:"activity"},":man_tipping_hand:":{uc_base:"1f481-2642",uc_output:"1f481-200d-2642-fe0f",uc_match:"1f481-2642-fe0f",uc_greedy:"1f481-2642",shortnames:[],category:"people"},":man_vampire:":{uc_base:"1f9db-2642",uc_output:"1f9db-200d-2642-fe0f",uc_match:"1f9db-2642-fe0f",uc_greedy:"1f9db-2642",shortnames:[],category:"people"},":man_walking:":{uc_base:"1f6b6-2642",uc_output:"1f6b6-200d-2642-fe0f",uc_match:"1f6b6-2642-fe0f",uc_greedy:"1f6b6-2642",shortnames:[],category:"people"},":man_wearing_turban:":{uc_base:"1f473-2642",uc_output:"1f473-200d-2642-fe0f",uc_match:"1f473-2642-fe0f",uc_greedy:"1f473-2642",shortnames:[],category:"people"},":man_zombie:":{uc_base:"1f9df-2642",uc_output:"1f9df-200d-2642-fe0f",uc_match:"1f9df-2642-fe0f",uc_greedy:"1f9df-2642",shortnames:[],category:"people"},":men_with_bunny_ears_partying:":{uc_base:"1f46f-2642",uc_output:"1f46f-200d-2642-fe0f",uc_match:"1f46f-2642-fe0f",uc_greedy:"1f46f-2642",shortnames:[],category:"people"},":men_wrestling:":{uc_base:"1f93c-2642",uc_output:"1f93c-200d-2642-fe0f",uc_match:"1f93c-2642-fe0f",uc_greedy:"1f93c-2642",shortnames:[],category:"activity"},":mermaid:":{uc_base:"1f9dc-2640",uc_output:"1f9dc-200d-2640-fe0f",uc_match:"1f9dc-2640-fe0f",uc_greedy:"1f9dc-2640",shortnames:[],category:"people"},":merman:":{uc_base:"1f9dc-2642",uc_output:"1f9dc-200d-2642-fe0f",uc_match:"1f9dc-2642-fe0f",uc_greedy:"1f9dc-2642",shortnames:[],category:"people"},":woman_biking:":{uc_base:"1f6b4-2640",uc_output:"1f6b4-200d-2640-fe0f",uc_match:"1f6b4-2640-fe0f",uc_greedy:"1f6b4-2640",shortnames:[],category:"activity"},":woman_bowing:":{uc_base:"1f647-2640",uc_output:"1f647-200d-2640-fe0f",uc_match:"1f647-2640-fe0f",uc_greedy:"1f647-2640",shortnames:[],category:"people"},":woman_cartwheeling:":{uc_base:"1f938-2640",uc_output:"1f938-200d-2640-fe0f",uc_match:"1f938-2640-fe0f",uc_greedy:"1f938-2640",shortnames:[],category:"activity"},":woman_climbing:":{uc_base:"1f9d7-2640",uc_output:"1f9d7-200d-2640-fe0f",uc_match:"1f9d7-2640-fe0f",uc_greedy:"1f9d7-2640",shortnames:[],category:"activity"},":woman_construction_worker:":{uc_base:"1f477-2640",uc_output:"1f477-200d-2640-fe0f",uc_match:"1f477-2640-fe0f",uc_greedy:"1f477-2640",shortnames:[],category:"people"},":woman_elf:":{uc_base:"1f9dd-2640",uc_output:"1f9dd-200d-2640-fe0f",uc_match:"1f9dd-2640-fe0f",uc_greedy:"1f9dd-2640",shortnames:[],category:"people"},":woman_facepalming:":{uc_base:"1f926-2640",uc_output:"1f926-200d-2640-fe0f",uc_match:"1f926-2640-fe0f",uc_greedy:"1f926-2640",shortnames:[],category:"people"},":woman_fairy:":{uc_base:"1f9da-2640",uc_output:"1f9da-200d-2640-fe0f",uc_match:"1f9da-2640-fe0f",uc_greedy:"1f9da-2640",shortnames:[],category:"people"},":woman_frowning:":{uc_base:"1f64d-2640",uc_output:"1f64d-200d-2640-fe0f",uc_match:"1f64d-2640-fe0f",uc_greedy:"1f64d-2640",shortnames:[],category:"people"},":woman_genie:":{uc_base:"1f9de-2640",uc_output:"1f9de-200d-2640-fe0f",uc_match:"1f9de-2640-fe0f",uc_greedy:"1f9de-2640",shortnames:[],category:"people"},":woman_gesturing_no:":{uc_base:"1f645-2640",uc_output:"1f645-200d-2640-fe0f",uc_match:"1f645-2640-fe0f",uc_greedy:"1f645-2640",shortnames:[],category:"people"},":woman_gesturing_ok:":{uc_base:"1f646-2640",uc_output:"1f646-200d-2640-fe0f",uc_match:"1f646-2640-fe0f",uc_greedy:"1f646-2640",shortnames:[],category:"people"},":woman_getting_face_massage:":{uc_base:"1f486-2640",uc_output:"1f486-200d-2640-fe0f",uc_match:"1f486-2640-fe0f",uc_greedy:"1f486-2640",shortnames:[],category:"people"},":woman_getting_haircut:":{uc_base:"1f487-2640",uc_output:"1f487-200d-2640-fe0f",uc_match:"1f487-2640-fe0f",uc_greedy:"1f487-2640",shortnames:[],category:"people"},":woman_guard:":{uc_base:"1f482-2640",uc_output:"1f482-200d-2640-fe0f",uc_match:"1f482-2640-fe0f",uc_greedy:"1f482-2640",shortnames:[],category:"people"},":woman_health_worker:":{uc_base:"1f469-2695",uc_output:"1f469-200d-2695-fe0f",uc_match:"1f469-2695-fe0f",uc_greedy:"1f469-2695",shortnames:[],category:"people"},":woman_in_lotus_position:":{uc_base:"1f9d8-2640",uc_output:"1f9d8-200d-2640-fe0f",uc_match:"1f9d8-2640-fe0f",uc_greedy:"1f9d8-2640",shortnames:[],category:"activity"},":woman_in_steamy_room:":{uc_base:"1f9d6-2640",uc_output:"1f9d6-200d-2640-fe0f",uc_match:"1f9d6-2640-fe0f",uc_greedy:"1f9d6-2640",shortnames:[],category:"people"},":woman_judge:":{uc_base:"1f469-2696",uc_output:"1f469-200d-2696-fe0f",uc_match:"1f469-2696-fe0f",uc_greedy:"1f469-2696",shortnames:[],category:"people"},":woman_juggling:":{uc_base:"1f939-2640",uc_output:"1f939-200d-2640-fe0f",uc_match:"1f939-2640-fe0f",uc_greedy:"1f939-2640",shortnames:[],category:"activity"},":woman_mage:":{uc_base:"1f9d9-2640",uc_output:"1f9d9-200d-2640-fe0f",uc_match:"1f9d9-2640-fe0f",uc_greedy:"1f9d9-2640",shortnames:[],category:"people"},":woman_mountain_biking:":{uc_base:"1f6b5-2640",uc_output:"1f6b5-200d-2640-fe0f",uc_match:"1f6b5-2640-fe0f",uc_greedy:"1f6b5-2640",shortnames:[],category:"activity"},":woman_pilot:":{uc_base:"1f469-2708",uc_output:"1f469-200d-2708-fe0f",uc_match:"1f469-2708-fe0f",uc_greedy:"1f469-2708",shortnames:[],category:"people"},":woman_playing_handball:":{uc_base:"1f93e-2640",uc_output:"1f93e-200d-2640-fe0f",uc_match:"1f93e-2640-fe0f",uc_greedy:"1f93e-2640",shortnames:[],category:"activity"},":woman_playing_water_polo:":{uc_base:"1f93d-2640",uc_output:"1f93d-200d-2640-fe0f",uc_match:"1f93d-2640-fe0f",uc_greedy:"1f93d-2640",shortnames:[],category:"activity"},":woman_police_officer:":{uc_base:"1f46e-2640",uc_output:"1f46e-200d-2640-fe0f",uc_match:"1f46e-2640-fe0f",uc_greedy:"1f46e-2640",shortnames:[],category:"people"},":woman_pouting:":{uc_base:"1f64e-2640",uc_output:"1f64e-200d-2640-fe0f",uc_match:"1f64e-2640-fe0f",uc_greedy:"1f64e-2640",shortnames:[],category:"people"},":woman_raising_hand:":{uc_base:"1f64b-2640",uc_output:"1f64b-200d-2640-fe0f",uc_match:"1f64b-2640-fe0f",uc_greedy:"1f64b-2640",shortnames:[],category:"people"},":woman_rowing_boat:":{uc_base:"1f6a3-2640",uc_output:"1f6a3-200d-2640-fe0f",uc_match:"1f6a3-2640-fe0f",uc_greedy:"1f6a3-2640",shortnames:[],category:"activity"},":woman_running:":{uc_base:"1f3c3-2640",uc_output:"1f3c3-200d-2640-fe0f",uc_match:"1f3c3-2640-fe0f",uc_greedy:"1f3c3-2640",shortnames:[],category:"people"},":woman_shrugging:":{uc_base:"1f937-2640",uc_output:"1f937-200d-2640-fe0f",uc_match:"1f937-2640-fe0f",uc_greedy:"1f937-2640",shortnames:[],category:"people"},":woman_surfing:":{uc_base:"1f3c4-2640",uc_output:"1f3c4-200d-2640-fe0f",uc_match:"1f3c4-2640-fe0f",uc_greedy:"1f3c4-2640",shortnames:[],category:"activity"},":woman_swimming:":{uc_base:"1f3ca-2640",uc_output:"1f3ca-200d-2640-fe0f",uc_match:"1f3ca-2640-fe0f",uc_greedy:"1f3ca-2640",shortnames:[],category:"activity"},":woman_tipping_hand:":{uc_base:"1f481-2640",uc_output:"1f481-200d-2640-fe0f",uc_match:"1f481-2640-fe0f",uc_greedy:"1f481-2640",shortnames:[],category:"people"},":woman_vampire:":{uc_base:"1f9db-2640",uc_output:"1f9db-200d-2640-fe0f",uc_match:"1f9db-2640-fe0f",uc_greedy:"1f9db-2640",shortnames:[],category:"people"},":woman_walking:":{uc_base:"1f6b6-2640",uc_output:"1f6b6-200d-2640-fe0f",uc_match:"1f6b6-2640-fe0f",uc_greedy:"1f6b6-2640",shortnames:[],category:"people"},":woman_wearing_turban:":{uc_base:"1f473-2640",uc_output:"1f473-200d-2640-fe0f",uc_match:"1f473-2640-fe0f",uc_greedy:"1f473-2640",shortnames:[],category:"people"},":woman_zombie:":{uc_base:"1f9df-2640",uc_output:"1f9df-200d-2640-fe0f",uc_match:"1f9df-2640-fe0f",uc_greedy:"1f9df-2640",shortnames:[],category:"people"},":women_with_bunny_ears_partying:":{uc_base:"1f46f-2640",uc_output:"1f46f-200d-2640-fe0f",uc_match:"1f46f-2640-fe0f",uc_greedy:"1f46f-2640",shortnames:[],category:"people"},":women_wrestling:":{uc_base:"1f93c-2640",uc_output:"1f93c-200d-2640-fe0f",uc_match:"1f93c-2640-fe0f",uc_greedy:"1f93c-2640",shortnames:[],category:"activity"},":family_man_boy:":{uc_base:"1f468-1f466",uc_output:"1f468-200d-1f466",uc_match:"1f468-1f466",uc_greedy:"1f468-1f466",shortnames:[],category:"people"},":family_man_girl:":{uc_base:"1f468-1f467",uc_output:"1f468-200d-1f467",uc_match:"1f468-1f467",uc_greedy:"1f468-1f467",shortnames:[],category:"people"},":family_woman_boy:":{uc_base:"1f469-1f466",uc_output:"1f469-200d-1f466",uc_match:"1f469-1f466",uc_greedy:"1f469-1f466",shortnames:[],category:"people"},":family_woman_girl:":{uc_base:"1f469-1f467",uc_output:"1f469-200d-1f467",uc_match:"1f469-1f467",uc_greedy:"1f469-1f467",shortnames:[],category:"people"},":man_artist:":{uc_base:"1f468-1f3a8",uc_output:"1f468-200d-1f3a8",uc_match:"1f468-1f3a8",uc_greedy:"1f468-1f3a8",shortnames:[],category:"people"},":man_astronaut:":{uc_base:"1f468-1f680",uc_output:"1f468-200d-1f680",uc_match:"1f468-1f680",uc_greedy:"1f468-1f680",shortnames:[],category:"people"},":man_cook:":{uc_base:"1f468-1f373",uc_output:"1f468-200d-1f373",uc_match:"1f468-1f373",uc_greedy:"1f468-1f373",shortnames:[],category:"people"},":man_factory_worker:":{uc_base:"1f468-1f3ed",uc_output:"1f468-200d-1f3ed",uc_match:"1f468-1f3ed",uc_greedy:"1f468-1f3ed",shortnames:[],category:"people"},":man_farmer:":{uc_base:"1f468-1f33e",uc_output:"1f468-200d-1f33e",uc_match:"1f468-1f33e",uc_greedy:"1f468-1f33e",shortnames:[],category:"people"},":man_firefighter:":{uc_base:"1f468-1f692",uc_output:"1f468-200d-1f692",uc_match:"1f468-1f692",uc_greedy:"1f468-1f692",shortnames:[],category:"people"},":man_mechanic:":{uc_base:"1f468-1f527",uc_output:"1f468-200d-1f527",uc_match:"1f468-1f527",uc_greedy:"1f468-1f527",shortnames:[],category:"people"},":man_office_worker:":{uc_base:"1f468-1f4bc",uc_output:"1f468-200d-1f4bc",uc_match:"1f468-1f4bc",uc_greedy:"1f468-1f4bc",shortnames:[],category:"people"},":man_scientist:":{uc_base:"1f468-1f52c",uc_output:"1f468-200d-1f52c",uc_match:"1f468-1f52c",uc_greedy:"1f468-1f52c",shortnames:[],category:"people"},":man_singer:":{uc_base:"1f468-1f3a4",uc_output:"1f468-200d-1f3a4",uc_match:"1f468-1f3a4",uc_greedy:"1f468-1f3a4",shortnames:[],category:"people"},":man_student:":{uc_base:"1f468-1f393",uc_output:"1f468-200d-1f393",uc_match:"1f468-1f393",uc_greedy:"1f468-1f393",shortnames:[],category:"people"},":man_teacher:":{uc_base:"1f468-1f3eb",uc_output:"1f468-200d-1f3eb",uc_match:"1f468-1f3eb",uc_greedy:"1f468-1f3eb",shortnames:[],category:"people"},":man_technologist:":{uc_base:"1f468-1f4bb",uc_output:"1f468-200d-1f4bb",uc_match:"1f468-1f4bb",uc_greedy:"1f468-1f4bb",shortnames:[],category:"people"},":woman_artist:":{uc_base:"1f469-1f3a8",uc_output:"1f469-200d-1f3a8",uc_match:"1f469-1f3a8",uc_greedy:"1f469-1f3a8",shortnames:[],category:"people"},":woman_astronaut:":{uc_base:"1f469-1f680",uc_output:"1f469-200d-1f680",uc_match:"1f469-1f680",uc_greedy:"1f469-1f680",shortnames:[],category:"people"},":woman_cook:":{uc_base:"1f469-1f373",uc_output:"1f469-200d-1f373",uc_match:"1f469-1f373",uc_greedy:"1f469-1f373",shortnames:[],category:"people"},":woman_factory_worker:":{uc_base:"1f469-1f3ed",uc_output:"1f469-200d-1f3ed",uc_match:"1f469-1f3ed",uc_greedy:"1f469-1f3ed",shortnames:[],category:"people"},":woman_farmer:":{uc_base:"1f469-1f33e",uc_output:"1f469-200d-1f33e",uc_match:"1f469-1f33e",uc_greedy:"1f469-1f33e",shortnames:[],category:"people"},":woman_firefighter:":{uc_base:"1f469-1f692",uc_output:"1f469-200d-1f692",uc_match:"1f469-1f692",uc_greedy:"1f469-1f692",shortnames:[],category:"people"},":woman_mechanic:":{uc_base:"1f469-1f527",uc_output:"1f469-200d-1f527",uc_match:"1f469-1f527",uc_greedy:"1f469-1f527",shortnames:[],category:"people"},":woman_office_worker:":{uc_base:"1f469-1f4bc",uc_output:"1f469-200d-1f4bc",uc_match:"1f469-1f4bc",uc_greedy:"1f469-1f4bc",shortnames:[],category:"people"},":woman_scientist:":{uc_base:"1f469-1f52c",uc_output:"1f469-200d-1f52c",uc_match:"1f469-1f52c",uc_greedy:"1f469-1f52c",shortnames:[],category:"people"},":woman_singer:":{uc_base:"1f469-1f3a4",uc_output:"1f469-200d-1f3a4",uc_match:"1f469-1f3a4",uc_greedy:"1f469-1f3a4",shortnames:[],category:"people"},":woman_student:":{uc_base:"1f469-1f393",uc_output:"1f469-200d-1f393",uc_match:"1f469-1f393",uc_greedy:"1f469-1f393",shortnames:[],category:"people"},":woman_teacher:":{uc_base:"1f469-1f3eb",uc_output:"1f469-200d-1f3eb",uc_match:"1f469-1f3eb",uc_greedy:"1f469-1f3eb",shortnames:[],category:"people"},":woman_technologist:":{uc_base:"1f469-1f4bb",uc_output:"1f469-200d-1f4bb",uc_match:"1f469-1f4bb",uc_greedy:"1f469-1f4bb",shortnames:[],category:"people"},":asterisk:":{uc_base:"002a-20e3",uc_output:"002a-fe0f-20e3",uc_match:"002a-20e3",uc_greedy:"002a-20e3",shortnames:[":keycap_asterisk:"],category:"symbols"},":eight:":{uc_base:"0038-20e3",uc_output:"0038-fe0f-20e3",uc_match:"0038-20e3",uc_greedy:"0038-20e3",shortnames:[],category:"symbols"},":five:":{uc_base:"0035-20e3",uc_output:"0035-fe0f-20e3",uc_match:"0035-20e3",uc_greedy:"0035-20e3",shortnames:[],category:"symbols"},":four:":{uc_base:"0034-20e3",uc_output:"0034-fe0f-20e3",uc_match:"0034-20e3",uc_greedy:"0034-20e3",shortnames:[],category:"symbols"},":hash:":{uc_base:"0023-20e3",uc_output:"0023-fe0f-20e3",uc_match:"0023-20e3",uc_greedy:"0023-20e3",shortnames:[],category:"symbols"},":nine:":{uc_base:"0039-20e3",uc_output:"0039-fe0f-20e3",uc_match:"0039-20e3",uc_greedy:"0039-20e3",shortnames:[],category:"symbols"},":one:":{uc_base:"0031-20e3",uc_output:"0031-fe0f-20e3",uc_match:"0031-20e3",uc_greedy:"0031-20e3",shortnames:[],category:"symbols"},":seven:":{uc_base:"0037-20e3",uc_output:"0037-fe0f-20e3",uc_match:"0037-20e3",uc_greedy:"0037-20e3",shortnames:[],category:"symbols"},":six:":{uc_base:"0036-20e3",uc_output:"0036-fe0f-20e3",uc_match:"0036-20e3",uc_greedy:"0036-20e3",shortnames:[],category:"symbols"},":three:":{uc_base:"0033-20e3",uc_output:"0033-fe0f-20e3",uc_match:"0033-20e3",uc_greedy:"0033-20e3",shortnames:[],category:"symbols"},":two:":{uc_base:"0032-20e3",uc_output:"0032-fe0f-20e3",uc_match:"0032-20e3",uc_greedy:"0032-20e3",shortnames:[],category:"symbols"},":zero:":{uc_base:"0030-20e3",uc_output:"0030-fe0f-20e3",uc_match:"0030-20e3",uc_greedy:"0030-20e3",shortnames:[],category:"symbols"},":adult_tone1:":{uc_base:"1f9d1-1f3fb",uc_output:"1f9d1-1f3fb",uc_match:"1f9d1-1f3fb",uc_greedy:"1f9d1-1f3fb",shortnames:[":adult_light_skin_tone:"],category:"people"},":adult_tone2:":{uc_base:"1f9d1-1f3fc",uc_output:"1f9d1-1f3fc",uc_match:"1f9d1-1f3fc",uc_greedy:"1f9d1-1f3fc",shortnames:[":adult_medium_light_skin_tone:"],category:"people"},":adult_tone3:":{uc_base:"1f9d1-1f3fd",uc_output:"1f9d1-1f3fd",uc_match:"1f9d1-1f3fd",uc_greedy:"1f9d1-1f3fd",shortnames:[":adult_medium_skin_tone:"],category:"people"},":adult_tone4:":{uc_base:"1f9d1-1f3fe",uc_output:"1f9d1-1f3fe",uc_match:"1f9d1-1f3fe",uc_greedy:"1f9d1-1f3fe",shortnames:[":adult_medium_dark_skin_tone:"],category:"people"},":adult_tone5:":{uc_base:"1f9d1-1f3ff",uc_output:"1f9d1-1f3ff",uc_match:"1f9d1-1f3ff",uc_greedy:"1f9d1-1f3ff",shortnames:[":adult_dark_skin_tone:"],category:"people"},":angel_tone1:":{uc_base:"1f47c-1f3fb",uc_output:"1f47c-1f3fb",uc_match:"1f47c-1f3fb",uc_greedy:"1f47c-1f3fb",shortnames:[],category:"people"},":angel_tone2:":{uc_base:"1f47c-1f3fc",uc_output:"1f47c-1f3fc",uc_match:"1f47c-1f3fc",uc_greedy:"1f47c-1f3fc",shortnames:[],category:"people"},":angel_tone3:":{uc_base:"1f47c-1f3fd",uc_output:"1f47c-1f3fd",uc_match:"1f47c-1f3fd",uc_greedy:"1f47c-1f3fd",shortnames:[],category:"people"},":angel_tone4:":{uc_base:"1f47c-1f3fe",uc_output:"1f47c-1f3fe",uc_match:"1f47c-1f3fe",uc_greedy:"1f47c-1f3fe",shortnames:[],category:"people"},":angel_tone5:":{uc_base:"1f47c-1f3ff",uc_output:"1f47c-1f3ff",uc_match:"1f47c-1f3ff",uc_greedy:"1f47c-1f3ff",shortnames:[],category:"people"},":baby_tone1:":{uc_base:"1f476-1f3fb",uc_output:"1f476-1f3fb",uc_match:"1f476-1f3fb",uc_greedy:"1f476-1f3fb",shortnames:[],category:"people"},":baby_tone2:":{uc_base:"1f476-1f3fc",uc_output:"1f476-1f3fc",uc_match:"1f476-1f3fc",uc_greedy:"1f476-1f3fc",shortnames:[],category:"people"},":baby_tone3:":{uc_base:"1f476-1f3fd",uc_output:"1f476-1f3fd",uc_match:"1f476-1f3fd",uc_greedy:"1f476-1f3fd",shortnames:[],category:"people"},":baby_tone4:":{uc_base:"1f476-1f3fe",uc_output:"1f476-1f3fe",uc_match:"1f476-1f3fe",uc_greedy:"1f476-1f3fe",shortnames:[],category:"people"},":baby_tone5:":{uc_base:"1f476-1f3ff",uc_output:"1f476-1f3ff",uc_match:"1f476-1f3ff",uc_greedy:"1f476-1f3ff",shortnames:[],category:"people"},":bath_tone1:":{uc_base:"1f6c0-1f3fb",uc_output:"1f6c0-1f3fb",uc_match:"1f6c0-1f3fb",uc_greedy:"1f6c0-1f3fb",shortnames:[],category:"objects"},":bath_tone2:":{uc_base:"1f6c0-1f3fc",uc_output:"1f6c0-1f3fc",uc_match:"1f6c0-1f3fc",uc_greedy:"1f6c0-1f3fc",shortnames:[],category:"objects"},":bath_tone3:":{uc_base:"1f6c0-1f3fd",uc_output:"1f6c0-1f3fd",uc_match:"1f6c0-1f3fd",uc_greedy:"1f6c0-1f3fd",shortnames:[],category:"objects"},":bath_tone4:":{uc_base:"1f6c0-1f3fe",uc_output:"1f6c0-1f3fe",uc_match:"1f6c0-1f3fe",uc_greedy:"1f6c0-1f3fe",shortnames:[],category:"objects"},":bath_tone5:":{uc_base:"1f6c0-1f3ff",uc_output:"1f6c0-1f3ff",uc_match:"1f6c0-1f3ff",uc_greedy:"1f6c0-1f3ff",shortnames:[],category:"objects"},":bearded_person_tone1:":{uc_base:"1f9d4-1f3fb",uc_output:"1f9d4-1f3fb",uc_match:"1f9d4-1f3fb",uc_greedy:"1f9d4-1f3fb",shortnames:[":bearded_person_light_skin_tone:"],category:"people"},":bearded_person_tone2:":{uc_base:"1f9d4-1f3fc",uc_output:"1f9d4-1f3fc",uc_match:"1f9d4-1f3fc",uc_greedy:"1f9d4-1f3fc",shortnames:[":bearded_person_medium_light_skin_tone:"],category:"people"},":bearded_person_tone3:":{uc_base:"1f9d4-1f3fd",uc_output:"1f9d4-1f3fd",uc_match:"1f9d4-1f3fd",uc_greedy:"1f9d4-1f3fd",shortnames:[":bearded_person_medium_skin_tone:"],category:"people"},":bearded_person_tone4:":{uc_base:"1f9d4-1f3fe",uc_output:"1f9d4-1f3fe",uc_match:"1f9d4-1f3fe",uc_greedy:"1f9d4-1f3fe",shortnames:[":bearded_person_medium_dark_skin_tone:"],category:"people"},":bearded_person_tone5:":{uc_base:"1f9d4-1f3ff",uc_output:"1f9d4-1f3ff",uc_match:"1f9d4-1f3ff",uc_greedy:"1f9d4-1f3ff",shortnames:[":bearded_person_dark_skin_tone:"],category:"people"},":blond_haired_person_tone1:":{uc_base:"1f471-1f3fb",uc_output:"1f471-1f3fb",uc_match:"1f471-1f3fb",uc_greedy:"1f471-1f3fb",shortnames:[":person_with_blond_hair_tone1:"],category:"people"},":blond_haired_person_tone2:":{uc_base:"1f471-1f3fc",uc_output:"1f471-1f3fc",uc_match:"1f471-1f3fc",uc_greedy:"1f471-1f3fc",shortnames:[":person_with_blond_hair_tone2:"],category:"people"},":blond_haired_person_tone3:":{uc_base:"1f471-1f3fd",uc_output:"1f471-1f3fd",uc_match:"1f471-1f3fd",uc_greedy:"1f471-1f3fd",shortnames:[":person_with_blond_hair_tone3:"],category:"people"},":blond_haired_person_tone4:":{uc_base:"1f471-1f3fe",uc_output:"1f471-1f3fe",uc_match:"1f471-1f3fe",uc_greedy:"1f471-1f3fe",shortnames:[":person_with_blond_hair_tone4:"],category:"people"},":blond_haired_person_tone5:":{uc_base:"1f471-1f3ff",uc_output:"1f471-1f3ff",uc_match:"1f471-1f3ff",uc_greedy:"1f471-1f3ff",shortnames:[":person_with_blond_hair_tone5:"],category:"people"},":boy_tone1:":{uc_base:"1f466-1f3fb",uc_output:"1f466-1f3fb",uc_match:"1f466-1f3fb",uc_greedy:"1f466-1f3fb",shortnames:[],category:"people"},":boy_tone2:":{uc_base:"1f466-1f3fc",uc_output:"1f466-1f3fc",uc_match:"1f466-1f3fc",uc_greedy:"1f466-1f3fc",shortnames:[],category:"people"},":boy_tone3:":{uc_base:"1f466-1f3fd",uc_output:"1f466-1f3fd",uc_match:"1f466-1f3fd",uc_greedy:"1f466-1f3fd",shortnames:[],category:"people"},":boy_tone4:":{uc_base:"1f466-1f3fe",uc_output:"1f466-1f3fe",uc_match:"1f466-1f3fe",uc_greedy:"1f466-1f3fe",shortnames:[],category:"people"},":boy_tone5:":{uc_base:"1f466-1f3ff",uc_output:"1f466-1f3ff",uc_match:"1f466-1f3ff",uc_greedy:"1f466-1f3ff",shortnames:[],category:"people"},":breast_feeding_tone1:":{uc_base:"1f931-1f3fb",uc_output:"1f931-1f3fb",uc_match:"1f931-1f3fb",uc_greedy:"1f931-1f3fb",shortnames:[":breast_feeding_light_skin_tone:"],category:"people"},":breast_feeding_tone2:":{uc_base:"1f931-1f3fc",uc_output:"1f931-1f3fc",uc_match:"1f931-1f3fc",uc_greedy:"1f931-1f3fc",shortnames:[":breast_feeding_medium_light_skin_tone:"],category:"people"},":breast_feeding_tone3:":{uc_base:"1f931-1f3fd",uc_output:"1f931-1f3fd",uc_match:"1f931-1f3fd",uc_greedy:"1f931-1f3fd",shortnames:[":breast_feeding_medium_skin_tone:"],category:"people"},":breast_feeding_tone4:":{uc_base:"1f931-1f3fe",uc_output:"1f931-1f3fe",uc_match:"1f931-1f3fe",uc_greedy:"1f931-1f3fe",shortnames:[":breast_feeding_medium_dark_skin_tone:"],category:"people"},":breast_feeding_tone5:":{uc_base:"1f931-1f3ff",uc_output:"1f931-1f3ff",uc_match:"1f931-1f3ff",uc_greedy:"1f931-1f3ff",shortnames:[":breast_feeding_dark_skin_tone:"],category:"people"},":bride_with_veil_tone1:":{uc_base:"1f470-1f3fb",uc_output:"1f470-1f3fb",uc_match:"1f470-1f3fb",uc_greedy:"1f470-1f3fb",shortnames:[],category:"people"},":bride_with_veil_tone2:":{uc_base:"1f470-1f3fc",uc_output:"1f470-1f3fc",uc_match:"1f470-1f3fc",uc_greedy:"1f470-1f3fc",shortnames:[],category:"people"},":bride_with_veil_tone3:":{uc_base:"1f470-1f3fd",uc_output:"1f470-1f3fd",uc_match:"1f470-1f3fd",uc_greedy:"1f470-1f3fd",shortnames:[],category:"people"},":bride_with_veil_tone4:":{uc_base:"1f470-1f3fe",uc_output:"1f470-1f3fe",uc_match:"1f470-1f3fe",uc_greedy:"1f470-1f3fe",shortnames:[],category:"people"},":bride_with_veil_tone5:":{uc_base:"1f470-1f3ff",uc_output:"1f470-1f3ff",uc_match:"1f470-1f3ff",uc_greedy:"1f470-1f3ff",shortnames:[],category:"people"},":call_me_tone1:":{uc_base:"1f919-1f3fb",uc_output:"1f919-1f3fb",uc_match:"1f919-1f3fb",uc_greedy:"1f919-1f3fb",shortnames:[":call_me_hand_tone1:"],category:"people"},":call_me_tone2:":{uc_base:"1f919-1f3fc",uc_output:"1f919-1f3fc",uc_match:"1f919-1f3fc",uc_greedy:"1f919-1f3fc",shortnames:[":call_me_hand_tone2:"],category:"people"},":call_me_tone3:":{uc_base:"1f919-1f3fd",uc_output:"1f919-1f3fd",uc_match:"1f919-1f3fd",uc_greedy:"1f919-1f3fd",shortnames:[":call_me_hand_tone3:"],category:"people"},":call_me_tone4:":{uc_base:"1f919-1f3fe",uc_output:"1f919-1f3fe",uc_match:"1f919-1f3fe",uc_greedy:"1f919-1f3fe",shortnames:[":call_me_hand_tone4:"],category:"people"},":call_me_tone5:":{uc_base:"1f919-1f3ff",uc_output:"1f919-1f3ff",uc_match:"1f919-1f3ff",uc_greedy:"1f919-1f3ff",shortnames:[":call_me_hand_tone5:"],category:"people"},":child_tone1:":{uc_base:"1f9d2-1f3fb",uc_output:"1f9d2-1f3fb",uc_match:"1f9d2-1f3fb",uc_greedy:"1f9d2-1f3fb",shortnames:[":child_light_skin_tone:"],category:"people"},":child_tone2:":{uc_base:"1f9d2-1f3fc",uc_output:"1f9d2-1f3fc",uc_match:"1f9d2-1f3fc",uc_greedy:"1f9d2-1f3fc",shortnames:[":child_medium_light_skin_tone:"],category:"people"},":child_tone3:":{uc_base:"1f9d2-1f3fd",uc_output:"1f9d2-1f3fd",uc_match:"1f9d2-1f3fd",uc_greedy:"1f9d2-1f3fd",shortnames:[":child_medium_skin_tone:"],category:"people"},":child_tone4:":{uc_base:"1f9d2-1f3fe",uc_output:"1f9d2-1f3fe",uc_match:"1f9d2-1f3fe",uc_greedy:"1f9d2-1f3fe",shortnames:[":child_medium_dark_skin_tone:"],category:"people"},":child_tone5:":{uc_base:"1f9d2-1f3ff",uc_output:"1f9d2-1f3ff",uc_match:"1f9d2-1f3ff",uc_greedy:"1f9d2-1f3ff",shortnames:[":child_dark_skin_tone:"],category:"people"},":clap_tone1:":{uc_base:"1f44f-1f3fb",uc_output:"1f44f-1f3fb",uc_match:"1f44f-1f3fb",uc_greedy:"1f44f-1f3fb",shortnames:[],category:"people"},":clap_tone2:":{uc_base:"1f44f-1f3fc",uc_output:"1f44f-1f3fc",uc_match:"1f44f-1f3fc",uc_greedy:"1f44f-1f3fc",shortnames:[],category:"people"},":clap_tone3:":{uc_base:"1f44f-1f3fd",uc_output:"1f44f-1f3fd",uc_match:"1f44f-1f3fd",uc_greedy:"1f44f-1f3fd",shortnames:[],category:"people"},":clap_tone4:":{uc_base:"1f44f-1f3fe",uc_output:"1f44f-1f3fe",uc_match:"1f44f-1f3fe",uc_greedy:"1f44f-1f3fe",shortnames:[],category:"people"},":clap_tone5:":{uc_base:"1f44f-1f3ff",uc_output:"1f44f-1f3ff",uc_match:"1f44f-1f3ff",uc_greedy:"1f44f-1f3ff",shortnames:[],category:"people"},":construction_worker_tone1:":{uc_base:"1f477-1f3fb",uc_output:"1f477-1f3fb",uc_match:"1f477-1f3fb",uc_greedy:"1f477-1f3fb",shortnames:[],category:"people"},":construction_worker_tone2:":{uc_base:"1f477-1f3fc",uc_output:"1f477-1f3fc",uc_match:"1f477-1f3fc",uc_greedy:"1f477-1f3fc",shortnames:[],category:"people"},":construction_worker_tone3:":{uc_base:"1f477-1f3fd",uc_output:"1f477-1f3fd",uc_match:"1f477-1f3fd",uc_greedy:"1f477-1f3fd",shortnames:[],category:"people"},":construction_worker_tone4:":{uc_base:"1f477-1f3fe",uc_output:"1f477-1f3fe",uc_match:"1f477-1f3fe",uc_greedy:"1f477-1f3fe",shortnames:[],category:"people"},":construction_worker_tone5:":{uc_base:"1f477-1f3ff",uc_output:"1f477-1f3ff",uc_match:"1f477-1f3ff",uc_greedy:"1f477-1f3ff",shortnames:[],category:"people"},":dancer_tone1:":{uc_base:"1f483-1f3fb",uc_output:"1f483-1f3fb",uc_match:"1f483-1f3fb",uc_greedy:"1f483-1f3fb",shortnames:[],category:"people"},":dancer_tone2:":{uc_base:"1f483-1f3fc",uc_output:"1f483-1f3fc",uc_match:"1f483-1f3fc",uc_greedy:"1f483-1f3fc",shortnames:[],category:"people"},":dancer_tone3:":{uc_base:"1f483-1f3fd",uc_output:"1f483-1f3fd",uc_match:"1f483-1f3fd",uc_greedy:"1f483-1f3fd",shortnames:[],category:"people"},":dancer_tone4:":{uc_base:"1f483-1f3fe",uc_output:"1f483-1f3fe",uc_match:"1f483-1f3fe",uc_greedy:"1f483-1f3fe",shortnames:[],category:"people"},":dancer_tone5:":{uc_base:"1f483-1f3ff",uc_output:"1f483-1f3ff",uc_match:"1f483-1f3ff",uc_greedy:"1f483-1f3ff",shortnames:[],category:"people"},":detective_tone1:":{uc_base:"1f575-1f3fb",uc_output:"1f575-1f3fb",uc_match:"1f575-fe0f-1f3fb",uc_greedy:"1f575-fe0f-1f3fb",shortnames:[":spy_tone1:",":sleuth_or_spy_tone1:"],category:"people"},":detective_tone2:":{uc_base:"1f575-1f3fc",uc_output:"1f575-1f3fc",uc_match:"1f575-fe0f-1f3fc",uc_greedy:"1f575-fe0f-1f3fc",shortnames:[":spy_tone2:",":sleuth_or_spy_tone2:"],category:"people"},":detective_tone3:":{uc_base:"1f575-1f3fd",uc_output:"1f575-1f3fd",uc_match:"1f575-fe0f-1f3fd",uc_greedy:"1f575-fe0f-1f3fd",shortnames:[":spy_tone3:",":sleuth_or_spy_tone3:"],category:"people"},":detective_tone4:":{uc_base:"1f575-1f3fe",uc_output:"1f575-1f3fe",uc_match:"1f575-fe0f-1f3fe",uc_greedy:"1f575-fe0f-1f3fe",shortnames:[":spy_tone4:",":sleuth_or_spy_tone4:"],category:"people"},":detective_tone5:":{uc_base:"1f575-1f3ff",uc_output:"1f575-1f3ff",uc_match:"1f575-fe0f-1f3ff",uc_greedy:"1f575-fe0f-1f3ff",shortnames:[":spy_tone5:",":sleuth_or_spy_tone5:"],category:"people"},":ear_tone1:":{uc_base:"1f442-1f3fb",uc_output:"1f442-1f3fb",uc_match:"1f442-1f3fb",uc_greedy:"1f442-1f3fb",shortnames:[],category:"people"},":ear_tone2:":{uc_base:"1f442-1f3fc",uc_output:"1f442-1f3fc",uc_match:"1f442-1f3fc",uc_greedy:"1f442-1f3fc",shortnames:[],category:"people"},":ear_tone3:":{uc_base:"1f442-1f3fd",uc_output:"1f442-1f3fd",uc_match:"1f442-1f3fd",uc_greedy:"1f442-1f3fd",shortnames:[],category:"people"},":ear_tone4:":{uc_base:"1f442-1f3fe",uc_output:"1f442-1f3fe",uc_match:"1f442-1f3fe",uc_greedy:"1f442-1f3fe",shortnames:[],category:"people"},":ear_tone5:":{uc_base:"1f442-1f3ff",uc_output:"1f442-1f3ff",uc_match:"1f442-1f3ff",uc_greedy:"1f442-1f3ff",shortnames:[],category:"people"},":elf_tone1:":{uc_base:"1f9dd-1f3fb",uc_output:"1f9dd-1f3fb",uc_match:"1f9dd-1f3fb",uc_greedy:"1f9dd-1f3fb",shortnames:[":elf_light_skin_tone:"],category:"people"},":elf_tone2:":{uc_base:"1f9dd-1f3fc",uc_output:"1f9dd-1f3fc",uc_match:"1f9dd-1f3fc",uc_greedy:"1f9dd-1f3fc",shortnames:[":elf_medium_light_skin_tone:"],category:"people"},":elf_tone3:":{uc_base:"1f9dd-1f3fd",uc_output:"1f9dd-1f3fd",uc_match:"1f9dd-1f3fd",uc_greedy:"1f9dd-1f3fd",shortnames:[":elf_medium_skin_tone:"],category:"people"},":elf_tone4:":{uc_base:"1f9dd-1f3fe",uc_output:"1f9dd-1f3fe",uc_match:"1f9dd-1f3fe",uc_greedy:"1f9dd-1f3fe",shortnames:[":elf_medium_dark_skin_tone:"],category:"people"},":elf_tone5:":{uc_base:"1f9dd-1f3ff",uc_output:"1f9dd-1f3ff",uc_match:"1f9dd-1f3ff",uc_greedy:"1f9dd-1f3ff",shortnames:[":elf_dark_skin_tone:"],category:"people"},":fairy_tone1:":{uc_base:"1f9da-1f3fb",uc_output:"1f9da-1f3fb",uc_match:"1f9da-1f3fb",uc_greedy:"1f9da-1f3fb",shortnames:[":fairy_light_skin_tone:"],category:"people"},":fairy_tone2:":{uc_base:"1f9da-1f3fc",uc_output:"1f9da-1f3fc",uc_match:"1f9da-1f3fc",uc_greedy:"1f9da-1f3fc",shortnames:[":fairy_medium_light_skin_tone:"],category:"people"},":fairy_tone3:":{uc_base:"1f9da-1f3fd",uc_output:"1f9da-1f3fd",uc_match:"1f9da-1f3fd",uc_greedy:"1f9da-1f3fd",shortnames:[":fairy_medium_skin_tone:"],category:"people"},":fairy_tone4:":{uc_base:"1f9da-1f3fe",uc_output:"1f9da-1f3fe",uc_match:"1f9da-1f3fe",uc_greedy:"1f9da-1f3fe",shortnames:[":fairy_medium_dark_skin_tone:"],category:"people"},":fairy_tone5:":{uc_base:"1f9da-1f3ff",uc_output:"1f9da-1f3ff",uc_match:"1f9da-1f3ff",uc_greedy:"1f9da-1f3ff",shortnames:[":fairy_dark_skin_tone:"],category:"people"},":fingers_crossed_tone1:":{uc_base:"1f91e-1f3fb",uc_output:"1f91e-1f3fb",uc_match:"1f91e-1f3fb",uc_greedy:"1f91e-1f3fb",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone1:"],category:"people"},":fingers_crossed_tone2:":{uc_base:"1f91e-1f3fc",uc_output:"1f91e-1f3fc",uc_match:"1f91e-1f3fc",uc_greedy:"1f91e-1f3fc",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone2:"],category:"people"},":fingers_crossed_tone3:":{uc_base:"1f91e-1f3fd",uc_output:"1f91e-1f3fd",uc_match:"1f91e-1f3fd",uc_greedy:"1f91e-1f3fd",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone3:"],category:"people"},":fingers_crossed_tone4:":{uc_base:"1f91e-1f3fe",uc_output:"1f91e-1f3fe",uc_match:"1f91e-1f3fe",uc_greedy:"1f91e-1f3fe",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone4:"],category:"people"},":fingers_crossed_tone5:":{uc_base:"1f91e-1f3ff",uc_output:"1f91e-1f3ff",uc_match:"1f91e-1f3ff",uc_greedy:"1f91e-1f3ff",shortnames:[":hand_with_index_and_middle_fingers_crossed_tone5:"],category:"people"},":flag_ac:":{uc_base:"1f1e6-1f1e8",uc_output:"1f1e6-1f1e8",uc_match:"1f1e6-1f1e8",uc_greedy:"1f1e6-1f1e8",shortnames:[":ac:"],category:"flags"},":flag_ad:":{uc_base:"1f1e6-1f1e9",uc_output:"1f1e6-1f1e9",uc_match:"1f1e6-1f1e9",uc_greedy:"1f1e6-1f1e9",shortnames:[":ad:"],category:"flags"},":flag_ae:":{uc_base:"1f1e6-1f1ea",uc_output:"1f1e6-1f1ea",uc_match:"1f1e6-1f1ea",uc_greedy:"1f1e6-1f1ea",shortnames:[":ae:"],category:"flags"},":flag_af:":{uc_base:"1f1e6-1f1eb",uc_output:"1f1e6-1f1eb",uc_match:"1f1e6-1f1eb",uc_greedy:"1f1e6-1f1eb",shortnames:[":af:"],category:"flags"},":flag_ag:":{uc_base:"1f1e6-1f1ec",uc_output:"1f1e6-1f1ec",uc_match:"1f1e6-1f1ec",uc_greedy:"1f1e6-1f1ec",shortnames:[":ag:"],category:"flags"},":flag_ai:":{uc_base:"1f1e6-1f1ee",uc_output:"1f1e6-1f1ee",uc_match:"1f1e6-1f1ee",uc_greedy:"1f1e6-1f1ee",shortnames:[":ai:"],category:"flags"},":flag_al:":{uc_base:"1f1e6-1f1f1",uc_output:"1f1e6-1f1f1",uc_match:"1f1e6-1f1f1",uc_greedy:"1f1e6-1f1f1",shortnames:[":al:"],category:"flags"},":flag_am:":{uc_base:"1f1e6-1f1f2",uc_output:"1f1e6-1f1f2",uc_match:"1f1e6-1f1f2",uc_greedy:"1f1e6-1f1f2",shortnames:[":am:"],category:"flags"},":flag_ao:":{uc_base:"1f1e6-1f1f4",uc_output:"1f1e6-1f1f4",uc_match:"1f1e6-1f1f4",uc_greedy:"1f1e6-1f1f4",shortnames:[":ao:"],category:"flags"},":flag_aq:":{uc_base:"1f1e6-1f1f6",uc_output:"1f1e6-1f1f6",uc_match:"1f1e6-1f1f6",uc_greedy:"1f1e6-1f1f6",shortnames:[":aq:"],category:"flags"},":flag_ar:":{uc_base:"1f1e6-1f1f7",uc_output:"1f1e6-1f1f7",uc_match:"1f1e6-1f1f7",uc_greedy:"1f1e6-1f1f7",shortnames:[":ar:"],category:"flags"},":flag_as:":{uc_base:"1f1e6-1f1f8",uc_output:"1f1e6-1f1f8",uc_match:"1f1e6-1f1f8",uc_greedy:"1f1e6-1f1f8",shortnames:[":as:"],category:"flags"},":flag_at:":{uc_base:"1f1e6-1f1f9",uc_output:"1f1e6-1f1f9",uc_match:"1f1e6-1f1f9",uc_greedy:"1f1e6-1f1f9",shortnames:[":at:"],category:"flags"},":flag_au:":{uc_base:"1f1e6-1f1fa",uc_output:"1f1e6-1f1fa",uc_match:"1f1e6-1f1fa",uc_greedy:"1f1e6-1f1fa",shortnames:[":au:"],category:"flags"},":flag_aw:":{uc_base:"1f1e6-1f1fc",uc_output:"1f1e6-1f1fc",uc_match:"1f1e6-1f1fc",uc_greedy:"1f1e6-1f1fc",shortnames:[":aw:"],category:"flags"},":flag_ax:":{uc_base:"1f1e6-1f1fd",uc_output:"1f1e6-1f1fd",uc_match:"1f1e6-1f1fd",uc_greedy:"1f1e6-1f1fd",shortnames:[":ax:"],category:"flags"},":flag_az:":{uc_base:"1f1e6-1f1ff",uc_output:"1f1e6-1f1ff",uc_match:"1f1e6-1f1ff",uc_greedy:"1f1e6-1f1ff",shortnames:[":az:"],category:"flags"},":flag_ba:":{uc_base:"1f1e7-1f1e6",uc_output:"1f1e7-1f1e6",uc_match:"1f1e7-1f1e6",uc_greedy:"1f1e7-1f1e6",shortnames:[":ba:"],category:"flags"},":flag_bb:":{uc_base:"1f1e7-1f1e7",uc_output:"1f1e7-1f1e7",uc_match:"1f1e7-1f1e7",uc_greedy:"1f1e7-1f1e7",shortnames:[":bb:"],category:"flags"},":flag_bd:":{uc_base:"1f1e7-1f1e9",uc_output:"1f1e7-1f1e9",uc_match:"1f1e7-1f1e9",uc_greedy:"1f1e7-1f1e9",shortnames:[":bd:"],category:"flags"},":flag_be:":{uc_base:"1f1e7-1f1ea",uc_output:"1f1e7-1f1ea",uc_match:"1f1e7-1f1ea",uc_greedy:"1f1e7-1f1ea",shortnames:[":be:"],category:"flags"},":flag_bf:":{uc_base:"1f1e7-1f1eb",uc_output:"1f1e7-1f1eb",uc_match:"1f1e7-1f1eb",uc_greedy:"1f1e7-1f1eb",shortnames:[":bf:"],category:"flags"},":flag_bg:":{uc_base:"1f1e7-1f1ec",uc_output:"1f1e7-1f1ec",uc_match:"1f1e7-1f1ec",uc_greedy:"1f1e7-1f1ec",shortnames:[":bg:"],category:"flags"},":flag_bh:":{uc_base:"1f1e7-1f1ed",uc_output:"1f1e7-1f1ed",uc_match:"1f1e7-1f1ed",uc_greedy:"1f1e7-1f1ed",shortnames:[":bh:"],category:"flags"},":flag_bi:":{uc_base:"1f1e7-1f1ee",uc_output:"1f1e7-1f1ee",uc_match:"1f1e7-1f1ee",uc_greedy:"1f1e7-1f1ee",shortnames:[":bi:"],category:"flags"},":flag_bj:":{uc_base:"1f1e7-1f1ef",uc_output:"1f1e7-1f1ef",uc_match:"1f1e7-1f1ef",uc_greedy:"1f1e7-1f1ef",shortnames:[":bj:"],category:"flags"},":flag_bl:":{uc_base:"1f1e7-1f1f1",uc_output:"1f1e7-1f1f1",uc_match:"1f1e7-1f1f1",uc_greedy:"1f1e7-1f1f1",shortnames:[":bl:"],category:"flags"},":flag_bm:":{uc_base:"1f1e7-1f1f2",uc_output:"1f1e7-1f1f2",uc_match:"1f1e7-1f1f2",uc_greedy:"1f1e7-1f1f2",shortnames:[":bm:"],category:"flags"},":flag_bn:":{uc_base:"1f1e7-1f1f3",uc_output:"1f1e7-1f1f3",uc_match:"1f1e7-1f1f3",uc_greedy:"1f1e7-1f1f3",shortnames:[":bn:"],category:"flags"},":flag_bo:":{uc_base:"1f1e7-1f1f4",uc_output:"1f1e7-1f1f4",uc_match:"1f1e7-1f1f4",uc_greedy:"1f1e7-1f1f4",shortnames:[":bo:"],category:"flags"},":flag_bq:":{uc_base:"1f1e7-1f1f6",uc_output:"1f1e7-1f1f6",uc_match:"1f1e7-1f1f6",uc_greedy:"1f1e7-1f1f6",shortnames:[":bq:"],category:"flags"},":flag_br:":{uc_base:"1f1e7-1f1f7",uc_output:"1f1e7-1f1f7",uc_match:"1f1e7-1f1f7",uc_greedy:"1f1e7-1f1f7",shortnames:[":br:"],category:"flags"},":flag_bs:":{uc_base:"1f1e7-1f1f8",uc_output:"1f1e7-1f1f8",uc_match:"1f1e7-1f1f8",uc_greedy:"1f1e7-1f1f8",shortnames:[":bs:"],category:"flags"},":flag_bt:":{uc_base:"1f1e7-1f1f9",uc_output:"1f1e7-1f1f9",uc_match:"1f1e7-1f1f9",uc_greedy:"1f1e7-1f1f9",shortnames:[":bt:"],category:"flags"},":flag_bv:":{uc_base:"1f1e7-1f1fb",uc_output:"1f1e7-1f1fb",uc_match:"1f1e7-1f1fb",uc_greedy:"1f1e7-1f1fb",shortnames:[":bv:"],category:"flags"},":flag_bw:":{uc_base:"1f1e7-1f1fc",uc_output:"1f1e7-1f1fc",uc_match:"1f1e7-1f1fc",uc_greedy:"1f1e7-1f1fc",shortnames:[":bw:"],category:"flags"},":flag_by:":{uc_base:"1f1e7-1f1fe",uc_output:"1f1e7-1f1fe",uc_match:"1f1e7-1f1fe",uc_greedy:"1f1e7-1f1fe",shortnames:[":by:"],category:"flags"},":flag_bz:":{uc_base:"1f1e7-1f1ff",uc_output:"1f1e7-1f1ff",uc_match:"1f1e7-1f1ff",uc_greedy:"1f1e7-1f1ff",shortnames:[":bz:"],category:"flags"},":flag_ca:":{uc_base:"1f1e8-1f1e6",uc_output:"1f1e8-1f1e6",uc_match:"1f1e8-1f1e6",uc_greedy:"1f1e8-1f1e6",shortnames:[":ca:"],category:"flags"},":flag_cc:":{uc_base:"1f1e8-1f1e8",uc_output:"1f1e8-1f1e8",uc_match:"1f1e8-1f1e8",uc_greedy:"1f1e8-1f1e8",shortnames:[":cc:"],category:"flags"},":flag_cd:":{uc_base:"1f1e8-1f1e9",uc_output:"1f1e8-1f1e9",uc_match:"1f1e8-1f1e9",uc_greedy:"1f1e8-1f1e9",shortnames:[":congo:"],category:"flags"},":flag_cf:":{uc_base:"1f1e8-1f1eb",uc_output:"1f1e8-1f1eb",uc_match:"1f1e8-1f1eb",uc_greedy:"1f1e8-1f1eb",shortnames:[":cf:"],category:"flags"},":flag_cg:":{uc_base:"1f1e8-1f1ec",uc_output:"1f1e8-1f1ec",uc_match:"1f1e8-1f1ec",uc_greedy:"1f1e8-1f1ec",shortnames:[":cg:"],category:"flags"},":flag_ch:":{uc_base:"1f1e8-1f1ed",uc_output:"1f1e8-1f1ed",uc_match:"1f1e8-1f1ed",uc_greedy:"1f1e8-1f1ed",shortnames:[":ch:"],category:"flags"},":flag_ci:":{uc_base:"1f1e8-1f1ee",uc_output:"1f1e8-1f1ee",uc_match:"1f1e8-1f1ee",uc_greedy:"1f1e8-1f1ee",shortnames:[":ci:"],category:"flags"},":flag_ck:":{uc_base:"1f1e8-1f1f0",uc_output:"1f1e8-1f1f0",uc_match:"1f1e8-1f1f0",uc_greedy:"1f1e8-1f1f0",shortnames:[":ck:"],category:"flags"},":flag_cl:":{uc_base:"1f1e8-1f1f1",uc_output:"1f1e8-1f1f1",uc_match:"1f1e8-1f1f1",uc_greedy:"1f1e8-1f1f1",shortnames:[":chile:"],category:"flags"},":flag_cm:":{uc_base:"1f1e8-1f1f2",uc_output:"1f1e8-1f1f2",uc_match:"1f1e8-1f1f2",uc_greedy:"1f1e8-1f1f2",shortnames:[":cm:"],category:"flags"},":flag_cn:":{uc_base:"1f1e8-1f1f3",uc_output:"1f1e8-1f1f3",uc_match:"1f1e8-1f1f3",uc_greedy:"1f1e8-1f1f3",shortnames:[":cn:"],category:"flags"},":flag_co:":{uc_base:"1f1e8-1f1f4",uc_output:"1f1e8-1f1f4",uc_match:"1f1e8-1f1f4",uc_greedy:"1f1e8-1f1f4",shortnames:[":co:"],category:"flags"},":flag_cp:":{uc_base:"1f1e8-1f1f5",uc_output:"1f1e8-1f1f5",uc_match:"1f1e8-1f1f5",uc_greedy:"1f1e8-1f1f5",shortnames:[":cp:"],category:"flags"},":flag_cr:":{uc_base:"1f1e8-1f1f7",uc_output:"1f1e8-1f1f7",uc_match:"1f1e8-1f1f7",uc_greedy:"1f1e8-1f1f7",shortnames:[":cr:"],category:"flags"},":flag_cu:":{uc_base:"1f1e8-1f1fa",uc_output:"1f1e8-1f1fa",uc_match:"1f1e8-1f1fa",uc_greedy:"1f1e8-1f1fa",shortnames:[":cu:"],category:"flags"},":flag_cv:":{uc_base:"1f1e8-1f1fb",uc_output:"1f1e8-1f1fb",uc_match:"1f1e8-1f1fb",uc_greedy:"1f1e8-1f1fb",shortnames:[":cv:"],category:"flags"},":flag_cw:":{uc_base:"1f1e8-1f1fc",uc_output:"1f1e8-1f1fc",uc_match:"1f1e8-1f1fc",uc_greedy:"1f1e8-1f1fc",shortnames:[":cw:"],category:"flags"},":flag_cx:":{uc_base:"1f1e8-1f1fd",uc_output:"1f1e8-1f1fd",uc_match:"1f1e8-1f1fd",uc_greedy:"1f1e8-1f1fd",shortnames:[":cx:"],category:"flags"},":flag_cy:":{uc_base:"1f1e8-1f1fe",uc_output:"1f1e8-1f1fe",uc_match:"1f1e8-1f1fe",uc_greedy:"1f1e8-1f1fe",shortnames:[":cy:"],category:"flags"},":flag_cz:":{uc_base:"1f1e8-1f1ff",uc_output:"1f1e8-1f1ff",uc_match:"1f1e8-1f1ff",uc_greedy:"1f1e8-1f1ff",shortnames:[":cz:"],category:"flags"},":flag_de:":{uc_base:"1f1e9-1f1ea",uc_output:"1f1e9-1f1ea",uc_match:"1f1e9-1f1ea",uc_greedy:"1f1e9-1f1ea",shortnames:[":de:"],category:"flags"},":flag_dg:":{uc_base:"1f1e9-1f1ec",uc_output:"1f1e9-1f1ec",uc_match:"1f1e9-1f1ec",uc_greedy:"1f1e9-1f1ec",shortnames:[":dg:"],category:"flags"},":flag_dj:":{uc_base:"1f1e9-1f1ef",uc_output:"1f1e9-1f1ef",uc_match:"1f1e9-1f1ef",uc_greedy:"1f1e9-1f1ef",shortnames:[":dj:"],category:"flags"},":flag_dk:":{uc_base:"1f1e9-1f1f0",uc_output:"1f1e9-1f1f0",uc_match:"1f1e9-1f1f0",uc_greedy:"1f1e9-1f1f0",shortnames:[":dk:"],category:"flags"},":flag_dm:":{uc_base:"1f1e9-1f1f2",uc_output:"1f1e9-1f1f2",uc_match:"1f1e9-1f1f2",uc_greedy:"1f1e9-1f1f2",shortnames:[":dm:"],category:"flags"},":flag_do:":{uc_base:"1f1e9-1f1f4",uc_output:"1f1e9-1f1f4",uc_match:"1f1e9-1f1f4",uc_greedy:"1f1e9-1f1f4",shortnames:[":do:"],category:"flags"},":flag_dz:":{uc_base:"1f1e9-1f1ff",uc_output:"1f1e9-1f1ff",uc_match:"1f1e9-1f1ff",uc_greedy:"1f1e9-1f1ff",shortnames:[":dz:"],category:"flags"},":flag_ea:":{uc_base:"1f1ea-1f1e6",uc_output:"1f1ea-1f1e6",uc_match:"1f1ea-1f1e6",uc_greedy:"1f1ea-1f1e6",shortnames:[":ea:"],category:"flags"},":flag_ec:":{uc_base:"1f1ea-1f1e8",uc_output:"1f1ea-1f1e8",uc_match:"1f1ea-1f1e8",uc_greedy:"1f1ea-1f1e8",shortnames:[":ec:"],category:"flags"},":flag_ee:":{uc_base:"1f1ea-1f1ea",uc_output:"1f1ea-1f1ea",uc_match:"1f1ea-1f1ea",uc_greedy:"1f1ea-1f1ea",shortnames:[":ee:"],category:"flags"},":flag_eg:":{uc_base:"1f1ea-1f1ec",uc_output:"1f1ea-1f1ec",uc_match:"1f1ea-1f1ec",uc_greedy:"1f1ea-1f1ec",shortnames:[":eg:"],category:"flags"},":flag_eh:":{uc_base:"1f1ea-1f1ed",uc_output:"1f1ea-1f1ed",uc_match:"1f1ea-1f1ed",uc_greedy:"1f1ea-1f1ed",shortnames:[":eh:"],category:"flags"},":flag_er:":{uc_base:"1f1ea-1f1f7",uc_output:"1f1ea-1f1f7",uc_match:"1f1ea-1f1f7",uc_greedy:"1f1ea-1f1f7",shortnames:[":er:"],category:"flags"},":flag_es:":{uc_base:"1f1ea-1f1f8",uc_output:"1f1ea-1f1f8",uc_match:"1f1ea-1f1f8",uc_greedy:"1f1ea-1f1f8",shortnames:[":es:"],category:"flags"},":flag_et:":{uc_base:"1f1ea-1f1f9",uc_output:"1f1ea-1f1f9",uc_match:"1f1ea-1f1f9",uc_greedy:"1f1ea-1f1f9",shortnames:[":et:"],category:"flags"},":flag_eu:":{uc_base:"1f1ea-1f1fa",uc_output:"1f1ea-1f1fa",uc_match:"1f1ea-1f1fa",uc_greedy:"1f1ea-1f1fa",shortnames:[":eu:"],category:"flags"},":flag_fi:":{uc_base:"1f1eb-1f1ee",uc_output:"1f1eb-1f1ee",uc_match:"1f1eb-1f1ee",uc_greedy:"1f1eb-1f1ee",shortnames:[":fi:"],category:"flags"},":flag_fj:":{uc_base:"1f1eb-1f1ef",uc_output:"1f1eb-1f1ef",uc_match:"1f1eb-1f1ef",uc_greedy:"1f1eb-1f1ef",shortnames:[":fj:"],category:"flags"},":flag_fk:":{uc_base:"1f1eb-1f1f0",uc_output:"1f1eb-1f1f0",uc_match:"1f1eb-1f1f0",uc_greedy:"1f1eb-1f1f0",shortnames:[":fk:"],category:"flags"},":flag_fm:":{uc_base:"1f1eb-1f1f2",uc_output:"1f1eb-1f1f2",uc_match:"1f1eb-1f1f2",uc_greedy:"1f1eb-1f1f2",shortnames:[":fm:"],category:"flags"},":flag_fo:":{uc_base:"1f1eb-1f1f4",uc_output:"1f1eb-1f1f4",uc_match:"1f1eb-1f1f4",uc_greedy:"1f1eb-1f1f4",shortnames:[":fo:"],category:"flags"},":flag_fr:":{uc_base:"1f1eb-1f1f7",uc_output:"1f1eb-1f1f7",uc_match:"1f1eb-1f1f7",uc_greedy:"1f1eb-1f1f7",shortnames:[":fr:"],category:"flags"},":flag_ga:":{uc_base:"1f1ec-1f1e6",uc_output:"1f1ec-1f1e6",uc_match:"1f1ec-1f1e6",uc_greedy:"1f1ec-1f1e6",shortnames:[":ga:"],category:"flags"},":flag_gb:":{uc_base:"1f1ec-1f1e7",uc_output:"1f1ec-1f1e7",uc_match:"1f1ec-1f1e7",uc_greedy:"1f1ec-1f1e7",shortnames:[":gb:"],category:"flags"},":flag_gd:":{uc_base:"1f1ec-1f1e9",uc_output:"1f1ec-1f1e9",uc_match:"1f1ec-1f1e9",uc_greedy:"1f1ec-1f1e9",shortnames:[":gd:"],category:"flags"},":flag_ge:":{uc_base:"1f1ec-1f1ea",uc_output:"1f1ec-1f1ea",uc_match:"1f1ec-1f1ea",uc_greedy:"1f1ec-1f1ea",shortnames:[":ge:"],category:"flags"},":flag_gf:":{uc_base:"1f1ec-1f1eb",uc_output:"1f1ec-1f1eb",uc_match:"1f1ec-1f1eb",uc_greedy:"1f1ec-1f1eb",shortnames:[":gf:"],category:"flags"},":flag_gg:":{uc_base:"1f1ec-1f1ec",uc_output:"1f1ec-1f1ec",uc_match:"1f1ec-1f1ec",uc_greedy:"1f1ec-1f1ec",shortnames:[":gg:"],category:"flags"},":flag_gh:":{uc_base:"1f1ec-1f1ed",uc_output:"1f1ec-1f1ed",uc_match:"1f1ec-1f1ed",uc_greedy:"1f1ec-1f1ed",shortnames:[":gh:"],category:"flags"},":flag_gi:":{uc_base:"1f1ec-1f1ee",uc_output:"1f1ec-1f1ee",uc_match:"1f1ec-1f1ee",uc_greedy:"1f1ec-1f1ee",shortnames:[":gi:"],category:"flags"},":flag_gl:":{uc_base:"1f1ec-1f1f1",uc_output:"1f1ec-1f1f1",uc_match:"1f1ec-1f1f1",uc_greedy:"1f1ec-1f1f1",shortnames:[":gl:"],category:"flags"},":flag_gm:":{uc_base:"1f1ec-1f1f2",uc_output:"1f1ec-1f1f2",uc_match:"1f1ec-1f1f2",uc_greedy:"1f1ec-1f1f2",shortnames:[":gm:"],category:"flags"},":flag_gn:":{uc_base:"1f1ec-1f1f3",uc_output:"1f1ec-1f1f3",uc_match:"1f1ec-1f1f3",uc_greedy:"1f1ec-1f1f3",shortnames:[":gn:"],category:"flags"},":flag_gp:":{uc_base:"1f1ec-1f1f5",uc_output:"1f1ec-1f1f5",uc_match:"1f1ec-1f1f5",uc_greedy:"1f1ec-1f1f5",shortnames:[":gp:"],category:"flags"},":flag_gq:":{uc_base:"1f1ec-1f1f6",uc_output:"1f1ec-1f1f6",uc_match:"1f1ec-1f1f6",uc_greedy:"1f1ec-1f1f6",shortnames:[":gq:"],category:"flags"},":flag_gr:":{uc_base:"1f1ec-1f1f7",uc_output:"1f1ec-1f1f7",uc_match:"1f1ec-1f1f7",uc_greedy:"1f1ec-1f1f7",shortnames:[":gr:"],category:"flags"},":flag_gs:":{uc_base:"1f1ec-1f1f8",uc_output:"1f1ec-1f1f8",uc_match:"1f1ec-1f1f8",uc_greedy:"1f1ec-1f1f8",shortnames:[":gs:"],category:"flags"},":flag_gt:":{uc_base:"1f1ec-1f1f9",uc_output:"1f1ec-1f1f9",uc_match:"1f1ec-1f1f9",uc_greedy:"1f1ec-1f1f9",shortnames:[":gt:"],category:"flags"},":flag_gu:":{uc_base:"1f1ec-1f1fa",uc_output:"1f1ec-1f1fa",uc_match:"1f1ec-1f1fa",uc_greedy:"1f1ec-1f1fa",shortnames:[":gu:"],category:"flags"},":flag_gw:":{uc_base:"1f1ec-1f1fc",uc_output:"1f1ec-1f1fc",uc_match:"1f1ec-1f1fc",uc_greedy:"1f1ec-1f1fc",shortnames:[":gw:"],category:"flags"},":flag_gy:":{uc_base:"1f1ec-1f1fe",uc_output:"1f1ec-1f1fe",uc_match:"1f1ec-1f1fe",uc_greedy:"1f1ec-1f1fe",shortnames:[":gy:"],category:"flags"},":flag_hk:":{uc_base:"1f1ed-1f1f0",uc_output:"1f1ed-1f1f0",uc_match:"1f1ed-1f1f0",uc_greedy:"1f1ed-1f1f0",shortnames:[":hk:"],category:"flags"},":flag_hm:":{uc_base:"1f1ed-1f1f2",uc_output:"1f1ed-1f1f2",uc_match:"1f1ed-1f1f2",uc_greedy:"1f1ed-1f1f2",shortnames:[":hm:"],category:"flags"},":flag_hn:":{uc_base:"1f1ed-1f1f3",uc_output:"1f1ed-1f1f3",uc_match:"1f1ed-1f1f3",uc_greedy:"1f1ed-1f1f3",shortnames:[":hn:"],category:"flags"},":flag_hr:":{uc_base:"1f1ed-1f1f7",uc_output:"1f1ed-1f1f7",uc_match:"1f1ed-1f1f7",uc_greedy:"1f1ed-1f1f7",shortnames:[":hr:"],category:"flags"},":flag_ht:":{uc_base:"1f1ed-1f1f9",uc_output:"1f1ed-1f1f9",uc_match:"1f1ed-1f1f9",uc_greedy:"1f1ed-1f1f9",shortnames:[":ht:"],category:"flags"},":flag_hu:":{uc_base:"1f1ed-1f1fa",uc_output:"1f1ed-1f1fa",uc_match:"1f1ed-1f1fa",uc_greedy:"1f1ed-1f1fa",shortnames:[":hu:"],category:"flags"},":flag_ic:":{uc_base:"1f1ee-1f1e8",uc_output:"1f1ee-1f1e8",uc_match:"1f1ee-1f1e8",uc_greedy:"1f1ee-1f1e8",shortnames:[":ic:"],category:"flags"},":flag_id:":{uc_base:"1f1ee-1f1e9",uc_output:"1f1ee-1f1e9",uc_match:"1f1ee-1f1e9",uc_greedy:"1f1ee-1f1e9",shortnames:[":indonesia:"],category:"flags"},":flag_ie:":{uc_base:"1f1ee-1f1ea",uc_output:"1f1ee-1f1ea",uc_match:"1f1ee-1f1ea",uc_greedy:"1f1ee-1f1ea",shortnames:[":ie:"],category:"flags"},":flag_il:":{uc_base:"1f1ee-1f1f1",uc_output:"1f1ee-1f1f1",uc_match:"1f1ee-1f1f1",uc_greedy:"1f1ee-1f1f1",shortnames:[":il:"],category:"flags"},":flag_im:":{uc_base:"1f1ee-1f1f2",uc_output:"1f1ee-1f1f2",uc_match:"1f1ee-1f1f2",uc_greedy:"1f1ee-1f1f2",shortnames:[":im:"],category:"flags"},":flag_in:":{uc_base:"1f1ee-1f1f3",uc_output:"1f1ee-1f1f3",uc_match:"1f1ee-1f1f3",uc_greedy:"1f1ee-1f1f3",shortnames:[":in:"],category:"flags"},":flag_io:":{uc_base:"1f1ee-1f1f4",uc_output:"1f1ee-1f1f4",uc_match:"1f1ee-1f1f4",uc_greedy:"1f1ee-1f1f4",shortnames:[":io:"],category:"flags"},":flag_iq:":{uc_base:"1f1ee-1f1f6",uc_output:"1f1ee-1f1f6",uc_match:"1f1ee-1f1f6",uc_greedy:"1f1ee-1f1f6",shortnames:[":iq:"],category:"flags"},":flag_ir:":{uc_base:"1f1ee-1f1f7",uc_output:"1f1ee-1f1f7",uc_match:"1f1ee-1f1f7",uc_greedy:"1f1ee-1f1f7",shortnames:[":ir:"],category:"flags"},":flag_is:":{uc_base:"1f1ee-1f1f8",uc_output:"1f1ee-1f1f8",uc_match:"1f1ee-1f1f8",uc_greedy:"1f1ee-1f1f8",shortnames:[":is:"],category:"flags"},":flag_it:":{uc_base:"1f1ee-1f1f9",uc_output:"1f1ee-1f1f9",uc_match:"1f1ee-1f1f9",uc_greedy:"1f1ee-1f1f9",shortnames:[":it:"],category:"flags"},":flag_je:":{uc_base:"1f1ef-1f1ea",uc_output:"1f1ef-1f1ea",uc_match:"1f1ef-1f1ea",uc_greedy:"1f1ef-1f1ea",shortnames:[":je:"],category:"flags"},":flag_jm:":{uc_base:"1f1ef-1f1f2",uc_output:"1f1ef-1f1f2",uc_match:"1f1ef-1f1f2",uc_greedy:"1f1ef-1f1f2",shortnames:[":jm:"],category:"flags"},":flag_jo:":{uc_base:"1f1ef-1f1f4",uc_output:"1f1ef-1f1f4",uc_match:"1f1ef-1f1f4",uc_greedy:"1f1ef-1f1f4",shortnames:[":jo:"],category:"flags"},":flag_jp:":{uc_base:"1f1ef-1f1f5",uc_output:"1f1ef-1f1f5",uc_match:"1f1ef-1f1f5",uc_greedy:"1f1ef-1f1f5",shortnames:[":jp:"],category:"flags"},":flag_ke:":{uc_base:"1f1f0-1f1ea",uc_output:"1f1f0-1f1ea",uc_match:"1f1f0-1f1ea",uc_greedy:"1f1f0-1f1ea",shortnames:[":ke:"],category:"flags"},":flag_kg:":{uc_base:"1f1f0-1f1ec",uc_output:"1f1f0-1f1ec",uc_match:"1f1f0-1f1ec",uc_greedy:"1f1f0-1f1ec",shortnames:[":kg:"],category:"flags"},":flag_kh:":{uc_base:"1f1f0-1f1ed",uc_output:"1f1f0-1f1ed",uc_match:"1f1f0-1f1ed",uc_greedy:"1f1f0-1f1ed",shortnames:[":kh:"],category:"flags"},":flag_ki:":{uc_base:"1f1f0-1f1ee",uc_output:"1f1f0-1f1ee",uc_match:"1f1f0-1f1ee",uc_greedy:"1f1f0-1f1ee",shortnames:[":ki:"],category:"flags"},":flag_km:":{uc_base:"1f1f0-1f1f2",uc_output:"1f1f0-1f1f2",uc_match:"1f1f0-1f1f2",uc_greedy:"1f1f0-1f1f2",shortnames:[":km:"],category:"flags"},":flag_kn:":{uc_base:"1f1f0-1f1f3",uc_output:"1f1f0-1f1f3",uc_match:"1f1f0-1f1f3",uc_greedy:"1f1f0-1f1f3",shortnames:[":kn:"],category:"flags"},":flag_kp:":{uc_base:"1f1f0-1f1f5",uc_output:"1f1f0-1f1f5",uc_match:"1f1f0-1f1f5",uc_greedy:"1f1f0-1f1f5",shortnames:[":kp:"],category:"flags"},":flag_kr:":{uc_base:"1f1f0-1f1f7",uc_output:"1f1f0-1f1f7",uc_match:"1f1f0-1f1f7",uc_greedy:"1f1f0-1f1f7",shortnames:[":kr:"],category:"flags"},":flag_kw:":{uc_base:"1f1f0-1f1fc",uc_output:"1f1f0-1f1fc",uc_match:"1f1f0-1f1fc",uc_greedy:"1f1f0-1f1fc",shortnames:[":kw:"],category:"flags"},":flag_ky:":{uc_base:"1f1f0-1f1fe",uc_output:"1f1f0-1f1fe",uc_match:"1f1f0-1f1fe",uc_greedy:"1f1f0-1f1fe",shortnames:[":ky:"],category:"flags"},":flag_kz:":{uc_base:"1f1f0-1f1ff",uc_output:"1f1f0-1f1ff",uc_match:"1f1f0-1f1ff",uc_greedy:"1f1f0-1f1ff",shortnames:[":kz:"],category:"flags"},":flag_la:":{uc_base:"1f1f1-1f1e6",uc_output:"1f1f1-1f1e6",uc_match:"1f1f1-1f1e6",uc_greedy:"1f1f1-1f1e6",shortnames:[":la:"],category:"flags"},":flag_lb:":{uc_base:"1f1f1-1f1e7",uc_output:"1f1f1-1f1e7",uc_match:"1f1f1-1f1e7",uc_greedy:"1f1f1-1f1e7",shortnames:[":lb:"],category:"flags"},":flag_lc:":{uc_base:"1f1f1-1f1e8",uc_output:"1f1f1-1f1e8",uc_match:"1f1f1-1f1e8",uc_greedy:"1f1f1-1f1e8",shortnames:[":lc:"],category:"flags"},":flag_li:":{uc_base:"1f1f1-1f1ee",uc_output:"1f1f1-1f1ee",uc_match:"1f1f1-1f1ee",uc_greedy:"1f1f1-1f1ee",shortnames:[":li:"],category:"flags"},":flag_lk:":{uc_base:"1f1f1-1f1f0",uc_output:"1f1f1-1f1f0",uc_match:"1f1f1-1f1f0",uc_greedy:"1f1f1-1f1f0",shortnames:[":lk:"],category:"flags"},":flag_lr:":{uc_base:"1f1f1-1f1f7",uc_output:"1f1f1-1f1f7",uc_match:"1f1f1-1f1f7",uc_greedy:"1f1f1-1f1f7",shortnames:[":lr:"],category:"flags"},":flag_ls:":{uc_base:"1f1f1-1f1f8",uc_output:"1f1f1-1f1f8",uc_match:"1f1f1-1f1f8",uc_greedy:"1f1f1-1f1f8",shortnames:[":ls:"],category:"flags"},":flag_lt:":{uc_base:"1f1f1-1f1f9",uc_output:"1f1f1-1f1f9",uc_match:"1f1f1-1f1f9",uc_greedy:"1f1f1-1f1f9",shortnames:[":lt:"],category:"flags"},":flag_lu:":{uc_base:"1f1f1-1f1fa",uc_output:"1f1f1-1f1fa",uc_match:"1f1f1-1f1fa",uc_greedy:"1f1f1-1f1fa",shortnames:[":lu:"],category:"flags"},":flag_lv:":{uc_base:"1f1f1-1f1fb",uc_output:"1f1f1-1f1fb",uc_match:"1f1f1-1f1fb",uc_greedy:"1f1f1-1f1fb",shortnames:[":lv:"],category:"flags"},":flag_ly:":{uc_base:"1f1f1-1f1fe",uc_output:"1f1f1-1f1fe",uc_match:"1f1f1-1f1fe",uc_greedy:"1f1f1-1f1fe",shortnames:[":ly:"],category:"flags"},":flag_ma:":{uc_base:"1f1f2-1f1e6",uc_output:"1f1f2-1f1e6",uc_match:"1f1f2-1f1e6",uc_greedy:"1f1f2-1f1e6",shortnames:[":ma:"],category:"flags"},":flag_mc:":{uc_base:"1f1f2-1f1e8",uc_output:"1f1f2-1f1e8",uc_match:"1f1f2-1f1e8",uc_greedy:"1f1f2-1f1e8",shortnames:[":mc:"],category:"flags"},":flag_md:":{uc_base:"1f1f2-1f1e9",uc_output:"1f1f2-1f1e9",uc_match:"1f1f2-1f1e9",uc_greedy:"1f1f2-1f1e9",shortnames:[":md:"],category:"flags"},":flag_me:":{uc_base:"1f1f2-1f1ea",uc_output:"1f1f2-1f1ea",uc_match:"1f1f2-1f1ea",uc_greedy:"1f1f2-1f1ea",shortnames:[":me:"],category:"flags"},":flag_mf:":{uc_base:"1f1f2-1f1eb",uc_output:"1f1f2-1f1eb",uc_match:"1f1f2-1f1eb",uc_greedy:"1f1f2-1f1eb",shortnames:[":mf:"],category:"flags"},":flag_mg:":{uc_base:"1f1f2-1f1ec",uc_output:"1f1f2-1f1ec",uc_match:"1f1f2-1f1ec",uc_greedy:"1f1f2-1f1ec",shortnames:[":mg:"],category:"flags"},":flag_mh:":{uc_base:"1f1f2-1f1ed",uc_output:"1f1f2-1f1ed",uc_match:"1f1f2-1f1ed",uc_greedy:"1f1f2-1f1ed",shortnames:[":mh:"],category:"flags"},":flag_mk:":{uc_base:"1f1f2-1f1f0",uc_output:"1f1f2-1f1f0",uc_match:"1f1f2-1f1f0",uc_greedy:"1f1f2-1f1f0",shortnames:[":mk:"],category:"flags"},":flag_ml:":{uc_base:"1f1f2-1f1f1",uc_output:"1f1f2-1f1f1",uc_match:"1f1f2-1f1f1",uc_greedy:"1f1f2-1f1f1",shortnames:[":ml:"],category:"flags"},":flag_mm:":{uc_base:"1f1f2-1f1f2",uc_output:"1f1f2-1f1f2",uc_match:"1f1f2-1f1f2",uc_greedy:"1f1f2-1f1f2",shortnames:[":mm:"],category:"flags"},":flag_mn:":{uc_base:"1f1f2-1f1f3",uc_output:"1f1f2-1f1f3",uc_match:"1f1f2-1f1f3",uc_greedy:"1f1f2-1f1f3",shortnames:[":mn:"],category:"flags"},":flag_mo:":{uc_base:"1f1f2-1f1f4",uc_output:"1f1f2-1f1f4",uc_match:"1f1f2-1f1f4",uc_greedy:"1f1f2-1f1f4",shortnames:[":mo:"],category:"flags"},":flag_mp:":{uc_base:"1f1f2-1f1f5",uc_output:"1f1f2-1f1f5",uc_match:"1f1f2-1f1f5",uc_greedy:"1f1f2-1f1f5",shortnames:[":mp:"],category:"flags"},":flag_mq:":{uc_base:"1f1f2-1f1f6",uc_output:"1f1f2-1f1f6",uc_match:"1f1f2-1f1f6",uc_greedy:"1f1f2-1f1f6",shortnames:[":mq:"],category:"flags"},":flag_mr:":{uc_base:"1f1f2-1f1f7",uc_output:"1f1f2-1f1f7",uc_match:"1f1f2-1f1f7",uc_greedy:"1f1f2-1f1f7",shortnames:[":mr:"],category:"flags"},":flag_ms:":{uc_base:"1f1f2-1f1f8",uc_output:"1f1f2-1f1f8",uc_match:"1f1f2-1f1f8",uc_greedy:"1f1f2-1f1f8",shortnames:[":ms:"],category:"flags"},":flag_mt:":{uc_base:"1f1f2-1f1f9",uc_output:"1f1f2-1f1f9",uc_match:"1f1f2-1f1f9",uc_greedy:"1f1f2-1f1f9",shortnames:[":mt:"],category:"flags"},":flag_mu:":{uc_base:"1f1f2-1f1fa",uc_output:"1f1f2-1f1fa",uc_match:"1f1f2-1f1fa",uc_greedy:"1f1f2-1f1fa",shortnames:[":mu:"],category:"flags"},":flag_mv:":{uc_base:"1f1f2-1f1fb",uc_output:"1f1f2-1f1fb",uc_match:"1f1f2-1f1fb",uc_greedy:"1f1f2-1f1fb",shortnames:[":mv:"],category:"flags"},":flag_mw:":{uc_base:"1f1f2-1f1fc",uc_output:"1f1f2-1f1fc",uc_match:"1f1f2-1f1fc",uc_greedy:"1f1f2-1f1fc",shortnames:[":mw:"],category:"flags"},":flag_mx:":{uc_base:"1f1f2-1f1fd",uc_output:"1f1f2-1f1fd",uc_match:"1f1f2-1f1fd",uc_greedy:"1f1f2-1f1fd",shortnames:[":mx:"],category:"flags"},":flag_my:":{uc_base:"1f1f2-1f1fe",uc_output:"1f1f2-1f1fe",uc_match:"1f1f2-1f1fe",uc_greedy:"1f1f2-1f1fe",shortnames:[":my:"],category:"flags"},":flag_mz:":{uc_base:"1f1f2-1f1ff",uc_output:"1f1f2-1f1ff",uc_match:"1f1f2-1f1ff",uc_greedy:"1f1f2-1f1ff",shortnames:[":mz:"],category:"flags"},":flag_na:":{uc_base:"1f1f3-1f1e6",uc_output:"1f1f3-1f1e6",uc_match:"1f1f3-1f1e6",uc_greedy:"1f1f3-1f1e6",shortnames:[":na:"],category:"flags"},":flag_nc:":{uc_base:"1f1f3-1f1e8",uc_output:"1f1f3-1f1e8",uc_match:"1f1f3-1f1e8",uc_greedy:"1f1f3-1f1e8",shortnames:[":nc:"],category:"flags"},":flag_ne:":{uc_base:"1f1f3-1f1ea",uc_output:"1f1f3-1f1ea",uc_match:"1f1f3-1f1ea",uc_greedy:"1f1f3-1f1ea",shortnames:[":ne:"],category:"flags"},":flag_nf:":{uc_base:"1f1f3-1f1eb",uc_output:"1f1f3-1f1eb",uc_match:"1f1f3-1f1eb",uc_greedy:"1f1f3-1f1eb",shortnames:[":nf:"],category:"flags"},":flag_ng:":{uc_base:"1f1f3-1f1ec",uc_output:"1f1f3-1f1ec",uc_match:"1f1f3-1f1ec",uc_greedy:"1f1f3-1f1ec",shortnames:[":nigeria:"],category:"flags"},":flag_ni:":{uc_base:"1f1f3-1f1ee",uc_output:"1f1f3-1f1ee",uc_match:"1f1f3-1f1ee",uc_greedy:"1f1f3-1f1ee",shortnames:[":ni:"],category:"flags"},":flag_nl:":{uc_base:"1f1f3-1f1f1",uc_output:"1f1f3-1f1f1",uc_match:"1f1f3-1f1f1",uc_greedy:"1f1f3-1f1f1",shortnames:[":nl:"],category:"flags"},":flag_no:":{uc_base:"1f1f3-1f1f4",uc_output:"1f1f3-1f1f4",uc_match:"1f1f3-1f1f4",uc_greedy:"1f1f3-1f1f4",shortnames:[":no:"],category:"flags"},":flag_np:":{uc_base:"1f1f3-1f1f5",uc_output:"1f1f3-1f1f5",uc_match:"1f1f3-1f1f5",uc_greedy:"1f1f3-1f1f5",shortnames:[":np:"],category:"flags"},":flag_nr:":{uc_base:"1f1f3-1f1f7",uc_output:"1f1f3-1f1f7",uc_match:"1f1f3-1f1f7",uc_greedy:"1f1f3-1f1f7",shortnames:[":nr:"],category:"flags"},":flag_nu:":{uc_base:"1f1f3-1f1fa",uc_output:"1f1f3-1f1fa",uc_match:"1f1f3-1f1fa",uc_greedy:"1f1f3-1f1fa",shortnames:[":nu:"],category:"flags"},":flag_nz:":{uc_base:"1f1f3-1f1ff",uc_output:"1f1f3-1f1ff",uc_match:"1f1f3-1f1ff",uc_greedy:"1f1f3-1f1ff",shortnames:[":nz:"],category:"flags"},":flag_om:":{uc_base:"1f1f4-1f1f2",uc_output:"1f1f4-1f1f2",uc_match:"1f1f4-1f1f2",uc_greedy:"1f1f4-1f1f2",shortnames:[":om:"],category:"flags"},":flag_pa:":{uc_base:"1f1f5-1f1e6",uc_output:"1f1f5-1f1e6",uc_match:"1f1f5-1f1e6",uc_greedy:"1f1f5-1f1e6",shortnames:[":pa:"],category:"flags"},":flag_pe:":{uc_base:"1f1f5-1f1ea",uc_output:"1f1f5-1f1ea",uc_match:"1f1f5-1f1ea",uc_greedy:"1f1f5-1f1ea",shortnames:[":pe:"],category:"flags"},":flag_pf:":{uc_base:"1f1f5-1f1eb",uc_output:"1f1f5-1f1eb",uc_match:"1f1f5-1f1eb",uc_greedy:"1f1f5-1f1eb",shortnames:[":pf:"],category:"flags"},":flag_pg:":{uc_base:"1f1f5-1f1ec",uc_output:"1f1f5-1f1ec",uc_match:"1f1f5-1f1ec",uc_greedy:"1f1f5-1f1ec",shortnames:[":pg:"],category:"flags"},":flag_ph:":{uc_base:"1f1f5-1f1ed",uc_output:"1f1f5-1f1ed",uc_match:"1f1f5-1f1ed",uc_greedy:"1f1f5-1f1ed",shortnames:[":ph:"],category:"flags"},":flag_pk:":{uc_base:"1f1f5-1f1f0",uc_output:"1f1f5-1f1f0",uc_match:"1f1f5-1f1f0",uc_greedy:"1f1f5-1f1f0",shortnames:[":pk:"],category:"flags"},":flag_pl:":{uc_base:"1f1f5-1f1f1",uc_output:"1f1f5-1f1f1",uc_match:"1f1f5-1f1f1",uc_greedy:"1f1f5-1f1f1",shortnames:[":pl:"],category:"flags"},":flag_pm:":{uc_base:"1f1f5-1f1f2",uc_output:"1f1f5-1f1f2",uc_match:"1f1f5-1f1f2",uc_greedy:"1f1f5-1f1f2",shortnames:[":pm:"],category:"flags"},":flag_pn:":{uc_base:"1f1f5-1f1f3",uc_output:"1f1f5-1f1f3",uc_match:"1f1f5-1f1f3",uc_greedy:"1f1f5-1f1f3",shortnames:[":pn:"],category:"flags"},":flag_pr:":{uc_base:"1f1f5-1f1f7",uc_output:"1f1f5-1f1f7",uc_match:"1f1f5-1f1f7",uc_greedy:"1f1f5-1f1f7",shortnames:[":pr:"],category:"flags"},":flag_ps:":{uc_base:"1f1f5-1f1f8",uc_output:"1f1f5-1f1f8",uc_match:"1f1f5-1f1f8",uc_greedy:"1f1f5-1f1f8",shortnames:[":ps:"],category:"flags"},":flag_pt:":{uc_base:"1f1f5-1f1f9",uc_output:"1f1f5-1f1f9",uc_match:"1f1f5-1f1f9",uc_greedy:"1f1f5-1f1f9",shortnames:[":pt:"],category:"flags"},":flag_pw:":{uc_base:"1f1f5-1f1fc",uc_output:"1f1f5-1f1fc",uc_match:"1f1f5-1f1fc",uc_greedy:"1f1f5-1f1fc",shortnames:[":pw:"],category:"flags"},":flag_py:":{uc_base:"1f1f5-1f1fe",uc_output:"1f1f5-1f1fe",uc_match:"1f1f5-1f1fe",uc_greedy:"1f1f5-1f1fe",shortnames:[":py:"],category:"flags"},":flag_qa:":{uc_base:"1f1f6-1f1e6",uc_output:"1f1f6-1f1e6",uc_match:"1f1f6-1f1e6",uc_greedy:"1f1f6-1f1e6",shortnames:[":qa:"],category:"flags"},":flag_re:":{uc_base:"1f1f7-1f1ea",uc_output:"1f1f7-1f1ea",uc_match:"1f1f7-1f1ea",uc_greedy:"1f1f7-1f1ea",shortnames:[":re:"],category:"flags"},":flag_ro:":{uc_base:"1f1f7-1f1f4",uc_output:"1f1f7-1f1f4",uc_match:"1f1f7-1f1f4",uc_greedy:"1f1f7-1f1f4",shortnames:[":ro:"],category:"flags"},":flag_rs:":{uc_base:"1f1f7-1f1f8",uc_output:"1f1f7-1f1f8",uc_match:"1f1f7-1f1f8",uc_greedy:"1f1f7-1f1f8",shortnames:[":rs:"],category:"flags"},":flag_ru:":{uc_base:"1f1f7-1f1fa",uc_output:"1f1f7-1f1fa",uc_match:"1f1f7-1f1fa",uc_greedy:"1f1f7-1f1fa",shortnames:[":ru:"],category:"flags"},":flag_rw:":{uc_base:"1f1f7-1f1fc",uc_output:"1f1f7-1f1fc",uc_match:"1f1f7-1f1fc",uc_greedy:"1f1f7-1f1fc",shortnames:[":rw:"],category:"flags"},":flag_sa:":{uc_base:"1f1f8-1f1e6",uc_output:"1f1f8-1f1e6",uc_match:"1f1f8-1f1e6",uc_greedy:"1f1f8-1f1e6",shortnames:[":saudiarabia:",":saudi:"],category:"flags"},":flag_sb:":{uc_base:"1f1f8-1f1e7",uc_output:"1f1f8-1f1e7",uc_match:"1f1f8-1f1e7",uc_greedy:"1f1f8-1f1e7",shortnames:[":sb:"],category:"flags"},":flag_sc:":{uc_base:"1f1f8-1f1e8",uc_output:"1f1f8-1f1e8",uc_match:"1f1f8-1f1e8",uc_greedy:"1f1f8-1f1e8",shortnames:[":sc:"],category:"flags"},":flag_sd:":{uc_base:"1f1f8-1f1e9",uc_output:"1f1f8-1f1e9",uc_match:"1f1f8-1f1e9",uc_greedy:"1f1f8-1f1e9",shortnames:[":sd:"],category:"flags"},":flag_se:":{uc_base:"1f1f8-1f1ea",uc_output:"1f1f8-1f1ea",uc_match:"1f1f8-1f1ea",uc_greedy:"1f1f8-1f1ea",shortnames:[":se:"],category:"flags"},":flag_sg:":{uc_base:"1f1f8-1f1ec",uc_output:"1f1f8-1f1ec",uc_match:"1f1f8-1f1ec",uc_greedy:"1f1f8-1f1ec",shortnames:[":sg:"],category:"flags"},":flag_sh:":{uc_base:"1f1f8-1f1ed",uc_output:"1f1f8-1f1ed",uc_match:"1f1f8-1f1ed",uc_greedy:"1f1f8-1f1ed",shortnames:[":sh:"],category:"flags"},":flag_si:":{uc_base:"1f1f8-1f1ee",uc_output:"1f1f8-1f1ee",uc_match:"1f1f8-1f1ee",uc_greedy:"1f1f8-1f1ee",shortnames:[":si:"],category:"flags"},":flag_sj:":{uc_base:"1f1f8-1f1ef",uc_output:"1f1f8-1f1ef",uc_match:"1f1f8-1f1ef",uc_greedy:"1f1f8-1f1ef",shortnames:[":sj:"],category:"flags"},":flag_sk:":{uc_base:"1f1f8-1f1f0",uc_output:"1f1f8-1f1f0",uc_match:"1f1f8-1f1f0",uc_greedy:"1f1f8-1f1f0",shortnames:[":sk:"],category:"flags"},":flag_sl:":{uc_base:"1f1f8-1f1f1",uc_output:"1f1f8-1f1f1",uc_match:"1f1f8-1f1f1",uc_greedy:"1f1f8-1f1f1",shortnames:[":sl:"],category:"flags"},":flag_sm:":{uc_base:"1f1f8-1f1f2",uc_output:"1f1f8-1f1f2",uc_match:"1f1f8-1f1f2",uc_greedy:"1f1f8-1f1f2",shortnames:[":sm:"],category:"flags"},":flag_sn:":{uc_base:"1f1f8-1f1f3",uc_output:"1f1f8-1f1f3",uc_match:"1f1f8-1f1f3",uc_greedy:"1f1f8-1f1f3",shortnames:[":sn:"],category:"flags"},":flag_so:":{uc_base:"1f1f8-1f1f4",uc_output:"1f1f8-1f1f4",uc_match:"1f1f8-1f1f4",uc_greedy:"1f1f8-1f1f4",shortnames:[":so:"],category:"flags"},":flag_sr:":{uc_base:"1f1f8-1f1f7",uc_output:"1f1f8-1f1f7",uc_match:"1f1f8-1f1f7",uc_greedy:"1f1f8-1f1f7",shortnames:[":sr:"],category:"flags"},":flag_ss:":{uc_base:"1f1f8-1f1f8",uc_output:"1f1f8-1f1f8",uc_match:"1f1f8-1f1f8",uc_greedy:"1f1f8-1f1f8",shortnames:[":ss:"],category:"flags"},":flag_st:":{uc_base:"1f1f8-1f1f9",uc_output:"1f1f8-1f1f9",uc_match:"1f1f8-1f1f9",uc_greedy:"1f1f8-1f1f9",shortnames:[":st:"],category:"flags"},":flag_sv:":{uc_base:"1f1f8-1f1fb",uc_output:"1f1f8-1f1fb",uc_match:"1f1f8-1f1fb",uc_greedy:"1f1f8-1f1fb",shortnames:[":sv:"],category:"flags"},":flag_sx:":{uc_base:"1f1f8-1f1fd",uc_output:"1f1f8-1f1fd",uc_match:"1f1f8-1f1fd",uc_greedy:"1f1f8-1f1fd",shortnames:[":sx:"],category:"flags"},":flag_sy:":{uc_base:"1f1f8-1f1fe",uc_output:"1f1f8-1f1fe",uc_match:"1f1f8-1f1fe",uc_greedy:"1f1f8-1f1fe",shortnames:[":sy:"],category:"flags"},":flag_sz:":{uc_base:"1f1f8-1f1ff",uc_output:"1f1f8-1f1ff",uc_match:"1f1f8-1f1ff",uc_greedy:"1f1f8-1f1ff",shortnames:[":sz:"],category:"flags"},":flag_ta:":{uc_base:"1f1f9-1f1e6",uc_output:"1f1f9-1f1e6",uc_match:"1f1f9-1f1e6",uc_greedy:"1f1f9-1f1e6",shortnames:[":ta:"],category:"flags"},":flag_tc:":{uc_base:"1f1f9-1f1e8",uc_output:"1f1f9-1f1e8",uc_match:"1f1f9-1f1e8",uc_greedy:"1f1f9-1f1e8",shortnames:[":tc:"],category:"flags"},":flag_td:":{uc_base:"1f1f9-1f1e9",uc_output:"1f1f9-1f1e9",uc_match:"1f1f9-1f1e9",uc_greedy:"1f1f9-1f1e9",shortnames:[":td:"],category:"flags"},":flag_tf:":{uc_base:"1f1f9-1f1eb",uc_output:"1f1f9-1f1eb",uc_match:"1f1f9-1f1eb",uc_greedy:"1f1f9-1f1eb",shortnames:[":tf:"],category:"flags"},":flag_tg:":{uc_base:"1f1f9-1f1ec",uc_output:"1f1f9-1f1ec",uc_match:"1f1f9-1f1ec",uc_greedy:"1f1f9-1f1ec",shortnames:[":tg:"],category:"flags"},":flag_th:":{uc_base:"1f1f9-1f1ed",uc_output:"1f1f9-1f1ed",uc_match:"1f1f9-1f1ed",uc_greedy:"1f1f9-1f1ed",shortnames:[":th:"],category:"flags"},":flag_tj:":{uc_base:"1f1f9-1f1ef",uc_output:"1f1f9-1f1ef",uc_match:"1f1f9-1f1ef",uc_greedy:"1f1f9-1f1ef",shortnames:[":tj:"],category:"flags"},":flag_tk:":{uc_base:"1f1f9-1f1f0",uc_output:"1f1f9-1f1f0",uc_match:"1f1f9-1f1f0",uc_greedy:"1f1f9-1f1f0",shortnames:[":tk:"],category:"flags"},":flag_tl:":{uc_base:"1f1f9-1f1f1",uc_output:"1f1f9-1f1f1",uc_match:"1f1f9-1f1f1",uc_greedy:"1f1f9-1f1f1",shortnames:[":tl:"],category:"flags"},":flag_tm:":{uc_base:"1f1f9-1f1f2",uc_output:"1f1f9-1f1f2",uc_match:"1f1f9-1f1f2",uc_greedy:"1f1f9-1f1f2",shortnames:[":turkmenistan:"],category:"flags"},":flag_tn:":{uc_base:"1f1f9-1f1f3",uc_output:"1f1f9-1f1f3",uc_match:"1f1f9-1f1f3",uc_greedy:"1f1f9-1f1f3",shortnames:[":tn:"],category:"flags"},":flag_to:":{uc_base:"1f1f9-1f1f4",uc_output:"1f1f9-1f1f4",uc_match:"1f1f9-1f1f4",uc_greedy:"1f1f9-1f1f4",shortnames:[":to:"],category:"flags"},":flag_tr:":{uc_base:"1f1f9-1f1f7",uc_output:"1f1f9-1f1f7",uc_match:"1f1f9-1f1f7",uc_greedy:"1f1f9-1f1f7",shortnames:[":tr:"],category:"flags"},":flag_tt:":{uc_base:"1f1f9-1f1f9",uc_output:"1f1f9-1f1f9",uc_match:"1f1f9-1f1f9",uc_greedy:"1f1f9-1f1f9",shortnames:[":tt:"],category:"flags"},":flag_tv:":{uc_base:"1f1f9-1f1fb",uc_output:"1f1f9-1f1fb",uc_match:"1f1f9-1f1fb",uc_greedy:"1f1f9-1f1fb",shortnames:[":tuvalu:"],category:"flags"},":flag_tw:":{uc_base:"1f1f9-1f1fc",uc_output:"1f1f9-1f1fc",uc_match:"1f1f9-1f1fc",uc_greedy:"1f1f9-1f1fc",shortnames:[":tw:"],category:"flags"},":flag_tz:":{uc_base:"1f1f9-1f1ff",uc_output:"1f1f9-1f1ff",uc_match:"1f1f9-1f1ff",uc_greedy:"1f1f9-1f1ff",shortnames:[":tz:"],category:"flags"},":flag_ua:":{uc_base:"1f1fa-1f1e6",uc_output:"1f1fa-1f1e6",uc_match:"1f1fa-1f1e6",uc_greedy:"1f1fa-1f1e6",shortnames:[":ua:"],category:"flags"},":flag_ug:":{uc_base:"1f1fa-1f1ec",uc_output:"1f1fa-1f1ec",uc_match:"1f1fa-1f1ec",uc_greedy:"1f1fa-1f1ec",shortnames:[":ug:"],category:"flags"},":flag_um:":{uc_base:"1f1fa-1f1f2",uc_output:"1f1fa-1f1f2",uc_match:"1f1fa-1f1f2",uc_greedy:"1f1fa-1f1f2",shortnames:[":um:"],category:"flags"},":flag_us:":{uc_base:"1f1fa-1f1f8",uc_output:"1f1fa-1f1f8",uc_match:"1f1fa-1f1f8",uc_greedy:"1f1fa-1f1f8",shortnames:[":us:"],category:"flags"},":flag_uy:":{uc_base:"1f1fa-1f1fe",uc_output:"1f1fa-1f1fe",uc_match:"1f1fa-1f1fe",uc_greedy:"1f1fa-1f1fe",shortnames:[":uy:"],category:"flags"},":flag_uz:":{uc_base:"1f1fa-1f1ff",uc_output:"1f1fa-1f1ff",uc_match:"1f1fa-1f1ff",uc_greedy:"1f1fa-1f1ff",shortnames:[":uz:"],category:"flags"},":flag_va:":{uc_base:"1f1fb-1f1e6",uc_output:"1f1fb-1f1e6",uc_match:"1f1fb-1f1e6",uc_greedy:"1f1fb-1f1e6",shortnames:[":va:"],category:"flags"},":flag_vc:":{uc_base:"1f1fb-1f1e8",uc_output:"1f1fb-1f1e8",uc_match:"1f1fb-1f1e8",uc_greedy:"1f1fb-1f1e8",shortnames:[":vc:"],category:"flags"},":flag_ve:":{uc_base:"1f1fb-1f1ea",uc_output:"1f1fb-1f1ea",uc_match:"1f1fb-1f1ea",uc_greedy:"1f1fb-1f1ea",shortnames:[":ve:"],category:"flags"},":flag_vg:":{uc_base:"1f1fb-1f1ec",uc_output:"1f1fb-1f1ec",uc_match:"1f1fb-1f1ec",uc_greedy:"1f1fb-1f1ec",shortnames:[":vg:"],category:"flags"},":flag_vi:":{uc_base:"1f1fb-1f1ee",uc_output:"1f1fb-1f1ee",uc_match:"1f1fb-1f1ee",uc_greedy:"1f1fb-1f1ee",shortnames:[":vi:"],category:"flags"},":flag_vn:":{uc_base:"1f1fb-1f1f3",uc_output:"1f1fb-1f1f3",uc_match:"1f1fb-1f1f3",uc_greedy:"1f1fb-1f1f3",shortnames:[":vn:"],category:"flags"},":flag_vu:":{uc_base:"1f1fb-1f1fa",uc_output:"1f1fb-1f1fa",uc_match:"1f1fb-1f1fa",uc_greedy:"1f1fb-1f1fa",shortnames:[":vu:"],category:"flags"},":flag_wf:":{uc_base:"1f1fc-1f1eb",uc_output:"1f1fc-1f1eb",uc_match:"1f1fc-1f1eb",uc_greedy:"1f1fc-1f1eb",shortnames:[":wf:"],category:"flags"},":flag_ws:":{uc_base:"1f1fc-1f1f8",uc_output:"1f1fc-1f1f8",uc_match:"1f1fc-1f1f8",uc_greedy:"1f1fc-1f1f8",shortnames:[":ws:"],category:"flags"},":flag_xk:":{uc_base:"1f1fd-1f1f0",uc_output:"1f1fd-1f1f0",uc_match:"1f1fd-1f1f0",uc_greedy:"1f1fd-1f1f0",shortnames:[":xk:"],category:"flags"},":flag_ye:":{uc_base:"1f1fe-1f1ea",uc_output:"1f1fe-1f1ea",uc_match:"1f1fe-1f1ea",uc_greedy:"1f1fe-1f1ea",shortnames:[":ye:"],category:"flags"},":flag_yt:":{uc_base:"1f1fe-1f1f9",uc_output:"1f1fe-1f1f9",uc_match:"1f1fe-1f1f9",uc_greedy:"1f1fe-1f1f9",shortnames:[":yt:"],category:"flags"},":flag_za:":{uc_base:"1f1ff-1f1e6",uc_output:"1f1ff-1f1e6",uc_match:"1f1ff-1f1e6",uc_greedy:"1f1ff-1f1e6",shortnames:[":za:"],category:"flags"},":flag_zm:":{uc_base:"1f1ff-1f1f2",uc_output:"1f1ff-1f1f2",uc_match:"1f1ff-1f1f2",uc_greedy:"1f1ff-1f1f2",shortnames:[":zm:"],category:"flags"},":flag_zw:":{uc_base:"1f1ff-1f1fc",uc_output:"1f1ff-1f1fc",uc_match:"1f1ff-1f1fc",uc_greedy:"1f1ff-1f1fc",shortnames:[":zw:"],category:"flags"},":girl_tone1:":{uc_base:"1f467-1f3fb",uc_output:"1f467-1f3fb",uc_match:"1f467-1f3fb",uc_greedy:"1f467-1f3fb",shortnames:[],category:"people"},":girl_tone2:":{uc_base:"1f467-1f3fc",uc_output:"1f467-1f3fc",uc_match:"1f467-1f3fc",uc_greedy:"1f467-1f3fc",shortnames:[],category:"people"},":girl_tone3:":{uc_base:"1f467-1f3fd",uc_output:"1f467-1f3fd",uc_match:"1f467-1f3fd",uc_greedy:"1f467-1f3fd",shortnames:[],category:"people"},":girl_tone4:":{uc_base:"1f467-1f3fe",uc_output:"1f467-1f3fe",uc_match:"1f467-1f3fe",uc_greedy:"1f467-1f3fe",shortnames:[],category:"people"},":girl_tone5:":{uc_base:"1f467-1f3ff",uc_output:"1f467-1f3ff",uc_match:"1f467-1f3ff",uc_greedy:"1f467-1f3ff",shortnames:[],category:"people"},":guard_tone1:":{uc_base:"1f482-1f3fb",uc_output:"1f482-1f3fb",uc_match:"1f482-1f3fb",uc_greedy:"1f482-1f3fb",shortnames:[":guardsman_tone1:"],category:"people"},":guard_tone2:":{uc_base:"1f482-1f3fc",uc_output:"1f482-1f3fc",uc_match:"1f482-1f3fc",uc_greedy:"1f482-1f3fc",shortnames:[":guardsman_tone2:"],category:"people"},":guard_tone3:":{uc_base:"1f482-1f3fd",uc_output:"1f482-1f3fd",uc_match:"1f482-1f3fd",uc_greedy:"1f482-1f3fd",shortnames:[":guardsman_tone3:"],category:"people"},":guard_tone4:":{uc_base:"1f482-1f3fe",uc_output:"1f482-1f3fe",uc_match:"1f482-1f3fe",uc_greedy:"1f482-1f3fe",shortnames:[":guardsman_tone4:"],category:"people"},":guard_tone5:":{uc_base:"1f482-1f3ff",uc_output:"1f482-1f3ff",uc_match:"1f482-1f3ff",uc_greedy:"1f482-1f3ff",shortnames:[":guardsman_tone5:"],category:"people"},":hand_splayed_tone1:":{uc_base:"1f590-1f3fb",uc_output:"1f590-1f3fb",uc_match:"1f590-fe0f-1f3fb",uc_greedy:"1f590-fe0f-1f3fb",shortnames:[":raised_hand_with_fingers_splayed_tone1:"],category:"people"},":hand_splayed_tone2:":{uc_base:"1f590-1f3fc",uc_output:"1f590-1f3fc",uc_match:"1f590-fe0f-1f3fc",uc_greedy:"1f590-fe0f-1f3fc",shortnames:[":raised_hand_with_fingers_splayed_tone2:"],category:"people"},":hand_splayed_tone3:":{uc_base:"1f590-1f3fd",uc_output:"1f590-1f3fd",uc_match:"1f590-fe0f-1f3fd",uc_greedy:"1f590-fe0f-1f3fd",shortnames:[":raised_hand_with_fingers_splayed_tone3:"],category:"people"},":hand_splayed_tone4:":{uc_base:"1f590-1f3fe",uc_output:"1f590-1f3fe",uc_match:"1f590-fe0f-1f3fe",uc_greedy:"1f590-fe0f-1f3fe",shortnames:[":raised_hand_with_fingers_splayed_tone4:"],category:"people"},":hand_splayed_tone5:":{uc_base:"1f590-1f3ff",uc_output:"1f590-1f3ff",uc_match:"1f590-fe0f-1f3ff",uc_greedy:"1f590-fe0f-1f3ff",shortnames:[":raised_hand_with_fingers_splayed_tone5:"],category:"people"},":horse_racing_tone1:":{uc_base:"1f3c7-1f3fb",uc_output:"1f3c7-1f3fb",uc_match:"1f3c7-1f3fb",uc_greedy:"1f3c7-1f3fb",shortnames:[],category:"activity"},":horse_racing_tone2:":{uc_base:"1f3c7-1f3fc",uc_output:"1f3c7-1f3fc",uc_match:"1f3c7-1f3fc",uc_greedy:"1f3c7-1f3fc",shortnames:[],category:"activity"},":horse_racing_tone3:":{uc_base:"1f3c7-1f3fd",uc_output:"1f3c7-1f3fd",uc_match:"1f3c7-1f3fd",uc_greedy:"1f3c7-1f3fd",shortnames:[],category:"activity"},":horse_racing_tone4:":{uc_base:"1f3c7-1f3fe",uc_output:"1f3c7-1f3fe",uc_match:"1f3c7-1f3fe",uc_greedy:"1f3c7-1f3fe",shortnames:[],category:"activity"},":horse_racing_tone5:":{uc_base:"1f3c7-1f3ff",uc_output:"1f3c7-1f3ff",uc_match:"1f3c7-1f3ff",uc_greedy:"1f3c7-1f3ff",shortnames:[],category:"activity"},":left_facing_fist_tone1:":{uc_base:"1f91b-1f3fb",uc_output:"1f91b-1f3fb",uc_match:"1f91b-1f3fb",uc_greedy:"1f91b-1f3fb",shortnames:[":left_fist_tone1:"],category:"people"},":left_facing_fist_tone2:":{uc_base:"1f91b-1f3fc",uc_output:"1f91b-1f3fc",uc_match:"1f91b-1f3fc",uc_greedy:"1f91b-1f3fc",shortnames:[":left_fist_tone2:"],category:"people"},":left_facing_fist_tone3:":{uc_base:"1f91b-1f3fd",uc_output:"1f91b-1f3fd",uc_match:"1f91b-1f3fd",uc_greedy:"1f91b-1f3fd",shortnames:[":left_fist_tone3:"],category:"people"},":left_facing_fist_tone4:":{uc_base:"1f91b-1f3fe",uc_output:"1f91b-1f3fe",uc_match:"1f91b-1f3fe",uc_greedy:"1f91b-1f3fe",shortnames:[":left_fist_tone4:"],category:"people"},":left_facing_fist_tone5:":{uc_base:"1f91b-1f3ff",uc_output:"1f91b-1f3ff",uc_match:"1f91b-1f3ff",uc_greedy:"1f91b-1f3ff",shortnames:[":left_fist_tone5:"],category:"people"},":levitate_tone1:":{uc_base:"1f574-1f3fb",uc_output:"1f574-1f3fb",uc_match:"1f574-fe0f-1f3fb",uc_greedy:"1f574-fe0f-1f3fb",shortnames:[":man_in_business_suit_levitating_tone1:",":man_in_business_suit_levitating_light_skin_tone:"],category:"people"},":levitate_tone2:":{uc_base:"1f574-1f3fc",uc_output:"1f574-1f3fc",uc_match:"1f574-fe0f-1f3fc",uc_greedy:"1f574-fe0f-1f3fc",shortnames:[":man_in_business_suit_levitating_tone2:",":man_in_business_suit_levitating_medium_light_skin_tone:"],category:"people"},":levitate_tone3:":{uc_base:"1f574-1f3fd",uc_output:"1f574-1f3fd",uc_match:"1f574-fe0f-1f3fd",uc_greedy:"1f574-fe0f-1f3fd",shortnames:[":man_in_business_suit_levitating_tone3:",":man_in_business_suit_levitating_medium_skin_tone:"],category:"people"},":levitate_tone4:":{uc_base:"1f574-1f3fe",uc_output:"1f574-1f3fe",uc_match:"1f574-fe0f-1f3fe",uc_greedy:"1f574-fe0f-1f3fe",shortnames:[":man_in_business_suit_levitating_tone4:",":man_in_business_suit_levitating_medium_dark_skin_tone:"],category:"people"},":levitate_tone5:":{uc_base:"1f574-1f3ff",uc_output:"1f574-1f3ff",uc_match:"1f574-fe0f-1f3ff",uc_greedy:"1f574-fe0f-1f3ff",shortnames:[":man_in_business_suit_levitating_tone5:",":man_in_business_suit_levitating_dark_skin_tone:"],category:"people"},":love_you_gesture_tone1:":{uc_base:"1f91f-1f3fb",uc_output:"1f91f-1f3fb",uc_match:"1f91f-1f3fb",uc_greedy:"1f91f-1f3fb",shortnames:[":love_you_gesture_light_skin_tone:"],category:"people"},":love_you_gesture_tone2:":{uc_base:"1f91f-1f3fc",uc_output:"1f91f-1f3fc",uc_match:"1f91f-1f3fc",uc_greedy:"1f91f-1f3fc",shortnames:[":love_you_gesture_medium_light_skin_tone:"],category:"people"},":love_you_gesture_tone3:":{uc_base:"1f91f-1f3fd",uc_output:"1f91f-1f3fd",uc_match:"1f91f-1f3fd",uc_greedy:"1f91f-1f3fd",shortnames:[":love_you_gesture_medium_skin_tone:"],category:"people"},":love_you_gesture_tone4:":{uc_base:"1f91f-1f3fe",uc_output:"1f91f-1f3fe",uc_match:"1f91f-1f3fe",uc_greedy:"1f91f-1f3fe",shortnames:[":love_you_gesture_medium_dark_skin_tone:"],category:"people"},":love_you_gesture_tone5:":{uc_base:"1f91f-1f3ff",uc_output:"1f91f-1f3ff",uc_match:"1f91f-1f3ff",uc_greedy:"1f91f-1f3ff",shortnames:[":love_you_gesture_dark_skin_tone:"],category:"people"},":mage_tone1:":{uc_base:"1f9d9-1f3fb",uc_output:"1f9d9-1f3fb",uc_match:"1f9d9-1f3fb",uc_greedy:"1f9d9-1f3fb",shortnames:[":mage_light_skin_tone:"],category:"people"},":mage_tone2:":{uc_base:"1f9d9-1f3fc",uc_output:"1f9d9-1f3fc",uc_match:"1f9d9-1f3fc",uc_greedy:"1f9d9-1f3fc",shortnames:[":mage_medium_light_skin_tone:"],category:"people"},":mage_tone3:":{uc_base:"1f9d9-1f3fd",uc_output:"1f9d9-1f3fd",uc_match:"1f9d9-1f3fd",uc_greedy:"1f9d9-1f3fd",shortnames:[":mage_medium_skin_tone:"],category:"people"},":mage_tone4:":{uc_base:"1f9d9-1f3fe",uc_output:"1f9d9-1f3fe",uc_match:"1f9d9-1f3fe",uc_greedy:"1f9d9-1f3fe",shortnames:[":mage_medium_dark_skin_tone:"],category:"people"},":mage_tone5:":{uc_base:"1f9d9-1f3ff",uc_output:"1f9d9-1f3ff",uc_match:"1f9d9-1f3ff",uc_greedy:"1f9d9-1f3ff",shortnames:[":mage_dark_skin_tone:"],category:"people"},":man_dancing_tone1:":{uc_base:"1f57a-1f3fb",uc_output:"1f57a-1f3fb",uc_match:"1f57a-1f3fb",uc_greedy:"1f57a-1f3fb",shortnames:[":male_dancer_tone1:"],category:"people"},":man_dancing_tone2:":{uc_base:"1f57a-1f3fc",uc_output:"1f57a-1f3fc",uc_match:"1f57a-1f3fc",uc_greedy:"1f57a-1f3fc",shortnames:[":male_dancer_tone2:"],category:"people"},":man_dancing_tone3:":{uc_base:"1f57a-1f3fd",uc_output:"1f57a-1f3fd",uc_match:"1f57a-1f3fd",uc_greedy:"1f57a-1f3fd",shortnames:[":male_dancer_tone3:"],category:"people"},":man_dancing_tone4:":{uc_base:"1f57a-1f3fe",uc_output:"1f57a-1f3fe",uc_match:"1f57a-1f3fe",uc_greedy:"1f57a-1f3fe",shortnames:[":male_dancer_tone4:"],category:"people"},":man_dancing_tone5:":{uc_base:"1f57a-1f3ff",uc_output:"1f57a-1f3ff",uc_match:"1f57a-1f3ff",uc_greedy:"1f57a-1f3ff",shortnames:[":male_dancer_tone5:"],category:"people"},":man_in_tuxedo_tone1:":{uc_base:"1f935-1f3fb",uc_output:"1f935-1f3fb",uc_match:"1f935-1f3fb",uc_greedy:"1f935-1f3fb",shortnames:[":tuxedo_tone1:"],category:"people"},":man_in_tuxedo_tone2:":{uc_base:"1f935-1f3fc",uc_output:"1f935-1f3fc",uc_match:"1f935-1f3fc",uc_greedy:"1f935-1f3fc",shortnames:[":tuxedo_tone2:"],category:"people"},":man_in_tuxedo_tone3:":{uc_base:"1f935-1f3fd",uc_output:"1f935-1f3fd",uc_match:"1f935-1f3fd",uc_greedy:"1f935-1f3fd",shortnames:[":tuxedo_tone3:"],category:"people"},":man_in_tuxedo_tone4:":{uc_base:"1f935-1f3fe",uc_output:"1f935-1f3fe",uc_match:"1f935-1f3fe",uc_greedy:"1f935-1f3fe",shortnames:[":tuxedo_tone4:"],category:"people"},":man_in_tuxedo_tone5:":{uc_base:"1f935-1f3ff",uc_output:"1f935-1f3ff",uc_match:"1f935-1f3ff",uc_greedy:"1f935-1f3ff",shortnames:[":tuxedo_tone5:"],category:"people"},":man_tone1:":{uc_base:"1f468-1f3fb",uc_output:"1f468-1f3fb",uc_match:"1f468-1f3fb",uc_greedy:"1f468-1f3fb",shortnames:[],category:"people"},":man_tone2:":{uc_base:"1f468-1f3fc",uc_output:"1f468-1f3fc",uc_match:"1f468-1f3fc",uc_greedy:"1f468-1f3fc",shortnames:[],category:"people"},":man_tone3:":{uc_base:"1f468-1f3fd",uc_output:"1f468-1f3fd",uc_match:"1f468-1f3fd",uc_greedy:"1f468-1f3fd",shortnames:[],category:"people"},":man_tone4:":{uc_base:"1f468-1f3fe",uc_output:"1f468-1f3fe",uc_match:"1f468-1f3fe",uc_greedy:"1f468-1f3fe",shortnames:[],category:"people"},":man_tone5:":{uc_base:"1f468-1f3ff",uc_output:"1f468-1f3ff",uc_match:"1f468-1f3ff",uc_greedy:"1f468-1f3ff",shortnames:[],category:"people"},":man_with_chinese_cap_tone1:":{uc_base:"1f472-1f3fb",uc_output:"1f472-1f3fb",uc_match:"1f472-1f3fb",uc_greedy:"1f472-1f3fb",shortnames:[":man_with_gua_pi_mao_tone1:"],category:"people"},":man_with_chinese_cap_tone2:":{uc_base:"1f472-1f3fc",uc_output:"1f472-1f3fc",uc_match:"1f472-1f3fc",uc_greedy:"1f472-1f3fc",shortnames:[":man_with_gua_pi_mao_tone2:"],category:"people"},":man_with_chinese_cap_tone3:":{uc_base:"1f472-1f3fd",uc_output:"1f472-1f3fd",uc_match:"1f472-1f3fd",uc_greedy:"1f472-1f3fd",shortnames:[":man_with_gua_pi_mao_tone3:"],category:"people"},":man_with_chinese_cap_tone4:":{uc_base:"1f472-1f3fe",uc_output:"1f472-1f3fe",uc_match:"1f472-1f3fe",uc_greedy:"1f472-1f3fe",shortnames:[":man_with_gua_pi_mao_tone4:"],category:"people"},":man_with_chinese_cap_tone5:":{uc_base:"1f472-1f3ff",uc_output:"1f472-1f3ff",uc_match:"1f472-1f3ff",uc_greedy:"1f472-1f3ff",shortnames:[":man_with_gua_pi_mao_tone5:"],category:"people"},":merperson_tone1:":{uc_base:"1f9dc-1f3fb",uc_output:"1f9dc-1f3fb",uc_match:"1f9dc-1f3fb",uc_greedy:"1f9dc-1f3fb",shortnames:[":merperson_light_skin_tone:"],category:"people"},":merperson_tone2:":{uc_base:"1f9dc-1f3fc",uc_output:"1f9dc-1f3fc",uc_match:"1f9dc-1f3fc",uc_greedy:"1f9dc-1f3fc",shortnames:[":merperson_medium_light_skin_tone:"],category:"people"},":merperson_tone3:":{uc_base:"1f9dc-1f3fd",uc_output:"1f9dc-1f3fd",uc_match:"1f9dc-1f3fd",uc_greedy:"1f9dc-1f3fd",shortnames:[":merperson_medium_skin_tone:"],category:"people"},":merperson_tone4:":{uc_base:"1f9dc-1f3fe",uc_output:"1f9dc-1f3fe",uc_match:"1f9dc-1f3fe",uc_greedy:"1f9dc-1f3fe",shortnames:[":merperson_medium_dark_skin_tone:"],category:"people"},":merperson_tone5:":{uc_base:"1f9dc-1f3ff",uc_output:"1f9dc-1f3ff",uc_match:"1f9dc-1f3ff",uc_greedy:"1f9dc-1f3ff",shortnames:[":merperson_dark_skin_tone:"],category:"people"},":metal_tone1:":{uc_base:"1f918-1f3fb",uc_output:"1f918-1f3fb",uc_match:"1f918-1f3fb",uc_greedy:"1f918-1f3fb",shortnames:[":sign_of_the_horns_tone1:"],category:"people"},":metal_tone2:":{uc_base:"1f918-1f3fc",uc_output:"1f918-1f3fc",uc_match:"1f918-1f3fc",uc_greedy:"1f918-1f3fc",shortnames:[":sign_of_the_horns_tone2:"],category:"people"},":metal_tone3:":{uc_base:"1f918-1f3fd",uc_output:"1f918-1f3fd",uc_match:"1f918-1f3fd",uc_greedy:"1f918-1f3fd",shortnames:[":sign_of_the_horns_tone3:"],category:"people"},":metal_tone4:":{uc_base:"1f918-1f3fe",uc_output:"1f918-1f3fe",uc_match:"1f918-1f3fe",uc_greedy:"1f918-1f3fe",shortnames:[":sign_of_the_horns_tone4:"],category:"people"},":metal_tone5:":{uc_base:"1f918-1f3ff",uc_output:"1f918-1f3ff",uc_match:"1f918-1f3ff",uc_greedy:"1f918-1f3ff",shortnames:[":sign_of_the_horns_tone5:"],category:"people"},":middle_finger_tone1:":{uc_base:"1f595-1f3fb",uc_output:"1f595-1f3fb",uc_match:"1f595-1f3fb",uc_greedy:"1f595-1f3fb",shortnames:[":reversed_hand_with_middle_finger_extended_tone1:"],category:"people"},":middle_finger_tone2:":{uc_base:"1f595-1f3fc",uc_output:"1f595-1f3fc",uc_match:"1f595-1f3fc",uc_greedy:"1f595-1f3fc",shortnames:[":reversed_hand_with_middle_finger_extended_tone2:"],category:"people"},":middle_finger_tone3:":{uc_base:"1f595-1f3fd",uc_output:"1f595-1f3fd",uc_match:"1f595-1f3fd",uc_greedy:"1f595-1f3fd",shortnames:[":reversed_hand_with_middle_finger_extended_tone3:"],category:"people"},":middle_finger_tone4:":{uc_base:"1f595-1f3fe",uc_output:"1f595-1f3fe",uc_match:"1f595-1f3fe",uc_greedy:"1f595-1f3fe",shortnames:[":reversed_hand_with_middle_finger_extended_tone4:"],category:"people"},":middle_finger_tone5:":{uc_base:"1f595-1f3ff",uc_output:"1f595-1f3ff",uc_match:"1f595-1f3ff",uc_greedy:"1f595-1f3ff",shortnames:[":reversed_hand_with_middle_finger_extended_tone5:"],category:"people"},":mrs_claus_tone1:":{uc_base:"1f936-1f3fb",uc_output:"1f936-1f3fb",uc_match:"1f936-1f3fb",uc_greedy:"1f936-1f3fb",shortnames:[":mother_christmas_tone1:"],category:"people"},":mrs_claus_tone2:":{uc_base:"1f936-1f3fc",uc_output:"1f936-1f3fc",uc_match:"1f936-1f3fc",uc_greedy:"1f936-1f3fc",shortnames:[":mother_christmas_tone2:"],category:"people"},":mrs_claus_tone3:":{uc_base:"1f936-1f3fd",uc_output:"1f936-1f3fd",uc_match:"1f936-1f3fd",uc_greedy:"1f936-1f3fd",shortnames:[":mother_christmas_tone3:"],category:"people"},":mrs_claus_tone4:":{uc_base:"1f936-1f3fe",uc_output:"1f936-1f3fe",uc_match:"1f936-1f3fe",uc_greedy:"1f936-1f3fe",shortnames:[":mother_christmas_tone4:"],category:"people"},":mrs_claus_tone5:":{uc_base:"1f936-1f3ff",uc_output:"1f936-1f3ff",uc_match:"1f936-1f3ff",uc_greedy:"1f936-1f3ff",shortnames:[":mother_christmas_tone5:"],category:"people"},":muscle_tone1:":{uc_base:"1f4aa-1f3fb",uc_output:"1f4aa-1f3fb",uc_match:"1f4aa-1f3fb",uc_greedy:"1f4aa-1f3fb",shortnames:[],category:"people"},":muscle_tone2:":{uc_base:"1f4aa-1f3fc",uc_output:"1f4aa-1f3fc",uc_match:"1f4aa-1f3fc",uc_greedy:"1f4aa-1f3fc",shortnames:[],category:"people"},":muscle_tone3:":{uc_base:"1f4aa-1f3fd",uc_output:"1f4aa-1f3fd",uc_match:"1f4aa-1f3fd",uc_greedy:"1f4aa-1f3fd",shortnames:[],category:"people"},":muscle_tone4:":{uc_base:"1f4aa-1f3fe",uc_output:"1f4aa-1f3fe",uc_match:"1f4aa-1f3fe",uc_greedy:"1f4aa-1f3fe",shortnames:[],category:"people"},":muscle_tone5:":{uc_base:"1f4aa-1f3ff",uc_output:"1f4aa-1f3ff",uc_match:"1f4aa-1f3ff",uc_greedy:"1f4aa-1f3ff",shortnames:[],category:"people"},":nail_care_tone1:":{uc_base:"1f485-1f3fb",uc_output:"1f485-1f3fb",uc_match:"1f485-1f3fb",uc_greedy:"1f485-1f3fb",shortnames:[],category:"people"},":nail_care_tone2:":{uc_base:"1f485-1f3fc",uc_output:"1f485-1f3fc",uc_match:"1f485-1f3fc",uc_greedy:"1f485-1f3fc",shortnames:[],category:"people"},":nail_care_tone3:":{uc_base:"1f485-1f3fd",uc_output:"1f485-1f3fd",uc_match:"1f485-1f3fd",uc_greedy:"1f485-1f3fd",shortnames:[],category:"people"},":nail_care_tone4:":{uc_base:"1f485-1f3fe",uc_output:"1f485-1f3fe",uc_match:"1f485-1f3fe",uc_greedy:"1f485-1f3fe",shortnames:[],category:"people"},":nail_care_tone5:":{uc_base:"1f485-1f3ff",uc_output:"1f485-1f3ff",uc_match:"1f485-1f3ff",uc_greedy:"1f485-1f3ff",shortnames:[],category:"people"},":nose_tone1:":{uc_base:"1f443-1f3fb",uc_output:"1f443-1f3fb",uc_match:"1f443-1f3fb",uc_greedy:"1f443-1f3fb",shortnames:[],category:"people"},":nose_tone2:":{uc_base:"1f443-1f3fc",uc_output:"1f443-1f3fc",uc_match:"1f443-1f3fc",uc_greedy:"1f443-1f3fc",shortnames:[],category:"people"},":nose_tone3:":{uc_base:"1f443-1f3fd",uc_output:"1f443-1f3fd",uc_match:"1f443-1f3fd",uc_greedy:"1f443-1f3fd",shortnames:[],category:"people"},":nose_tone4:":{uc_base:"1f443-1f3fe",uc_output:"1f443-1f3fe",uc_match:"1f443-1f3fe",uc_greedy:"1f443-1f3fe",shortnames:[],category:"people"},":nose_tone5:":{uc_base:"1f443-1f3ff",uc_output:"1f443-1f3ff",uc_match:"1f443-1f3ff",uc_greedy:"1f443-1f3ff",shortnames:[],category:"people"},":ok_hand_tone1:":{uc_base:"1f44c-1f3fb",uc_output:"1f44c-1f3fb",uc_match:"1f44c-1f3fb",uc_greedy:"1f44c-1f3fb",shortnames:[],category:"people"},":ok_hand_tone2:":{uc_base:"1f44c-1f3fc",uc_output:"1f44c-1f3fc",uc_match:"1f44c-1f3fc",uc_greedy:"1f44c-1f3fc",shortnames:[],category:"people"},":ok_hand_tone3:":{uc_base:"1f44c-1f3fd",uc_output:"1f44c-1f3fd",uc_match:"1f44c-1f3fd",uc_greedy:"1f44c-1f3fd",shortnames:[],category:"people"},":ok_hand_tone4:":{uc_base:"1f44c-1f3fe",uc_output:"1f44c-1f3fe",uc_match:"1f44c-1f3fe",uc_greedy:"1f44c-1f3fe",shortnames:[],category:"people"},":ok_hand_tone5:":{uc_base:"1f44c-1f3ff",uc_output:"1f44c-1f3ff",uc_match:"1f44c-1f3ff",uc_greedy:"1f44c-1f3ff",shortnames:[],category:"people"},":older_adult_tone1:":{uc_base:"1f9d3-1f3fb",uc_output:"1f9d3-1f3fb",uc_match:"1f9d3-1f3fb",uc_greedy:"1f9d3-1f3fb",shortnames:[":older_adult_light_skin_tone:"],category:"people"},":older_adult_tone2:":{uc_base:"1f9d3-1f3fc",uc_output:"1f9d3-1f3fc",uc_match:"1f9d3-1f3fc",uc_greedy:"1f9d3-1f3fc",shortnames:[":older_adult_medium_light_skin_tone:"],category:"people"},":older_adult_tone3:":{uc_base:"1f9d3-1f3fd",uc_output:"1f9d3-1f3fd",uc_match:"1f9d3-1f3fd",uc_greedy:"1f9d3-1f3fd",shortnames:[":older_adult_medium_skin_tone:"],category:"people"},":older_adult_tone4:":{uc_base:"1f9d3-1f3fe",uc_output:"1f9d3-1f3fe",uc_match:"1f9d3-1f3fe",uc_greedy:"1f9d3-1f3fe",shortnames:[":older_adult_medium_dark_skin_tone:"],category:"people"},":older_adult_tone5:":{uc_base:"1f9d3-1f3ff",uc_output:"1f9d3-1f3ff",uc_match:"1f9d3-1f3ff",uc_greedy:"1f9d3-1f3ff",shortnames:[":older_adult_dark_skin_tone:"],category:"people"},":older_man_tone1:":{uc_base:"1f474-1f3fb",uc_output:"1f474-1f3fb",uc_match:"1f474-1f3fb",uc_greedy:"1f474-1f3fb",shortnames:[],category:"people"},":older_man_tone2:":{uc_base:"1f474-1f3fc",uc_output:"1f474-1f3fc",uc_match:"1f474-1f3fc",uc_greedy:"1f474-1f3fc",shortnames:[],category:"people"},":older_man_tone3:":{uc_base:"1f474-1f3fd",uc_output:"1f474-1f3fd",uc_match:"1f474-1f3fd",uc_greedy:"1f474-1f3fd",shortnames:[],category:"people"},":older_man_tone4:":{uc_base:"1f474-1f3fe",uc_output:"1f474-1f3fe",uc_match:"1f474-1f3fe",uc_greedy:"1f474-1f3fe",shortnames:[],category:"people"},":older_man_tone5:":{uc_base:"1f474-1f3ff",uc_output:"1f474-1f3ff",uc_match:"1f474-1f3ff",uc_greedy:"1f474-1f3ff",shortnames:[],category:"people"},":older_woman_tone1:":{uc_base:"1f475-1f3fb",uc_output:"1f475-1f3fb",uc_match:"1f475-1f3fb",uc_greedy:"1f475-1f3fb",shortnames:[":grandma_tone1:"],category:"people"},":older_woman_tone2:":{uc_base:"1f475-1f3fc",uc_output:"1f475-1f3fc",uc_match:"1f475-1f3fc",uc_greedy:"1f475-1f3fc",shortnames:[":grandma_tone2:"],category:"people"},":older_woman_tone3:":{uc_base:"1f475-1f3fd",uc_output:"1f475-1f3fd",uc_match:"1f475-1f3fd",uc_greedy:"1f475-1f3fd",shortnames:[":grandma_tone3:"],category:"people"},":older_woman_tone4:":{uc_base:"1f475-1f3fe",uc_output:"1f475-1f3fe",uc_match:"1f475-1f3fe",uc_greedy:"1f475-1f3fe",shortnames:[":grandma_tone4:"],category:"people"},":older_woman_tone5:":{uc_base:"1f475-1f3ff",uc_output:"1f475-1f3ff",uc_match:"1f475-1f3ff",uc_greedy:"1f475-1f3ff",shortnames:[":grandma_tone5:"],category:"people"},":open_hands_tone1:":{uc_base:"1f450-1f3fb",uc_output:"1f450-1f3fb",uc_match:"1f450-1f3fb",uc_greedy:"1f450-1f3fb",shortnames:[],category:"people"},":open_hands_tone2:":{uc_base:"1f450-1f3fc",uc_output:"1f450-1f3fc",uc_match:"1f450-1f3fc",uc_greedy:"1f450-1f3fc",shortnames:[],category:"people"},":open_hands_tone3:":{uc_base:"1f450-1f3fd",uc_output:"1f450-1f3fd",uc_match:"1f450-1f3fd",uc_greedy:"1f450-1f3fd",shortnames:[],category:"people"},":open_hands_tone4:":{uc_base:"1f450-1f3fe",uc_output:"1f450-1f3fe",uc_match:"1f450-1f3fe",uc_greedy:"1f450-1f3fe",shortnames:[],category:"people"},":open_hands_tone5:":{uc_base:"1f450-1f3ff",uc_output:"1f450-1f3ff",uc_match:"1f450-1f3ff",uc_greedy:"1f450-1f3ff",shortnames:[],category:"people"},":palms_up_together_tone1:":{uc_base:"1f932-1f3fb",uc_output:"1f932-1f3fb",uc_match:"1f932-1f3fb",uc_greedy:"1f932-1f3fb",shortnames:[":palms_up_together_light_skin_tone:"],category:"people"},":palms_up_together_tone2:":{uc_base:"1f932-1f3fc",uc_output:"1f932-1f3fc",uc_match:"1f932-1f3fc",uc_greedy:"1f932-1f3fc",shortnames:[":palms_up_together_medium_light_skin_tone:"],category:"people"},":palms_up_together_tone3:":{uc_base:"1f932-1f3fd",uc_output:"1f932-1f3fd",uc_match:"1f932-1f3fd",uc_greedy:"1f932-1f3fd",shortnames:[":palms_up_together_medium_skin_tone:"],category:"people"},":palms_up_together_tone4:":{uc_base:"1f932-1f3fe",uc_output:"1f932-1f3fe",uc_match:"1f932-1f3fe",uc_greedy:"1f932-1f3fe",shortnames:[":palms_up_together_medium_dark_skin_tone:"],category:"people"},":palms_up_together_tone5:":{uc_base:"1f932-1f3ff",uc_output:"1f932-1f3ff",uc_match:"1f932-1f3ff",uc_greedy:"1f932-1f3ff",shortnames:[":palms_up_together_dark_skin_tone:"],category:"people"},":person_biking_tone1:":{uc_base:"1f6b4-1f3fb",uc_output:"1f6b4-1f3fb",uc_match:"1f6b4-1f3fb",uc_greedy:"1f6b4-1f3fb",shortnames:[":bicyclist_tone1:"],category:"activity"},":person_biking_tone2:":{uc_base:"1f6b4-1f3fc",uc_output:"1f6b4-1f3fc",uc_match:"1f6b4-1f3fc",uc_greedy:"1f6b4-1f3fc",shortnames:[":bicyclist_tone2:"],category:"activity"},":person_biking_tone3:":{uc_base:"1f6b4-1f3fd",uc_output:"1f6b4-1f3fd",uc_match:"1f6b4-1f3fd",uc_greedy:"1f6b4-1f3fd",shortnames:[":bicyclist_tone3:"],category:"activity"},":person_biking_tone4:":{uc_base:"1f6b4-1f3fe",uc_output:"1f6b4-1f3fe",uc_match:"1f6b4-1f3fe",uc_greedy:"1f6b4-1f3fe",shortnames:[":bicyclist_tone4:"],category:"activity"},":person_biking_tone5:":{uc_base:"1f6b4-1f3ff",uc_output:"1f6b4-1f3ff",uc_match:"1f6b4-1f3ff",uc_greedy:"1f6b4-1f3ff",shortnames:[":bicyclist_tone5:"],category:"activity"},":person_bowing_tone1:":{uc_base:"1f647-1f3fb",uc_output:"1f647-1f3fb",uc_match:"1f647-1f3fb",uc_greedy:"1f647-1f3fb",shortnames:[":bow_tone1:"],category:"people"},":person_bowing_tone2:":{uc_base:"1f647-1f3fc",uc_output:"1f647-1f3fc",uc_match:"1f647-1f3fc",uc_greedy:"1f647-1f3fc",shortnames:[":bow_tone2:"],category:"people"},":person_bowing_tone3:":{uc_base:"1f647-1f3fd",uc_output:"1f647-1f3fd",uc_match:"1f647-1f3fd",uc_greedy:"1f647-1f3fd",shortnames:[":bow_tone3:"],category:"people"},":person_bowing_tone4:":{uc_base:"1f647-1f3fe",uc_output:"1f647-1f3fe",uc_match:"1f647-1f3fe",uc_greedy:"1f647-1f3fe",shortnames:[":bow_tone4:"],category:"people"},":person_bowing_tone5:":{uc_base:"1f647-1f3ff",uc_output:"1f647-1f3ff",uc_match:"1f647-1f3ff",uc_greedy:"1f647-1f3ff",shortnames:[":bow_tone5:"],category:"people"},":person_climbing_tone1:":{uc_base:"1f9d7-1f3fb",uc_output:"1f9d7-1f3fb",uc_match:"1f9d7-1f3fb",uc_greedy:"1f9d7-1f3fb",shortnames:[":person_climbing_light_skin_tone:"],category:"activity"},":person_climbing_tone2:":{uc_base:"1f9d7-1f3fc",uc_output:"1f9d7-1f3fc",uc_match:"1f9d7-1f3fc",uc_greedy:"1f9d7-1f3fc",shortnames:[":person_climbing_medium_light_skin_tone:"],category:"activity"},":person_climbing_tone3:":{uc_base:"1f9d7-1f3fd",uc_output:"1f9d7-1f3fd",uc_match:"1f9d7-1f3fd",uc_greedy:"1f9d7-1f3fd",shortnames:[":person_climbing_medium_skin_tone:"],category:"activity"},":person_climbing_tone4:":{uc_base:"1f9d7-1f3fe",uc_output:"1f9d7-1f3fe",uc_match:"1f9d7-1f3fe",uc_greedy:"1f9d7-1f3fe",shortnames:[":person_climbing_medium_dark_skin_tone:"],category:"activity"},":person_climbing_tone5:":{uc_base:"1f9d7-1f3ff",uc_output:"1f9d7-1f3ff",uc_match:"1f9d7-1f3ff",uc_greedy:"1f9d7-1f3ff",shortnames:[":person_climbing_dark_skin_tone:"],category:"activity"},":person_doing_cartwheel_tone1:":{uc_base:"1f938-1f3fb",uc_output:"1f938-1f3fb",uc_match:"1f938-1f3fb",uc_greedy:"1f938-1f3fb",shortnames:[":cartwheel_tone1:"],category:"activity"},":person_doing_cartwheel_tone2:":{uc_base:"1f938-1f3fc",uc_output:"1f938-1f3fc",uc_match:"1f938-1f3fc",uc_greedy:"1f938-1f3fc",shortnames:[":cartwheel_tone2:"],category:"activity"},":person_doing_cartwheel_tone3:":{uc_base:"1f938-1f3fd",uc_output:"1f938-1f3fd",uc_match:"1f938-1f3fd",uc_greedy:"1f938-1f3fd",shortnames:[":cartwheel_tone3:"],category:"activity"},":person_doing_cartwheel_tone4:":{uc_base:"1f938-1f3fe",uc_output:"1f938-1f3fe",uc_match:"1f938-1f3fe",uc_greedy:"1f938-1f3fe",shortnames:[":cartwheel_tone4:"],category:"activity"},":person_doing_cartwheel_tone5:":{uc_base:"1f938-1f3ff",uc_output:"1f938-1f3ff",uc_match:"1f938-1f3ff",uc_greedy:"1f938-1f3ff",shortnames:[":cartwheel_tone5:"],category:"activity"},":person_facepalming_tone1:":{uc_base:"1f926-1f3fb",uc_output:"1f926-1f3fb",uc_match:"1f926-1f3fb",uc_greedy:"1f926-1f3fb",shortnames:[":face_palm_tone1:",":facepalm_tone1:"],category:"people"},":person_facepalming_tone2:":{uc_base:"1f926-1f3fc",uc_output:"1f926-1f3fc",uc_match:"1f926-1f3fc",uc_greedy:"1f926-1f3fc",shortnames:[":face_palm_tone2:",":facepalm_tone2:"],category:"people"},":person_facepalming_tone3:":{uc_base:"1f926-1f3fd",uc_output:"1f926-1f3fd",uc_match:"1f926-1f3fd",uc_greedy:"1f926-1f3fd",shortnames:[":face_palm_tone3:",":facepalm_tone3:"],category:"people"},":person_facepalming_tone4:":{uc_base:"1f926-1f3fe",uc_output:"1f926-1f3fe",uc_match:"1f926-1f3fe",uc_greedy:"1f926-1f3fe",shortnames:[":face_palm_tone4:",":facepalm_tone4:"],category:"people"},":person_facepalming_tone5:":{uc_base:"1f926-1f3ff",uc_output:"1f926-1f3ff",uc_match:"1f926-1f3ff",uc_greedy:"1f926-1f3ff",shortnames:[":face_palm_tone5:",":facepalm_tone5:"],category:"people"},":person_frowning_tone1:":{uc_base:"1f64d-1f3fb",uc_output:"1f64d-1f3fb",uc_match:"1f64d-1f3fb",uc_greedy:"1f64d-1f3fb",shortnames:[],category:"people"},":person_frowning_tone2:":{uc_base:"1f64d-1f3fc",uc_output:"1f64d-1f3fc",uc_match:"1f64d-1f3fc",uc_greedy:"1f64d-1f3fc",shortnames:[],category:"people"},":person_frowning_tone3:":{uc_base:"1f64d-1f3fd",uc_output:"1f64d-1f3fd",uc_match:"1f64d-1f3fd",uc_greedy:"1f64d-1f3fd",shortnames:[],category:"people"},":person_frowning_tone4:":{uc_base:"1f64d-1f3fe",uc_output:"1f64d-1f3fe",uc_match:"1f64d-1f3fe",uc_greedy:"1f64d-1f3fe",shortnames:[],category:"people"},":person_frowning_tone5:":{uc_base:"1f64d-1f3ff",uc_output:"1f64d-1f3ff",uc_match:"1f64d-1f3ff",uc_greedy:"1f64d-1f3ff",shortnames:[],category:"people"},":person_gesturing_no_tone1:":{uc_base:"1f645-1f3fb",uc_output:"1f645-1f3fb",uc_match:"1f645-1f3fb",uc_greedy:"1f645-1f3fb",shortnames:[":no_good_tone1:"],category:"people"},":person_gesturing_no_tone2:":{uc_base:"1f645-1f3fc",uc_output:"1f645-1f3fc",uc_match:"1f645-1f3fc",uc_greedy:"1f645-1f3fc",shortnames:[":no_good_tone2:"],category:"people"},":person_gesturing_no_tone3:":{uc_base:"1f645-1f3fd",uc_output:"1f645-1f3fd",uc_match:"1f645-1f3fd",uc_greedy:"1f645-1f3fd",shortnames:[":no_good_tone3:"],category:"people"},":person_gesturing_no_tone4:":{uc_base:"1f645-1f3fe",uc_output:"1f645-1f3fe",uc_match:"1f645-1f3fe",uc_greedy:"1f645-1f3fe",shortnames:[":no_good_tone4:"],category:"people"},":person_gesturing_no_tone5:":{uc_base:"1f645-1f3ff",uc_output:"1f645-1f3ff",uc_match:"1f645-1f3ff",uc_greedy:"1f645-1f3ff",shortnames:[":no_good_tone5:"],category:"people"},":person_gesturing_ok_tone1:":{uc_base:"1f646-1f3fb",uc_output:"1f646-1f3fb",uc_match:"1f646-1f3fb",uc_greedy:"1f646-1f3fb",shortnames:[":ok_woman_tone1:"],category:"people"},":person_gesturing_ok_tone2:":{uc_base:"1f646-1f3fc",uc_output:"1f646-1f3fc",uc_match:"1f646-1f3fc",uc_greedy:"1f646-1f3fc",shortnames:[":ok_woman_tone2:"],category:"people"},":person_gesturing_ok_tone3:":{uc_base:"1f646-1f3fd",uc_output:"1f646-1f3fd",uc_match:"1f646-1f3fd",uc_greedy:"1f646-1f3fd",shortnames:[":ok_woman_tone3:"],category:"people"},":person_gesturing_ok_tone4:":{uc_base:"1f646-1f3fe",uc_output:"1f646-1f3fe",uc_match:"1f646-1f3fe",uc_greedy:"1f646-1f3fe",shortnames:[":ok_woman_tone4:"],category:"people"},":person_gesturing_ok_tone5:":{uc_base:"1f646-1f3ff",uc_output:"1f646-1f3ff",uc_match:"1f646-1f3ff",uc_greedy:"1f646-1f3ff",shortnames:[":ok_woman_tone5:"],category:"people"},":person_getting_haircut_tone1:":{uc_base:"1f487-1f3fb",uc_output:"1f487-1f3fb",uc_match:"1f487-1f3fb",uc_greedy:"1f487-1f3fb",shortnames:[":haircut_tone1:"],category:"people"},":person_getting_haircut_tone2:":{uc_base:"1f487-1f3fc",uc_output:"1f487-1f3fc",uc_match:"1f487-1f3fc",uc_greedy:"1f487-1f3fc",shortnames:[":haircut_tone2:"],category:"people"},":person_getting_haircut_tone3:":{uc_base:"1f487-1f3fd",uc_output:"1f487-1f3fd",uc_match:"1f487-1f3fd",uc_greedy:"1f487-1f3fd",shortnames:[":haircut_tone3:"],category:"people"},":person_getting_haircut_tone4:":{uc_base:"1f487-1f3fe",uc_output:"1f487-1f3fe",uc_match:"1f487-1f3fe",uc_greedy:"1f487-1f3fe",shortnames:[":haircut_tone4:"],category:"people"},":person_getting_haircut_tone5:":{uc_base:"1f487-1f3ff",uc_output:"1f487-1f3ff",uc_match:"1f487-1f3ff",uc_greedy:"1f487-1f3ff",shortnames:[":haircut_tone5:"],category:"people"},":person_getting_massage_tone1:":{uc_base:"1f486-1f3fb",uc_output:"1f486-1f3fb",uc_match:"1f486-1f3fb",uc_greedy:"1f486-1f3fb",shortnames:[":massage_tone1:"],category:"people"},":person_getting_massage_tone2:":{uc_base:"1f486-1f3fc",uc_output:"1f486-1f3fc",uc_match:"1f486-1f3fc",uc_greedy:"1f486-1f3fc",shortnames:[":massage_tone2:"],category:"people"},":person_getting_massage_tone3:":{uc_base:"1f486-1f3fd",uc_output:"1f486-1f3fd",uc_match:"1f486-1f3fd",uc_greedy:"1f486-1f3fd",shortnames:[":massage_tone3:"],category:"people"},":person_getting_massage_tone4:":{uc_base:"1f486-1f3fe",uc_output:"1f486-1f3fe",uc_match:"1f486-1f3fe",uc_greedy:"1f486-1f3fe",shortnames:[":massage_tone4:"],category:"people"},":person_getting_massage_tone5:":{uc_base:"1f486-1f3ff",uc_output:"1f486-1f3ff",uc_match:"1f486-1f3ff",uc_greedy:"1f486-1f3ff",shortnames:[":massage_tone5:"],category:"people"},":person_golfing_tone1:":{uc_base:"1f3cc-1f3fb",uc_output:"1f3cc-1f3fb",uc_match:"1f3cc-fe0f-1f3fb",uc_greedy:"1f3cc-fe0f-1f3fb",shortnames:[":person_golfing_light_skin_tone:"],category:"activity"},":person_golfing_tone2:":{uc_base:"1f3cc-1f3fc",uc_output:"1f3cc-1f3fc",uc_match:"1f3cc-fe0f-1f3fc",uc_greedy:"1f3cc-fe0f-1f3fc",shortnames:[":person_golfing_medium_light_skin_tone:"],category:"activity"},":person_golfing_tone3:":{uc_base:"1f3cc-1f3fd",uc_output:"1f3cc-1f3fd",uc_match:"1f3cc-fe0f-1f3fd",uc_greedy:"1f3cc-fe0f-1f3fd",shortnames:[":person_golfing_medium_skin_tone:"],category:"activity"},":person_golfing_tone4:":{uc_base:"1f3cc-1f3fe",uc_output:"1f3cc-1f3fe",uc_match:"1f3cc-fe0f-1f3fe",uc_greedy:"1f3cc-fe0f-1f3fe",shortnames:[":person_golfing_medium_dark_skin_tone:"],category:"activity"},":person_golfing_tone5:":{uc_base:"1f3cc-1f3ff",uc_output:"1f3cc-1f3ff",uc_match:"1f3cc-fe0f-1f3ff",uc_greedy:"1f3cc-fe0f-1f3ff",shortnames:[":person_golfing_dark_skin_tone:"],category:"activity"},":person_in_bed_tone1:":{uc_base:"1f6cc-1f3fb",uc_output:"1f6cc-1f3fb",uc_match:"1f6cc-1f3fb",uc_greedy:"1f6cc-1f3fb",shortnames:[":person_in_bed_light_skin_tone:"],category:"objects"},":person_in_bed_tone2:":{uc_base:"1f6cc-1f3fc",uc_output:"1f6cc-1f3fc",uc_match:"1f6cc-1f3fc",uc_greedy:"1f6cc-1f3fc",shortnames:[":person_in_bed_medium_light_skin_tone:"],category:"objects"},":person_in_bed_tone3:":{uc_base:"1f6cc-1f3fd",uc_output:"1f6cc-1f3fd",uc_match:"1f6cc-1f3fd",uc_greedy:"1f6cc-1f3fd",shortnames:[":person_in_bed_medium_skin_tone:"],category:"objects"},":person_in_bed_tone4:":{uc_base:"1f6cc-1f3fe",uc_output:"1f6cc-1f3fe",uc_match:"1f6cc-1f3fe",uc_greedy:"1f6cc-1f3fe",shortnames:[":person_in_bed_medium_dark_skin_tone:"],category:"objects"},":person_in_bed_tone5:":{uc_base:"1f6cc-1f3ff",uc_output:"1f6cc-1f3ff",uc_match:"1f6cc-1f3ff",uc_greedy:"1f6cc-1f3ff",shortnames:[":person_in_bed_dark_skin_tone:"],category:"objects"},":person_in_lotus_position_tone1:":{uc_base:"1f9d8-1f3fb",uc_output:"1f9d8-1f3fb",uc_match:"1f9d8-1f3fb",uc_greedy:"1f9d8-1f3fb",shortnames:[":person_in_lotus_position_light_skin_tone:"],category:"activity"},":person_in_lotus_position_tone2:":{uc_base:"1f9d8-1f3fc",uc_output:"1f9d8-1f3fc",uc_match:"1f9d8-1f3fc",uc_greedy:"1f9d8-1f3fc",shortnames:[":person_in_lotus_position_medium_light_skin_tone:"],category:"activity"},":person_in_lotus_position_tone3:":{uc_base:"1f9d8-1f3fd",uc_output:"1f9d8-1f3fd",uc_match:"1f9d8-1f3fd",uc_greedy:"1f9d8-1f3fd",shortnames:[":person_in_lotus_position_medium_skin_tone:"],category:"activity"},":person_in_lotus_position_tone4:":{uc_base:"1f9d8-1f3fe",uc_output:"1f9d8-1f3fe",uc_match:"1f9d8-1f3fe",uc_greedy:"1f9d8-1f3fe",shortnames:[":person_in_lotus_position_medium_dark_skin_tone:"],category:"activity"},":person_in_lotus_position_tone5:":{uc_base:"1f9d8-1f3ff",uc_output:"1f9d8-1f3ff",uc_match:"1f9d8-1f3ff",uc_greedy:"1f9d8-1f3ff",shortnames:[":person_in_lotus_position_dark_skin_tone:"],category:"activity"},":person_in_steamy_room_tone1:":{uc_base:"1f9d6-1f3fb",uc_output:"1f9d6-1f3fb",uc_match:"1f9d6-1f3fb",uc_greedy:"1f9d6-1f3fb",shortnames:[":person_in_steamy_room_light_skin_tone:"],category:"people"},":person_in_steamy_room_tone2:":{uc_base:"1f9d6-1f3fc",uc_output:"1f9d6-1f3fc",uc_match:"1f9d6-1f3fc",uc_greedy:"1f9d6-1f3fc",shortnames:[":person_in_steamy_room_medium_light_skin_tone:"],category:"people"},":person_in_steamy_room_tone3:":{uc_base:"1f9d6-1f3fd",uc_output:"1f9d6-1f3fd",uc_match:"1f9d6-1f3fd",uc_greedy:"1f9d6-1f3fd",shortnames:[":person_in_steamy_room_medium_skin_tone:"],category:"people"},":person_in_steamy_room_tone4:":{uc_base:"1f9d6-1f3fe",uc_output:"1f9d6-1f3fe",uc_match:"1f9d6-1f3fe",uc_greedy:"1f9d6-1f3fe",shortnames:[":person_in_steamy_room_medium_dark_skin_tone:"],category:"people"},":person_in_steamy_room_tone5:":{uc_base:"1f9d6-1f3ff",uc_output:"1f9d6-1f3ff",uc_match:"1f9d6-1f3ff",uc_greedy:"1f9d6-1f3ff",shortnames:[":person_in_steamy_room_dark_skin_tone:"],category:"people"},":person_juggling_tone1:":{uc_base:"1f939-1f3fb",uc_output:"1f939-1f3fb",uc_match:"1f939-1f3fb",uc_greedy:"1f939-1f3fb",shortnames:[":juggling_tone1:",":juggler_tone1:"],category:"activity"},":person_juggling_tone2:":{uc_base:"1f939-1f3fc",uc_output:"1f939-1f3fc",uc_match:"1f939-1f3fc",uc_greedy:"1f939-1f3fc",shortnames:[":juggling_tone2:",":juggler_tone2:"],category:"activity"},":person_juggling_tone3:":{uc_base:"1f939-1f3fd",uc_output:"1f939-1f3fd",uc_match:"1f939-1f3fd",uc_greedy:"1f939-1f3fd",shortnames:[":juggling_tone3:",":juggler_tone3:"],category:"activity"},":person_juggling_tone4:":{uc_base:"1f939-1f3fe",uc_output:"1f939-1f3fe",uc_match:"1f939-1f3fe",uc_greedy:"1f939-1f3fe",shortnames:[":juggling_tone4:",":juggler_tone4:"],category:"activity"},":person_juggling_tone5:":{uc_base:"1f939-1f3ff",uc_output:"1f939-1f3ff",uc_match:"1f939-1f3ff",uc_greedy:"1f939-1f3ff",shortnames:[":juggling_tone5:",":juggler_tone5:"],category:"activity"},":person_lifting_weights_tone1:":{uc_base:"1f3cb-1f3fb",uc_output:"1f3cb-1f3fb",uc_match:"1f3cb-fe0f-1f3fb",uc_greedy:"1f3cb-fe0f-1f3fb",shortnames:[":lifter_tone1:",":weight_lifter_tone1:"],category:"activity"},":person_lifting_weights_tone2:":{uc_base:"1f3cb-1f3fc",uc_output:"1f3cb-1f3fc",uc_match:"1f3cb-fe0f-1f3fc",uc_greedy:"1f3cb-fe0f-1f3fc",shortnames:[":lifter_tone2:",":weight_lifter_tone2:"],category:"activity"},":person_lifting_weights_tone3:":{uc_base:"1f3cb-1f3fd",uc_output:"1f3cb-1f3fd",uc_match:"1f3cb-fe0f-1f3fd",uc_greedy:"1f3cb-fe0f-1f3fd",shortnames:[":lifter_tone3:",":weight_lifter_tone3:"],category:"activity"},":person_lifting_weights_tone4:":{uc_base:"1f3cb-1f3fe",uc_output:"1f3cb-1f3fe",uc_match:"1f3cb-fe0f-1f3fe",uc_greedy:"1f3cb-fe0f-1f3fe",shortnames:[":lifter_tone4:",":weight_lifter_tone4:"],category:"activity"},":person_lifting_weights_tone5:":{uc_base:"1f3cb-1f3ff",uc_output:"1f3cb-1f3ff",uc_match:"1f3cb-fe0f-1f3ff",uc_greedy:"1f3cb-fe0f-1f3ff",shortnames:[":lifter_tone5:",":weight_lifter_tone5:"],category:"activity"},":person_mountain_biking_tone1:":{uc_base:"1f6b5-1f3fb",uc_output:"1f6b5-1f3fb",uc_match:"1f6b5-1f3fb",uc_greedy:"1f6b5-1f3fb",shortnames:[":mountain_bicyclist_tone1:"],category:"activity"},":person_mountain_biking_tone2:":{uc_base:"1f6b5-1f3fc",uc_output:"1f6b5-1f3fc",uc_match:"1f6b5-1f3fc",uc_greedy:"1f6b5-1f3fc",shortnames:[":mountain_bicyclist_tone2:"],category:"activity"},":person_mountain_biking_tone3:":{uc_base:"1f6b5-1f3fd",uc_output:"1f6b5-1f3fd",uc_match:"1f6b5-1f3fd",uc_greedy:"1f6b5-1f3fd",shortnames:[":mountain_bicyclist_tone3:"],category:"activity"},":person_mountain_biking_tone4:":{uc_base:"1f6b5-1f3fe",uc_output:"1f6b5-1f3fe",uc_match:"1f6b5-1f3fe",uc_greedy:"1f6b5-1f3fe",shortnames:[":mountain_bicyclist_tone4:"],category:"activity"},":person_mountain_biking_tone5:":{uc_base:"1f6b5-1f3ff",uc_output:"1f6b5-1f3ff",uc_match:"1f6b5-1f3ff",uc_greedy:"1f6b5-1f3ff",shortnames:[":mountain_bicyclist_tone5:"],category:"activity"},":person_playing_handball_tone1:":{uc_base:"1f93e-1f3fb",uc_output:"1f93e-1f3fb",uc_match:"1f93e-1f3fb",uc_greedy:"1f93e-1f3fb",shortnames:[":handball_tone1:"],category:"activity"},":person_playing_handball_tone2:":{uc_base:"1f93e-1f3fc",uc_output:"1f93e-1f3fc",uc_match:"1f93e-1f3fc",uc_greedy:"1f93e-1f3fc",shortnames:[":handball_tone2:"],category:"activity"},":person_playing_handball_tone3:":{uc_base:"1f93e-1f3fd",uc_output:"1f93e-1f3fd",uc_match:"1f93e-1f3fd",uc_greedy:"1f93e-1f3fd",shortnames:[":handball_tone3:"],category:"activity"},":person_playing_handball_tone4:":{uc_base:"1f93e-1f3fe",uc_output:"1f93e-1f3fe",uc_match:"1f93e-1f3fe",uc_greedy:"1f93e-1f3fe",shortnames:[":handball_tone4:"],category:"activity"},":person_playing_handball_tone5:":{uc_base:"1f93e-1f3ff",uc_output:"1f93e-1f3ff",uc_match:"1f93e-1f3ff",uc_greedy:"1f93e-1f3ff",shortnames:[":handball_tone5:"],category:"activity"},":person_playing_water_polo_tone1:":{uc_base:"1f93d-1f3fb",uc_output:"1f93d-1f3fb",uc_match:"1f93d-1f3fb",uc_greedy:"1f93d-1f3fb",shortnames:[":water_polo_tone1:"],category:"activity"},":person_playing_water_polo_tone2:":{uc_base:"1f93d-1f3fc",uc_output:"1f93d-1f3fc",uc_match:"1f93d-1f3fc",uc_greedy:"1f93d-1f3fc",shortnames:[":water_polo_tone2:"],category:"activity"},":person_playing_water_polo_tone3:":{uc_base:"1f93d-1f3fd",uc_output:"1f93d-1f3fd",uc_match:"1f93d-1f3fd",uc_greedy:"1f93d-1f3fd",shortnames:[":water_polo_tone3:"],category:"activity"},":person_playing_water_polo_tone4:":{uc_base:"1f93d-1f3fe",uc_output:"1f93d-1f3fe",uc_match:"1f93d-1f3fe",uc_greedy:"1f93d-1f3fe",shortnames:[":water_polo_tone4:"],category:"activity"},":person_playing_water_polo_tone5:":{uc_base:"1f93d-1f3ff",uc_output:"1f93d-1f3ff",uc_match:"1f93d-1f3ff",uc_greedy:"1f93d-1f3ff",shortnames:[":water_polo_tone5:"],category:"activity"},":person_pouting_tone1:":{uc_base:"1f64e-1f3fb",uc_output:"1f64e-1f3fb",uc_match:"1f64e-1f3fb",uc_greedy:"1f64e-1f3fb",shortnames:[":person_with_pouting_face_tone1:"],category:"people"},":person_pouting_tone2:":{uc_base:"1f64e-1f3fc",uc_output:"1f64e-1f3fc",uc_match:"1f64e-1f3fc",uc_greedy:"1f64e-1f3fc",shortnames:[":person_with_pouting_face_tone2:"],category:"people"},":person_pouting_tone3:":{uc_base:"1f64e-1f3fd",uc_output:"1f64e-1f3fd",uc_match:"1f64e-1f3fd",uc_greedy:"1f64e-1f3fd",shortnames:[":person_with_pouting_face_tone3:"],category:"people"},":person_pouting_tone4:":{uc_base:"1f64e-1f3fe",uc_output:"1f64e-1f3fe",uc_match:"1f64e-1f3fe",uc_greedy:"1f64e-1f3fe",shortnames:[":person_with_pouting_face_tone4:"],category:"people"},":person_pouting_tone5:":{uc_base:"1f64e-1f3ff",uc_output:"1f64e-1f3ff",uc_match:"1f64e-1f3ff",uc_greedy:"1f64e-1f3ff",shortnames:[":person_with_pouting_face_tone5:"],category:"people"},":person_raising_hand_tone1:":{uc_base:"1f64b-1f3fb",uc_output:"1f64b-1f3fb",uc_match:"1f64b-1f3fb",uc_greedy:"1f64b-1f3fb",shortnames:[":raising_hand_tone1:"],category:"people"},":person_raising_hand_tone2:":{uc_base:"1f64b-1f3fc",uc_output:"1f64b-1f3fc",uc_match:"1f64b-1f3fc",uc_greedy:"1f64b-1f3fc",shortnames:[":raising_hand_tone2:"],category:"people"},":person_raising_hand_tone3:":{uc_base:"1f64b-1f3fd",uc_output:"1f64b-1f3fd",uc_match:"1f64b-1f3fd",uc_greedy:"1f64b-1f3fd",shortnames:[":raising_hand_tone3:"],category:"people"},":person_raising_hand_tone4:":{uc_base:"1f64b-1f3fe",uc_output:"1f64b-1f3fe",uc_match:"1f64b-1f3fe",uc_greedy:"1f64b-1f3fe",shortnames:[":raising_hand_tone4:"],category:"people"},":person_raising_hand_tone5:":{uc_base:"1f64b-1f3ff",uc_output:"1f64b-1f3ff",uc_match:"1f64b-1f3ff",uc_greedy:"1f64b-1f3ff",shortnames:[":raising_hand_tone5:"],category:"people"},":person_rowing_boat_tone1:":{uc_base:"1f6a3-1f3fb",uc_output:"1f6a3-1f3fb",uc_match:"1f6a3-1f3fb",uc_greedy:"1f6a3-1f3fb",shortnames:[":rowboat_tone1:"],category:"activity"},":person_rowing_boat_tone2:":{uc_base:"1f6a3-1f3fc",uc_output:"1f6a3-1f3fc",uc_match:"1f6a3-1f3fc",uc_greedy:"1f6a3-1f3fc",shortnames:[":rowboat_tone2:"],category:"activity"},":person_rowing_boat_tone3:":{uc_base:"1f6a3-1f3fd",uc_output:"1f6a3-1f3fd",uc_match:"1f6a3-1f3fd",uc_greedy:"1f6a3-1f3fd",shortnames:[":rowboat_tone3:"],category:"activity"},":person_rowing_boat_tone4:":{uc_base:"1f6a3-1f3fe",uc_output:"1f6a3-1f3fe",uc_match:"1f6a3-1f3fe",uc_greedy:"1f6a3-1f3fe",shortnames:[":rowboat_tone4:"],category:"activity"},":person_rowing_boat_tone5:":{uc_base:"1f6a3-1f3ff",uc_output:"1f6a3-1f3ff",uc_match:"1f6a3-1f3ff",uc_greedy:"1f6a3-1f3ff",shortnames:[":rowboat_tone5:"],category:"activity"},":person_running_tone1:":{uc_base:"1f3c3-1f3fb",uc_output:"1f3c3-1f3fb",uc_match:"1f3c3-1f3fb",uc_greedy:"1f3c3-1f3fb",shortnames:[":runner_tone1:"],category:"people"},":person_running_tone2:":{uc_base:"1f3c3-1f3fc",uc_output:"1f3c3-1f3fc",uc_match:"1f3c3-1f3fc",uc_greedy:"1f3c3-1f3fc",shortnames:[":runner_tone2:"],category:"people"},":person_running_tone3:":{uc_base:"1f3c3-1f3fd",uc_output:"1f3c3-1f3fd",uc_match:"1f3c3-1f3fd",uc_greedy:"1f3c3-1f3fd",shortnames:[":runner_tone3:"],category:"people"},":person_running_tone4:":{uc_base:"1f3c3-1f3fe",uc_output:"1f3c3-1f3fe",uc_match:"1f3c3-1f3fe",uc_greedy:"1f3c3-1f3fe",shortnames:[":runner_tone4:"],category:"people"},":person_running_tone5:":{uc_base:"1f3c3-1f3ff",uc_output:"1f3c3-1f3ff",uc_match:"1f3c3-1f3ff",uc_greedy:"1f3c3-1f3ff",shortnames:[":runner_tone5:"],category:"people"},":person_shrugging_tone1:":{uc_base:"1f937-1f3fb",uc_output:"1f937-1f3fb",uc_match:"1f937-1f3fb",uc_greedy:"1f937-1f3fb",shortnames:[":shrug_tone1:"],category:"people"},":person_shrugging_tone2:":{uc_base:"1f937-1f3fc",uc_output:"1f937-1f3fc",uc_match:"1f937-1f3fc",uc_greedy:"1f937-1f3fc",shortnames:[":shrug_tone2:"],category:"people"},":person_shrugging_tone3:":{uc_base:"1f937-1f3fd",uc_output:"1f937-1f3fd",uc_match:"1f937-1f3fd",uc_greedy:"1f937-1f3fd",shortnames:[":shrug_tone3:"],category:"people"},":person_shrugging_tone4:":{uc_base:"1f937-1f3fe",uc_output:"1f937-1f3fe",uc_match:"1f937-1f3fe",uc_greedy:"1f937-1f3fe",shortnames:[":shrug_tone4:"],category:"people"},":person_shrugging_tone5:":{uc_base:"1f937-1f3ff",uc_output:"1f937-1f3ff",uc_match:"1f937-1f3ff",uc_greedy:"1f937-1f3ff",shortnames:[":shrug_tone5:"],category:"people"},":person_surfing_tone1:":{uc_base:"1f3c4-1f3fb",uc_output:"1f3c4-1f3fb",uc_match:"1f3c4-1f3fb",uc_greedy:"1f3c4-1f3fb",shortnames:[":surfer_tone1:"],category:"activity"},":person_surfing_tone2:":{uc_base:"1f3c4-1f3fc",uc_output:"1f3c4-1f3fc",uc_match:"1f3c4-1f3fc",uc_greedy:"1f3c4-1f3fc",shortnames:[":surfer_tone2:"],category:"activity"},":person_surfing_tone3:":{uc_base:"1f3c4-1f3fd",uc_output:"1f3c4-1f3fd",uc_match:"1f3c4-1f3fd",uc_greedy:"1f3c4-1f3fd",shortnames:[":surfer_tone3:"],category:"activity"},":person_surfing_tone4:":{uc_base:"1f3c4-1f3fe",uc_output:"1f3c4-1f3fe",uc_match:"1f3c4-1f3fe",uc_greedy:"1f3c4-1f3fe",shortnames:[":surfer_tone4:"],category:"activity"},":person_surfing_tone5:":{uc_base:"1f3c4-1f3ff",uc_output:"1f3c4-1f3ff",uc_match:"1f3c4-1f3ff",uc_greedy:"1f3c4-1f3ff",shortnames:[":surfer_tone5:"],category:"activity"},":person_swimming_tone1:":{uc_base:"1f3ca-1f3fb",uc_output:"1f3ca-1f3fb",uc_match:"1f3ca-1f3fb",uc_greedy:"1f3ca-1f3fb",shortnames:[":swimmer_tone1:"],category:"activity"},":person_swimming_tone2:":{uc_base:"1f3ca-1f3fc",uc_output:"1f3ca-1f3fc",uc_match:"1f3ca-1f3fc",uc_greedy:"1f3ca-1f3fc",shortnames:[":swimmer_tone2:"],category:"activity"},":person_swimming_tone3:":{uc_base:"1f3ca-1f3fd",uc_output:"1f3ca-1f3fd",uc_match:"1f3ca-1f3fd",uc_greedy:"1f3ca-1f3fd",shortnames:[":swimmer_tone3:"],category:"activity"},":person_swimming_tone4:":{uc_base:"1f3ca-1f3fe",uc_output:"1f3ca-1f3fe",uc_match:"1f3ca-1f3fe",uc_greedy:"1f3ca-1f3fe",shortnames:[":swimmer_tone4:"],category:"activity"},":person_swimming_tone5:":{uc_base:"1f3ca-1f3ff",uc_output:"1f3ca-1f3ff",uc_match:"1f3ca-1f3ff",uc_greedy:"1f3ca-1f3ff",shortnames:[":swimmer_tone5:"],category:"activity"},":person_tipping_hand_tone1:":{uc_base:"1f481-1f3fb",uc_output:"1f481-1f3fb",uc_match:"1f481-1f3fb",uc_greedy:"1f481-1f3fb",shortnames:[":information_desk_person_tone1:"],category:"people"},":person_tipping_hand_tone2:":{uc_base:"1f481-1f3fc",uc_output:"1f481-1f3fc",uc_match:"1f481-1f3fc",uc_greedy:"1f481-1f3fc",shortnames:[":information_desk_person_tone2:"],category:"people"},":person_tipping_hand_tone3:":{uc_base:"1f481-1f3fd",uc_output:"1f481-1f3fd",uc_match:"1f481-1f3fd",uc_greedy:"1f481-1f3fd",shortnames:[":information_desk_person_tone3:"],category:"people"},":person_tipping_hand_tone4:":{uc_base:"1f481-1f3fe",uc_output:"1f481-1f3fe",uc_match:"1f481-1f3fe",uc_greedy:"1f481-1f3fe",shortnames:[":information_desk_person_tone4:"],category:"people"},":person_tipping_hand_tone5:":{uc_base:"1f481-1f3ff",uc_output:"1f481-1f3ff",uc_match:"1f481-1f3ff",uc_greedy:"1f481-1f3ff",shortnames:[":information_desk_person_tone5:"],category:"people"},":person_walking_tone1:":{uc_base:"1f6b6-1f3fb",uc_output:"1f6b6-1f3fb",uc_match:"1f6b6-1f3fb",uc_greedy:"1f6b6-1f3fb",shortnames:[":walking_tone1:"],category:"people"},":person_walking_tone2:":{uc_base:"1f6b6-1f3fc",uc_output:"1f6b6-1f3fc",uc_match:"1f6b6-1f3fc",uc_greedy:"1f6b6-1f3fc",shortnames:[":walking_tone2:"],category:"people"},":person_walking_tone3:":{uc_base:"1f6b6-1f3fd",uc_output:"1f6b6-1f3fd",uc_match:"1f6b6-1f3fd",uc_greedy:"1f6b6-1f3fd",shortnames:[":walking_tone3:"],category:"people"},":person_walking_tone4:":{uc_base:"1f6b6-1f3fe",uc_output:"1f6b6-1f3fe",uc_match:"1f6b6-1f3fe",uc_greedy:"1f6b6-1f3fe",shortnames:[":walking_tone4:"],category:"people"},":person_walking_tone5:":{uc_base:"1f6b6-1f3ff",uc_output:"1f6b6-1f3ff",uc_match:"1f6b6-1f3ff",uc_greedy:"1f6b6-1f3ff",shortnames:[":walking_tone5:"],category:"people"},":person_wearing_turban_tone1:":{uc_base:"1f473-1f3fb",uc_output:"1f473-1f3fb",uc_match:"1f473-1f3fb",uc_greedy:"1f473-1f3fb",shortnames:[":man_with_turban_tone1:"],category:"people"},":person_wearing_turban_tone2:":{uc_base:"1f473-1f3fc",uc_output:"1f473-1f3fc",uc_match:"1f473-1f3fc",uc_greedy:"1f473-1f3fc",shortnames:[":man_with_turban_tone2:"],category:"people"},":person_wearing_turban_tone3:":{uc_base:"1f473-1f3fd",uc_output:"1f473-1f3fd",uc_match:"1f473-1f3fd",uc_greedy:"1f473-1f3fd",shortnames:[":man_with_turban_tone3:"],category:"people"},":person_wearing_turban_tone4:":{uc_base:"1f473-1f3fe",uc_output:"1f473-1f3fe",uc_match:"1f473-1f3fe",uc_greedy:"1f473-1f3fe",shortnames:[":man_with_turban_tone4:"],category:"people"},":person_wearing_turban_tone5:":{uc_base:"1f473-1f3ff",uc_output:"1f473-1f3ff",uc_match:"1f473-1f3ff",uc_greedy:"1f473-1f3ff",shortnames:[":man_with_turban_tone5:"],category:"people"},":point_down_tone1:":{uc_base:"1f447-1f3fb",uc_output:"1f447-1f3fb",uc_match:"1f447-1f3fb",uc_greedy:"1f447-1f3fb",shortnames:[],category:"people"},":point_down_tone2:":{uc_base:"1f447-1f3fc",uc_output:"1f447-1f3fc",uc_match:"1f447-1f3fc",uc_greedy:"1f447-1f3fc",shortnames:[],category:"people"},":point_down_tone3:":{uc_base:"1f447-1f3fd",uc_output:"1f447-1f3fd",uc_match:"1f447-1f3fd",uc_greedy:"1f447-1f3fd",shortnames:[],category:"people"},":point_down_tone4:":{uc_base:"1f447-1f3fe",uc_output:"1f447-1f3fe",uc_match:"1f447-1f3fe",uc_greedy:"1f447-1f3fe",shortnames:[],category:"people"},":point_down_tone5:":{uc_base:"1f447-1f3ff",uc_output:"1f447-1f3ff",uc_match:"1f447-1f3ff",uc_greedy:"1f447-1f3ff",shortnames:[],category:"people"},":point_left_tone1:":{uc_base:"1f448-1f3fb",uc_output:"1f448-1f3fb",uc_match:"1f448-1f3fb",uc_greedy:"1f448-1f3fb",shortnames:[],category:"people"},":point_left_tone2:":{uc_base:"1f448-1f3fc",uc_output:"1f448-1f3fc",uc_match:"1f448-1f3fc",uc_greedy:"1f448-1f3fc",shortnames:[],category:"people"},":point_left_tone3:":{uc_base:"1f448-1f3fd",uc_output:"1f448-1f3fd",uc_match:"1f448-1f3fd",uc_greedy:"1f448-1f3fd",shortnames:[],category:"people"},":point_left_tone4:":{uc_base:"1f448-1f3fe",uc_output:"1f448-1f3fe",uc_match:"1f448-1f3fe",uc_greedy:"1f448-1f3fe",shortnames:[],category:"people"},":point_left_tone5:":{uc_base:"1f448-1f3ff",uc_output:"1f448-1f3ff",uc_match:"1f448-1f3ff",uc_greedy:"1f448-1f3ff",shortnames:[],category:"people"},":point_right_tone1:":{uc_base:"1f449-1f3fb",uc_output:"1f449-1f3fb",uc_match:"1f449-1f3fb",uc_greedy:"1f449-1f3fb",shortnames:[],category:"people"},":point_right_tone2:":{uc_base:"1f449-1f3fc",uc_output:"1f449-1f3fc",uc_match:"1f449-1f3fc",uc_greedy:"1f449-1f3fc",shortnames:[],category:"people"},":point_right_tone3:":{uc_base:"1f449-1f3fd",uc_output:"1f449-1f3fd",uc_match:"1f449-1f3fd",uc_greedy:"1f449-1f3fd",shortnames:[],category:"people"},":point_right_tone4:":{uc_base:"1f449-1f3fe",uc_output:"1f449-1f3fe",uc_match:"1f449-1f3fe",uc_greedy:"1f449-1f3fe",shortnames:[],category:"people"},":point_right_tone5:":{uc_base:"1f449-1f3ff",uc_output:"1f449-1f3ff",uc_match:"1f449-1f3ff",uc_greedy:"1f449-1f3ff",shortnames:[],category:"people"},":point_up_2_tone1:":{uc_base:"1f446-1f3fb",uc_output:"1f446-1f3fb",uc_match:"1f446-1f3fb",uc_greedy:"1f446-1f3fb",shortnames:[],category:"people"},":point_up_2_tone2:":{uc_base:"1f446-1f3fc",uc_output:"1f446-1f3fc",uc_match:"1f446-1f3fc",uc_greedy:"1f446-1f3fc",shortnames:[],category:"people"},":point_up_2_tone3:":{uc_base:"1f446-1f3fd",uc_output:"1f446-1f3fd",uc_match:"1f446-1f3fd",uc_greedy:"1f446-1f3fd",shortnames:[],category:"people"},":point_up_2_tone4:":{uc_base:"1f446-1f3fe",uc_output:"1f446-1f3fe",uc_match:"1f446-1f3fe",uc_greedy:"1f446-1f3fe",shortnames:[],category:"people"},":point_up_2_tone5:":{uc_base:"1f446-1f3ff",uc_output:"1f446-1f3ff",uc_match:"1f446-1f3ff",uc_greedy:"1f446-1f3ff",shortnames:[],category:"people"},":police_officer_tone1:":{uc_base:"1f46e-1f3fb",uc_output:"1f46e-1f3fb",uc_match:"1f46e-1f3fb",uc_greedy:"1f46e-1f3fb",shortnames:[":cop_tone1:"],category:"people"},":police_officer_tone2:":{uc_base:"1f46e-1f3fc",uc_output:"1f46e-1f3fc",uc_match:"1f46e-1f3fc",uc_greedy:"1f46e-1f3fc",shortnames:[":cop_tone2:"],category:"people"},":police_officer_tone3:":{uc_base:"1f46e-1f3fd",uc_output:"1f46e-1f3fd",uc_match:"1f46e-1f3fd",uc_greedy:"1f46e-1f3fd",shortnames:[":cop_tone3:"],category:"people"},":police_officer_tone4:":{uc_base:"1f46e-1f3fe",uc_output:"1f46e-1f3fe",uc_match:"1f46e-1f3fe",uc_greedy:"1f46e-1f3fe",shortnames:[":cop_tone4:"],category:"people"},":police_officer_tone5:":{uc_base:"1f46e-1f3ff",uc_output:"1f46e-1f3ff",uc_match:"1f46e-1f3ff",uc_greedy:"1f46e-1f3ff",shortnames:[":cop_tone5:"],category:"people"},":pray_tone1:":{uc_base:"1f64f-1f3fb",uc_output:"1f64f-1f3fb",uc_match:"1f64f-1f3fb",uc_greedy:"1f64f-1f3fb",shortnames:[],category:"people"},":pray_tone2:":{uc_base:"1f64f-1f3fc",uc_output:"1f64f-1f3fc",uc_match:"1f64f-1f3fc",uc_greedy:"1f64f-1f3fc",shortnames:[],category:"people"},":pray_tone3:":{uc_base:"1f64f-1f3fd",uc_output:"1f64f-1f3fd",uc_match:"1f64f-1f3fd",uc_greedy:"1f64f-1f3fd",shortnames:[],category:"people"},":pray_tone4:":{uc_base:"1f64f-1f3fe",uc_output:"1f64f-1f3fe",uc_match:"1f64f-1f3fe",uc_greedy:"1f64f-1f3fe",shortnames:[],category:"people"},":pray_tone5:":{uc_base:"1f64f-1f3ff",uc_output:"1f64f-1f3ff",uc_match:"1f64f-1f3ff",uc_greedy:"1f64f-1f3ff",shortnames:[],category:"people"},":pregnant_woman_tone1:":{uc_base:"1f930-1f3fb",uc_output:"1f930-1f3fb",uc_match:"1f930-1f3fb",uc_greedy:"1f930-1f3fb",shortnames:[":expecting_woman_tone1:"],category:"people"},":pregnant_woman_tone2:":{uc_base:"1f930-1f3fc",uc_output:"1f930-1f3fc",uc_match:"1f930-1f3fc",uc_greedy:"1f930-1f3fc",shortnames:[":expecting_woman_tone2:"],category:"people"},":pregnant_woman_tone3:":{uc_base:"1f930-1f3fd",uc_output:"1f930-1f3fd",uc_match:"1f930-1f3fd",uc_greedy:"1f930-1f3fd",shortnames:[":expecting_woman_tone3:"],category:"people"},":pregnant_woman_tone4:":{uc_base:"1f930-1f3fe",uc_output:"1f930-1f3fe",uc_match:"1f930-1f3fe",uc_greedy:"1f930-1f3fe",shortnames:[":expecting_woman_tone4:"],category:"people"},":pregnant_woman_tone5:":{uc_base:"1f930-1f3ff",uc_output:"1f930-1f3ff",uc_match:"1f930-1f3ff",uc_greedy:"1f930-1f3ff",shortnames:[":expecting_woman_tone5:"],category:"people"},":prince_tone1:":{uc_base:"1f934-1f3fb",uc_output:"1f934-1f3fb",uc_match:"1f934-1f3fb",uc_greedy:"1f934-1f3fb",shortnames:[],category:"people"},":prince_tone2:":{uc_base:"1f934-1f3fc",uc_output:"1f934-1f3fc",uc_match:"1f934-1f3fc",uc_greedy:"1f934-1f3fc",shortnames:[],category:"people"},":prince_tone3:":{uc_base:"1f934-1f3fd",uc_output:"1f934-1f3fd",uc_match:"1f934-1f3fd",uc_greedy:"1f934-1f3fd",shortnames:[],category:"people"},":prince_tone4:":{uc_base:"1f934-1f3fe",uc_output:"1f934-1f3fe",uc_match:"1f934-1f3fe",uc_greedy:"1f934-1f3fe",shortnames:[],category:"people"},":prince_tone5:":{uc_base:"1f934-1f3ff",uc_output:"1f934-1f3ff",uc_match:"1f934-1f3ff",uc_greedy:"1f934-1f3ff",shortnames:[],category:"people"},":princess_tone1:":{uc_base:"1f478-1f3fb",uc_output:"1f478-1f3fb",uc_match:"1f478-1f3fb",uc_greedy:"1f478-1f3fb",shortnames:[],category:"people"},":princess_tone2:":{uc_base:"1f478-1f3fc",uc_output:"1f478-1f3fc",uc_match:"1f478-1f3fc",uc_greedy:"1f478-1f3fc",shortnames:[],category:"people"},":princess_tone3:":{uc_base:"1f478-1f3fd",uc_output:"1f478-1f3fd",uc_match:"1f478-1f3fd",uc_greedy:"1f478-1f3fd",shortnames:[],category:"people"},":princess_tone4:":{uc_base:"1f478-1f3fe",uc_output:"1f478-1f3fe",uc_match:"1f478-1f3fe",uc_greedy:"1f478-1f3fe",shortnames:[],category:"people"},":princess_tone5:":{uc_base:"1f478-1f3ff",uc_output:"1f478-1f3ff",uc_match:"1f478-1f3ff",uc_greedy:"1f478-1f3ff",shortnames:[],category:"people"},":punch_tone1:":{uc_base:"1f44a-1f3fb",uc_output:"1f44a-1f3fb",uc_match:"1f44a-1f3fb",uc_greedy:"1f44a-1f3fb",shortnames:[],category:"people"},":punch_tone2:":{uc_base:"1f44a-1f3fc",uc_output:"1f44a-1f3fc",uc_match:"1f44a-1f3fc",uc_greedy:"1f44a-1f3fc",shortnames:[],category:"people"},":punch_tone3:":{uc_base:"1f44a-1f3fd",uc_output:"1f44a-1f3fd",uc_match:"1f44a-1f3fd",uc_greedy:"1f44a-1f3fd",shortnames:[],category:"people"},":punch_tone4:":{uc_base:"1f44a-1f3fe",uc_output:"1f44a-1f3fe",uc_match:"1f44a-1f3fe",uc_greedy:"1f44a-1f3fe",shortnames:[],category:"people"},":punch_tone5:":{uc_base:"1f44a-1f3ff",uc_output:"1f44a-1f3ff",uc_match:"1f44a-1f3ff",uc_greedy:"1f44a-1f3ff",shortnames:[],category:"people"},":raised_back_of_hand_tone1:":{uc_base:"1f91a-1f3fb",uc_output:"1f91a-1f3fb",uc_match:"1f91a-1f3fb",uc_greedy:"1f91a-1f3fb",shortnames:[":back_of_hand_tone1:"],category:"people"},":raised_back_of_hand_tone2:":{uc_base:"1f91a-1f3fc",uc_output:"1f91a-1f3fc",uc_match:"1f91a-1f3fc",uc_greedy:"1f91a-1f3fc",shortnames:[":back_of_hand_tone2:"],category:"people"},":raised_back_of_hand_tone3:":{uc_base:"1f91a-1f3fd",uc_output:"1f91a-1f3fd",uc_match:"1f91a-1f3fd",uc_greedy:"1f91a-1f3fd",shortnames:[":back_of_hand_tone3:"],category:"people"},":raised_back_of_hand_tone4:":{uc_base:"1f91a-1f3fe",uc_output:"1f91a-1f3fe",uc_match:"1f91a-1f3fe",uc_greedy:"1f91a-1f3fe",shortnames:[":back_of_hand_tone4:"],category:"people"},":raised_back_of_hand_tone5:":{uc_base:"1f91a-1f3ff",uc_output:"1f91a-1f3ff",uc_match:"1f91a-1f3ff",uc_greedy:"1f91a-1f3ff",shortnames:[":back_of_hand_tone5:"],category:"people"},":raised_hands_tone1:":{uc_base:"1f64c-1f3fb",uc_output:"1f64c-1f3fb",uc_match:"1f64c-1f3fb",uc_greedy:"1f64c-1f3fb",shortnames:[],category:"people"},":raised_hands_tone2:":{uc_base:"1f64c-1f3fc",uc_output:"1f64c-1f3fc",uc_match:"1f64c-1f3fc",uc_greedy:"1f64c-1f3fc",shortnames:[],category:"people"},":raised_hands_tone3:":{uc_base:"1f64c-1f3fd",uc_output:"1f64c-1f3fd",uc_match:"1f64c-1f3fd",uc_greedy:"1f64c-1f3fd",shortnames:[],category:"people"},":raised_hands_tone4:":{uc_base:"1f64c-1f3fe",uc_output:"1f64c-1f3fe",uc_match:"1f64c-1f3fe",uc_greedy:"1f64c-1f3fe",shortnames:[],category:"people"},":raised_hands_tone5:":{uc_base:"1f64c-1f3ff",uc_output:"1f64c-1f3ff",uc_match:"1f64c-1f3ff",uc_greedy:"1f64c-1f3ff",shortnames:[],category:"people"},":right_facing_fist_tone1:":{uc_base:"1f91c-1f3fb",uc_output:"1f91c-1f3fb",uc_match:"1f91c-1f3fb",uc_greedy:"1f91c-1f3fb",shortnames:[":right_fist_tone1:"],category:"people"},":right_facing_fist_tone2:":{uc_base:"1f91c-1f3fc",uc_output:"1f91c-1f3fc",uc_match:"1f91c-1f3fc",uc_greedy:"1f91c-1f3fc",shortnames:[":right_fist_tone2:"],category:"people"},":right_facing_fist_tone3:":{uc_base:"1f91c-1f3fd",uc_output:"1f91c-1f3fd",uc_match:"1f91c-1f3fd",uc_greedy:"1f91c-1f3fd",shortnames:[":right_fist_tone3:"],category:"people"},":right_facing_fist_tone4:":{uc_base:"1f91c-1f3fe",uc_output:"1f91c-1f3fe",uc_match:"1f91c-1f3fe",uc_greedy:"1f91c-1f3fe",shortnames:[":right_fist_tone4:"],category:"people"},":right_facing_fist_tone5:":{uc_base:"1f91c-1f3ff",uc_output:"1f91c-1f3ff",uc_match:"1f91c-1f3ff",uc_greedy:"1f91c-1f3ff",shortnames:[":right_fist_tone5:"],category:"people"},":santa_tone1:":{uc_base:"1f385-1f3fb",uc_output:"1f385-1f3fb",uc_match:"1f385-1f3fb",uc_greedy:"1f385-1f3fb",shortnames:[],category:"people"},":santa_tone2:":{uc_base:"1f385-1f3fc",uc_output:"1f385-1f3fc",uc_match:"1f385-1f3fc",uc_greedy:"1f385-1f3fc",shortnames:[],category:"people"},":santa_tone3:":{uc_base:"1f385-1f3fd",uc_output:"1f385-1f3fd",uc_match:"1f385-1f3fd",uc_greedy:"1f385-1f3fd",shortnames:[],category:"people"},":santa_tone4:":{uc_base:"1f385-1f3fe",uc_output:"1f385-1f3fe",uc_match:"1f385-1f3fe",uc_greedy:"1f385-1f3fe",shortnames:[],category:"people"},":santa_tone5:":{uc_base:"1f385-1f3ff",uc_output:"1f385-1f3ff",uc_match:"1f385-1f3ff",uc_greedy:"1f385-1f3ff",shortnames:[],category:"people"},":selfie_tone1:":{uc_base:"1f933-1f3fb",uc_output:"1f933-1f3fb",uc_match:"1f933-1f3fb",uc_greedy:"1f933-1f3fb",shortnames:[],category:"people"},":selfie_tone2:":{uc_base:"1f933-1f3fc",uc_output:"1f933-1f3fc",uc_match:"1f933-1f3fc",uc_greedy:"1f933-1f3fc",shortnames:[],category:"people"},":selfie_tone3:":{uc_base:"1f933-1f3fd",uc_output:"1f933-1f3fd",uc_match:"1f933-1f3fd",uc_greedy:"1f933-1f3fd",shortnames:[],category:"people"},":selfie_tone4:":{uc_base:"1f933-1f3fe",uc_output:"1f933-1f3fe",uc_match:"1f933-1f3fe",uc_greedy:"1f933-1f3fe",shortnames:[],category:"people"},":selfie_tone5:":{uc_base:"1f933-1f3ff",uc_output:"1f933-1f3ff",uc_match:"1f933-1f3ff",uc_greedy:"1f933-1f3ff",shortnames:[],category:"people"},":snowboarder_tone1:":{uc_base:"1f3c2-1f3fb",uc_output:"1f3c2-1f3fb",uc_match:"1f3c2-1f3fb",uc_greedy:"1f3c2-1f3fb",shortnames:[":snowboarder_light_skin_tone:"],category:"activity"},":snowboarder_tone2:":{uc_base:"1f3c2-1f3fc",uc_output:"1f3c2-1f3fc",uc_match:"1f3c2-1f3fc",uc_greedy:"1f3c2-1f3fc",shortnames:[":snowboarder_medium_light_skin_tone:"],category:"activity"},":snowboarder_tone3:":{uc_base:"1f3c2-1f3fd",uc_output:"1f3c2-1f3fd",uc_match:"1f3c2-1f3fd",uc_greedy:"1f3c2-1f3fd",shortnames:[":snowboarder_medium_skin_tone:"],category:"activity"},":snowboarder_tone4:":{uc_base:"1f3c2-1f3fe",uc_output:"1f3c2-1f3fe",uc_match:"1f3c2-1f3fe",uc_greedy:"1f3c2-1f3fe",shortnames:[":snowboarder_medium_dark_skin_tone:"],category:"activity"},":snowboarder_tone5:":{uc_base:"1f3c2-1f3ff",uc_output:"1f3c2-1f3ff",uc_match:"1f3c2-1f3ff",uc_greedy:"1f3c2-1f3ff",shortnames:[":snowboarder_dark_skin_tone:"],category:"activity"},":thumbsdown_tone1:":{uc_base:"1f44e-1f3fb",uc_output:"1f44e-1f3fb",uc_match:"1f44e-1f3fb",uc_greedy:"1f44e-1f3fb",shortnames:[":-1_tone1:",":thumbdown_tone1:"],category:"people"},":thumbsdown_tone2:":{uc_base:"1f44e-1f3fc",uc_output:"1f44e-1f3fc",uc_match:"1f44e-1f3fc",uc_greedy:"1f44e-1f3fc",shortnames:[":-1_tone2:",":thumbdown_tone2:"],category:"people"},":thumbsdown_tone3:":{uc_base:"1f44e-1f3fd",uc_output:"1f44e-1f3fd",uc_match:"1f44e-1f3fd",uc_greedy:"1f44e-1f3fd",shortnames:[":-1_tone3:",":thumbdown_tone3:"],category:"people"},":thumbsdown_tone4:":{uc_base:"1f44e-1f3fe",uc_output:"1f44e-1f3fe",uc_match:"1f44e-1f3fe",uc_greedy:"1f44e-1f3fe",shortnames:[":-1_tone4:",":thumbdown_tone4:"],category:"people"},":thumbsdown_tone5:":{uc_base:"1f44e-1f3ff",uc_output:"1f44e-1f3ff",uc_match:"1f44e-1f3ff",uc_greedy:"1f44e-1f3ff",shortnames:[":-1_tone5:",":thumbdown_tone5:"],category:"people"},":thumbsup_tone1:":{uc_base:"1f44d-1f3fb",uc_output:"1f44d-1f3fb",uc_match:"1f44d-1f3fb",uc_greedy:"1f44d-1f3fb",shortnames:[":+1_tone1:",":thumbup_tone1:"],category:"people"},":thumbsup_tone2:":{uc_base:"1f44d-1f3fc",uc_output:"1f44d-1f3fc",uc_match:"1f44d-1f3fc",uc_greedy:"1f44d-1f3fc",shortnames:[":+1_tone2:",":thumbup_tone2:"],category:"people"},":thumbsup_tone3:":{uc_base:"1f44d-1f3fd",uc_output:"1f44d-1f3fd",uc_match:"1f44d-1f3fd",uc_greedy:"1f44d-1f3fd",shortnames:[":+1_tone3:",":thumbup_tone3:"],category:"people"},":thumbsup_tone4:":{uc_base:"1f44d-1f3fe",uc_output:"1f44d-1f3fe",uc_match:"1f44d-1f3fe",uc_greedy:"1f44d-1f3fe",shortnames:[":+1_tone4:",":thumbup_tone4:"],category:"people"},":thumbsup_tone5:":{uc_base:"1f44d-1f3ff",uc_output:"1f44d-1f3ff",uc_match:"1f44d-1f3ff",uc_greedy:"1f44d-1f3ff",shortnames:[":+1_tone5:",":thumbup_tone5:"],category:"people"},":united_nations:":{uc_base:"1f1fa-1f1f3",uc_output:"1f1fa-1f1f3",uc_match:"1f1fa-1f1f3",uc_greedy:"1f1fa-1f1f3",shortnames:[],category:"flags"},":vampire_tone1:":{uc_base:"1f9db-1f3fb",uc_output:"1f9db-1f3fb",uc_match:"1f9db-1f3fb",uc_greedy:"1f9db-1f3fb",shortnames:[":vampire_light_skin_tone:"],category:"people"},":vampire_tone2:":{uc_base:"1f9db-1f3fc",uc_output:"1f9db-1f3fc",uc_match:"1f9db-1f3fc",uc_greedy:"1f9db-1f3fc",shortnames:[":vampire_medium_light_skin_tone:"],category:"people"},":vampire_tone3:":{uc_base:"1f9db-1f3fd",uc_output:"1f9db-1f3fd",uc_match:"1f9db-1f3fd",uc_greedy:"1f9db-1f3fd",shortnames:[":vampire_medium_skin_tone:"],category:"people"},":vampire_tone4:":{uc_base:"1f9db-1f3fe",uc_output:"1f9db-1f3fe",uc_match:"1f9db-1f3fe",uc_greedy:"1f9db-1f3fe",shortnames:[":vampire_medium_dark_skin_tone:"],category:"people"},":vampire_tone5:":{uc_base:"1f9db-1f3ff",uc_output:"1f9db-1f3ff",uc_match:"1f9db-1f3ff",uc_greedy:"1f9db-1f3ff",shortnames:[":vampire_dark_skin_tone:"],category:"people"},":vulcan_tone1:":{uc_base:"1f596-1f3fb",uc_output:"1f596-1f3fb",uc_match:"1f596-1f3fb",uc_greedy:"1f596-1f3fb",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone1:"],category:"people"},":vulcan_tone2:":{uc_base:"1f596-1f3fc",uc_output:"1f596-1f3fc",uc_match:"1f596-1f3fc",uc_greedy:"1f596-1f3fc",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone2:"],category:"people"},":vulcan_tone3:":{uc_base:"1f596-1f3fd",uc_output:"1f596-1f3fd",uc_match:"1f596-1f3fd",uc_greedy:"1f596-1f3fd",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone3:"],category:"people"},":vulcan_tone4:":{uc_base:"1f596-1f3fe",uc_output:"1f596-1f3fe",uc_match:"1f596-1f3fe",uc_greedy:"1f596-1f3fe",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone4:"],category:"people"},":vulcan_tone5:":{uc_base:"1f596-1f3ff",uc_output:"1f596-1f3ff",uc_match:"1f596-1f3ff",uc_greedy:"1f596-1f3ff",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers_tone5:"],category:"people"},":wave_tone1:":{uc_base:"1f44b-1f3fb",uc_output:"1f44b-1f3fb",uc_match:"1f44b-1f3fb",uc_greedy:"1f44b-1f3fb",shortnames:[],category:"people"},":wave_tone2:":{uc_base:"1f44b-1f3fc",uc_output:"1f44b-1f3fc",uc_match:"1f44b-1f3fc",uc_greedy:"1f44b-1f3fc",shortnames:[],category:"people"},":wave_tone3:":{uc_base:"1f44b-1f3fd",uc_output:"1f44b-1f3fd",uc_match:"1f44b-1f3fd",uc_greedy:"1f44b-1f3fd",shortnames:[],category:"people"},":wave_tone4:":{uc_base:"1f44b-1f3fe",uc_output:"1f44b-1f3fe",uc_match:"1f44b-1f3fe",uc_greedy:"1f44b-1f3fe",shortnames:[],category:"people"},":wave_tone5:":{uc_base:"1f44b-1f3ff",uc_output:"1f44b-1f3ff",uc_match:"1f44b-1f3ff",uc_greedy:"1f44b-1f3ff",shortnames:[],category:"people"},":woman_tone1:":{uc_base:"1f469-1f3fb",uc_output:"1f469-1f3fb",uc_match:"1f469-1f3fb",uc_greedy:"1f469-1f3fb",shortnames:[],category:"people"},":woman_tone2:":{uc_base:"1f469-1f3fc",uc_output:"1f469-1f3fc",uc_match:"1f469-1f3fc",uc_greedy:"1f469-1f3fc",shortnames:[],category:"people"},":woman_tone3:":{uc_base:"1f469-1f3fd",uc_output:"1f469-1f3fd",uc_match:"1f469-1f3fd",uc_greedy:"1f469-1f3fd",shortnames:[],category:"people"},":woman_tone4:":{uc_base:"1f469-1f3fe",uc_output:"1f469-1f3fe",uc_match:"1f469-1f3fe",uc_greedy:"1f469-1f3fe",shortnames:[],category:"people"},":woman_tone5:":{uc_base:"1f469-1f3ff",uc_output:"1f469-1f3ff",uc_match:"1f469-1f3ff",uc_greedy:"1f469-1f3ff",shortnames:[],category:"people"},":woman_with_headscarf_tone1:":{uc_base:"1f9d5-1f3fb",uc_output:"1f9d5-1f3fb",uc_match:"1f9d5-1f3fb",uc_greedy:"1f9d5-1f3fb",shortnames:[":woman_with_headscarf_light_skin_tone:"],category:"people"},":woman_with_headscarf_tone2:":{uc_base:"1f9d5-1f3fc",uc_output:"1f9d5-1f3fc",uc_match:"1f9d5-1f3fc",uc_greedy:"1f9d5-1f3fc",shortnames:[":woman_with_headscarf_medium_light_skin_tone:"],category:"people"},":woman_with_headscarf_tone3:":{uc_base:"1f9d5-1f3fd",uc_output:"1f9d5-1f3fd",uc_match:"1f9d5-1f3fd",uc_greedy:"1f9d5-1f3fd",shortnames:[":woman_with_headscarf_medium_skin_tone:"],category:"people"},":woman_with_headscarf_tone4:":{uc_base:"1f9d5-1f3fe",uc_output:"1f9d5-1f3fe",uc_match:"1f9d5-1f3fe",uc_greedy:"1f9d5-1f3fe",shortnames:[":woman_with_headscarf_medium_dark_skin_tone:"],category:"people"},":woman_with_headscarf_tone5:":{uc_base:"1f9d5-1f3ff",uc_output:"1f9d5-1f3ff",uc_match:"1f9d5-1f3ff",uc_greedy:"1f9d5-1f3ff",shortnames:[":woman_with_headscarf_dark_skin_tone:"],category:"people"},":fist_tone1:":{uc_base:"270a-1f3fb",uc_output:"270a-1f3fb",uc_match:"270a-1f3fb",uc_greedy:"270a-1f3fb",shortnames:[],category:"people"},":fist_tone2:":{uc_base:"270a-1f3fc",uc_output:"270a-1f3fc",uc_match:"270a-1f3fc",uc_greedy:"270a-1f3fc",shortnames:[],category:"people"},":fist_tone3:":{uc_base:"270a-1f3fd",uc_output:"270a-1f3fd",uc_match:"270a-1f3fd",uc_greedy:"270a-1f3fd",shortnames:[],category:"people"},":fist_tone4:":{uc_base:"270a-1f3fe",uc_output:"270a-1f3fe",uc_match:"270a-1f3fe",uc_greedy:"270a-1f3fe",shortnames:[],category:"people"},":fist_tone5:":{uc_base:"270a-1f3ff",uc_output:"270a-1f3ff",uc_match:"270a-1f3ff",uc_greedy:"270a-1f3ff",shortnames:[],category:"people"},":person_bouncing_ball_tone1:":{uc_base:"26f9-1f3fb",uc_output:"26f9-1f3fb",uc_match:"26f9-fe0f-1f3fb",uc_greedy:"26f9-fe0f-1f3fb",shortnames:[":basketball_player_tone1:",":person_with_ball_tone1:"],category:"activity"},":person_bouncing_ball_tone2:":{uc_base:"26f9-1f3fc",uc_output:"26f9-1f3fc",uc_match:"26f9-fe0f-1f3fc",uc_greedy:"26f9-fe0f-1f3fc",shortnames:[":basketball_player_tone2:",":person_with_ball_tone2:"],category:"activity"},":person_bouncing_ball_tone3:":{uc_base:"26f9-1f3fd",uc_output:"26f9-1f3fd",uc_match:"26f9-fe0f-1f3fd",uc_greedy:"26f9-fe0f-1f3fd",shortnames:[":basketball_player_tone3:",":person_with_ball_tone3:"],category:"activity"},":person_bouncing_ball_tone4:":{uc_base:"26f9-1f3fe",uc_output:"26f9-1f3fe",uc_match:"26f9-fe0f-1f3fe",uc_greedy:"26f9-fe0f-1f3fe",shortnames:[":basketball_player_tone4:",":person_with_ball_tone4:"],category:"activity"},":person_bouncing_ball_tone5:":{uc_base:"26f9-1f3ff",uc_output:"26f9-1f3ff",uc_match:"26f9-fe0f-1f3ff",uc_greedy:"26f9-fe0f-1f3ff",shortnames:[":basketball_player_tone5:",":person_with_ball_tone5:"],category:"activity"},":point_up_tone1:":{uc_base:"261d-1f3fb",uc_output:"261d-1f3fb",uc_match:"261d-fe0f-1f3fb",uc_greedy:"261d-fe0f-1f3fb",shortnames:[],category:"people"},":point_up_tone2:":{uc_base:"261d-1f3fc",uc_output:"261d-1f3fc",uc_match:"261d-fe0f-1f3fc",uc_greedy:"261d-fe0f-1f3fc",shortnames:[],category:"people"},":point_up_tone3:":{uc_base:"261d-1f3fd",uc_output:"261d-1f3fd",uc_match:"261d-fe0f-1f3fd",uc_greedy:"261d-fe0f-1f3fd",shortnames:[],category:"people"},":point_up_tone4:":{uc_base:"261d-1f3fe",uc_output:"261d-1f3fe",uc_match:"261d-fe0f-1f3fe",uc_greedy:"261d-fe0f-1f3fe",shortnames:[],category:"people"},":point_up_tone5:":{uc_base:"261d-1f3ff",uc_output:"261d-1f3ff",uc_match:"261d-fe0f-1f3ff",uc_greedy:"261d-fe0f-1f3ff",shortnames:[],category:"people"},":raised_hand_tone1:":{uc_base:"270b-1f3fb",uc_output:"270b-1f3fb",uc_match:"270b-1f3fb",uc_greedy:"270b-1f3fb",shortnames:[],category:"people"},":raised_hand_tone2:":{uc_base:"270b-1f3fc",uc_output:"270b-1f3fc",uc_match:"270b-1f3fc",uc_greedy:"270b-1f3fc",shortnames:[],category:"people"},":raised_hand_tone3:":{uc_base:"270b-1f3fd",uc_output:"270b-1f3fd",uc_match:"270b-1f3fd",uc_greedy:"270b-1f3fd",shortnames:[],category:"people"},":raised_hand_tone4:":{uc_base:"270b-1f3fe",uc_output:"270b-1f3fe",uc_match:"270b-1f3fe",uc_greedy:"270b-1f3fe",shortnames:[],category:"people"},":raised_hand_tone5:":{uc_base:"270b-1f3ff",uc_output:"270b-1f3ff",uc_match:"270b-1f3ff",uc_greedy:"270b-1f3ff",shortnames:[],category:"people"},":v_tone1:":{uc_base:"270c-1f3fb",uc_output:"270c-1f3fb",uc_match:"270c-fe0f-1f3fb",uc_greedy:"270c-fe0f-1f3fb",shortnames:[],category:"people"},":v_tone2:":{uc_base:"270c-1f3fc",uc_output:"270c-1f3fc",uc_match:"270c-fe0f-1f3fc",uc_greedy:"270c-fe0f-1f3fc",shortnames:[],category:"people"},":v_tone3:":{uc_base:"270c-1f3fd",uc_output:"270c-1f3fd",uc_match:"270c-fe0f-1f3fd",uc_greedy:"270c-fe0f-1f3fd",shortnames:[],category:"people"},":v_tone4:":{uc_base:"270c-1f3fe",uc_output:"270c-1f3fe",uc_match:"270c-fe0f-1f3fe",uc_greedy:"270c-fe0f-1f3fe",shortnames:[],category:"people"},":v_tone5:":{uc_base:"270c-1f3ff",uc_output:"270c-1f3ff",uc_match:"270c-fe0f-1f3ff",uc_greedy:"270c-fe0f-1f3ff",shortnames:[],category:"people"},":writing_hand_tone1:":{uc_base:"270d-1f3fb",uc_output:"270d-1f3fb",uc_match:"270d-fe0f-1f3fb",uc_greedy:"270d-fe0f-1f3fb",shortnames:[],category:"people"},":writing_hand_tone2:":{uc_base:"270d-1f3fc",uc_output:"270d-1f3fc",uc_match:"270d-fe0f-1f3fc",uc_greedy:"270d-fe0f-1f3fc",shortnames:[],category:"people"},":writing_hand_tone3:":{uc_base:"270d-1f3fd",uc_output:"270d-1f3fd",uc_match:"270d-fe0f-1f3fd",uc_greedy:"270d-fe0f-1f3fd",shortnames:[],category:"people"},":writing_hand_tone4:":{uc_base:"270d-1f3fe",uc_output:"270d-1f3fe",uc_match:"270d-fe0f-1f3fe",uc_greedy:"270d-fe0f-1f3fe",shortnames:[],category:"people"},":writing_hand_tone5:":{uc_base:"270d-1f3ff",uc_output:"270d-1f3ff",uc_match:"270d-fe0f-1f3ff",uc_greedy:"270d-fe0f-1f3ff",shortnames:[],category:"people"},":100:":{uc_base:"1f4af",uc_output:"1f4af",uc_match:"1f4af",uc_greedy:"1f4af",shortnames:[],category:"symbols"},":1234:":{uc_base:"1f522",uc_output:"1f522",uc_match:"1f522",uc_greedy:"1f522",shortnames:[],category:"symbols"},":8ball:":{uc_base:"1f3b1",uc_output:"1f3b1",uc_match:"1f3b1",uc_greedy:"1f3b1",shortnames:[],category:"activity"},":a:":{uc_base:"1f170",uc_output:"1f170",uc_match:"1f170-fe0f",uc_greedy:"1f170-fe0f",shortnames:[],category:"symbols"},":ab:":{uc_base:"1f18e",uc_output:"1f18e",uc_match:"1f18e",uc_greedy:"1f18e",shortnames:[],category:"symbols"},":abc:":{uc_base:"1f524",uc_output:"1f524",uc_match:"1f524",uc_greedy:"1f524",shortnames:[],category:"symbols"},":abcd:":{uc_base:"1f521",uc_output:"1f521",uc_match:"1f521",uc_greedy:"1f521",shortnames:[],category:"symbols"},":accept:":{uc_base:"1f251",uc_output:"1f251",uc_match:"1f251",uc_greedy:"1f251",shortnames:[],category:"symbols"},":adult:":{uc_base:"1f9d1",uc_output:"1f9d1",uc_match:"1f9d1",uc_greedy:"1f9d1",shortnames:[],category:"people"},":aerial_tramway:":{uc_base:"1f6a1",uc_output:"1f6a1",uc_match:"1f6a1",uc_greedy:"1f6a1",shortnames:[],category:"travel"},":airplane_arriving:":{uc_base:"1f6ec",uc_output:"1f6ec",uc_match:"1f6ec",uc_greedy:"1f6ec",shortnames:[],category:"travel"},":airplane_departure:":{uc_base:"1f6eb",uc_output:"1f6eb",uc_match:"1f6eb",uc_greedy:"1f6eb",shortnames:[],category:"travel"},":airplane_small:":{uc_base:"1f6e9",uc_output:"1f6e9",uc_match:"1f6e9-fe0f",uc_greedy:"1f6e9-fe0f",shortnames:[":small_airplane:"],category:"travel"},":alien:":{uc_base:"1f47d",uc_output:"1f47d",uc_match:"1f47d-fe0f",uc_greedy:"1f47d-fe0f",shortnames:[],category:"people"},":ambulance:":{uc_base:"1f691",uc_output:"1f691",uc_match:"1f691-fe0f",uc_greedy:"1f691-fe0f",shortnames:[],category:"travel"},":amphora:":{uc_base:"1f3fa",uc_output:"1f3fa",uc_match:"1f3fa",uc_greedy:"1f3fa",shortnames:[],category:"objects"},":angel:":{uc_base:"1f47c",uc_output:"1f47c",uc_match:"1f47c",uc_greedy:"1f47c",shortnames:[],category:"people"},":anger:":{uc_base:"1f4a2",uc_output:"1f4a2",uc_match:"1f4a2",uc_greedy:"1f4a2",shortnames:[],category:"symbols"},":anger_right:":{uc_base:"1f5ef",uc_output:"1f5ef",uc_match:"1f5ef-fe0f",uc_greedy:"1f5ef-fe0f",shortnames:[":right_anger_bubble:"],category:"symbols"},":angry:":{uc_base:"1f620",uc_output:"1f620",uc_match:"1f620",uc_greedy:"1f620",shortnames:[],category:"people"},":anguished:":{uc_base:"1f627",uc_output:"1f627",uc_match:"1f627",uc_greedy:"1f627",shortnames:[],category:"people"},":ant:":{uc_base:"1f41c",uc_output:"1f41c",uc_match:"1f41c",uc_greedy:"1f41c",shortnames:[],category:"nature"},":apple:":{uc_base:"1f34e",uc_output:"1f34e",uc_match:"1f34e",uc_greedy:"1f34e",shortnames:[],category:"food"},":arrow_down_small:":{uc_base:"1f53d",uc_output:"1f53d",uc_match:"1f53d",uc_greedy:"1f53d",shortnames:[],category:"symbols"},":arrow_up_small:":{uc_base:"1f53c",uc_output:"1f53c",uc_match:"1f53c",uc_greedy:"1f53c",shortnames:[],category:"symbols"},":arrows_clockwise:":{uc_base:"1f503",uc_output:"1f503",uc_match:"1f503",uc_greedy:"1f503",shortnames:[],category:"symbols"},":arrows_counterclockwise:":{uc_base:"1f504",uc_output:"1f504",uc_match:"1f504",uc_greedy:"1f504",shortnames:[],category:"symbols"},":art:":{uc_base:"1f3a8",uc_output:"1f3a8",uc_match:"1f3a8",uc_greedy:"1f3a8",shortnames:[],category:"activity"},":articulated_lorry:":{uc_base:"1f69b",uc_output:"1f69b",uc_match:"1f69b",uc_greedy:"1f69b",shortnames:[],category:"travel"},":astonished:":{uc_base:"1f632",uc_output:"1f632",uc_match:"1f632",uc_greedy:"1f632",shortnames:[],category:"people"},":athletic_shoe:":{uc_base:"1f45f",uc_output:"1f45f",uc_match:"1f45f",uc_greedy:"1f45f",shortnames:[],category:"people"},":atm:":{uc_base:"1f3e7",uc_output:"1f3e7",uc_match:"1f3e7",uc_greedy:"1f3e7",shortnames:[],category:"symbols"},":avocado:":{uc_base:"1f951",uc_output:"1f951",uc_match:"1f951",uc_greedy:"1f951",shortnames:[],category:"food"},":b:":{uc_base:"1f171",uc_output:"1f171",uc_match:"1f171-fe0f",uc_greedy:"1f171-fe0f",shortnames:[],category:"symbols"},":baby:":{uc_base:"1f476",uc_output:"1f476",uc_match:"1f476",uc_greedy:"1f476",shortnames:[],category:"people"},":baby_bottle:":{uc_base:"1f37c",uc_output:"1f37c",uc_match:"1f37c",uc_greedy:"1f37c",shortnames:[],category:"food"},":baby_chick:":{uc_base:"1f424",uc_output:"1f424",uc_match:"1f424",uc_greedy:"1f424",shortnames:[],category:"nature"},":baby_symbol:":{uc_base:"1f6bc",uc_output:"1f6bc",uc_match:"1f6bc-fe0f",uc_greedy:"1f6bc-fe0f",shortnames:[],category:"symbols"},":back:":{uc_base:"1f519",uc_output:"1f519",uc_match:"1f519",uc_greedy:"1f519",shortnames:[],category:"symbols"},":bacon:":{uc_base:"1f953",uc_output:"1f953",uc_match:"1f953",uc_greedy:"1f953",shortnames:[],category:"food"},":badminton:":{uc_base:"1f3f8",uc_output:"1f3f8",uc_match:"1f3f8",uc_greedy:"1f3f8",shortnames:[],category:"activity"},":baggage_claim:":{uc_base:"1f6c4",uc_output:"1f6c4",uc_match:"1f6c4",uc_greedy:"1f6c4",shortnames:[],category:"symbols"},":balloon:":{uc_base:"1f388",uc_output:"1f388",uc_match:"1f388",uc_greedy:"1f388",shortnames:[],category:"objects"},":ballot_box:":{uc_base:"1f5f3",uc_output:"1f5f3",uc_match:"1f5f3-fe0f",uc_greedy:"1f5f3-fe0f",shortnames:[":ballot_box_with_ballot:"],category:"objects"},":bamboo:":{uc_base:"1f38d",uc_output:"1f38d",uc_match:"1f38d",uc_greedy:"1f38d",shortnames:[],category:"nature"},":banana:":{uc_base:"1f34c",uc_output:"1f34c",uc_match:"1f34c",uc_greedy:"1f34c",shortnames:[],category:"food"},":bank:":{uc_base:"1f3e6",uc_output:"1f3e6",uc_match:"1f3e6",uc_greedy:"1f3e6",shortnames:[],category:"travel"},":bar_chart:":{uc_base:"1f4ca",uc_output:"1f4ca",uc_match:"1f4ca",uc_greedy:"1f4ca",shortnames:[],category:"objects"},":barber:":{uc_base:"1f488",uc_output:"1f488",uc_match:"1f488",uc_greedy:"1f488",shortnames:[],category:"objects"},":basketball:":{uc_base:"1f3c0",uc_output:"1f3c0",uc_match:"1f3c0",uc_greedy:"1f3c0",shortnames:[],category:"activity"},":bat:":{uc_base:"1f987",uc_output:"1f987",uc_match:"1f987",uc_greedy:"1f987",shortnames:[],category:"nature"},":bath:":{uc_base:"1f6c0",uc_output:"1f6c0",uc_match:"1f6c0",uc_greedy:"1f6c0",shortnames:[],category:"objects"},":bathtub:":{uc_base:"1f6c1",uc_output:"1f6c1",uc_match:"1f6c1",uc_greedy:"1f6c1",shortnames:[],category:"objects"},":battery:":{uc_base:"1f50b",uc_output:"1f50b",uc_match:"1f50b",uc_greedy:"1f50b",shortnames:[],category:"objects"},":beach:":{uc_base:"1f3d6",uc_output:"1f3d6",uc_match:"1f3d6-fe0f",uc_greedy:"1f3d6-fe0f",shortnames:[":beach_with_umbrella:"],category:"travel"},":bear:":{uc_base:"1f43b",uc_output:"1f43b",uc_match:"1f43b",uc_greedy:"1f43b",shortnames:[],category:"nature"},":bearded_person:":{uc_base:"1f9d4",uc_output:"1f9d4",uc_match:"1f9d4",uc_greedy:"1f9d4",shortnames:[],category:"people"},":bed:":{uc_base:"1f6cf",uc_output:"1f6cf",uc_match:"1f6cf-fe0f",uc_greedy:"1f6cf-fe0f",shortnames:[],category:"objects"},":bee:":{uc_base:"1f41d",uc_output:"1f41d",uc_match:"1f41d",uc_greedy:"1f41d",shortnames:[],category:"nature"},":beer:":{uc_base:"1f37a",uc_output:"1f37a",uc_match:"1f37a",uc_greedy:"1f37a",shortnames:[],category:"food"},":beers:":{uc_base:"1f37b",uc_output:"1f37b",uc_match:"1f37b",uc_greedy:"1f37b",shortnames:[],category:"food"},":beetle:":{uc_base:"1f41e",uc_output:"1f41e",uc_match:"1f41e",uc_greedy:"1f41e",shortnames:[],category:"nature"},":beginner:":{uc_base:"1f530",uc_output:"1f530",uc_match:"1f530",uc_greedy:"1f530",shortnames:[],category:"symbols"},":bell:":{uc_base:"1f514",uc_output:"1f514",uc_match:"1f514",uc_greedy:"1f514",shortnames:[],category:"symbols"},":bellhop:":{uc_base:"1f6ce",uc_output:"1f6ce",uc_match:"1f6ce-fe0f",uc_greedy:"1f6ce-fe0f",shortnames:[":bellhop_bell:"],category:"objects"},":bento:":{uc_base:"1f371",uc_output:"1f371",uc_match:"1f371",uc_greedy:"1f371",shortnames:[],category:"food"},":bike:":{uc_base:"1f6b2",uc_output:"1f6b2",uc_match:"1f6b2-fe0f",uc_greedy:"1f6b2-fe0f",shortnames:[],category:"travel"},":bikini:":{uc_base:"1f459",uc_output:"1f459",uc_match:"1f459",uc_greedy:"1f459",shortnames:[],category:"people"},":billed_cap:":{uc_base:"1f9e2",uc_output:"1f9e2",uc_match:"1f9e2",uc_greedy:"1f9e2",shortnames:[],category:"people"},":bird:":{uc_base:"1f426",uc_output:"1f426",uc_match:"1f426-fe0f",uc_greedy:"1f426-fe0f",shortnames:[],category:"nature"},":birthday:":{uc_base:"1f382",uc_output:"1f382",uc_match:"1f382",uc_greedy:"1f382",shortnames:[],category:"food"},":black_heart:":{uc_base:"1f5a4",uc_output:"1f5a4",uc_match:"1f5a4",uc_greedy:"1f5a4",shortnames:[],category:"symbols"},":black_joker:":{uc_base:"1f0cf",uc_output:"1f0cf",uc_match:"1f0cf",uc_greedy:"1f0cf",shortnames:[],category:"symbols"},":black_square_button:":{uc_base:"1f532",uc_output:"1f532",uc_match:"1f532",uc_greedy:"1f532",shortnames:[],category:"symbols"},":blond_haired_person:":{uc_base:"1f471",uc_output:"1f471",uc_match:"1f471",uc_greedy:"1f471",shortnames:[":person_with_blond_hair:"],category:"people"},":blossom:":{uc_base:"1f33c",uc_output:"1f33c",uc_match:"1f33c",uc_greedy:"1f33c",shortnames:[],category:"nature"},":blowfish:":{uc_base:"1f421",uc_output:"1f421",uc_match:"1f421",uc_greedy:"1f421",shortnames:[],category:"nature"},":blue_book:":{uc_base:"1f4d8",uc_output:"1f4d8",uc_match:"1f4d8",uc_greedy:"1f4d8",shortnames:[],category:"objects"},":blue_car:":{uc_base:"1f699",uc_output:"1f699",uc_match:"1f699",uc_greedy:"1f699",shortnames:[],category:"travel"},":blue_circle:":{uc_base:"1f535",uc_output:"1f535",uc_match:"1f535",uc_greedy:"1f535",shortnames:[],category:"symbols"},":blue_heart:":{uc_base:"1f499",uc_output:"1f499",uc_match:"1f499",uc_greedy:"1f499",shortnames:[],category:"symbols"},":blush:":{uc_base:"1f60a",uc_output:"1f60a",uc_match:"1f60a",uc_greedy:"1f60a",shortnames:[],category:"people"},":boar:":{uc_base:"1f417",uc_output:"1f417",uc_match:"1f417",uc_greedy:"1f417",shortnames:[],category:"nature"},":bomb:":{uc_base:"1f4a3",uc_output:"1f4a3",uc_match:"1f4a3-fe0f",uc_greedy:"1f4a3-fe0f",shortnames:[],category:"objects"},":book:":{uc_base:"1f4d6",uc_output:"1f4d6",uc_match:"1f4d6",uc_greedy:"1f4d6",shortnames:[],category:"objects"},":bookmark:":{uc_base:"1f516",uc_output:"1f516",uc_match:"1f516",uc_greedy:"1f516",shortnames:[],category:"objects"},":bookmark_tabs:":{uc_base:"1f4d1",uc_output:"1f4d1",uc_match:"1f4d1",uc_greedy:"1f4d1",shortnames:[],category:"objects"},":books:":{uc_base:"1f4da",uc_output:"1f4da",uc_match:"1f4da-fe0f",uc_greedy:"1f4da-fe0f",shortnames:[],category:"objects"},":boom:":{uc_base:"1f4a5",uc_output:"1f4a5",uc_match:"1f4a5",uc_greedy:"1f4a5",shortnames:[],category:"nature"},":boot:":{uc_base:"1f462",uc_output:"1f462",uc_match:"1f462",uc_greedy:"1f462",shortnames:[],category:"people"},":bouquet:":{uc_base:"1f490",uc_output:"1f490",uc_match:"1f490",uc_greedy:"1f490",shortnames:[],category:"nature"},":bow_and_arrow:":{uc_base:"1f3f9",uc_output:"1f3f9",uc_match:"1f3f9",uc_greedy:"1f3f9",shortnames:[":archery:"],category:"activity"},":bowl_with_spoon:":{uc_base:"1f963",uc_output:"1f963",uc_match:"1f963",uc_greedy:"1f963",shortnames:[],category:"food"},":bowling:":{uc_base:"1f3b3",uc_output:"1f3b3",uc_match:"1f3b3",uc_greedy:"1f3b3",shortnames:[],category:"activity"},":boxing_glove:":{uc_base:"1f94a",uc_output:"1f94a",uc_match:"1f94a",uc_greedy:"1f94a",shortnames:[":boxing_gloves:"],category:"activity"},":boy:":{uc_base:"1f466",uc_output:"1f466",uc_match:"1f466",uc_greedy:"1f466",shortnames:[],category:"people"},":brain:":{uc_base:"1f9e0",uc_output:"1f9e0",uc_match:"1f9e0",uc_greedy:"1f9e0",shortnames:[],category:"people"},":bread:":{uc_base:"1f35e",uc_output:"1f35e",uc_match:"1f35e",uc_greedy:"1f35e",shortnames:[],category:"food"},":breast_feeding:":{uc_base:"1f931",uc_output:"1f931",uc_match:"1f931",uc_greedy:"1f931",shortnames:[],category:"people"},":bride_with_veil:":{uc_base:"1f470",uc_output:"1f470",uc_match:"1f470",uc_greedy:"1f470",shortnames:[],category:"people"},":bridge_at_night:":{uc_base:"1f309",uc_output:"1f309",uc_match:"1f309",uc_greedy:"1f309",shortnames:[],category:"travel"},":briefcase:":{uc_base:"1f4bc",uc_output:"1f4bc",uc_match:"1f4bc",uc_greedy:"1f4bc",shortnames:[],category:"people"},":broccoli:":{uc_base:"1f966",uc_output:"1f966",uc_match:"1f966",uc_greedy:"1f966",shortnames:[],category:"food"},":broken_heart:":{uc_base:"1f494",uc_output:"1f494",uc_match:"1f494",uc_greedy:"1f494",shortnames:[],category:"symbols"},":bug:":{uc_base:"1f41b",uc_output:"1f41b",uc_match:"1f41b",uc_greedy:"1f41b",shortnames:[],category:"nature"},":bulb:":{uc_base:"1f4a1",uc_output:"1f4a1",uc_match:"1f4a1",uc_greedy:"1f4a1",shortnames:[],category:"objects"},":bullettrain_front:":{uc_base:"1f685",uc_output:"1f685",uc_match:"1f685",uc_greedy:"1f685",shortnames:[],category:"travel"},":bullettrain_side:":{uc_base:"1f684",uc_output:"1f684",uc_match:"1f684",uc_greedy:"1f684",shortnames:[],category:"travel"},":burrito:":{uc_base:"1f32f",uc_output:"1f32f",uc_match:"1f32f",uc_greedy:"1f32f",shortnames:[],category:"food"},":bus:":{uc_base:"1f68c",uc_output:"1f68c",uc_match:"1f68c",uc_greedy:"1f68c",shortnames:[],category:"travel"},":busstop:":{uc_base:"1f68f",uc_output:"1f68f",uc_match:"1f68f",uc_greedy:"1f68f",shortnames:[],category:"travel"},":bust_in_silhouette:":{uc_base:"1f464",uc_output:"1f464",uc_match:"1f464",uc_greedy:"1f464",shortnames:[],category:"people"},":busts_in_silhouette:":{uc_base:"1f465",uc_output:"1f465",uc_match:"1f465",uc_greedy:"1f465",shortnames:[],category:"people"},":butterfly:":{uc_base:"1f98b",uc_output:"1f98b",uc_match:"1f98b",uc_greedy:"1f98b",shortnames:[],category:"nature"},":cactus:":{uc_base:"1f335",uc_output:"1f335",uc_match:"1f335",uc_greedy:"1f335",shortnames:[],category:"nature"},":cake:":{uc_base:"1f370",uc_output:"1f370",uc_match:"1f370",uc_greedy:"1f370",shortnames:[],category:"food"},":calendar:":{uc_base:"1f4c6",uc_output:"1f4c6",uc_match:"1f4c6",uc_greedy:"1f4c6",shortnames:[],category:"objects"},":calendar_spiral:":{uc_base:"1f5d3",uc_output:"1f5d3",uc_match:"1f5d3-fe0f",uc_greedy:"1f5d3-fe0f",shortnames:[":spiral_calendar_pad:"],category:"objects"},":call_me:":{uc_base:"1f919",uc_output:"1f919",uc_match:"1f919",uc_greedy:"1f919",shortnames:[":call_me_hand:"],category:"people"},":calling:":{uc_base:"1f4f2",uc_output:"1f4f2",uc_match:"1f4f2",uc_greedy:"1f4f2",shortnames:[],category:"objects"},":camel:":{uc_base:"1f42b",uc_output:"1f42b",uc_match:"1f42b",uc_greedy:"1f42b",shortnames:[],category:"nature"},":camera:":{uc_base:"1f4f7",uc_output:"1f4f7",uc_match:"1f4f7-fe0f",uc_greedy:"1f4f7-fe0f",shortnames:[],category:"objects"},":camera_with_flash:":{uc_base:"1f4f8",uc_output:"1f4f8",uc_match:"1f4f8",uc_greedy:"1f4f8",shortnames:[],category:"objects"},":camping:":{uc_base:"1f3d5",uc_output:"1f3d5",uc_match:"1f3d5-fe0f",uc_greedy:"1f3d5-fe0f",shortnames:[],category:"travel"},":candle:":{uc_base:"1f56f",uc_output:"1f56f",uc_match:"1f56f-fe0f",uc_greedy:"1f56f-fe0f",shortnames:[],category:"objects"},":candy:":{uc_base:"1f36c",uc_output:"1f36c",uc_match:"1f36c",uc_greedy:"1f36c",shortnames:[],category:"food"},":canned_food:":{uc_base:"1f96b",uc_output:"1f96b",uc_match:"1f96b",uc_greedy:"1f96b",shortnames:[],category:"food"},":canoe:":{uc_base:"1f6f6",uc_output:"1f6f6",uc_match:"1f6f6",uc_greedy:"1f6f6",shortnames:[":kayak:"],category:"travel"},":capital_abcd:":{uc_base:"1f520",uc_output:"1f520",uc_match:"1f520",uc_greedy:"1f520",shortnames:[],category:"symbols"},":card_box:":{uc_base:"1f5c3",uc_output:"1f5c3",uc_match:"1f5c3-fe0f",uc_greedy:"1f5c3-fe0f",shortnames:[":card_file_box:"],category:"objects"},":card_index:":{uc_base:"1f4c7",uc_output:"1f4c7",uc_match:"1f4c7",uc_greedy:"1f4c7",shortnames:[],category:"objects"},":carousel_horse:":{uc_base:"1f3a0",uc_output:"1f3a0",uc_match:"1f3a0",uc_greedy:"1f3a0",shortnames:[],category:"travel"},":carrot:":{uc_base:"1f955",uc_output:"1f955",uc_match:"1f955",uc_greedy:"1f955",shortnames:[],category:"food"},":cat2:":{uc_base:"1f408",uc_output:"1f408",uc_match:"1f408-fe0f",uc_greedy:"1f408-fe0f",shortnames:[],category:"nature"},":cat:":{uc_base:"1f431",uc_output:"1f431",uc_match:"1f431",uc_greedy:"1f431",shortnames:[],category:"nature"},":cd:":{uc_base:"1f4bf",uc_output:"1f4bf",uc_match:"1f4bf-fe0f",uc_greedy:"1f4bf-fe0f",shortnames:[],category:"objects"},":champagne:":{uc_base:"1f37e",uc_output:"1f37e",uc_match:"1f37e",uc_greedy:"1f37e",shortnames:[":bottle_with_popping_cork:"],category:"food"},":champagne_glass:":{uc_base:"1f942",uc_output:"1f942",uc_match:"1f942",uc_greedy:"1f942",shortnames:[":clinking_glass:"],category:"food"},":chart:":{uc_base:"1f4b9",uc_output:"1f4b9",uc_match:"1f4b9",uc_greedy:"1f4b9",shortnames:[],category:"symbols"},":chart_with_downwards_trend:":{uc_base:"1f4c9",uc_output:"1f4c9",uc_match:"1f4c9",uc_greedy:"1f4c9",shortnames:[],category:"objects"},":chart_with_upwards_trend:":{uc_base:"1f4c8",uc_output:"1f4c8",uc_match:"1f4c8",uc_greedy:"1f4c8",shortnames:[],category:"objects"},":checkered_flag:":{uc_base:"1f3c1",uc_output:"1f3c1",uc_match:"1f3c1",uc_greedy:"1f3c1",shortnames:[],category:"flags"},":cheese:":{uc_base:"1f9c0",uc_output:"1f9c0",uc_match:"1f9c0",uc_greedy:"1f9c0",shortnames:[":cheese_wedge:"],category:"food"},":cherries:":{uc_base:"1f352",uc_output:"1f352",uc_match:"1f352",uc_greedy:"1f352",shortnames:[],category:"food"},":cherry_blossom:":{uc_base:"1f338",uc_output:"1f338",uc_match:"1f338",uc_greedy:"1f338",shortnames:[],category:"nature"},":chestnut:":{uc_base:"1f330",uc_output:"1f330",uc_match:"1f330",uc_greedy:"1f330",shortnames:[],category:"food"},":chicken:":{uc_base:"1f414",uc_output:"1f414",uc_match:"1f414",uc_greedy:"1f414",shortnames:[],category:"nature"},":child:":{uc_base:"1f9d2",uc_output:"1f9d2",uc_match:"1f9d2",uc_greedy:"1f9d2",shortnames:[],category:"people"},":children_crossing:":{uc_base:"1f6b8",uc_output:"1f6b8",uc_match:"1f6b8",uc_greedy:"1f6b8",shortnames:[],category:"symbols"},":chipmunk:":{uc_base:"1f43f",uc_output:"1f43f",uc_match:"1f43f-fe0f",uc_greedy:"1f43f-fe0f",shortnames:[],category:"nature"},":chocolate_bar:":{uc_base:"1f36b",uc_output:"1f36b",uc_match:"1f36b",uc_greedy:"1f36b",shortnames:[],category:"food"},":chopsticks:":{uc_base:"1f962",uc_output:"1f962",uc_match:"1f962",uc_greedy:"1f962",shortnames:[],category:"food"},":christmas_tree:":{uc_base:"1f384",uc_output:"1f384",uc_match:"1f384",uc_greedy:"1f384",shortnames:[],category:"nature"},":cinema:":{uc_base:"1f3a6",uc_output:"1f3a6",uc_match:"1f3a6",uc_greedy:"1f3a6",shortnames:[],category:"symbols"},":circus_tent:":{uc_base:"1f3aa",uc_output:"1f3aa",uc_match:"1f3aa",uc_greedy:"1f3aa",shortnames:[],category:"activity"},":city_dusk:":{uc_base:"1f306",uc_output:"1f306",uc_match:"1f306",uc_greedy:"1f306",shortnames:[],category:"travel"},":city_sunset:":{uc_base:"1f307",uc_output:"1f307",uc_match:"1f307",uc_greedy:"1f307",shortnames:[":city_sunrise:"],category:"travel"},":cityscape:":{uc_base:"1f3d9",uc_output:"1f3d9",uc_match:"1f3d9-fe0f",uc_greedy:"1f3d9-fe0f",shortnames:[],category:"travel"},":cl:":{uc_base:"1f191",uc_output:"1f191",uc_match:"1f191",uc_greedy:"1f191",shortnames:[],category:"symbols"},":clap:":{uc_base:"1f44f",uc_output:"1f44f",uc_match:"1f44f",uc_greedy:"1f44f",shortnames:[],category:"people"},":clapper:":{uc_base:"1f3ac",uc_output:"1f3ac",uc_match:"1f3ac-fe0f",uc_greedy:"1f3ac-fe0f",shortnames:[],category:"activity"},":classical_building:":{uc_base:"1f3db",uc_output:"1f3db",uc_match:"1f3db-fe0f",uc_greedy:"1f3db-fe0f",shortnames:[],category:"travel"},":clipboard:":{uc_base:"1f4cb",uc_output:"1f4cb",uc_match:"1f4cb-fe0f",uc_greedy:"1f4cb-fe0f",shortnames:[],category:"objects"},":clock1030:":{uc_base:"1f565",uc_output:"1f565",uc_match:"1f565-fe0f",uc_greedy:"1f565-fe0f",shortnames:[],category:"symbols"},":clock10:":{uc_base:"1f559",uc_output:"1f559",uc_match:"1f559-fe0f",uc_greedy:"1f559-fe0f",shortnames:[],category:"symbols"},":clock1130:":{uc_base:"1f566",uc_output:"1f566",uc_match:"1f566-fe0f",uc_greedy:"1f566-fe0f",shortnames:[],category:"symbols"},":clock11:":{uc_base:"1f55a",uc_output:"1f55a",uc_match:"1f55a-fe0f",uc_greedy:"1f55a-fe0f",shortnames:[],category:"symbols"},":clock1230:":{uc_base:"1f567",uc_output:"1f567",uc_match:"1f567-fe0f",uc_greedy:"1f567-fe0f",shortnames:[],category:"symbols"},":clock12:":{uc_base:"1f55b",uc_output:"1f55b",uc_match:"1f55b-fe0f",uc_greedy:"1f55b-fe0f",shortnames:[],category:"symbols"},":clock130:":{uc_base:"1f55c",uc_output:"1f55c",uc_match:"1f55c-fe0f",uc_greedy:"1f55c-fe0f",shortnames:[],category:"symbols"},":clock1:":{uc_base:"1f550",uc_output:"1f550",uc_match:"1f550-fe0f",uc_greedy:"1f550-fe0f",shortnames:[],category:"symbols"},":clock230:":{uc_base:"1f55d",uc_output:"1f55d",uc_match:"1f55d-fe0f",uc_greedy:"1f55d-fe0f",shortnames:[],category:"symbols"},":clock2:":{uc_base:"1f551",uc_output:"1f551",uc_match:"1f551-fe0f",uc_greedy:"1f551-fe0f",shortnames:[],category:"symbols"},":clock330:":{uc_base:"1f55e",uc_output:"1f55e",uc_match:"1f55e-fe0f",uc_greedy:"1f55e-fe0f",shortnames:[],category:"symbols"},":clock3:":{uc_base:"1f552",uc_output:"1f552",uc_match:"1f552-fe0f",uc_greedy:"1f552-fe0f",shortnames:[],category:"symbols"},":clock430:":{uc_base:"1f55f",uc_output:"1f55f",uc_match:"1f55f-fe0f",uc_greedy:"1f55f-fe0f",shortnames:[],category:"symbols"},":clock4:":{uc_base:"1f553",uc_output:"1f553",uc_match:"1f553-fe0f",uc_greedy:"1f553-fe0f",shortnames:[],category:"symbols"},":clock530:":{uc_base:"1f560",uc_output:"1f560",uc_match:"1f560-fe0f",uc_greedy:"1f560-fe0f",shortnames:[],category:"symbols"},":clock5:":{uc_base:"1f554",uc_output:"1f554",uc_match:"1f554-fe0f",uc_greedy:"1f554-fe0f",shortnames:[],category:"symbols"},":clock630:":{uc_base:"1f561",uc_output:"1f561",uc_match:"1f561-fe0f",uc_greedy:"1f561-fe0f",shortnames:[],category:"symbols"},":clock6:":{uc_base:"1f555",uc_output:"1f555",uc_match:"1f555-fe0f",uc_greedy:"1f555-fe0f",shortnames:[],category:"symbols"},":clock730:":{uc_base:"1f562",uc_output:"1f562",uc_match:"1f562-fe0f",uc_greedy:"1f562-fe0f",shortnames:[],category:"symbols"},":clock7:":{uc_base:"1f556",uc_output:"1f556",uc_match:"1f556-fe0f",uc_greedy:"1f556-fe0f",shortnames:[],category:"symbols"},":clock830:":{uc_base:"1f563",uc_output:"1f563",uc_match:"1f563-fe0f",uc_greedy:"1f563-fe0f",shortnames:[],category:"symbols"},":clock8:":{uc_base:"1f557",uc_output:"1f557",uc_match:"1f557-fe0f",uc_greedy:"1f557-fe0f",shortnames:[],category:"symbols"},":clock930:":{uc_base:"1f564",uc_output:"1f564",uc_match:"1f564-fe0f",uc_greedy:"1f564-fe0f",shortnames:[],category:"symbols"},":clock9:":{uc_base:"1f558",uc_output:"1f558",uc_match:"1f558-fe0f",uc_greedy:"1f558-fe0f",shortnames:[],category:"symbols"},":clock:":{uc_base:"1f570",uc_output:"1f570",uc_match:"1f570-fe0f",uc_greedy:"1f570-fe0f",shortnames:[":mantlepiece_clock:"],category:"objects"},":closed_book:":{uc_base:"1f4d5",uc_output:"1f4d5",uc_match:"1f4d5",uc_greedy:"1f4d5",shortnames:[],category:"objects"},":closed_lock_with_key:":{uc_base:"1f510",uc_output:"1f510",uc_match:"1f510",uc_greedy:"1f510",shortnames:[],category:"objects"},":closed_umbrella:":{uc_base:"1f302",uc_output:"1f302",uc_match:"1f302",uc_greedy:"1f302",shortnames:[],category:"people"},":cloud_lightning:":{uc_base:"1f329",uc_output:"1f329",uc_match:"1f329-fe0f",uc_greedy:"1f329-fe0f",shortnames:[":cloud_with_lightning:"],category:"nature"},":cloud_rain:":{uc_base:"1f327",uc_output:"1f327",uc_match:"1f327-fe0f",uc_greedy:"1f327-fe0f",shortnames:[":cloud_with_rain:"],category:"nature"},":cloud_snow:":{uc_base:"1f328",uc_output:"1f328",uc_match:"1f328-fe0f",uc_greedy:"1f328-fe0f",shortnames:[":cloud_with_snow:"],category:"nature"},":cloud_tornado:":{uc_base:"1f32a",uc_output:"1f32a",uc_match:"1f32a-fe0f",uc_greedy:"1f32a-fe0f",shortnames:[":cloud_with_tornado:"],category:"nature"},":clown:":{uc_base:"1f921",uc_output:"1f921",uc_match:"1f921",uc_greedy:"1f921",shortnames:[":clown_face:"],category:"people"},":coat:":{uc_base:"1f9e5",uc_output:"1f9e5",uc_match:"1f9e5",uc_greedy:"1f9e5",shortnames:[],category:"people"},":cocktail:":{uc_base:"1f378",uc_output:"1f378",uc_match:"1f378-fe0f",uc_greedy:"1f378-fe0f",shortnames:[],category:"food"},":coconut:":{uc_base:"1f965",uc_output:"1f965",uc_match:"1f965",uc_greedy:"1f965",shortnames:[],category:"food"},":cold_sweat:":{uc_base:"1f630",uc_output:"1f630",uc_match:"1f630",uc_greedy:"1f630",shortnames:[],category:"people"},":compression:":{uc_base:"1f5dc",uc_output:"1f5dc",uc_match:"1f5dc-fe0f",uc_greedy:"1f5dc-fe0f",shortnames:[],category:"objects"},":computer:":{uc_base:"1f4bb",uc_output:"1f4bb",uc_match:"1f4bb-fe0f",uc_greedy:"1f4bb-fe0f",shortnames:[],category:"objects"},":confetti_ball:":{uc_base:"1f38a",uc_output:"1f38a",uc_match:"1f38a",uc_greedy:"1f38a",shortnames:[],category:"objects"},":confounded:":{uc_base:"1f616",uc_output:"1f616",uc_match:"1f616",uc_greedy:"1f616",shortnames:[],category:"people"},":confused:":{uc_base:"1f615",uc_output:"1f615",uc_match:"1f615",uc_greedy:"1f615",shortnames:[],category:"people"},":construction:":{uc_base:"1f6a7",uc_output:"1f6a7",uc_match:"1f6a7",uc_greedy:"1f6a7",shortnames:[],category:"travel"},":construction_site:":{uc_base:"1f3d7",uc_output:"1f3d7",uc_match:"1f3d7-fe0f",uc_greedy:"1f3d7-fe0f",shortnames:[":building_construction:"],category:"travel"},":construction_worker:":{uc_base:"1f477",uc_output:"1f477",uc_match:"1f477",uc_greedy:"1f477",shortnames:[],category:"people"},":control_knobs:":{uc_base:"1f39b",uc_output:"1f39b",uc_match:"1f39b-fe0f",uc_greedy:"1f39b-fe0f",shortnames:[],category:"objects"},":convenience_store:":{uc_base:"1f3ea",uc_output:"1f3ea",uc_match:"1f3ea",uc_greedy:"1f3ea",shortnames:[],category:"travel"},":cookie:":{uc_base:"1f36a",uc_output:"1f36a",uc_match:"1f36a",uc_greedy:"1f36a",shortnames:[],category:"food"},":cooking:":{uc_base:"1f373",uc_output:"1f373",uc_match:"1f373",uc_greedy:"1f373",shortnames:[],category:"food"},":cool:":{uc_base:"1f192",uc_output:"1f192",uc_match:"1f192",uc_greedy:"1f192",shortnames:[],category:"symbols"},":corn:":{uc_base:"1f33d",uc_output:"1f33d",uc_match:"1f33d",uc_greedy:"1f33d",shortnames:[],category:"food"},":couch:":{uc_base:"1f6cb",uc_output:"1f6cb",uc_match:"1f6cb-fe0f",uc_greedy:"1f6cb-fe0f",shortnames:[":couch_and_lamp:"],category:"objects"},":couple:":{uc_base:"1f46b",uc_output:"1f46b",uc_match:"1f46b",uc_greedy:"1f46b",shortnames:[],category:"people"},":couple_with_heart:":{uc_base:"1f491",uc_output:"1f491",uc_match:"1f491",uc_greedy:"1f491",shortnames:[],category:"people"},":couplekiss:":{uc_base:"1f48f",uc_output:"1f48f",uc_match:"1f48f",uc_greedy:"1f48f",shortnames:[],category:"people"},":cow2:":{uc_base:"1f404",uc_output:"1f404",uc_match:"1f404",uc_greedy:"1f404",shortnames:[],category:"nature"},":cow:":{uc_base:"1f42e",uc_output:"1f42e",uc_match:"1f42e",uc_greedy:"1f42e",shortnames:[],category:"nature"},":cowboy:":{uc_base:"1f920",uc_output:"1f920",uc_match:"1f920",uc_greedy:"1f920",shortnames:[":face_with_cowboy_hat:"],category:"people"},":crab:":{uc_base:"1f980",uc_output:"1f980",uc_match:"1f980",uc_greedy:"1f980",shortnames:[],category:"nature"},":crayon:":{uc_base:"1f58d",uc_output:"1f58d",uc_match:"1f58d-fe0f",uc_greedy:"1f58d-fe0f",shortnames:[":lower_left_crayon:"],category:"objects"},":crazy_face:":{uc_base:"1f92a",uc_output:"1f92a",uc_match:"1f92a",uc_greedy:"1f92a",shortnames:[],category:"people"},":credit_card:":{uc_base:"1f4b3",uc_output:"1f4b3",uc_match:"1f4b3-fe0f",uc_greedy:"1f4b3-fe0f",shortnames:[],category:"objects"},":crescent_moon:":{uc_base:"1f319",uc_output:"1f319",uc_match:"1f319",uc_greedy:"1f319",shortnames:[],category:"nature"},":cricket:":{uc_base:"1f997",uc_output:"1f997",uc_match:"1f997",uc_greedy:"1f997",shortnames:[],category:"nature"},":cricket_game:":{uc_base:"1f3cf",uc_output:"1f3cf",uc_match:"1f3cf",uc_greedy:"1f3cf",shortnames:[":cricket_bat_ball:"],category:"activity"},":crocodile:":{uc_base:"1f40a",uc_output:"1f40a",uc_match:"1f40a",uc_greedy:"1f40a",shortnames:[],category:"nature"},":croissant:":{uc_base:"1f950",uc_output:"1f950",uc_match:"1f950",uc_greedy:"1f950",shortnames:[],category:"food"},":crossed_flags:":{uc_base:"1f38c",uc_output:"1f38c",uc_match:"1f38c",uc_greedy:"1f38c",shortnames:[],category:"flags"},":crown:":{uc_base:"1f451",uc_output:"1f451",uc_match:"1f451",uc_greedy:"1f451",shortnames:[],category:"people"},":cruise_ship:":{uc_base:"1f6f3",uc_output:"1f6f3",uc_match:"1f6f3-fe0f",uc_greedy:"1f6f3-fe0f",shortnames:[":passenger_ship:"],category:"travel"},":cry:":{uc_base:"1f622",uc_output:"1f622",uc_match:"1f622",uc_greedy:"1f622",shortnames:[],category:"people"},":crying_cat_face:":{uc_base:"1f63f",uc_output:"1f63f",uc_match:"1f63f",uc_greedy:"1f63f",shortnames:[],category:"people"},":crystal_ball:":{uc_base:"1f52e",uc_output:"1f52e",uc_match:"1f52e",uc_greedy:"1f52e",shortnames:[],category:"objects"},":cucumber:":{uc_base:"1f952",uc_output:"1f952",uc_match:"1f952",uc_greedy:"1f952",shortnames:[],category:"food"},":cup_with_straw:":{uc_base:"1f964",uc_output:"1f964",uc_match:"1f964",uc_greedy:"1f964",shortnames:[],category:"food"},":cupid:":{uc_base:"1f498",uc_output:"1f498",uc_match:"1f498",uc_greedy:"1f498",shortnames:[],category:"symbols"},":curling_stone:":{uc_base:"1f94c",uc_output:"1f94c",uc_match:"1f94c",uc_greedy:"1f94c",shortnames:[],category:"activity"},":currency_exchange:":{uc_base:"1f4b1",uc_output:"1f4b1",uc_match:"1f4b1",uc_greedy:"1f4b1",shortnames:[],category:"symbols"},":curry:":{uc_base:"1f35b",uc_output:"1f35b",uc_match:"1f35b",uc_greedy:"1f35b",shortnames:[],category:"food"},":custard:":{uc_base:"1f36e",uc_output:"1f36e",uc_match:"1f36e",uc_greedy:"1f36e",shortnames:[":pudding:",":flan:"],category:"food"},":customs:":{uc_base:"1f6c3",uc_output:"1f6c3",uc_match:"1f6c3",uc_greedy:"1f6c3",shortnames:[],category:"symbols"},":cut_of_meat:":{uc_base:"1f969",uc_output:"1f969",uc_match:"1f969",uc_greedy:"1f969",shortnames:[],category:"food"},":cyclone:":{uc_base:"1f300",uc_output:"1f300",uc_match:"1f300",uc_greedy:"1f300",shortnames:[],category:"symbols"},":dagger:":{uc_base:"1f5e1",uc_output:"1f5e1",uc_match:"1f5e1-fe0f",uc_greedy:"1f5e1-fe0f",shortnames:[":dagger_knife:"],category:"objects"},":dancer:":{uc_base:"1f483",uc_output:"1f483",uc_match:"1f483",uc_greedy:"1f483",shortnames:[],category:"people"},":dango:":{uc_base:"1f361",uc_output:"1f361",uc_match:"1f361",uc_greedy:"1f361",shortnames:[],category:"food"},":dark_sunglasses:":{uc_base:"1f576",uc_output:"1f576",uc_match:"1f576-fe0f",uc_greedy:"1f576-fe0f",shortnames:[],category:"people"},":dart:":{uc_base:"1f3af",uc_output:"1f3af",uc_match:"1f3af",uc_greedy:"1f3af",shortnames:[],category:"activity"},":dash:":{uc_base:"1f4a8",uc_output:"1f4a8",uc_match:"1f4a8",uc_greedy:"1f4a8",shortnames:[],category:"nature"},":date:":{uc_base:"1f4c5",uc_output:"1f4c5",uc_match:"1f4c5",uc_greedy:"1f4c5",shortnames:[],category:"objects"},":deciduous_tree:":{uc_base:"1f333",uc_output:"1f333",uc_match:"1f333",uc_greedy:"1f333",shortnames:[],category:"nature"},":deer:":{uc_base:"1f98c",uc_output:"1f98c",uc_match:"1f98c",uc_greedy:"1f98c",shortnames:[],category:"nature"},":department_store:":{uc_base:"1f3ec",uc_output:"1f3ec",uc_match:"1f3ec",uc_greedy:"1f3ec",shortnames:[],category:"travel"},":desert:":{uc_base:"1f3dc",uc_output:"1f3dc",uc_match:"1f3dc-fe0f",uc_greedy:"1f3dc-fe0f",shortnames:[],category:"travel"},":desktop:":{uc_base:"1f5a5",uc_output:"1f5a5",uc_match:"1f5a5-fe0f",uc_greedy:"1f5a5-fe0f",shortnames:[":desktop_computer:"],category:"objects"},":detective:":{uc_base:"1f575",uc_output:"1f575",uc_match:"1f575-fe0f",uc_greedy:"1f575-fe0f",shortnames:[":spy:",":sleuth_or_spy:"],category:"people"},":diamond_shape_with_a_dot_inside:":{uc_base:"1f4a0",uc_output:"1f4a0",uc_match:"1f4a0",uc_greedy:"1f4a0",shortnames:[],category:"symbols"},":disappointed:":{uc_base:"1f61e",uc_output:"1f61e",uc_match:"1f61e",uc_greedy:"1f61e",shortnames:[],category:"people"},":disappointed_relieved:":{uc_base:"1f625",uc_output:"1f625",uc_match:"1f625",uc_greedy:"1f625",shortnames:[],category:"people"},":dividers:":{uc_base:"1f5c2",uc_output:"1f5c2",uc_match:"1f5c2-fe0f",uc_greedy:"1f5c2-fe0f",shortnames:[":card_index_dividers:"],category:"objects"},":dizzy:":{uc_base:"1f4ab",uc_output:"1f4ab",uc_match:"1f4ab",uc_greedy:"1f4ab",shortnames:[],category:"nature"},":dizzy_face:":{uc_base:"1f635",uc_output:"1f635",uc_match:"1f635",uc_greedy:"1f635",shortnames:[],category:"people"},":do_not_litter:":{uc_base:"1f6af",uc_output:"1f6af",uc_match:"1f6af",uc_greedy:"1f6af",shortnames:[],category:"symbols"},":dog2:":{uc_base:"1f415",uc_output:"1f415",uc_match:"1f415-fe0f",uc_greedy:"1f415-fe0f",shortnames:[],category:"nature"},":dog:":{uc_base:"1f436",uc_output:"1f436",uc_match:"1f436",uc_greedy:"1f436",shortnames:[],category:"nature"},":dollar:":{uc_base:"1f4b5",uc_output:"1f4b5",uc_match:"1f4b5",uc_greedy:"1f4b5",shortnames:[],category:"objects"},":dolls:":{uc_base:"1f38e",uc_output:"1f38e",uc_match:"1f38e",uc_greedy:"1f38e",shortnames:[],category:"objects"},":dolphin:":{uc_base:"1f42c",uc_output:"1f42c",uc_match:"1f42c",uc_greedy:"1f42c",shortnames:[],category:"nature"},":door:":{uc_base:"1f6aa",uc_output:"1f6aa",uc_match:"1f6aa",uc_greedy:"1f6aa",shortnames:[],category:"objects"},":doughnut:":{uc_base:"1f369",uc_output:"1f369",uc_match:"1f369",uc_greedy:"1f369",shortnames:[],category:"food"},":dove:":{uc_base:"1f54a",uc_output:"1f54a",uc_match:"1f54a-fe0f",uc_greedy:"1f54a-fe0f",shortnames:[":dove_of_peace:"],category:"nature"},":dragon:":{uc_base:"1f409",uc_output:"1f409",uc_match:"1f409",uc_greedy:"1f409",shortnames:[],category:"nature"},":dragon_face:":{uc_base:"1f432",uc_output:"1f432",uc_match:"1f432",uc_greedy:"1f432",shortnames:[],category:"nature"},":dress:":{uc_base:"1f457",uc_output:"1f457",uc_match:"1f457",uc_greedy:"1f457",shortnames:[],category:"people"},":dromedary_camel:":{uc_base:"1f42a",uc_output:"1f42a",uc_match:"1f42a",uc_greedy:"1f42a",shortnames:[],category:"nature"},":drooling_face:":{uc_base:"1f924",uc_output:"1f924",uc_match:"1f924",uc_greedy:"1f924",shortnames:[":drool:"],category:"people"},":droplet:":{uc_base:"1f4a7",uc_output:"1f4a7",uc_match:"1f4a7",uc_greedy:"1f4a7",shortnames:[],category:"nature"},":drum:":{uc_base:"1f941",uc_output:"1f941",uc_match:"1f941",uc_greedy:"1f941",shortnames:[":drum_with_drumsticks:"],category:"activity"},":duck:":{uc_base:"1f986",uc_output:"1f986",uc_match:"1f986",uc_greedy:"1f986",shortnames:[],category:"nature"},":dumpling:":{uc_base:"1f95f",uc_output:"1f95f",uc_match:"1f95f",uc_greedy:"1f95f",shortnames:[],category:"food"},":dvd:":{uc_base:"1f4c0",uc_output:"1f4c0",uc_match:"1f4c0",uc_greedy:"1f4c0",shortnames:[],category:"objects"},":e-mail:":{uc_base:"1f4e7",uc_output:"1f4e7",uc_match:"1f4e7",uc_greedy:"1f4e7",shortnames:[":email:"],category:"objects"},":eagle:":{uc_base:"1f985",uc_output:"1f985",uc_match:"1f985",uc_greedy:"1f985",shortnames:[],category:"nature"},":ear:":{uc_base:"1f442",uc_output:"1f442",uc_match:"1f442-fe0f",uc_greedy:"1f442-fe0f",shortnames:[],category:"people"},":ear_of_rice:":{uc_base:"1f33e",uc_output:"1f33e",uc_match:"1f33e",uc_greedy:"1f33e",shortnames:[],category:"nature"},":earth_africa:":{uc_base:"1f30d",uc_output:"1f30d",uc_match:"1f30d-fe0f",uc_greedy:"1f30d-fe0f",shortnames:[],category:"nature"},":earth_americas:":{uc_base:"1f30e",uc_output:"1f30e",uc_match:"1f30e-fe0f",uc_greedy:"1f30e-fe0f",shortnames:[],category:"nature"},":earth_asia:":{uc_base:"1f30f",uc_output:"1f30f",uc_match:"1f30f-fe0f",uc_greedy:"1f30f-fe0f",shortnames:[],category:"nature"},":egg:":{uc_base:"1f95a",uc_output:"1f95a",uc_match:"1f95a",uc_greedy:"1f95a",shortnames:[],category:"food"},":eggplant:":{uc_base:"1f346",uc_output:"1f346",uc_match:"1f346",uc_greedy:"1f346",shortnames:[],category:"food"},":electric_plug:":{uc_base:"1f50c",uc_output:"1f50c",uc_match:"1f50c",uc_greedy:"1f50c",shortnames:[],category:"objects"},":elephant:":{uc_base:"1f418",uc_output:"1f418",uc_match:"1f418",uc_greedy:"1f418",shortnames:[],category:"nature"},":elf:":{uc_base:"1f9dd",uc_output:"1f9dd",uc_match:"1f9dd",uc_greedy:"1f9dd",shortnames:[],category:"people"},":end:":{uc_base:"1f51a",uc_output:"1f51a",uc_match:"1f51a",uc_greedy:"1f51a",shortnames:[],category:"symbols"},":envelope_with_arrow:":{uc_base:"1f4e9",uc_output:"1f4e9",uc_match:"1f4e9",uc_greedy:"1f4e9",shortnames:[],category:"objects"},":euro:":{uc_base:"1f4b6",uc_output:"1f4b6",uc_match:"1f4b6",uc_greedy:"1f4b6",shortnames:[],category:"objects"},":european_castle:":{uc_base:"1f3f0",uc_output:"1f3f0",uc_match:"1f3f0",uc_greedy:"1f3f0",shortnames:[],category:"travel"},":european_post_office:":{uc_base:"1f3e4",uc_output:"1f3e4",uc_match:"1f3e4",uc_greedy:"1f3e4",shortnames:[],category:"travel"},":evergreen_tree:":{uc_base:"1f332",uc_output:"1f332",uc_match:"1f332",uc_greedy:"1f332",shortnames:[],category:"nature"},":exploding_head:":{uc_base:"1f92f",uc_output:"1f92f",uc_match:"1f92f",uc_greedy:"1f92f",shortnames:[],category:"people"},":expressionless:":{uc_base:"1f611",uc_output:"1f611",uc_match:"1f611",uc_greedy:"1f611",shortnames:[],category:"people"},":eye:":{uc_base:"1f441",uc_output:"1f441",uc_match:"1f441-fe0f",uc_greedy:"1f441-fe0f",shortnames:[],category:"people"},":eyeglasses:":{uc_base:"1f453",uc_output:"1f453",uc_match:"1f453-fe0f",uc_greedy:"1f453-fe0f",shortnames:[],category:"people"},":eyes:":{uc_base:"1f440",uc_output:"1f440",uc_match:"1f440",uc_greedy:"1f440",shortnames:[],category:"people"},":face_vomiting:":{uc_base:"1f92e",uc_output:"1f92e",uc_match:"1f92e",uc_greedy:"1f92e",shortnames:[],category:"people"},":face_with_hand_over_mouth:":{uc_base:"1f92d",uc_output:"1f92d",uc_match:"1f92d",uc_greedy:"1f92d",shortnames:[],category:"people"},":face_with_monocle:":{uc_base:"1f9d0",uc_output:"1f9d0",uc_match:"1f9d0",uc_greedy:"1f9d0",shortnames:[],category:"people"},":face_with_raised_eyebrow:":{uc_base:"1f928",uc_output:"1f928",uc_match:"1f928",uc_greedy:"1f928",shortnames:[],category:"people"},":face_with_symbols_over_mouth:":{uc_base:"1f92c",uc_output:"1f92c",uc_match:"1f92c",uc_greedy:"1f92c",shortnames:[],category:"people"},":factory:":{uc_base:"1f3ed",uc_output:"1f3ed",uc_match:"1f3ed-fe0f",uc_greedy:"1f3ed-fe0f",shortnames:[],category:"travel"},":fairy:":{uc_base:"1f9da",uc_output:"1f9da",uc_match:"1f9da",uc_greedy:"1f9da",shortnames:[],category:"people"},":fallen_leaf:":{uc_base:"1f342",uc_output:"1f342",uc_match:"1f342",uc_greedy:"1f342",shortnames:[],category:"nature"},":family:":{uc_base:"1f46a",uc_output:"1f46a",uc_match:"1f46a-fe0f",uc_greedy:"1f46a-fe0f",shortnames:[],category:"people"},":fax:":{uc_base:"1f4e0",uc_output:"1f4e0",uc_match:"1f4e0",uc_greedy:"1f4e0",shortnames:[],category:"objects"},":fearful:":{uc_base:"1f628",uc_output:"1f628",uc_match:"1f628",uc_greedy:"1f628",shortnames:[],category:"people"},":feet:":{uc_base:"1f43e",uc_output:"1f43e",uc_match:"1f43e",uc_greedy:"1f43e",shortnames:[":paw_prints:"],category:"nature"},":ferris_wheel:":{uc_base:"1f3a1",uc_output:"1f3a1",uc_match:"1f3a1",uc_greedy:"1f3a1",shortnames:[],category:"travel"},":field_hockey:":{uc_base:"1f3d1",uc_output:"1f3d1",uc_match:"1f3d1",uc_greedy:"1f3d1",shortnames:[],category:"activity"},":file_cabinet:":{uc_base:"1f5c4",uc_output:"1f5c4",uc_match:"1f5c4-fe0f",uc_greedy:"1f5c4-fe0f",shortnames:[],category:"objects"},":file_folder:":{uc_base:"1f4c1",uc_output:"1f4c1",uc_match:"1f4c1",uc_greedy:"1f4c1",shortnames:[],category:"objects"},":film_frames:":{uc_base:"1f39e",uc_output:"1f39e",uc_match:"1f39e-fe0f",uc_greedy:"1f39e-fe0f",shortnames:[],category:"objects"},":fingers_crossed:":{uc_base:"1f91e",uc_output:"1f91e",uc_match:"1f91e",uc_greedy:"1f91e",shortnames:[":hand_with_index_and_middle_finger_crossed:"],category:"people"},":fire:":{uc_base:"1f525",uc_output:"1f525",uc_match:"1f525",uc_greedy:"1f525",shortnames:[":flame:"],category:"nature"},":fire_engine:":{uc_base:"1f692",uc_output:"1f692",uc_match:"1f692",uc_greedy:"1f692",shortnames:[],category:"travel"},":fireworks:":{uc_base:"1f386",uc_output:"1f386",uc_match:"1f386",uc_greedy:"1f386",shortnames:[],category:"travel"},":first_place:":{uc_base:"1f947",uc_output:"1f947",uc_match:"1f947",uc_greedy:"1f947",shortnames:[":first_place_medal:"],category:"activity"},":first_quarter_moon:":{uc_base:"1f313",uc_output:"1f313",uc_match:"1f313",uc_greedy:"1f313",shortnames:[],category:"nature"},":first_quarter_moon_with_face:":{uc_base:"1f31b",uc_output:"1f31b",uc_match:"1f31b",uc_greedy:"1f31b",shortnames:[],category:"nature"},":fish:":{uc_base:"1f41f",uc_output:"1f41f",uc_match:"1f41f-fe0f",uc_greedy:"1f41f-fe0f",shortnames:[],category:"nature"},":fish_cake:":{uc_base:"1f365",uc_output:"1f365",uc_match:"1f365",uc_greedy:"1f365",shortnames:[],category:"food"},":fishing_pole_and_fish:":{uc_base:"1f3a3",uc_output:"1f3a3",uc_match:"1f3a3",uc_greedy:"1f3a3",shortnames:[],category:"activity"},":flag_black:":{uc_base:"1f3f4",uc_output:"1f3f4",uc_match:"1f3f4",uc_greedy:"1f3f4",shortnames:[":waving_black_flag:"],category:"flags"},":flag_white:":{uc_base:"1f3f3",uc_output:"1f3f3",uc_match:"1f3f3-fe0f",uc_greedy:"1f3f3-fe0f",shortnames:[":waving_white_flag:"],category:"flags"},":flags:":{uc_base:"1f38f",uc_output:"1f38f",uc_match:"1f38f",uc_greedy:"1f38f",shortnames:[],category:"objects"},":flashlight:":{uc_base:"1f526",uc_output:"1f526",uc_match:"1f526",uc_greedy:"1f526",shortnames:[],category:"objects"},":floppy_disk:":{uc_base:"1f4be",uc_output:"1f4be",uc_match:"1f4be",uc_greedy:"1f4be",shortnames:[],category:"objects"},":flower_playing_cards:":{uc_base:"1f3b4",uc_output:"1f3b4",uc_match:"1f3b4",uc_greedy:"1f3b4",shortnames:[],category:"symbols"},":flushed:":{uc_base:"1f633",uc_output:"1f633",uc_match:"1f633",uc_greedy:"1f633",shortnames:[],category:"people"},":flying_saucer:":{uc_base:"1f6f8",uc_output:"1f6f8",uc_match:"1f6f8",uc_greedy:"1f6f8",shortnames:[],category:"travel"},":fog:":{uc_base:"1f32b",uc_output:"1f32b",uc_match:"1f32b-fe0f",uc_greedy:"1f32b-fe0f",shortnames:[],category:"nature"},":foggy:":{uc_base:"1f301",uc_output:"1f301",uc_match:"1f301",uc_greedy:"1f301",shortnames:[],category:"travel"},":football:":{uc_base:"1f3c8",uc_output:"1f3c8",uc_match:"1f3c8",uc_greedy:"1f3c8",shortnames:[],category:"activity"},":footprints:":{uc_base:"1f463",uc_output:"1f463",uc_match:"1f463",uc_greedy:"1f463",shortnames:[],category:"people"},":fork_and_knife:":{uc_base:"1f374",uc_output:"1f374",uc_match:"1f374",uc_greedy:"1f374",shortnames:[],category:"food"},":fork_knife_plate:":{uc_base:"1f37d",uc_output:"1f37d",uc_match:"1f37d-fe0f",uc_greedy:"1f37d-fe0f",shortnames:[":fork_and_knife_with_plate:"],category:"food"},":fortune_cookie:":{uc_base:"1f960",uc_output:"1f960",uc_match:"1f960",uc_greedy:"1f960",shortnames:[],category:"food"},":four_leaf_clover:":{uc_base:"1f340",uc_output:"1f340",uc_match:"1f340",uc_greedy:"1f340",shortnames:[],category:"nature"},":fox:":{uc_base:"1f98a",uc_output:"1f98a",uc_match:"1f98a",uc_greedy:"1f98a",shortnames:[":fox_face:"],category:"nature"},":frame_photo:":{uc_base:"1f5bc",uc_output:"1f5bc",uc_match:"1f5bc-fe0f",uc_greedy:"1f5bc-fe0f",shortnames:[":frame_with_picture:"],category:"objects"},":free:":{uc_base:"1f193",uc_output:"1f193",uc_match:"1f193",uc_greedy:"1f193",shortnames:[],category:"symbols"},":french_bread:":{uc_base:"1f956",uc_output:"1f956",uc_match:"1f956",uc_greedy:"1f956",shortnames:[":baguette_bread:"],category:"food"},":fried_shrimp:":{uc_base:"1f364",uc_output:"1f364",uc_match:"1f364",uc_greedy:"1f364",shortnames:[],category:"food"},":fries:":{uc_base:"1f35f",uc_output:"1f35f",uc_match:"1f35f",uc_greedy:"1f35f",shortnames:[],category:"food"},":frog:":{uc_base:"1f438",uc_output:"1f438",uc_match:"1f438",uc_greedy:"1f438",shortnames:[],category:"nature"},":frowning:":{uc_base:"1f626",uc_output:"1f626",uc_match:"1f626",uc_greedy:"1f626",shortnames:[],category:"people"},":full_moon:":{uc_base:"1f315",uc_output:"1f315",uc_match:"1f315-fe0f",uc_greedy:"1f315-fe0f",shortnames:[],category:"nature"},":full_moon_with_face:":{uc_base:"1f31d",uc_output:"1f31d",uc_match:"1f31d",uc_greedy:"1f31d",shortnames:[],category:"nature"},":game_die:":{uc_base:"1f3b2",uc_output:"1f3b2",uc_match:"1f3b2",uc_greedy:"1f3b2",shortnames:[],category:"activity"},":gem:":{uc_base:"1f48e",uc_output:"1f48e",uc_match:"1f48e",uc_greedy:"1f48e",shortnames:[],category:"objects"},":genie:":{uc_base:"1f9de",uc_output:"1f9de",uc_match:"1f9de",uc_greedy:"1f9de",shortnames:[],category:"people"},":ghost:":{uc_base:"1f47b",uc_output:"1f47b",uc_match:"1f47b",uc_greedy:"1f47b",shortnames:[],category:"people"},":gift:":{uc_base:"1f381",uc_output:"1f381",uc_match:"1f381",uc_greedy:"1f381",shortnames:[],category:"objects"},":gift_heart:":{uc_base:"1f49d",uc_output:"1f49d",uc_match:"1f49d",uc_greedy:"1f49d",shortnames:[],category:"symbols"},":giraffe:":{uc_base:"1f992",uc_output:"1f992",uc_match:"1f992",uc_greedy:"1f992",shortnames:[],category:"nature"},":girl:":{uc_base:"1f467",uc_output:"1f467",uc_match:"1f467",uc_greedy:"1f467",shortnames:[],category:"people"},":globe_with_meridians:":{uc_base:"1f310",uc_output:"1f310",uc_match:"1f310",uc_greedy:"1f310",shortnames:[],category:"symbols"},":gloves:":{uc_base:"1f9e4",uc_output:"1f9e4",uc_match:"1f9e4",uc_greedy:"1f9e4",shortnames:[],category:"people"},":goal:":{uc_base:"1f945",uc_output:"1f945",uc_match:"1f945",uc_greedy:"1f945",shortnames:[":goal_net:"],category:"activity"},":goat:":{uc_base:"1f410",uc_output:"1f410",uc_match:"1f410",uc_greedy:"1f410",shortnames:[],category:"nature"},":gorilla:":{uc_base:"1f98d",uc_output:"1f98d",uc_match:"1f98d",uc_greedy:"1f98d",shortnames:[],category:"nature"},":grapes:":{uc_base:"1f347",uc_output:"1f347",uc_match:"1f347",uc_greedy:"1f347",shortnames:[],category:"food"},":green_apple:":{uc_base:"1f34f",uc_output:"1f34f",uc_match:"1f34f",uc_greedy:"1f34f",shortnames:[],category:"food"},":green_book:":{uc_base:"1f4d7",uc_output:"1f4d7",uc_match:"1f4d7",uc_greedy:"1f4d7",shortnames:[],category:"objects"},":green_heart:":{uc_base:"1f49a",uc_output:"1f49a",uc_match:"1f49a",uc_greedy:"1f49a",shortnames:[],category:"symbols"},":grimacing:":{uc_base:"1f62c",uc_output:"1f62c",uc_match:"1f62c",uc_greedy:"1f62c",shortnames:[],category:"people"},":grin:":{uc_base:"1f601",uc_output:"1f601",uc_match:"1f601",uc_greedy:"1f601",shortnames:[],category:"people"},":grinning:":{uc_base:"1f600",uc_output:"1f600",uc_match:"1f600",uc_greedy:"1f600",shortnames:[],category:"people"},":guard:":{uc_base:"1f482",uc_output:"1f482",uc_match:"1f482",uc_greedy:"1f482",shortnames:[":guardsman:"],category:"people"},":guitar:":{uc_base:"1f3b8",uc_output:"1f3b8",uc_match:"1f3b8",uc_greedy:"1f3b8",shortnames:[],category:"activity"},":gun:":{uc_base:"1f52b",uc_output:"1f52b",uc_match:"1f52b",uc_greedy:"1f52b",shortnames:[],category:"objects"},":hamburger:":{uc_base:"1f354",uc_output:"1f354",uc_match:"1f354",uc_greedy:"1f354",shortnames:[],category:"food"},":hammer:":{uc_base:"1f528",uc_output:"1f528",uc_match:"1f528",uc_greedy:"1f528",shortnames:[],category:"objects"},":hamster:":{uc_base:"1f439",uc_output:"1f439",uc_match:"1f439",uc_greedy:"1f439",shortnames:[],category:"nature"},":hand_splayed:":{uc_base:"1f590",uc_output:"1f590",uc_match:"1f590-fe0f",uc_greedy:"1f590-fe0f",shortnames:[":raised_hand_with_fingers_splayed:"],category:"people"},":handbag:":{uc_base:"1f45c",uc_output:"1f45c",uc_match:"1f45c",uc_greedy:"1f45c",shortnames:[],category:"people"},":handshake:":{uc_base:"1f91d",uc_output:"1f91d",uc_match:"1f91d",uc_greedy:"1f91d",shortnames:[":shaking_hands:"],category:"people"},":hatched_chick:":{uc_base:"1f425",uc_output:"1f425",uc_match:"1f425",uc_greedy:"1f425",shortnames:[],category:"nature"},":hatching_chick:":{uc_base:"1f423",uc_output:"1f423",uc_match:"1f423",uc_greedy:"1f423",shortnames:[],category:"nature"},":head_bandage:":{uc_base:"1f915",uc_output:"1f915",uc_match:"1f915",uc_greedy:"1f915",shortnames:[":face_with_head_bandage:"],category:"people"},":headphones:":{uc_base:"1f3a7",uc_output:"1f3a7",uc_match:"1f3a7-fe0f",uc_greedy:"1f3a7-fe0f",shortnames:[],category:"activity"},":hear_no_evil:":{uc_base:"1f649",uc_output:"1f649",uc_match:"1f649",uc_greedy:"1f649",shortnames:[],category:"nature"},":heart_decoration:":{uc_base:"1f49f",uc_output:"1f49f",uc_match:"1f49f",uc_greedy:"1f49f",shortnames:[],category:"symbols"},":heart_eyes:":{uc_base:"1f60d",uc_output:"1f60d",uc_match:"1f60d",uc_greedy:"1f60d",shortnames:[],category:"people"},":heart_eyes_cat:":{uc_base:"1f63b",uc_output:"1f63b",uc_match:"1f63b",uc_greedy:"1f63b",shortnames:[],category:"people"},":heartbeat:":{uc_base:"1f493",uc_output:"1f493",uc_match:"1f493",uc_greedy:"1f493",shortnames:[],category:"symbols"},":heartpulse:":{uc_base:"1f497",uc_output:"1f497",uc_match:"1f497",uc_greedy:"1f497",shortnames:[],category:"symbols"},":heavy_dollar_sign:":{uc_base:"1f4b2",uc_output:"1f4b2",uc_match:"1f4b2",uc_greedy:"1f4b2",shortnames:[],category:"symbols"},":hedgehog:":{uc_base:"1f994",uc_output:"1f994",uc_match:"1f994",uc_greedy:"1f994",shortnames:[],category:"nature"},":helicopter:":{uc_base:"1f681",uc_output:"1f681",uc_match:"1f681",uc_greedy:"1f681",shortnames:[],category:"travel"},":herb:":{uc_base:"1f33f",uc_output:"1f33f",uc_match:"1f33f",uc_greedy:"1f33f",shortnames:[],category:"nature"},":hibiscus:":{uc_base:"1f33a",uc_output:"1f33a",uc_match:"1f33a",uc_greedy:"1f33a",shortnames:[],category:"nature"},":high_brightness:":{uc_base:"1f506",uc_output:"1f506",uc_match:"1f506",uc_greedy:"1f506",shortnames:[],category:"symbols"},":high_heel:":{uc_base:"1f460",uc_output:"1f460",uc_match:"1f460",uc_greedy:"1f460",shortnames:[],category:"people"},":hockey:":{uc_base:"1f3d2",uc_output:"1f3d2",uc_match:"1f3d2",uc_greedy:"1f3d2",shortnames:[],category:"activity"},":hole:":{uc_base:"1f573",uc_output:"1f573",uc_match:"1f573-fe0f",uc_greedy:"1f573-fe0f",shortnames:[],category:"objects"},":homes:":{uc_base:"1f3d8",uc_output:"1f3d8",uc_match:"1f3d8-fe0f",uc_greedy:"1f3d8-fe0f",shortnames:[":house_buildings:"],category:"travel"},":honey_pot:":{uc_base:"1f36f",uc_output:"1f36f",uc_match:"1f36f",uc_greedy:"1f36f",shortnames:[],category:"food"},":horse:":{uc_base:"1f434",uc_output:"1f434",uc_match:"1f434",uc_greedy:"1f434",shortnames:[],category:"nature"},":horse_racing:":{uc_base:"1f3c7",uc_output:"1f3c7",uc_match:"1f3c7",uc_greedy:"1f3c7",shortnames:[],category:"activity"},":hospital:":{uc_base:"1f3e5",uc_output:"1f3e5",uc_match:"1f3e5",uc_greedy:"1f3e5",shortnames:[],category:"travel"},":hot_pepper:":{uc_base:"1f336",uc_output:"1f336",uc_match:"1f336-fe0f",uc_greedy:"1f336-fe0f",shortnames:[],category:"food"},":hotdog:":{uc_base:"1f32d",uc_output:"1f32d",uc_match:"1f32d",uc_greedy:"1f32d",shortnames:[":hot_dog:"],category:"food"},":hotel:":{uc_base:"1f3e8",uc_output:"1f3e8",uc_match:"1f3e8",uc_greedy:"1f3e8",shortnames:[],category:"travel"},":house:":{uc_base:"1f3e0",uc_output:"1f3e0",uc_match:"1f3e0-fe0f",uc_greedy:"1f3e0-fe0f",shortnames:[],category:"travel"},":house_abandoned:":{uc_base:"1f3da",uc_output:"1f3da",uc_match:"1f3da-fe0f",uc_greedy:"1f3da-fe0f",shortnames:[":derelict_house_building:"],category:"travel"},":house_with_garden:":{uc_base:"1f3e1",uc_output:"1f3e1",uc_match:"1f3e1",uc_greedy:"1f3e1",shortnames:[],category:"travel"},":hugging:":{uc_base:"1f917",uc_output:"1f917",uc_match:"1f917",uc_greedy:"1f917",shortnames:[":hugging_face:"],category:"people"},":hushed:":{uc_base:"1f62f",uc_output:"1f62f",uc_match:"1f62f",uc_greedy:"1f62f",shortnames:[],category:"people"},":ice_cream:":{uc_base:"1f368",uc_output:"1f368",uc_match:"1f368",uc_greedy:"1f368",shortnames:[],category:"food"},":icecream:":{uc_base:"1f366",uc_output:"1f366",uc_match:"1f366",uc_greedy:"1f366",shortnames:[],category:"food"},":id:":{uc_base:"1f194",uc_output:"1f194",uc_match:"1f194",uc_greedy:"1f194",shortnames:[],category:"symbols"},":ideograph_advantage:":{uc_base:"1f250",uc_output:"1f250",uc_match:"1f250",uc_greedy:"1f250",shortnames:[],category:"symbols"},":imp:":{uc_base:"1f47f",uc_output:"1f47f",uc_match:"1f47f",uc_greedy:"1f47f",shortnames:[],category:"people"},":inbox_tray:":{uc_base:"1f4e5",uc_output:"1f4e5",uc_match:"1f4e5-fe0f",uc_greedy:"1f4e5-fe0f",shortnames:[],category:"objects"},":incoming_envelope:":{uc_base:"1f4e8",uc_output:"1f4e8",uc_match:"1f4e8",uc_greedy:"1f4e8",shortnames:[],category:"objects"},":innocent:":{uc_base:"1f607",uc_output:"1f607",uc_match:"1f607",uc_greedy:"1f607",shortnames:[],category:"people"},":iphone:":{uc_base:"1f4f1",uc_output:"1f4f1",uc_match:"1f4f1",uc_greedy:"1f4f1",shortnames:[],category:"objects"},":island:":{uc_base:"1f3dd",uc_output:"1f3dd",uc_match:"1f3dd-fe0f",uc_greedy:"1f3dd-fe0f",shortnames:[":desert_island:"],category:"travel"},":izakaya_lantern:":{uc_base:"1f3ee",uc_output:"1f3ee",uc_match:"1f3ee",uc_greedy:"1f3ee",shortnames:[],category:"objects"},":jack_o_lantern:":{uc_base:"1f383",uc_output:"1f383",uc_match:"1f383",uc_greedy:"1f383",shortnames:[],category:"people"},":japan:":{uc_base:"1f5fe",uc_output:"1f5fe",uc_match:"1f5fe",uc_greedy:"1f5fe",shortnames:[],category:"travel"},":japanese_castle:":{uc_base:"1f3ef",uc_output:"1f3ef",uc_match:"1f3ef",uc_greedy:"1f3ef",shortnames:[],category:"travel"},":japanese_goblin:":{uc_base:"1f47a",uc_output:"1f47a",uc_match:"1f47a",uc_greedy:"1f47a",shortnames:[],category:"people"},":japanese_ogre:":{uc_base:"1f479",uc_output:"1f479",uc_match:"1f479",uc_greedy:"1f479",shortnames:[],category:"people"},":jeans:":{uc_base:"1f456",uc_output:"1f456",uc_match:"1f456",uc_greedy:"1f456",shortnames:[],category:"people"},":joy:":{uc_base:"1f602",uc_output:"1f602",uc_match:"1f602",uc_greedy:"1f602",shortnames:[],category:"people"},":joy_cat:":{uc_base:"1f639",uc_output:"1f639",uc_match:"1f639",uc_greedy:"1f639",shortnames:[],category:"people"},":joystick:":{uc_base:"1f579",uc_output:"1f579",uc_match:"1f579-fe0f",uc_greedy:"1f579-fe0f",shortnames:[],category:"objects"},":kaaba:":{uc_base:"1f54b",uc_output:"1f54b",uc_match:"1f54b",uc_greedy:"1f54b",shortnames:[],category:"travel"},":key2:":{uc_base:"1f5dd",uc_output:"1f5dd",uc_match:"1f5dd-fe0f",uc_greedy:"1f5dd",shortnames:[":old_key:"],category:"objects"},":key:":{uc_base:"1f511",uc_output:"1f511",uc_match:"1f511",uc_greedy:"1f511",shortnames:[],category:"objects"},":keycap_ten:":{uc_base:"1f51f",uc_output:"1f51f",uc_match:"1f51f",uc_greedy:"1f51f",shortnames:[],category:"symbols"},":kimono:":{uc_base:"1f458",uc_output:"1f458",uc_match:"1f458",uc_greedy:"1f458",shortnames:[],category:"people"},":kiss:":{uc_base:"1f48b",uc_output:"1f48b",uc_match:"1f48b",uc_greedy:"1f48b",shortnames:[],category:"people"},":kissing:":{uc_base:"1f617",uc_output:"1f617",uc_match:"1f617",uc_greedy:"1f617",shortnames:[],category:"people"},":kissing_cat:":{uc_base:"1f63d",uc_output:"1f63d",uc_match:"1f63d",uc_greedy:"1f63d",shortnames:[],category:"people"},":kissing_closed_eyes:":{uc_base:"1f61a",uc_output:"1f61a",uc_match:"1f61a",uc_greedy:"1f61a",shortnames:[],category:"people"},":kissing_heart:":{uc_base:"1f618",uc_output:"1f618",uc_match:"1f618",uc_greedy:"1f618",shortnames:[],category:"people"},":kissing_smiling_eyes:":{uc_base:"1f619",uc_output:"1f619",uc_match:"1f619",uc_greedy:"1f619",shortnames:[],category:"people"},":kiwi:":{uc_base:"1f95d",uc_output:"1f95d",uc_match:"1f95d",uc_greedy:"1f95d",shortnames:[":kiwifruit:"],category:"food"},":knife:":{uc_base:"1f52a",uc_output:"1f52a",uc_match:"1f52a",uc_greedy:"1f52a",shortnames:[],category:"objects"},":koala:":{uc_base:"1f428",uc_output:"1f428",uc_match:"1f428",uc_greedy:"1f428",shortnames:[],category:"nature"},":koko:":{uc_base:"1f201",uc_output:"1f201",uc_match:"1f201",uc_greedy:"1f201",shortnames:[],category:"symbols"},":label:":{uc_base:"1f3f7",uc_output:"1f3f7",uc_match:"1f3f7-fe0f",uc_greedy:"1f3f7-fe0f",shortnames:[],category:"objects"},":large_blue_diamond:":{uc_base:"1f537",uc_output:"1f537",uc_match:"1f537",uc_greedy:"1f537",shortnames:[],category:"symbols"},":large_orange_diamond:":{uc_base:"1f536",uc_output:"1f536",uc_match:"1f536",uc_greedy:"1f536",shortnames:[],category:"symbols"},":last_quarter_moon:":{uc_base:"1f317",uc_output:"1f317",uc_match:"1f317",uc_greedy:"1f317",shortnames:[],category:"nature"},":last_quarter_moon_with_face:":{uc_base:"1f31c",uc_output:"1f31c",uc_match:"1f31c-fe0f",uc_greedy:"1f31c-fe0f",shortnames:[],category:"nature"},":laughing:":{uc_base:"1f606",uc_output:"1f606",uc_match:"1f606",uc_greedy:"1f606",shortnames:[":satisfied:"],category:"people"},":leaves:":{uc_base:"1f343",uc_output:"1f343",uc_match:"1f343",uc_greedy:"1f343",shortnames:[],category:"nature"},":ledger:":{uc_base:"1f4d2",uc_output:"1f4d2",uc_match:"1f4d2",uc_greedy:"1f4d2",shortnames:[],category:"objects"},":left_facing_fist:":{uc_base:"1f91b",uc_output:"1f91b",uc_match:"1f91b",uc_greedy:"1f91b",shortnames:[":left_fist:"],category:"people"},":left_luggage:":{uc_base:"1f6c5",uc_output:"1f6c5",uc_match:"1f6c5",uc_greedy:"1f6c5",shortnames:[],category:"symbols"},":lemon:":{uc_base:"1f34b",uc_output:"1f34b",uc_match:"1f34b",uc_greedy:"1f34b",shortnames:[],category:"food"},":leopard:":{uc_base:"1f406",uc_output:"1f406",uc_match:"1f406",uc_greedy:"1f406",shortnames:[],category:"nature"},":level_slider:":{uc_base:"1f39a",uc_output:"1f39a",uc_match:"1f39a-fe0f",uc_greedy:"1f39a-fe0f",shortnames:[],category:"objects"},":levitate:":{uc_base:"1f574",uc_output:"1f574",uc_match:"1f574-fe0f",uc_greedy:"1f574-fe0f",shortnames:[":man_in_business_suit_levitating:"],category:"people"},":light_rail:":{uc_base:"1f688",uc_output:"1f688",uc_match:"1f688",uc_greedy:"1f688",shortnames:[],category:"travel"},":link:":{uc_base:"1f517",uc_output:"1f517",uc_match:"1f517",uc_greedy:"1f517",shortnames:[],category:"objects"},":lion_face:":{uc_base:"1f981",uc_output:"1f981",uc_match:"1f981",uc_greedy:"1f981",shortnames:[":lion:"],category:"nature"},":lips:":{uc_base:"1f444",uc_output:"1f444",uc_match:"1f444",uc_greedy:"1f444",shortnames:[],category:"people"},":lipstick:":{uc_base:"1f484",uc_output:"1f484",uc_match:"1f484",uc_greedy:"1f484",shortnames:[],category:"people"},":lizard:":{uc_base:"1f98e",uc_output:"1f98e",uc_match:"1f98e",uc_greedy:"1f98e",shortnames:[],category:"nature"},":lock:":{uc_base:"1f512",uc_output:"1f512",uc_match:"1f512-fe0f",uc_greedy:"1f512-fe0f",shortnames:[],category:"objects"},":lock_with_ink_pen:":{uc_base:"1f50f",uc_output:"1f50f",uc_match:"1f50f",uc_greedy:"1f50f",shortnames:[],category:"objects"},":lollipop:":{uc_base:"1f36d",uc_output:"1f36d",uc_match:"1f36d",uc_greedy:"1f36d",shortnames:[],category:"food"},":loud_sound:":{uc_base:"1f50a",uc_output:"1f50a",uc_match:"1f50a",uc_greedy:"1f50a",shortnames:[],category:"symbols"},":loudspeaker:":{uc_base:"1f4e2",uc_output:"1f4e2",uc_match:"1f4e2",uc_greedy:"1f4e2",shortnames:[],category:"symbols"},":love_hotel:":{uc_base:"1f3e9",uc_output:"1f3e9",uc_match:"1f3e9",uc_greedy:"1f3e9",shortnames:[],category:"travel"},":love_letter:":{uc_base:"1f48c",uc_output:"1f48c",uc_match:"1f48c",uc_greedy:"1f48c",shortnames:[],category:"objects"},":love_you_gesture:":{uc_base:"1f91f",uc_output:"1f91f",uc_match:"1f91f",uc_greedy:"1f91f",shortnames:[],category:"people"},":low_brightness:":{uc_base:"1f505",uc_output:"1f505",uc_match:"1f505",uc_greedy:"1f505",shortnames:[],category:"symbols"},":lying_face:":{uc_base:"1f925",uc_output:"1f925",uc_match:"1f925",uc_greedy:"1f925",shortnames:[":liar:"],category:"people"},":mag:":{uc_base:"1f50d",uc_output:"1f50d",uc_match:"1f50d-fe0f",uc_greedy:"1f50d-fe0f",shortnames:[],category:"objects"},":mag_right:":{uc_base:"1f50e",uc_output:"1f50e",uc_match:"1f50e",uc_greedy:"1f50e",shortnames:[],category:"objects"},":mage:":{uc_base:"1f9d9",uc_output:"1f9d9",uc_match:"1f9d9",uc_greedy:"1f9d9",shortnames:[],category:"people"},":mahjong:":{uc_base:"1f004",uc_output:"1f004",uc_match:"1f004-fe0f",uc_greedy:"1f004-fe0f",shortnames:[],category:"symbols"},":mailbox:":{uc_base:"1f4eb",uc_output:"1f4eb",uc_match:"1f4eb-fe0f",uc_greedy:"1f4eb-fe0f",shortnames:[],category:"objects"},":mailbox_closed:":{uc_base:"1f4ea",uc_output:"1f4ea",uc_match:"1f4ea-fe0f",uc_greedy:"1f4ea-fe0f",shortnames:[],category:"objects"},":mailbox_with_mail:":{uc_base:"1f4ec",uc_output:"1f4ec",uc_match:"1f4ec-fe0f",uc_greedy:"1f4ec-fe0f",shortnames:[],category:"objects"},":mailbox_with_no_mail:":{uc_base:"1f4ed",uc_output:"1f4ed",uc_match:"1f4ed-fe0f",uc_greedy:"1f4ed-fe0f",shortnames:[],category:"objects"},":man:":{uc_base:"1f468",uc_output:"1f468",uc_match:"1f468",uc_greedy:"1f468",shortnames:[],category:"people"},":man_dancing:":{uc_base:"1f57a",uc_output:"1f57a",uc_match:"1f57a",uc_greedy:"1f57a",shortnames:[":male_dancer:"],category:"people"},":man_in_tuxedo:":{uc_base:"1f935",uc_output:"1f935",uc_match:"1f935",uc_greedy:"1f935",shortnames:[],category:"people"},":man_with_chinese_cap:":{uc_base:"1f472",uc_output:"1f472",uc_match:"1f472",uc_greedy:"1f472",shortnames:[":man_with_gua_pi_mao:"],category:"people"},":mans_shoe:":{uc_base:"1f45e",uc_output:"1f45e",uc_match:"1f45e",uc_greedy:"1f45e",shortnames:[],category:"people"},":map:":{uc_base:"1f5fa",uc_output:"1f5fa",uc_match:"1f5fa-fe0f",uc_greedy:"1f5fa-fe0f",shortnames:[":world_map:"],category:"travel"},":maple_leaf:":{uc_base:"1f341",uc_output:"1f341",uc_match:"1f341",uc_greedy:"1f341",shortnames:[],category:"nature"},":martial_arts_uniform:":{uc_base:"1f94b",uc_output:"1f94b",uc_match:"1f94b",uc_greedy:"1f94b",shortnames:[":karate_uniform:"],category:"activity"},":mask:":{uc_base:"1f637",uc_output:"1f637",uc_match:"1f637",uc_greedy:"1f637",shortnames:[],category:"people"},":meat_on_bone:":{uc_base:"1f356",uc_output:"1f356",uc_match:"1f356",uc_greedy:"1f356",shortnames:[],category:"food"},":medal:":{uc_base:"1f3c5",uc_output:"1f3c5",uc_match:"1f3c5",uc_greedy:"1f3c5",shortnames:[":sports_medal:"],category:"activity"},":mega:":{uc_base:"1f4e3",uc_output:"1f4e3",uc_match:"1f4e3",uc_greedy:"1f4e3",shortnames:[],category:"symbols"},":melon:":{uc_base:"1f348",uc_output:"1f348",uc_match:"1f348",uc_greedy:"1f348",shortnames:[],category:"food"},":menorah:":{uc_base:"1f54e",uc_output:"1f54e",uc_match:"1f54e",uc_greedy:"1f54e",shortnames:[],category:"symbols"},":mens:":{uc_base:"1f6b9",uc_output:"1f6b9",uc_match:"1f6b9-fe0f",uc_greedy:"1f6b9-fe0f",shortnames:[],category:"symbols"},":merperson:":{uc_base:"1f9dc",uc_output:"1f9dc",uc_match:"1f9dc",uc_greedy:"1f9dc",shortnames:[],category:"people"},":metal:":{uc_base:"1f918",uc_output:"1f918",uc_match:"1f918",uc_greedy:"1f918",shortnames:[":sign_of_the_horns:"],category:"people"},":metro:":{uc_base:"1f687",uc_output:"1f687",uc_match:"1f687-fe0f",uc_greedy:"1f687-fe0f",shortnames:[],category:"travel"},":microphone2:":{uc_base:"1f399",uc_output:"1f399",uc_match:"1f399-fe0f",uc_greedy:"1f399-fe0f",shortnames:[":studio_microphone:"],category:"objects"},":microphone:":{uc_base:"1f3a4",uc_output:"1f3a4",uc_match:"1f3a4",uc_greedy:"1f3a4",shortnames:[],category:"activity"},":microscope:":{uc_base:"1f52c",uc_output:"1f52c",uc_match:"1f52c",uc_greedy:"1f52c",shortnames:[],category:"objects"},":middle_finger:":{uc_base:"1f595",uc_output:"1f595",uc_match:"1f595",uc_greedy:"1f595",shortnames:[":reversed_hand_with_middle_finger_extended:"],category:"people"},":military_medal:":{uc_base:"1f396",uc_output:"1f396",uc_match:"1f396-fe0f",uc_greedy:"1f396-fe0f",shortnames:[],category:"activity"},":milk:":{uc_base:"1f95b",uc_output:"1f95b",uc_match:"1f95b",uc_greedy:"1f95b",shortnames:[":glass_of_milk:"],category:"food"},":milky_way:":{uc_base:"1f30c",uc_output:"1f30c",uc_match:"1f30c",uc_greedy:"1f30c",shortnames:[],category:"travel"},":minibus:":{uc_base:"1f690",uc_output:"1f690",uc_match:"1f690",uc_greedy:"1f690",shortnames:[],category:"travel"},":minidisc:":{uc_base:"1f4bd",uc_output:"1f4bd",uc_match:"1f4bd",uc_greedy:"1f4bd",shortnames:[],category:"objects"},":mobile_phone_off:":{uc_base:"1f4f4",uc_output:"1f4f4",uc_match:"1f4f4",uc_greedy:"1f4f4",shortnames:[],category:"symbols"},":money_mouth:":{uc_base:"1f911",uc_output:"1f911",uc_match:"1f911",uc_greedy:"1f911",shortnames:[":money_mouth_face:"],category:"people"},":money_with_wings:":{uc_base:"1f4b8",uc_output:"1f4b8",uc_match:"1f4b8",uc_greedy:"1f4b8",shortnames:[],category:"objects"},":moneybag:":{uc_base:"1f4b0",uc_output:"1f4b0",uc_match:"1f4b0-fe0f",uc_greedy:"1f4b0-fe0f",shortnames:[],category:"objects"},":monkey:":{uc_base:"1f412",uc_output:"1f412",uc_match:"1f412",uc_greedy:"1f412",shortnames:[],category:"nature"},":monkey_face:":{uc_base:"1f435",uc_output:"1f435",uc_match:"1f435",uc_greedy:"1f435",shortnames:[],category:"nature"},":monorail:":{uc_base:"1f69d",uc_output:"1f69d",uc_match:"1f69d",uc_greedy:"1f69d",shortnames:[],category:"travel"},":mortar_board:":{uc_base:"1f393",uc_output:"1f393",uc_match:"1f393-fe0f",uc_greedy:"1f393-fe0f",shortnames:[],category:"people"},":mosque:":{uc_base:"1f54c",uc_output:"1f54c",uc_match:"1f54c",uc_greedy:"1f54c",shortnames:[],category:"travel"},":motor_scooter:":{uc_base:"1f6f5",uc_output:"1f6f5",uc_match:"1f6f5",uc_greedy:"1f6f5",shortnames:[":motorbike:"],category:"travel"},":motorboat:":{uc_base:"1f6e5",uc_output:"1f6e5",uc_match:"1f6e5-fe0f",uc_greedy:"1f6e5-fe0f",shortnames:[],category:"travel"},":motorcycle:":{uc_base:"1f3cd",uc_output:"1f3cd",uc_match:"1f3cd-fe0f",uc_greedy:"1f3cd-fe0f",shortnames:[":racing_motorcycle:"],category:"travel"},":motorway:":{uc_base:"1f6e3",uc_output:"1f6e3",uc_match:"1f6e3-fe0f",uc_greedy:"1f6e3-fe0f",shortnames:[],category:"travel"},":mount_fuji:":{uc_base:"1f5fb",uc_output:"1f5fb",uc_match:"1f5fb",uc_greedy:"1f5fb",shortnames:[],category:"travel"},":mountain_cableway:":{uc_base:"1f6a0",uc_output:"1f6a0",uc_match:"1f6a0",uc_greedy:"1f6a0",shortnames:[],category:"travel"},":mountain_railway:":{uc_base:"1f69e",uc_output:"1f69e",uc_match:"1f69e",uc_greedy:"1f69e",shortnames:[],category:"travel"},":mountain_snow:":{uc_base:"1f3d4",uc_output:"1f3d4",uc_match:"1f3d4-fe0f",uc_greedy:"1f3d4-fe0f",shortnames:[":snow_capped_mountain:"],category:"travel"},":mouse2:":{uc_base:"1f401",uc_output:"1f401",uc_match:"1f401",uc_greedy:"1f401",shortnames:[],category:"nature"},":mouse:":{uc_base:"1f42d",uc_output:"1f42d",uc_match:"1f42d",uc_greedy:"1f42d",shortnames:[],category:"nature"},":mouse_three_button:":{uc_base:"1f5b1",uc_output:"1f5b1",uc_match:"1f5b1-fe0f",uc_greedy:"1f5b1-fe0f",shortnames:[":three_button_mouse:"],category:"objects"},":movie_camera:":{uc_base:"1f3a5",uc_output:"1f3a5",uc_match:"1f3a5",uc_greedy:"1f3a5",shortnames:[],category:"objects"},":moyai:":{uc_base:"1f5ff",uc_output:"1f5ff",uc_match:"1f5ff",uc_greedy:"1f5ff",shortnames:[],category:"travel"},":mrs_claus:":{uc_base:"1f936",uc_output:"1f936",uc_match:"1f936",uc_greedy:"1f936",shortnames:[":mother_christmas:"],category:"people"},":muscle:":{uc_base:"1f4aa",uc_output:"1f4aa",uc_match:"1f4aa",uc_greedy:"1f4aa",shortnames:[],category:"people"},":mushroom:":{uc_base:"1f344",uc_output:"1f344",uc_match:"1f344",uc_greedy:"1f344",shortnames:[],category:"nature"},":musical_keyboard:":{uc_base:"1f3b9",uc_output:"1f3b9",uc_match:"1f3b9",uc_greedy:"1f3b9",shortnames:[],category:"activity"},":musical_note:":{uc_base:"1f3b5",uc_output:"1f3b5",uc_match:"1f3b5",uc_greedy:"1f3b5",shortnames:[],category:"symbols"},":musical_score:":{uc_base:"1f3bc",uc_output:"1f3bc",uc_match:"1f3bc",uc_greedy:"1f3bc",shortnames:[],category:"activity"},":mute:":{uc_base:"1f507",uc_output:"1f507",uc_match:"1f507",uc_greedy:"1f507",shortnames:[],category:"symbols"},":nail_care:":{uc_base:"1f485",uc_output:"1f485",uc_match:"1f485",uc_greedy:"1f485",shortnames:[],category:"people"},":name_badge:":{uc_base:"1f4db",uc_output:"1f4db",uc_match:"1f4db",uc_greedy:"1f4db",shortnames:[],category:"symbols"},":nauseated_face:":{uc_base:"1f922",uc_output:"1f922",uc_match:"1f922",uc_greedy:"1f922",shortnames:[":sick:"],category:"people"},":necktie:":{uc_base:"1f454",uc_output:"1f454",uc_match:"1f454",uc_greedy:"1f454",shortnames:[],category:"people"},":nerd:":{uc_base:"1f913",uc_output:"1f913",uc_match:"1f913",uc_greedy:"1f913",shortnames:[":nerd_face:"],category:"people"},":neutral_face:":{uc_base:"1f610",uc_output:"1f610",uc_match:"1f610-fe0f",uc_greedy:"1f610-fe0f",shortnames:[],category:"people"},":new:":{uc_base:"1f195",uc_output:"1f195",uc_match:"1f195",uc_greedy:"1f195",shortnames:[],category:"symbols"},":new_moon:":{uc_base:"1f311",uc_output:"1f311",uc_match:"1f311",uc_greedy:"1f311",shortnames:[],category:"nature"},":new_moon_with_face:":{uc_base:"1f31a",uc_output:"1f31a",uc_match:"1f31a",uc_greedy:"1f31a",shortnames:[],category:"nature"},":newspaper2:":{uc_base:"1f5de",uc_output:"1f5de",uc_match:"1f5de-fe0f",uc_greedy:"1f5de-fe0f",shortnames:[":rolled_up_newspaper:"],category:"objects"},":newspaper:":{uc_base:"1f4f0",uc_output:"1f4f0",uc_match:"1f4f0",uc_greedy:"1f4f0",shortnames:[],category:"objects"},":ng:":{uc_base:"1f196",uc_output:"1f196",uc_match:"1f196",uc_greedy:"1f196",shortnames:[],category:"symbols"},":night_with_stars:":{uc_base:"1f303",uc_output:"1f303",uc_match:"1f303",uc_greedy:"1f303",shortnames:[],category:"travel"},":no_bell:":{uc_base:"1f515",uc_output:"1f515",uc_match:"1f515",uc_greedy:"1f515",shortnames:[],category:"symbols"},":no_bicycles:":{uc_base:"1f6b3",uc_output:"1f6b3",uc_match:"1f6b3",uc_greedy:"1f6b3",shortnames:[],category:"symbols"},":no_entry_sign:":{uc_base:"1f6ab",uc_output:"1f6ab",uc_match:"1f6ab",uc_greedy:"1f6ab",shortnames:[],category:"symbols"},":no_mobile_phones:":{uc_base:"1f4f5",uc_output:"1f4f5",uc_match:"1f4f5",uc_greedy:"1f4f5",shortnames:[],category:"symbols"},":no_mouth:":{uc_base:"1f636",uc_output:"1f636",uc_match:"1f636",uc_greedy:"1f636",shortnames:[],category:"people"},":no_pedestrians:":{uc_base:"1f6b7",uc_output:"1f6b7",uc_match:"1f6b7",uc_greedy:"1f6b7",shortnames:[],category:"symbols"},":no_smoking:":{uc_base:"1f6ad",uc_output:"1f6ad",uc_match:"1f6ad-fe0f",uc_greedy:"1f6ad-fe0f",shortnames:[],category:"symbols"},":non-potable_water:":{uc_base:"1f6b1",uc_output:"1f6b1",uc_match:"1f6b1",uc_greedy:"1f6b1",shortnames:[],category:"symbols"},":nose:":{uc_base:"1f443",uc_output:"1f443",uc_match:"1f443",uc_greedy:"1f443",shortnames:[],category:"people"},":notebook:":{uc_base:"1f4d3",uc_output:"1f4d3",uc_match:"1f4d3",uc_greedy:"1f4d3",shortnames:[],category:"objects"},":notebook_with_decorative_cover:":{uc_base:"1f4d4",uc_output:"1f4d4",uc_match:"1f4d4",uc_greedy:"1f4d4",shortnames:[],category:"objects"},":notepad_spiral:":{uc_base:"1f5d2",uc_output:"1f5d2",uc_match:"1f5d2-fe0f",uc_greedy:"1f5d2-fe0f",shortnames:[":spiral_note_pad:"],category:"objects"},":notes:":{uc_base:"1f3b6",uc_output:"1f3b6",uc_match:"1f3b6",uc_greedy:"1f3b6",shortnames:[],category:"symbols"},":nut_and_bolt:":{uc_base:"1f529",uc_output:"1f529",uc_match:"1f529",uc_greedy:"1f529",shortnames:[],category:"objects"},":o2:":{uc_base:"1f17e",uc_output:"1f17e",uc_match:"1f17e-fe0f",uc_greedy:"1f17e-fe0f",shortnames:[],category:"symbols"},":ocean:":{uc_base:"1f30a",uc_output:"1f30a",uc_match:"1f30a",uc_greedy:"1f30a",shortnames:[],category:"nature"},":octagonal_sign:":{uc_base:"1f6d1",uc_output:"1f6d1",uc_match:"1f6d1",uc_greedy:"1f6d1",shortnames:[":stop_sign:"],category:"symbols"},":octopus:":{uc_base:"1f419",uc_output:"1f419",uc_match:"1f419",uc_greedy:"1f419",shortnames:[],category:"nature"},":oden:":{uc_base:"1f362",uc_output:"1f362",uc_match:"1f362",uc_greedy:"1f362",shortnames:[],category:"food"},":office:":{uc_base:"1f3e2",uc_output:"1f3e2",uc_match:"1f3e2",uc_greedy:"1f3e2",shortnames:[],category:"travel"},":oil:":{uc_base:"1f6e2",uc_output:"1f6e2",uc_match:"1f6e2-fe0f",uc_greedy:"1f6e2-fe0f",shortnames:[":oil_drum:"],category:"objects"},":ok:":{uc_base:"1f197",uc_output:"1f197",uc_match:"1f197",uc_greedy:"1f197",shortnames:[],category:"symbols"},":ok_hand:":{uc_base:"1f44c",uc_output:"1f44c",uc_match:"1f44c",uc_greedy:"1f44c",shortnames:[],category:"people"},":older_adult:":{uc_base:"1f9d3",uc_output:"1f9d3",uc_match:"1f9d3",uc_greedy:"1f9d3",shortnames:[],category:"people"},":older_man:":{uc_base:"1f474",uc_output:"1f474",uc_match:"1f474",uc_greedy:"1f474",shortnames:[],category:"people"},":older_woman:":{uc_base:"1f475",uc_output:"1f475",uc_match:"1f475",uc_greedy:"1f475",shortnames:[":grandma:"],category:"people"},":om_symbol:":{uc_base:"1f549",uc_output:"1f549",uc_match:"1f549-fe0f",uc_greedy:"1f549",shortnames:[],category:"symbols"},":on:":{uc_base:"1f51b",uc_output:"1f51b",uc_match:"1f51b",uc_greedy:"1f51b",shortnames:[],category:"symbols"},":oncoming_automobile:":{uc_base:"1f698",uc_output:"1f698",uc_match:"1f698-fe0f",uc_greedy:"1f698-fe0f",shortnames:[],category:"travel"},":oncoming_bus:":{uc_base:"1f68d",uc_output:"1f68d",uc_match:"1f68d-fe0f",uc_greedy:"1f68d-fe0f",shortnames:[],category:"travel"},":oncoming_police_car:":{uc_base:"1f694",uc_output:"1f694",uc_match:"1f694-fe0f",uc_greedy:"1f694-fe0f",shortnames:[],category:"travel"},":oncoming_taxi:":{uc_base:"1f696",uc_output:"1f696",uc_match:"1f696",uc_greedy:"1f696",shortnames:[],category:"travel"},":open_file_folder:":{uc_base:"1f4c2",uc_output:"1f4c2",uc_match:"1f4c2",uc_greedy:"1f4c2",shortnames:[],category:"objects"},":open_hands:":{uc_base:"1f450",uc_output:"1f450",uc_match:"1f450",uc_greedy:"1f450",shortnames:[],category:"people"},":open_mouth:":{uc_base:"1f62e",uc_output:"1f62e",uc_match:"1f62e",uc_greedy:"1f62e",shortnames:[],category:"people"},":orange_book:":{uc_base:"1f4d9",uc_output:"1f4d9",uc_match:"1f4d9",uc_greedy:"1f4d9",shortnames:[],category:"objects"},":orange_heart:":{uc_base:"1f9e1",uc_output:"1f9e1",uc_match:"1f9e1",uc_greedy:"1f9e1",shortnames:[],category:"symbols"},":outbox_tray:":{uc_base:"1f4e4",uc_output:"1f4e4",uc_match:"1f4e4-fe0f",uc_greedy:"1f4e4-fe0f",shortnames:[],category:"objects"},":owl:":{uc_base:"1f989",uc_output:"1f989",uc_match:"1f989",uc_greedy:"1f989",shortnames:[],category:"nature"},":ox:":{uc_base:"1f402",uc_output:"1f402",uc_match:"1f402",uc_greedy:"1f402",shortnames:[],category:"nature"},":package:":{uc_base:"1f4e6",uc_output:"1f4e6",uc_match:"1f4e6-fe0f",uc_greedy:"1f4e6-fe0f",shortnames:[],category:"objects"},":page_facing_up:":{uc_base:"1f4c4",uc_output:"1f4c4",uc_match:"1f4c4",uc_greedy:"1f4c4",shortnames:[],category:"objects"},":page_with_curl:":{uc_base:"1f4c3",uc_output:"1f4c3",uc_match:"1f4c3",uc_greedy:"1f4c3",shortnames:[],category:"objects"},":pager:":{uc_base:"1f4df",uc_output:"1f4df",uc_match:"1f4df-fe0f",uc_greedy:"1f4df-fe0f",shortnames:[],category:"objects"},":paintbrush:":{uc_base:"1f58c",uc_output:"1f58c",uc_match:"1f58c-fe0f",uc_greedy:"1f58c-fe0f",shortnames:[":lower_left_paintbrush:"],category:"objects"},":palm_tree:":{uc_base:"1f334",uc_output:"1f334",uc_match:"1f334",uc_greedy:"1f334",shortnames:[],category:"nature"},":palms_up_together:":{uc_base:"1f932",uc_output:"1f932",uc_match:"1f932",uc_greedy:"1f932",shortnames:[],category:"people"},":pancakes:":{uc_base:"1f95e",uc_output:"1f95e",uc_match:"1f95e",uc_greedy:"1f95e",shortnames:[],category:"food"},":panda_face:":{uc_base:"1f43c",uc_output:"1f43c",uc_match:"1f43c",uc_greedy:"1f43c",shortnames:[],category:"nature"},":paperclip:":{uc_base:"1f4ce",uc_output:"1f4ce",uc_match:"1f4ce",uc_greedy:"1f4ce",shortnames:[],category:"objects"},":paperclips:":{uc_base:"1f587",uc_output:"1f587",uc_match:"1f587-fe0f",uc_greedy:"1f587-fe0f",shortnames:[":linked_paperclips:"],category:"objects"},":park:":{uc_base:"1f3de",uc_output:"1f3de",uc_match:"1f3de-fe0f",uc_greedy:"1f3de-fe0f",shortnames:[":national_park:"],category:"travel"},":parking:":{uc_base:"1f17f",uc_output:"1f17f",uc_match:"1f17f-fe0f",uc_greedy:"1f17f-fe0f",shortnames:[],category:"symbols"},":passport_control:":{uc_base:"1f6c2",uc_output:"1f6c2",uc_match:"1f6c2",uc_greedy:"1f6c2",shortnames:[],category:"symbols"},":peach:":{uc_base:"1f351",uc_output:"1f351",uc_match:"1f351",uc_greedy:"1f351",shortnames:[],category:"food"},":peanuts:":{uc_base:"1f95c",uc_output:"1f95c",uc_match:"1f95c",uc_greedy:"1f95c",shortnames:[":shelled_peanut:"],category:"food"},":pear:":{uc_base:"1f350",uc_output:"1f350",uc_match:"1f350",uc_greedy:"1f350",shortnames:[],category:"food"},":pen_ballpoint:":{uc_base:"1f58a",uc_output:"1f58a",uc_match:"1f58a-fe0f",uc_greedy:"1f58a-fe0f",shortnames:[":lower_left_ballpoint_pen:"],category:"objects"},":pen_fountain:":{uc_base:"1f58b",uc_output:"1f58b",uc_match:"1f58b-fe0f",uc_greedy:"1f58b-fe0f",shortnames:[":lower_left_fountain_pen:"],category:"objects"},":pencil:":{uc_base:"1f4dd",uc_output:"1f4dd",uc_match:"1f4dd",uc_greedy:"1f4dd",shortnames:[":memo:"],category:"objects"},":penguin:":{uc_base:"1f427",uc_output:"1f427",uc_match:"1f427",uc_greedy:"1f427",shortnames:[],category:"nature"},":pensive:":{uc_base:"1f614",uc_output:"1f614",uc_match:"1f614",uc_greedy:"1f614",shortnames:[],category:"people"},":people_with_bunny_ears_partying:":{uc_base:"1f46f",uc_output:"1f46f",uc_match:"1f46f",uc_greedy:"1f46f",shortnames:[":dancers:"],category:"people"},":people_wrestling:":{uc_base:"1f93c",uc_output:"1f93c",uc_match:"1f93c",uc_greedy:"1f93c",shortnames:[":wrestlers:",":wrestling:"],category:"activity"},":performing_arts:":{uc_base:"1f3ad",uc_output:"1f3ad",uc_match:"1f3ad-fe0f",uc_greedy:"1f3ad-fe0f",shortnames:[],category:"activity"},":persevere:":{uc_base:"1f623",uc_output:"1f623",uc_match:"1f623",uc_greedy:"1f623",shortnames:[],category:"people"},":person_biking:":{uc_base:"1f6b4",uc_output:"1f6b4",uc_match:"1f6b4",uc_greedy:"1f6b4",shortnames:[":bicyclist:"],category:"activity"},":person_bowing:":{uc_base:"1f647",uc_output:"1f647",uc_match:"1f647",uc_greedy:"1f647",shortnames:[":bow:"],category:"people"},":person_climbing:":{uc_base:"1f9d7",uc_output:"1f9d7",uc_match:"1f9d7",uc_greedy:"1f9d7",shortnames:[],category:"activity"},":person_doing_cartwheel:":{uc_base:"1f938",uc_output:"1f938",uc_match:"1f938",uc_greedy:"1f938",shortnames:[":cartwheel:"],category:"activity"},":person_facepalming:":{uc_base:"1f926",uc_output:"1f926",uc_match:"1f926",uc_greedy:"1f926",shortnames:[":face_palm:",":facepalm:"],category:"people"},":person_fencing:":{uc_base:"1f93a",uc_output:"1f93a",uc_match:"1f93a",uc_greedy:"1f93a",shortnames:[":fencer:",":fencing:"],category:"activity"},":person_frowning:":{uc_base:"1f64d",uc_output:"1f64d",uc_match:"1f64d",uc_greedy:"1f64d",shortnames:[],category:"people"},":person_gesturing_no:":{uc_base:"1f645",uc_output:"1f645",uc_match:"1f645",uc_greedy:"1f645",shortnames:[":no_good:"],category:"people"},":person_gesturing_ok:":{uc_base:"1f646",uc_output:"1f646",uc_match:"1f646",uc_greedy:"1f646",shortnames:[":ok_woman:"],category:"people"},":person_getting_haircut:":{uc_base:"1f487",uc_output:"1f487",uc_match:"1f487",uc_greedy:"1f487",shortnames:[":haircut:"],category:"people"},":person_getting_massage:":{uc_base:"1f486",uc_output:"1f486",uc_match:"1f486",uc_greedy:"1f486",shortnames:[":massage:"],category:"people"},":person_golfing:":{uc_base:"1f3cc",uc_output:"1f3cc",uc_match:"1f3cc-fe0f",uc_greedy:"1f3cc-fe0f",shortnames:[":golfer:"],category:"activity"},":person_in_lotus_position:":{uc_base:"1f9d8",uc_output:"1f9d8",uc_match:"1f9d8",uc_greedy:"1f9d8",shortnames:[],category:"activity"},":person_in_steamy_room:":{uc_base:"1f9d6",uc_output:"1f9d6",uc_match:"1f9d6",uc_greedy:"1f9d6",shortnames:[],category:"people"},":person_juggling:":{uc_base:"1f939",uc_output:"1f939",uc_match:"1f939",uc_greedy:"1f939",shortnames:[":juggling:",":juggler:"],category:"activity"},":person_lifting_weights:":{uc_base:"1f3cb",uc_output:"1f3cb",uc_match:"1f3cb-fe0f",uc_greedy:"1f3cb-fe0f",shortnames:[":lifter:",":weight_lifter:"],category:"activity"},":person_mountain_biking:":{uc_base:"1f6b5",uc_output:"1f6b5",uc_match:"1f6b5",uc_greedy:"1f6b5",shortnames:[":mountain_bicyclist:"],category:"activity"},":person_playing_handball:":{uc_base:"1f93e",uc_output:"1f93e",uc_match:"1f93e",uc_greedy:"1f93e",shortnames:[":handball:"],category:"activity"},":person_playing_water_polo:":{uc_base:"1f93d",uc_output:"1f93d",uc_match:"1f93d",uc_greedy:"1f93d",shortnames:[":water_polo:"],category:"activity"},":person_pouting:":{uc_base:"1f64e",uc_output:"1f64e",uc_match:"1f64e",uc_greedy:"1f64e",shortnames:[":person_with_pouting_face:"],category:"people"},":person_raising_hand:":{uc_base:"1f64b",uc_output:"1f64b",uc_match:"1f64b",uc_greedy:"1f64b",shortnames:[":raising_hand:"],category:"people"},":person_rowing_boat:":{uc_base:"1f6a3",uc_output:"1f6a3",uc_match:"1f6a3",uc_greedy:"1f6a3",shortnames:[":rowboat:"],category:"activity"},":person_running:":{uc_base:"1f3c3",uc_output:"1f3c3",uc_match:"1f3c3",uc_greedy:"1f3c3",shortnames:[":runner:"],category:"people"},":person_shrugging:":{uc_base:"1f937",uc_output:"1f937",uc_match:"1f937",uc_greedy:"1f937",shortnames:[":shrug:"],category:"people"},":person_surfing:":{uc_base:"1f3c4",uc_output:"1f3c4",uc_match:"1f3c4-fe0f",uc_greedy:"1f3c4-fe0f",shortnames:[":surfer:"],category:"activity"},":person_swimming:":{uc_base:"1f3ca",uc_output:"1f3ca",uc_match:"1f3ca-fe0f",uc_greedy:"1f3ca-fe0f",shortnames:[":swimmer:"],category:"activity"},":person_tipping_hand:":{uc_base:"1f481",uc_output:"1f481",uc_match:"1f481",uc_greedy:"1f481",shortnames:[":information_desk_person:"],category:"people"},":person_walking:":{uc_base:"1f6b6",uc_output:"1f6b6",uc_match:"1f6b6",uc_greedy:"1f6b6",shortnames:[":walking:"],category:"people"},":person_wearing_turban:":{uc_base:"1f473",uc_output:"1f473",uc_match:"1f473",uc_greedy:"1f473",shortnames:[":man_with_turban:"],category:"people"},":pie:":{uc_base:"1f967",uc_output:"1f967",uc_match:"1f967",uc_greedy:"1f967",shortnames:[],category:"food"},":pig2:":{uc_base:"1f416",uc_output:"1f416",uc_match:"1f416",uc_greedy:"1f416",shortnames:[],category:"nature"},":pig:":{uc_base:"1f437",uc_output:"1f437",uc_match:"1f437",uc_greedy:"1f437",shortnames:[],category:"nature"},":pig_nose:":{uc_base:"1f43d",uc_output:"1f43d",uc_match:"1f43d",uc_greedy:"1f43d",shortnames:[],category:"nature"},":pill:":{uc_base:"1f48a",uc_output:"1f48a",uc_match:"1f48a",uc_greedy:"1f48a",shortnames:[],category:"objects"},":pineapple:":{uc_base:"1f34d",uc_output:"1f34d",uc_match:"1f34d",uc_greedy:"1f34d",shortnames:[],category:"food"},":ping_pong:":{uc_base:"1f3d3",uc_output:"1f3d3",uc_match:"1f3d3",uc_greedy:"1f3d3",shortnames:[":table_tennis:"],category:"activity"},":pizza:":{uc_base:"1f355",uc_output:"1f355",uc_match:"1f355",uc_greedy:"1f355",shortnames:[],category:"food"},":place_of_worship:":{uc_base:"1f6d0",uc_output:"1f6d0",uc_match:"1f6d0",uc_greedy:"1f6d0",shortnames:[":worship_symbol:"],category:"symbols"},":point_down:":{uc_base:"1f447",uc_output:"1f447",uc_match:"1f447-fe0f",uc_greedy:"1f447-fe0f",shortnames:[],category:"people"},":point_left:":{uc_base:"1f448",uc_output:"1f448",uc_match:"1f448-fe0f",uc_greedy:"1f448-fe0f",shortnames:[],category:"people"},":point_right:":{uc_base:"1f449",uc_output:"1f449",uc_match:"1f449-fe0f",uc_greedy:"1f449-fe0f",shortnames:[],category:"people"},":point_up_2:":{uc_base:"1f446",uc_output:"1f446",uc_match:"1f446-fe0f",uc_greedy:"1f446-fe0f",shortnames:[],category:"people"},":police_car:":{uc_base:"1f693",uc_output:"1f693",uc_match:"1f693",uc_greedy:"1f693",shortnames:[],category:"travel"},":police_officer:":{uc_base:"1f46e",uc_output:"1f46e",uc_match:"1f46e",uc_greedy:"1f46e",shortnames:[":cop:"],category:"people"},":poodle:":{uc_base:"1f429",uc_output:"1f429",uc_match:"1f429",uc_greedy:"1f429",shortnames:[],category:"nature"},":poop:":{uc_base:"1f4a9",uc_output:"1f4a9",uc_match:"1f4a9",uc_greedy:"1f4a9",shortnames:[":shit:",":hankey:",":poo:"],category:"people"},":popcorn:":{uc_base:"1f37f",uc_output:"1f37f",uc_match:"1f37f",uc_greedy:"1f37f",shortnames:[],category:"food"},":post_office:":{uc_base:"1f3e3",uc_output:"1f3e3",uc_match:"1f3e3",uc_greedy:"1f3e3",shortnames:[],category:"travel"},":postal_horn:":{uc_base:"1f4ef",uc_output:"1f4ef",uc_match:"1f4ef",uc_greedy:"1f4ef",shortnames:[],category:"objects"},":postbox:":{uc_base:"1f4ee",uc_output:"1f4ee",uc_match:"1f4ee",uc_greedy:"1f4ee",shortnames:[],category:"objects"},":potable_water:":{uc_base:"1f6b0",uc_output:"1f6b0",uc_match:"1f6b0",uc_greedy:"1f6b0",shortnames:[],category:"objects"},":potato:":{uc_base:"1f954",uc_output:"1f954",uc_match:"1f954",uc_greedy:"1f954",shortnames:[],category:"food"},":pouch:":{uc_base:"1f45d",uc_output:"1f45d",uc_match:"1f45d",uc_greedy:"1f45d",shortnames:[],category:"people"},":poultry_leg:":{uc_base:"1f357",uc_output:"1f357",uc_match:"1f357",uc_greedy:"1f357",shortnames:[],category:"food"},":pound:":{uc_base:"1f4b7",uc_output:"1f4b7",uc_match:"1f4b7",uc_greedy:"1f4b7",shortnames:[],category:"objects"},":pouting_cat:":{uc_base:"1f63e",uc_output:"1f63e",uc_match:"1f63e",uc_greedy:"1f63e",shortnames:[],category:"people"},":pray:":{uc_base:"1f64f",uc_output:"1f64f",uc_match:"1f64f",uc_greedy:"1f64f",shortnames:[],category:"people"},":prayer_beads:":{uc_base:"1f4ff",uc_output:"1f4ff",uc_match:"1f4ff",uc_greedy:"1f4ff",shortnames:[],category:"objects"},":pregnant_woman:":{uc_base:"1f930",uc_output:"1f930",uc_match:"1f930",uc_greedy:"1f930",shortnames:[":expecting_woman:"],category:"people"},":pretzel:":{uc_base:"1f968",uc_output:"1f968",uc_match:"1f968",uc_greedy:"1f968",shortnames:[],category:"food"},":prince:":{uc_base:"1f934",uc_output:"1f934",uc_match:"1f934",uc_greedy:"1f934",shortnames:[],category:"people"},":princess:":{uc_base:"1f478",uc_output:"1f478",uc_match:"1f478",uc_greedy:"1f478",shortnames:[],category:"people"},":printer:":{uc_base:"1f5a8",uc_output:"1f5a8",uc_match:"1f5a8-fe0f",uc_greedy:"1f5a8-fe0f",shortnames:[],category:"objects"},":projector:":{uc_base:"1f4fd",uc_output:"1f4fd",uc_match:"1f4fd-fe0f",uc_greedy:"1f4fd-fe0f",shortnames:[":film_projector:"],category:"objects"},":punch:":{uc_base:"1f44a",uc_output:"1f44a",uc_match:"1f44a",uc_greedy:"1f44a",shortnames:[],category:"people"},":purple_heart:":{uc_base:"1f49c",uc_output:"1f49c",uc_match:"1f49c",uc_greedy:"1f49c",shortnames:[],category:"symbols"},":purse:":{uc_base:"1f45b",uc_output:"1f45b",uc_match:"1f45b",uc_greedy:"1f45b",shortnames:[],category:"people"},":pushpin:":{uc_base:"1f4cc",uc_output:"1f4cc",uc_match:"1f4cc",uc_greedy:"1f4cc",shortnames:[],category:"objects"},":put_litter_in_its_place:":{uc_base:"1f6ae",uc_output:"1f6ae",uc_match:"1f6ae",uc_greedy:"1f6ae",shortnames:[],category:"symbols"},":rabbit2:":{uc_base:"1f407",uc_output:"1f407",uc_match:"1f407",uc_greedy:"1f407",shortnames:[],category:"nature"},":rabbit:":{uc_base:"1f430",uc_output:"1f430",uc_match:"1f430",uc_greedy:"1f430",shortnames:[],category:"nature"},":race_car:":{uc_base:"1f3ce",uc_output:"1f3ce",uc_match:"1f3ce-fe0f",uc_greedy:"1f3ce-fe0f",shortnames:[":racing_car:"],category:"travel"},":racehorse:":{uc_base:"1f40e",uc_output:"1f40e",uc_match:"1f40e",uc_greedy:"1f40e",shortnames:[],category:"nature"},":radio:":{uc_base:"1f4fb",uc_output:"1f4fb",uc_match:"1f4fb-fe0f",uc_greedy:"1f4fb-fe0f",shortnames:[],category:"objects"},":radio_button:":{uc_base:"1f518",uc_output:"1f518",uc_match:"1f518",uc_greedy:"1f518",shortnames:[],category:"symbols"},":rage:":{uc_base:"1f621",uc_output:"1f621",uc_match:"1f621",uc_greedy:"1f621",shortnames:[],category:"people"},":railway_car:":{uc_base:"1f683",uc_output:"1f683",uc_match:"1f683",uc_greedy:"1f683",shortnames:[],category:"travel"},":railway_track:":{uc_base:"1f6e4",uc_output:"1f6e4",uc_match:"1f6e4-fe0f",uc_greedy:"1f6e4-fe0f",shortnames:[":railroad_track:"],category:"travel"},":rainbow:":{uc_base:"1f308",uc_output:"1f308",uc_match:"1f308",uc_greedy:"1f308",shortnames:[],category:"nature"},":raised_back_of_hand:":{uc_base:"1f91a",uc_output:"1f91a",uc_match:"1f91a",uc_greedy:"1f91a",shortnames:[":back_of_hand:"],category:"people"},":raised_hands:":{uc_base:"1f64c",uc_output:"1f64c",uc_match:"1f64c",uc_greedy:"1f64c",shortnames:[],category:"people"},":ram:":{uc_base:"1f40f",uc_output:"1f40f",uc_match:"1f40f",uc_greedy:"1f40f",shortnames:[],category:"nature"},":ramen:":{uc_base:"1f35c",uc_output:"1f35c",uc_match:"1f35c",uc_greedy:"1f35c",shortnames:[],category:"food"},":rat:":{uc_base:"1f400",uc_output:"1f400",uc_match:"1f400",uc_greedy:"1f400",shortnames:[],category:"nature"},":red_car:":{uc_base:"1f697",uc_output:"1f697",uc_match:"1f697",uc_greedy:"1f697",shortnames:[],category:"travel"},":red_circle:":{uc_base:"1f534",uc_output:"1f534",uc_match:"1f534",uc_greedy:"1f534",shortnames:[],category:"symbols"},":regional_indicator_a:":{uc_base:"1f1e6",uc_output:"1f1e6",uc_match:"1f1e6",uc_greedy:"1f1e6",shortnames:[],category:"regional"},":regional_indicator_b:":{uc_base:"1f1e7",uc_output:"1f1e7",uc_match:"1f1e7",uc_greedy:"1f1e7",shortnames:[],category:"regional"},":regional_indicator_c:":{uc_base:"1f1e8",uc_output:"1f1e8",uc_match:"1f1e8",uc_greedy:"1f1e8",shortnames:[],category:"regional"},":regional_indicator_d:":{uc_base:"1f1e9",uc_output:"1f1e9",uc_match:"1f1e9",uc_greedy:"1f1e9",shortnames:[],category:"regional"},":regional_indicator_e:":{uc_base:"1f1ea",uc_output:"1f1ea",uc_match:"1f1ea",uc_greedy:"1f1ea",shortnames:[],category:"regional"},":regional_indicator_f:":{uc_base:"1f1eb",uc_output:"1f1eb",uc_match:"1f1eb",uc_greedy:"1f1eb",shortnames:[],category:"regional"},":regional_indicator_g:":{uc_base:"1f1ec",uc_output:"1f1ec",uc_match:"1f1ec",uc_greedy:"1f1ec",shortnames:[],category:"regional"},":regional_indicator_h:":{uc_base:"1f1ed",uc_output:"1f1ed",uc_match:"1f1ed",uc_greedy:"1f1ed",shortnames:[],category:"regional"},":regional_indicator_i:":{uc_base:"1f1ee",uc_output:"1f1ee",uc_match:"1f1ee",uc_greedy:"1f1ee",shortnames:[],category:"regional"},":regional_indicator_j:":{uc_base:"1f1ef",uc_output:"1f1ef",uc_match:"1f1ef",uc_greedy:"1f1ef",shortnames:[],category:"regional"},":regional_indicator_k:":{uc_base:"1f1f0",uc_output:"1f1f0",uc_match:"1f1f0",uc_greedy:"1f1f0",shortnames:[],category:"regional"},":regional_indicator_l:":{uc_base:"1f1f1",uc_output:"1f1f1",uc_match:"1f1f1",uc_greedy:"1f1f1",shortnames:[],category:"regional"},":regional_indicator_m:":{uc_base:"1f1f2",uc_output:"1f1f2",uc_match:"1f1f2",uc_greedy:"1f1f2",shortnames:[],category:"regional"},":regional_indicator_n:":{uc_base:"1f1f3",uc_output:"1f1f3",uc_match:"1f1f3",uc_greedy:"1f1f3",shortnames:[],category:"regional"},":regional_indicator_o:":{uc_base:"1f1f4",uc_output:"1f1f4",uc_match:"1f1f4",uc_greedy:"1f1f4",shortnames:[],category:"regional"},":regional_indicator_p:":{uc_base:"1f1f5",uc_output:"1f1f5",uc_match:"1f1f5",uc_greedy:"1f1f5",shortnames:[],category:"regional"},":regional_indicator_q:":{uc_base:"1f1f6",uc_output:"1f1f6",uc_match:"1f1f6",uc_greedy:"1f1f6",shortnames:[],category:"regional"},":regional_indicator_r:":{uc_base:"1f1f7",uc_output:"1f1f7",uc_match:"1f1f7",uc_greedy:"1f1f7",shortnames:[],category:"regional"},":regional_indicator_s:":{uc_base:"1f1f8",uc_output:"1f1f8",uc_match:"1f1f8",uc_greedy:"1f1f8",shortnames:[],category:"regional"},":regional_indicator_t:":{uc_base:"1f1f9",uc_output:"1f1f9",uc_match:"1f1f9",uc_greedy:"1f1f9",shortnames:[],category:"regional"},":regional_indicator_u:":{uc_base:"1f1fa",uc_output:"1f1fa",uc_match:"1f1fa",uc_greedy:"1f1fa",shortnames:[],category:"regional"},":regional_indicator_v:":{uc_base:"1f1fb",uc_output:"1f1fb",uc_match:"1f1fb",uc_greedy:"1f1fb",shortnames:[],category:"regional"},":regional_indicator_w:":{uc_base:"1f1fc",uc_output:"1f1fc",uc_match:"1f1fc",uc_greedy:"1f1fc",shortnames:[],category:"regional"},":regional_indicator_x:":{uc_base:"1f1fd",uc_output:"1f1fd",uc_match:"1f1fd",uc_greedy:"1f1fd",shortnames:[],category:"regional"},":regional_indicator_y:":{uc_base:"1f1fe",uc_output:"1f1fe",uc_match:"1f1fe",uc_greedy:"1f1fe",shortnames:[],category:"regional"},":regional_indicator_z:":{uc_base:"1f1ff",uc_output:"1f1ff",uc_match:"1f1ff",uc_greedy:"1f1ff",shortnames:[],category:"regional"},":relieved:":{uc_base:"1f60c",uc_output:"1f60c",uc_match:"1f60c",uc_greedy:"1f60c",shortnames:[],category:"people"},":reminder_ribbon:":{uc_base:"1f397",uc_output:"1f397",uc_match:"1f397-fe0f",uc_greedy:"1f397-fe0f",shortnames:[],category:"activity"},":repeat:":{uc_base:"1f501",uc_output:"1f501",uc_match:"1f501",uc_greedy:"1f501",shortnames:[],category:"symbols"},":repeat_one:":{uc_base:"1f502",uc_output:"1f502",uc_match:"1f502",uc_greedy:"1f502",shortnames:[],category:"symbols"},":restroom:":{uc_base:"1f6bb",uc_output:"1f6bb",uc_match:"1f6bb",uc_greedy:"1f6bb",shortnames:[],category:"symbols"},":revolving_hearts:":{uc_base:"1f49e",uc_output:"1f49e",uc_match:"1f49e",uc_greedy:"1f49e",shortnames:[],category:"symbols"},":rhino:":{uc_base:"1f98f",uc_output:"1f98f",uc_match:"1f98f",uc_greedy:"1f98f",shortnames:[":rhinoceros:"],category:"nature"},":ribbon:":{uc_base:"1f380",uc_output:"1f380",uc_match:"1f380",uc_greedy:"1f380",shortnames:[],category:"objects"},":rice:":{uc_base:"1f35a",uc_output:"1f35a",uc_match:"1f35a",uc_greedy:"1f35a",shortnames:[],category:"food"},":rice_ball:":{uc_base:"1f359",uc_output:"1f359",uc_match:"1f359",uc_greedy:"1f359",shortnames:[],category:"food"},":rice_cracker:":{uc_base:"1f358",uc_output:"1f358",uc_match:"1f358",uc_greedy:"1f358",shortnames:[],category:"food"},":rice_scene:":{uc_base:"1f391",uc_output:"1f391",uc_match:"1f391",uc_greedy:"1f391",shortnames:[],category:"travel"},":right_facing_fist:":{uc_base:"1f91c",uc_output:"1f91c",uc_match:"1f91c",uc_greedy:"1f91c",shortnames:[":right_fist:"],category:"people"},":ring:":{uc_base:"1f48d",uc_output:"1f48d",uc_match:"1f48d",uc_greedy:"1f48d",shortnames:[],category:"people"},":robot:":{uc_base:"1f916",uc_output:"1f916",uc_match:"1f916",uc_greedy:"1f916",shortnames:[":robot_face:"],category:"people"},":rocket:":{uc_base:"1f680",uc_output:"1f680",uc_match:"1f680",uc_greedy:"1f680",shortnames:[],category:"travel"},":rofl:":{uc_base:"1f923",uc_output:"1f923",uc_match:"1f923",uc_greedy:"1f923",shortnames:[":rolling_on_the_floor_laughing:"],category:"people"},":roller_coaster:":{uc_base:"1f3a2",uc_output:"1f3a2",uc_match:"1f3a2",uc_greedy:"1f3a2",shortnames:[],category:"travel"},":rolling_eyes:":{uc_base:"1f644",uc_output:"1f644",uc_match:"1f644",uc_greedy:"1f644",shortnames:[":face_with_rolling_eyes:"],category:"people"},":rooster:":{uc_base:"1f413",uc_output:"1f413",uc_match:"1f413",uc_greedy:"1f413",shortnames:[],category:"nature"},":rose:":{uc_base:"1f339",uc_output:"1f339",uc_match:"1f339",uc_greedy:"1f339",shortnames:[],category:"nature"},":rosette:":{uc_base:"1f3f5",uc_output:"1f3f5",uc_match:"1f3f5-fe0f",uc_greedy:"1f3f5-fe0f",shortnames:[],category:"activity"},":rotating_light:":{uc_base:"1f6a8",uc_output:"1f6a8",uc_match:"1f6a8",uc_greedy:"1f6a8",shortnames:[],category:"travel"},":round_pushpin:":{uc_base:"1f4cd",uc_output:"1f4cd",uc_match:"1f4cd",uc_greedy:"1f4cd",shortnames:[],category:"objects"},":rugby_football:":{uc_base:"1f3c9",uc_output:"1f3c9",uc_match:"1f3c9",uc_greedy:"1f3c9",shortnames:[],category:"activity"},":running_shirt_with_sash:":{uc_base:"1f3bd",uc_output:"1f3bd",uc_match:"1f3bd",uc_greedy:"1f3bd",shortnames:[],category:"activity"},":sa:":{uc_base:"1f202",uc_output:"1f202",uc_match:"1f202-fe0f",uc_greedy:"1f202-fe0f",shortnames:[],category:"symbols"},":sake:":{uc_base:"1f376",uc_output:"1f376",uc_match:"1f376",uc_greedy:"1f376",shortnames:[],category:"food"},":salad:":{uc_base:"1f957",uc_output:"1f957",uc_match:"1f957",uc_greedy:"1f957",shortnames:[":green_salad:"],category:"food"},":sandal:":{uc_base:"1f461",uc_output:"1f461",uc_match:"1f461",uc_greedy:"1f461",shortnames:[],category:"people"},":sandwich:":{uc_base:"1f96a",uc_output:"1f96a",uc_match:"1f96a",uc_greedy:"1f96a",shortnames:[],category:"food"},":santa:":{uc_base:"1f385",uc_output:"1f385",uc_match:"1f385",uc_greedy:"1f385",shortnames:[],category:"people"},":satellite:":{uc_base:"1f4e1",uc_output:"1f4e1",uc_match:"1f4e1",uc_greedy:"1f4e1",shortnames:[],category:"objects"},":satellite_orbital:":{uc_base:"1f6f0",uc_output:"1f6f0",uc_match:"1f6f0-fe0f",uc_greedy:"1f6f0-fe0f",shortnames:[],category:"travel"},":sauropod:":{uc_base:"1f995",uc_output:"1f995",uc_match:"1f995",uc_greedy:"1f995",shortnames:[],category:"nature"},":saxophone:":{uc_base:"1f3b7",uc_output:"1f3b7",uc_match:"1f3b7",uc_greedy:"1f3b7",shortnames:[],category:"activity"},":scarf:":{uc_base:"1f9e3",uc_output:"1f9e3",uc_match:"1f9e3",uc_greedy:"1f9e3",shortnames:[],category:"people"},":school:":{uc_base:"1f3eb",uc_output:"1f3eb",uc_match:"1f3eb",uc_greedy:"1f3eb",shortnames:[],category:"travel"},":school_satchel:":{uc_base:"1f392",uc_output:"1f392",uc_match:"1f392",uc_greedy:"1f392",shortnames:[],category:"people"},":scooter:":{uc_base:"1f6f4",uc_output:"1f6f4",uc_match:"1f6f4",uc_greedy:"1f6f4",shortnames:[],category:"travel"},":scorpion:":{uc_base:"1f982",uc_output:"1f982",uc_match:"1f982",uc_greedy:"1f982",shortnames:[],category:"nature"},":scream:":{uc_base:"1f631",uc_output:"1f631",uc_match:"1f631",uc_greedy:"1f631",shortnames:[],category:"people"},":scream_cat:":{uc_base:"1f640",uc_output:"1f640",uc_match:"1f640",uc_greedy:"1f640",shortnames:[],category:"people"},":scroll:":{uc_base:"1f4dc",uc_output:"1f4dc",uc_match:"1f4dc",uc_greedy:"1f4dc",shortnames:[],category:"objects"},":seat:":{uc_base:"1f4ba",uc_output:"1f4ba",uc_match:"1f4ba",uc_greedy:"1f4ba",shortnames:[],category:"travel"},":second_place:":{uc_base:"1f948",uc_output:"1f948",uc_match:"1f948",uc_greedy:"1f948",shortnames:[":second_place_medal:"],category:"activity"},":see_no_evil:":{uc_base:"1f648",uc_output:"1f648",uc_match:"1f648",uc_greedy:"1f648",shortnames:[],category:"nature"},":seedling:":{uc_base:"1f331",uc_output:"1f331",uc_match:"1f331",uc_greedy:"1f331",shortnames:[],category:"nature"},":selfie:":{uc_base:"1f933",uc_output:"1f933",uc_match:"1f933",uc_greedy:"1f933",shortnames:[],category:"people"},":shallow_pan_of_food:":{uc_base:"1f958",uc_output:"1f958",uc_match:"1f958",uc_greedy:"1f958",shortnames:[":paella:"],category:"food"},":shark:":{uc_base:"1f988",uc_output:"1f988",uc_match:"1f988",uc_greedy:"1f988",shortnames:[],category:"nature"},":shaved_ice:":{uc_base:"1f367",uc_output:"1f367",uc_match:"1f367",uc_greedy:"1f367",shortnames:[],category:"food"},":sheep:":{uc_base:"1f411",uc_output:"1f411",uc_match:"1f411",uc_greedy:"1f411",shortnames:[],category:"nature"},":shell:":{uc_base:"1f41a",uc_output:"1f41a",uc_match:"1f41a",uc_greedy:"1f41a",shortnames:[],category:"nature"},":shield:":{uc_base:"1f6e1",uc_output:"1f6e1",uc_match:"1f6e1-fe0f",uc_greedy:"1f6e1-fe0f",shortnames:[],category:"objects"},":ship:":{uc_base:"1f6a2",uc_output:"1f6a2",uc_match:"1f6a2",uc_greedy:"1f6a2",shortnames:[],category:"travel"},":shirt:":{uc_base:"1f455",uc_output:"1f455",uc_match:"1f455",uc_greedy:"1f455",shortnames:[],category:"people"},":shopping_bags:":{uc_base:"1f6cd",uc_output:"1f6cd",uc_match:"1f6cd-fe0f",uc_greedy:"1f6cd-fe0f",shortnames:[],category:"objects"},":shopping_cart:":{uc_base:"1f6d2",uc_output:"1f6d2",uc_match:"1f6d2",uc_greedy:"1f6d2",shortnames:[":shopping_trolley:"],category:"objects"},":shower:":{uc_base:"1f6bf",uc_output:"1f6bf",uc_match:"1f6bf",uc_greedy:"1f6bf",shortnames:[],category:"objects"},":shrimp:":{uc_base:"1f990",uc_output:"1f990",uc_match:"1f990",uc_greedy:"1f990",shortnames:[],category:"nature"},":shushing_face:":{uc_base:"1f92b",uc_output:"1f92b",uc_match:"1f92b",uc_greedy:"1f92b",shortnames:[],category:"people"},":signal_strength:":{uc_base:"1f4f6",uc_output:"1f4f6",uc_match:"1f4f6",uc_greedy:"1f4f6",shortnames:[],category:"symbols"},":six_pointed_star:":{uc_base:"1f52f",uc_output:"1f52f",uc_match:"1f52f",uc_greedy:"1f52f",shortnames:[],category:"symbols"},":ski:":{uc_base:"1f3bf",uc_output:"1f3bf",uc_match:"1f3bf",uc_greedy:"1f3bf",shortnames:[],category:"activity"},":skull:":{uc_base:"1f480",uc_output:"1f480",uc_match:"1f480",uc_greedy:"1f480",shortnames:[":skeleton:"],category:"people"},":sled:":{uc_base:"1f6f7",uc_output:"1f6f7",uc_match:"1f6f7",uc_greedy:"1f6f7",shortnames:[],category:"activity"},":sleeping:":{uc_base:"1f634",uc_output:"1f634",uc_match:"1f634",uc_greedy:"1f634",shortnames:[],category:"people"},":sleeping_accommodation:":{uc_base:"1f6cc",uc_output:"1f6cc",uc_match:"1f6cc",uc_greedy:"1f6cc",shortnames:[],category:"objects"},":sleepy:":{uc_base:"1f62a",uc_output:"1f62a",uc_match:"1f62a",uc_greedy:"1f62a",shortnames:[],category:"people"},":slight_frown:":{uc_base:"1f641",uc_output:"1f641",uc_match:"1f641",uc_greedy:"1f641",shortnames:[":slightly_frowning_face:"],category:"people"},":slight_smile:":{uc_base:"1f642",uc_output:"1f642",uc_match:"1f642",uc_greedy:"1f642",shortnames:[":slightly_smiling_face:"],category:"people"},":slot_machine:":{uc_base:"1f3b0",uc_output:"1f3b0",uc_match:"1f3b0",uc_greedy:"1f3b0",shortnames:[],category:"activity"},":small_blue_diamond:":{uc_base:"1f539",uc_output:"1f539",uc_match:"1f539",uc_greedy:"1f539",shortnames:[],category:"symbols"},":small_orange_diamond:":{uc_base:"1f538",uc_output:"1f538",uc_match:"1f538",uc_greedy:"1f538",shortnames:[],category:"symbols"},":small_red_triangle:":{uc_base:"1f53a",uc_output:"1f53a",uc_match:"1f53a",uc_greedy:"1f53a",shortnames:[],category:"symbols"},":small_red_triangle_down:":{uc_base:"1f53b",uc_output:"1f53b",uc_match:"1f53b",uc_greedy:"1f53b",shortnames:[],category:"symbols"},":smile:":{uc_base:"1f604",uc_output:"1f604",uc_match:"1f604",uc_greedy:"1f604",shortnames:[],category:"people"},":smile_cat:":{uc_base:"1f638",uc_output:"1f638",uc_match:"1f638",uc_greedy:"1f638",shortnames:[],category:"people"},":smiley:":{uc_base:"1f603",uc_output:"1f603",uc_match:"1f603",uc_greedy:"1f603",shortnames:[],category:"people"},":smiley_cat:":{uc_base:"1f63a",uc_output:"1f63a",uc_match:"1f63a",uc_greedy:"1f63a",shortnames:[],category:"people"},":smiling_imp:":{uc_base:"1f608",uc_output:"1f608",uc_match:"1f608",uc_greedy:"1f608",shortnames:[],category:"people"},":smirk:":{uc_base:"1f60f",uc_output:"1f60f",uc_match:"1f60f",uc_greedy:"1f60f",shortnames:[],category:"people"},":smirk_cat:":{uc_base:"1f63c",uc_output:"1f63c",uc_match:"1f63c",uc_greedy:"1f63c",shortnames:[],category:"people"},":smoking:":{uc_base:"1f6ac",uc_output:"1f6ac",uc_match:"1f6ac",uc_greedy:"1f6ac",shortnames:[],category:"objects"},":snail:":{uc_base:"1f40c",uc_output:"1f40c",uc_match:"1f40c",uc_greedy:"1f40c",shortnames:[],category:"nature"},":snake:":{uc_base:"1f40d",uc_output:"1f40d",uc_match:"1f40d",uc_greedy:"1f40d",shortnames:[],category:"nature"},":sneezing_face:":{uc_base:"1f927",uc_output:"1f927",uc_match:"1f927",uc_greedy:"1f927",shortnames:[":sneeze:"],category:"people"},":snowboarder:":{uc_base:"1f3c2",uc_output:"1f3c2",uc_match:"1f3c2-fe0f",uc_greedy:"1f3c2-fe0f",shortnames:[],category:"activity"},":sob:":{uc_base:"1f62d",uc_output:"1f62d",uc_match:"1f62d",uc_greedy:"1f62d",shortnames:[],category:"people"},":socks:":{uc_base:"1f9e6",uc_output:"1f9e6",uc_match:"1f9e6",uc_greedy:"1f9e6",shortnames:[],category:"people"},":soon:":{uc_base:"1f51c",uc_output:"1f51c",uc_match:"1f51c",uc_greedy:"1f51c",shortnames:[],category:"symbols"},":sos:":{uc_base:"1f198",uc_output:"1f198",uc_match:"1f198",uc_greedy:"1f198",shortnames:[],category:"symbols"},":sound:":{uc_base:"1f509",uc_output:"1f509",uc_match:"1f509",uc_greedy:"1f509",shortnames:[],category:"symbols"},":space_invader:":{uc_base:"1f47e",uc_output:"1f47e",uc_match:"1f47e",uc_greedy:"1f47e",shortnames:[],category:"people"},":spaghetti:":{uc_base:"1f35d",uc_output:"1f35d",uc_match:"1f35d",uc_greedy:"1f35d",shortnames:[],category:"food"},":sparkler:":{uc_base:"1f387",uc_output:"1f387",uc_match:"1f387",uc_greedy:"1f387",shortnames:[],category:"travel"},":sparkling_heart:":{uc_base:"1f496",uc_output:"1f496",uc_match:"1f496",uc_greedy:"1f496",shortnames:[],category:"symbols"},":speak_no_evil:":{uc_base:"1f64a",uc_output:"1f64a",uc_match:"1f64a",uc_greedy:"1f64a",shortnames:[],category:"nature"},":speaker:":{uc_base:"1f508",uc_output:"1f508",uc_match:"1f508-fe0f",uc_greedy:"1f508-fe0f",shortnames:[],category:"symbols"},":speaking_head:":{uc_base:"1f5e3",uc_output:"1f5e3",uc_match:"1f5e3-fe0f",uc_greedy:"1f5e3-fe0f",shortnames:[":speaking_head_in_silhouette:"],category:"people"},":speech_balloon:":{uc_base:"1f4ac",uc_output:"1f4ac",uc_match:"1f4ac",uc_greedy:"1f4ac",shortnames:[],category:"symbols"},":speech_left:":{uc_base:"1f5e8",uc_output:"1f5e8",uc_match:"1f5e8-fe0f",uc_greedy:"1f5e8-fe0f",shortnames:[":left_speech_bubble:"],category:"symbols"},":speedboat:":{uc_base:"1f6a4",uc_output:"1f6a4",uc_match:"1f6a4",uc_greedy:"1f6a4",shortnames:[],category:"travel"},":spider:":{uc_base:"1f577",uc_output:"1f577",uc_match:"1f577-fe0f",uc_greedy:"1f577-fe0f",shortnames:[],category:"nature"},":spider_web:":{uc_base:"1f578",uc_output:"1f578",uc_match:"1f578-fe0f",uc_greedy:"1f578-fe0f",shortnames:[],category:"nature"},":spoon:":{uc_base:"1f944",uc_output:"1f944",uc_match:"1f944",uc_greedy:"1f944",shortnames:[],category:"food"},":squid:":{uc_base:"1f991",uc_output:"1f991",uc_match:"1f991",uc_greedy:"1f991",shortnames:[],category:"nature"},":stadium:":{uc_base:"1f3df",uc_output:"1f3df",uc_match:"1f3df-fe0f",uc_greedy:"1f3df-fe0f",shortnames:[],category:"travel"},":star2:":{uc_base:"1f31f",uc_output:"1f31f",uc_match:"1f31f",uc_greedy:"1f31f",shortnames:[],category:"nature"},":star_struck:":{uc_base:"1f929",uc_output:"1f929",uc_match:"1f929",uc_greedy:"1f929",shortnames:[],category:"people"},":stars:":{uc_base:"1f320",uc_output:"1f320",uc_match:"1f320",uc_greedy:"1f320",shortnames:[],category:"travel"},":station:":{uc_base:"1f689",uc_output:"1f689",uc_match:"1f689",uc_greedy:"1f689",shortnames:[],category:"travel"},":statue_of_liberty:":{uc_base:"1f5fd",uc_output:"1f5fd",uc_match:"1f5fd",uc_greedy:"1f5fd",shortnames:[],category:"travel"},":steam_locomotive:":{uc_base:"1f682",uc_output:"1f682",uc_match:"1f682",uc_greedy:"1f682",shortnames:[],category:"travel"},":stew:":{uc_base:"1f372",uc_output:"1f372",uc_match:"1f372",uc_greedy:"1f372",shortnames:[],category:"food"},":straight_ruler:":{uc_base:"1f4cf",uc_output:"1f4cf",uc_match:"1f4cf",uc_greedy:"1f4cf",shortnames:[],category:"objects"},":strawberry:":{uc_base:"1f353",uc_output:"1f353",uc_match:"1f353",uc_greedy:"1f353",shortnames:[],category:"food"},":stuck_out_tongue:":{uc_base:"1f61b",uc_output:"1f61b",uc_match:"1f61b",uc_greedy:"1f61b",shortnames:[],category:"people"},":stuck_out_tongue_closed_eyes:":{uc_base:"1f61d",uc_output:"1f61d",uc_match:"1f61d",uc_greedy:"1f61d",shortnames:[],category:"people"},":stuck_out_tongue_winking_eye:":{uc_base:"1f61c",uc_output:"1f61c",uc_match:"1f61c",uc_greedy:"1f61c",shortnames:[],category:"people"},":stuffed_flatbread:":{uc_base:"1f959",uc_output:"1f959",uc_match:"1f959",uc_greedy:"1f959",shortnames:[":stuffed_pita:"],category:"food"},":sun_with_face:":{uc_base:"1f31e",uc_output:"1f31e",uc_match:"1f31e",uc_greedy:"1f31e",shortnames:[],category:"nature"},":sunflower:":{uc_base:"1f33b",uc_output:"1f33b",uc_match:"1f33b",uc_greedy:"1f33b",shortnames:[],category:"nature"},":sunglasses:":{uc_base:"1f60e",uc_output:"1f60e",uc_match:"1f60e",uc_greedy:"1f60e",shortnames:[],category:"people"},":sunrise:":{uc_base:"1f305",uc_output:"1f305",uc_match:"1f305",uc_greedy:"1f305",shortnames:[],category:"travel"},":sunrise_over_mountains:":{uc_base:"1f304",uc_output:"1f304",uc_match:"1f304",uc_greedy:"1f304",shortnames:[],category:"travel"},":sushi:":{uc_base:"1f363",uc_output:"1f363",uc_match:"1f363",uc_greedy:"1f363",shortnames:[],category:"food"},":suspension_railway:":{uc_base:"1f69f",uc_output:"1f69f",uc_match:"1f69f",uc_greedy:"1f69f",shortnames:[],category:"travel"},":sweat:":{uc_base:"1f613",uc_output:"1f613",uc_match:"1f613",uc_greedy:"1f613",shortnames:[],category:"people"},":sweat_drops:":{uc_base:"1f4a6",uc_output:"1f4a6",uc_match:"1f4a6",uc_greedy:"1f4a6",shortnames:[],category:"nature"},":sweat_smile:":{uc_base:"1f605",uc_output:"1f605",uc_match:"1f605",uc_greedy:"1f605",shortnames:[],category:"people"},":sweet_potato:":{uc_base:"1f360",uc_output:"1f360",uc_match:"1f360",uc_greedy:"1f360",shortnames:[],category:"food"},":symbols:":{uc_base:"1f523",uc_output:"1f523",uc_match:"1f523",uc_greedy:"1f523",shortnames:[],category:"symbols"},":synagogue:":{uc_base:"1f54d",uc_output:"1f54d",uc_match:"1f54d",uc_greedy:"1f54d",shortnames:[],category:"travel"},":syringe:":{uc_base:"1f489",uc_output:"1f489",uc_match:"1f489",uc_greedy:"1f489",shortnames:[],category:"objects"},":t_rex:":{uc_base:"1f996",uc_output:"1f996",uc_match:"1f996",uc_greedy:"1f996",shortnames:[],category:"nature"},":taco:":{uc_base:"1f32e",uc_output:"1f32e",uc_match:"1f32e",uc_greedy:"1f32e",shortnames:[],category:"food"},":tada:":{uc_base:"1f389",uc_output:"1f389",uc_match:"1f389",uc_greedy:"1f389",shortnames:[],category:"objects"},":takeout_box:":{uc_base:"1f961",uc_output:"1f961",uc_match:"1f961",uc_greedy:"1f961",shortnames:[],category:"food"},":tanabata_tree:":{uc_base:"1f38b",uc_output:"1f38b",uc_match:"1f38b",uc_greedy:"1f38b",shortnames:[],category:"nature"},":tangerine:":{uc_base:"1f34a",uc_output:"1f34a",uc_match:"1f34a",uc_greedy:"1f34a",shortnames:[],category:"food"},":taxi:":{uc_base:"1f695",uc_output:"1f695",uc_match:"1f695",uc_greedy:"1f695",shortnames:[],category:"travel"},":tea:":{uc_base:"1f375",uc_output:"1f375",uc_match:"1f375",uc_greedy:"1f375",shortnames:[],category:"food"},":telephone_receiver:":{uc_base:"1f4de",uc_output:"1f4de",uc_match:"1f4de",uc_greedy:"1f4de",shortnames:[],category:"objects"},":telescope:":{uc_base:"1f52d",uc_output:"1f52d",uc_match:"1f52d",uc_greedy:"1f52d",shortnames:[],category:"objects"},":tennis:":{uc_base:"1f3be",uc_output:"1f3be",uc_match:"1f3be",uc_greedy:"1f3be",shortnames:[],category:"activity"},":thermometer:":{uc_base:"1f321",uc_output:"1f321",uc_match:"1f321-fe0f",uc_greedy:"1f321-fe0f",shortnames:[],category:"objects"},":thermometer_face:":{uc_base:"1f912",uc_output:"1f912",uc_match:"1f912",uc_greedy:"1f912",shortnames:[":face_with_thermometer:"],category:"people"},":thinking:":{uc_base:"1f914",uc_output:"1f914",uc_match:"1f914",uc_greedy:"1f914",shortnames:[":thinking_face:"],category:"people"},":third_place:":{uc_base:"1f949",uc_output:"1f949",uc_match:"1f949",uc_greedy:"1f949",shortnames:[":third_place_medal:"],category:"activity"},":thought_balloon:":{uc_base:"1f4ad",uc_output:"1f4ad",uc_match:"1f4ad",uc_greedy:"1f4ad",shortnames:[],category:"symbols"},":thumbsdown:":{uc_base:"1f44e",uc_output:"1f44e",uc_match:"1f44e-fe0f",uc_greedy:"1f44e-fe0f",shortnames:[":-1:",":thumbdown:"],category:"people"},":thumbsup:":{uc_base:"1f44d",uc_output:"1f44d",uc_match:"1f44d-fe0f",uc_greedy:"1f44d-fe0f",shortnames:[":+1:",":thumbup:"],category:"people"},":ticket:":{uc_base:"1f3ab",uc_output:"1f3ab",uc_match:"1f3ab",uc_greedy:"1f3ab",shortnames:[],category:"activity"},":tickets:":{uc_base:"1f39f",uc_output:"1f39f",uc_match:"1f39f-fe0f",uc_greedy:"1f39f-fe0f",shortnames:[":admission_tickets:"],category:"activity"},":tiger2:":{uc_base:"1f405",uc_output:"1f405",uc_match:"1f405",uc_greedy:"1f405",shortnames:[],category:"nature"},":tiger:":{uc_base:"1f42f",uc_output:"1f42f",uc_match:"1f42f",uc_greedy:"1f42f",shortnames:[],category:"nature"},":tired_face:":{uc_base:"1f62b",uc_output:"1f62b",uc_match:"1f62b",uc_greedy:"1f62b",shortnames:[],category:"people"},":toilet:":{uc_base:"1f6bd",uc_output:"1f6bd",uc_match:"1f6bd",uc_greedy:"1f6bd",shortnames:[],category:"objects"},":tokyo_tower:":{uc_base:"1f5fc",uc_output:"1f5fc",uc_match:"1f5fc",uc_greedy:"1f5fc",shortnames:[],category:"travel"},":tomato:":{uc_base:"1f345",uc_output:"1f345",uc_match:"1f345",uc_greedy:"1f345",shortnames:[],category:"food"},":tone1:":{uc_base:"1f3fb",uc_output:"1f3fb",uc_match:"1f3fb",uc_greedy:"1f3fb",shortnames:[],category:"modifier"},":tone2:":{uc_base:"1f3fc",uc_output:"1f3fc",uc_match:"1f3fc",uc_greedy:"1f3fc",shortnames:[],category:"modifier"},":tone3:":{uc_base:"1f3fd",uc_output:"1f3fd",uc_match:"1f3fd",uc_greedy:"1f3fd",shortnames:[],category:"modifier"},":tone4:":{uc_base:"1f3fe",uc_output:"1f3fe",uc_match:"1f3fe",uc_greedy:"1f3fe",shortnames:[],category:"modifier"},":tone5:":{uc_base:"1f3ff",uc_output:"1f3ff",uc_match:"1f3ff",uc_greedy:"1f3ff",shortnames:[],category:"modifier"},":tongue:":{uc_base:"1f445",uc_output:"1f445",uc_match:"1f445",uc_greedy:"1f445",shortnames:[],category:"people"},":tools:":{uc_base:"1f6e0",uc_output:"1f6e0",uc_match:"1f6e0-fe0f",uc_greedy:"1f6e0-fe0f",shortnames:[":hammer_and_wrench:"],category:"objects"},":top:":{uc_base:"1f51d",uc_output:"1f51d",uc_match:"1f51d",uc_greedy:"1f51d",shortnames:[],category:"symbols"},":tophat:":{uc_base:"1f3a9",uc_output:"1f3a9",uc_match:"1f3a9",uc_greedy:"1f3a9",shortnames:[],category:"people"},":trackball:":{uc_base:"1f5b2",uc_output:"1f5b2",uc_match:"1f5b2-fe0f",uc_greedy:"1f5b2-fe0f",shortnames:[],category:"objects"},":tractor:":{uc_base:"1f69c",uc_output:"1f69c",uc_match:"1f69c",uc_greedy:"1f69c",shortnames:[],category:"travel"},":traffic_light:":{uc_base:"1f6a5",uc_output:"1f6a5",uc_match:"1f6a5",uc_greedy:"1f6a5",shortnames:[],category:"travel"},":train2:":{uc_base:"1f686",uc_output:"1f686",uc_match:"1f686",uc_greedy:"1f686",shortnames:[],category:"travel"},":train:":{uc_base:"1f68b",uc_output:"1f68b",uc_match:"1f68b",uc_greedy:"1f68b",shortnames:[],category:"travel"},":tram:":{uc_base:"1f68a",uc_output:"1f68a",uc_match:"1f68a",uc_greedy:"1f68a",shortnames:[],category:"travel"},":triangular_flag_on_post:":{uc_base:"1f6a9",uc_output:"1f6a9",uc_match:"1f6a9",uc_greedy:"1f6a9",shortnames:[],category:"flags"},":triangular_ruler:":{uc_base:"1f4d0",uc_output:"1f4d0",uc_match:"1f4d0",uc_greedy:"1f4d0",shortnames:[],category:"objects"},":trident:":{uc_base:"1f531",uc_output:"1f531",uc_match:"1f531",uc_greedy:"1f531",shortnames:[],category:"symbols"},":triumph:":{uc_base:"1f624",uc_output:"1f624",uc_match:"1f624",uc_greedy:"1f624",shortnames:[],category:"people"},":trolleybus:":{uc_base:"1f68e",uc_output:"1f68e",uc_match:"1f68e",uc_greedy:"1f68e",shortnames:[],category:"travel"},":trophy:":{uc_base:"1f3c6",uc_output:"1f3c6",uc_match:"1f3c6-fe0f",uc_greedy:"1f3c6-fe0f",shortnames:[],category:"activity"},":tropical_drink:":{uc_base:"1f379",uc_output:"1f379",uc_match:"1f379",uc_greedy:"1f379",shortnames:[],category:"food"},":tropical_fish:":{uc_base:"1f420",uc_output:"1f420",uc_match:"1f420",uc_greedy:"1f420",shortnames:[],category:"nature"},":truck:":{uc_base:"1f69a",uc_output:"1f69a",uc_match:"1f69a",uc_greedy:"1f69a",shortnames:[],category:"travel"},":trumpet:":{uc_base:"1f3ba",uc_output:"1f3ba",uc_match:"1f3ba",uc_greedy:"1f3ba",shortnames:[],category:"activity"},":tulip:":{uc_base:"1f337",uc_output:"1f337",uc_match:"1f337",uc_greedy:"1f337",shortnames:[],category:"nature"},":tumbler_glass:":{uc_base:"1f943",uc_output:"1f943",uc_match:"1f943",uc_greedy:"1f943",shortnames:[":whisky:"],category:"food"},":turkey:":{uc_base:"1f983",uc_output:"1f983",uc_match:"1f983",uc_greedy:"1f983",shortnames:[],category:"nature"},":turtle:":{uc_base:"1f422",uc_output:"1f422",uc_match:"1f422",uc_greedy:"1f422",shortnames:[],category:"nature"},":tv:":{uc_base:"1f4fa",uc_output:"1f4fa",uc_match:"1f4fa-fe0f",uc_greedy:"1f4fa-fe0f",shortnames:[],category:"objects"},":twisted_rightwards_arrows:":{uc_base:"1f500",uc_output:"1f500",uc_match:"1f500",uc_greedy:"1f500",shortnames:[],category:"symbols"},":two_hearts:":{uc_base:"1f495",uc_output:"1f495",uc_match:"1f495",uc_greedy:"1f495",shortnames:[],category:"symbols"},":two_men_holding_hands:":{uc_base:"1f46c",uc_output:"1f46c",uc_match:"1f46c",uc_greedy:"1f46c",shortnames:[],category:"people"},":two_women_holding_hands:":{uc_base:"1f46d",uc_output:"1f46d",uc_match:"1f46d",uc_greedy:"1f46d",shortnames:[],category:"people"},":u5272:":{uc_base:"1f239",uc_output:"1f239",uc_match:"1f239",uc_greedy:"1f239",shortnames:[],category:"symbols"},":u5408:":{uc_base:"1f234",uc_output:"1f234",uc_match:"1f234",uc_greedy:"1f234",shortnames:[],category:"symbols"},":u55b6:":{uc_base:"1f23a",uc_output:"1f23a",uc_match:"1f23a",uc_greedy:"1f23a",shortnames:[],category:"symbols"},":u6307:":{uc_base:"1f22f",uc_output:"1f22f",uc_match:"1f22f-fe0f",uc_greedy:"1f22f-fe0f",shortnames:[],category:"symbols"},":u6708:":{uc_base:"1f237",uc_output:"1f237",uc_match:"1f237-fe0f",uc_greedy:"1f237-fe0f",shortnames:[],category:"symbols"},":u6709:":{uc_base:"1f236",uc_output:"1f236",uc_match:"1f236",uc_greedy:"1f236",shortnames:[],category:"symbols"},":u6e80:":{uc_base:"1f235",uc_output:"1f235",uc_match:"1f235",uc_greedy:"1f235",shortnames:[],category:"symbols"},":u7121:":{uc_base:"1f21a",uc_output:"1f21a",uc_match:"1f21a-fe0f",uc_greedy:"1f21a-fe0f",shortnames:[],category:"symbols"},":u7533:":{uc_base:"1f238",uc_output:"1f238",uc_match:"1f238",uc_greedy:"1f238",shortnames:[],category:"symbols"},":u7981:":{uc_base:"1f232",uc_output:"1f232",uc_match:"1f232",uc_greedy:"1f232",shortnames:[],category:"symbols"},":u7a7a:":{uc_base:"1f233",uc_output:"1f233",uc_match:"1f233",uc_greedy:"1f233",shortnames:[],category:"symbols"},":unamused:":{uc_base:"1f612",uc_output:"1f612",uc_match:"1f612",uc_greedy:"1f612",shortnames:[],category:"people"},":underage:":{uc_base:"1f51e",uc_output:"1f51e",uc_match:"1f51e",uc_greedy:"1f51e",shortnames:[],category:"symbols"},":unicorn:":{uc_base:"1f984",uc_output:"1f984",uc_match:"1f984",uc_greedy:"1f984",shortnames:[":unicorn_face:"],category:"nature"},":unlock:":{uc_base:"1f513",uc_output:"1f513",uc_match:"1f513-fe0f",uc_greedy:"1f513-fe0f",shortnames:[],category:"objects"},":up:":{uc_base:"1f199",uc_output:"1f199",uc_match:"1f199",uc_greedy:"1f199",shortnames:[],category:"symbols"},":upside_down:":{uc_base:"1f643",uc_output:"1f643",uc_match:"1f643",uc_greedy:"1f643",shortnames:[":upside_down_face:"],category:"people"},":vampire:":{uc_base:"1f9db",uc_output:"1f9db",uc_match:"1f9db",uc_greedy:"1f9db",shortnames:[],category:"people"},":vertical_traffic_light:":{uc_base:"1f6a6",uc_output:"1f6a6",uc_match:"1f6a6",uc_greedy:"1f6a6",shortnames:[],category:"travel"},":vhs:":{uc_base:"1f4fc",uc_output:"1f4fc",uc_match:"1f4fc",uc_greedy:"1f4fc",shortnames:[],category:"objects"},":vibration_mode:":{uc_base:"1f4f3",uc_output:"1f4f3",uc_match:"1f4f3",uc_greedy:"1f4f3",shortnames:[],category:"symbols"},":video_camera:":{uc_base:"1f4f9",uc_output:"1f4f9",uc_match:"1f4f9-fe0f",uc_greedy:"1f4f9-fe0f",shortnames:[],category:"objects"},":video_game:":{uc_base:"1f3ae",uc_output:"1f3ae",uc_match:"1f3ae-fe0f",uc_greedy:"1f3ae-fe0f",shortnames:[],category:"activity"},":violin:":{uc_base:"1f3bb",uc_output:"1f3bb",uc_match:"1f3bb",uc_greedy:"1f3bb",shortnames:[],category:"activity"},":volcano:":{uc_base:"1f30b",uc_output:"1f30b",uc_match:"1f30b",uc_greedy:"1f30b",shortnames:[],category:"travel"},":volleyball:":{uc_base:"1f3d0",uc_output:"1f3d0",uc_match:"1f3d0",uc_greedy:"1f3d0",shortnames:[],category:"activity"},":vs:":{uc_base:"1f19a",uc_output:"1f19a",uc_match:"1f19a",uc_greedy:"1f19a",shortnames:[],category:"symbols"},":vulcan:":{uc_base:"1f596",uc_output:"1f596",uc_match:"1f596",uc_greedy:"1f596",shortnames:[":raised_hand_with_part_between_middle_and_ring_fingers:"],category:"people"},":waning_crescent_moon:":{uc_base:"1f318",uc_output:"1f318",uc_match:"1f318",uc_greedy:"1f318",shortnames:[],category:"nature"},":waning_gibbous_moon:":{uc_base:"1f316",uc_output:"1f316",uc_match:"1f316",uc_greedy:"1f316",shortnames:[],category:"nature"},":wastebasket:":{uc_base:"1f5d1",uc_output:"1f5d1",uc_match:"1f5d1-fe0f",uc_greedy:"1f5d1-fe0f",shortnames:[],category:"objects"},":water_buffalo:":{uc_base:"1f403",uc_output:"1f403",uc_match:"1f403",uc_greedy:"1f403",shortnames:[],category:"nature"},":watermelon:":{uc_base:"1f349",uc_output:"1f349",uc_match:"1f349",uc_greedy:"1f349",shortnames:[],category:"food"},":wave:":{uc_base:"1f44b",uc_output:"1f44b",uc_match:"1f44b",uc_greedy:"1f44b",shortnames:[],category:"people"},":waxing_crescent_moon:":{uc_base:"1f312",uc_output:"1f312",uc_match:"1f312",uc_greedy:"1f312",shortnames:[],category:"nature"},":waxing_gibbous_moon:":{uc_base:"1f314",uc_output:"1f314",uc_match:"1f314",uc_greedy:"1f314",shortnames:[],category:"nature"},":wc:":{uc_base:"1f6be",uc_output:"1f6be",uc_match:"1f6be",uc_greedy:"1f6be",shortnames:[],category:"symbols"},":weary:":{uc_base:"1f629",uc_output:"1f629",uc_match:"1f629",uc_greedy:"1f629",shortnames:[],category:"people"},":wedding:":{uc_base:"1f492",uc_output:"1f492",uc_match:"1f492",uc_greedy:"1f492",shortnames:[],category:"travel"},":whale2:":{uc_base:"1f40b",uc_output:"1f40b",uc_match:"1f40b",uc_greedy:"1f40b",shortnames:[],category:"nature"},":whale:":{uc_base:"1f433",uc_output:"1f433",uc_match:"1f433",uc_greedy:"1f433",shortnames:[],category:"nature"},":white_flower:":{uc_base:"1f4ae",uc_output:"1f4ae",uc_match:"1f4ae",uc_greedy:"1f4ae",shortnames:[],category:"symbols"},":white_square_button:":{uc_base:"1f533",uc_output:"1f533",uc_match:"1f533",uc_greedy:"1f533",shortnames:[],category:"symbols"},":white_sun_cloud:":{uc_base:"1f325",uc_output:"1f325",uc_match:"1f325-fe0f",uc_greedy:"1f325-fe0f",shortnames:[":white_sun_behind_cloud:"],category:"nature"},":white_sun_rain_cloud:":{uc_base:"1f326",uc_output:"1f326",uc_match:"1f326-fe0f",uc_greedy:"1f326-fe0f",shortnames:[":white_sun_behind_cloud_with_rain:"],category:"nature"},":white_sun_small_cloud:":{uc_base:"1f324",uc_output:"1f324",uc_match:"1f324-fe0f",uc_greedy:"1f324-fe0f",shortnames:[":white_sun_with_small_cloud:"],category:"nature"},":wilted_rose:":{uc_base:"1f940",uc_output:"1f940",uc_match:"1f940",uc_greedy:"1f940",shortnames:[":wilted_flower:"],category:"nature"},":wind_blowing_face:":{uc_base:"1f32c",uc_output:"1f32c",uc_match:"1f32c-fe0f",uc_greedy:"1f32c-fe0f",shortnames:[],category:"nature"},":wind_chime:":{uc_base:"1f390",uc_output:"1f390",uc_match:"1f390",uc_greedy:"1f390",shortnames:[],category:"objects"},":wine_glass:":{uc_base:"1f377",uc_output:"1f377",uc_match:"1f377",uc_greedy:"1f377",shortnames:[],category:"food"},":wink:":{uc_base:"1f609",uc_output:"1f609",uc_match:"1f609",uc_greedy:"1f609",shortnames:[],category:"people"},":wolf:":{uc_base:"1f43a",uc_output:"1f43a",uc_match:"1f43a",uc_greedy:"1f43a",shortnames:[],category:"nature"},":woman:":{uc_base:"1f469",uc_output:"1f469",uc_match:"1f469",uc_greedy:"1f469",shortnames:[],category:"people"},":woman_with_headscarf:":{uc_base:"1f9d5",uc_output:"1f9d5",uc_match:"1f9d5",uc_greedy:"1f9d5",shortnames:[],category:"people"},":womans_clothes:":{uc_base:"1f45a",uc_output:"1f45a",uc_match:"1f45a",uc_greedy:"1f45a",shortnames:[],category:"people"},":womans_hat:":{uc_base:"1f452",uc_output:"1f452",uc_match:"1f452",uc_greedy:"1f452",shortnames:[],category:"people"},":womens:":{uc_base:"1f6ba",uc_output:"1f6ba",uc_match:"1f6ba-fe0f",uc_greedy:"1f6ba-fe0f",shortnames:[],category:"symbols"},":worried:":{uc_base:"1f61f",uc_output:"1f61f",uc_match:"1f61f",uc_greedy:"1f61f",shortnames:[],category:"people"},":wrench:":{uc_base:"1f527",uc_output:"1f527",uc_match:"1f527",uc_greedy:"1f527",shortnames:[],category:"objects"},":yellow_heart:":{uc_base:"1f49b",uc_output:"1f49b",uc_match:"1f49b",uc_greedy:"1f49b",shortnames:[],category:"symbols"},":yen:":{uc_base:"1f4b4",uc_output:"1f4b4",uc_match:"1f4b4",uc_greedy:"1f4b4",shortnames:[],category:"objects"},":yum:":{uc_base:"1f60b",uc_output:"1f60b",uc_match:"1f60b",uc_greedy:"1f60b",shortnames:[],category:"people"},":zebra:":{uc_base:"1f993",uc_output:"1f993",uc_match:"1f993",uc_greedy:"1f993",shortnames:[],category:"nature"},":zipper_mouth:":{uc_base:"1f910",uc_output:"1f910",uc_match:"1f910",uc_greedy:"1f910",shortnames:[":zipper_mouth_face:"],category:"people"},":zombie:":{uc_base:"1f9df",uc_output:"1f9df",uc_match:"1f9df",uc_greedy:"1f9df",shortnames:[],category:"people"},":zzz:":{uc_base:"1f4a4",uc_output:"1f4a4",uc_match:"1f4a4",uc_greedy:"1f4a4",shortnames:[],category:"symbols"},":airplane:":{uc_base:"2708",uc_output:"2708",uc_match:"2708-fe0f",uc_greedy:"2708-fe0f",shortnames:[],category:"travel"},":alarm_clock:":{uc_base:"23f0",uc_output:"23f0",uc_match:"23f0",uc_greedy:"23f0",shortnames:[],category:"objects"},":alembic:":{uc_base:"2697",uc_output:"2697",uc_match:"2697-fe0f",uc_greedy:"2697-fe0f",shortnames:[],category:"objects"},":anchor:":{uc_base:"2693",uc_output:"2693",uc_match:"2693-fe0f",uc_greedy:"2693-fe0f",shortnames:[],category:"travel"},":aquarius:":{uc_base:"2652",uc_output:"2652",uc_match:"2652-fe0f",uc_greedy:"2652-fe0f",shortnames:[],category:"symbols"},":aries:":{uc_base:"2648",uc_output:"2648",uc_match:"2648-fe0f",uc_greedy:"2648-fe0f",shortnames:[],category:"symbols"},":arrow_backward:":{uc_base:"25c0",uc_output:"25c0",uc_match:"25c0-fe0f",uc_greedy:"25c0",shortnames:[],category:"symbols"},":arrow_double_down:":{uc_base:"23ec",uc_output:"23ec",uc_match:"23ec",uc_greedy:"23ec",shortnames:[],category:"symbols"},":arrow_double_up:":{uc_base:"23eb",uc_output:"23eb",uc_match:"23eb",uc_greedy:"23eb",shortnames:[],category:"symbols"},":arrow_down:":{uc_base:"2b07",uc_output:"2b07",uc_match:"2b07-fe0f",uc_greedy:"2b07",shortnames:[],category:"symbols"},":arrow_forward:":{uc_base:"25b6",uc_output:"25b6",uc_match:"25b6-fe0f",uc_greedy:"25b6",shortnames:[],category:"symbols"},":arrow_heading_down:":{uc_base:"2935",uc_output:"2935",uc_match:"2935-fe0f",uc_greedy:"2935",shortnames:[],category:"symbols"},":arrow_heading_up:":{uc_base:"2934",uc_output:"2934",uc_match:"2934-fe0f",uc_greedy:"2934",shortnames:[],category:"symbols"},":arrow_left:":{uc_base:"2b05",uc_output:"2b05",uc_match:"2b05-fe0f",uc_greedy:"2b05",shortnames:[],category:"symbols"},":arrow_lower_left:":{uc_base:"2199",uc_output:"2199",uc_match:"2199-fe0f",uc_greedy:"2199",shortnames:[],category:"symbols"},":arrow_lower_right:":{uc_base:"2198",uc_output:"2198",uc_match:"2198-fe0f",uc_greedy:"2198",shortnames:[],category:"symbols"},":arrow_right:":{uc_base:"27a1",uc_output:"27a1",uc_match:"27a1-fe0f",uc_greedy:"27a1",shortnames:[],category:"symbols"},":arrow_right_hook:":{uc_base:"21aa",uc_output:"21aa",uc_match:"21aa-fe0f",uc_greedy:"21aa",shortnames:[],category:"symbols"},":arrow_up:":{uc_base:"2b06",uc_output:"2b06",uc_match:"2b06-fe0f",uc_greedy:"2b06",shortnames:[],category:"symbols"},":arrow_up_down:":{uc_base:"2195",uc_output:"2195",uc_match:"2195-fe0f",uc_greedy:"2195",shortnames:[],category:"symbols"},":arrow_upper_left:":{uc_base:"2196",uc_output:"2196",uc_match:"2196-fe0f",uc_greedy:"2196",shortnames:[],category:"symbols"},":arrow_upper_right:":{uc_base:"2197",uc_output:"2197",uc_match:"2197-fe0f",uc_greedy:"2197",shortnames:[],category:"symbols"},":atom:":{uc_base:"269b",uc_output:"269b",uc_match:"269b-fe0f",uc_greedy:"269b",shortnames:[":atom_symbol:"],category:"symbols"},":ballot_box_with_check:":{uc_base:"2611",uc_output:"2611",uc_match:"2611-fe0f",uc_greedy:"2611",shortnames:[],category:"symbols"},":bangbang:":{uc_base:"203c",uc_output:"203c",uc_match:"203c-fe0f",uc_greedy:"203c",shortnames:[],category:"symbols"},":baseball:":{uc_base:"26be",uc_output:"26be",uc_match:"26be-fe0f",uc_greedy:"26be-fe0f",shortnames:[],category:"activity"},":beach_umbrella:":{uc_base:"26f1",uc_output:"26f1",uc_match:"26f1-fe0f",uc_greedy:"26f1-fe0f",shortnames:[":umbrella_on_ground:"],category:"travel"},":biohazard:":{uc_base:"2623",uc_output:"2623",uc_match:"2623-fe0f",uc_greedy:"2623",shortnames:[":biohazard_sign:"],category:"symbols"},":black_circle:":{uc_base:"26ab",uc_output:"26ab",uc_match:"26ab-fe0f",uc_greedy:"26ab-fe0f",shortnames:[],category:"symbols"},":black_large_square:":{uc_base:"2b1b",uc_output:"2b1b",uc_match:"2b1b-fe0f",uc_greedy:"2b1b-fe0f",shortnames:[],category:"symbols"},":black_medium_small_square:":{uc_base:"25fe",uc_output:"25fe",uc_match:"25fe-fe0f",uc_greedy:"25fe-fe0f",shortnames:[],category:"symbols"},":black_medium_square:":{uc_base:"25fc",uc_output:"25fc",uc_match:"25fc-fe0f",uc_greedy:"25fc",shortnames:[],category:"symbols"},":black_nib:":{uc_base:"2712",uc_output:"2712",uc_match:"2712-fe0f",uc_greedy:"2712-fe0f",shortnames:[],category:"objects"},":black_small_square:":{uc_base:"25aa",uc_output:"25aa",uc_match:"25aa-fe0f",uc_greedy:"25aa",shortnames:[],category:"symbols"},":cancer:":{uc_base:"264b",uc_output:"264b",uc_match:"264b-fe0f",uc_greedy:"264b-fe0f",shortnames:[],category:"symbols"},":capricorn:":{uc_base:"2651",uc_output:"2651",uc_match:"2651-fe0f",uc_greedy:"2651-fe0f",shortnames:[],category:"symbols"},":chains:":{uc_base:"26d3",uc_output:"26d3",uc_match:"26d3-fe0f",uc_greedy:"26d3-fe0f",shortnames:[],category:"objects"},":church:":{uc_base:"26ea",uc_output:"26ea",uc_match:"26ea-fe0f",uc_greedy:"26ea-fe0f",shortnames:[],category:"travel"},":cloud:":{uc_base:"2601",uc_output:"2601",uc_match:"2601-fe0f",uc_greedy:"2601-fe0f",shortnames:[],category:"nature"},":clubs:":{uc_base:"2663",uc_output:"2663",uc_match:"2663-fe0f",uc_greedy:"2663-fe0f",shortnames:[],category:"symbols"},":coffee:":{uc_base:"2615",uc_output:"2615",uc_match:"2615-fe0f",uc_greedy:"2615-fe0f",shortnames:[],category:"food"},":coffin:":{uc_base:"26b0",uc_output:"26b0",uc_match:"26b0-fe0f",uc_greedy:"26b0-fe0f",shortnames:[],category:"objects"},":comet:":{uc_base:"2604",uc_output:"2604",uc_match:"2604-fe0f",uc_greedy:"2604-fe0f",shortnames:[],category:"nature"},":congratulations:":{uc_base:"3297",uc_output:"3297",uc_match:"3297-fe0f",uc_greedy:"3297-fe0f",shortnames:[],category:"symbols"},":copyright:":{uc_base:"00a9",uc_output:"00a9",uc_match:"00a9-fe0f",uc_greedy:"00a9",shortnames:[],category:"symbols"},":cross:":{uc_base:"271d",uc_output:"271d",uc_match:"271d-fe0f",uc_greedy:"271d",shortnames:[":latin_cross:"],category:"symbols"},":crossed_swords:":{uc_base:"2694",uc_output:"2694",uc_match:"2694-fe0f",uc_greedy:"2694-fe0f",shortnames:[],category:"objects"},":curly_loop:":{uc_base:"27b0",uc_output:"27b0",uc_match:"27b0",uc_greedy:"27b0",shortnames:[],category:"symbols"},":diamonds:":{uc_base:"2666",uc_output:"2666",uc_match:"2666-fe0f",uc_greedy:"2666-fe0f",shortnames:[],category:"symbols"},":eight_pointed_black_star:":{uc_base:"2734",uc_output:"2734",uc_match:"2734-fe0f",uc_greedy:"2734-fe0f",shortnames:[],category:"symbols"},":eight_spoked_asterisk:":{uc_base:"2733",uc_output:"2733",uc_match:"2733-fe0f",uc_greedy:"2733-fe0f",shortnames:[],category:"symbols"},":eject:":{uc_base:"23cf",uc_output:"23cf",uc_match:"23cf-fe0f",uc_greedy:"23cf",shortnames:[":eject_symbol:"],category:"symbols"},":envelope:":{uc_base:"2709",uc_output:"2709",uc_match:"2709-fe0f",uc_greedy:"2709-fe0f",shortnames:[],category:"objects"},":exclamation:":{uc_base:"2757",uc_output:"2757",uc_match:"2757-fe0f",uc_greedy:"2757-fe0f",shortnames:[],category:"symbols"},":fast_forward:":{uc_base:"23e9",uc_output:"23e9",uc_match:"23e9-fe0f",uc_greedy:"23e9-fe0f",shortnames:[],category:"symbols"},":female_sign:":{uc_base:"2640",uc_output:"2640",uc_match:"2640-fe0f",uc_greedy:"2640",shortnames:[],category:"symbols"},":ferry:":{uc_base:"26f4",uc_output:"26f4",uc_match:"26f4-fe0f",uc_greedy:"26f4-fe0f",shortnames:[],category:"travel"},":fist:":{uc_base:"270a",uc_output:"270a",uc_match:"270a",uc_greedy:"270a",shortnames:[],category:"people"},":fleur-de-lis:":{uc_base:"269c",uc_output:"269c",uc_match:"269c-fe0f",uc_greedy:"269c-fe0f",shortnames:[],category:"symbols"},":fountain:":{uc_base:"26f2",uc_output:"26f2",uc_match:"26f2-fe0f",uc_greedy:"26f2-fe0f",shortnames:[],category:"travel"},":frowning2:":{uc_base:"2639",uc_output:"2639",uc_match:"2639-fe0f",uc_greedy:"2639-fe0f",shortnames:[":white_frowning_face:"],category:"people"},":fuelpump:":{uc_base:"26fd",uc_output:"26fd",uc_match:"26fd-fe0f",uc_greedy:"26fd-fe0f",shortnames:[],category:"travel"},":gear:":{uc_base:"2699",uc_output:"2699",uc_match:"2699-fe0f",uc_greedy:"2699-fe0f",shortnames:[],category:"objects"},":gemini:":{uc_base:"264a",uc_output:"264a",uc_match:"264a-fe0f",uc_greedy:"264a-fe0f",shortnames:[],category:"symbols"},":golf:":{uc_base:"26f3",uc_output:"26f3",uc_match:"26f3-fe0f",uc_greedy:"26f3-fe0f",shortnames:[],category:"activity"},":grey_exclamation:":{uc_base:"2755",uc_output:"2755",uc_match:"2755",uc_greedy:"2755",shortnames:[],category:"symbols"},":grey_question:":{uc_base:"2754",uc_output:"2754",uc_match:"2754",uc_greedy:"2754",shortnames:[],category:"symbols"},":hammer_pick:":{uc_base:"2692",uc_output:"2692",uc_match:"2692-fe0f",uc_greedy:"2692-fe0f",shortnames:[":hammer_and_pick:"],category:"objects"},":heart:":{uc_base:"2764",uc_output:"2764",uc_match:"2764-fe0f",uc_greedy:"2764-fe0f",shortnames:[],category:"symbols"},":heart_exclamation:":{uc_base:"2763",uc_output:"2763",uc_match:"2763-fe0f",uc_greedy:"2763-fe0f",shortnames:[":heavy_heart_exclamation_mark_ornament:"],category:"symbols"},":hearts:":{uc_base:"2665",uc_output:"2665",uc_match:"2665-fe0f",uc_greedy:"2665-fe0f",shortnames:[],category:"symbols"},":heavy_check_mark:":{uc_base:"2714",uc_output:"2714",uc_match:"2714-fe0f",uc_greedy:"2714",shortnames:[],category:"symbols"},":heavy_division_sign:":{uc_base:"2797",uc_output:"2797",uc_match:"2797",uc_greedy:"2797",shortnames:[],category:"symbols"},":heavy_minus_sign:":{uc_base:"2796",uc_output:"2796",uc_match:"2796",uc_greedy:"2796",shortnames:[],category:"symbols"},":heavy_multiplication_x:":{uc_base:"2716",uc_output:"2716",uc_match:"2716-fe0f",uc_greedy:"2716",shortnames:[],category:"symbols"},":heavy_plus_sign:":{uc_base:"2795",uc_output:"2795",uc_match:"2795",uc_greedy:"2795",shortnames:[],category:"symbols"},":helmet_with_cross:":{uc_base:"26d1",uc_output:"26d1",uc_match:"26d1-fe0f",uc_greedy:"26d1-fe0f",shortnames:[":helmet_with_white_cross:"],category:"people"},":hotsprings:":{uc_base:"2668",uc_output:"2668",uc_match:"2668-fe0f",uc_greedy:"2668-fe0f",shortnames:[],category:"symbols"},":hourglass:":{uc_base:"231b",uc_output:"231b",uc_match:"231b-fe0f",uc_greedy:"231b-fe0f",shortnames:[],category:"objects"},":hourglass_flowing_sand:":{uc_base:"23f3",uc_output:"23f3",uc_match:"23f3-fe0f",uc_greedy:"23f3-fe0f",shortnames:[],category:"objects"},":ice_skate:":{uc_base:"26f8",uc_output:"26f8",uc_match:"26f8-fe0f",uc_greedy:"26f8-fe0f",shortnames:[],category:"activity"},":information_source:":{uc_base:"2139",uc_output:"2139",uc_match:"2139-fe0f",uc_greedy:"2139",shortnames:[],category:"symbols"},":interrobang:":{uc_base:"2049",uc_output:"2049",uc_match:"2049-fe0f",uc_greedy:"2049",shortnames:[],category:"symbols"},":keyboard:":{uc_base:"2328",uc_output:"2328",uc_match:"2328-fe0f",uc_greedy:"2328-fe0f",shortnames:[],category:"objects"},":left_right_arrow:":{uc_base:"2194",uc_output:"2194",uc_match:"2194-fe0f",uc_greedy:"2194",shortnames:[],category:"symbols"},":leftwards_arrow_with_hook:":{uc_base:"21a9",uc_output:"21a9",uc_match:"21a9-fe0f",uc_greedy:"21a9",shortnames:[],category:"symbols"},":leo:":{uc_base:"264c",uc_output:"264c",uc_match:"264c-fe0f",uc_greedy:"264c-fe0f",shortnames:[],category:"symbols"},":libra:":{uc_base:"264e",uc_output:"264e",uc_match:"264e-fe0f",uc_greedy:"264e-fe0f",shortnames:[],category:"symbols"},":loop:":{uc_base:"27bf",uc_output:"27bf",uc_match:"27bf",uc_greedy:"27bf",shortnames:[],category:"symbols"},":m:":{uc_base:"24c2",uc_output:"24c2",uc_match:"24c2-fe0f",uc_greedy:"24c2-fe0f",shortnames:[],category:"symbols"},":male_sign:":{uc_base:"2642",uc_output:"2642",uc_match:"2642-fe0f",uc_greedy:"2642",shortnames:[],category:"symbols"},":medical_symbol:":{uc_base:"2695",uc_output:"2695",uc_match:"2695-fe0f",uc_greedy:"2695",shortnames:[],category:"symbols"},":mountain:":{uc_base:"26f0",uc_output:"26f0",uc_match:"26f0-fe0f",uc_greedy:"26f0-fe0f",shortnames:[],category:"travel"},":negative_squared_cross_mark:":{uc_base:"274e",uc_output:"274e",uc_match:"274e",uc_greedy:"274e",shortnames:[],category:"symbols"},":no_entry:":{uc_base:"26d4",uc_output:"26d4",uc_match:"26d4-fe0f",uc_greedy:"26d4-fe0f",shortnames:[],category:"symbols"},":o:":{uc_base:"2b55",uc_output:"2b55",uc_match:"2b55-fe0f",uc_greedy:"2b55-fe0f",shortnames:[],category:"symbols"},":ophiuchus:":{uc_base:"26ce",uc_output:"26ce",uc_match:"26ce",uc_greedy:"26ce",shortnames:[],category:"symbols"},":orthodox_cross:":{uc_base:"2626",uc_output:"2626",uc_match:"2626-fe0f",uc_greedy:"2626",shortnames:[],category:"symbols"},":part_alternation_mark:":{uc_base:"303d",uc_output:"303d",uc_match:"303d-fe0f",uc_greedy:"303d-fe0f",shortnames:[],category:"symbols"},":partly_sunny:":{uc_base:"26c5",uc_output:"26c5",uc_match:"26c5-fe0f",uc_greedy:"26c5-fe0f",shortnames:[],category:"nature"},":pause_button:":{uc_base:"23f8",uc_output:"23f8",uc_match:"23f8-fe0f",uc_greedy:"23f8",shortnames:[":double_vertical_bar:"],category:"symbols"},":peace:":{uc_base:"262e",uc_output:"262e",uc_match:"262e-fe0f",uc_greedy:"262e",shortnames:[":peace_symbol:"],category:"symbols"},":pencil2:":{uc_base:"270f",uc_output:"270f",uc_match:"270f-fe0f",uc_greedy:"270f-fe0f",shortnames:[],category:"objects"},":person_bouncing_ball:":{uc_base:"26f9",uc_output:"26f9",uc_match:"26f9-fe0f",uc_greedy:"26f9-fe0f",shortnames:[":basketball_player:",":person_with_ball:"],category:"activity"},":pick:":{uc_base:"26cf",uc_output:"26cf",uc_match:"26cf-fe0f",uc_greedy:"26cf-fe0f",shortnames:[],category:"objects"},":pisces:":{uc_base:"2653",uc_output:"2653",uc_match:"2653-fe0f",uc_greedy:"2653-fe0f",shortnames:[],category:"symbols"},":play_pause:":{uc_base:"23ef",uc_output:"23ef",uc_match:"23ef-fe0f",uc_greedy:"23ef",shortnames:[],category:"symbols"},":point_up:":{uc_base:"261d",uc_output:"261d",uc_match:"261d-fe0f",uc_greedy:"261d-fe0f",shortnames:[],category:"people"},":question:":{uc_base:"2753",uc_output:"2753",uc_match:"2753-fe0f",uc_greedy:"2753-fe0f",shortnames:[],category:"symbols"},":radioactive:":{uc_base:"2622",uc_output:"2622",uc_match:"2622-fe0f",uc_greedy:"2622",shortnames:[":radioactive_sign:"],category:"symbols"},":raised_hand:":{uc_base:"270b",uc_output:"270b",uc_match:"270b",uc_greedy:"270b",shortnames:[],category:"people"},":record_button:":{uc_base:"23fa",uc_output:"23fa",uc_match:"23fa-fe0f",uc_greedy:"23fa",shortnames:[],category:"symbols"},":recycle:":{uc_base:"267b",uc_output:"267b",uc_match:"267b-fe0f",uc_greedy:"267b-fe0f",shortnames:[],category:"symbols"},":registered:":{uc_base:"00ae",uc_output:"00ae",uc_match:"00ae-fe0f",uc_greedy:"00ae",shortnames:[],category:"symbols"},":relaxed:":{uc_base:"263a",uc_output:"263a",uc_match:"263a-fe0f",uc_greedy:"263a-fe0f",shortnames:[],category:"people"},":rewind:":{uc_base:"23ea",uc_output:"23ea",uc_match:"23ea-fe0f",uc_greedy:"23ea-fe0f",shortnames:[],category:"symbols"},":sagittarius:":{uc_base:"2650",uc_output:"2650",uc_match:"2650-fe0f",uc_greedy:"2650-fe0f",shortnames:[],category:"symbols"},":sailboat:":{uc_base:"26f5",uc_output:"26f5",uc_match:"26f5-fe0f",uc_greedy:"26f5-fe0f",shortnames:[],category:"travel"},":scales:":{uc_base:"2696",uc_output:"2696",uc_match:"2696-fe0f",uc_greedy:"2696-fe0f",shortnames:[],category:"objects"},":scissors:":{uc_base:"2702",uc_output:"2702",uc_match:"2702-fe0f",uc_greedy:"2702-fe0f",shortnames:[],category:"objects"},":scorpius:":{uc_base:"264f",uc_output:"264f",uc_match:"264f-fe0f",uc_greedy:"264f-fe0f",shortnames:[],category:"symbols"},":secret:":{uc_base:"3299",uc_output:"3299",uc_match:"3299-fe0f",uc_greedy:"3299-fe0f",shortnames:[],category:"symbols"},":shamrock:":{uc_base:"2618",uc_output:"2618",uc_match:"2618-fe0f",uc_greedy:"2618-fe0f",shortnames:[],category:"nature"},":shinto_shrine:":{uc_base:"26e9",uc_output:"26e9",uc_match:"26e9-fe0f",uc_greedy:"26e9-fe0f",shortnames:[],category:"travel"},":skier:":{uc_base:"26f7",uc_output:"26f7",uc_match:"26f7-fe0f",uc_greedy:"26f7-fe0f",shortnames:[],category:"activity"},":skull_crossbones:":{uc_base:"2620",uc_output:"2620",uc_match:"2620-fe0f",uc_greedy:"2620-fe0f",shortnames:[":skull_and_crossbones:"],category:"people"},":snowflake:":{uc_base:"2744",uc_output:"2744",uc_match:"2744-fe0f",uc_greedy:"2744-fe0f",shortnames:[],category:"nature"},":snowman2:":{uc_base:"2603",uc_output:"2603",uc_match:"2603-fe0f",uc_greedy:"2603-fe0f",shortnames:[],category:"nature"},":snowman:":{uc_base:"26c4",uc_output:"26c4",uc_match:"26c4-fe0f",uc_greedy:"26c4-fe0f",shortnames:[],category:"nature"},":soccer:":{uc_base:"26bd",uc_output:"26bd",uc_match:"26bd-fe0f",uc_greedy:"26bd-fe0f",shortnames:[],category:"activity"},":spades:":{uc_base:"2660",uc_output:"2660",uc_match:"2660-fe0f",uc_greedy:"2660-fe0f",shortnames:[],category:"symbols"},":sparkle:":{uc_base:"2747",uc_output:"2747",uc_match:"2747-fe0f",uc_greedy:"2747-fe0f",shortnames:[],category:"symbols"},":sparkles:":{uc_base:"2728",uc_output:"2728",uc_match:"2728",uc_greedy:"2728",shortnames:[],category:"nature"},":star:":{uc_base:"2b50",uc_output:"2b50",uc_match:"2b50-fe0f",uc_greedy:"2b50-fe0f",shortnames:[],category:"nature"},":star_and_crescent:":{uc_base:"262a",uc_output:"262a",uc_match:"262a-fe0f",uc_greedy:"262a",shortnames:[],category:"symbols"},":star_of_david:":{uc_base:"2721",uc_output:"2721",uc_match:"2721-fe0f",uc_greedy:"2721",shortnames:[],category:"symbols"},":stop_button:":{uc_base:"23f9",uc_output:"23f9",uc_match:"23f9-fe0f",uc_greedy:"23f9",shortnames:[],category:"symbols"},":stopwatch:":{uc_base:"23f1",uc_output:"23f1",uc_match:"23f1-fe0f",uc_greedy:"23f1-fe0f",shortnames:[],category:"objects"},":sunny:":{uc_base:"2600",uc_output:"2600",uc_match:"2600-fe0f",uc_greedy:"2600-fe0f",shortnames:[],category:"nature"},":taurus:":{uc_base:"2649",uc_output:"2649",uc_match:"2649-fe0f",uc_greedy:"2649-fe0f",shortnames:[],category:"symbols"},":telephone:":{uc_base:"260e",uc_output:"260e",uc_match:"260e-fe0f",uc_greedy:"260e-fe0f",shortnames:[],category:"objects"},":tent:":{uc_base:"26fa",uc_output:"26fa",uc_match:"26fa-fe0f",uc_greedy:"26fa-fe0f",shortnames:[],category:"travel"},":thunder_cloud_rain:":{uc_base:"26c8",uc_output:"26c8",uc_match:"26c8-fe0f",uc_greedy:"26c8-fe0f",shortnames:[":thunder_cloud_and_rain:"],category:"nature"},":timer:":{uc_base:"23f2",uc_output:"23f2",uc_match:"23f2-fe0f",uc_greedy:"23f2-fe0f",shortnames:[":timer_clock:"],category:"objects"},":tm:":{uc_base:"2122",uc_output:"2122",uc_match:"2122-fe0f",uc_greedy:"2122",shortnames:[],category:"symbols"},":track_next:":{uc_base:"23ed",uc_output:"23ed",uc_match:"23ed-fe0f",uc_greedy:"23ed",shortnames:[":next_track:"],category:"symbols"},":track_previous:":{uc_base:"23ee",uc_output:"23ee",uc_match:"23ee-fe0f",uc_greedy:"23ee",shortnames:[":previous_track:"],category:"symbols"},":umbrella2:":{uc_base:"2602",uc_output:"2602",uc_match:"2602-fe0f",uc_greedy:"2602-fe0f",shortnames:[],category:"nature"},":umbrella:":{uc_base:"2614",uc_output:"2614",uc_match:"2614-fe0f",uc_greedy:"2614-fe0f",shortnames:[],category:"nature"},":urn:":{uc_base:"26b1",uc_output:"26b1",uc_match:"26b1-fe0f",uc_greedy:"26b1-fe0f",shortnames:[":funeral_urn:"],category:"objects"},":v:":{uc_base:"270c",uc_output:"270c",uc_match:"270c-fe0f",uc_greedy:"270c-fe0f",shortnames:[],category:"people"},":virgo:":{uc_base:"264d",uc_output:"264d",uc_match:"264d-fe0f",uc_greedy:"264d-fe0f",shortnames:[],category:"symbols"},":warning:":{uc_base:"26a0",uc_output:"26a0",uc_match:"26a0-fe0f",uc_greedy:"26a0",shortnames:[],category:"symbols"},":watch:":{uc_base:"231a",uc_output:"231a",uc_match:"231a-fe0f",uc_greedy:"231a-fe0f",shortnames:[],category:"objects"},":wavy_dash:":{uc_base:"3030",uc_output:"3030",uc_match:"3030-fe0f",uc_greedy:"3030",shortnames:[],category:"symbols"},":wheel_of_dharma:":{uc_base:"2638",uc_output:"2638",uc_match:"2638-fe0f",uc_greedy:"2638",shortnames:[],category:"symbols"},":wheelchair:":{uc_base:"267f",uc_output:"267f",uc_match:"267f-fe0f",uc_greedy:"267f-fe0f",shortnames:[],category:"symbols"},":white_check_mark:":{uc_base:"2705",uc_output:"2705",uc_match:"2705",uc_greedy:"2705",shortnames:[],category:"symbols"},":white_circle:":{uc_base:"26aa",uc_output:"26aa",uc_match:"26aa-fe0f",uc_greedy:"26aa-fe0f",shortnames:[],category:"symbols"},":white_large_square:":{uc_base:"2b1c",uc_output:"2b1c",uc_match:"2b1c-fe0f",uc_greedy:"2b1c-fe0f",shortnames:[],category:"symbols"},":white_medium_small_square:":{uc_base:"25fd",uc_output:"25fd",uc_match:"25fd-fe0f",uc_greedy:"25fd-fe0f",shortnames:[],category:"symbols"},":white_medium_square:":{uc_base:"25fb",uc_output:"25fb",uc_match:"25fb-fe0f",uc_greedy:"25fb",shortnames:[],category:"symbols"},":white_small_square:":{uc_base:"25ab",uc_output:"25ab",uc_match:"25ab-fe0f",uc_greedy:"25ab",shortnames:[],category:"symbols"},":writing_hand:":{uc_base:"270d",uc_output:"270d",uc_match:"270d-fe0f",uc_greedy:"270d-fe0f",shortnames:[],category:"people"},":x:":{uc_base:"274c",uc_output:"274c",uc_match:"274c",uc_greedy:"274c",shortnames:[],category:"symbols"},":yin_yang:":{uc_base:"262f",uc_output:"262f",uc_match:"262f-fe0f",uc_greedy:"262f",shortnames:[],category:"symbols"},":zap:":{uc_base:"26a1",uc_output:"26a1",uc_match:"26a1-fe0f",uc_greedy:"26a1-fe0f",shortnames:[],category:"nature"}};var t,n=[];for(t in e.emojioneList)if(e.emojioneList.hasOwnProperty(t)&&""!==t){n.push(t.replace(/[+]/g,"\\$&"));for(var a=0;a<e.emojioneList[t].shortnames.length;a++)n.push(e.emojioneList[t].shortnames[a].replace(/[+]/g,"\\$&"))}e.shortnames=n.join("|"),e.jsEscapeMap={"👩\200d❤️\200d💋\200d👩":"1f469-2764-1f48b-1f469","👨\200d❤️\200d💋\200d👨":"1f468-2764-1f48b-1f468","👩\200d❤️\200d💋\200d👨":"1f469-2764-1f48b-1f468","🏴\e0067\e0062\e0065\e006e\e0067\e007f":"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f","🏴\e0067\e0062\e0073\e0063\e0074\e007f":"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f","🏴\e0067\e0062\e0077\e006c\e0073\e007f":"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f","👨\200d👨\200d👦\200d👦":"1f468-1f468-1f466-1f466","👨\200d👨\200d👧\200d👦":"1f468-1f468-1f467-1f466","👨\200d👨\200d👧\200d👧":"1f468-1f468-1f467-1f467","👨\200d👩\200d👦\200d👦":"1f468-1f469-1f466-1f466","👨\200d👩\200d👧\200d👦":"1f468-1f469-1f467-1f466","👨\200d👩\200d👧\200d👧":"1f468-1f469-1f467-1f467","👩\200d👩\200d👦\200d👦":"1f469-1f469-1f466-1f466","👩\200d👩\200d👧\200d👦":"1f469-1f469-1f467-1f466","👩\200d👩\200d👧\200d👧":"1f469-1f469-1f467-1f467","👨\200d\200d💋\200d👨":"1f468-2764-1f48b-1f468","👩\200d\200d💋\200d👨":"1f469-2764-1f48b-1f468","👩\200d\200d💋\200d👩":"1f469-2764-1f48b-1f469","👩\200d❤️\200d👩":"1f469-2764-1f469","👨\200d❤️\200d👨":"1f468-2764-1f468","👩\200d❤️\200d👨":"1f469-2764-1f468","🕵️🏻\200d♀️":"1f575-1f3fb-2640","🕵️🏻\200d♂️":"1f575-1f3fb-2642","🕵️🏼\200d♀️":"1f575-1f3fc-2640","🕵️🏼\200d♂️":"1f575-1f3fc-2642","🕵️🏽\200d♀️":"1f575-1f3fd-2640","🕵️🏽\200d♂️":"1f575-1f3fd-2642","🕵️🏾\200d♀️":"1f575-1f3fe-2640","🕵️🏾\200d♂️":"1f575-1f3fe-2642","🕵️🏿\200d♀️":"1f575-1f3ff-2640","🕵️🏿\200d♂️":"1f575-1f3ff-2642","🏋️🏻\200d♀️":"1f3cb-1f3fb-2640","🏋️🏻\200d♂️":"1f3cb-1f3fb-2642","🏋️🏼\200d♀️":"1f3cb-1f3fc-2640","🏋️🏼\200d♂️":"1f3cb-1f3fc-2642","🏋️🏽\200d♀️":"1f3cb-1f3fd-2640","🏋️🏽\200d♂️":"1f3cb-1f3fd-2642","🏋️🏾\200d♀️":"1f3cb-1f3fe-2640","🏋️🏾\200d♂️":"1f3cb-1f3fe-2642","🏋️🏿\200d♀️":"1f3cb-1f3ff-2640","🏋️🏿\200d♂️":"1f3cb-1f3ff-2642","🏌️🏻\200d♀️":"1f3cc-1f3fb-2640","🏌️🏻\200d♂️":"1f3cc-1f3fb-2642","🏌️🏼\200d♀️":"1f3cc-1f3fc-2640","🏌️🏼\200d♂️":"1f3cc-1f3fc-2642","🏌️🏽\200d♀️":"1f3cc-1f3fd-2640","🏌️🏽\200d♂️":"1f3cc-1f3fd-2642","🏌️🏾\200d♀️":"1f3cc-1f3fe-2640","🏌️🏾\200d♂️":"1f3cc-1f3fe-2642","🏌️🏿\200d♀️":"1f3cc-1f3ff-2640","🏌️🏿\200d♂️":"1f3cc-1f3ff-2642","⛹️🏻\200d♀️":"26f9-1f3fb-2640","⛹️🏻\200d♂️":"26f9-1f3fb-2642","⛹️🏼\200d♀️":"26f9-1f3fc-2640","⛹️🏼\200d♂️":"26f9-1f3fc-2642","⛹️🏽\200d♀️":"26f9-1f3fd-2640","⛹️🏽\200d♂️":"26f9-1f3fd-2642","⛹️🏾\200d♀️":"26f9-1f3fe-2640","⛹️🏾\200d♂️":"26f9-1f3fe-2642","⛹️🏿\200d♀️":"26f9-1f3ff-2640","⛹️🏿\200d♂️":"26f9-1f3ff-2642","👨\200d👨\200d👦":"1f468-1f468-1f466","👨\200d👨\200d👧":"1f468-1f468-1f467","👨\200d👩\200d👧":"1f468-1f469-1f467","👩\200d👩\200d👦":"1f469-1f469-1f466","👩\200d👩\200d👧":"1f469-1f469-1f467","👨\200d👦\200d👦":"1f468-1f466-1f466","👨\200d👧\200d👦":"1f468-1f467-1f466","👩\200d👦\200d👦":"1f469-1f466-1f466","👩\200d👧\200d👦":"1f469-1f467-1f466","👩\200d👧\200d👧":"1f469-1f467-1f467","👨❤️💋👨":"1f468-2764-1f48b-1f468","👨\200d👧\200d👧":"1f468-1f467-1f467","👨\200d👩\200d👦":"1f468-1f469-1f466","👩❤️💋👨":"1f469-2764-1f48b-1f468","👩❤️💋👩":"1f469-2764-1f48b-1f469","👨\200d\200d👨":"1f468-2764-1f468","👩\200d\200d👨":"1f469-2764-1f468","👩\200d\200d👩":"1f469-2764-1f469","👨🏻\200d⚕️":"1f468-1f3fb-2695","👨🏻\200d⚖️":"1f468-1f3fb-2696","👨🏻\200d✈️":"1f468-1f3fb-2708","👨🏼\200d⚕️":"1f468-1f3fc-2695","👨🏼\200d⚖️":"1f468-1f3fc-2696","👨🏼\200d✈️":"1f468-1f3fc-2708","👨🏽\200d⚕️":"1f468-1f3fd-2695","👨🏽\200d⚖️":"1f468-1f3fd-2696","👨🏽\200d✈️":"1f468-1f3fd-2708","👨🏾\200d⚕️":"1f468-1f3fe-2695","👨🏾\200d⚖️":"1f468-1f3fe-2696","👨🏾\200d✈️":"1f468-1f3fe-2708","👨🏿\200d⚕️":"1f468-1f3ff-2695","👨🏿\200d⚖️":"1f468-1f3ff-2696","👨🏿\200d✈️":"1f468-1f3ff-2708","👩🏻\200d⚕️":"1f469-1f3fb-2695","👩🏻\200d⚖️":"1f469-1f3fb-2696","👩🏻\200d✈️":"1f469-1f3fb-2708","👩🏼\200d⚕️":"1f469-1f3fc-2695","👩🏼\200d⚖️":"1f469-1f3fc-2696","👩🏼\200d✈️":"1f469-1f3fc-2708","👩🏽\200d⚕️":"1f469-1f3fd-2695","👩🏽\200d⚖️":"1f469-1f3fd-2696","👩🏽\200d✈️":"1f469-1f3fd-2708","👩🏾\200d⚕️":"1f469-1f3fe-2695","👩🏾\200d⚖️":"1f469-1f3fe-2696","👩🏾\200d✈️":"1f469-1f3fe-2708","👩🏿\200d⚕️":"1f469-1f3ff-2695","👩🏿\200d⚖️":"1f469-1f3ff-2696","👩🏿\200d✈️":"1f469-1f3ff-2708","👮🏻\200d♀️":"1f46e-1f3fb-2640","👮🏻\200d♂️":"1f46e-1f3fb-2642","👮🏼\200d♀️":"1f46e-1f3fc-2640","👮🏼\200d♂️":"1f46e-1f3fc-2642","👮🏽\200d♀️":"1f46e-1f3fd-2640","👮🏽\200d♂️":"1f46e-1f3fd-2642","👮🏾\200d♀️":"1f46e-1f3fe-2640","👮🏾\200d♂️":"1f46e-1f3fe-2642","👮🏿\200d♀️":"1f46e-1f3ff-2640","👮🏿\200d♂️":"1f46e-1f3ff-2642","👱🏻\200d♀️":"1f471-1f3fb-2640","👱🏻\200d♂️":"1f471-1f3fb-2642","👱🏼\200d♀️":"1f471-1f3fc-2640","👱🏼\200d♂️":"1f471-1f3fc-2642","👱🏽\200d♀️":"1f471-1f3fd-2640","👱🏽\200d♂️":"1f471-1f3fd-2642","👱🏾\200d♀️":"1f471-1f3fe-2640","👱🏾\200d♂️":"1f471-1f3fe-2642","👱🏿\200d♀️":"1f471-1f3ff-2640","👱🏿\200d♂️":"1f471-1f3ff-2642","👳🏻\200d♀️":"1f473-1f3fb-2640","👳🏻\200d♂️":"1f473-1f3fb-2642","👳🏼\200d♀️":"1f473-1f3fc-2640","👳🏼\200d♂️":"1f473-1f3fc-2642","👳🏽\200d♀️":"1f473-1f3fd-2640","👳🏽\200d♂️":"1f473-1f3fd-2642","👳🏾\200d♀️":"1f473-1f3fe-2640","👳🏾\200d♂️":"1f473-1f3fe-2642","👳🏿\200d♀️":"1f473-1f3ff-2640","👳🏿\200d♂️":"1f473-1f3ff-2642","👷🏻\200d♀️":"1f477-1f3fb-2640","👷🏻\200d♂️":"1f477-1f3fb-2642","👷🏼\200d♀️":"1f477-1f3fc-2640","👷🏼\200d♂️":"1f477-1f3fc-2642","👷🏽\200d♀️":"1f477-1f3fd-2640","👷🏽\200d♂️":"1f477-1f3fd-2642","👷🏾\200d♀️":"1f477-1f3fe-2640","👷🏾\200d♂️":"1f477-1f3fe-2642","👷🏿\200d♀️":"1f477-1f3ff-2640","👷🏿\200d♂️":"1f477-1f3ff-2642","💂🏻\200d♀️":"1f482-1f3fb-2640","💂🏻\200d♂️":"1f482-1f3fb-2642","💂🏼\200d♀️":"1f482-1f3fc-2640","💂🏼\200d♂️":"1f482-1f3fc-2642","💂🏽\200d♀️":"1f482-1f3fd-2640","💂🏽\200d♂️":"1f482-1f3fd-2642","💂🏾\200d♀️":"1f482-1f3fe-2640","💂🏾\200d♂️":"1f482-1f3fe-2642","💂🏿\200d♀️":"1f482-1f3ff-2640","💂🏿\200d♂️":"1f482-1f3ff-2642","🕵️🏻♀️":"1f575-1f3fb-2640","🕵️🏻♂️":"1f575-1f3fb-2642","🕵️🏼♀️":"1f575-1f3fc-2640","🕵️🏼♂️":"1f575-1f3fc-2642","🕵️🏽♀️":"1f575-1f3fd-2640","🕵️🏽♂️":"1f575-1f3fd-2642","🕵️🏾♀️":"1f575-1f3fe-2640","🕵️🏾♂️":"1f575-1f3fe-2642","🕵️🏿♀️":"1f575-1f3ff-2640","🕵️🏿♂️":"1f575-1f3ff-2642","🏃🏻\200d♀️":"1f3c3-1f3fb-2640","🏃🏻\200d♂️":"1f3c3-1f3fb-2642","🏃🏼\200d♀️":"1f3c3-1f3fc-2640","🏃🏼\200d♂️":"1f3c3-1f3fc-2642","🏃🏽\200d♀️":"1f3c3-1f3fd-2640","🏃🏽\200d♂️":"1f3c3-1f3fd-2642","🏃🏾\200d♀️":"1f3c3-1f3fe-2640","🏃🏾\200d♂️":"1f3c3-1f3fe-2642","🏃🏿\200d♀️":"1f3c3-1f3ff-2640","🏃🏿\200d♂️":"1f3c3-1f3ff-2642","🏄🏻\200d♀️":"1f3c4-1f3fb-2640","🏄🏻\200d♂️":"1f3c4-1f3fb-2642","🏄🏼\200d♀️":"1f3c4-1f3fc-2640","🏄🏼\200d♂️":"1f3c4-1f3fc-2642","🏄🏽\200d♀️":"1f3c4-1f3fd-2640","🏄🏽\200d♂️":"1f3c4-1f3fd-2642","🏄🏾\200d♀️":"1f3c4-1f3fe-2640","🏄🏾\200d♂️":"1f3c4-1f3fe-2642","🏄🏿\200d♀️":"1f3c4-1f3ff-2640","🏄🏿\200d♂️":"1f3c4-1f3ff-2642","🏊🏻\200d♀️":"1f3ca-1f3fb-2640","🏊🏻\200d♂️":"1f3ca-1f3fb-2642","🏊🏼\200d♀️":"1f3ca-1f3fc-2640","🏊🏼\200d♂️":"1f3ca-1f3fc-2642","🏊🏽\200d♀️":"1f3ca-1f3fd-2640","🏊🏽\200d♂️":"1f3ca-1f3fd-2642","🏊🏾\200d♀️":"1f3ca-1f3fe-2640","🏊🏾\200d♂️":"1f3ca-1f3fe-2642","🏊🏿\200d♀️":"1f3ca-1f3ff-2640","🏊🏿\200d♂️":"1f3ca-1f3ff-2642","🏋️🏻♀️":"1f3cb-1f3fb-2640","🏋️🏻♂️":"1f3cb-1f3fb-2642","🏋️🏼♀️":"1f3cb-1f3fc-2640","🏋️🏼♂️":"1f3cb-1f3fc-2642","🏋️🏽♀️":"1f3cb-1f3fd-2640","🏋️🏽♂️":"1f3cb-1f3fd-2642","🏋️🏾♀️":"1f3cb-1f3fe-2640","🏋️🏾♂️":"1f3cb-1f3fe-2642","🏋️🏿♀️":"1f3cb-1f3ff-2640","🏋️🏿♂️":"1f3cb-1f3ff-2642","🏌️🏻♀️":"1f3cc-1f3fb-2640","🏌️🏻♂️":"1f3cc-1f3fb-2642","🏌️🏼♀️":"1f3cc-1f3fc-2640","🏌️🏼♂️":"1f3cc-1f3fc-2642","🏌️🏽♀️":"1f3cc-1f3fd-2640","🏌️🏽♂️":"1f3cc-1f3fd-2642","🏌️🏾♀️":"1f3cc-1f3fe-2640","🏌️🏾♂️":"1f3cc-1f3fe-2642","🏌️🏿♀️":"1f3cc-1f3ff-2640","🏌️🏿♂️":"1f3cc-1f3ff-2642","💆🏻\200d♀️":"1f486-1f3fb-2640","💆🏻\200d♂️":"1f486-1f3fb-2642","💆🏼\200d♀️":"1f486-1f3fc-2640","💆🏼\200d♂️":"1f486-1f3fc-2642","💆🏽\200d♀️":"1f486-1f3fd-2640","💆🏽\200d♂️":"1f486-1f3fd-2642","💆🏾\200d♀️":"1f486-1f3fe-2640","💆🏾\200d♂️":"1f486-1f3fe-2642","💆🏿\200d♀️":"1f486-1f3ff-2640","💆🏿\200d♂️":"1f486-1f3ff-2642","💇🏻\200d♀️":"1f487-1f3fb-2640","💇🏻\200d♂️":"1f487-1f3fb-2642","💇🏼\200d♀️":"1f487-1f3fc-2640","💇🏼\200d♂️":"1f487-1f3fc-2642","💇🏽\200d♀️":"1f487-1f3fd-2640","💇🏽\200d♂️":"1f487-1f3fd-2642","💇🏾\200d♀️":"1f487-1f3fe-2640","💇🏾\200d♂️":"1f487-1f3fe-2642","💇🏿\200d♀️":"1f487-1f3ff-2640","💇🏿\200d♂️":"1f487-1f3ff-2642","🚣🏻\200d♀️":"1f6a3-1f3fb-2640","🚣🏻\200d♂️":"1f6a3-1f3fb-2642","🚣🏼\200d♀️":"1f6a3-1f3fc-2640","🚣🏼\200d♂️":"1f6a3-1f3fc-2642","🚣🏽\200d♀️":"1f6a3-1f3fd-2640","🚣🏽\200d♂️":"1f6a3-1f3fd-2642","🚣🏾\200d♀️":"1f6a3-1f3fe-2640","🚣🏾\200d♂️":"1f6a3-1f3fe-2642","🚣🏿\200d♀️":"1f6a3-1f3ff-2640","🚣🏿\200d♂️":"1f6a3-1f3ff-2642","🚴🏻\200d♀️":"1f6b4-1f3fb-2640","🚴🏻\200d♂️":"1f6b4-1f3fb-2642","🚴🏼\200d♀️":"1f6b4-1f3fc-2640","🚴🏼\200d♂️":"1f6b4-1f3fc-2642","🚴🏽\200d♀️":"1f6b4-1f3fd-2640","🚴🏽\200d♂️":"1f6b4-1f3fd-2642","🚴🏾\200d♀️":"1f6b4-1f3fe-2640","🚴🏾\200d♂️":"1f6b4-1f3fe-2642","🚴🏿\200d♀️":"1f6b4-1f3ff-2640","🚴🏿\200d♂️":"1f6b4-1f3ff-2642","🚵🏻\200d♀️":"1f6b5-1f3fb-2640","🚵🏻\200d♂️":"1f6b5-1f3fb-2642","🚵🏼\200d♀️":"1f6b5-1f3fc-2640","🚵🏼\200d♂️":"1f6b5-1f3fc-2642","🚵🏽\200d♀️":"1f6b5-1f3fd-2640","🚵🏽\200d♂️":"1f6b5-1f3fd-2642","🚵🏾\200d♀️":"1f6b5-1f3fe-2640","🚵🏾\200d♂️":"1f6b5-1f3fe-2642","🚵🏿\200d♀️":"1f6b5-1f3ff-2640","🚵🏿\200d♂️":"1f6b5-1f3ff-2642","🚶🏻\200d♀️":"1f6b6-1f3fb-2640","🚶🏻\200d♂️":"1f6b6-1f3fb-2642","🚶🏼\200d♀️":"1f6b6-1f3fc-2640","🚶🏼\200d♂️":"1f6b6-1f3fc-2642","🚶🏽\200d♀️":"1f6b6-1f3fd-2640","🚶🏽\200d♂️":"1f6b6-1f3fd-2642","🚶🏾\200d♀️":"1f6b6-1f3fe-2640","🚶🏾\200d♂️":"1f6b6-1f3fe-2642","🚶🏿\200d♀️":"1f6b6-1f3ff-2640","🚶🏿\200d♂️":"1f6b6-1f3ff-2642","🤸🏻\200d♀️":"1f938-1f3fb-2640","🤸🏻\200d♂️":"1f938-1f3fb-2642","🤸🏼\200d♀️":"1f938-1f3fc-2640","🤸🏼\200d♂️":"1f938-1f3fc-2642","🤸🏽\200d♀️":"1f938-1f3fd-2640","🤸🏽\200d♂️":"1f938-1f3fd-2642","🤸🏾\200d♀️":"1f938-1f3fe-2640","🤸🏾\200d♂️":"1f938-1f3fe-2642","🤸🏿\200d♀️":"1f938-1f3ff-2640","🤸🏿\200d♂️":"1f938-1f3ff-2642","🤹🏻\200d♀️":"1f939-1f3fb-2640","🤹🏻\200d♂️":"1f939-1f3fb-2642","🤹🏼\200d♀️":"1f939-1f3fc-2640","🤹🏼\200d♂️":"1f939-1f3fc-2642","🤹🏽\200d♀️":"1f939-1f3fd-2640","🤹🏽\200d♂️":"1f939-1f3fd-2642","🤹🏾\200d♀️":"1f939-1f3fe-2640","🤹🏾\200d♂️":"1f939-1f3fe-2642","🤹🏿\200d♀️":"1f939-1f3ff-2640","🤹🏿\200d♂️":"1f939-1f3ff-2642","🤽🏻\200d♀️":"1f93d-1f3fb-2640","🤽🏻\200d♂️":"1f93d-1f3fb-2642","🤽🏼\200d♀️":"1f93d-1f3fc-2640","🤽🏼\200d♂️":"1f93d-1f3fc-2642","🤽🏽\200d♀️":"1f93d-1f3fd-2640","🤽🏽\200d♂️":"1f93d-1f3fd-2642","🤽🏾\200d♀️":"1f93d-1f3fe-2640","🤽🏾\200d♂️":"1f93d-1f3fe-2642","🤽🏿\200d♀️":"1f93d-1f3ff-2640","🤽🏿\200d♂️":"1f93d-1f3ff-2642","🤾🏻\200d♀️":"1f93e-1f3fb-2640","🤾🏻\200d♂️":"1f93e-1f3fb-2642","🤾🏼\200d♀️":"1f93e-1f3fc-2640","🤾🏼\200d♂️":"1f93e-1f3fc-2642","🤾🏽\200d♀️":"1f93e-1f3fd-2640","🤾🏽\200d♂️":"1f93e-1f3fd-2642","🤾🏾\200d♀️":"1f93e-1f3fe-2640","🤾🏾\200d♂️":"1f93e-1f3fe-2642","🤾🏿\200d♀️":"1f93e-1f3ff-2640","🤾🏿\200d♂️":"1f93e-1f3ff-2642","💁🏻\200d♀️":"1f481-1f3fb-2640","💁🏻\200d♂️":"1f481-1f3fb-2642","💁🏼\200d♀️":"1f481-1f3fc-2640","💁🏼\200d♂️":"1f481-1f3fc-2642","💁🏽\200d♀️":"1f481-1f3fd-2640","💁🏽\200d♂️":"1f481-1f3fd-2642","💁🏾\200d♀️":"1f481-1f3fe-2640","💁🏾\200d♂️":"1f481-1f3fe-2642","💁🏿\200d♀️":"1f481-1f3ff-2640","💁🏿\200d♂️":"1f481-1f3ff-2642","🙅🏻\200d♀️":"1f645-1f3fb-2640","🙅🏻\200d♂️":"1f645-1f3fb-2642","🙅🏼\200d♀️":"1f645-1f3fc-2640","🙅🏼\200d♂️":"1f645-1f3fc-2642","🙅🏽\200d♀️":"1f645-1f3fd-2640","🙅🏽\200d♂️":"1f645-1f3fd-2642","🙅🏾\200d♀️":"1f645-1f3fe-2640","🙅🏾\200d♂️":"1f645-1f3fe-2642","🙅🏿\200d♀️":"1f645-1f3ff-2640","🙅🏿\200d♂️":"1f645-1f3ff-2642","🙆🏻\200d♀️":"1f646-1f3fb-2640","🙆🏻\200d♂️":"1f646-1f3fb-2642","🙆🏼\200d♀️":"1f646-1f3fc-2640","🙆🏼\200d♂️":"1f646-1f3fc-2642","🙆🏽\200d♀️":"1f646-1f3fd-2640","🙆🏽\200d♂️":"1f646-1f3fd-2642","🙆🏾\200d♀️":"1f646-1f3fe-2640","🙆🏾\200d♂️":"1f646-1f3fe-2642","🙆🏿\200d♀️":"1f646-1f3ff-2640","🙆🏿\200d♂️":"1f646-1f3ff-2642","🙇🏻\200d♀️":"1f647-1f3fb-2640","🙇🏻\200d♂️":"1f647-1f3fb-2642","🙇🏼\200d♀️":"1f647-1f3fc-2640","🙇🏼\200d♂️":"1f647-1f3fc-2642","🙇🏽\200d♀️":"1f647-1f3fd-2640","🙇🏽\200d♂️":"1f647-1f3fd-2642","🙇🏾\200d♀️":"1f647-1f3fe-2640","🙇🏾\200d♂️":"1f647-1f3fe-2642","🙇🏿\200d♀️":"1f647-1f3ff-2640","🙇🏿\200d♂️":"1f647-1f3ff-2642","🙋🏻\200d♀️":"1f64b-1f3fb-2640","🙋🏻\200d♂️":"1f64b-1f3fb-2642","🙋🏼\200d♀️":"1f64b-1f3fc-2640","🙋🏼\200d♂️":"1f64b-1f3fc-2642","🙋🏽\200d♀️":"1f64b-1f3fd-2640","🙋🏽\200d♂️":"1f64b-1f3fd-2642","🙋🏾\200d♀️":"1f64b-1f3fe-2640","🙋🏾\200d♂️":"1f64b-1f3fe-2642","🙋🏿\200d♀️":"1f64b-1f3ff-2640","🙋🏿\200d♂️":"1f64b-1f3ff-2642","🙍🏻\200d♀️":"1f64d-1f3fb-2640","🙍🏻\200d♂️":"1f64d-1f3fb-2642","🙍🏼\200d♀️":"1f64d-1f3fc-2640","🙍🏼\200d♂️":"1f64d-1f3fc-2642","🙍🏽\200d♀️":"1f64d-1f3fd-2640","🙍🏽\200d♂️":"1f64d-1f3fd-2642","🙍🏾\200d♀️":"1f64d-1f3fe-2640","🙍🏾\200d♂️":"1f64d-1f3fe-2642","🙍🏿\200d♀️":"1f64d-1f3ff-2640","🙍🏿\200d♂️":"1f64d-1f3ff-2642","🙎🏻\200d♀️":"1f64e-1f3fb-2640","🙎🏻\200d♂️":"1f64e-1f3fb-2642","🙎🏼\200d♀️":"1f64e-1f3fc-2640","🙎🏼\200d♂️":"1f64e-1f3fc-2642","🙎🏽\200d♀️":"1f64e-1f3fd-2640","🙎🏽\200d♂️":"1f64e-1f3fd-2642","🙎🏾\200d♀️":"1f64e-1f3fe-2640","🙎🏾\200d♂️":"1f64e-1f3fe-2642","🙎🏿\200d♀️":"1f64e-1f3ff-2640","🙎🏿\200d♂️":"1f64e-1f3ff-2642","🤦🏻\200d♀️":"1f926-1f3fb-2640","🤦🏻\200d♂️":"1f926-1f3fb-2642","🤦🏼\200d♀️":"1f926-1f3fc-2640","🤦🏼\200d♂️":"1f926-1f3fc-2642","🤦🏽\200d♀️":"1f926-1f3fd-2640","🤦🏽\200d♂️":"1f926-1f3fd-2642","🤦🏾\200d♀️":"1f926-1f3fe-2640","🤦🏾\200d♂️":"1f926-1f3fe-2642","🤦🏿\200d♀️":"1f926-1f3ff-2640","🤦🏿\200d♂️":"1f926-1f3ff-2642","🤷🏻\200d♀️":"1f937-1f3fb-2640","🤷🏻\200d♂️":"1f937-1f3fb-2642","🤷🏼\200d♀️":"1f937-1f3fc-2640","🤷🏼\200d♂️":"1f937-1f3fc-2642","🤷🏽\200d♀️":"1f937-1f3fd-2640","🤷🏽\200d♂️":"1f937-1f3fd-2642","🤷🏾\200d♀️":"1f937-1f3fe-2640","🤷🏾\200d♂️":"1f937-1f3fe-2642","🤷🏿\200d♀️":"1f937-1f3ff-2640","🤷🏿\200d♂️":"1f937-1f3ff-2642","👁️\200d🗨️":"1f441-1f5e8","🕵🏻\200d♀️":"1f575-1f3fb-2640","🕵🏻\200d♂️":"1f575-1f3fb-2642","🕵🏼\200d♀️":"1f575-1f3fc-2640","🕵🏼\200d♂️":"1f575-1f3fc-2642","🕵🏽\200d♀️":"1f575-1f3fd-2640","🕵🏽\200d♂️":"1f575-1f3fd-2642","🕵🏾\200d♀️":"1f575-1f3fe-2640","🕵🏾\200d♂️":"1f575-1f3fe-2642","🕵🏿\200d♀️":"1f575-1f3ff-2640","🕵🏿\200d♂️":"1f575-1f3ff-2642","🏋🏻\200d♀️":"1f3cb-1f3fb-2640","🏋🏻\200d♂️":"1f3cb-1f3fb-2642","🏋🏼\200d♀️":"1f3cb-1f3fc-2640","🏋🏼\200d♂️":"1f3cb-1f3fc-2642","🏋🏽\200d♀️":"1f3cb-1f3fd-2640","🏋🏽\200d♂️":"1f3cb-1f3fd-2642","🏋🏾\200d♀️":"1f3cb-1f3fe-2640","🏋🏾\200d♂️":"1f3cb-1f3fe-2642","🏋🏿\200d♀️":"1f3cb-1f3ff-2640","🏋🏿\200d♂️":"1f3cb-1f3ff-2642","🏌🏻\200d♀️":"1f3cc-1f3fb-2640","🏌🏻\200d♂️":"1f3cc-1f3fb-2642","🏌🏼\200d♀️":"1f3cc-1f3fc-2640","🏌🏼\200d♂️":"1f3cc-1f3fc-2642","🏌🏽\200d♀️":"1f3cc-1f3fd-2640","🏌🏽\200d♂️":"1f3cc-1f3fd-2642","🏌🏾\200d♀️":"1f3cc-1f3fe-2640","🏌🏾\200d♂️":"1f3cc-1f3fe-2642","🏌🏿\200d♀️":"1f3cc-1f3ff-2640","🏌🏿\200d♂️":"1f3cc-1f3ff-2642","🧙🏻\200d♀️":"1f9d9-1f3fb-2640","🧙🏻\200d♂️":"1f9d9-1f3fb-2642","🧙🏼\200d♀️":"1f9d9-1f3fc-2640","🧙🏼\200d♂️":"1f9d9-1f3fc-2642","🧙🏽\200d♀️":"1f9d9-1f3fd-2640","🧙🏽\200d♂️":"1f9d9-1f3fd-2642","🧙🏾\200d♀️":"1f9d9-1f3fe-2640","🧙🏾\200d♂️":"1f9d9-1f3fe-2642","🧙🏿\200d♀️":"1f9d9-1f3ff-2640","🧙🏿\200d♂️":"1f9d9-1f3ff-2642","🧚🏻\200d♀️":"1f9da-1f3fb-2640","🧚🏻\200d♂️":"1f9da-1f3fb-2642","🧚🏼\200d♀️":"1f9da-1f3fc-2640","🧚🏼\200d♂️":"1f9da-1f3fc-2642","🧚🏽\200d♀️":"1f9da-1f3fd-2640","🧚🏽\200d♂️":"1f9da-1f3fd-2642","🧚🏾\200d♀️":"1f9da-1f3fe-2640","🧚🏾\200d♂️":"1f9da-1f3fe-2642","🧚🏿\200d♀️":"1f9da-1f3ff-2640","🧚🏿\200d♂️":"1f9da-1f3ff-2642","🧛🏻\200d♀️":"1f9db-1f3fb-2640","🧛🏻\200d♂️":"1f9db-1f3fb-2642","🧛🏼\200d♀️":"1f9db-1f3fc-2640","🧛🏼\200d♂️":"1f9db-1f3fc-2642","🧛🏽\200d♀️":"1f9db-1f3fd-2640","🧛🏽\200d♂️":"1f9db-1f3fd-2642","🧛🏾\200d♀️":"1f9db-1f3fe-2640","🧛🏾\200d♂️":"1f9db-1f3fe-2642","🧛🏿\200d♀️":"1f9db-1f3ff-2640","🧛🏿\200d♂️":"1f9db-1f3ff-2642","🧜🏻\200d♀️":"1f9dc-1f3fb-2640","🧜🏻\200d♂️":"1f9dc-1f3fb-2642","🧜🏼\200d♀️":"1f9dc-1f3fc-2640","🧜🏼\200d♂️":"1f9dc-1f3fc-2642","🧜🏽\200d♀️":"1f9dc-1f3fd-2640","🧜🏽\200d♂️":"1f9dc-1f3fd-2642","🧜🏾\200d♀️":"1f9dc-1f3fe-2640","🧜🏾\200d♂️":"1f9dc-1f3fe-2642","🧜🏿\200d♀️":"1f9dc-1f3ff-2640","🧜🏿\200d♂️":"1f9dc-1f3ff-2642","🧝🏻\200d♀️":"1f9dd-1f3fb-2640","🧝🏻\200d♂️":"1f9dd-1f3fb-2642","🧝🏼\200d♀️":"1f9dd-1f3fc-2640","🧝🏼\200d♂️":"1f9dd-1f3fc-2642","🧝🏽\200d♀️":"1f9dd-1f3fd-2640","🧝🏽\200d♂️":"1f9dd-1f3fd-2642","🧝🏾\200d♀️":"1f9dd-1f3fe-2640","🧝🏾\200d♂️":"1f9dd-1f3fe-2642","🧝🏿\200d♀️":"1f9dd-1f3ff-2640","🧝🏿\200d♂️":"1f9dd-1f3ff-2642","🧖🏻\200d♀️":"1f9d6-1f3fb-2640","🧖🏻\200d♂️":"1f9d6-1f3fb-2642","🧖🏼\200d♀️":"1f9d6-1f3fc-2640","🧖🏼\200d♂️":"1f9d6-1f3fc-2642","🧖🏽\200d♀️":"1f9d6-1f3fd-2640","🧖🏽\200d♂️":"1f9d6-1f3fd-2642","🧖🏾\200d♀️":"1f9d6-1f3fe-2640","🧖🏾\200d♂️":"1f9d6-1f3fe-2642","🧖🏿\200d♀️":"1f9d6-1f3ff-2640","🧖🏿\200d♂️":"1f9d6-1f3ff-2642","🧗🏻\200d♀️":"1f9d7-1f3fb-2640","🧗🏻\200d♂️":"1f9d7-1f3fb-2642","🧗🏼\200d♀️":"1f9d7-1f3fc-2640","🧗🏼\200d♂️":"1f9d7-1f3fc-2642","🧗🏽\200d♀️":"1f9d7-1f3fd-2640","🧗🏽\200d♂️":"1f9d7-1f3fd-2642","🧗🏾\200d♀️":"1f9d7-1f3fe-2640","🧗🏾\200d♂️":"1f9d7-1f3fe-2642","🧗🏿\200d♀️":"1f9d7-1f3ff-2640","🧗🏿\200d♂️":"1f9d7-1f3ff-2642","🧘🏻\200d♀️":"1f9d8-1f3fb-2640","🧘🏻\200d♂️":"1f9d8-1f3fb-2642","🧘🏼\200d♀️":"1f9d8-1f3fc-2640","🧘🏼\200d♂️":"1f9d8-1f3fc-2642","🧘🏽\200d♀️":"1f9d8-1f3fd-2640","🧘🏽\200d♂️":"1f9d8-1f3fd-2642","🧘🏾\200d♀️":"1f9d8-1f3fe-2640","🧘🏾\200d♂️":"1f9d8-1f3fe-2642","🧘🏿\200d♀️":"1f9d8-1f3ff-2640","🧘🏿\200d♂️":"1f9d8-1f3ff-2642","🕵️\200d♀️":"1f575-2640","🕵️\200d♂️":"1f575-2642","⛹️🏻♀️":"26f9-1f3fb-2640","⛹️🏻♂️":"26f9-1f3fb-2642","⛹️🏼♀️":"26f9-1f3fc-2640","⛹️🏼♂️":"26f9-1f3fc-2642","⛹️🏽♀️":"26f9-1f3fd-2640","⛹️🏽♂️":"26f9-1f3fd-2642","⛹️🏾♀️":"26f9-1f3fe-2640","⛹️🏾♂️":"26f9-1f3fe-2642","⛹️🏿♀️":"26f9-1f3ff-2640","⛹️🏿♂️":"26f9-1f3ff-2642","🏋️\200d♀️":"1f3cb-2640","🏋️\200d♂️":"1f3cb-2642","🏌️\200d♀️":"1f3cc-2640","🏌️\200d♂️":"1f3cc-2642","⛹🏻\200d♀️":"26f9-1f3fb-2640","⛹🏻\200d♂️":"26f9-1f3fb-2642","⛹🏼\200d♀️":"26f9-1f3fc-2640","⛹🏼\200d♂️":"26f9-1f3fc-2642","⛹🏽\200d♀️":"26f9-1f3fd-2640","⛹🏽\200d♂️":"26f9-1f3fd-2642","⛹🏾\200d♀️":"26f9-1f3fe-2640","⛹🏾\200d♂️":"26f9-1f3fe-2642","⛹🏿\200d♀️":"26f9-1f3ff-2640","⛹🏿\200d♂️":"26f9-1f3ff-2642","⛹️\200d♀️":"26f9-2640","⛹️\200d♂️":"26f9-2642","👨👨👦👦":"1f468-1f468-1f466-1f466","👨👨👧👦":"1f468-1f468-1f467-1f466","👨👨👧👧":"1f468-1f468-1f467-1f467","👨👩👦👦":"1f468-1f469-1f466-1f466","👨👩👧👦":"1f468-1f469-1f467-1f466","👨👩👧👧":"1f468-1f469-1f467-1f467","👩👩👦👦":"1f469-1f469-1f466-1f466","👩👩👧👦":"1f469-1f469-1f467-1f466","👩👩👧👧":"1f469-1f469-1f467-1f467","👨🏿\200d💻":"1f468-1f3ff-1f4bb","👨🏾\200d💻":"1f468-1f3fe-1f4bb","👨🏽\200d💻":"1f468-1f3fd-1f4bb","👨🏼\200d💻":"1f468-1f3fc-1f4bb","👨🏻\200d💻":"1f468-1f3fb-1f4bb","👩🏿\200d💻":"1f469-1f3ff-1f4bb","👩🏾\200d💻":"1f469-1f3fe-1f4bb","👩🏽\200d💻":"1f469-1f3fd-1f4bb","👩🏼\200d💻":"1f469-1f3fc-1f4bb","👩🏻\200d💻":"1f469-1f3fb-1f4bb","👨🏿\200d🏫":"1f468-1f3ff-1f3eb","👨🏾\200d🏫":"1f468-1f3fe-1f3eb","👨🏽\200d🏫":"1f468-1f3fd-1f3eb","👨🏼\200d🏫":"1f468-1f3fc-1f3eb","👨🏻\200d🏫":"1f468-1f3fb-1f3eb","👩🏿\200d🏫":"1f469-1f3ff-1f3eb","👩🏾\200d🏫":"1f469-1f3fe-1f3eb","👩🏽\200d🏫":"1f469-1f3fd-1f3eb","👩🏼\200d🏫":"1f469-1f3fc-1f3eb","👩🏻\200d🏫":"1f469-1f3fb-1f3eb","👨🏿\200d🎓":"1f468-1f3ff-1f393","👨🏾\200d🎓":"1f468-1f3fe-1f393","👨🏽\200d🎓":"1f468-1f3fd-1f393","👨🏼\200d🎓":"1f468-1f3fc-1f393","👨🏻\200d🎓":"1f468-1f3fb-1f393","👩🏿\200d🎓":"1f469-1f3ff-1f393","👩🏾\200d🎓":"1f469-1f3fe-1f393","👩🏽\200d🎓":"1f469-1f3fd-1f393","👩🏼\200d🎓":"1f469-1f3fc-1f393","👩🏻\200d🎓":"1f469-1f3fb-1f393","👨🏿\200d🎤":"1f468-1f3ff-1f3a4","👨🏾\200d🎤":"1f468-1f3fe-1f3a4","👨🏽\200d🎤":"1f468-1f3fd-1f3a4","👨🏼\200d🎤":"1f468-1f3fc-1f3a4","👨🏻\200d🎤":"1f468-1f3fb-1f3a4","👩🏿\200d🎤":"1f469-1f3ff-1f3a4","👩🏾\200d🎤":"1f469-1f3fe-1f3a4","👩🏽\200d🎤":"1f469-1f3fd-1f3a4","👩🏼\200d🎤":"1f469-1f3fc-1f3a4","👩🏻\200d🎤":"1f469-1f3fb-1f3a4","👨🏿\200d🔬":"1f468-1f3ff-1f52c","👨🏾\200d🔬":"1f468-1f3fe-1f52c","👨🏽\200d🔬":"1f468-1f3fd-1f52c","👨🏼\200d🔬":"1f468-1f3fc-1f52c","👨🏻\200d🔬":"1f468-1f3fb-1f52c","👩🏿\200d🔬":"1f469-1f3ff-1f52c","👩🏾\200d🔬":"1f469-1f3fe-1f52c","👩🏽\200d🔬":"1f469-1f3fd-1f52c","👩🏼\200d🔬":"1f469-1f3fc-1f52c","👩🏻\200d🔬":"1f469-1f3fb-1f52c","👨🏿\200d💼":"1f468-1f3ff-1f4bc","👨🏾\200d💼":"1f468-1f3fe-1f4bc","👨🏽\200d💼":"1f468-1f3fd-1f4bc","👨🏼\200d💼":"1f468-1f3fc-1f4bc","👨🏻\200d💼":"1f468-1f3fb-1f4bc","👩🏿\200d💼":"1f469-1f3ff-1f4bc","👩🏾\200d💼":"1f469-1f3fe-1f4bc","👩🏽\200d💼":"1f469-1f3fd-1f4bc","👩🏼\200d💼":"1f469-1f3fc-1f4bc","👩🏻\200d💼":"1f469-1f3fb-1f4bc","👨🏿\200d🔧":"1f468-1f3ff-1f527","👨🏾\200d🔧":"1f468-1f3fe-1f527","👨🏽\200d🔧":"1f468-1f3fd-1f527","👨🏼\200d🔧":"1f468-1f3fc-1f527","👨🏻\200d🔧":"1f468-1f3fb-1f527","👩🏿\200d🔧":"1f469-1f3ff-1f527","👩🏾\200d🔧":"1f469-1f3fe-1f527","👩🏽\200d🔧":"1f469-1f3fd-1f527","👩🏼\200d🔧":"1f469-1f3fc-1f527","👩🏻\200d🔧":"1f469-1f3fb-1f527","👨🏿\200d🏭":"1f468-1f3ff-1f3ed","👨🏾\200d🏭":"1f468-1f3fe-1f3ed","👨🏽\200d🏭":"1f468-1f3fd-1f3ed","👨🏼\200d🏭":"1f468-1f3fc-1f3ed","👨🏻\200d🏭":"1f468-1f3fb-1f3ed","👩🏿\200d🏭":"1f469-1f3ff-1f3ed","👩🏾\200d🏭":"1f469-1f3fe-1f3ed","👩🏽\200d🏭":"1f469-1f3fd-1f3ed","👩🏼\200d🏭":"1f469-1f3fc-1f3ed","👩🏻\200d🏭":"1f469-1f3fb-1f3ed","👨🏿\200d🍳":"1f468-1f3ff-1f373","👨🏾\200d🍳":"1f468-1f3fe-1f373","👨🏽\200d🍳":"1f468-1f3fd-1f373","👨🏼\200d🍳":"1f468-1f3fc-1f373","👨🏻\200d🍳":"1f468-1f3fb-1f373","👩🏿\200d🍳":"1f469-1f3ff-1f373","👩🏾\200d🍳":"1f469-1f3fe-1f373","👩🏽\200d🍳":"1f469-1f3fd-1f373","👩🏼\200d🍳":"1f469-1f3fc-1f373","👩🏻\200d🍳":"1f469-1f3fb-1f373","👨🏿\200d🌾":"1f468-1f3ff-1f33e","👨🏾\200d🌾":"1f468-1f3fe-1f33e","👨🏽\200d🌾":"1f468-1f3fd-1f33e","👨🏼\200d🌾":"1f468-1f3fc-1f33e","👨🏻\200d🌾":"1f468-1f3fb-1f33e","👩🏿\200d🌾":"1f469-1f3ff-1f33e","👩🏾\200d🌾":"1f469-1f3fe-1f33e","👩🏽\200d🌾":"1f469-1f3fd-1f33e","👩🏼\200d🌾":"1f469-1f3fc-1f33e","👩🏻\200d🌾":"1f469-1f3fb-1f33e","👨🏻\200d🎨":"1f468-1f3fb-1f3a8","👨🏼\200d🎨":"1f468-1f3fc-1f3a8","👨🏽\200d🎨":"1f468-1f3fd-1f3a8","👨🏾\200d🎨":"1f468-1f3fe-1f3a8","👨🏿\200d🎨":"1f468-1f3ff-1f3a8","👩🏻\200d🎨":"1f469-1f3fb-1f3a8","👩🏼\200d🎨":"1f469-1f3fc-1f3a8","👩🏽\200d🎨":"1f469-1f3fd-1f3a8","👩🏾\200d🎨":"1f469-1f3fe-1f3a8","👩🏿\200d🎨":"1f469-1f3ff-1f3a8","👨🏻\200d🚀":"1f468-1f3fb-1f680","👨🏼\200d🚀":"1f468-1f3fc-1f680","👨🏽\200d🚀":"1f468-1f3fd-1f680","👨🏾\200d🚀":"1f468-1f3fe-1f680","👨🏿\200d🚀":"1f468-1f3ff-1f680","👩🏻\200d🚀":"1f469-1f3fb-1f680","👩🏼\200d🚀":"1f469-1f3fc-1f680","👩🏽\200d🚀":"1f469-1f3fd-1f680","👩🏾\200d🚀":"1f469-1f3fe-1f680","👩🏿\200d🚀":"1f469-1f3ff-1f680","👨🏻\200d🚒":"1f468-1f3fb-1f692","👨🏼\200d🚒":"1f468-1f3fc-1f692","👨🏽\200d🚒":"1f468-1f3fd-1f692","👨🏾\200d🚒":"1f468-1f3fe-1f692","👨🏿\200d🚒":"1f468-1f3ff-1f692","👩🏻\200d🚒":"1f469-1f3fb-1f692","👩🏼\200d🚒":"1f469-1f3fc-1f692","👩🏽\200d🚒":"1f469-1f3fd-1f692","👩🏾\200d🚒":"1f469-1f3fe-1f692","👩🏿\200d🚒":"1f469-1f3ff-1f692","🏳️\200d🌈":"1f3f3-1f308","🏌🏻\200d♂":"1f3cc-1f3fb-2642","🏌🏼\200d♂":"1f3cc-1f3fc-2642","🏌🏽\200d♂":"1f3cc-1f3fd-2642","🏌🏾\200d♂":"1f3cc-1f3fe-2642","🏌🏿\200d♂":"1f3cc-1f3ff-2642","🏌🏻\200d♀":"1f3cc-1f3fb-2640","🏌🏼\200d♀":"1f3cc-1f3fc-2640","🏌🏽\200d♀":"1f3cc-1f3fd-2640","🏌🏾\200d♀":"1f3cc-1f3fe-2640","🏌🏿\200d♀":"1f3cc-1f3ff-2640","🤹🏿\200d♂":"1f939-1f3ff-2642","🤹🏾\200d♂":"1f939-1f3fe-2642","🤹🏽\200d♂":"1f939-1f3fd-2642","🤹🏼\200d♂":"1f939-1f3fc-2642","🤹🏻\200d♂":"1f939-1f3fb-2642","🤹🏿\200d♀":"1f939-1f3ff-2640","🤹🏾\200d♀":"1f939-1f3fe-2640","🤹🏽\200d♀":"1f939-1f3fd-2640","🤹🏼\200d♀":"1f939-1f3fc-2640","🤹🏻\200d♀":"1f939-1f3fb-2640","🤾🏿\200d♂":"1f93e-1f3ff-2642","🤾🏾\200d♂":"1f93e-1f3fe-2642","🤾🏽\200d♂":"1f93e-1f3fd-2642","🤾🏼\200d♂":"1f93e-1f3fc-2642","🤾🏻\200d♂":"1f93e-1f3fb-2642","🤾🏿\200d♀":"1f93e-1f3ff-2640","🤾🏾\200d♀":"1f93e-1f3fe-2640","🤾🏽\200d♀":"1f93e-1f3fd-2640","🤾🏼\200d♀":"1f93e-1f3fc-2640","🤾🏻\200d♀":"1f93e-1f3fb-2640","🤽🏿\200d♂":"1f93d-1f3ff-2642","🤽🏾\200d♂":"1f93d-1f3fe-2642","🤽🏽\200d♂":"1f93d-1f3fd-2642","🤽🏼\200d♂":"1f93d-1f3fc-2642","🤽🏻\200d♂":"1f93d-1f3fb-2642","🤽🏿\200d♀":"1f93d-1f3ff-2640","🤽🏾\200d♀":"1f93d-1f3fe-2640","🤽🏽\200d♀":"1f93d-1f3fd-2640","🤽🏼\200d♀":"1f93d-1f3fc-2640","🤽🏻\200d♀":"1f93d-1f3fb-2640","🤸🏿\200d♂":"1f938-1f3ff-2642","🤸🏾\200d♂":"1f938-1f3fe-2642","🤸🏽\200d♂":"1f938-1f3fd-2642","🤸🏼\200d♂":"1f938-1f3fc-2642","🤸🏻\200d♂":"1f938-1f3fb-2642","🤸🏿\200d♀":"1f938-1f3ff-2640","🤸🏾\200d♀":"1f938-1f3fe-2640","🤸🏽\200d♀":"1f938-1f3fd-2640","🤸🏼\200d♀":"1f938-1f3fc-2640","🤸🏻\200d♀":"1f938-1f3fb-2640","🚶🏿\200d♂":"1f6b6-1f3ff-2642","🚶🏾\200d♂":"1f6b6-1f3fe-2642","🚶🏽\200d♂":"1f6b6-1f3fd-2642","🚶🏼\200d♂":"1f6b6-1f3fc-2642","🚶🏻\200d♂":"1f6b6-1f3fb-2642","🚶🏿\200d♀":"1f6b6-1f3ff-2640","🚶🏾\200d♀":"1f6b6-1f3fe-2640","🚶🏽\200d♀":"1f6b6-1f3fd-2640","🚶🏼\200d♀":"1f6b6-1f3fc-2640","🚶🏻\200d♀":"1f6b6-1f3fb-2640","🚵🏿\200d♂":"1f6b5-1f3ff-2642","🚵🏾\200d♂":"1f6b5-1f3fe-2642","🚵🏽\200d♂":"1f6b5-1f3fd-2642","🚵🏼\200d♂":"1f6b5-1f3fc-2642","🚵🏻\200d♂":"1f6b5-1f3fb-2642","🚵🏿\200d♀":"1f6b5-1f3ff-2640","🚵🏾\200d♀":"1f6b5-1f3fe-2640","🚵🏽\200d♀":"1f6b5-1f3fd-2640","🚵🏼\200d♀":"1f6b5-1f3fc-2640","🚵🏻\200d♀":"1f6b5-1f3fb-2640","🚴🏿\200d♂":"1f6b4-1f3ff-2642","🚴🏾\200d♂":"1f6b4-1f3fe-2642","🚴🏽\200d♂":"1f6b4-1f3fd-2642","🚴🏼\200d♂":"1f6b4-1f3fc-2642","🚴🏻\200d♂":"1f6b4-1f3fb-2642","🚴🏿\200d♀":"1f6b4-1f3ff-2640","🚴🏾\200d♀":"1f6b4-1f3fe-2640","🚴🏽\200d♀":"1f6b4-1f3fd-2640","🚴🏼\200d♀":"1f6b4-1f3fc-2640","🚴🏻\200d♀":"1f6b4-1f3fb-2640","🚣🏿\200d♂":"1f6a3-1f3ff-2642","🚣🏾\200d♂":"1f6a3-1f3fe-2642","🚣🏽\200d♂":"1f6a3-1f3fd-2642","🚣🏼\200d♂":"1f6a3-1f3fc-2642","🚣🏻\200d♂":"1f6a3-1f3fb-2642","🚣🏿\200d♀":"1f6a3-1f3ff-2640","🚣🏾\200d♀":"1f6a3-1f3fe-2640","🚣🏽\200d♀":"1f6a3-1f3fd-2640","🚣🏼\200d♀":"1f6a3-1f3fc-2640","🚣🏻\200d♀":"1f6a3-1f3fb-2640","🏋🏿\200d♂":"1f3cb-1f3ff-2642","🏋🏾\200d♂":"1f3cb-1f3fe-2642","🏋🏽\200d♂":"1f3cb-1f3fd-2642","🏋🏼\200d♂":"1f3cb-1f3fc-2642","🏋🏻\200d♂":"1f3cb-1f3fb-2642","🏋🏿\200d♀":"1f3cb-1f3ff-2640","🏋🏾\200d♀":"1f3cb-1f3fe-2640","🏋🏽\200d♀":"1f3cb-1f3fd-2640","🏋🏼\200d♀":"1f3cb-1f3fc-2640","🏋🏻\200d♀":"1f3cb-1f3fb-2640","🏊🏿\200d♂":"1f3ca-1f3ff-2642","🏊🏾\200d♂":"1f3ca-1f3fe-2642","🏊🏽\200d♂":"1f3ca-1f3fd-2642","🏊🏼\200d♂":"1f3ca-1f3fc-2642","🏊🏻\200d♂":"1f3ca-1f3fb-2642","🏊🏿\200d♀":"1f3ca-1f3ff-2640","🏊🏾\200d♀":"1f3ca-1f3fe-2640","🏊🏽\200d♀":"1f3ca-1f3fd-2640","🏊🏼\200d♀":"1f3ca-1f3fc-2640","🏊🏻\200d♀":"1f3ca-1f3fb-2640","🏄🏿\200d♂":"1f3c4-1f3ff-2642","🏄🏾\200d♂":"1f3c4-1f3fe-2642","🏄🏽\200d♂":"1f3c4-1f3fd-2642","🏄🏼\200d♂":"1f3c4-1f3fc-2642","🏄🏻\200d♂":"1f3c4-1f3fb-2642","🏄🏿\200d♀":"1f3c4-1f3ff-2640","🏄🏾\200d♀":"1f3c4-1f3fe-2640","🏄🏽\200d♀":"1f3c4-1f3fd-2640","🏄🏼\200d♀":"1f3c4-1f3fc-2640","🏄🏻\200d♀":"1f3c4-1f3fb-2640","🏃🏿\200d♂":"1f3c3-1f3ff-2642","🏃🏾\200d♂":"1f3c3-1f3fe-2642","🏃🏽\200d♂":"1f3c3-1f3fd-2642","🏃🏼\200d♂":"1f3c3-1f3fc-2642","🏃🏻\200d♂":"1f3c3-1f3fb-2642","🏃🏿\200d♀":"1f3c3-1f3ff-2640","🏃🏾\200d♀":"1f3c3-1f3fe-2640","🏃🏽\200d♀":"1f3c3-1f3fd-2640","🏃🏼\200d♀":"1f3c3-1f3fc-2640","🏃🏻\200d♀":"1f3c3-1f3fb-2640","🤷🏿\200d♂":"1f937-1f3ff-2642","🤷🏾\200d♂":"1f937-1f3fe-2642","🤷🏽\200d♂":"1f937-1f3fd-2642","🤷🏼\200d♂":"1f937-1f3fc-2642","🤷🏻\200d♂":"1f937-1f3fb-2642","🤷🏿\200d♀":"1f937-1f3ff-2640","🤷🏾\200d♀":"1f937-1f3fe-2640","🤷🏽\200d♀":"1f937-1f3fd-2640","🤷🏼\200d♀":"1f937-1f3fc-2640","🤷🏻\200d♀":"1f937-1f3fb-2640","🤦🏿\200d♂":"1f926-1f3ff-2642","🤦🏾\200d♂":"1f926-1f3fe-2642","🤦🏽\200d♂":"1f926-1f3fd-2642","🤦🏼\200d♂":"1f926-1f3fc-2642","🤦🏻\200d♂":"1f926-1f3fb-2642","🤦🏿\200d♀":"1f926-1f3ff-2640","🤦🏾\200d♀":"1f926-1f3fe-2640","🤦🏽\200d♀":"1f926-1f3fd-2640","🤦🏼\200d♀":"1f926-1f3fc-2640","🤦🏻\200d♀":"1f926-1f3fb-2640","🙎🏿\200d♂":"1f64e-1f3ff-2642","🙎🏾\200d♂":"1f64e-1f3fe-2642","🙎🏽\200d♂":"1f64e-1f3fd-2642","🙎🏼\200d♂":"1f64e-1f3fc-2642","🙎🏻\200d♂":"1f64e-1f3fb-2642","🙎🏿\200d♀":"1f64e-1f3ff-2640","🙎🏾\200d♀":"1f64e-1f3fe-2640","🙎🏽\200d♀":"1f64e-1f3fd-2640","🙎🏼\200d♀":"1f64e-1f3fc-2640","🙎🏻\200d♀":"1f64e-1f3fb-2640","🙍🏿\200d♂":"1f64d-1f3ff-2642","🙍🏾\200d♂":"1f64d-1f3fe-2642","🙍🏽\200d♂":"1f64d-1f3fd-2642","🙍🏼\200d♂":"1f64d-1f3fc-2642","🙍🏻\200d♂":"1f64d-1f3fb-2642","🙍🏿\200d♀":"1f64d-1f3ff-2640","🙍🏾\200d♀":"1f64d-1f3fe-2640","🙍🏽\200d♀":"1f64d-1f3fd-2640","🙍🏼\200d♀":"1f64d-1f3fc-2640","🙍🏻\200d♀":"1f64d-1f3fb-2640","🙋🏿\200d♂":"1f64b-1f3ff-2642","🙋🏾\200d♂":"1f64b-1f3fe-2642","🙋🏽\200d♂":"1f64b-1f3fd-2642","🙋🏼\200d♂":"1f64b-1f3fc-2642","🙋🏻\200d♂":"1f64b-1f3fb-2642","🙋🏿\200d♀":"1f64b-1f3ff-2640","🙋🏾\200d♀":"1f64b-1f3fe-2640","🙋🏽\200d♀":"1f64b-1f3fd-2640","🙋🏼\200d♀":"1f64b-1f3fc-2640","🙋🏻\200d♀":"1f64b-1f3fb-2640","🙇🏿\200d♂":"1f647-1f3ff-2642","🙇🏾\200d♂":"1f647-1f3fe-2642","🙇🏽\200d♂":"1f647-1f3fd-2642","🙇🏼\200d♂":"1f647-1f3fc-2642","🙇🏻\200d♂":"1f647-1f3fb-2642","🙇🏿\200d♀":"1f647-1f3ff-2640","🙇🏾\200d♀":"1f647-1f3fe-2640","🙇🏽\200d♀":"1f647-1f3fd-2640","🙇🏼\200d♀":"1f647-1f3fc-2640","🙇🏻\200d♀":"1f647-1f3fb-2640","🙆🏿\200d♂":"1f646-1f3ff-2642","🙆🏾\200d♂":"1f646-1f3fe-2642","🙆🏽\200d♂":"1f646-1f3fd-2642","🙆🏼\200d♂":"1f646-1f3fc-2642","🙆🏻\200d♂":"1f646-1f3fb-2642","🙆🏿\200d♀":"1f646-1f3ff-2640","🙆🏾\200d♀":"1f646-1f3fe-2640","🙆🏽\200d♀":"1f646-1f3fd-2640","🙆🏼\200d♀":"1f646-1f3fc-2640","🙆🏻\200d♀":"1f646-1f3fb-2640","🙅🏿\200d♂":"1f645-1f3ff-2642","🙅🏾\200d♂":"1f645-1f3fe-2642","🙅🏽\200d♂":"1f645-1f3fd-2642","🙅🏼\200d♂":"1f645-1f3fc-2642","🙅🏻\200d♂":"1f645-1f3fb-2642","🙅🏿\200d♀":"1f645-1f3ff-2640","🙅🏾\200d♀":"1f645-1f3fe-2640","🙅🏽\200d♀":"1f645-1f3fd-2640","🙅🏼\200d♀":"1f645-1f3fc-2640","🙅🏻\200d♀":"1f645-1f3fb-2640","💇🏿\200d♂":"1f487-1f3ff-2642","💇🏾\200d♂":"1f487-1f3fe-2642","💇🏽\200d♂":"1f487-1f3fd-2642","💇🏼\200d♂":"1f487-1f3fc-2642","💇🏻\200d♂":"1f487-1f3fb-2642","💇🏿\200d♀":"1f487-1f3ff-2640","💇🏾\200d♀":"1f487-1f3fe-2640","💇🏽\200d♀":"1f487-1f3fd-2640","💇🏼\200d♀":"1f487-1f3fc-2640","💇🏻\200d♀":"1f487-1f3fb-2640","💆🏿\200d♂":"1f486-1f3ff-2642","💆🏾\200d♂":"1f486-1f3fe-2642","💆🏽\200d♂":"1f486-1f3fd-2642","💆🏼\200d♂":"1f486-1f3fc-2642","💆🏻\200d♂":"1f486-1f3fb-2642","💆🏿\200d♀":"1f486-1f3ff-2640","💆🏾\200d♀":"1f486-1f3fe-2640","💆🏽\200d♀":"1f486-1f3fd-2640","💆🏼\200d♀":"1f486-1f3fc-2640","💆🏻\200d♀":"1f486-1f3fb-2640","💁🏿\200d♂":"1f481-1f3ff-2642","💁🏾\200d♂":"1f481-1f3fe-2642","💁🏽\200d♂":"1f481-1f3fd-2642","💁🏼\200d♂":"1f481-1f3fc-2642","💁🏻\200d♂":"1f481-1f3fb-2642","💁🏿\200d♀":"1f481-1f3ff-2640","💁🏾\200d♀":"1f481-1f3fe-2640","💁🏽\200d♀":"1f481-1f3fd-2640","💁🏼\200d♀":"1f481-1f3fc-2640","💁🏻\200d♀":"1f481-1f3fb-2640","👱🏿\200d♂":"1f471-1f3ff-2642","👱🏾\200d♂":"1f471-1f3fe-2642","👱🏽\200d♂":"1f471-1f3fd-2642","👱🏼\200d♂":"1f471-1f3fc-2642","👱🏻\200d♂":"1f471-1f3fb-2642","👱🏿\200d♀":"1f471-1f3ff-2640","👱🏾\200d♀":"1f471-1f3fe-2640","👱🏽\200d♀":"1f471-1f3fd-2640","👱🏼\200d♀":"1f471-1f3fc-2640","👱🏻\200d♀":"1f471-1f3fb-2640","👳🏿\200d♂":"1f473-1f3ff-2642","👳🏾\200d♂":"1f473-1f3fe-2642","👳🏽\200d♂":"1f473-1f3fd-2642","👳🏼\200d♂":"1f473-1f3fc-2642","👳🏻\200d♂":"1f473-1f3fb-2642","👳🏿\200d♀":"1f473-1f3ff-2640","👳🏾\200d♀":"1f473-1f3fe-2640","👳🏽\200d♀":"1f473-1f3fd-2640","👳🏼\200d♀":"1f473-1f3fc-2640","👳🏻\200d♀":"1f473-1f3fb-2640","💂🏿\200d♂":"1f482-1f3ff-2642","💂🏾\200d♂":"1f482-1f3fe-2642","💂🏽\200d♂":"1f482-1f3fd-2642","💂🏼\200d♂":"1f482-1f3fc-2642","💂🏻\200d♂":"1f482-1f3fb-2642","💂🏿\200d♀":"1f482-1f3ff-2640","💂🏾\200d♀":"1f482-1f3fe-2640","💂🏽\200d♀":"1f482-1f3fd-2640","💂🏼\200d♀":"1f482-1f3fc-2640","💂🏻\200d♀":"1f482-1f3fb-2640","🕵🏿\200d♂":"1f575-1f3ff-2642","🕵🏾\200d♂":"1f575-1f3fe-2642","🕵🏽\200d♂":"1f575-1f3fd-2642","🕵🏼\200d♂":"1f575-1f3fc-2642","🕵🏻\200d♂":"1f575-1f3fb-2642","🕵🏿\200d♀":"1f575-1f3ff-2640","🕵🏾\200d♀":"1f575-1f3fe-2640","🕵🏽\200d♀":"1f575-1f3fd-2640","🕵🏼\200d♀":"1f575-1f3fc-2640","🕵🏻\200d♀":"1f575-1f3fb-2640","👷🏿\200d♂":"1f477-1f3ff-2642","👷🏾\200d♂":"1f477-1f3fe-2642","👷🏽\200d♂":"1f477-1f3fd-2642","👷🏼\200d♂":"1f477-1f3fc-2642","👷🏻\200d♂":"1f477-1f3fb-2642","👷🏿\200d♀":"1f477-1f3ff-2640","👷🏾\200d♀":"1f477-1f3fe-2640","👷🏽\200d♀":"1f477-1f3fd-2640","👷🏼\200d♀":"1f477-1f3fc-2640","👷🏻\200d♀":"1f477-1f3fb-2640","👮🏿\200d♂":"1f46e-1f3ff-2642","👮🏾\200d♂":"1f46e-1f3fe-2642","👮🏽\200d♂":"1f46e-1f3fd-2642","👮🏼\200d♂":"1f46e-1f3fc-2642","👮🏻\200d♂":"1f46e-1f3fb-2642","👮🏿\200d♀":"1f46e-1f3ff-2640","👮🏾\200d♀":"1f46e-1f3fe-2640","👮🏽\200d♀":"1f46e-1f3fd-2640","👮🏼\200d♀":"1f46e-1f3fc-2640","👮🏻\200d♀":"1f46e-1f3fb-2640","👨🏿\200d⚕":"1f468-1f3ff-2695","👨🏾\200d⚕":"1f468-1f3fe-2695","👨🏽\200d⚕":"1f468-1f3fd-2695","👨🏼\200d⚕":"1f468-1f3fc-2695","👨🏻\200d⚕":"1f468-1f3fb-2695","👩🏿\200d⚕":"1f469-1f3ff-2695","👩🏾\200d⚕":"1f469-1f3fe-2695","👩🏽\200d⚕":"1f469-1f3fd-2695","👩🏼\200d⚕":"1f469-1f3fc-2695","👩🏻\200d⚕":"1f469-1f3fb-2695","👨🏻\200d⚖":"1f468-1f3fb-2696","👨🏼\200d⚖":"1f468-1f3fc-2696","👨🏽\200d⚖":"1f468-1f3fd-2696","👨🏾\200d⚖":"1f468-1f3fe-2696","👨🏿\200d⚖":"1f468-1f3ff-2696","👩🏻\200d⚖":"1f469-1f3fb-2696","👩🏼\200d⚖":"1f469-1f3fc-2696","👩🏽\200d⚖":"1f469-1f3fd-2696","👩🏾\200d⚖":"1f469-1f3fe-2696","👩🏿\200d⚖":"1f469-1f3ff-2696","👨🏻\200d✈":"1f468-1f3fb-2708","👨🏼\200d✈":"1f468-1f3fc-2708","👨🏽\200d✈":"1f468-1f3fd-2708","👨🏾\200d✈":"1f468-1f3fe-2708","👨🏿\200d✈":"1f468-1f3ff-2708","👩🏻\200d✈":"1f469-1f3fb-2708","👩🏼\200d✈":"1f469-1f3fc-2708","👩🏽\200d✈":"1f469-1f3fd-2708","👩🏾\200d✈":"1f469-1f3fe-2708","👩🏿\200d✈":"1f469-1f3ff-2708","👨❤️👨":"1f468-2764-1f468","👩❤️👨":"1f469-2764-1f468","👩❤️👩":"1f469-2764-1f469","👨🏻⚕️":"1f468-1f3fb-2695","👨🏻⚖️":"1f468-1f3fb-2696","👨🏻✈️":"1f468-1f3fb-2708","👨🏼⚕️":"1f468-1f3fc-2695","👨🏼⚖️":"1f468-1f3fc-2696","👨🏼✈️":"1f468-1f3fc-2708","👨🏽⚕️":"1f468-1f3fd-2695","👨🏽⚖️":"1f468-1f3fd-2696","👨🏽✈️":"1f468-1f3fd-2708","👨🏾⚕️":"1f468-1f3fe-2695","👨🏾⚖️":"1f468-1f3fe-2696","👨🏾✈️":"1f468-1f3fe-2708","👨🏿⚕️":"1f468-1f3ff-2695","👨🏿⚖️":"1f468-1f3ff-2696","👨🏿✈️":"1f468-1f3ff-2708","👩🏻⚕️":"1f469-1f3fb-2695","👩🏻⚖️":"1f469-1f3fb-2696","👩🏻✈️":"1f469-1f3fb-2708","👩🏼⚕️":"1f469-1f3fc-2695","👩🏼⚖️":"1f469-1f3fc-2696","👩🏼✈️":"1f469-1f3fc-2708","👩🏽⚕️":"1f469-1f3fd-2695","👩🏽⚖️":"1f469-1f3fd-2696","👩🏽✈️":"1f469-1f3fd-2708","👩🏾⚕️":"1f469-1f3fe-2695","👩🏾⚖️":"1f469-1f3fe-2696","👩🏾✈️":"1f469-1f3fe-2708","👩🏿⚕️":"1f469-1f3ff-2695","👩🏿⚖️":"1f469-1f3ff-2696","👩🏿✈️":"1f469-1f3ff-2708","👮🏻♀️":"1f46e-1f3fb-2640","👮🏻♂️":"1f46e-1f3fb-2642","👮🏼♀️":"1f46e-1f3fc-2640","👮🏼♂️":"1f46e-1f3fc-2642","👮🏽♀️":"1f46e-1f3fd-2640","👮🏽♂️":"1f46e-1f3fd-2642","👮🏾♀️":"1f46e-1f3fe-2640","👮🏾♂️":"1f46e-1f3fe-2642","👮🏿♀️":"1f46e-1f3ff-2640","👮🏿♂️":"1f46e-1f3ff-2642","👱🏻♀️":"1f471-1f3fb-2640","👱🏻♂️":"1f471-1f3fb-2642","👱🏼♀️":"1f471-1f3fc-2640","👱🏼♂️":"1f471-1f3fc-2642","👱🏽♀️":"1f471-1f3fd-2640","👱🏽♂️":"1f471-1f3fd-2642","👱🏾♀️":"1f471-1f3fe-2640","👱🏾♂️":"1f471-1f3fe-2642","👱🏿♀️":"1f471-1f3ff-2640","👱🏿♂️":"1f471-1f3ff-2642","👳🏻♀️":"1f473-1f3fb-2640","👳🏻♂️":"1f473-1f3fb-2642","👳🏼♀️":"1f473-1f3fc-2640","👳🏼♂️":"1f473-1f3fc-2642","👳🏽♀️":"1f473-1f3fd-2640","👳🏽♂️":"1f473-1f3fd-2642","👳🏾♀️":"1f473-1f3fe-2640","👳🏾♂️":"1f473-1f3fe-2642","👳🏿♀️":"1f473-1f3ff-2640","👳🏿♂️":"1f473-1f3ff-2642","👷🏻♀️":"1f477-1f3fb-2640","👷🏻♂️":"1f477-1f3fb-2642","👷🏼♀️":"1f477-1f3fc-2640","👷🏼♂️":"1f477-1f3fc-2642","👷🏽♀️":"1f477-1f3fd-2640","👷🏽♂️":"1f477-1f3fd-2642","👷🏾♀️":"1f477-1f3fe-2640","👷🏾♂️":"1f477-1f3fe-2642","👷🏿♀️":"1f477-1f3ff-2640","👷🏿♂️":"1f477-1f3ff-2642","💂🏻♀️":"1f482-1f3fb-2640","💂🏻♂️":"1f482-1f3fb-2642","💂🏼♀️":"1f482-1f3fc-2640","💂🏼♂️":"1f482-1f3fc-2642","💂🏽♀️":"1f482-1f3fd-2640","💂🏽♂️":"1f482-1f3fd-2642","💂🏾♀️":"1f482-1f3fe-2640","💂🏾♂️":"1f482-1f3fe-2642","💂🏿♀️":"1f482-1f3ff-2640","💂🏿♂️":"1f482-1f3ff-2642","🏃🏻♀️":"1f3c3-1f3fb-2640","🏃🏻♂️":"1f3c3-1f3fb-2642","🏃🏼♀️":"1f3c3-1f3fc-2640","🏃🏼♂️":"1f3c3-1f3fc-2642","🏃🏽♀️":"1f3c3-1f3fd-2640","🏃🏽♂️":"1f3c3-1f3fd-2642","🏃🏾♀️":"1f3c3-1f3fe-2640","🏃🏾♂️":"1f3c3-1f3fe-2642","🏃🏿♀️":"1f3c3-1f3ff-2640","🏃🏿♂️":"1f3c3-1f3ff-2642","🏄🏻♀️":"1f3c4-1f3fb-2640","🏄🏻♂️":"1f3c4-1f3fb-2642","🏄🏼♀️":"1f3c4-1f3fc-2640","🏄🏼♂️":"1f3c4-1f3fc-2642","🏄🏽♀️":"1f3c4-1f3fd-2640","🏄🏽♂️":"1f3c4-1f3fd-2642","🏄🏾♀️":"1f3c4-1f3fe-2640","🏄🏾♂️":"1f3c4-1f3fe-2642","🏄🏿♀️":"1f3c4-1f3ff-2640","🏄🏿♂️":"1f3c4-1f3ff-2642","🏊🏻♀️":"1f3ca-1f3fb-2640","🏊🏻♂️":"1f3ca-1f3fb-2642","🏊🏼♀️":"1f3ca-1f3fc-2640","🏊🏼♂️":"1f3ca-1f3fc-2642","🏊🏽♀️":"1f3ca-1f3fd-2640","🏊🏽♂️":"1f3ca-1f3fd-2642","🏊🏾♀️":"1f3ca-1f3fe-2640","🏊🏾♂️":"1f3ca-1f3fe-2642","🏊🏿♀️":"1f3ca-1f3ff-2640","🏊🏿♂️":"1f3ca-1f3ff-2642","💆🏻♀️":"1f486-1f3fb-2640","💆🏻♂️":"1f486-1f3fb-2642","💆🏼♀️":"1f486-1f3fc-2640","💆🏼♂️":"1f486-1f3fc-2642","💆🏽♀️":"1f486-1f3fd-2640","💆🏽♂️":"1f486-1f3fd-2642","💆🏾♀️":"1f486-1f3fe-2640","💆🏾♂️":"1f486-1f3fe-2642","💆🏿♀️":"1f486-1f3ff-2640","💆🏿♂️":"1f486-1f3ff-2642","💇🏻♀️":"1f487-1f3fb-2640","💇🏻♂️":"1f487-1f3fb-2642","💇🏼♀️":"1f487-1f3fc-2640","💇🏼♂️":"1f487-1f3fc-2642","💇🏽♀️":"1f487-1f3fd-2640","💇🏽♂️":"1f487-1f3fd-2642","💇🏾♀️":"1f487-1f3fe-2640","💇🏾♂️":"1f487-1f3fe-2642","💇🏿♀️":"1f487-1f3ff-2640","💇🏿♂️":"1f487-1f3ff-2642","🚣🏻♀️":"1f6a3-1f3fb-2640","🚣🏻♂️":"1f6a3-1f3fb-2642","🚣🏼♀️":"1f6a3-1f3fc-2640","🚣🏼♂️":"1f6a3-1f3fc-2642","🚣🏽♀️":"1f6a3-1f3fd-2640","🚣🏽♂️":"1f6a3-1f3fd-2642","🚣🏾♀️":"1f6a3-1f3fe-2640","🚣🏾♂️":"1f6a3-1f3fe-2642","🚣🏿♀️":"1f6a3-1f3ff-2640","🚣🏿♂️":"1f6a3-1f3ff-2642","🚴🏻♀️":"1f6b4-1f3fb-2640","🚴🏻♂️":"1f6b4-1f3fb-2642","🚴🏼♀️":"1f6b4-1f3fc-2640","🚴🏼♂️":"1f6b4-1f3fc-2642","🚴🏽♀️":"1f6b4-1f3fd-2640","🚴🏽♂️":"1f6b4-1f3fd-2642","🚴🏾♀️":"1f6b4-1f3fe-2640","🚴🏾♂️":"1f6b4-1f3fe-2642","🚴🏿♀️":"1f6b4-1f3ff-2640","🚴🏿♂️":"1f6b4-1f3ff-2642","🚵🏻♀️":"1f6b5-1f3fb-2640","🚵🏻♂️":"1f6b5-1f3fb-2642","🚵🏼♀️":"1f6b5-1f3fc-2640","🚵🏼♂️":"1f6b5-1f3fc-2642","🚵🏽♀️":"1f6b5-1f3fd-2640","🚵🏽♂️":"1f6b5-1f3fd-2642","🚵🏾♀️":"1f6b5-1f3fe-2640","🚵🏾♂️":"1f6b5-1f3fe-2642","🚵🏿♀️":"1f6b5-1f3ff-2640","🚵🏿♂️":"1f6b5-1f3ff-2642","🚶🏻♀️":"1f6b6-1f3fb-2640","🚶🏻♂️":"1f6b6-1f3fb-2642","🚶🏼♀️":"1f6b6-1f3fc-2640","🚶🏼♂️":"1f6b6-1f3fc-2642","🚶🏽♀️":"1f6b6-1f3fd-2640","🚶🏽♂️":"1f6b6-1f3fd-2642","🚶🏾♀️":"1f6b6-1f3fe-2640","🚶🏾♂️":"1f6b6-1f3fe-2642","🚶🏿♀️":"1f6b6-1f3ff-2640","🚶🏿♂️":"1f6b6-1f3ff-2642","🤸🏻♀️":"1f938-1f3fb-2640","🤸🏻♂️":"1f938-1f3fb-2642","🤸🏼♀️":"1f938-1f3fc-2640","🤸🏼♂️":"1f938-1f3fc-2642","🤸🏽♀️":"1f938-1f3fd-2640","🤸🏽♂️":"1f938-1f3fd-2642","🤸🏾♀️":"1f938-1f3fe-2640","🤸🏾♂️":"1f938-1f3fe-2642","🤸🏿♀️":"1f938-1f3ff-2640","🤸🏿♂️":"1f938-1f3ff-2642","🤹🏻♀️":"1f939-1f3fb-2640","🤹🏻♂️":"1f939-1f3fb-2642","🤹🏼♀️":"1f939-1f3fc-2640","🤹🏼♂️":"1f939-1f3fc-2642","🤹🏽♀️":"1f939-1f3fd-2640","🤹🏽♂️":"1f939-1f3fd-2642","🤹🏾♀️":"1f939-1f3fe-2640","🤹🏾♂️":"1f939-1f3fe-2642","🤹🏿♀️":"1f939-1f3ff-2640","🤹🏿♂️":"1f939-1f3ff-2642","🤽🏻♀️":"1f93d-1f3fb-2640","🤽🏻♂️":"1f93d-1f3fb-2642","🤽🏼♀️":"1f93d-1f3fc-2640","🤽🏼♂️":"1f93d-1f3fc-2642","🤽🏽♀️":"1f93d-1f3fd-2640","🤽🏽♂️":"1f93d-1f3fd-2642","🤽🏾♀️":"1f93d-1f3fe-2640","🤽🏾♂️":"1f93d-1f3fe-2642","🤽🏿♀️":"1f93d-1f3ff-2640","🤽🏿♂️":"1f93d-1f3ff-2642","🤾🏻♀️":"1f93e-1f3fb-2640","🤾🏻♂️":"1f93e-1f3fb-2642","🤾🏼♀️":"1f93e-1f3fc-2640","🤾🏼♂️":"1f93e-1f3fc-2642","🤾🏽♀️":"1f93e-1f3fd-2640","🤾🏽♂️":"1f93e-1f3fd-2642","🤾🏾♀️":"1f93e-1f3fe-2640","🤾🏾♂️":"1f93e-1f3fe-2642","🤾🏿♀️":"1f93e-1f3ff-2640","🤾🏿♂️":"1f93e-1f3ff-2642","💁🏻♀️":"1f481-1f3fb-2640","💁🏻♂️":"1f481-1f3fb-2642","💁🏼♀️":"1f481-1f3fc-2640","💁🏼♂️":"1f481-1f3fc-2642","💁🏽♀️":"1f481-1f3fd-2640","💁🏽♂️":"1f481-1f3fd-2642","💁🏾♀️":"1f481-1f3fe-2640","💁🏾♂️":"1f481-1f3fe-2642","💁🏿♀️":"1f481-1f3ff-2640","💁🏿♂️":"1f481-1f3ff-2642","🙅🏻♀️":"1f645-1f3fb-2640","🙅🏻♂️":"1f645-1f3fb-2642","🙅🏼♀️":"1f645-1f3fc-2640","🙅🏼♂️":"1f645-1f3fc-2642","🙅🏽♀️":"1f645-1f3fd-2640","🙅🏽♂️":"1f645-1f3fd-2642","🙅🏾♀️":"1f645-1f3fe-2640","🙅🏾♂️":"1f645-1f3fe-2642","🙅🏿♀️":"1f645-1f3ff-2640","🙅🏿♂️":"1f645-1f3ff-2642","🙆🏻♀️":"1f646-1f3fb-2640","🙆🏻♂️":"1f646-1f3fb-2642","🙆🏼♀️":"1f646-1f3fc-2640","🙆🏼♂️":"1f646-1f3fc-2642","🙆🏽♀️":"1f646-1f3fd-2640","🙆🏽♂️":"1f646-1f3fd-2642","🙆🏾♀️":"1f646-1f3fe-2640","🙆🏾♂️":"1f646-1f3fe-2642","🙆🏿♀️":"1f646-1f3ff-2640","🙆🏿♂️":"1f646-1f3ff-2642","🙇🏻♀️":"1f647-1f3fb-2640","🙇🏻♂️":"1f647-1f3fb-2642","🙇🏼♀️":"1f647-1f3fc-2640","🙇🏼♂️":"1f647-1f3fc-2642","🙇🏽♀️":"1f647-1f3fd-2640","🙇🏽♂️":"1f647-1f3fd-2642","🙇🏾♀️":"1f647-1f3fe-2640","🙇🏾♂️":"1f647-1f3fe-2642","🙇🏿♀️":"1f647-1f3ff-2640","🙇🏿♂️":"1f647-1f3ff-2642","🙋🏻♀️":"1f64b-1f3fb-2640","🙋🏻♂️":"1f64b-1f3fb-2642","🙋🏼♀️":"1f64b-1f3fc-2640","🙋🏼♂️":"1f64b-1f3fc-2642","🙋🏽♀️":"1f64b-1f3fd-2640","🙋🏽♂️":"1f64b-1f3fd-2642","🙋🏾♀️":"1f64b-1f3fe-2640","🙋🏾♂️":"1f64b-1f3fe-2642","🙋🏿♀️":"1f64b-1f3ff-2640","🙋🏿♂️":"1f64b-1f3ff-2642","🙍🏻♀️":"1f64d-1f3fb-2640","🙍🏻♂️":"1f64d-1f3fb-2642","🙍🏼♀️":"1f64d-1f3fc-2640","🙍🏼♂️":"1f64d-1f3fc-2642","🙍🏽♀️":"1f64d-1f3fd-2640","🙍🏽♂️":"1f64d-1f3fd-2642","🙍🏾♀️":"1f64d-1f3fe-2640","🙍🏾♂️":"1f64d-1f3fe-2642","🙍🏿♀️":"1f64d-1f3ff-2640","🙍🏿♂️":"1f64d-1f3ff-2642","🙎🏻♀️":"1f64e-1f3fb-2640","🙎🏻♂️":"1f64e-1f3fb-2642","🙎🏼♀️":"1f64e-1f3fc-2640","🙎🏼♂️":"1f64e-1f3fc-2642","🙎🏽♀️":"1f64e-1f3fd-2640","🙎🏽♂️":"1f64e-1f3fd-2642","🙎🏾♀️":"1f64e-1f3fe-2640","🙎🏾♂️":"1f64e-1f3fe-2642","🙎🏿♀️":"1f64e-1f3ff-2640","🙎🏿♂️":"1f64e-1f3ff-2642","🤦🏻♀️":"1f926-1f3fb-2640","🤦🏻♂️":"1f926-1f3fb-2642","🤦🏼♀️":"1f926-1f3fc-2640","🤦🏼♂️":"1f926-1f3fc-2642","🤦🏽♀️":"1f926-1f3fd-2640","🤦🏽♂️":"1f926-1f3fd-2642","🤦🏾♀️":"1f926-1f3fe-2640","🤦🏾♂️":"1f926-1f3fe-2642","🤦🏿♀️":"1f926-1f3ff-2640","🤦🏿♂️":"1f926-1f3ff-2642","🤷🏻♀️":"1f937-1f3fb-2640","🤷🏻♂️":"1f937-1f3fb-2642","🤷🏼♀️":"1f937-1f3fc-2640","🤷🏼♂️":"1f937-1f3fc-2642","🤷🏽♀️":"1f937-1f3fd-2640","🤷🏽♂️":"1f937-1f3fd-2642","🤷🏾♀️":"1f937-1f3fe-2640","🤷🏾♂️":"1f937-1f3fe-2642","🤷🏿♀️":"1f937-1f3ff-2640","🤷🏿♂️":"1f937-1f3ff-2642","👁️🗨️":"1f441-1f5e8","🧙🏻\200d♀":"1f9d9-1f3fb-2640","🧙🏻♀️":"1f9d9-1f3fb-2640","🧙🏻\200d♂":"1f9d9-1f3fb-2642","🧙🏻♂️":"1f9d9-1f3fb-2642","🧙🏼\200d♀":"1f9d9-1f3fc-2640","🧙🏼♀️":"1f9d9-1f3fc-2640","🧙🏼\200d♂":"1f9d9-1f3fc-2642","🧙🏼♂️":"1f9d9-1f3fc-2642","🧙🏽\200d♀":"1f9d9-1f3fd-2640","🧙🏽♀️":"1f9d9-1f3fd-2640","🧙🏽\200d♂":"1f9d9-1f3fd-2642","🧙🏽♂️":"1f9d9-1f3fd-2642","🧙🏾\200d♀":"1f9d9-1f3fe-2640","🧙🏾♀️":"1f9d9-1f3fe-2640","🧙🏾\200d♂":"1f9d9-1f3fe-2642","🧙🏾♂️":"1f9d9-1f3fe-2642","🧙🏿\200d♀":"1f9d9-1f3ff-2640","🧙🏿♀️":"1f9d9-1f3ff-2640","🧙🏿\200d♂":"1f9d9-1f3ff-2642","🧙🏿♂️":"1f9d9-1f3ff-2642","🧚🏻\200d♀":"1f9da-1f3fb-2640","🧚🏻♀️":"1f9da-1f3fb-2640","🧚🏻\200d♂":"1f9da-1f3fb-2642","🧚🏻♂️":"1f9da-1f3fb-2642","🧚🏼\200d♀":"1f9da-1f3fc-2640","🧚🏼♀️":"1f9da-1f3fc-2640","🧚🏼\200d♂":"1f9da-1f3fc-2642","🧚🏼♂️":"1f9da-1f3fc-2642","🧚🏽\200d♀":"1f9da-1f3fd-2640","🧚🏽♀️":"1f9da-1f3fd-2640","🧚🏽\200d♂":"1f9da-1f3fd-2642","🧚🏽♂️":"1f9da-1f3fd-2642","🧚🏾\200d♀":"1f9da-1f3fe-2640","🧚🏾♀️":"1f9da-1f3fe-2640","🧚🏾\200d♂":"1f9da-1f3fe-2642","🧚🏾♂️":"1f9da-1f3fe-2642","🧚🏿\200d♀":"1f9da-1f3ff-2640","🧚🏿♀️":"1f9da-1f3ff-2640","🧚🏿\200d♂":"1f9da-1f3ff-2642","🧚🏿♂️":"1f9da-1f3ff-2642","🧛🏻\200d♀":"1f9db-1f3fb-2640","🧛🏻♀️":"1f9db-1f3fb-2640","🧛🏻\200d♂":"1f9db-1f3fb-2642","🧛🏻♂️":"1f9db-1f3fb-2642","🧛🏼\200d♀":"1f9db-1f3fc-2640","🧛🏼♀️":"1f9db-1f3fc-2640","🧛🏼\200d♂":"1f9db-1f3fc-2642","🧛🏼♂️":"1f9db-1f3fc-2642","🧛🏽\200d♀":"1f9db-1f3fd-2640","🧛🏽♀️":"1f9db-1f3fd-2640","🧛🏽\200d♂":"1f9db-1f3fd-2642","🧛🏽♂️":"1f9db-1f3fd-2642","🧛🏾\200d♀":"1f9db-1f3fe-2640","🧛🏾♀️":"1f9db-1f3fe-2640","🧛🏾\200d♂":"1f9db-1f3fe-2642","🧛🏾♂️":"1f9db-1f3fe-2642","🧛🏿\200d♀":"1f9db-1f3ff-2640","🧛🏿♀️":"1f9db-1f3ff-2640","🧛🏿\200d♂":"1f9db-1f3ff-2642","🧛🏿♂️":"1f9db-1f3ff-2642","🧜🏻\200d♀":"1f9dc-1f3fb-2640","🧜🏻♀️":"1f9dc-1f3fb-2640","🧜🏻\200d♂":"1f9dc-1f3fb-2642","🧜🏻♂️":"1f9dc-1f3fb-2642","🧜🏼\200d♀":"1f9dc-1f3fc-2640","🧜🏼♀️":"1f9dc-1f3fc-2640","🧜🏼\200d♂":"1f9dc-1f3fc-2642","🧜🏼♂️":"1f9dc-1f3fc-2642","🧜🏽\200d♀":"1f9dc-1f3fd-2640","🧜🏽♀️":"1f9dc-1f3fd-2640","🧜🏽\200d♂":"1f9dc-1f3fd-2642","🧜🏽♂️":"1f9dc-1f3fd-2642","🧜🏾\200d♀":"1f9dc-1f3fe-2640","🧜🏾♀️":"1f9dc-1f3fe-2640","🧜🏾\200d♂":"1f9dc-1f3fe-2642","🧜🏾♂️":"1f9dc-1f3fe-2642","🧜🏿\200d♀":"1f9dc-1f3ff-2640","🧜🏿♀️":"1f9dc-1f3ff-2640","🧜🏿\200d♂":"1f9dc-1f3ff-2642","🧜🏿♂️":"1f9dc-1f3ff-2642","🧝🏻\200d♀":"1f9dd-1f3fb-2640","🧝🏻♀️":"1f9dd-1f3fb-2640","🧝🏻\200d♂":"1f9dd-1f3fb-2642","🧝🏻♂️":"1f9dd-1f3fb-2642","🧝🏼\200d♀":"1f9dd-1f3fc-2640","🧝🏼♀️":"1f9dd-1f3fc-2640","🧝🏼\200d♂":"1f9dd-1f3fc-2642","🧝🏼♂️":"1f9dd-1f3fc-2642","🧝🏽\200d♀":"1f9dd-1f3fd-2640","🧝🏽♀️":"1f9dd-1f3fd-2640","🧝🏽\200d♂":"1f9dd-1f3fd-2642","🧝🏽♂️":"1f9dd-1f3fd-2642","🧝🏾\200d♀":"1f9dd-1f3fe-2640","🧝🏾♀️":"1f9dd-1f3fe-2640","🧝🏾\200d♂":"1f9dd-1f3fe-2642","🧝🏾♂️":"1f9dd-1f3fe-2642","🧝🏿\200d♀":"1f9dd-1f3ff-2640","🧝🏿♀️":"1f9dd-1f3ff-2640","🧝🏿\200d♂":"1f9dd-1f3ff-2642","🧝🏿♂️":"1f9dd-1f3ff-2642","🧖🏻\200d♀":"1f9d6-1f3fb-2640","🧖🏻♀️":"1f9d6-1f3fb-2640","🧖🏻\200d♂":"1f9d6-1f3fb-2642","🧖🏻♂️":"1f9d6-1f3fb-2642","🧖🏼\200d♀":"1f9d6-1f3fc-2640","🧖🏼♀️":"1f9d6-1f3fc-2640","🧖🏼\200d♂":"1f9d6-1f3fc-2642","🧖🏼♂️":"1f9d6-1f3fc-2642","🧖🏽\200d♀":"1f9d6-1f3fd-2640","🧖🏽♀️":"1f9d6-1f3fd-2640","🧖🏽\200d♂":"1f9d6-1f3fd-2642","🧖🏽♂️":"1f9d6-1f3fd-2642","🧖🏾\200d♀":"1f9d6-1f3fe-2640","🧖🏾♀️":"1f9d6-1f3fe-2640","🧖🏾\200d♂":"1f9d6-1f3fe-2642","🧖🏾♂️":"1f9d6-1f3fe-2642","🧖🏿\200d♀":"1f9d6-1f3ff-2640","🧖🏿♀️":"1f9d6-1f3ff-2640","🧖🏿\200d♂":"1f9d6-1f3ff-2642","🧖🏿♂️":"1f9d6-1f3ff-2642","🧗🏻\200d♀":"1f9d7-1f3fb-2640","🧗🏻♀️":"1f9d7-1f3fb-2640","🧗🏻\200d♂":"1f9d7-1f3fb-2642","🧗🏻♂️":"1f9d7-1f3fb-2642","🧗🏼\200d♀":"1f9d7-1f3fc-2640","🧗🏼♀️":"1f9d7-1f3fc-2640","🧗🏼\200d♂":"1f9d7-1f3fc-2642","🧗🏼♂️":"1f9d7-1f3fc-2642","🧗🏽\200d♀":"1f9d7-1f3fd-2640","🧗🏽♀️":"1f9d7-1f3fd-2640","🧗🏽\200d♂":"1f9d7-1f3fd-2642","🧗🏽♂️":"1f9d7-1f3fd-2642","🧗🏾\200d♀":"1f9d7-1f3fe-2640","🧗🏾♀️":"1f9d7-1f3fe-2640","🧗🏾\200d♂":"1f9d7-1f3fe-2642","🧗🏾♂️":"1f9d7-1f3fe-2642","🧗🏿\200d♀":"1f9d7-1f3ff-2640","🧗🏿♀️":"1f9d7-1f3ff-2640","🧗🏿\200d♂":"1f9d7-1f3ff-2642","🧗🏿♂️":"1f9d7-1f3ff-2642","🧘🏻\200d♀":"1f9d8-1f3fb-2640","🧘🏻♀️":"1f9d8-1f3fb-2640","🧘🏻\200d♂":"1f9d8-1f3fb-2642","🧘🏻♂️":"1f9d8-1f3fb-2642","🧘🏼\200d♀":"1f9d8-1f3fc-2640","🧘🏼♀️":"1f9d8-1f3fc-2640","🧘🏼\200d♂":"1f9d8-1f3fc-2642","🧘🏼♂️":"1f9d8-1f3fc-2642","🧘🏽\200d♀":"1f9d8-1f3fd-2640","🧘🏽♀️":"1f9d8-1f3fd-2640","🧘🏽\200d♂":"1f9d8-1f3fd-2642","🧘🏽♂️":"1f9d8-1f3fd-2642","🧘🏾\200d♀":"1f9d8-1f3fe-2640","🧘🏾♀️":"1f9d8-1f3fe-2640","🧘🏾\200d♂":"1f9d8-1f3fe-2642","🧘🏾♂️":"1f9d8-1f3fe-2642","🧘🏿\200d♀":"1f9d8-1f3ff-2640","🧘🏿♀️":"1f9d8-1f3ff-2640","🧘🏿\200d♂":"1f9d8-1f3ff-2642","🧘🏿♂️":"1f9d8-1f3ff-2642","👁\200d🗨️":"1f441-1f5e8","👁️\200d🗨":"1f441-1f5e8","⛹🏿\200d♂":"26f9-1f3ff-2642","⛹🏾\200d♂":"26f9-1f3fe-2642","⛹🏽\200d♂":"26f9-1f3fd-2642","⛹🏼\200d♂":"26f9-1f3fc-2642","⛹🏻\200d♂":"26f9-1f3fb-2642","⛹🏿\200d♀":"26f9-1f3ff-2640","⛹🏾\200d♀":"26f9-1f3fe-2640","⛹🏽\200d♀":"26f9-1f3fd-2640","⛹🏼\200d♀":"26f9-1f3fc-2640","⛹🏻\200d♀":"26f9-1f3fb-2640","👨\200d⚕️":"1f468-2695","👨\200d⚖️":"1f468-2696","👨\200d✈️":"1f468-2708","👩\200d⚕️":"1f469-2695","👩\200d⚖️":"1f469-2696","👩\200d✈️":"1f469-2708","👮\200d♀️":"1f46e-2640","👮\200d♂️":"1f46e-2642","👱\200d♀️":"1f471-2640","👱\200d♂️":"1f471-2642","👳\200d♀️":"1f473-2640","👳\200d♂️":"1f473-2642","👷\200d♀️":"1f477-2640","👷\200d♂️":"1f477-2642","💂\200d♀️":"1f482-2640","💂\200d♂️":"1f482-2642","🕵️♀️":"1f575-2640","🕵️♂️":"1f575-2642","🏃\200d♀️":"1f3c3-2640","🏃\200d♂️":"1f3c3-2642","🏄\200d♀️":"1f3c4-2640","🏄\200d♂️":"1f3c4-2642","🏊\200d♀️":"1f3ca-2640","🏊\200d♂️":"1f3ca-2642","🏋️♀️":"1f3cb-2640","🏋️♂️":"1f3cb-2642","🏌️♀️":"1f3cc-2640","🏌️♂️":"1f3cc-2642","👯\200d♀️":"1f46f-2640","👯\200d♂️":"1f46f-2642","💆\200d♀️":"1f486-2640","💆\200d♂️":"1f486-2642","💇\200d♀️":"1f487-2640","💇\200d♂️":"1f487-2642","🚣\200d♀️":"1f6a3-2640","🚣\200d♂️":"1f6a3-2642","🚴\200d♀️":"1f6b4-2640","🚴\200d♂️":"1f6b4-2642","🚵\200d♀️":"1f6b5-2640","🚵\200d♂️":"1f6b5-2642","🚶\200d♀️":"1f6b6-2640","🚶\200d♂️":"1f6b6-2642","🤸\200d♀️":"1f938-2640","🤸\200d♂️":"1f938-2642","🤹\200d♀️":"1f939-2640","🤹\200d♂️":"1f939-2642","🤼\200d♀️":"1f93c-2640","🤼\200d♂️":"1f93c-2642","🤽\200d♀️":"1f93d-2640","🤽\200d♂️":"1f93d-2642","🤾\200d♀️":"1f93e-2640","🤾\200d♂️":"1f93e-2642","💁\200d♀️":"1f481-2640","💁\200d♂️":"1f481-2642","🙅\200d♀️":"1f645-2640","🙅\200d♂️":"1f645-2642","🙆\200d♀️":"1f646-2640","🙆\200d♂️":"1f646-2642","🙇\200d♀️":"1f647-2640","🙇\200d♂️":"1f647-2642","🙋\200d♀️":"1f64b-2640","🙋\200d♂️":"1f64b-2642","🙍\200d♀️":"1f64d-2640","🙍\200d♂️":"1f64d-2642","🙎\200d♀️":"1f64e-2640","🙎\200d♂️":"1f64e-2642","🤦\200d♀️":"1f926-2640","🤦\200d♂️":"1f926-2642","🤷\200d♀️":"1f937-2640","🤷\200d♂️":"1f937-2642","🧙\200d♀️":"1f9d9-2640","🧙\200d♂️":"1f9d9-2642","🧚\200d♀️":"1f9da-2640","🧚\200d♂️":"1f9da-2642","🧛\200d♀️":"1f9db-2640","🧛\200d♂️":"1f9db-2642","🧜\200d♀️":"1f9dc-2640","🧜\200d♂️":"1f9dc-2642","🧝\200d♀️":"1f9dd-2640","🧝\200d♂️":"1f9dd-2642","🧞\200d♀️":"1f9de-2640","🧞\200d♂️":"1f9de-2642","🧟\200d♀️":"1f9df-2640","🧟\200d♂️":"1f9df-2642","🧖\200d♀️":"1f9d6-2640","🧖\200d♂️":"1f9d6-2642","🧗\200d♀️":"1f9d7-2640","🧗\200d♂️":"1f9d7-2642","🧘\200d♀️":"1f9d8-2640","🧘\200d♂️":"1f9d8-2642","🕵\200d♀️":"1f575-2640","🕵️\200d♀":"1f575-2640","🕵\200d♂️":"1f575-2642","🕵️\200d♂":"1f575-2642","🏋\200d♀️":"1f3cb-2640","🏋️\200d♀":"1f3cb-2640","🏋\200d♂️":"1f3cb-2642","🏋️\200d♂":"1f3cb-2642","🏌\200d♀️":"1f3cc-2640","🏌️\200d♀":"1f3cc-2640","🏌\200d♂️":"1f3cc-2642","🏌️\200d♂":"1f3cc-2642","⛹️♀️":"26f9-2640","⛹️♂️":"26f9-2642","⛹\200d♀️":"26f9-2640","⛹️\200d♀":"26f9-2640","⛹\200d♂️":"26f9-2642","⛹️\200d♂":"26f9-2642","👨👨👦":"1f468-1f468-1f466","👨👨👧":"1f468-1f468-1f467","👨👩👧":"1f468-1f469-1f467","👩👩👦":"1f469-1f469-1f466","👩👩👧":"1f469-1f469-1f467","👨👦👦":"1f468-1f466-1f466","👨👧👦":"1f468-1f467-1f466","👩👦👦":"1f469-1f466-1f466","👩👧👦":"1f469-1f467-1f466","👩👧👧":"1f469-1f467-1f467","👨🏻🎨":"1f468-1f3fb-1f3a8","👨🏼🎨":"1f468-1f3fc-1f3a8","👨🏽🎨":"1f468-1f3fd-1f3a8","👨🏾🎨":"1f468-1f3fe-1f3a8","👨🏿🎨":"1f468-1f3ff-1f3a8","👩🏻🎨":"1f469-1f3fb-1f3a8","👩🏼🎨":"1f469-1f3fc-1f3a8","👩🏽🎨":"1f469-1f3fd-1f3a8","👩🏾🎨":"1f469-1f3fe-1f3a8","👩🏿🎨":"1f469-1f3ff-1f3a8","👨🏻🚀":"1f468-1f3fb-1f680","👨🏼🚀":"1f468-1f3fc-1f680","👨🏽🚀":"1f468-1f3fd-1f680","👨🏾🚀":"1f468-1f3fe-1f680","👨🏿🚀":"1f468-1f3ff-1f680","👩🏻🚀":"1f469-1f3fb-1f680","👩🏼🚀":"1f469-1f3fc-1f680","👩🏽🚀":"1f469-1f3fd-1f680","👩🏾🚀":"1f469-1f3fe-1f680","👩🏿🚀":"1f469-1f3ff-1f680","👨🏻🚒":"1f468-1f3fb-1f692","👨🏼🚒":"1f468-1f3fc-1f692","👨🏽🚒":"1f468-1f3fd-1f692","👨🏾🚒":"1f468-1f3fe-1f692","👨🏿🚒":"1f468-1f3ff-1f692","👩🏻🚒":"1f469-1f3fb-1f692","👩🏼🚒":"1f469-1f3fc-1f692","👩🏽🚒":"1f469-1f3fd-1f692","👩🏾🚒":"1f469-1f3fe-1f692","👩🏿🚒":"1f469-1f3ff-1f692","👨👩👦":"1f468-1f469-1f466","👨👧👧":"1f468-1f467-1f467","👨🏻🌾":"1f468-1f3fb-1f33e","👨🏻🍳":"1f468-1f3fb-1f373","👨🏻🎓":"1f468-1f3fb-1f393","👨🏻🎤":"1f468-1f3fb-1f3a4","👨🏻🏫":"1f468-1f3fb-1f3eb","👨🏻🏭":"1f468-1f3fb-1f3ed","👨🏻💻":"1f468-1f3fb-1f4bb","👨🏻💼":"1f468-1f3fb-1f4bc","👨🏻🔧":"1f468-1f3fb-1f527","👨🏻🔬":"1f468-1f3fb-1f52c","👨🏼🌾":"1f468-1f3fc-1f33e","👨🏼🍳":"1f468-1f3fc-1f373","👨🏼🎓":"1f468-1f3fc-1f393","👨🏼🎤":"1f468-1f3fc-1f3a4","👨🏼🏫":"1f468-1f3fc-1f3eb","👨🏼🏭":"1f468-1f3fc-1f3ed","👨🏼💻":"1f468-1f3fc-1f4bb","👨🏼💼":"1f468-1f3fc-1f4bc","👨🏼🔧":"1f468-1f3fc-1f527","👨🏼🔬":"1f468-1f3fc-1f52c","👨🏽🌾":"1f468-1f3fd-1f33e","👨🏽🍳":"1f468-1f3fd-1f373","👨🏽🎓":"1f468-1f3fd-1f393","👨🏽🎤":"1f468-1f3fd-1f3a4","👨🏽🏫":"1f468-1f3fd-1f3eb","👨🏽🏭":"1f468-1f3fd-1f3ed","👨🏽💻":"1f468-1f3fd-1f4bb","👨🏽💼":"1f468-1f3fd-1f4bc","👨🏽🔧":"1f468-1f3fd-1f527","👨🏽🔬":"1f468-1f3fd-1f52c","👨🏾🌾":"1f468-1f3fe-1f33e","👨🏾🍳":"1f468-1f3fe-1f373","👨🏾🎓":"1f468-1f3fe-1f393","👨🏾🎤":"1f468-1f3fe-1f3a4","👨🏾🏫":"1f468-1f3fe-1f3eb","👨🏾🏭":"1f468-1f3fe-1f3ed","👨🏾💻":"1f468-1f3fe-1f4bb","👨🏾💼":"1f468-1f3fe-1f4bc","👨🏾🔧":"1f468-1f3fe-1f527","👨🏾🔬":"1f468-1f3fe-1f52c","👨🏿🌾":"1f468-1f3ff-1f33e","👨🏿🍳":"1f468-1f3ff-1f373","👨🏿🎓":"1f468-1f3ff-1f393","👨🏿🎤":"1f468-1f3ff-1f3a4","👨🏿🏫":"1f468-1f3ff-1f3eb","👨🏿🏭":"1f468-1f3ff-1f3ed","👨🏿💻":"1f468-1f3ff-1f4bb","👨🏿💼":"1f468-1f3ff-1f4bc","👨🏿🔧":"1f468-1f3ff-1f527","👨🏿🔬":"1f468-1f3ff-1f52c","👩🏻🌾":"1f469-1f3fb-1f33e","👩🏻🍳":"1f469-1f3fb-1f373","👩🏻🎓":"1f469-1f3fb-1f393","👩🏻🎤":"1f469-1f3fb-1f3a4","👩🏻🏫":"1f469-1f3fb-1f3eb","👩🏻🏭":"1f469-1f3fb-1f3ed","👩🏻💻":"1f469-1f3fb-1f4bb","👩🏻💼":"1f469-1f3fb-1f4bc","👩🏻🔧":"1f469-1f3fb-1f527","👩🏻🔬":"1f469-1f3fb-1f52c","👩🏼🌾":"1f469-1f3fc-1f33e","👩🏼🍳":"1f469-1f3fc-1f373","👩🏼🎓":"1f469-1f3fc-1f393","👩🏼🎤":"1f469-1f3fc-1f3a4","👩🏼🏫":"1f469-1f3fc-1f3eb","👩🏼🏭":"1f469-1f3fc-1f3ed","👩🏼💻":"1f469-1f3fc-1f4bb","👩🏼💼":"1f469-1f3fc-1f4bc","👩🏼🔧":"1f469-1f3fc-1f527","👩🏼🔬":"1f469-1f3fc-1f52c","👩🏽🌾":"1f469-1f3fd-1f33e","👩🏽🍳":"1f469-1f3fd-1f373","👩🏽🎓":"1f469-1f3fd-1f393","👩🏽🎤":"1f469-1f3fd-1f3a4","👩🏽🏫":"1f469-1f3fd-1f3eb","👩🏽🏭":"1f469-1f3fd-1f3ed","👩🏽💻":"1f469-1f3fd-1f4bb","👩🏽💼":"1f469-1f3fd-1f4bc","👩🏽🔧":"1f469-1f3fd-1f527","👩🏽🔬":"1f469-1f3fd-1f52c","👩🏾🌾":"1f469-1f3fe-1f33e","👩🏾🍳":"1f469-1f3fe-1f373","👩🏾🎓":"1f469-1f3fe-1f393","👩🏾🎤":"1f469-1f3fe-1f3a4","👩🏾🏫":"1f469-1f3fe-1f3eb","👩🏾🏭":"1f469-1f3fe-1f3ed","👩🏾💻":"1f469-1f3fe-1f4bb","👩🏾💼":"1f469-1f3fe-1f4bc","👩🏾🔧":"1f469-1f3fe-1f527","👩🏾🔬":"1f469-1f3fe-1f52c","👩🏿🌾":"1f469-1f3ff-1f33e","👩🏿🍳":"1f469-1f3ff-1f373","👩🏿🎓":"1f469-1f3ff-1f393","👩🏿🎤":"1f469-1f3ff-1f3a4","👩🏿🏫":"1f469-1f3ff-1f3eb","👩🏿🏭":"1f469-1f3ff-1f3ed","👩🏿💻":"1f469-1f3ff-1f4bb","👩🏿💼":"1f469-1f3ff-1f4bc","👩🏿🔧":"1f469-1f3ff-1f527","👩🏿🔬":"1f469-1f3ff-1f52c","👁\200d🗨":"1f441-1f5e8","👨\200d💻":"1f468-1f4bb","👩\200d💻":"1f469-1f4bb","👨\200d🏫":"1f468-1f3eb","👩\200d🏫":"1f469-1f3eb","👨\200d🎓":"1f468-1f393","👩\200d🎓":"1f469-1f393","👨\200d🎤":"1f468-1f3a4","👩\200d🎤":"1f469-1f3a4","👨\200d🔬":"1f468-1f52c","👩\200d🔬":"1f469-1f52c","👨\200d💼":"1f468-1f4bc","👩\200d💼":"1f469-1f4bc","👨\200d🔧":"1f468-1f527","👩\200d🔧":"1f469-1f527","👨\200d🏭":"1f468-1f3ed","👩\200d🏭":"1f469-1f3ed","👨\200d🍳":"1f468-1f373","👩\200d🍳":"1f469-1f373","👨\200d🌾":"1f468-1f33e","👩\200d🌾":"1f469-1f33e","👨\200d👦":"1f468-1f466","👨\200d👧":"1f468-1f467","👩\200d👦":"1f469-1f466","👩\200d👧":"1f469-1f467","👨\200d🎨":"1f468-1f3a8","👩\200d🎨":"1f469-1f3a8","👨\200d🚀":"1f468-1f680","👩\200d🚀":"1f469-1f680","👨\200d🚒":"1f468-1f692","👩\200d🚒":"1f469-1f692","🏋️🏻":"1f3cb-1f3fb","🏋️🏼":"1f3cb-1f3fc","🏋️🏽":"1f3cb-1f3fd","🏋️🏾":"1f3cb-1f3fe","🏋️🏿":"1f3cb-1f3ff","🏌️🏻":"1f3cc-1f3fb","🏌️🏼":"1f3cc-1f3fc","🏌️🏽":"1f3cc-1f3fd","🏌️🏾":"1f3cc-1f3fe","🏌️🏿":"1f3cc-1f3ff","🕴️🏻":"1f574-1f3fb","🕴️🏼":"1f574-1f3fc","🕴️🏽":"1f574-1f3fd","🕴️🏾":"1f574-1f3fe","🕴️🏿":"1f574-1f3ff","🕵️🏻":"1f575-1f3fb","🕵️🏼":"1f575-1f3fc","🕵️🏽":"1f575-1f3fd","🕵️🏾":"1f575-1f3fe","🕵️🏿":"1f575-1f3ff","🖐️🏻":"1f590-1f3fb","🖐️🏼":"1f590-1f3fc","🖐️🏽":"1f590-1f3fd","🖐️🏾":"1f590-1f3fe","🖐️🏿":"1f590-1f3ff","🏳\200d🌈":"1f3f3-1f308","🏳️🌈":"1f3f3-1f308","👯\200d♂":"1f46f-2642","👯\200d♀":"1f46f-2640","🤼\200d♂":"1f93c-2642","🤼\200d♀":"1f93c-2640","🤹\200d♂":"1f939-2642","🤹\200d♀":"1f939-2640","🤾\200d♂":"1f93e-2642","🤾\200d♀":"1f93e-2640","🤽\200d♂":"1f93d-2642","🤽\200d♀":"1f93d-2640","🤸\200d♂":"1f938-2642","🤸\200d♀":"1f938-2640","🚶\200d♂":"1f6b6-2642","🚶\200d♀":"1f6b6-2640","🚵\200d♂":"1f6b5-2642","🚵\200d♀":"1f6b5-2640","🚴\200d♂":"1f6b4-2642","🚴\200d♀":"1f6b4-2640","🚣\200d♂":"1f6a3-2642","🚣\200d♀":"1f6a3-2640","🏊\200d♂":"1f3ca-2642","🏊\200d♀":"1f3ca-2640","🏄\200d♂":"1f3c4-2642","🏄\200d♀":"1f3c4-2640","🏃\200d♂":"1f3c3-2642","🏃\200d♀":"1f3c3-2640","🤷\200d♂":"1f937-2642","🤷\200d♀":"1f937-2640","🤦\200d♂":"1f926-2642","🤦\200d♀":"1f926-2640","🙎\200d♂":"1f64e-2642","🙎\200d♀":"1f64e-2640","🙍\200d♂":"1f64d-2642","🙍\200d♀":"1f64d-2640","🙋\200d♂":"1f64b-2642","🙋\200d♀":"1f64b-2640","🙇\200d♂":"1f647-2642","🙇\200d♀":"1f647-2640","🙆\200d♂":"1f646-2642","🙆\200d♀":"1f646-2640","🙅\200d♂":"1f645-2642","🙅\200d♀":"1f645-2640","💇\200d♂":"1f487-2642","💇\200d♀":"1f487-2640","💆\200d♂":"1f486-2642","💆\200d♀":"1f486-2640","💁\200d♂":"1f481-2642","💁\200d♀":"1f481-2640","👱\200d♂":"1f471-2642","👱\200d♀":"1f471-2640","👳\200d♂":"1f473-2642","👳\200d♀":"1f473-2640","💂\200d♂":"1f482-2642","💂\200d♀":"1f482-2640","👷\200d♂":"1f477-2642","👷\200d♀":"1f477-2640","👮\200d♂":"1f46e-2642","👮\200d♀":"1f46e-2640","👨\200d⚕":"1f468-2695","👩\200d⚕":"1f469-2695","👨\200d⚖":"1f468-2696","👩\200d⚖":"1f469-2696","👨\200d✈":"1f468-2708","👩\200d✈":"1f469-2708","☝️🏻":"261d-1f3fb","☝️🏼":"261d-1f3fc","☝️🏽":"261d-1f3fd","☝️🏾":"261d-1f3fe","☝️🏿":"261d-1f3ff","⛹️🏻":"26f9-1f3fb","⛹️🏼":"26f9-1f3fc","⛹️🏽":"26f9-1f3fd","⛹️🏾":"26f9-1f3fe","⛹️🏿":"26f9-1f3ff","✌️🏻":"270c-1f3fb","✌️🏼":"270c-1f3fc","✌️🏽":"270c-1f3fd","✌️🏾":"270c-1f3fe","✌️🏿":"270c-1f3ff","✍️🏻":"270d-1f3fb","✍️🏼":"270d-1f3fc","✍️🏽":"270d-1f3fd","✍️🏾":"270d-1f3fe","✍️🏿":"270d-1f3ff","👨⚕️":"1f468-2695","👨⚖️":"1f468-2696","👨✈️":"1f468-2708","👩⚕️":"1f469-2695","👩⚖️":"1f469-2696","👩✈️":"1f469-2708","👮♀️":"1f46e-2640","👮♂️":"1f46e-2642","👱♀️":"1f471-2640","👱♂️":"1f471-2642","👳♀️":"1f473-2640","👳♂️":"1f473-2642","👷♀️":"1f477-2640","👷♂️":"1f477-2642","💂♀️":"1f482-2640","💂♂️":"1f482-2642","🕵\200d♀":"1f575-2640","🕵\200d♂":"1f575-2642","🏃♀️":"1f3c3-2640","🏃♂️":"1f3c3-2642","🏄♀️":"1f3c4-2640","🏄♂️":"1f3c4-2642","🏊♀️":"1f3ca-2640","🏊♂️":"1f3ca-2642","🏋\200d♀":"1f3cb-2640","🏋\200d♂":"1f3cb-2642","🏌\200d♀":"1f3cc-2640","🏌\200d♂":"1f3cc-2642","👯♀️":"1f46f-2640","👯♂️":"1f46f-2642","💆♀️":"1f486-2640","💆♂️":"1f486-2642","💇♀️":"1f487-2640","💇♂️":"1f487-2642","🚣♀️":"1f6a3-2640","🚣♂️":"1f6a3-2642","🚴♀️":"1f6b4-2640","🚴♂️":"1f6b4-2642","🚵♀️":"1f6b5-2640","🚵♂️":"1f6b5-2642","🚶♀️":"1f6b6-2640","🚶♂️":"1f6b6-2642","🤸♀️":"1f938-2640","🤸♂️":"1f938-2642","🤹♀️":"1f939-2640","🤹♂️":"1f939-2642","🤼♀️":"1f93c-2640","🤼♂️":"1f93c-2642","🤽♀️":"1f93d-2640","🤽♂️":"1f93d-2642","🤾♀️":"1f93e-2640","🤾♂️":"1f93e-2642","💁♀️":"1f481-2640","💁♂️":"1f481-2642","🙅♀️":"1f645-2640","🙅♂️":"1f645-2642","🙆♀️":"1f646-2640","🙆♂️":"1f646-2642","🙇♀️":"1f647-2640","🙇♂️":"1f647-2642","🙋♀️":"1f64b-2640","🙋♂️":"1f64b-2642","🙍♀️":"1f64d-2640","🙍♂️":"1f64d-2642","🙎♀️":"1f64e-2640","🙎♂️":"1f64e-2642","🤦♀️":"1f926-2640","🤦♂️":"1f926-2642","🤷♀️":"1f937-2640","🤷♂️":"1f937-2642","🧙\200d♀":"1f9d9-2640","🧙♀️":"1f9d9-2640","🧙\200d♂":"1f9d9-2642","🧙♂️":"1f9d9-2642","🧚\200d♀":"1f9da-2640","🧚♀️":"1f9da-2640","🧚\200d♂":"1f9da-2642","🧚♂️":"1f9da-2642","🧛\200d♀":"1f9db-2640","🧛♀️":"1f9db-2640","🧛\200d♂":"1f9db-2642","🧛♂️":"1f9db-2642","🧜\200d♀":"1f9dc-2640","🧜♀️":"1f9dc-2640","🧜\200d♂":"1f9dc-2642","🧜♂️":"1f9dc-2642","🧝\200d♀":"1f9dd-2640","🧝♀️":"1f9dd-2640","🧝\200d♂":"1f9dd-2642","🧝♂️":"1f9dd-2642","🧞\200d♀":"1f9de-2640","🧞♀️":"1f9de-2640","🧞\200d♂":"1f9de-2642","🧞♂️":"1f9de-2642","🧟\200d♀":"1f9df-2640","🧟♀️":"1f9df-2640","🧟\200d♂":"1f9df-2642","🧟♂️":"1f9df-2642","🧖\200d♀":"1f9d6-2640","🧖♀️":"1f9d6-2640","🧖\200d♂":"1f9d6-2642","🧖♂️":"1f9d6-2642","🧗\200d♀":"1f9d7-2640","🧗♀️":"1f9d7-2640","🧗\200d♂":"1f9d7-2642","🧗♂️":"1f9d7-2642","🧘\200d♀":"1f9d8-2640","🧘♀️":"1f9d8-2640","🧘\200d♂":"1f9d8-2642","🧘♂️":"1f9d8-2642","#️⃣":"0023-20e3","0️⃣":"0030-20e3","1️⃣":"0031-20e3","2️⃣":"0032-20e3","3️⃣":"0033-20e3","4️⃣":"0034-20e3","5️⃣":"0035-20e3","6️⃣":"0036-20e3","7️⃣":"0037-20e3","8️⃣":"0038-20e3","9️⃣":"0039-20e3","*️⃣":"002a-20e3","⛹\200d♀":"26f9-2640","⛹\200d♂":"26f9-2642","🇨🇳":"1f1e8-1f1f3","🇩🇪":"1f1e9-1f1ea","🇪🇸":"1f1ea-1f1f8","🇫🇷":"1f1eb-1f1f7","🇬🇧":"1f1ec-1f1e7","🇮🇹":"1f1ee-1f1f9","🇯🇵":"1f1ef-1f1f5","🇰🇷":"1f1f0-1f1f7","🇺🇸":"1f1fa-1f1f8","🇷🇺":"1f1f7-1f1fa","🤴🏻":"1f934-1f3fb","🤴🏼":"1f934-1f3fc","🤴🏽":"1f934-1f3fd","🤴🏾":"1f934-1f3fe","🤴🏿":"1f934-1f3ff","🤶🏻":"1f936-1f3fb","🤶🏼":"1f936-1f3fc","🤶🏽":"1f936-1f3fd","🤶🏾":"1f936-1f3fe","🤶🏿":"1f936-1f3ff","🤵🏻":"1f935-1f3fb","🤵🏼":"1f935-1f3fc","🤵🏽":"1f935-1f3fd","🤵🏾":"1f935-1f3fe","🤵🏿":"1f935-1f3ff","🤷🏻":"1f937-1f3fb","🤷🏼":"1f937-1f3fc","🤷🏽":"1f937-1f3fd","🤷🏾":"1f937-1f3fe","🤷🏿":"1f937-1f3ff","🤦🏻":"1f926-1f3fb","🤦🏼":"1f926-1f3fc","🤦🏽":"1f926-1f3fd","🤦🏾":"1f926-1f3fe","🤦🏿":"1f926-1f3ff","🤰🏻":"1f930-1f3fb","🤰🏼":"1f930-1f3fc","🤰🏽":"1f930-1f3fd","🤰🏾":"1f930-1f3fe","🤰🏿":"1f930-1f3ff","🕺🏻":"1f57a-1f3fb","🕺🏼":"1f57a-1f3fc","🕺🏽":"1f57a-1f3fd","🕺🏾":"1f57a-1f3fe","🕺🏿":"1f57a-1f3ff","🤳🏻":"1f933-1f3fb","🤳🏼":"1f933-1f3fc","🤳🏽":"1f933-1f3fd","🤳🏾":"1f933-1f3fe","🤳🏿":"1f933-1f3ff","🤞🏻":"1f91e-1f3fb","🤞🏼":"1f91e-1f3fc","🤞🏽":"1f91e-1f3fd","🤞🏾":"1f91e-1f3fe","🤞🏿":"1f91e-1f3ff","🤙🏻":"1f919-1f3fb","🤙🏼":"1f919-1f3fc","🤙🏽":"1f919-1f3fd","🇦🇫":"1f1e6-1f1eb","🇦🇱":"1f1e6-1f1f1","🇩🇿":"1f1e9-1f1ff","🇦🇩":"1f1e6-1f1e9","🇦🇴":"1f1e6-1f1f4","🇦🇬":"1f1e6-1f1ec","🇦🇷":"1f1e6-1f1f7","🇦🇲":"1f1e6-1f1f2","🇦🇺":"1f1e6-1f1fa","🇦🇹":"1f1e6-1f1f9","🇦🇿":"1f1e6-1f1ff","🇧🇸":"1f1e7-1f1f8","🇧🇭":"1f1e7-1f1ed","🇧🇩":"1f1e7-1f1e9","🇧🇧":"1f1e7-1f1e7","🇧🇾":"1f1e7-1f1fe","🇧🇪":"1f1e7-1f1ea","🇧🇿":"1f1e7-1f1ff","🇧🇯":"1f1e7-1f1ef","🇧🇹":"1f1e7-1f1f9","🇧🇴":"1f1e7-1f1f4","🇧🇦":"1f1e7-1f1e6","🇧🇼":"1f1e7-1f1fc","🇧🇷":"1f1e7-1f1f7","🇧🇳":"1f1e7-1f1f3","🇧🇬":"1f1e7-1f1ec","🇧🇫":"1f1e7-1f1eb","🇧🇮":"1f1e7-1f1ee","🇰🇭":"1f1f0-1f1ed","🇨🇲":"1f1e8-1f1f2","🇨🇦":"1f1e8-1f1e6","🇨🇻":"1f1e8-1f1fb","🤙🏾":"1f919-1f3fe","🇨🇫":"1f1e8-1f1eb","🇹🇩":"1f1f9-1f1e9","🇨🇱":"1f1e8-1f1f1","🇨🇴":"1f1e8-1f1f4","🇰🇲":"1f1f0-1f1f2","🇨🇷":"1f1e8-1f1f7","🇨🇮":"1f1e8-1f1ee","🇭🇷":"1f1ed-1f1f7","🇨🇺":"1f1e8-1f1fa","🇨🇾":"1f1e8-1f1fe","🇨🇿":"1f1e8-1f1ff","🤙🏿":"1f919-1f3ff","🇨🇩":"1f1e8-1f1e9","🤛🏻":"1f91b-1f3fb","🇩🇰":"1f1e9-1f1f0","🇩🇯":"1f1e9-1f1ef","🇩🇲":"1f1e9-1f1f2","🇩🇴":"1f1e9-1f1f4","🇹🇱":"1f1f9-1f1f1","🇪🇨":"1f1ea-1f1e8","🇪🇬":"1f1ea-1f1ec","🇸🇻":"1f1f8-1f1fb","🇬🇶":"1f1ec-1f1f6","🇪🇷":"1f1ea-1f1f7","🇪🇪":"1f1ea-1f1ea","🇪🇹":"1f1ea-1f1f9","🤛🏼":"1f91b-1f3fc","🇫🇯":"1f1eb-1f1ef","🇫🇮":"1f1eb-1f1ee","🇬🇦":"1f1ec-1f1e6","🇬🇲":"1f1ec-1f1f2","🇬🇪":"1f1ec-1f1ea","🇬🇭":"1f1ec-1f1ed","🇬🇷":"1f1ec-1f1f7","🇬🇩":"1f1ec-1f1e9","🇬🇹":"1f1ec-1f1f9","🇬🇳":"1f1ec-1f1f3","🇬🇼":"1f1ec-1f1fc","🇬🇾":"1f1ec-1f1fe","🇭🇹":"1f1ed-1f1f9","🇭🇳":"1f1ed-1f1f3","🇭🇺":"1f1ed-1f1fa","🇮🇸":"1f1ee-1f1f8","🇮🇳":"1f1ee-1f1f3","🇮🇩":"1f1ee-1f1e9","🇮🇷":"1f1ee-1f1f7","🇮🇶":"1f1ee-1f1f6","🇮🇪":"1f1ee-1f1ea","🇮🇱":"1f1ee-1f1f1","🇯🇲":"1f1ef-1f1f2","🇯🇴":"1f1ef-1f1f4","🇰🇿":"1f1f0-1f1ff","🇰🇪":"1f1f0-1f1ea","🇰🇮":"1f1f0-1f1ee","🇽🇰":"1f1fd-1f1f0","🇰🇼":"1f1f0-1f1fc","🇰🇬":"1f1f0-1f1ec","🤛🏽":"1f91b-1f3fd","🇱🇦":"1f1f1-1f1e6","🇱🇻":"1f1f1-1f1fb","🇱🇧":"1f1f1-1f1e7","🇱🇸":"1f1f1-1f1f8","🇱🇷":"1f1f1-1f1f7","🇱🇾":"1f1f1-1f1fe","🇱🇮":"1f1f1-1f1ee","🇱🇹":"1f1f1-1f1f9","🇱🇺":"1f1f1-1f1fa","🇲🇰":"1f1f2-1f1f0","🇲🇬":"1f1f2-1f1ec","🇲🇼":"1f1f2-1f1fc","🇲🇾":"1f1f2-1f1fe","🇲🇻":"1f1f2-1f1fb","🇲🇱":"1f1f2-1f1f1","🇲🇹":"1f1f2-1f1f9","🇲🇭":"1f1f2-1f1ed","🇲🇷":"1f1f2-1f1f7","🇲🇺":"1f1f2-1f1fa","🇲🇽":"1f1f2-1f1fd","🇫🇲":"1f1eb-1f1f2","🇲🇩":"1f1f2-1f1e9","🇲🇨":"1f1f2-1f1e8","🇲🇳":"1f1f2-1f1f3","🇲🇪":"1f1f2-1f1ea","🇲🇦":"1f1f2-1f1e6","🇲🇿":"1f1f2-1f1ff","🇲🇲":"1f1f2-1f1f2","🇳🇦":"1f1f3-1f1e6","🇳🇷":"1f1f3-1f1f7","🇳🇵":"1f1f3-1f1f5","🇳🇱":"1f1f3-1f1f1","🇳🇿":"1f1f3-1f1ff","🇳🇮":"1f1f3-1f1ee","🇳🇪":"1f1f3-1f1ea","🇳🇬":"1f1f3-1f1ec","🇰🇵":"1f1f0-1f1f5","🇳🇴":"1f1f3-1f1f4","🇴🇲":"1f1f4-1f1f2","🇵🇰":"1f1f5-1f1f0","🇵🇼":"1f1f5-1f1fc","🇵🇦":"1f1f5-1f1e6","🇵🇬":"1f1f5-1f1ec","🤛🏾":"1f91b-1f3fe","🇵🇾":"1f1f5-1f1fe","🇵🇪":"1f1f5-1f1ea","🇵🇭":"1f1f5-1f1ed","🇵🇱":"1f1f5-1f1f1","🇵🇹":"1f1f5-1f1f9","🇶🇦":"1f1f6-1f1e6","🇹🇼":"1f1f9-1f1fc","🇨🇬":"1f1e8-1f1ec","🇷🇴":"1f1f7-1f1f4","🇷🇼":"1f1f7-1f1fc","🇰🇳":"1f1f0-1f1f3","🇱🇨":"1f1f1-1f1e8","🇻🇨":"1f1fb-1f1e8","🇼🇸":"1f1fc-1f1f8","🇸🇲":"1f1f8-1f1f2","🇸🇹":"1f1f8-1f1f9","🇸🇦":"1f1f8-1f1e6","🤛🏿":"1f91b-1f3ff","🇸🇳":"1f1f8-1f1f3","🇷🇸":"1f1f7-1f1f8","🇸🇨":"1f1f8-1f1e8","🇸🇱":"1f1f8-1f1f1","🇸🇬":"1f1f8-1f1ec","🇸🇰":"1f1f8-1f1f0","🇸🇮":"1f1f8-1f1ee","🇸🇧":"1f1f8-1f1e7","🇸🇴":"1f1f8-1f1f4","🇿🇦":"1f1ff-1f1e6","🇱🇰":"1f1f1-1f1f0","🇸🇩":"1f1f8-1f1e9","🇸🇷":"1f1f8-1f1f7","🇸🇿":"1f1f8-1f1ff","🇸🇪":"1f1f8-1f1ea","🇨🇭":"1f1e8-1f1ed","🇸🇾":"1f1f8-1f1fe","🇹🇯":"1f1f9-1f1ef","🇹🇿":"1f1f9-1f1ff","🇹🇭":"1f1f9-1f1ed","🇹🇬":"1f1f9-1f1ec","🇹🇴":"1f1f9-1f1f4","🇹🇹":"1f1f9-1f1f9","🇹🇳":"1f1f9-1f1f3","🇹🇷":"1f1f9-1f1f7","🇹🇲":"1f1f9-1f1f2","🇹🇻":"1f1f9-1f1fb","🇺🇬":"1f1fa-1f1ec","🇺🇦":"1f1fa-1f1e6","🇦🇪":"1f1e6-1f1ea","🇺🇾":"1f1fa-1f1fe","🇺🇿":"1f1fa-1f1ff","🇻🇺":"1f1fb-1f1fa","🇻🇦":"1f1fb-1f1e6","🇻🇪":"1f1fb-1f1ea","🇻🇳":"1f1fb-1f1f3","🇪🇭":"1f1ea-1f1ed","🤜🏻":"1f91c-1f3fb","🇾🇪":"1f1fe-1f1ea","🇿🇲":"1f1ff-1f1f2","🇿🇼":"1f1ff-1f1fc","🇵🇷":"1f1f5-1f1f7","🇰🇾":"1f1f0-1f1fe","🇧🇲":"1f1e7-1f1f2","🇵🇫":"1f1f5-1f1eb","🇵🇸":"1f1f5-1f1f8","🇳🇨":"1f1f3-1f1e8","🤜🏼":"1f91c-1f3fc","🇸🇭":"1f1f8-1f1ed","🇦🇼":"1f1e6-1f1fc","🇻🇮":"1f1fb-1f1ee","🇭🇰":"1f1ed-1f1f0","🇦🇨":"1f1e6-1f1e8","🇲🇸":"1f1f2-1f1f8","🇬🇺":"1f1ec-1f1fa","🇬🇱":"1f1ec-1f1f1","🇳🇺":"1f1f3-1f1fa","🇼🇫":"1f1fc-1f1eb","🇲🇴":"1f1f2-1f1f4","🤜🏽":"1f91c-1f3fd","🇫🇴":"1f1eb-1f1f4","🇫🇰":"1f1eb-1f1f0","🇯🇪":"1f1ef-1f1ea","🇦🇮":"1f1e6-1f1ee","🇬🇮":"1f1ec-1f1ee","🤜🏾":"1f91c-1f3fe","🤜🏿":"1f91c-1f3ff","🤚🏻":"1f91a-1f3fb","🤚🏼":"1f91a-1f3fc","🤚🏽":"1f91a-1f3fd","🤚🏾":"1f91a-1f3fe","👶🏻":"1f476-1f3fb","👶🏼":"1f476-1f3fc","👶🏽":"1f476-1f3fd","👶🏾":"1f476-1f3fe","👶🏿":"1f476-1f3ff","👦🏻":"1f466-1f3fb","👦🏼":"1f466-1f3fc","👦🏽":"1f466-1f3fd","👦🏾":"1f466-1f3fe","👦🏿":"1f466-1f3ff","👧🏻":"1f467-1f3fb","👧🏼":"1f467-1f3fc","👧🏽":"1f467-1f3fd","👧🏾":"1f467-1f3fe","👧🏿":"1f467-1f3ff","👨🏻":"1f468-1f3fb","👨🏼":"1f468-1f3fc","👨🏽":"1f468-1f3fd","👨🏾":"1f468-1f3fe","👨🏿":"1f468-1f3ff","👩🏻":"1f469-1f3fb","👩🏼":"1f469-1f3fc","👩🏽":"1f469-1f3fd","👩🏾":"1f469-1f3fe","👩🏿":"1f469-1f3ff","👰🏻":"1f470-1f3fb","👰🏼":"1f470-1f3fc","🤚🏿":"1f91a-1f3ff","👰🏽":"1f470-1f3fd","👰🏾":"1f470-1f3fe","👰🏿":"1f470-1f3ff","👱🏻":"1f471-1f3fb","👱🏼":"1f471-1f3fc","👱🏽":"1f471-1f3fd","👱🏾":"1f471-1f3fe","👱🏿":"1f471-1f3ff","👲🏻":"1f472-1f3fb","👲🏼":"1f472-1f3fc","👲🏽":"1f472-1f3fd","👲🏾":"1f472-1f3fe","👲🏿":"1f472-1f3ff","👳🏻":"1f473-1f3fb","👳🏼":"1f473-1f3fc","👳🏽":"1f473-1f3fd","👳🏾":"1f473-1f3fe","👳🏿":"1f473-1f3ff","👴🏻":"1f474-1f3fb","👴🏼":"1f474-1f3fc","👴🏽":"1f474-1f3fd","👴🏾":"1f474-1f3fe","👴🏿":"1f474-1f3ff","👵🏻":"1f475-1f3fb","👵🏼":"1f475-1f3fc","👵🏽":"1f475-1f3fd","👵🏾":"1f475-1f3fe","👵🏿":"1f475-1f3ff","👮🏻":"1f46e-1f3fb","👮🏼":"1f46e-1f3fc","👮🏽":"1f46e-1f3fd","👮🏾":"1f46e-1f3fe","👮🏿":"1f46e-1f3ff","👷🏻":"1f477-1f3fb","👷🏼":"1f477-1f3fc","👷🏽":"1f477-1f3fd","👷🏾":"1f477-1f3fe","👷🏿":"1f477-1f3ff","👸🏻":"1f478-1f3fb","👸🏼":"1f478-1f3fc","👸🏽":"1f478-1f3fd","👸🏾":"1f478-1f3fe","🤸🏻":"1f938-1f3fb","👸🏿":"1f478-1f3ff","💂🏻":"1f482-1f3fb","💂🏼":"1f482-1f3fc","🤸🏼":"1f938-1f3fc","💂🏽":"1f482-1f3fd","💂🏾":"1f482-1f3fe","💂🏿":"1f482-1f3ff","🤸🏽":"1f938-1f3fd","👼🏻":"1f47c-1f3fb","👼🏼":"1f47c-1f3fc","👼🏽":"1f47c-1f3fd","👼🏾":"1f47c-1f3fe","👼🏿":"1f47c-1f3ff","🙇🏻":"1f647-1f3fb","🙇🏼":"1f647-1f3fc","🙇🏽":"1f647-1f3fd","🙇🏾":"1f647-1f3fe","🙇🏿":"1f647-1f3ff","💁🏻":"1f481-1f3fb","💁🏼":"1f481-1f3fc","💁🏽":"1f481-1f3fd","🤸🏾":"1f938-1f3fe","💁🏾":"1f481-1f3fe","💁🏿":"1f481-1f3ff","🙅🏻":"1f645-1f3fb","🤸🏿":"1f938-1f3ff","🙅🏼":"1f645-1f3fc","🙅🏽":"1f645-1f3fd","🙅🏾":"1f645-1f3fe","🙅🏿":"1f645-1f3ff","🙆🏻":"1f646-1f3fb","🙆🏼":"1f646-1f3fc","🙆🏽":"1f646-1f3fd","🙆🏾":"1f646-1f3fe","🙆🏿":"1f646-1f3ff","🙋🏻":"1f64b-1f3fb","🙋🏼":"1f64b-1f3fc","🙋🏽":"1f64b-1f3fd","🙋🏾":"1f64b-1f3fe","🙋🏿":"1f64b-1f3ff","🙎🏻":"1f64e-1f3fb","🙎🏼":"1f64e-1f3fc","🙎🏽":"1f64e-1f3fd","🙎🏾":"1f64e-1f3fe","🙎🏿":"1f64e-1f3ff","🙍🏻":"1f64d-1f3fb","🙍🏼":"1f64d-1f3fc","🙍🏽":"1f64d-1f3fd","🙍🏾":"1f64d-1f3fe","🙍🏿":"1f64d-1f3ff","💆🏻":"1f486-1f3fb","💆🏼":"1f486-1f3fc","💆🏽":"1f486-1f3fd","💆🏾":"1f486-1f3fe","💆🏿":"1f486-1f3ff","💇🏻":"1f487-1f3fb","💇🏼":"1f487-1f3fc","💇🏽":"1f487-1f3fd","💇🏾":"1f487-1f3fe","💇🏿":"1f487-1f3ff","🙌🏻":"1f64c-1f3fb","🙌🏼":"1f64c-1f3fc","🙌🏽":"1f64c-1f3fd","🙌🏾":"1f64c-1f3fe","🙌🏿":"1f64c-1f3ff","👏🏻":"1f44f-1f3fb","👏🏼":"1f44f-1f3fc","👏🏽":"1f44f-1f3fd","🤽🏻":"1f93d-1f3fb","👏🏾":"1f44f-1f3fe","👏🏿":"1f44f-1f3ff","🤽🏼":"1f93d-1f3fc","👂🏻":"1f442-1f3fb","👂🏼":"1f442-1f3fc","👂🏽":"1f442-1f3fd","👂🏾":"1f442-1f3fe","👂🏿":"1f442-1f3ff","👃🏻":"1f443-1f3fb","👃🏼":"1f443-1f3fc","👃🏽":"1f443-1f3fd","👃🏾":"1f443-1f3fe","👃🏿":"1f443-1f3ff","💅🏻":"1f485-1f3fb","💅🏼":"1f485-1f3fc","💅🏽":"1f485-1f3fd","💅🏾":"1f485-1f3fe","💅🏿":"1f485-1f3ff","👋🏻":"1f44b-1f3fb","👋🏼":"1f44b-1f3fc","👋🏽":"1f44b-1f3fd","👋🏾":"1f44b-1f3fe","👋🏿":"1f44b-1f3ff","👍🏻":"1f44d-1f3fb","👍🏼":"1f44d-1f3fc","👍🏽":"1f44d-1f3fd","👍🏾":"1f44d-1f3fe","👍🏿":"1f44d-1f3ff","👎🏻":"1f44e-1f3fb","👎🏼":"1f44e-1f3fc","👎🏽":"1f44e-1f3fd","👎🏾":"1f44e-1f3fe","👎🏿":"1f44e-1f3ff","👆🏻":"1f446-1f3fb","👆🏼":"1f446-1f3fc","👆🏽":"1f446-1f3fd","👆🏾":"1f446-1f3fe","👆🏿":"1f446-1f3ff","👇🏻":"1f447-1f3fb","👇🏼":"1f447-1f3fc","👇🏽":"1f447-1f3fd","👇🏾":"1f447-1f3fe","👇🏿":"1f447-1f3ff","👈🏻":"1f448-1f3fb","👈🏼":"1f448-1f3fc","👈🏽":"1f448-1f3fd","👈🏾":"1f448-1f3fe","👈🏿":"1f448-1f3ff","👉🏻":"1f449-1f3fb","👉🏼":"1f449-1f3fc","👉🏽":"1f449-1f3fd","👉🏾":"1f449-1f3fe","👉🏿":"1f449-1f3ff","👌🏻":"1f44c-1f3fb","👌🏼":"1f44c-1f3fc","🤽🏽":"1f93d-1f3fd","👌🏽":"1f44c-1f3fd","👌🏾":"1f44c-1f3fe","🤽🏾":"1f93d-1f3fe","👌🏿":"1f44c-1f3ff","👊🏻":"1f44a-1f3fb","👊🏼":"1f44a-1f3fc","👊🏽":"1f44a-1f3fd","👊🏾":"1f44a-1f3fe","👊🏿":"1f44a-1f3ff","💪🏻":"1f4aa-1f3fb","💪🏼":"1f4aa-1f3fc","💪🏽":"1f4aa-1f3fd","💪🏾":"1f4aa-1f3fe","💪🏿":"1f4aa-1f3ff","👐🏻":"1f450-1f3fb","👐🏼":"1f450-1f3fc","👐🏽":"1f450-1f3fd","👐🏾":"1f450-1f3fe","👐🏿":"1f450-1f3ff","🙏🏻":"1f64f-1f3fb","🤽🏿":"1f93d-1f3ff","🙏🏼":"1f64f-1f3fc","🙏🏽":"1f64f-1f3fd","🤾🏻":"1f93e-1f3fb","🙏🏾":"1f64f-1f3fe","🙏🏿":"1f64f-1f3ff","🤾🏼":"1f93e-1f3fc","🏃🏻":"1f3c3-1f3fb","🏃🏼":"1f3c3-1f3fc","🏃🏽":"1f3c3-1f3fd","🏃🏾":"1f3c3-1f3fe","🤾🏽":"1f93e-1f3fd","🏃🏿":"1f3c3-1f3ff","🚶🏻":"1f6b6-1f3fb","🚶🏼":"1f6b6-1f3fc","🚶🏽":"1f6b6-1f3fd","🚶🏾":"1f6b6-1f3fe","🚶🏿":"1f6b6-1f3ff","💃🏻":"1f483-1f3fb","🤾🏾":"1f93e-1f3fe","💃🏼":"1f483-1f3fc","💃🏽":"1f483-1f3fd","🤾🏿":"1f93e-1f3ff","💃🏾":"1f483-1f3fe","💃🏿":"1f483-1f3ff","🤹🏻":"1f939-1f3fb","🚣🏻":"1f6a3-1f3fb","🚣🏼":"1f6a3-1f3fc","🚣🏽":"1f6a3-1f3fd","🚣🏾":"1f6a3-1f3fe","🚣🏿":"1f6a3-1f3ff","🏊🏻":"1f3ca-1f3fb","🏊🏼":"1f3ca-1f3fc","🤹🏼":"1f939-1f3fc","🏊🏽":"1f3ca-1f3fd","🏊🏾":"1f3ca-1f3fe","🏊🏿":"1f3ca-1f3ff","🤹🏽":"1f939-1f3fd","🏄🏻":"1f3c4-1f3fb","🏄🏼":"1f3c4-1f3fc","🏄🏽":"1f3c4-1f3fd","🏄🏾":"1f3c4-1f3fe","🏄🏿":"1f3c4-1f3ff","🛀🏻":"1f6c0-1f3fb","🛀🏼":"1f6c0-1f3fc","🤹🏾":"1f939-1f3fe","🛀🏽":"1f6c0-1f3fd","🛀🏾":"1f6c0-1f3fe","🛀🏿":"1f6c0-1f3ff","🤹🏿":"1f939-1f3ff","🚴🏻":"1f6b4-1f3fb","🚴🏼":"1f6b4-1f3fc","🚴🏽":"1f6b4-1f3fd","🚴🏾":"1f6b4-1f3fe","🚴🏿":"1f6b4-1f3ff","🚵🏻":"1f6b5-1f3fb","🚵🏼":"1f6b5-1f3fc","🚵🏽":"1f6b5-1f3fd","🚵🏾":"1f6b5-1f3fe","🚵🏿":"1f6b5-1f3ff","🏇🏻":"1f3c7-1f3fb","🏇🏼":"1f3c7-1f3fc","🏇🏽":"1f3c7-1f3fd","🏇🏾":"1f3c7-1f3fe","🏇🏿":"1f3c7-1f3ff","🖐🏻":"1f590-1f3fb","🖐🏼":"1f590-1f3fc","🖐🏽":"1f590-1f3fd","🖐🏾":"1f590-1f3fe","🖐🏿":"1f590-1f3ff","🖕🏻":"1f595-1f3fb","🖕🏼":"1f595-1f3fc","🖕🏽":"1f595-1f3fd","🖕🏾":"1f595-1f3fe","🖕🏿":"1f595-1f3ff","🖖🏻":"1f596-1f3fb","🖖🏼":"1f596-1f3fc","🖖🏽":"1f596-1f3fd","🖖🏾":"1f596-1f3fe","🖖🏿":"1f596-1f3ff","🎅🏻":"1f385-1f3fb","🎅🏼":"1f385-1f3fc","🎅🏽":"1f385-1f3fd","🎅🏾":"1f385-1f3fe","🎅🏿":"1f385-1f3ff","🤘🏻":"1f918-1f3fb","🤘🏼":"1f918-1f3fc","🤘🏽":"1f918-1f3fd","🤘🏾":"1f918-1f3fe","🤘🏿":"1f918-1f3ff","🏋🏻":"1f3cb-1f3fb","🏋🏼":"1f3cb-1f3fc","🏋🏽":"1f3cb-1f3fd","🏋🏾":"1f3cb-1f3fe","🏋🏿":"1f3cb-1f3ff","🇦🇽":"1f1e6-1f1fd","🇹🇦":"1f1f9-1f1e6","🇮🇴":"1f1ee-1f1f4","🇧🇶":"1f1e7-1f1f6","🇨🇽":"1f1e8-1f1fd","🇨🇨":"1f1e8-1f1e8","🇬🇬":"1f1ec-1f1ec","🇮🇲":"1f1ee-1f1f2","🇾🇹":"1f1fe-1f1f9","🇳🇫":"1f1f3-1f1eb","🇵🇳":"1f1f5-1f1f3","🇧🇱":"1f1e7-1f1f1","🇵🇲":"1f1f5-1f1f2","🇬🇸":"1f1ec-1f1f8","🇹🇰":"1f1f9-1f1f0","🇧🇻":"1f1e7-1f1fb","🇭🇲":"1f1ed-1f1f2","🇸🇯":"1f1f8-1f1ef","🇺🇲":"1f1fa-1f1f2","🇮🇨":"1f1ee-1f1e8","🇪🇦":"1f1ea-1f1e6","🇨🇵":"1f1e8-1f1f5","🇩🇬":"1f1e9-1f1ec","🇦🇸":"1f1e6-1f1f8","🇦🇶":"1f1e6-1f1f6","🇻🇬":"1f1fb-1f1ec","🇨🇰":"1f1e8-1f1f0","🇨🇼":"1f1e8-1f1fc","🇪🇺":"1f1ea-1f1fa","🇬🇫":"1f1ec-1f1eb","🇹🇫":"1f1f9-1f1eb","🇬🇵":"1f1ec-1f1f5","🇲🇶":"1f1f2-1f1f6","🇲🇵":"1f1f2-1f1f5","🇷🇪":"1f1f7-1f1ea","🇸🇽":"1f1f8-1f1fd","🇸🇸":"1f1f8-1f1f8","🇹🇨":"1f1f9-1f1e8","🇲🇫":"1f1f2-1f1eb","🕵🏻":"1f575-1f3fb","🕵🏼":"1f575-1f3fc","🕵🏽":"1f575-1f3fd","🕵🏾":"1f575-1f3fe","🕵🏿":"1f575-1f3ff","🏂🏻":"1f3c2-1f3fb","👨💻":"1f468-1f4bb","👩💻":"1f469-1f4bb","👨🏫":"1f468-1f3eb","👩🏫":"1f469-1f3eb","👨🎓":"1f468-1f393","👩🎓":"1f469-1f393","👨🎤":"1f468-1f3a4","👩🎤":"1f469-1f3a4","👨🔬":"1f468-1f52c","👩🔬":"1f469-1f52c","👨💼":"1f468-1f4bc","👩💼":"1f469-1f4bc","👨🔧":"1f468-1f527","👩🔧":"1f469-1f527","👨🏭":"1f468-1f3ed","👩🏭":"1f469-1f3ed","👨🍳":"1f468-1f373","👩🍳":"1f469-1f373","👨🌾":"1f468-1f33e","👩🌾":"1f469-1f33e","🕴🏻":"1f574-1f3fb","🕴🏼":"1f574-1f3fc","🕴🏽":"1f574-1f3fd","🕴🏾":"1f574-1f3fe","🕴🏿":"1f574-1f3ff","🛌🏻":"1f6cc-1f3fb","🛌🏼":"1f6cc-1f3fc","🛌🏽":"1f6cc-1f3fd","🛌🏾":"1f6cc-1f3fe","🛌🏿":"1f6cc-1f3ff","👨👦":"1f468-1f466","👨👧":"1f468-1f467","👩👦":"1f469-1f466","👩👧":"1f469-1f467","👨🎨":"1f468-1f3a8","👩🎨":"1f469-1f3a8","👨🚀":"1f468-1f680","👩🚀":"1f469-1f680","👨🚒":"1f468-1f692","👩🚒":"1f469-1f692","🇺🇳":"1f1fa-1f1f3","🏂🏼":"1f3c2-1f3fc","🏂🏽":"1f3c2-1f3fd","🏂🏾":"1f3c2-1f3fe","🏂🏿":"1f3c2-1f3ff","🏌🏻":"1f3cc-1f3fb","🏌🏼":"1f3cc-1f3fc","🏌🏽":"1f3cc-1f3fd","🏌🏾":"1f3cc-1f3fe","🏌🏿":"1f3cc-1f3ff","🤟🏻":"1f91f-1f3fb","🤟🏼":"1f91f-1f3fc","🤟🏽":"1f91f-1f3fd","🤟🏾":"1f91f-1f3fe","🤟🏿":"1f91f-1f3ff","🤱🏻":"1f931-1f3fb","🤱🏼":"1f931-1f3fc","🤱🏽":"1f931-1f3fd","🤱🏾":"1f931-1f3fe","🤱🏿":"1f931-1f3ff","🤲🏻":"1f932-1f3fb","🤲🏼":"1f932-1f3fc","🤲🏽":"1f932-1f3fd","🤲🏾":"1f932-1f3fe","🤲🏿":"1f932-1f3ff","🧑🏻":"1f9d1-1f3fb","🧑🏼":"1f9d1-1f3fc","🧑🏽":"1f9d1-1f3fd","🧑🏾":"1f9d1-1f3fe","🧑🏿":"1f9d1-1f3ff","🧒🏻":"1f9d2-1f3fb","🧒🏼":"1f9d2-1f3fc","🧒🏽":"1f9d2-1f3fd","🧒🏾":"1f9d2-1f3fe","🧒🏿":"1f9d2-1f3ff","🧓🏻":"1f9d3-1f3fb","🧓🏼":"1f9d3-1f3fc","🧓🏽":"1f9d3-1f3fd","🧓🏾":"1f9d3-1f3fe","🧓🏿":"1f9d3-1f3ff","🧔🏻":"1f9d4-1f3fb","🧔🏼":"1f9d4-1f3fc","🧔🏽":"1f9d4-1f3fd","🧔🏾":"1f9d4-1f3fe","🧔🏿":"1f9d4-1f3ff","🧕🏻":"1f9d5-1f3fb","🧕🏼":"1f9d5-1f3fc","🧕🏽":"1f9d5-1f3fd","🧕🏾":"1f9d5-1f3fe","🧕🏿":"1f9d5-1f3ff","🧖🏻":"1f9d6-1f3fb","🧖🏼":"1f9d6-1f3fc","🧖🏽":"1f9d6-1f3fd","🧖🏾":"1f9d6-1f3fe","🧖🏿":"1f9d6-1f3ff","🧗🏻":"1f9d7-1f3fb","🧗🏼":"1f9d7-1f3fc","🧗🏽":"1f9d7-1f3fd","🧗🏾":"1f9d7-1f3fe","🧗🏿":"1f9d7-1f3ff","🧘🏻":"1f9d8-1f3fb","🧘🏼":"1f9d8-1f3fc","🧘🏽":"1f9d8-1f3fd","🧘🏾":"1f9d8-1f3fe","🧘🏿":"1f9d8-1f3ff","🧙🏻":"1f9d9-1f3fb","🧙🏼":"1f9d9-1f3fc","🧙🏽":"1f9d9-1f3fd","🧙🏾":"1f9d9-1f3fe","🧙🏿":"1f9d9-1f3ff","🧚🏻":"1f9da-1f3fb","🧚🏼":"1f9da-1f3fc","🧚🏽":"1f9da-1f3fd","🧚🏾":"1f9da-1f3fe","🧚🏿":"1f9da-1f3ff","🧛🏻":"1f9db-1f3fb","🧛🏼":"1f9db-1f3fc","🧛🏽":"1f9db-1f3fd","🧛🏾":"1f9db-1f3fe","🧛🏿":"1f9db-1f3ff","🧜🏻":"1f9dc-1f3fb","🧜🏼":"1f9dc-1f3fc","🧜🏽":"1f9dc-1f3fd","🧜🏾":"1f9dc-1f3fe","🧜🏿":"1f9dc-1f3ff","🧝🏻":"1f9dd-1f3fb","🧝🏼":"1f9dd-1f3fc","🧝🏽":"1f9dd-1f3fd","🧝🏾":"1f9dd-1f3fe","🧝🏿":"1f9dd-1f3ff","🅿️":"1f17f","🈂️":"1f202","🈷️":"1f237","🎞️":"1f39e","🎟️":"1f39f","🏋️":"1f3cb","🏌️":"1f3cc","🏍️":"1f3cd","🏎️":"1f3ce","🎖️":"1f396","🎗️":"1f397","🌶️":"1f336","🌧️":"1f327","🌨️":"1f328","🌩️":"1f329","🌪️":"1f32a","🌫️":"1f32b","🌬️":"1f32c","🐿️":"1f43f","🕷️":"1f577","🕸️":"1f578","🌡️":"1f321","🎙️":"1f399","🎚️":"1f39a","🎛️":"1f39b","🏳️":"1f3f3","🏵️":"1f3f5","🏷️":"1f3f7","📽️":"1f4fd","🕉️":"1f549","🕊️":"1f54a","🕯️":"1f56f","🕰️":"1f570","🕳️":"1f573","🕶️":"1f576","🕹️":"1f579","🖇️":"1f587","🖊️":"1f58a","🖋️":"1f58b","🖌️":"1f58c","🖍️":"1f58d","🖥️":"1f5a5","🖨️":"1f5a8","🖲️":"1f5b2","🖼️":"1f5bc","🗂️":"1f5c2","🗃️":"1f5c3","🗄️":"1f5c4","🗑️":"1f5d1","🗒️":"1f5d2","🗓️":"1f5d3","🗜️":"1f5dc","🗝️":"1f5dd","🗞️":"1f5de","🗡️":"1f5e1","🗣️":"1f5e3","🗨️":"1f5e8","🗯️":"1f5ef","🗳️":"1f5f3","🗺️":"1f5fa","🛠️":"1f6e0","🛡️":"1f6e1","🛢️":"1f6e2","🛰️":"1f6f0","🍽️":"1f37d","👁️":"1f441","🕴️":"1f574","🕵️":"1f575","🖐️":"1f590","🏔️":"1f3d4","🏕️":"1f3d5","🏖️":"1f3d6","🏗️":"1f3d7","🏘️":"1f3d8","🏙️":"1f3d9","🏚️":"1f3da","🏛️":"1f3db","🏜️":"1f3dc","🏝️":"1f3dd","🏞️":"1f3de","🏟️":"1f3df","🛋️":"1f6cb","🛍️":"1f6cd","🛎️":"1f6ce","🛏️":"1f6cf","🛣️":"1f6e3","🛤️":"1f6e4","🛥️":"1f6e5","🛩️":"1f6e9","🛳️":"1f6f3","☝🏻":"261d-1f3fb","☝🏼":"261d-1f3fc","☝🏽":"261d-1f3fd","☝🏾":"261d-1f3fe","☝🏿":"261d-1f3ff","✌🏻":"270c-1f3fb","✌🏼":"270c-1f3fc","✌🏽":"270c-1f3fd","✌🏾":"270c-1f3fe","✌🏿":"270c-1f3ff","✊🏻":"270a-1f3fb","✊🏼":"270a-1f3fc","✊🏽":"270a-1f3fd","✊🏾":"270a-1f3fe","✊🏿":"270a-1f3ff","✋🏻":"270b-1f3fb","✋🏼":"270b-1f3fc","✋🏽":"270b-1f3fd","✋🏾":"270b-1f3fe","✋🏿":"270b-1f3ff","✍🏻":"270d-1f3fb","✍🏼":"270d-1f3fc","✍🏽":"270d-1f3fd","✍🏾":"270d-1f3fe","✍🏿":"270d-1f3ff","🌤️":"1f324","🌥️":"1f325","🌦️":"1f326","🖱️":"1f5b1","⛹🏻":"26f9-1f3fb","⛹🏼":"26f9-1f3fc","⛹🏽":"26f9-1f3fd","⛹🏾":"26f9-1f3fe","⛹🏿":"26f9-1f3ff","🅰️":"1f170","🅱️":"1f171","🅾️":"1f17e","🀄️":"1f004","🈚️":"1f21a","🈯️":"1f22f","🌍️":"1f30d","🌎️":"1f30e","🌏️":"1f30f","🌕️":"1f315","🌜️":"1f31c","🍸️":"1f378","🎓️":"1f393","🎧️":"1f3a7","🎬️":"1f3ac","🎭️":"1f3ad","🎮️":"1f3ae","🏂️":"1f3c2","🏄️":"1f3c4","🏆️":"1f3c6","🏊️":"1f3ca","🏠️":"1f3e0","🏭️":"1f3ed","🐈️":"1f408","🐕️":"1f415","🐟️":"1f41f","🐦️":"1f426","👂️":"1f442","👆️":"1f446","👇️":"1f447","👈️":"1f448","👉️":"1f449","👍️":"1f44d","👎️":"1f44e","👓️":"1f453","👪️":"1f46a","👽️":"1f47d","💣️":"1f4a3","💰️":"1f4b0","💳️":"1f4b3","💻️":"1f4bb","💿️":"1f4bf","📋️":"1f4cb","📚️":"1f4da","📟️":"1f4df","📤️":"1f4e4","📥️":"1f4e5","📦️":"1f4e6","📪️":"1f4ea","📫️":"1f4eb","📬️":"1f4ec","📭️":"1f4ed","📷️":"1f4f7","📹️":"1f4f9","📺️":"1f4fa","📻️":"1f4fb","🔈️":"1f508","🔍️":"1f50d","🔒️":"1f512","🔓️":"1f513","🕐️":"1f550","🕑️":"1f551","🕒️":"1f552","🕓️":"1f553","🕔️":"1f554","🕕️":"1f555","🕖️":"1f556","🕗️":"1f557","🕘️":"1f558","🕙️":"1f559","🕚️":"1f55a","🕛️":"1f55b","🕜️":"1f55c","🕝️":"1f55d","🕞️":"1f55e","🕟️":"1f55f","🕠️":"1f560","🕡️":"1f561","🕢️":"1f562","🕣️":"1f563","🕤️":"1f564","🕥️":"1f565","🕦️":"1f566","🕧️":"1f567","😐️":"1f610","🚇️":"1f687","🚍️":"1f68d","🚑️":"1f691","🚔️":"1f694","🚘️":"1f698","🚭️":"1f6ad","🚲️":"1f6b2","🚹️":"1f6b9","🚺️":"1f6ba","🚼️":"1f6bc","#⃣":"0023-20e3","0⃣":"0030-20e3","1⃣":"0031-20e3","2⃣":"0032-20e3","3⃣":"0033-20e3","4⃣":"0034-20e3","5⃣":"0035-20e3","6⃣":"0036-20e3","7⃣":"0037-20e3","8⃣":"0038-20e3","9⃣":"0039-20e3","©️":"00a9","®️":"00ae","‼️":"203c","⁉️":"2049","™️":"2122",ℹ️:"2139","↔️":"2194","↕️":"2195","↖️":"2196","↗️":"2197","↘️":"2198","↙️":"2199","↩️":"21a9","↪️":"21aa","Ⓜ️":"24c2","▪️":"25aa","▫️":"25ab","▶️":"25b6","◀️":"25c0","◻️":"25fb","◼️":"25fc","☀️":"2600","☁️":"2601","☎️":"260e","☑️":"2611","☝️":"261d","☺️":"263a","♠️":"2660","♣️":"2663","♥️":"2665","♦️":"2666","♨️":"2668","♻️":"267b","⚠️":"26a0","✂️":"2702","✈️":"2708","✉️":"2709","✌️":"270c","✏️":"270f","✒️":"2712","✔️":"2714","✖️":"2716","✳️":"2733","✴️":"2734","❄️":"2744","❇️":"2747","❤️":"2764","➡️":"27a1","⤴️":"2934","⤵️":"2935","⬅️":"2b05","⬆️":"2b06","⬇️":"2b07","〰️":"3030","〽️":"303d","㊗️":"3297","㊙️":"3299","✝️":"271d","⌨️":"2328","✍️":"270d","*⃣":"002a-20e3","⏏️":"23cf","⏭️":"23ed","⏮️":"23ee","⏯️":"23ef","⏱️":"23f1","⏲️":"23f2","⏸️":"23f8","⏹️":"23f9","⏺️":"23fa","☂️":"2602","☃️":"2603","☄️":"2604","☘️":"2618","☠️":"2620","☢️":"2622","☣️":"2623","☦️":"2626","☪️":"262a","☮️":"262e","☯️":"262f","☸️":"2638","☹️":"2639","⚒️":"2692","⚔️":"2694","⚖️":"2696","⚗️":"2697","⚙️":"2699","⚛️":"269b","⚜️":"269c","⚰️":"26b0","⚱️":"26b1","⛈️":"26c8","⛏️":"26cf","⛑️":"26d1","⛓️":"26d3","⛩️":"26e9","⛰️":"26f0","⛱️":"26f1","⛴️":"26f4","⛷️":"26f7","⛸️":"26f8","⛹️":"26f9","✡️":"2721","❣️":"2763","#️":"0023","*️":"002a","0️":"0030","1️":"0031","2️":"0032","3️":"0033","4️":"0034","5️":"0035","6️":"0036","7️":"0037","8️":"0038","9️":"0039","♀️":"2640","♂️":"2642","⚕️":"2695","⌚️":"231a","⌛️":"231b","⏩️":"23e9","⏪️":"23ea","⏳️":"23f3","◽️":"25fd","◾️":"25fe","☔️":"2614","☕️":"2615","♈️":"2648","♉️":"2649","♊️":"264a","♋️":"264b","♌️":"264c","♍️":"264d","♎️":"264e","♏️":"264f","♐️":"2650","♑️":"2651","♒️":"2652","♓️":"2653","♿️":"267f","⚓️":"2693","⚡️":"26a1","⚪️":"26aa","⚫️":"26ab","⚽️":"26bd","⚾️":"26be","⛄️":"26c4","⛅️":"26c5","⛔️":"26d4","⛪️":"26ea","⛲️":"26f2","⛳️":"26f3","⛵️":"26f5","⛺️":"26fa","⛽️":"26fd","❓️":"2753","❗️":"2757","⬛️":"2b1b","⬜️":"2b1c","⭐️":"2b50","⭕️":"2b55","🥉":"1f949","🥈":"1f948","🥇":"1f947","🤺":"1f93a","🥅":"1f945","🤾":"1f93e","🇿":"1f1ff","🤽":"1f93d","🥋":"1f94b","🥊":"1f94a","🤼":"1f93c","🤹":"1f939","🤸":"1f938","🛶":"1f6f6","🛵":"1f6f5","🛴":"1f6f4","🛒":"1f6d2","🀄":"1f004","🃏":"1f0cf","🅰":"1f170","🅱":"1f171","🅾":"1f17e","🅿":"1f17f","🛑":"1f6d1","🆎":"1f18e","🆑":"1f191","🇾":"1f1fe","🆒":"1f192","🆓":"1f193","🆔":"1f194","🆕":"1f195","🆖":"1f196","🆗":"1f197","🆘":"1f198","🥄":"1f944","🆙":"1f199","🆚":"1f19a","🥂":"1f942","🥃":"1f943","🈁":"1f201","🈂":"1f202","🈚":"1f21a","🈯":"1f22f","🥙":"1f959","🈲":"1f232","🈳":"1f233","🈴":"1f234","🈵":"1f235","🈶":"1f236","🥘":"1f958","🈷":"1f237","🈸":"1f238","🈹":"1f239","🥗":"1f957","🈺":"1f23a","🉐":"1f250","🉑":"1f251","🌀":"1f300","🥖":"1f956","🌁":"1f301","🌂":"1f302","🌃":"1f303","🌄":"1f304","🌅":"1f305","🌆":"1f306","🥕":"1f955","🌇":"1f307","🌈":"1f308","🥔":"1f954","🌉":"1f309","🌊":"1f30a","🌋":"1f30b","🌌":"1f30c","🌏":"1f30f","🌑":"1f311","🥓":"1f953","🌓":"1f313","🌔":"1f314","🌕":"1f315","🌙":"1f319","🌛":"1f31b","🌟":"1f31f","🥒":"1f952","🌠":"1f320","🌰":"1f330","🥑":"1f951","🌱":"1f331","🌴":"1f334","🌵":"1f335","🌷":"1f337","🌸":"1f338","🌹":"1f339","🌺":"1f33a","🌻":"1f33b","🌼":"1f33c","🌽":"1f33d","🥐":"1f950","🌾":"1f33e","🌿":"1f33f","🍀":"1f340","🍁":"1f341","🍂":"1f342","🍃":"1f343","🍄":"1f344","🍅":"1f345","🍆":"1f346","🍇":"1f347","🍈":"1f348","🍉":"1f349","🍊":"1f34a","🥀":"1f940","🍌":"1f34c","🍍":"1f34d","🍎":"1f34e","🍏":"1f34f","🍑":"1f351","🍒":"1f352","🍓":"1f353","🦏":"1f98f","🍔":"1f354","🍕":"1f355","🍖":"1f356","🦎":"1f98e","🍗":"1f357","🍘":"1f358","🍙":"1f359","🦍":"1f98d","🍚":"1f35a","🍛":"1f35b","🦌":"1f98c","🍜":"1f35c","🍝":"1f35d","🍞":"1f35e","🍟":"1f35f","🦋":"1f98b","🍠":"1f360","🍡":"1f361","🦊":"1f98a","🍢":"1f362","🍣":"1f363","🦉":"1f989","🍤":"1f364","🍥":"1f365","🦈":"1f988","🍦":"1f366","🦇":"1f987","🍧":"1f367","🇽":"1f1fd","🍨":"1f368","🦆":"1f986","🍩":"1f369","🦅":"1f985","🍪":"1f36a","🖤":"1f5a4","🍫":"1f36b","🍬":"1f36c","🍭":"1f36d","🍮":"1f36e","🍯":"1f36f","🤞":"1f91e","🍰":"1f370","🍱":"1f371","🍲":"1f372","🤝":"1f91d","🍳":"1f373","🍴":"1f374","🍵":"1f375","🍶":"1f376","🍷":"1f377","🍸":"1f378","🍹":"1f379","🍺":"1f37a","🍻":"1f37b","🎀":"1f380","🎁":"1f381","🎂":"1f382","🎃":"1f383","🤛":"1f91b","🤜":"1f91c","🎄":"1f384","🎅":"1f385","🎆":"1f386","🤚":"1f91a","🎇":"1f387","🎈":"1f388","🎉":"1f389","🎊":"1f38a","🎋":"1f38b","🎌":"1f38c","🤙":"1f919","🎍":"1f38d","🕺":"1f57a","🎎":"1f38e","🤳":"1f933","🎏":"1f38f","🤰":"1f930","🎐":"1f390","🤦":"1f926","🤷":"1f937","🎑":"1f391","🎒":"1f392","🎓":"1f393","🎠":"1f3a0","🎡":"1f3a1","🎢":"1f3a2","🎣":"1f3a3","🎤":"1f3a4","🎥":"1f3a5","🎦":"1f3a6","🎧":"1f3a7","🤶":"1f936","🎨":"1f3a8","🤵":"1f935","🎩":"1f3a9","🎪":"1f3aa","🤴":"1f934","🎫":"1f3ab","🎬":"1f3ac","🎭":"1f3ad","🤧":"1f927","🎮":"1f3ae","🎯":"1f3af","🎰":"1f3b0","🎱":"1f3b1","🎲":"1f3b2","🎳":"1f3b3","🎴":"1f3b4","🤥":"1f925","🎵":"1f3b5","🎶":"1f3b6","🎷":"1f3b7","🤤":"1f924","🎸":"1f3b8","🎹":"1f3b9","🎺":"1f3ba","🤣":"1f923","🎻":"1f3bb","🎼":"1f3bc","🎽":"1f3bd","🤢":"1f922","🎾":"1f3be","🎿":"1f3bf","🏀":"1f3c0","🏁":"1f3c1","🤡":"1f921","🏂":"1f3c2","🏃":"1f3c3","🏄":"1f3c4","🏆":"1f3c6","🏈":"1f3c8","🏊":"1f3ca","🏠":"1f3e0","🏡":"1f3e1","🏢":"1f3e2","🏣":"1f3e3","🏥":"1f3e5","🏦":"1f3e6","🏧":"1f3e7","🏨":"1f3e8","🏩":"1f3e9","🏪":"1f3ea","🏫":"1f3eb","🏬":"1f3ec","🤠":"1f920","🏭":"1f3ed","🏮":"1f3ee","🏯":"1f3ef","🏰":"1f3f0","🐌":"1f40c","🐍":"1f40d","🐎":"1f40e","🐑":"1f411","🐒":"1f412","🐔":"1f414","🐗":"1f417","🐘":"1f418","🐙":"1f419","🐚":"1f41a","🐛":"1f41b","🐜":"1f41c","🐝":"1f41d","🐞":"1f41e","🐟":"1f41f","🐠":"1f420","🐡":"1f421","🐢":"1f422","🐣":"1f423","🐤":"1f424","🐥":"1f425","🐦":"1f426","🐧":"1f427","🐨":"1f428","🐩":"1f429","🐫":"1f42b","🐬":"1f42c","🐭":"1f42d","🐮":"1f42e","🐯":"1f42f","🐰":"1f430","🐱":"1f431","🐲":"1f432","🐳":"1f433","🐴":"1f434","🐵":"1f435","🐶":"1f436","🐷":"1f437","🐸":"1f438","🐹":"1f439","🐺":"1f43a","🐻":"1f43b","🐼":"1f43c","🐽":"1f43d","🐾":"1f43e","👀":"1f440","👂":"1f442","👃":"1f443","👄":"1f444","👅":"1f445","👆":"1f446","👇":"1f447","👈":"1f448","👉":"1f449","👊":"1f44a","👋":"1f44b","👌":"1f44c","👍":"1f44d","👎":"1f44e","👏":"1f44f","👐":"1f450","👑":"1f451","👒":"1f452","👓":"1f453","👔":"1f454","👕":"1f455","👖":"1f456","👗":"1f457","👘":"1f458","👙":"1f459","👚":"1f45a","👛":"1f45b","👜":"1f45c","👝":"1f45d","👞":"1f45e","👟":"1f45f","👠":"1f460","👡":"1f461","👢":"1f462","👣":"1f463","👤":"1f464","👦":"1f466","👧":"1f467","👨":"1f468","👩":"1f469","👪":"1f46a","👫":"1f46b","👮":"1f46e","👯":"1f46f","👰":"1f470","👱":"1f471","👲":"1f472","👳":"1f473","👴":"1f474","👵":"1f475","👶":"1f476","👷":"1f477","👸":"1f478","👹":"1f479","👺":"1f47a","👻":"1f47b","👼":"1f47c","👽":"1f47d","👾":"1f47e","👿":"1f47f","💀":"1f480","📇":"1f4c7","💁":"1f481","💂":"1f482","💃":"1f483","💄":"1f484","💅":"1f485","📒":"1f4d2","💆":"1f486","📓":"1f4d3","💇":"1f487","📔":"1f4d4","💈":"1f488","📕":"1f4d5","💉":"1f489","📖":"1f4d6","💊":"1f48a","📗":"1f4d7","💋":"1f48b","📘":"1f4d8","💌":"1f48c","📙":"1f4d9","💍":"1f48d","📚":"1f4da","💎":"1f48e","📛":"1f4db","💏":"1f48f","📜":"1f4dc","💐":"1f490","📝":"1f4dd","💑":"1f491","📞":"1f4de","💒":"1f492","📟":"1f4df","📠":"1f4e0","💓":"1f493","📡":"1f4e1","📢":"1f4e2","💔":"1f494","📣":"1f4e3","📤":"1f4e4","💕":"1f495","📥":"1f4e5","📦":"1f4e6","💖":"1f496","📧":"1f4e7","📨":"1f4e8","💗":"1f497","📩":"1f4e9","📪":"1f4ea","💘":"1f498","📫":"1f4eb","📮":"1f4ee","💙":"1f499","📰":"1f4f0","📱":"1f4f1","💚":"1f49a","📲":"1f4f2","📳":"1f4f3","💛":"1f49b","📴":"1f4f4","📶":"1f4f6","💜":"1f49c","📷":"1f4f7","📹":"1f4f9","💝":"1f49d","📺":"1f4fa","📻":"1f4fb","💞":"1f49e","📼":"1f4fc","🔃":"1f503","💟":"1f49f","🔊":"1f50a","🔋":"1f50b","💠":"1f4a0","🔌":"1f50c","🔍":"1f50d","💡":"1f4a1","🔎":"1f50e","🔏":"1f50f","💢":"1f4a2","🔐":"1f510","🔑":"1f511","💣":"1f4a3","🔒":"1f512","🔓":"1f513","💤":"1f4a4","🔔":"1f514","🔖":"1f516","💥":"1f4a5","🔗":"1f517","🔘":"1f518","💦":"1f4a6","🔙":"1f519","🔚":"1f51a","💧":"1f4a7","🔛":"1f51b","🔜":"1f51c","💨":"1f4a8","🔝":"1f51d","🔞":"1f51e","💩":"1f4a9","🔟":"1f51f","💪":"1f4aa","🔠":"1f520","🔡":"1f521","💫":"1f4ab","🔢":"1f522","🔣":"1f523","💬":"1f4ac","🔤":"1f524","🔥":"1f525","💮":"1f4ae","🔦":"1f526","🔧":"1f527","💯":"1f4af","🔨":"1f528","🔩":"1f529","💰":"1f4b0","🔪":"1f52a","🔫":"1f52b","💱":"1f4b1","🔮":"1f52e","💲":"1f4b2","🔯":"1f52f","💳":"1f4b3","🔰":"1f530","🔱":"1f531","💴":"1f4b4","🔲":"1f532","🔳":"1f533","💵":"1f4b5","🔴":"1f534","🔵":"1f535","💸":"1f4b8","🔶":"1f536","🔷":"1f537","💹":"1f4b9","🔸":"1f538","🔹":"1f539","💺":"1f4ba","🔺":"1f53a","🔻":"1f53b","💻":"1f4bb","🔼":"1f53c","💼":"1f4bc","🔽":"1f53d","🕐":"1f550","💽":"1f4bd","🕑":"1f551","💾":"1f4be","🕒":"1f552","💿":"1f4bf","🕓":"1f553","📀":"1f4c0","🕔":"1f554","🕕":"1f555","📁":"1f4c1","🕖":"1f556","🕗":"1f557","📂":"1f4c2","🕘":"1f558","🕙":"1f559","📃":"1f4c3","🕚":"1f55a","🕛":"1f55b","📄":"1f4c4","🗻":"1f5fb","🗼":"1f5fc","📅":"1f4c5","🗽":"1f5fd","🗾":"1f5fe","📆":"1f4c6","🗿":"1f5ff","😁":"1f601","😂":"1f602","😃":"1f603","📈":"1f4c8","😄":"1f604","😅":"1f605","📉":"1f4c9","😆":"1f606","😉":"1f609","📊":"1f4ca","😊":"1f60a","😋":"1f60b","📋":"1f4cb","😌":"1f60c","😍":"1f60d","📌":"1f4cc","😏":"1f60f","😒":"1f612","📍":"1f4cd","😓":"1f613","😔":"1f614","📎":"1f4ce","😖":"1f616","😘":"1f618","📏":"1f4cf","😚":"1f61a","😜":"1f61c","📐":"1f4d0","😝":"1f61d","😞":"1f61e","📑":"1f4d1","😠":"1f620","😡":"1f621","😢":"1f622","😣":"1f623","😤":"1f624","😥":"1f625","😨":"1f628","😩":"1f629","😪":"1f62a","😫":"1f62b","😭":"1f62d","😰":"1f630","😱":"1f631","😲":"1f632","😳":"1f633","😵":"1f635","😷":"1f637","😸":"1f638","😹":"1f639","😺":"1f63a","😻":"1f63b","😼":"1f63c","😽":"1f63d","😾":"1f63e","😿":"1f63f","🙀":"1f640","🙅":"1f645","🙆":"1f646","🙇":"1f647","🙈":"1f648","🙉":"1f649","🙊":"1f64a","🙋":"1f64b","🙌":"1f64c","🙍":"1f64d","🙎":"1f64e","🙏":"1f64f","🚀":"1f680","🚃":"1f683","🚄":"1f684","🚅":"1f685","🚇":"1f687","🚉":"1f689","🚌":"1f68c","🚏":"1f68f","🚑":"1f691","🚒":"1f692","🚓":"1f693","🚕":"1f695","🚗":"1f697","🚙":"1f699","🚚":"1f69a","🚢":"1f6a2","🚤":"1f6a4","🚥":"1f6a5","🚧":"1f6a7","🚨":"1f6a8","🚩":"1f6a9","🚪":"1f6aa","🚫":"1f6ab","🚬":"1f6ac","🚭":"1f6ad","🚲":"1f6b2","🚶":"1f6b6","🚹":"1f6b9","🚺":"1f6ba","🚻":"1f6bb","🚼":"1f6bc","🚽":"1f6bd","🚾":"1f6be","🛀":"1f6c0","🤘":"1f918","😀":"1f600","😇":"1f607","😈":"1f608","😎":"1f60e","😐":"1f610","😑":"1f611","😕":"1f615","😗":"1f617","😙":"1f619","😛":"1f61b","😟":"1f61f","😦":"1f626","😧":"1f627","😬":"1f62c","😮":"1f62e","😯":"1f62f","😴":"1f634","😶":"1f636","🚁":"1f681","🚂":"1f682","🚆":"1f686","🚈":"1f688","🚊":"1f68a","🚍":"1f68d","🚎":"1f68e","🚐":"1f690","🚔":"1f694","🚖":"1f696","🚘":"1f698","🚛":"1f69b","🚜":"1f69c","🚝":"1f69d","🚞":"1f69e","🚟":"1f69f","🚠":"1f6a0","🚡":"1f6a1","🚣":"1f6a3","🚦":"1f6a6","🚮":"1f6ae","🚯":"1f6af","🚰":"1f6b0","🚱":"1f6b1","🚳":"1f6b3","🚴":"1f6b4","🚵":"1f6b5","🚷":"1f6b7","🚸":"1f6b8","🚿":"1f6bf","🛁":"1f6c1","🛂":"1f6c2","🛃":"1f6c3","🛄":"1f6c4","🛅":"1f6c5","🌍":"1f30d","🌎":"1f30e","🌐":"1f310","🌒":"1f312","🌖":"1f316","🌗":"1f317","🌘":"1f318","🌚":"1f31a","🌜":"1f31c","🌝":"1f31d","🌞":"1f31e","🌲":"1f332","🌳":"1f333","🍋":"1f34b","🍐":"1f350","🍼":"1f37c","🏇":"1f3c7","🏉":"1f3c9","🏤":"1f3e4","🐀":"1f400","🐁":"1f401","🐂":"1f402","🐃":"1f403","🐄":"1f404","🐅":"1f405","🐆":"1f406","🐇":"1f407","🐈":"1f408","🐉":"1f409","🐊":"1f40a","🐋":"1f40b","🐏":"1f40f","🐐":"1f410","🐓":"1f413","🐕":"1f415","🐖":"1f416","🐪":"1f42a","👥":"1f465","👬":"1f46c","👭":"1f46d","💭":"1f4ad","💶":"1f4b6","💷":"1f4b7","📬":"1f4ec","📭":"1f4ed","📯":"1f4ef","📵":"1f4f5","🔀":"1f500","🔁":"1f501","🔂":"1f502","🔄":"1f504","🔅":"1f505","🔆":"1f506","🔇":"1f507","🔉":"1f509","🔕":"1f515","🔬":"1f52c","🔭":"1f52d","🕜":"1f55c","🕝":"1f55d","🕞":"1f55e","🕟":"1f55f","🕠":"1f560","🕡":"1f561","🕢":"1f562","🕣":"1f563","🕤":"1f564","🕥":"1f565","🕦":"1f566","🕧":"1f567","🔈":"1f508","🚋":"1f68b","🎞":"1f39e","🎟":"1f39f","🏅":"1f3c5","🏋":"1f3cb","🏌":"1f3cc","🏍":"1f3cd","🏎":"1f3ce","🎖":"1f396","🎗":"1f397","🌶":"1f336","🌧":"1f327","🌨":"1f328","🌩":"1f329","🌪":"1f32a","🌫":"1f32b","🌬":"1f32c","🐿":"1f43f","🕷":"1f577","🕸":"1f578","🌡":"1f321","🎙":"1f399","🎚":"1f39a","🎛":"1f39b","🏳":"1f3f3","🏴":"1f3f4","🏵":"1f3f5","🏷":"1f3f7","📸":"1f4f8","📽":"1f4fd","🕊":"1f54a","🕯":"1f56f","🕰":"1f570","🕳":"1f573","🕶":"1f576","🕹":"1f579","🖇":"1f587","🖊":"1f58a","🖋":"1f58b","🖌":"1f58c","🖍":"1f58d","🖥":"1f5a5","🖨":"1f5a8","🖲":"1f5b2","🖼":"1f5bc","🗂":"1f5c2","🗃":"1f5c3","🗄":"1f5c4","🗑":"1f5d1","🗒":"1f5d2","🗓":"1f5d3","🗜":"1f5dc","🗞":"1f5de","🗡":"1f5e1","🗣":"1f5e3","🗨":"1f5e8","🗯":"1f5ef","🗳":"1f5f3","🗺":"1f5fa","🛌":"1f6cc","🛠":"1f6e0","🛡":"1f6e1","🛢":"1f6e2","🛰":"1f6f0","🍽":"1f37d","👁":"1f441","🕴":"1f574","🕵":"1f575","🖐":"1f590","🖕":"1f595","🖖":"1f596","🙁":"1f641","🙂":"1f642","🏔":"1f3d4","🏕":"1f3d5","🏖":"1f3d6","🏗":"1f3d7","🏘":"1f3d8","🏙":"1f3d9","🏚":"1f3da","🏛":"1f3db","🏜":"1f3dc","🏝":"1f3dd","🏞":"1f3de","🏟":"1f3df","🛋":"1f6cb","🛍":"1f6cd","🛎":"1f6ce","🛏":"1f6cf","🛣":"1f6e3","🛤":"1f6e4","🛥":"1f6e5","🛩":"1f6e9","🛫":"1f6eb","🛬":"1f6ec","🛳":"1f6f3","🏻":"1f3fb","🏼":"1f3fc","🏽":"1f3fd","🏾":"1f3fe","🏿":"1f3ff","🌤":"1f324","🌥":"1f325","🌦":"1f326","🖱":"1f5b1","🙃":"1f643","🤑":"1f911","🤓":"1f913","🤗":"1f917","🙄":"1f644","🤔":"1f914","🤐":"1f910","🤒":"1f912","🤕":"1f915","🤖":"1f916","🦁":"1f981","🦄":"1f984","🦂":"1f982","🦀":"1f980","🦃":"1f983","🧀":"1f9c0","🌭":"1f32d","🌮":"1f32e","🌯":"1f32f","🍿":"1f37f","🍾":"1f37e","🏹":"1f3f9","🏺":"1f3fa","🛐":"1f6d0","🕋":"1f54b","🕌":"1f54c","🕍":"1f54d","🕎":"1f54e","📿":"1f4ff","🏏":"1f3cf","🏐":"1f3d0","🏑":"1f3d1","🏒":"1f3d2","🏓":"1f3d3","🏸":"1f3f8","🥁":"1f941","🦐":"1f990","🦑":"1f991","🥚":"1f95a","🥛":"1f95b","🥜":"1f95c","🥝":"1f95d","🥞":"1f95e","🇼":"1f1fc","🇻":"1f1fb","🇺":"1f1fa","🇹":"1f1f9","🇸":"1f1f8","🇷":"1f1f7","🇶":"1f1f6","🇵":"1f1f5","🇴":"1f1f4","🇳":"1f1f3","🇲":"1f1f2","🇱":"1f1f1","🇰":"1f1f0","🇯":"1f1ef","🇮":"1f1ee","🇭":"1f1ed","🇬":"1f1ec","🇫":"1f1eb","🇪":"1f1ea","🇩":"1f1e9","🇨":"1f1e8","🇧":"1f1e7","🇦":"1f1e6","🛷":"1f6f7","🛸":"1f6f8","🤟":"1f91f","🤨":"1f928","🤩":"1f929","🤪":"1f92a","🤫":"1f92b","🤬":"1f92c","🤭":"1f92d","🤮":"1f92e","🤯":"1f92f","🤱":"1f931","🤲":"1f932","🥌":"1f94c","🥟":"1f95f","🥠":"1f960","🥡":"1f961","🥢":"1f962","🥣":"1f963","🥤":"1f964","🥥":"1f965","🥦":"1f966","🥧":"1f967","🥨":"1f968","🥩":"1f969","🥪":"1f96a","🥫":"1f96b","🦒":"1f992","🦓":"1f993","🦔":"1f994","🦕":"1f995","🦖":"1f996","🦗":"1f997","🧐":"1f9d0","🧑":"1f9d1","🧒":"1f9d2","🧓":"1f9d3","🧔":"1f9d4","🧕":"1f9d5","🧖":"1f9d6","🧗":"1f9d7","🧘":"1f9d8","🧙":"1f9d9","🧚":"1f9da","🧛":"1f9db","🧜":"1f9dc","🧝":"1f9dd","🧞":"1f9de","🧟":"1f9df","🧠":"1f9e0","🧡":"1f9e1","🧢":"1f9e2","🧣":"1f9e3","🧤":"1f9e4","🧥":"1f9e5","🧦":"1f9e6","⌚":"231a","⌛":"231b","⏩":"23e9","⏪":"23ea","⏫":"23eb","⏬":"23ec","⏰":"23f0","⏳":"23f3","Ⓜ":"24c2","◽":"25fd","◾":"25fe","☀":"2600","☁":"2601","☎":"260e","☔":"2614","☕":"2615","☝":"261d","☺":"263a","♈":"2648","♉":"2649","♊":"264a","♋":"264b","♌":"264c","♍":"264d","♎":"264e","♏":"264f","♐":"2650","♑":"2651","♒":"2652","♓":"2653","♠":"2660","♣":"2663","♥":"2665","♦":"2666","♨":"2668","♻":"267b","♿":"267f","⚓":"2693","⚡":"26a1","⚪":"26aa","⚫":"26ab","⚽":"26bd","⚾":"26be","⛄":"26c4","⛅":"26c5","⛎":"26ce","⛔":"26d4","⛪":"26ea","⛲":"26f2","⛳":"26f3","⛵":"26f5","⛺":"26fa","⛽":"26fd","✂":"2702","✅":"2705","✈":"2708","✉":"2709","✊":"270a","✋":"270b","✌":"270c","✏":"270f","✒":"2712","✨":"2728","✳":"2733","✴":"2734","❄":"2744","❇":"2747","❌":"274c","❎":"274e","❓":"2753","❔":"2754","❕":"2755","❗":"2757","❤":"2764","➕":"2795","➖":"2796","➗":"2797","➰":"27b0","⬛":"2b1b","⬜":"2b1c","⭐":"2b50","⭕":"2b55","〽":"303d","㊗":"3297","㊙":"3299","➿":"27bf","⌨":"2328","✍":"270d","⏱":"23f1","⏲":"23f2","☂":"2602","☃":"2603","☄":"2604","☘":"2618","☠":"2620","☹":"2639","⚒":"2692","⚔":"2694","⚖":"2696","⚗":"2697","⚙":"2699","⚜":"269c","⚰":"26b0","⚱":"26b1","⛈":"26c8","⛏":"26cf","⛑":"26d1","⛓":"26d3","⛩":"26e9","⛰":"26f0","⛱":"26f1","⛴":"26f4","⛷":"26f7","⛸":"26f8","⛹":"26f9","❣":"2763"},e.jsEscapeMapGreedy={"👩❤💋👩":"1f469-2764-1f48b-1f469","👨❤💋👨":"1f468-2764-1f48b-1f468","👩❤💋👨":"1f469-2764-1f48b-1f468","👩❤👩":"1f469-2764-1f469","👨❤👨":"1f468-2764-1f468","🏌🏻♂":"1f3cc-1f3fb-2642","🏌🏼♂":"1f3cc-1f3fc-2642","🏌🏽♂":"1f3cc-1f3fd-2642","🏌🏾♂":"1f3cc-1f3fe-2642","🏌🏿♂":"1f3cc-1f3ff-2642","🏌🏻♀":"1f3cc-1f3fb-2640","🏌🏼♀":"1f3cc-1f3fc-2640","🏌🏽♀":"1f3cc-1f3fd-2640","🏌🏾♀":"1f3cc-1f3fe-2640","🏌🏿♀":"1f3cc-1f3ff-2640","👨🏻⚖":"1f468-1f3fb-2696","👨🏼⚖":"1f468-1f3fc-2696","👨🏽⚖":"1f468-1f3fd-2696","👨🏾⚖":"1f468-1f3fe-2696","👨🏿⚖":"1f468-1f3ff-2696","👩🏻⚖":"1f469-1f3fb-2696","👩🏼⚖":"1f469-1f3fc-2696","👩🏽⚖":"1f469-1f3fd-2696","👩🏾⚖":"1f469-1f3fe-2696","👩🏿⚖":"1f469-1f3ff-2696","👨🏻✈":"1f468-1f3fb-2708","👨🏼✈":"1f468-1f3fc-2708","👨🏽✈":"1f468-1f3fd-2708","👨🏾✈":"1f468-1f3fe-2708","👨🏿✈":"1f468-1f3ff-2708","👩🏻✈":"1f469-1f3fb-2708","👩🏼✈":"1f469-1f3fc-2708","👩🏽✈":"1f469-1f3fd-2708","👩🏾✈":"1f469-1f3fe-2708","👩🏿✈":"1f469-1f3ff-2708","👩❤👨":"1f469-2764-1f468","👨🏻⚕":"1f468-1f3fb-2695","👨🏼⚕":"1f468-1f3fc-2695","👨🏽⚕":"1f468-1f3fd-2695","👨🏾⚕":"1f468-1f3fe-2695","👨🏿⚕":"1f468-1f3ff-2695","👩🏻⚕":"1f469-1f3fb-2695","👩🏼⚕":"1f469-1f3fc-2695","👩🏽⚕":"1f469-1f3fd-2695","👩🏾⚕":"1f469-1f3fe-2695","👩🏿⚕":"1f469-1f3ff-2695","👮🏻♀":"1f46e-1f3fb-2640","👮🏻♂":"1f46e-1f3fb-2642","👮🏼♀":"1f46e-1f3fc-2640","👮🏼♂":"1f46e-1f3fc-2642","👮🏽♀":"1f46e-1f3fd-2640","👮🏽♂":"1f46e-1f3fd-2642","👮🏾♀":"1f46e-1f3fe-2640","👮🏾♂":"1f46e-1f3fe-2642","👮🏿♀":"1f46e-1f3ff-2640","👮🏿♂":"1f46e-1f3ff-2642","👱🏻♀":"1f471-1f3fb-2640","👱🏻♂":"1f471-1f3fb-2642","👱🏼♀":"1f471-1f3fc-2640","👱🏼♂":"1f471-1f3fc-2642","👱🏽♀":"1f471-1f3fd-2640","👱🏽♂":"1f471-1f3fd-2642","👱🏾♀":"1f471-1f3fe-2640","👱🏾♂":"1f471-1f3fe-2642","👱🏿♀":"1f471-1f3ff-2640","👱🏿♂":"1f471-1f3ff-2642","👳🏻♀":"1f473-1f3fb-2640","👳🏻♂":"1f473-1f3fb-2642","👳🏼♀":"1f473-1f3fc-2640","👳🏼♂":"1f473-1f3fc-2642","👳🏽♀":"1f473-1f3fd-2640","👳🏽♂":"1f473-1f3fd-2642","👳🏾♀":"1f473-1f3fe-2640","👳🏾♂":"1f473-1f3fe-2642","👳🏿♀":"1f473-1f3ff-2640","👳🏿♂":"1f473-1f3ff-2642","👷🏻♀":"1f477-1f3fb-2640","👷🏻♂":"1f477-1f3fb-2642","👷🏼♀":"1f477-1f3fc-2640","👷🏼♂":"1f477-1f3fc-2642","👷🏽♀":"1f477-1f3fd-2640","👷🏽♂":"1f477-1f3fd-2642","👷🏾♀":"1f477-1f3fe-2640","👷🏾♂":"1f477-1f3fe-2642","👷🏿♀":"1f477-1f3ff-2640","👷🏿♂":"1f477-1f3ff-2642","💂🏻♀":"1f482-1f3fb-2640","💂🏻♂":"1f482-1f3fb-2642","💂🏼♀":"1f482-1f3fc-2640","💂🏼♂":"1f482-1f3fc-2642","💂🏽♀":"1f482-1f3fd-2640","💂🏽♂":"1f482-1f3fd-2642","💂🏾♀":"1f482-1f3fe-2640","💂🏾♂":"1f482-1f3fe-2642","💂🏿♀":"1f482-1f3ff-2640","💂🏿♂":"1f482-1f3ff-2642","🕵🏻♀":"1f575-1f3fb-2640","🕵🏻♂":"1f575-1f3fb-2642","🕵🏼♀":"1f575-1f3fc-2640","🕵🏼♂":"1f575-1f3fc-2642","🕵🏽♀":"1f575-1f3fd-2640","🕵🏽♂":"1f575-1f3fd-2642","🕵🏾♀":"1f575-1f3fe-2640","🕵🏾♂":"1f575-1f3fe-2642","🕵🏿♀":"1f575-1f3ff-2640","🕵🏿♂":"1f575-1f3ff-2642","🏃🏻♀":"1f3c3-1f3fb-2640","🏃🏻♂":"1f3c3-1f3fb-2642","🏃🏼♀":"1f3c3-1f3fc-2640","🏃🏼♂":"1f3c3-1f3fc-2642","🏃🏽♀":"1f3c3-1f3fd-2640","🏃🏽♂":"1f3c3-1f3fd-2642","🏃🏾♀":"1f3c3-1f3fe-2640","🏃🏾♂":"1f3c3-1f3fe-2642","🏃🏿♀":"1f3c3-1f3ff-2640","🏃🏿♂":"1f3c3-1f3ff-2642","🏄🏻♀":"1f3c4-1f3fb-2640","🏄🏻♂":"1f3c4-1f3fb-2642","🏄🏼♀":"1f3c4-1f3fc-2640","🏄🏼♂":"1f3c4-1f3fc-2642","🏄🏽♀":"1f3c4-1f3fd-2640","🏄🏽♂":"1f3c4-1f3fd-2642","🏄🏾♀":"1f3c4-1f3fe-2640","🏄🏾♂":"1f3c4-1f3fe-2642","🏄🏿♀":"1f3c4-1f3ff-2640","🏄🏿♂":"1f3c4-1f3ff-2642","🏊🏻♀":"1f3ca-1f3fb-2640","🏊🏻♂":"1f3ca-1f3fb-2642","🏊🏼♀":"1f3ca-1f3fc-2640","🏊🏼♂":"1f3ca-1f3fc-2642","🏊🏽♀":"1f3ca-1f3fd-2640","🏊🏽♂":"1f3ca-1f3fd-2642","🏊🏾♀":"1f3ca-1f3fe-2640","🏊🏾♂":"1f3ca-1f3fe-2642","🏊🏿♀":"1f3ca-1f3ff-2640","🏊🏿♂":"1f3ca-1f3ff-2642","🏋🏻♀":"1f3cb-1f3fb-2640","🏋🏻♂":"1f3cb-1f3fb-2642","🏋🏼♀":"1f3cb-1f3fc-2640","🏋🏼♂":"1f3cb-1f3fc-2642","🏋🏽♀":"1f3cb-1f3fd-2640","🏋🏽♂":"1f3cb-1f3fd-2642","🏋🏾♀":"1f3cb-1f3fe-2640","🏋🏾♂":"1f3cb-1f3fe-2642","🏋🏿♀":"1f3cb-1f3ff-2640","🏋🏿♂":"1f3cb-1f3ff-2642","💆🏻♀":"1f486-1f3fb-2640","💆🏻♂":"1f486-1f3fb-2642","💆🏼♀":"1f486-1f3fc-2640","💆🏼♂":"1f486-1f3fc-2642","💆🏽♀":"1f486-1f3fd-2640","💆🏽♂":"1f486-1f3fd-2642","💆🏾♀":"1f486-1f3fe-2640","💆🏾♂":"1f486-1f3fe-2642","💆🏿♀":"1f486-1f3ff-2640","💆🏿♂":"1f486-1f3ff-2642","💇🏻♀":"1f487-1f3fb-2640","💇🏻♂":"1f487-1f3fb-2642","💇🏼♀":"1f487-1f3fc-2640","💇🏼♂":"1f487-1f3fc-2642","💇🏽♀":"1f487-1f3fd-2640","💇🏽♂":"1f487-1f3fd-2642","💇🏾♀":"1f487-1f3fe-2640","💇🏾♂":"1f487-1f3fe-2642","💇🏿♀":"1f487-1f3ff-2640","💇🏿♂":"1f487-1f3ff-2642","🚣🏻♀":"1f6a3-1f3fb-2640","🚣🏻♂":"1f6a3-1f3fb-2642","🚣🏼♀":"1f6a3-1f3fc-2640","🚣🏼♂":"1f6a3-1f3fc-2642","🚣🏽♀":"1f6a3-1f3fd-2640","🚣🏽♂":"1f6a3-1f3fd-2642","🚣🏾♀":"1f6a3-1f3fe-2640","🚣🏾♂":"1f6a3-1f3fe-2642","🚣🏿♀":"1f6a3-1f3ff-2640","🚣🏿♂":"1f6a3-1f3ff-2642","🚴🏻♀":"1f6b4-1f3fb-2640","🚴🏻♂":"1f6b4-1f3fb-2642","🚴🏼♀":"1f6b4-1f3fc-2640","🚴🏼♂":"1f6b4-1f3fc-2642","🚴🏽♀":"1f6b4-1f3fd-2640","🚴🏽♂":"1f6b4-1f3fd-2642","🚴🏾♀":"1f6b4-1f3fe-2640","🚴🏾♂":"1f6b4-1f3fe-2642","🚴🏿♀":"1f6b4-1f3ff-2640","🚴🏿♂":"1f6b4-1f3ff-2642","🚵🏻♀":"1f6b5-1f3fb-2640","🚵🏻♂":"1f6b5-1f3fb-2642","🚵🏼♀":"1f6b5-1f3fc-2640","🚵🏼♂":"1f6b5-1f3fc-2642","🚵🏽♀":"1f6b5-1f3fd-2640","🚵🏽♂":"1f6b5-1f3fd-2642","🚵🏾♀":"1f6b5-1f3fe-2640","🚵🏾♂":"1f6b5-1f3fe-2642","🚵🏿♀":"1f6b5-1f3ff-2640","🚵🏿♂":"1f6b5-1f3ff-2642","🚶🏻♀":"1f6b6-1f3fb-2640","🚶🏻♂":"1f6b6-1f3fb-2642","🚶🏼♀":"1f6b6-1f3fc-2640","🚶🏼♂":"1f6b6-1f3fc-2642","🚶🏽♀":"1f6b6-1f3fd-2640","🚶🏽♂":"1f6b6-1f3fd-2642","🚶🏾♀":"1f6b6-1f3fe-2640","🚶🏾♂":"1f6b6-1f3fe-2642","🚶🏿♀":"1f6b6-1f3ff-2640","🚶🏿♂":"1f6b6-1f3ff-2642","🤸🏻♀":"1f938-1f3fb-2640","🤸🏻♂":"1f938-1f3fb-2642","🤸🏼♀":"1f938-1f3fc-2640","🤸🏼♂":"1f938-1f3fc-2642","🤸🏽♀":"1f938-1f3fd-2640","🤸🏽♂":"1f938-1f3fd-2642","🤸🏾♀":"1f938-1f3fe-2640","🤸🏾♂":"1f938-1f3fe-2642","🤸🏿♀":"1f938-1f3ff-2640","🤸🏿♂":"1f938-1f3ff-2642","🤹🏻♀":"1f939-1f3fb-2640","🤹🏻♂":"1f939-1f3fb-2642","🤹🏼♀":"1f939-1f3fc-2640","🤹🏼♂":"1f939-1f3fc-2642","🤹🏽♀":"1f939-1f3fd-2640","🤹🏽♂":"1f939-1f3fd-2642","🤹🏾♀":"1f939-1f3fe-2640","🤹🏾♂":"1f939-1f3fe-2642","🤹🏿♀":"1f939-1f3ff-2640","🤹🏿♂":"1f939-1f3ff-2642","🤽🏻♀":"1f93d-1f3fb-2640","🤽🏻♂":"1f93d-1f3fb-2642","🤽🏼♀":"1f93d-1f3fc-2640","🤽🏼♂":"1f93d-1f3fc-2642","🤽🏽♀":"1f93d-1f3fd-2640","🤽🏽♂":"1f93d-1f3fd-2642","🤽🏾♀":"1f93d-1f3fe-2640","🤽🏾♂":"1f93d-1f3fe-2642","🤽🏿♀":"1f93d-1f3ff-2640","🤽🏿♂":"1f93d-1f3ff-2642","🤾🏻♀":"1f93e-1f3fb-2640","🤾🏻♂":"1f93e-1f3fb-2642","🤾🏼♀":"1f93e-1f3fc-2640","🤾🏼♂":"1f93e-1f3fc-2642","🤾🏽♀":"1f93e-1f3fd-2640","🤾🏽♂":"1f93e-1f3fd-2642","🤾🏾♀":"1f93e-1f3fe-2640","🤾🏾♂":"1f93e-1f3fe-2642","🤾🏿♀":"1f93e-1f3ff-2640","🤾🏿♂":"1f93e-1f3ff-2642","💁🏻♀":"1f481-1f3fb-2640","💁🏻♂":"1f481-1f3fb-2642","💁🏼♀":"1f481-1f3fc-2640","💁🏼♂":"1f481-1f3fc-2642","💁🏽♀":"1f481-1f3fd-2640","💁🏽♂":"1f481-1f3fd-2642","💁🏾♀":"1f481-1f3fe-2640","💁🏾♂":"1f481-1f3fe-2642","💁🏿♀":"1f481-1f3ff-2640","💁🏿♂":"1f481-1f3ff-2642","🙅🏻♀":"1f645-1f3fb-2640","🙅🏻♂":"1f645-1f3fb-2642","🙅🏼♀":"1f645-1f3fc-2640","🙅🏼♂":"1f645-1f3fc-2642","🙅🏽♀":"1f645-1f3fd-2640","🙅🏽♂":"1f645-1f3fd-2642","🙅🏾♀":"1f645-1f3fe-2640","🙅🏾♂":"1f645-1f3fe-2642","🙅🏿♀":"1f645-1f3ff-2640","🙅🏿♂":"1f645-1f3ff-2642","🙆🏻♀":"1f646-1f3fb-2640","🙆🏻♂":"1f646-1f3fb-2642","🙆🏼♀":"1f646-1f3fc-2640","🙆🏼♂":"1f646-1f3fc-2642","🙆🏽♀":"1f646-1f3fd-2640","🙆🏽♂":"1f646-1f3fd-2642","🙆🏾♀":"1f646-1f3fe-2640","🙆🏾♂":"1f646-1f3fe-2642","🙆🏿♀":"1f646-1f3ff-2640","🙆🏿♂":"1f646-1f3ff-2642","🙇🏻♀":"1f647-1f3fb-2640","🙇🏻♂":"1f647-1f3fb-2642","🙇🏼♀":"1f647-1f3fc-2640","🙇🏼♂":"1f647-1f3fc-2642","🙇🏽♀":"1f647-1f3fd-2640","🙇🏽♂":"1f647-1f3fd-2642","🙇🏾♀":"1f647-1f3fe-2640","🙇🏾♂":"1f647-1f3fe-2642","🙇🏿♀":"1f647-1f3ff-2640","🙇🏿♂":"1f647-1f3ff-2642","🙋🏻♀":"1f64b-1f3fb-2640","🙋🏻♂":"1f64b-1f3fb-2642","🙋🏼♀":"1f64b-1f3fc-2640","🙋🏼♂":"1f64b-1f3fc-2642","🙋🏽♀":"1f64b-1f3fd-2640","🙋🏽♂":"1f64b-1f3fd-2642","🙋🏾♀":"1f64b-1f3fe-2640","🙋🏾♂":"1f64b-1f3fe-2642","🙋🏿♀":"1f64b-1f3ff-2640","🙋🏿♂":"1f64b-1f3ff-2642","🙍🏻♀":"1f64d-1f3fb-2640","🙍🏻♂":"1f64d-1f3fb-2642","🙍🏼♀":"1f64d-1f3fc-2640","🙍🏼♂":"1f64d-1f3fc-2642","🙍🏽♀":"1f64d-1f3fd-2640","🙍🏽♂":"1f64d-1f3fd-2642","🙍🏾♀":"1f64d-1f3fe-2640","🙍🏾♂":"1f64d-1f3fe-2642","🙍🏿♀":"1f64d-1f3ff-2640","🙍🏿♂":"1f64d-1f3ff-2642","🙎🏻♀":"1f64e-1f3fb-2640","🙎🏻♂":"1f64e-1f3fb-2642","🙎🏼♀":"1f64e-1f3fc-2640","🙎🏼♂":"1f64e-1f3fc-2642","🙎🏽♀":"1f64e-1f3fd-2640","🙎🏽♂":"1f64e-1f3fd-2642","🙎🏾♀":"1f64e-1f3fe-2640","🙎🏾♂":"1f64e-1f3fe-2642","🙎🏿♀":"1f64e-1f3ff-2640","🙎🏿♂":"1f64e-1f3ff-2642","🤦🏻♀":"1f926-1f3fb-2640","🤦🏻♂":"1f926-1f3fb-2642","🤦🏼♀":"1f926-1f3fc-2640","🤦🏼♂":"1f926-1f3fc-2642","🤦🏽♀":"1f926-1f3fd-2640","🤦🏽♂":"1f926-1f3fd-2642","🤦🏾♀":"1f926-1f3fe-2640","🤦🏾♂":"1f926-1f3fe-2642","🤦🏿♀":"1f926-1f3ff-2640","🤦🏿♂":"1f926-1f3ff-2642","🤷🏻♀":"1f937-1f3fb-2640","🤷🏻♂":"1f937-1f3fb-2642","🤷🏼♀":"1f937-1f3fc-2640","🤷🏼♂":"1f937-1f3fc-2642","🤷🏽♀":"1f937-1f3fd-2640","🤷🏽♂":"1f937-1f3fd-2642","🤷🏾♀":"1f937-1f3fe-2640","🤷🏾♂":"1f937-1f3fe-2642","🤷🏿♀":"1f937-1f3ff-2640","🤷🏿♂":"1f937-1f3ff-2642","🧙🏻♀":"1f9d9-1f3fb-2640","🧙🏻♂":"1f9d9-1f3fb-2642","🧙🏼♀":"1f9d9-1f3fc-2640","🧙🏼♂":"1f9d9-1f3fc-2642","🧙🏽♀":"1f9d9-1f3fd-2640","🧙🏽♂":"1f9d9-1f3fd-2642","🧙🏾♀":"1f9d9-1f3fe-2640","🧙🏾♂":"1f9d9-1f3fe-2642","🧙🏿♀":"1f9d9-1f3ff-2640","🧙🏿♂":"1f9d9-1f3ff-2642","🧚🏻♀":"1f9da-1f3fb-2640","🧚🏻♂":"1f9da-1f3fb-2642","🧚🏼♀":"1f9da-1f3fc-2640","🧚🏼♂":"1f9da-1f3fc-2642","🧚🏽♀":"1f9da-1f3fd-2640","🧚🏽♂":"1f9da-1f3fd-2642","🧚🏾♀":"1f9da-1f3fe-2640","🧚🏾♂":"1f9da-1f3fe-2642","🧚🏿♀":"1f9da-1f3ff-2640","🧚🏿♂":"1f9da-1f3ff-2642","🧛🏻♀":"1f9db-1f3fb-2640","🧛🏻♂":"1f9db-1f3fb-2642","🧛🏼♀":"1f9db-1f3fc-2640","🧛🏼♂":"1f9db-1f3fc-2642","🧛🏽♀":"1f9db-1f3fd-2640","🧛🏽♂":"1f9db-1f3fd-2642","🧛🏾♀":"1f9db-1f3fe-2640","🧛🏾♂":"1f9db-1f3fe-2642","🧛🏿♀":"1f9db-1f3ff-2640","🧛🏿♂":"1f9db-1f3ff-2642","🧜🏻♀":"1f9dc-1f3fb-2640","🧜🏻♂":"1f9dc-1f3fb-2642","🧜🏼♀":"1f9dc-1f3fc-2640","🧜🏼♂":"1f9dc-1f3fc-2642","🧜🏽♀":"1f9dc-1f3fd-2640","🧜🏽♂":"1f9dc-1f3fd-2642","🧜🏾♀":"1f9dc-1f3fe-2640","🧜🏾♂":"1f9dc-1f3fe-2642","🧜🏿♀":"1f9dc-1f3ff-2640","🧜🏿♂":"1f9dc-1f3ff-2642","🧝🏻♀":"1f9dd-1f3fb-2640","🧝🏻♂":"1f9dd-1f3fb-2642","🧝🏼♀":"1f9dd-1f3fc-2640","🧝🏼♂":"1f9dd-1f3fc-2642","🧝🏽♀":"1f9dd-1f3fd-2640","🧝🏽♂":"1f9dd-1f3fd-2642","🧝🏾♀":"1f9dd-1f3fe-2640","🧝🏾♂":"1f9dd-1f3fe-2642","🧝🏿♀":"1f9dd-1f3ff-2640","🧝🏿♂":"1f9dd-1f3ff-2642","🧖🏻♀":"1f9d6-1f3fb-2640","🧖🏻♂":"1f9d6-1f3fb-2642","🧖🏼♀":"1f9d6-1f3fc-2640","🧖🏼♂":"1f9d6-1f3fc-2642","🧖🏽♀":"1f9d6-1f3fd-2640","🧖🏽♂":"1f9d6-1f3fd-2642","🧖🏾♀":"1f9d6-1f3fe-2640","🧖🏾♂":"1f9d6-1f3fe-2642","🧖🏿♀":"1f9d6-1f3ff-2640","🧖🏿♂":"1f9d6-1f3ff-2642","🧗🏻♀":"1f9d7-1f3fb-2640","🧗🏻♂":"1f9d7-1f3fb-2642","🧗🏼♀":"1f9d7-1f3fc-2640","🧗🏼♂":"1f9d7-1f3fc-2642","🧗🏽♀":"1f9d7-1f3fd-2640","🧗🏽♂":"1f9d7-1f3fd-2642","🧗🏾♀":"1f9d7-1f3fe-2640","🧗🏾♂":"1f9d7-1f3fe-2642","🧗🏿♀":"1f9d7-1f3ff-2640","🧗🏿♂":"1f9d7-1f3ff-2642","🧘🏻♀":"1f9d8-1f3fb-2640","🧘🏻♂":"1f9d8-1f3fb-2642","🧘🏼♀":"1f9d8-1f3fc-2640","🧘🏼♂":"1f9d8-1f3fc-2642","🧘🏽♀":"1f9d8-1f3fd-2640","🧘🏽♂":"1f9d8-1f3fd-2642","🧘🏾♀":"1f9d8-1f3fe-2640","🧘🏾♂":"1f9d8-1f3fe-2642","🧘🏿♀":"1f9d8-1f3ff-2640","🧘🏿♂":"1f9d8-1f3ff-2642","⛹🏻♀":"26f9-1f3fb-2640","⛹🏻♂":"26f9-1f3fb-2642","⛹🏼♀":"26f9-1f3fc-2640","⛹🏼♂":"26f9-1f3fc-2642","⛹🏽♀":"26f9-1f3fd-2640","⛹🏽♂":"26f9-1f3fd-2642","⛹🏾♀":"26f9-1f3fe-2640","⛹🏾♂":"26f9-1f3fe-2642","⛹🏿♀":"26f9-1f3ff-2640","⛹🏿♂":"26f9-1f3ff-2642","🏳🌈":"1f3f3-1f308","👁🗨":"1f441-1f5e8","👯♂":"1f46f-2642","👯♀":"1f46f-2640","🏌♂":"1f3cc-2642","🏌♀":"1f3cc-2640","🤼♂":"1f93c-2642","🤼♀":"1f93c-2640","🤹♂":"1f939-2642","🤹♀":"1f939-2640","🤾♂":"1f93e-2642","🤾♀":"1f93e-2640","🤽♂":"1f93d-2642","🤽♀":"1f93d-2640","🤸♂":"1f938-2642","🤸♀":"1f938-2640","🚶♂":"1f6b6-2642","🚶♀":"1f6b6-2640","🚵♂":"1f6b5-2642","🚵♀":"1f6b5-2640","🚴♂":"1f6b4-2642","🚴♀":"1f6b4-2640","🚣♂":"1f6a3-2642","🚣♀":"1f6a3-2640","🏋♂":"1f3cb-2642","🏋♀":"1f3cb-2640","🏊♂":"1f3ca-2642","🏊♀":"1f3ca-2640","🏄♂":"1f3c4-2642","🏄♀":"1f3c4-2640","🏃♂":"1f3c3-2642","🏃♀":"1f3c3-2640","🤷♂":"1f937-2642","🤷♀":"1f937-2640","🤦♂":"1f926-2642","🤦♀":"1f926-2640","🙎♂":"1f64e-2642","🙎♀":"1f64e-2640","🙍♂":"1f64d-2642","🙍♀":"1f64d-2640","🙋♂":"1f64b-2642","🙋♀":"1f64b-2640","🙇♂":"1f647-2642","🙇♀":"1f647-2640","🙆♂":"1f646-2642","🙆♀":"1f646-2640","🙅♂":"1f645-2642","🙅♀":"1f645-2640","💇♂":"1f487-2642","💇♀":"1f487-2640","💆♂":"1f486-2642","💆♀":"1f486-2640","💁♂":"1f481-2642","💁♀":"1f481-2640","👱♂":"1f471-2642","👱♀":"1f471-2640","👳♂":"1f473-2642","👳♀":"1f473-2640","💂♂":"1f482-2642","💂♀":"1f482-2640","🕵♂":"1f575-2642","🕵♀":"1f575-2640","👷♂":"1f477-2642","👷♀":"1f477-2640","👮♂":"1f46e-2642","👮♀":"1f46e-2640","👨⚕":"1f468-2695","👩⚕":"1f469-2695","👨⚖":"1f468-2696","👩⚖":"1f469-2696","👨✈":"1f468-2708","👩✈":"1f469-2708","🧙♀":"1f9d9-2640","🧙♂":"1f9d9-2642","🧚♀":"1f9da-2640","🧚♂":"1f9da-2642","🧛♀":"1f9db-2640","🧛♂":"1f9db-2642","🧜♀":"1f9dc-2640","🧜♂":"1f9dc-2642","🧝♀":"1f9dd-2640","🧝♂":"1f9dd-2642","🧞♀":"1f9de-2640","🧞♂":"1f9de-2642","🧟♀":"1f9df-2640","🧟♂":"1f9df-2642","🧖♀":"1f9d6-2640","🧖♂":"1f9d6-2642","🧗♀":"1f9d7-2640","🧗♂":"1f9d7-2642","🧘♀":"1f9d8-2640","🧘♂":"1f9d8-2642","⛹♂":"26f9-2642","⛹♀":"26f9-2640","🕉":"1f549","🗝":"1f5dd","©":"00a9","®":"00ae","‼":"203c","⁉":"2049","™":"2122",ℹ:"2139","↔":"2194","↕":"2195","↖":"2196","↗":"2197","↘":"2198","↙":"2199","↩":"21a9","↪":"21aa","▪":"25aa","▫":"25ab","▶":"25b6","◀":"25c0","◻":"25fb","◼":"25fc","☑":"2611","⚠":"26a0","✔":"2714","✖":"2716","➡":"27a1","⤴":"2934","⤵":"2935","⬅":"2b05","⬆":"2b06","⬇":"2b07","〰":"3030","✝":"271d","⏏":"23cf","⏭":"23ed","⏮":"23ee","⏯":"23ef","⏸":"23f8","⏹":"23f9","⏺":"23fa","☢":"2622","☣":"2623","☦":"2626","☪":"262a","☮":"262e","☯":"262f","☸":"2638","⚛":"269b","✡":"2721","♀":"2640","♂":"2642","⚕":"2695"},e.asciiList={"*\\0/*":"1f646","*\\O/*":"1f646","-___-":"1f611",":'-)":"1f602","':-)":"1f605","':-D":"1f605",">:-)":"1f606","':-(":"1f613",">:-(":"1f620",":'-(":"1f622","O:-)":"1f607","0:-3":"1f607","0:-)":"1f607","0;^)":"1f607","O;-)":"1f607","0;-)":"1f607","O:-3":"1f607","-__-":"1f611",":-Þ":"1f61b","</3":"1f494",":')":"1f602",":-D":"1f603","':)":"1f605","'=)":"1f605","':D":"1f605","'=D":"1f605",">:)":"1f606",">;)":"1f606",">=)":"1f606",";-)":"1f609","*-)":"1f609",";-]":"1f609",";^)":"1f609","':(":"1f613","'=(":"1f613",":-*":"1f618",":^*":"1f618",">:P":"1f61c","X-P":"1f61c",">:[":"1f61e",":-(":"1f61e",":-[":"1f61e",">:(":"1f620",":'(":"1f622",";-(":"1f622",">.<":"1f623","#-)":"1f635","%-)":"1f635","X-)":"1f635","\\0/":"1f646","\\O/":"1f646","0:3":"1f607","0:)":"1f607","O:)":"1f607","O=)":"1f607","O:3":"1f607","B-)":"1f60e","8-)":"1f60e","B-D":"1f60e","8-D":"1f60e","-_-":"1f611",">:\\":"1f615",">:/":"1f615",":-/":"1f615",":-.":"1f615",":-P":"1f61b",":Þ":"1f61b",":-b":"1f61b",":-O":"1f62e",O_O:"1f62e",">:O":"1f62e",":-X":"1f636",":-#":"1f636",":-)":"1f642","(y)":"1f44d","<3":"2764",":D":"1f603","=D":"1f603",";)":"1f609","*)":"1f609",";]":"1f609",";D":"1f609",":*":"1f618","=*":"1f618",":(":"1f61e",":[":"1f61e","=(":"1f61e",":@":"1f620",";(":"1f622","D:":"1f628",":$":"1f633","=$":"1f633","#)":"1f635","%)":"1f635","X)":"1f635","B)":"1f60e","8)":"1f60e",":/":"1f615",":\\":"1f615","=/":"1f615","=\\":"1f615",":L":"1f615","=L":"1f615",":P":"1f61b","=P":"1f61b",":b":"1f61b",":O":"1f62e",":X":"1f636",":#":"1f636","=X":"1f636","=#":"1f636",":)":"1f642","=]":"1f642","=)":"1f642",":]":"1f642"},e.asciiRegexp="(\\*\\\\0\\/\\*|\\*\\\\O\\/\\*|\\-___\\-|\\:'\\-\\)|'\\:\\-\\)|'\\:\\-D|\\>\\:\\-\\)|>\\:\\-\\)|'\\:\\-\\(|\\>\\:\\-\\(|>\\:\\-\\(|\\:'\\-\\(|O\\:\\-\\)|0\\:\\-3|0\\:\\-\\)|0;\\^\\)|O;\\-\\)|0;\\-\\)|O\\:\\-3|\\-__\\-|\\:\\-Þ|\\:\\-Þ|\\<\\/3|<\\/3|\\:'\\)|\\:\\-D|'\\:\\)|'\\=\\)|'\\:D|'\\=D|\\>\\:\\)|>\\:\\)|\\>;\\)|>;\\)|\\>\\=\\)|>\\=\\)|;\\-\\)|\\*\\-\\)|;\\-\\]|;\\^\\)|'\\:\\(|'\\=\\(|\\:\\-\\*|\\:\\^\\*|\\>\\:P|>\\:P|X\\-P|\\>\\:\\[|>\\:\\[|\\:\\-\\(|\\:\\-\\[|\\>\\:\\(|>\\:\\(|\\:'\\(|;\\-\\(|\\>\\.\\<|>\\.<|#\\-\\)|%\\-\\)|X\\-\\)|\\\\0\\/|\\\\O\\/|0\\:3|0\\:\\)|O\\:\\)|O\\=\\)|O\\:3|B\\-\\)|8\\-\\)|B\\-D|8\\-D|\\-_\\-|\\>\\:\\\\|>\\:\\\\|\\>\\:\\/|>\\:\\/|\\:\\-\\/|\\:\\-\\.|\\:\\-P|\\:Þ|\\:Þ|\\:\\-b|\\:\\-O|O_O|\\>\\:O|>\\:O|\\:\\-X|\\:\\-#|\\:\\-\\)|\\(y\\)|\\<3|<3|\\:D|\\=D|;\\)|\\*\\)|;\\]|;D|\\:\\*|\\=\\*|\\:\\(|\\:\\[|\\=\\(|\\:@|;\\(|D\\:|\\:\\$|\\=\\$|#\\)|%\\)|X\\)|B\\)|8\\)|\\:\\/|\\:\\\\|\\=\\/|\\=\\\\|\\:L|\\=L|\\:P|\\=P|\\:b|\\:O|\\:X|\\:#|\\=X|\\=#|\\:\\)|\\=\\]|\\=\\)|\\:\\])",e.emojiVersion="3.1",e.emojiSize="32",e.greedyMatch=!1,e.blacklistChars="",e.imagePathPNG="https://cdn.jsdelivr.net/emojione/assets/"+e.emojiVersion+"/png/",e.defaultPathPNG=e.imagePathPNG,e.imageTitleTag=!0,e.sprites=!1,e.unicodeAlt=!0,e.ascii=!1,e.riskyMatchAscii=!1,e.regShortNames=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+e.shortnames+")","gi"),e.regAscii=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)"+e.asciiRegexp+"(?=\\s|$|[!,.?]))","gi"),e.regAsciiRisky=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(()"+e.asciiRegexp+"())","gi"),e.regUnicode=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(?:🏳)️?\200d?(?:🌈)|(?:👁)️?\200d?(?:🗨)️?|[#-9]️?⃣|(?:(?:🏴)(?:\udb40[\udc60-\udcff]){1,6})|(?:\ud83c[\udde0-\uddff]){2}|(?:(?:\ud83d[\udc68\udc69]))️?(?:\ud83c[\udffa-\udfff])?\200d?(?:[⚕⚖✈]|\ud83c[\udf3e-\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92])|(?:\ud83d[\udc68\udc69]|\ud83e[\uddd0-\udddf])(?:\ud83c[\udffa-\udfff])?\200d?[♀♂⚕⚖✈]?️?|(?:(?:❤|\ud83d[\udc66-\udc69\udc8b])[\200d️]{0,2}){1,3}(?:❤|\ud83d[\udc66-\udc69\udc8b])|(?:(?:❤|\ud83d[\udc66-\udc69\udc8b])️?){2,4}|(?:\ud83d[\udc68\udc69\udc6e\udc71-\udc87\udd75\ude45-\ude4e]|\ud83e[\udd26\udd37]|\ud83c[\udfc3-\udfcc]|\ud83e[\udd38-\udd3e]|\ud83d[\udea3-\udeb6]|⛹|👯)️?(?:\ud83c[\udffb-\udfff])?\200d?[♀♂]?️?|(?:[☝⛹✊-✍]|\ud83c[\udf85-\udfcc]|\ud83d[\udc42-\udcaa\udd74-\udd96\ude45-\ude4f\udea3-\udecc]|\ud83e[\udd18-\udd3e])️?(?:\ud83c[\udffb-\udfff])|(?:[↔-↙↩-↪]️?|[#*]|[〰〽]️?|(?:\ud83c[\udd70-\udd71]|🆎|\ud83c[\udd91-\udd9a])️?|Ⓜ️?|[㊗㊙]️?|(?:\ud83c[\ude01-\ude02]|🈚|🈯|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51])️?|[‼⁉]️?|[▪-▫▶◀◻-◾]️?|[©®]️?|[™ℹ]️?|🀄️?|[⬅-⬇⬛-⬜⭐⭕]️?|[⌚-⌛⌨⏏⏩-⏳⏸-⏺]️?|🃏|[⤴⤵]️?)|[✀-➿]️?|[\ud800-\udbff][\udc00-\udfff]️?|[☀-⛿]️?|[0-9]️","g"),e.toImage=function(t){return t=e.unicodeToImage(t),t=e.shortnameToImage(t)},e.unifyUnicode=function(t){return t=e.toShort(t),t=e.shortnameToUnicode(t)},e.shortnameToAscii=function(t){var n,a=e.objectFlip(e.asciiList);return t=t.replace(e.regShortNames,(function(t){return void 0!==t&&""!==t&&t in e.emojioneList?(n=e.emojioneList[t].uc_output,void 0!==a[n]?a[n]:t):t}))},e.shortnameToUnicode=function(t){var n;if(t=t.replace(e.regShortNames,(function(t){return void 0!==t&&""!==t&&t in e.emojioneList?(n=e.emojioneList[t].uc_output.toUpperCase(),e.emojioneList[t].uc_base,e.convert(n)):t})),e.ascii){var a=e.riskyMatchAscii?e.regAsciiRisky:e.regAscii;t=t.replace(a,(function(t,a,o,r){return void 0!==r&&""!==r&&e.unescapeHTML(r)in e.asciiList?(r=e.unescapeHTML(r),n=e.asciiList[r].toUpperCase(),o+e.convert(n)):t}))}return t},e.shortnameToImage=function(t){var n,a,o,r,i,s,l,c,u=e.mapUnicodeToShort();if(t=t.replace(e.regShortNames,(function(t){if(void 0===t||""===t||-1===e.shortnames.indexOf(t))return t;if(!e.emojioneList[t])for(var n in e.emojioneList)if(e.emojioneList.hasOwnProperty(n)&&""!==n&&-1!==e.emojioneList[n].shortnames.indexOf(t)){t=n;break}return a=e.emojioneList[t].uc_output,o=e.emojioneList[t].uc_base,i=o.includes("-1f3f")?"diversity":e.emojioneList[t].category,s=e.imageTitleTag?'title="'+t+'"':"",l="32"==e.spriteSize||"64"==e.spriteSize?e.spriteSize:"32",c=e.defaultPathPNG!==e.imagePathPNG?e.imagePathPNG:e.defaultPathPNG+e.emojiSize+"/",r=e.unicodeAlt?e.convert(a.toUpperCase()):t,e.sprites?'<span class="emojione emojione-'+l+"-"+i+" _"+o+'" '+s+">"+r+"</span>":'<img class="emojione" alt="'+r+'" '+s+' src="'+c+o+'.png"/>'})),e.ascii){var d=e.riskyMatchAscii?e.regAsciiRisky:e.regAscii;t=t.replace(d,(function(t,o,d,f){return void 0!==f&&""!==f&&e.unescapeHTML(f)in e.asciiList?(f=e.unescapeHTML(f),a=e.asciiList[f],n=u[a],i=a.includes("-1f3f")?"diversity":e.emojioneList[n].category,s=e.imageTitleTag?'title="'+e.escapeHTML(f)+'"':"",l="32"==e.spriteSize||"64"==e.spriteSize?e.spriteSize:"32",c=e.defaultPathPNG!==e.imagePathPNG?e.imagePathPNG:e.defaultPathPNG+e.emojiSize+"/",r=e.unicodeAlt?e.convert(a.toUpperCase()):e.escapeHTML(f),e.sprites?d+'<span class="emojione emojione-'+l+"-"+i+" _"+a+'"  '+s+">"+r+"</span>":d+'<img class="emojione" alt="'+r+'" '+s+' src="'+c+a+'.png"/>'):t}))}return t},e.unicodeToImage=function(t){var n,a,o,r,i,s,l,c,u=e.mapUnicodeToShort(),d=e.emojioneList,f=e.blacklistChars.split(",");if(t=t.replace(e.regUnicode,(function(t){if(void 0===t||""===t)return t;if(t in e.jsEscapeMap&&-1===f.indexOf(t))o=e.jsEscapeMap[t];else{if(!e.greedyMatch||!(t in e.jsEscapeMapGreedy)||-1!==f.indexOf(t))return t;o=e.jsEscapeMapGreedy[t]}return a=u[o],o=d[a].uc_base,n=d[a].uc_output,i=o.includes("-1f3f")?"diversity":d[a].category,l="32"==e.spriteSize||"64"==e.spriteSize?e.spriteSize:"32",c=e.defaultPathPNG!==e.imagePathPNG?e.imagePathPNG:e.defaultPathPNG+e.emojiSize+"/",r=e.unicodeAlt?e.convert(n.toUpperCase()):a,s=e.imageTitleTag?'title="'+a+'"':"",e.sprites?'<span class="emojione emojione-'+l+"-"+i+" _"+o+'" '+s+">"+r+"</span>":'<img class="emojione" alt="'+r+'" '+s+' src="'+c+o+'.png"/>'})),e.ascii){var m=e.riskyMatchAscii?e.regAsciiRisky:e.regAscii;t=t.replace(m,(function(t,a,o,d){return void 0!==d&&""!==d&&e.unescapeHTML(d)in e.asciiList?(d=e.unescapeHTML(d),n=e.asciiList[d],shortname=u[n],i=n.includes("-1f3f")?"diversity":e.emojioneList[shortname].category,s=e.imageTitleTag?'title="'+e.escapeHTML(d)+'"':"",l="32"==e.spriteSize||"64"==e.spriteSize?e.spriteSize:"32",c=e.defaultPathPNG!==e.imagePathPNG?e.imagePathPNG:e.defaultPathPNG+e.emojiSize+"/",r=e.unicodeAlt?e.convert(n.toUpperCase()):e.escapeHTML(d),e.sprites?o+'<span class="emojione emojione-'+l+"-"+i+" _"+n+'"  '+s+">"+r+"</span>":o+'<img class="emojione" alt="'+r+'" '+s+' src="'+c+n+'.png"/>'):t}))}return t},e.toShort=function(t){var n=e.unicodeCharRegex();return e.replaceAll(t,n)},e.convert=function(e){if(e.indexOf("-")>-1){for(var t=[],n=e.split("-"),a=0;a<n.length;a++){var o=parseInt(n[a],16);if(o>=65536&&o<=1114111){var r=Math.floor((o-65536)/1024)+55296,i=(o-65536)%1024+56320;o=String.fromCharCode(r)+String.fromCharCode(i)}else o=String.fromCharCode(o);t.push(o)}return t.join("")}if((n=parseInt(e,16))>=65536&&n<=1114111){r=Math.floor((n-65536)/1024)+55296,i=(n-65536)%1024+56320;return String.fromCharCode(r)+String.fromCharCode(i)}return String.fromCharCode(n)},e.escapeHTML=function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,(function(e){return t[e]}))},e.unescapeHTML=function(e){var t={"&amp;":"&","&#38;":"&","&#x26;":"&","&lt;":"<","&#60;":"<","&#x3C;":"<","&gt;":">","&#62;":">","&#x3E;":">","&quot;":'"',"&#34;":'"',"&#x22;":'"',"&apos;":"'","&#39;":"'","&#x27;":"'"};return e.replace(/&(?:amp|#38|#x26|lt|#60|#x3C|gt|#62|#x3E|apos|#39|#x27|quot|#34|#x22);/gi,(function(e){return t[e]}))},e.shortnameConversionMap=function(){var t,n=[];for(t in e.emojioneList)e.emojioneList.hasOwnProperty(t)&&""!==t&&(n[e.convert(e.emojioneList[t].uc_output)]=t);return n},e.unicodeCharRegex=function(){var n=[];for(t in e.emojioneList)e.emojioneList.hasOwnProperty(t)&&""!==t&&n.push(e.convert(e.emojioneList[t].uc_output));return n.join("|")},e.mapEmojioneList=function(t){for(var n in e.emojioneList){if(e.emojioneList.hasOwnProperty(n))t(e.emojioneList[n].uc_base,n)}},e.mapUnicodeToShort=function(){return e.memMapShortToUnicode||(e.memMapShortToUnicode={},e.mapEmojioneList((function(t,n){e.memMapShortToUnicode[t]=n}))),e.memMapShortToUnicode},e.memorizeReplacement=function(){if(!e.unicodeReplacementRegEx||!e.memMapShortToUnicodeCharacters){var t=[];e.memMapShortToUnicodeCharacters={},e.mapEmojioneList((function(n,a){var o=e.convert(n);e.memMapShortToUnicodeCharacters[o]=a,t.push(o)})),e.unicodeReplacementRegEx=t.join("|")}},e.mapUnicodeCharactersToShort=function(){return e.memorizeReplacement(),e.memMapShortToUnicodeCharacters},e.objectFlip=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n},e.escapeRegExp=function(e){return e.replace(/[-[\]{}()*+?.,;:&\\^$#\s]/g,"\\$&")},e.replaceAll=function(t,n){var a=e.escapeRegExp(n),o=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+a+")","gi");return t.replace(o,(function(t,n){return void 0===n||""===n?t:e.shortnameConversionMap()[n]}))}}(this.emojione=this.emojione||{}),e.exports=this.emojione},"./node_modules/emojionearea/dist/emojionearea.js":(e,t,n)=>{var a=n("./node_modules/emojione/lib/js/emojione.js");window=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},document=window.document||{},window,function(e){"use strict";var t=0,n={},o={},r=a,i=[];function s(e){r?e():i.push(e)}var l,c,u,d="data:image/gif;base64,R0lGODlhAQABAJH/AP///wAAAMDAwAAAACH5BAEAAAIALAAAAAABAAEAAAICVAEAOw==",f=[].slice,m="emojionearea",p=0,g="&#8203;";function h(t,a,o){var r=!0,i=1;if(a){a=a.toLowerCase();do{var s=1==i?"@"+a:a;n[t.id][s]&&n[t.id][s].length&&e.each(n[t.id][s],(function(e,n){return r=!1!==n.apply(t,o||[])}))}while(r&&i--)}return r}function _(t,n,a,r){r=r||function(t,n){return e(n.currentTarget)},e.each(a,(function(i,s){i=e.isArray(a)?s:i,(o[t.id][s]||(o[t.id][s]=[])).push([n,i,r])}))}function b(e,t,n){var a,o=r.imageType;a="svg"==o?r.imagePathSVG:r.imagePathPNG;var i="";n&&(i=n.substr(1,n.length-2).replace(/_/g," ").replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})));var s="";return t.uc_base&&p>4?(s=t.uc_base,t=t.uc_output.toUpperCase()):s=t,e=e.replace("{name}",n||"").replace("{friendlyName}",i).replace("{img}",a+(p<2?s.toUpperCase():s)+"."+o).replace("{uni}",t),e=n?e.replace("{alt}",r.shortnameToUnicode(n)):e.replace("{alt}",r.convert(t))}function y(e,t,n){return e.replace(/:?\+?[\w_\-]+:?/g,(function(e){e=":"+e.replace(/:$/,"").replace(/^:/,"")+":";var a=r.emojioneList[e];return a?p>4?b(t,a,e):(p>3&&(a=a.unicode),b(t,a[a.length-1],e)):n?"":e}))}function v(e){var t,n;if(window.getSelection){if((t=window.getSelection()).getRangeAt&&t.rangeCount){(n=t.getRangeAt(0)).deleteContents();var a=document.createElement("div");a.innerHTML=e;for(var o,r,i=document.createDocumentFragment();o=a.firstChild;)r=i.appendChild(o);n.insertNode(i),r&&((n=n.cloneRange()).setStartAfter(r),n.collapse(!0),t.removeAllRanges(),t.addRange(n))}}else document.selection&&"Control"!=document.selection.type&&document.selection.createRange().pasteHTML(e)}function A(){return window.emojioneVersion||"3.1.2"}function S(e){return"object"==typeof e}function w(e){var t;return e.cacheBustParam?(t=e.cacheBustParam,S(e.jsEscapeMap)?"?v=1.2.4"===t?"2.0.0":"?v=2.0.1"===t?"2.1.0":"?v=2.1.1"===t?"2.1.1":"?v=2.1.2"===t?"2.1.2":"?v=2.1.3"===t?"2.1.3":"?v=2.1.4"===t?"2.1.4":"2.2.7":"1.5.2"):e.emojiVersion}function E(e){switch(e){case"1.5.2":return 0;case"2.0.0":return 1;case"2.1.0":case"2.1.1":return 2;case"2.1.2":return 3;case"2.1.3":case"2.1.4":case"2.2.7":return 4;case"3.0.1":case"3.0.2":case"3.0.3":case"3.0":return 5;case"3.1.0":case"3.1.1":case"3.1.2":case"3.1":default:return 6}}function C(){if(e.fn.emojioneArea&&e.fn.emojioneArea.defaults)return e.fn.emojioneArea.defaults;var t={attributes:{dir:"ltr",spellcheck:!1,autocomplete:"off",autocorrect:"off",autocapitalize:"off"},search:!0,placeholder:null,emojiPlaceholder:":smiley:",searchPlaceholder:"SEARCH",container:null,hideSource:!0,shortnames:!0,sprite:!0,pickerPosition:"top",filtersPosition:"top",searchPosition:"top",hidePickerOnBlur:!0,buttonTitle:"Use the TAB key to insert emoji faster",tones:!0,tonesStyle:"bullet",inline:null,saveEmojisAs:"unicode",shortcuts:!0,autocomplete:!0,autocompleteTones:!1,standalone:!1,useInternalCDN:!0,imageType:"png",recentEmojis:!0,textcomplete:{maxCount:15,placement:null}},n=E(r?w(r):A());return t.filters=n>4?{tones:{title:"Diversity",emoji:"open_hands raised_hands palms_up_together clap pray thumbsup thumbsdown punch fist left_facing_fist right_facing_fist fingers_crossed v metal love_you_gesture ok_hand point_left point_right point_up_2 point_down point_up raised_hand raised_back_of_hand hand_splayed vulcan wave call_me muscle middle_finger writing_hand selfie nail_care ear nose baby boy girl man woman blond-haired_woman blond-haired_man older_man older_woman man_with_chinese_cap woman_wearing_turban man_wearing_turban woman_police_officer man_police_officer woman_construction_worker man_construction_worker woman_guard man_guard woman_detective man_detective woman_health_worker man_health_worker woman_farmer man_farmer woman_cook man_cook woman_student man_student woman_singer man_singer woman_teacher man_teacher woman_factory_worker man_factory_worker woman_technologist man_technologist woman_office_worker man_office_worker woman_mechanic man_mechanic woman_scientist man_scientist woman_artist man_artist woman_firefighter man_firefighter woman_pilot man_pilot woman_astronaut man_astronaut woman_judge man_judge mrs_claus santa princess prince bride_with_veil man_in_tuxedo angel pregnant_woman breast_feeding woman_bowing man_bowing man_tipping_hand woman_tipping_hand man_gesturing_no woman_gesturing_no man_gesturing_ok woman_gesturing_ok man_raising_hand woman_raising_hand woman_facepalming man_facepalming woman_shrugging man_shrugging man_pouting woman_pouting man_frowning woman_frowning man_getting_haircut woman_getting_haircut man_getting_face_massage woman_getting_face_massage man_in_business_suit_levitating dancer man_dancing woman_walking man_walking woman_running man_running adult child older_adult bearded_person woman_with_headscarf woman_mage man_mage woman_fairy man_fairy woman_vampire man_vampire mermaid merman woman_elf man_elf snowboarder woman_lifting_weights man_lifting_weights woman_cartwheeling man_cartwheeling woman_bouncing_ball man_bouncing_ball woman_playing_handball man_playing_handball woman_golfing man_golfing woman_surfing man_surfing woman_swimming man_swimming woman_playing_water_polo man_playing_water_polo woman_rowing_boat man_rowing_boat horse_racing woman_biking man_biking woman_mountain_biking man_mountain_biking woman_juggling man_juggling woman_in_steamy_room man_in_steamy_room woman_climbing man_climbing woman_in_lotus_position man_in_lotus_position bath person_in_bed"},recent:{icon:"clock3",title:"Recent",emoji:""},smileys_people:{icon:"yum",title:"Smileys & People",emoji:"grinning smiley smile grin laughing sweat_smile joy rofl relaxed blush innocent slight_smile upside_down wink relieved crazy_face star_struck heart_eyes kissing_heart kissing kissing_smiling_eyes kissing_closed_eyes yum stuck_out_tongue_winking_eye stuck_out_tongue_closed_eyes stuck_out_tongue money_mouth hugging nerd sunglasses cowboy smirk unamused disappointed pensive worried face_with_raised_eyebrow face_with_monocle confused slight_frown frowning2 persevere confounded tired_face weary triumph angry rage face_with_symbols_over_mouth no_mouth neutral_face expressionless hushed frowning anguished open_mouth astonished dizzy_face exploding_head flushed scream fearful cold_sweat cry disappointed_relieved drooling_face sob sweat sleepy sleeping rolling_eyes thinking shushing_face face_with_hand_over_mouth lying_face grimacing zipper_mouth face_vomiting nauseated_face sneezing_face mask thermometer_face head_bandage smiling_imp imp japanese_ogre japanese_goblin poop ghost skull skull_crossbones alien space_invader robot jack_o_lantern clown smiley_cat smile_cat joy_cat heart_eyes_cat smirk_cat kissing_cat scream_cat crying_cat_face pouting_cat open_hands raised_hands palms_up_together clap pray handshake thumbsup thumbsdown punch fist left_facing_fist right_facing_fist fingers_crossed v metal love_you_gesture ok_hand point_left point_right point_up_2 point_down point_up raised_hand raised_back_of_hand hand_splayed vulcan wave call_me muscle middle_finger writing_hand selfie nail_care ring lipstick kiss lips tongue ear nose footprints eye eyes speaking_head bust_in_silhouette busts_in_silhouette baby boy girl man woman blond-haired_woman blond_haired_man older_man older_woman man_with_chinese_cap woman_wearing_turban man_wearing_turban woman_police_officer police_officer woman_construction_worker construction_worker woman_guard guard woman_detective detective woman_health_worker man_health_worker woman_farmer man_farmer woman_cook man_cook woman_student man_student woman_singer man_singer woman_teacher man_teacher woman_factory_worker man_factory_worker woman_technologist man_technologist woman_office_worker man_office_worker woman_mechanic man_mechanic woman_scientist man_scientist woman_artist man_artist woman_firefighter man_firefighter woman_pilot man_pilot woman_astronaut man_astronaut woman_judge man_judge mrs_claus santa princess prince bride_with_veil man_in_tuxedo angel pregnant_woman breast_feeding woman_bowing man_bowing woman_tipping_hand man_tipping_hand woman_gesturing_no man_gesturing_no woman_gesturing_ok man_gesturing_ok woman_raising_hand man_raising_hand woman_facepalming man_facepalming woman_shrugging man_shrugging woman_pouting man_pouting woman_frowning man_frowning woman_getting_haircut man_getting_haircut woman_getting_face_massage man_getting_face_massage man_in_business_suit_levitating dancer man_dancing women_with_bunny_ears_partying men_with_bunny_ears_partying woman_walking man_walking woman_running man_running couple two_women_holding_hands two_men_holding_hands couple_with_heart couple_ww couple_mm couplekiss kiss_ww kiss_mm family family_mwg family_mwgb family_mwbb family_mwgg family_wwb family_wwg family_wwgb family_wwbb family_wwgg family_mmb family_mmg family_mmgb family_mmbb family_mmgg family_woman_boy family_woman_girl family_woman_girl_boy family_woman_boy_boy family_woman_girl_girl family_man_boy family_man_girl family_man_girl_boy family_man_boy_boy family_man_girl_girl bearded_person woman_with_headscarf woman_mage man_mage woman_fairy man_fairy woman_vampire man_vampire mermaid merman woman_elf man_elf woman_genie man_genie woman_zombie man_zombie womans_clothes shirt jeans necktie dress bikini kimono high_heel sandal boot mans_shoe athletic_shoe womans_hat tophat mortar_board crown helmet_with_cross school_satchel pouch purse handbag briefcase eyeglasses dark_sunglasses closed_umbrella umbrella2 brain billed_cap scarf gloves coat socks "},animals_nature:{icon:"hamster",title:"Animals & Nature",emoji:"dog cat mouse hamster rabbit fox bear panda_face koala tiger lion_face cow pig pig_nose frog monkey_face see_no_evil hear_no_evil speak_no_evil monkey chicken penguin bird baby_chick hatching_chick hatched_chick duck eagle owl bat wolf boar horse unicorn bee bug butterfly snail shell beetle ant spider spider_web turtle snake lizard scorpion crab squid octopus shrimp tropical_fish fish blowfish dolphin shark whale whale2 crocodile leopard tiger2 water_buffalo ox cow2 deer dromedary_camel camel elephant rhino gorilla racehorse pig2 goat ram sheep dog2 poodle cat2 rooster turkey dove rabbit2 mouse2 rat chipmunk dragon giraffe zebra hedgehog sauropod t_rex cricket dragon_face feet cactus christmas_tree evergreen_tree deciduous_tree palm_tree seedling herb shamrock four_leaf_clover bamboo tanabata_tree leaves fallen_leaf maple_leaf mushroom ear_of_rice bouquet tulip rose wilted_rose sunflower blossom cherry_blossom hibiscus earth_americas earth_africa earth_asia full_moon waning_gibbous_moon last_quarter_moon waning_crescent_moon new_moon waxing_crescent_moon first_quarter_moon waxing_gibbous_moon new_moon_with_face full_moon_with_face sun_with_face first_quarter_moon_with_face last_quarter_moon_with_face crescent_moon dizzy star star2 sparkles zap fire boom comet sunny white_sun_small_cloud partly_sunny white_sun_cloud white_sun_rain_cloud rainbow cloud cloud_rain thunder_cloud_rain cloud_lightning cloud_snow snowman2 snowman snowflake wind_blowing_face dash cloud_tornado fog ocean droplet sweat_drops umbrella "},food_drink:{icon:"pizza",title:"Food & Drink",emoji:"green_apple apple pear tangerine lemon banana watermelon grapes strawberry melon cherries peach pineapple kiwi avocado tomato eggplant cucumber carrot corn hot_pepper potato sweet_potato chestnut peanuts honey_pot croissant bread french_bread cheese egg cooking bacon pancakes fried_shrimp poultry_leg meat_on_bone pizza hotdog hamburger fries stuffed_flatbread taco burrito salad shallow_pan_of_food spaghetti ramen stew fish_cake sushi bento curry rice_ball rice rice_cracker oden dango shaved_ice ice_cream icecream cake birthday custard lollipop candy chocolate_bar popcorn doughnut cookie milk baby_bottle coffee tea sake beer beers champagne_glass wine_glass tumbler_glass cocktail tropical_drink champagne spoon fork_and_knife fork_knife_plate dumpling fortune_cookie takeout_box chopsticks bowl_with_spoon cup_with_straw coconut broccoli pie pretzel cut_of_meat sandwich canned_food"},activity:{icon:"basketball",title:"Activity",emoji:"soccer basketball football baseball tennis volleyball rugby_football 8ball ping_pong badminton goal hockey field_hockey cricket_game golf bow_and_arrow fishing_pole_and_fish boxing_glove martial_arts_uniform ice_skate ski skier snowboarder woman_lifting_weights man_lifting_weights person_fencing women_wrestling men_wrestling woman_cartwheeling man_cartwheeling woman_bouncing_ball man_bouncing_ball woman_playing_handball man_playing_handball woman_golfing man_golfing woman_surfing man_surfing woman_swimming man_swimming woman_playing_water_polo man_playing_water_polo woman_rowing_boat man_rowing_boat horse_racing woman_biking man_biking woman_mountain_biking man_mountain_biking woman_in_steamy_room man_in_steamy_room woman_climbing man_climbing woman_in_lotus_position man_in_lotus_position running_shirt_with_sash medal military_medal first_place second_place third_place trophy rosette reminder_ribbon ticket tickets circus_tent woman_juggling man_juggling performing_arts art clapper microphone headphones musical_score musical_keyboard drum saxophone trumpet guitar violin game_die dart bowling video_game slot_machine sled curling_stone "},travel_places:{icon:"rocket",title:"Travel & Places",emoji:"red_car taxi blue_car bus trolleybus race_car police_car ambulance fire_engine minibus truck articulated_lorry tractor scooter bike motor_scooter motorcycle rotating_light oncoming_police_car oncoming_bus oncoming_automobile oncoming_taxi aerial_tramway mountain_cableway suspension_railway railway_car train mountain_railway monorail bullettrain_side bullettrain_front light_rail steam_locomotive train2 metro tram station helicopter airplane_small airplane airplane_departure airplane_arriving rocket satellite_orbital seat canoe sailboat motorboat speedboat cruise_ship ferry ship anchor construction fuelpump busstop vertical_traffic_light traffic_light map moyai statue_of_liberty fountain tokyo_tower european_castle japanese_castle stadium ferris_wheel roller_coaster carousel_horse beach_umbrella beach island mountain mountain_snow mount_fuji volcano desert camping tent railway_track motorway construction_site factory house house_with_garden homes house_abandoned office department_store post_office european_post_office hospital bank hotel convenience_store school love_hotel wedding classical_building church mosque synagogue kaaba shinto_shrine japan rice_scene park sunrise sunrise_over_mountains stars sparkler fireworks city_sunset city_dusk cityscape night_with_stars milky_way bridge_at_night foggy flying_saucer"},objects:{icon:"bulb",title:"Objects",emoji:"watch iphone calling computer keyboard desktop printer mouse_three_button trackball joystick compression minidisc floppy_disk cd dvd vhs camera camera_with_flash video_camera movie_camera projector film_frames telephone_receiver telephone pager fax tv radio microphone2 level_slider control_knobs stopwatch timer alarm_clock clock hourglass hourglass_flowing_sand satellite battery electric_plug bulb flashlight candle wastebasket oil money_with_wings dollar yen euro pound moneybag credit_card gem scales wrench hammer hammer_pick tools pick nut_and_bolt gear chains gun bomb knife dagger crossed_swords shield smoking coffin urn amphora crystal_ball prayer_beads barber alembic telescope microscope hole pill syringe thermometer toilet potable_water shower bathtub bath bellhop key key2 door couch bed sleeping_accommodation frame_photo shopping_bags shopping_cart gift balloon flags ribbon confetti_ball tada dolls izakaya_lantern wind_chime envelope envelope_with_arrow incoming_envelope e-mail love_letter inbox_tray outbox_tray package label mailbox_closed mailbox mailbox_with_mail mailbox_with_no_mail postbox postal_horn scroll page_with_curl page_facing_up bookmark_tabs bar_chart chart_with_upwards_trend chart_with_downwards_trend notepad_spiral calendar_spiral calendar date card_index card_box ballot_box file_cabinet clipboard file_folder open_file_folder dividers newspaper2 newspaper notebook notebook_with_decorative_cover ledger closed_book green_book blue_book orange_book books book bookmark link paperclip paperclips triangular_ruler straight_ruler pushpin round_pushpin scissors pen_ballpoint pen_fountain black_nib paintbrush crayon pencil pencil2 mag mag_right lock_with_ink_pen closed_lock_with_key lock unlock"},symbols:{icon:"heartpulse",title:"Symbols",emoji:"heart orange_heart yellow_heart green_heart blue_heart purple_heart black_heart broken_heart heart_exclamation two_hearts revolving_hearts heartbeat heartpulse sparkling_heart cupid gift_heart heart_decoration peace cross star_and_crescent om_symbol wheel_of_dharma star_of_david six_pointed_star menorah yin_yang orthodox_cross place_of_worship ophiuchus aries taurus gemini cancer leo virgo libra scorpius sagittarius capricorn aquarius pisces id atom accept radioactive biohazard mobile_phone_off vibration_mode u6709 u7121 u7533 u55b6 u6708 eight_pointed_black_star vs white_flower ideograph_advantage secret congratulations u5408 u6e80 u5272 u7981 a b ab cl o2 sos x o octagonal_sign no_entry name_badge no_entry_sign 100 anger hotsprings no_pedestrians do_not_litter no_bicycles non-potable_water underage no_mobile_phones no_smoking exclamation grey_exclamation question grey_question bangbang interrobang low_brightness high_brightness part_alternation_mark warning children_crossing trident fleur-de-lis beginner recycle white_check_mark u6307 chart sparkle eight_spoked_asterisk negative_squared_cross_mark globe_with_meridians diamond_shape_with_a_dot_inside m cyclone zzz atm wc wheelchair parking u7a7a sa passport_control customs baggage_claim left_luggage mens womens baby_symbol restroom put_litter_in_its_place cinema signal_strength koko symbols information_source abc abcd capital_abcd ng ok up cool new free zero one two three four five six seven eight nine keycap_ten 1234 hash asterisk arrow_forward pause_button play_pause stop_button record_button eject track_next track_previous fast_forward rewind arrow_double_up arrow_double_down arrow_backward arrow_up_small arrow_down_small arrow_right arrow_left arrow_up arrow_down arrow_upper_right arrow_lower_right arrow_lower_left arrow_upper_left arrow_up_down left_right_arrow arrow_right_hook leftwards_arrow_with_hook arrow_heading_up arrow_heading_down twisted_rightwards_arrows repeat repeat_one arrows_counterclockwise arrows_clockwise musical_note notes heavy_plus_sign heavy_minus_sign heavy_division_sign heavy_multiplication_x heavy_dollar_sign currency_exchange tm copyright registered wavy_dash curly_loop loop end back on top soon heavy_check_mark ballot_box_with_check radio_button white_circle black_circle red_circle blue_circle small_red_triangle small_red_triangle_down small_orange_diamond small_blue_diamond large_orange_diamond large_blue_diamond white_square_button black_square_button black_small_square white_small_square black_medium_small_square white_medium_small_square black_medium_square white_medium_square black_large_square white_large_square speaker mute sound loud_sound bell no_bell mega loudspeaker speech_left eye_in_speech_bubble speech_balloon thought_balloon anger_right spades clubs hearts diamonds black_joker flower_playing_cards mahjong clock1 clock2 clock3 clock4 clock5 clock6 clock7 clock8 clock9 clock10 clock11 clock12 clock130 clock230 clock330 clock430 clock530 clock630 clock730 clock830 clock930 clock1030 clock1130 clock1230"},flags:{icon:"flag_gb",title:"Flags",emoji:"flag_white flag_black checkered_flag triangular_flag_on_post rainbow_flag flag_af flag_ax flag_al flag_dz flag_as flag_ad flag_ao flag_ai flag_aq flag_ag flag_ar flag_am flag_aw flag_au flag_at flag_az flag_bs flag_bh flag_bd flag_bb flag_by flag_be flag_bz flag_bj flag_bm flag_bt flag_bo flag_ba flag_bw flag_br flag_io flag_vg flag_bn flag_bg flag_bf flag_bi flag_kh flag_cm flag_ca flag_ic flag_cv flag_bq flag_ky flag_cf flag_td flag_cl flag_cn flag_cx flag_cc flag_co flag_km flag_cg flag_cd flag_ck flag_cr flag_ci flag_hr flag_cu flag_cw flag_cy flag_cz flag_dk flag_dj flag_dm flag_do flag_ec flag_eg flag_sv flag_gq flag_er flag_ee flag_et flag_eu flag_fk flag_fo flag_fj flag_fi flag_fr flag_gf flag_pf flag_tf flag_ga flag_gm flag_ge flag_de flag_gh flag_gi flag_gr flag_gl flag_gd flag_gp flag_gu flag_gt flag_gg flag_gn flag_gw flag_gy flag_ht flag_hn flag_hk flag_hu flag_is flag_in flag_id flag_ir flag_iq flag_ie flag_im flag_il flag_it flag_jm flag_jp crossed_flags flag_je flag_jo flag_kz flag_ke flag_ki flag_xk flag_kw flag_kg flag_la flag_lv flag_lb flag_ls flag_lr flag_ly flag_li flag_lt flag_lu flag_mo flag_mk flag_mg flag_mw flag_my flag_mv flag_ml flag_mt flag_mh flag_mq flag_mr flag_mu flag_yt flag_mx flag_fm flag_md flag_mc flag_mn flag_me flag_ms flag_ma flag_mz flag_mm flag_na flag_nr flag_np flag_nl flag_nc flag_nz flag_ni flag_ne flag_ng flag_nu flag_nf flag_kp flag_mp flag_no flag_om flag_pk flag_pw flag_ps flag_pa flag_pg flag_py flag_pe flag_ph flag_pn flag_pl flag_pt flag_pr flag_qa flag_re flag_ro flag_ru flag_rw flag_ws flag_sm flag_st flag_sa flag_sn flag_rs flag_sc flag_sl flag_sg flag_sx flag_sk flag_si flag_gs flag_sb flag_so flag_za flag_kr flag_ss flag_es flag_lk flag_bl flag_sh flag_kn flag_lc flag_pm flag_vc flag_sd flag_sr flag_sz flag_se flag_ch flag_sy flag_tw flag_tj flag_tz flag_th flag_tl flag_tg flag_tk flag_to flag_tt flag_tn flag_tr flag_tm flag_tc flag_tv flag_vi flag_ug flag_ua flag_ae flag_gb flag_us flag_uy flag_uz flag_vu flag_va flag_ve flag_vn flag_wf flag_eh flag_ye flag_zm flag_zw flag_ac flag_ta flag_bv flag_hm flag_sj flag_um flag_ea flag_cp flag_dg flag_mf united_nations england scotland wales"}}:{tones:{title:"Diversity",emoji:"santa runner surfer swimmer lifter ear nose point_up_2 point_down point_left point_right punch wave ok_hand thumbsup thumbsdown clap open_hands boy girl man woman cop bride_with_veil person_with_blond_hair man_with_gua_pi_mao man_with_turban older_man grandma baby construction_worker princess angel information_desk_person guardsman dancer nail_care massage haircut muscle spy hand_splayed middle_finger vulcan no_good ok_woman bow raising_hand raised_hands person_frowning person_with_pouting_face pray rowboat bicyclist mountain_bicyclist walking bath metal point_up basketball_player fist raised_hand v writing_hand"},recent:{icon:"clock3",title:"Recent",emoji:""},smileys_people:{icon:"yum",title:"Smileys & People",emoji:"grinning grimacing grin joy smiley smile sweat_smile laughing innocent wink blush slight_smile upside_down relaxed yum relieved heart_eyes kissing_heart kissing kissing_smiling_eyes kissing_closed_eyes stuck_out_tongue_winking_eye stuck_out_tongue_closed_eyes stuck_out_tongue money_mouth nerd sunglasses hugging smirk no_mouth neutral_face expressionless unamused rolling_eyes thinking flushed disappointed worried angry rage pensive confused slight_frown frowning2 persevere confounded tired_face weary triumph open_mouth scream fearful cold_sweat hushed frowning anguished cry disappointed_relieved sleepy sweat sob dizzy_face astonished zipper_mouth mask thermometer_face head_bandage sleeping zzz poop smiling_imp imp japanese_ogre japanese_goblin skull ghost alien robot smiley_cat smile_cat joy_cat heart_eyes_cat smirk_cat kissing_cat scream_cat crying_cat_face pouting_cat raised_hands clap wave thumbsup thumbsdown punch fist v ok_hand raised_hand open_hands muscle pray point_up point_up_2 point_down point_left point_right middle_finger hand_splayed metal vulcan writing_hand nail_care lips tongue ear nose eye eyes bust_in_silhouette busts_in_silhouette speaking_head baby boy girl man woman person_with_blond_hair older_man older_woman man_with_gua_pi_mao man_with_turban cop construction_worker guardsman spy santa angel princess bride_with_veil walking runner dancer dancers couple two_men_holding_hands two_women_holding_hands bow information_desk_person no_good ok_woman raising_hand person_with_pouting_face person_frowning haircut massage couple_with_heart couple_ww couple_mm couplekiss kiss_ww kiss_mm family family_mwg family_mwgb family_mwbb family_mwgg family_wwb family_wwg family_wwgb family_wwbb family_wwgg family_mmb family_mmg family_mmgb family_mmbb family_mmgg womans_clothes shirt jeans necktie dress bikini kimono lipstick kiss footprints high_heel sandal boot mans_shoe athletic_shoe womans_hat tophat helmet_with_cross mortar_board crown school_satchel pouch purse handbag briefcase eyeglasses dark_sunglasses ring closed_umbrella"},animals_nature:{icon:"hamster",title:"Animals & Nature",emoji:"dog cat mouse hamster rabbit bear panda_face koala tiger lion_face cow pig pig_nose frog octopus monkey_face see_no_evil hear_no_evil speak_no_evil monkey chicken penguin bird baby_chick hatching_chick hatched_chick wolf boar horse unicorn bee bug snail beetle ant spider scorpion crab snake turtle tropical_fish fish blowfish dolphin whale whale2 crocodile leopard tiger2 water_buffalo ox cow2 dromedary_camel camel elephant goat ram sheep racehorse pig2 rat mouse2 rooster turkey dove dog2 poodle cat2 rabbit2 chipmunk feet dragon dragon_face cactus christmas_tree evergreen_tree deciduous_tree palm_tree seedling herb shamrock four_leaf_clover bamboo tanabata_tree leaves fallen_leaf maple_leaf ear_of_rice hibiscus sunflower rose tulip blossom cherry_blossom bouquet mushroom chestnut jack_o_lantern shell spider_web earth_americas earth_africa earth_asia full_moon waning_gibbous_moon last_quarter_moon waning_crescent_moon new_moon waxing_crescent_moon first_quarter_moon waxing_gibbous_moon new_moon_with_face full_moon_with_face first_quarter_moon_with_face last_quarter_moon_with_face sun_with_face crescent_moon star star2 dizzy sparkles comet sunny white_sun_small_cloud partly_sunny white_sun_cloud white_sun_rain_cloud cloud cloud_rain thunder_cloud_rain cloud_lightning zap fire boom snowflake cloud_snow snowman2 snowman wind_blowing_face dash cloud_tornado fog umbrella2 umbrella droplet sweat_drops ocean"},food_drink:{icon:"pizza",title:"Food & Drink",emoji:"green_apple apple pear tangerine lemon banana watermelon grapes strawberry melon cherries peach pineapple tomato eggplant hot_pepper corn sweet_potato honey_pot bread cheese poultry_leg meat_on_bone fried_shrimp egg hamburger fries hotdog pizza spaghetti taco burrito ramen stew fish_cake sushi bento curry rice_ball rice rice_cracker oden dango shaved_ice ice_cream icecream cake birthday custard candy lollipop chocolate_bar popcorn doughnut cookie beer beers wine_glass cocktail tropical_drink champagne sake tea coffee baby_bottle fork_and_knife fork_knife_plate"},activity:{icon:"basketball",title:"Activity",emoji:"soccer basketball football baseball tennis volleyball rugby_football 8ball golf golfer ping_pong badminton hockey field_hockey cricket ski skier snowboarder ice_skate bow_and_arrow fishing_pole_and_fish rowboat swimmer surfer bath basketball_player lifter bicyclist mountain_bicyclist horse_racing levitate trophy running_shirt_with_sash medal military_medal reminder_ribbon rosette ticket tickets performing_arts art circus_tent microphone headphones musical_score musical_keyboard saxophone trumpet guitar violin clapper video_game space_invader dart game_die slot_machine bowling"},travel_places:{icon:"rocket",title:"Travel & Places",emoji:"red_car taxi blue_car bus trolleybus race_car police_car ambulance fire_engine minibus truck articulated_lorry tractor motorcycle bike rotating_light oncoming_police_car oncoming_bus oncoming_automobile oncoming_taxi aerial_tramway mountain_cableway suspension_railway railway_car train monorail bullettrain_side bullettrain_front light_rail mountain_railway steam_locomotive train2 metro tram station helicopter airplane_small airplane airplane_departure airplane_arriving sailboat motorboat speedboat ferry cruise_ship rocket satellite_orbital seat anchor construction fuelpump busstop vertical_traffic_light traffic_light checkered_flag ship ferris_wheel roller_coaster carousel_horse construction_site foggy tokyo_tower factory fountain rice_scene mountain mountain_snow mount_fuji volcano japan camping tent park motorway railway_track sunrise sunrise_over_mountains desert beach island city_sunset city_dusk cityscape night_with_stars bridge_at_night milky_way stars sparkler fireworks rainbow homes european_castle japanese_castle stadium statue_of_liberty house house_with_garden house_abandoned office department_store post_office european_post_office hospital bank hotel convenience_store school love_hotel wedding classical_building church mosque synagogue kaaba shinto_shrine"},objects:{icon:"bulb",title:"Objects",emoji:"watch iphone calling computer keyboard desktop printer mouse_three_button trackball joystick compression minidisc floppy_disk cd dvd vhs camera camera_with_flash video_camera movie_camera projector film_frames telephone_receiver telephone pager fax tv radio microphone2 level_slider control_knobs stopwatch timer alarm_clock clock hourglass_flowing_sand hourglass satellite battery electric_plug bulb flashlight candle wastebasket oil money_with_wings dollar yen euro pound moneybag credit_card gem scales wrench hammer hammer_pick tools pick nut_and_bolt gear chains gun bomb knife dagger crossed_swords shield smoking skull_crossbones coffin urn amphora crystal_ball prayer_beads barber alembic telescope microscope hole pill syringe thermometer label bookmark toilet shower bathtub key key2 couch sleeping_accommodation bed door bellhop frame_photo map beach_umbrella moyai shopping_bags balloon flags ribbon gift confetti_ball tada dolls wind_chime crossed_flags izakaya_lantern envelope envelope_with_arrow incoming_envelope e-mail love_letter postbox mailbox_closed mailbox mailbox_with_mail mailbox_with_no_mail package postal_horn inbox_tray outbox_tray scroll page_with_curl bookmark_tabs bar_chart chart_with_upwards_trend chart_with_downwards_trend page_facing_up date calendar calendar_spiral card_index card_box ballot_box file_cabinet clipboard notepad_spiral file_folder open_file_folder dividers newspaper2 newspaper notebook closed_book green_book blue_book orange_book notebook_with_decorative_cover ledger books book link paperclip paperclips scissors triangular_ruler straight_ruler pushpin round_pushpin triangular_flag_on_post flag_white flag_black closed_lock_with_key lock unlock lock_with_ink_pen pen_ballpoint pen_fountain black_nib pencil pencil2 crayon paintbrush mag mag_right"},symbols:{icon:"heartpulse",title:"Symbols",emoji:"heart yellow_heart green_heart blue_heart purple_heart broken_heart heart_exclamation two_hearts revolving_hearts heartbeat heartpulse sparkling_heart cupid gift_heart heart_decoration peace cross star_and_crescent om_symbol wheel_of_dharma star_of_david six_pointed_star menorah yin_yang orthodox_cross place_of_worship ophiuchus aries taurus gemini cancer leo virgo libra scorpius sagittarius capricorn aquarius pisces id atom u7a7a u5272 radioactive biohazard mobile_phone_off vibration_mode u6709 u7121 u7533 u55b6 u6708 eight_pointed_black_star vs accept white_flower ideograph_advantage secret congratulations u5408 u6e80 u7981 a b ab cl o2 sos no_entry name_badge no_entry_sign x o anger hotsprings no_pedestrians do_not_litter no_bicycles non-potable_water underage no_mobile_phones exclamation grey_exclamation question grey_question bangbang interrobang 100 low_brightness high_brightness trident fleur-de-lis part_alternation_mark warning children_crossing beginner recycle u6307 chart sparkle eight_spoked_asterisk negative_squared_cross_mark white_check_mark diamond_shape_with_a_dot_inside cyclone loop globe_with_meridians m atm sa passport_control customs baggage_claim left_luggage wheelchair no_smoking wc parking potable_water mens womens baby_symbol restroom put_litter_in_its_place cinema signal_strength koko ng ok up cool new free zero one two three four five six seven eight nine ten 1234 arrow_forward pause_button play_pause stop_button record_button track_next track_previous fast_forward rewind twisted_rightwards_arrows repeat repeat_one arrow_backward arrow_up_small arrow_down_small arrow_double_up arrow_double_down arrow_right arrow_left arrow_up arrow_down arrow_upper_right arrow_lower_right arrow_lower_left arrow_upper_left arrow_up_down left_right_arrow arrows_counterclockwise arrow_right_hook leftwards_arrow_with_hook arrow_heading_up arrow_heading_down hash asterisk information_source abc abcd capital_abcd symbols musical_note notes wavy_dash curly_loop heavy_check_mark arrows_clockwise heavy_plus_sign heavy_minus_sign heavy_division_sign heavy_multiplication_x heavy_dollar_sign currency_exchange copyright registered tm end back on top soon ballot_box_with_check radio_button white_circle black_circle red_circle large_blue_circle small_orange_diamond small_blue_diamond large_orange_diamond large_blue_diamond small_red_triangle black_small_square white_small_square black_large_square white_large_square small_red_triangle_down black_medium_square white_medium_square black_medium_small_square white_medium_small_square black_square_button white_square_button speaker sound loud_sound mute mega loudspeaker bell no_bell black_joker mahjong spades clubs hearts diamonds flower_playing_cards thought_balloon anger_right speech_balloon clock1 clock2 clock3 clock4 clock5 clock6 clock7 clock8 clock9 clock10 clock11 clock12 clock130 clock230 clock330 clock430 clock530 clock630 clock730 clock830 clock930 clock1030 clock1130 clock1230 eye_in_speech_bubble"},flags:{icon:"flag_gb",title:"Flags",emoji:"ac af al dz ad ao ai ag ar am aw au at az bs bh bd bb by be bz bj bm bt bo ba bw br bn bg bf bi cv kh cm ca ky cf td flag_cl cn co km cg flag_cd cr hr cu cy cz dk dj dm do ec eg sv gq er ee et fk fo fj fi fr pf ga gm ge de gh gi gr gl gd gu gt gn gw gy ht hn hk hu is in flag_id ir iq ie il it ci jm jp je jo kz ke ki xk kw kg la lv lb ls lr ly li lt lu mo mk mg mw my mv ml mt mh mr mu mx fm md mc mn me ms ma mz mm na nr np nl nc nz ni ne flag_ng nu kp no om pk pw ps pa pg py pe ph pl pt pr qa ro ru rw sh kn lc vc ws sm st flag_sa sn rs sc sl sg sk si sb so za kr es lk sd sr sz se ch sy tw tj tz th tl tg to tt tn tr flag_tm flag_tm ug ua ae gb us vi uy uz vu va ve vn wf eh ye zm zw re ax ta io bq cx cc gg im yt nf pn bl pm gs tk bv hm sj um ic ea cp dg as aq vg ck cw eu gf tf gp mq mp sx ss tc "}},t}function T(t){var n=C();if(t&&t.filters){var a=n.filters;e.each(t.filters,(function(t,n){S(n)&&!e.isEmptyObject(n)?e.each(n,(function(e,n){a[t][e]=n})):delete a[t]})),t.filters=a}return e.extend({},n,t)}function I(e,t){return e.replace(u,(function(e){var n=r[0===p?"jsecapeMap":"jsEscapeMap"];return void 0!==e&&e in n?b(t,n[e],r.toShort(e)):e}))}function k(e,t){return e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/`/g,"&#x60;").replace(/(?:\r\n|\r|\n)/g,"\n").replace(/(\n+)/g,"<div>$1</div>").replace(/\n/g,"<br/>").replace(/<br\/><\/div>/g,"</div>"),t.shortnames&&(e=r.shortnameToUnicode(e)),I(e,t.emojiTemplate).replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/  /g,"&nbsp;&nbsp;")}function D(e,t){switch(e=e.replace(/&#10;/g,"\n").replace(/&#09;/g,"\t").replace(/<img[^>]*alt="([^"]+)"[^>]*>/gi,"$1").replace(/\n|\r/g,"").replace(/<br[^>]*>/gi,"\n").replace(/(?:<(?:div|p|ol|ul|li|pre|code|object)[^>]*>)+/gi,"<div>").replace(/(?:<\/(?:div|p|ol|ul|li|pre|code|object)>)+/gi,"</div>").replace(/\n<div><\/div>/gi,"\n").replace(/<div><\/div>\n/gi,"\n").replace(/(?:<div>)+<\/div>/gi,"\n").replace(/([^\n])<\/div><div>/gi,"$1\n").replace(/(?:<\/div>)+/gi,"</div>").replace(/([^\n])<\/div>([^\n])/gi,"$1\n$2").replace(/<\/div>/gi,"").replace(/([^\n])<div>/gi,"$1\n").replace(/\n<div>/gi,"\n").replace(/<div>\n/gi,"\n\n").replace(/<(?:[^>]+)?>/g,"").replace(new RegExp(g,"g"),"").replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&#x60;/g,"`").replace(/&#60;/g,"<").replace(/&#62;/g,">").replace(/&amp;/g,"&"),t.saveEmojisAs){case"image":e=I(e,t.emojiTemplate);break;case"shortname":e=r.toShort(e)}return e}function x(){var e=this,t=e.editor[0].offsetWidth-e.editor[0].clientWidth,n=parseInt(e.button.css("marginRight"));n!==t&&(e.button.css({marginRight:t}),e.floatingPicker&&e.picker.css({right:parseInt(e.picker.css("right"))-n+t}))}function M(){var t=this;if(!t.sprite&&t.lasyEmoji[0]&&t.lasyEmoji.eq(0).is(".lazy-emoji")){var n=t.picker.offset().top,a=n+t.picker.height()+20;t.lasyEmoji.each((function(){var t=e(this),o=t.offset().top;if(o>n&&o<a&&t.attr("src",t.data("src")).removeClass("lazy-emoji"),o>a)return!1})),t.lasyEmoji=t.lasyEmoji.filter(".lazy-emoji")}}function P(e,t){return(t?"":".")+m+(e?"-"+e:"")}function O(t){var n=e("<div/>",S(t)?t:{class:P(t,!0)});return e.each(f.call(arguments).slice(1),(function(t,a){e.isFunction(a)&&(a=a.call(n)),a&&e(a).appendTo(n)})),n}function R(){return localStorage.getItem("recent_emojis")||""}function N(t,n){var a=R();if(!t.recent||t.recent!==a||n){if(a.length){var o,r,i=t.scrollArea.is(".skinnable");i||(o=t.scrollArea.scrollTop(),n&&t.recentCategory.show(),r=t.recentCategory.is(":visible")?t.recentCategory.height():0);var s=y(a,t.emojiBtnTemplate,!0).split("|").join("");if(t.recentCategory.children(".emojibtn").remove(),e(s).insertAfter(t.recentCategory.children(".emojionearea-category-title")),t.recentCategory.children(".emojibtn").on("click",(function(){t.trigger("emojibtn.click",e(this))})),t.recentFilter.show(),!i){t.recentCategory.show();var l=t.recentCategory.height();r!==l&&t.scrollArea.scrollTop(o+l-r)}}else t.recentFilter.hasClass("active")&&t.recentFilter.removeClass("active").next().addClass("active"),t.recentCategory.hide(),t.recentFilter.hide();t.recent=a}}function L(e,t){var n=R().split("|"),a=n.indexOf(t);-1!==a&&n.splice(a,1),n.unshift(t),n.length>9&&n.pop(),localStorage.setItem("recent_emojis",n.join("|")),N(e)}function $(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function U(t,n,a){t.options=a=T(a),t.sprite=a.sprite&&p<3,t.inline=null===a.inline?n.is("INPUT"):a.inline,t.shortnames=a.shortnames,t.saveEmojisAs=a.saveEmojisAs,t.standalone=a.standalone,t.emojiTemplate='<img alt="{alt}" class="emojione'+(t.sprite?'-{uni}" src="'+d+'"/>':'emoji" src="{img}"/>'),t.emojiTemplateAlt=t.sprite?'<i class="emojione-{uni}"/>':'<img class="emojioneemoji" src="{img}"/>',t.emojiBtnTemplate='<i class="emojibtn" role="button" data-name="{name}" title="{friendlyName}">'+t.emojiTemplateAlt+"</i>",t.recentEmojis=a.recentEmojis&&$();var o=a.pickerPosition;t.floatingPicker="top"===o||"bottom"===o,t.source=n,(n.is(":disabled")||n.is(".disabled"))&&t.disable();var i,s,u,f,b,A,w,E,C,I,U=n.is("TEXTAREA")||n.is("INPUT")?"val":"text",j=O("tones",a.tones?function(){this.addClass(P("tones-"+a.tonesStyle,!0));for(var t=0;t<=5;t++)this.append(e("<i/>",{class:"btn-tone btn-tone-"+t+(t?"":" active"),"data-skin":t,role:"button"}))}:null),F=O({class:m+(t.standalone?" "+m+"-standalone ":" ")+(n.attr("class")||""),role:"application"},i=t.editor=O("editor").attr({contenteditable:!t.standalone,placeholder:a.placeholder||n.data("placeholder")||n.attr("placeholder")||"",tabindex:0}),s=t.button=O("button",O("button-open"),O("button-close")).attr("title",a.buttonTitle),u=t.picker=O("picker",O("wrapper",f=O("filters"),a.search?A=O("search-panel",O("search",a.search?function(){t.search=e("<input/>",{placeholder:a.searchPlaceholder||"",type:"text",class:"search"}),this.append(t.search)}:null),j):null,I=O("scroll-area",a.tones&&!a.search?O("tones-panel",j):null,w=O("emojis-list")))).addClass(P("picker-position-"+a.pickerPosition,!0)).addClass(P("filters-position-"+a.filtersPosition,!0)).addClass(P("search-position-"+a.searchPosition,!0)).addClass("hidden"));a.search&&A.addClass(P("with-search",!0)),t.searchSel=null,i.data(n.data()),e.each(a.attributes,(function(e,t){i.attr(e,t)}));var q=O("category-block").attr({"data-tone":0}).prependTo(w);if(e.each(a.filters,(function(n,o){var r=0;if("recent"!==n||t.recentEmojis){if("tones"!==n)e("<i/>",{class:P("filter",!0)+" "+P("filter-"+n,!0),"data-filter":n,title:o.title}).wrapInner(y(o.icon,t.emojiTemplateAlt)).appendTo(f);else{if(!a.tones)return;r=5}do{var i,s=o.emoji.replace(/[\s,;]+/g,"|");i=0===r?O("category").attr({name:n,"data-tone":r}).appendTo(q):O("category-block").attr({name:n,"data-tone":r}).appendTo(w),r>0&&(i.hide(),s=s.split("|").join("_tone"+r+"|")+"_tone"+r),"recent"===n&&(s=R()),s=y(s,t.sprite?'<i class="emojibtn" role="button" data-name="{name}" title="{friendlyName}"><i class="emojione-{uni}"></i></i>':'<i class="emojibtn" role="button" data-name="{name}" title="{friendlyName}"><img class="emojioneemoji lazy-emoji" data-src="{img}"/></i>',!0).split("|").join(""),i.html(s),e('<div class="emojionearea-category-title"/>').text(o.title).prependTo(i)}while(--r>0)}})),a.filters=null,t.sprite||(t.lasyEmoji=w.find(".lazy-emoji")),(b=f.find(P("filter"))).eq(0).addClass("active"),C=w.find(P("category-block")),E=w.find(P("category")),t.recentFilter=b.filter('[data-filter="recent"]'),t.recentCategory=E.filter("[name=recent]"),t.scrollArea=I,a.container?e(a.container).wrapInner(F):F.insertAfter(n),a.hideSource&&n.hide(),t.setText(n[U]()),n[U](t.getText()),x.apply(t),t.standalone&&!t.getText().length){var Y=e(n).data("emoji-placeholder")||a.emojiPlaceholder;t.setText(Y),i.addClass("has-placeholder")}_(t,w.find(".emojibtn"),{click:"emojibtn.click"}),_(t,window,{resize:"!resize"}),_(t,j.children(),{click:"tone.click"}),_(t,[u,s],{mousedown:"!mousedown"},i),_(t,s,{click:"button.click"}),_(t,i,{paste:"!paste"},i),_(t,i,["focus","blur"],(function(){return!t.stayFocused&&i})),_(t,u,{mousedown:"picker.mousedown",mouseup:"picker.mouseup",click:"picker.click",keyup:"picker.keyup",keydown:"picker.keydown",keypress:"picker.keypress"}),_(t,i,["mousedown","mouseup","click","keyup","keydown","keypress"]),_(t,u.find(".emojionearea-filter"),{click:"filter.click"}),_(t,n,{change:"source.change"}),a.search&&_(t,t.search,{keyup:"search.keypress",focus:"search.focus",blur:"search.blur"});var H=!1;if(I.on("scroll",(function(){if(!H&&(M.call(t),I.is(":not(.skinnable)"))){var n=E.eq(0),a=I.offset().top;E.each((function(t,o){if(e(o).offset().top-a>=10)return!1;n=e(o)}));var o=b.filter('[data-filter="'+n.attr("name")+'"]');o[0]&&!o.is(".active")&&(b.removeClass("active"),o.addClass("active"))}})),t.on("@filter.click",(function(e){var n=e.is(".active");if(I.is(".skinnable")){if(n)return;j.children().eq(0).click()}H=!0,n||(b.filter(".active").removeClass("active"),e.addClass("active"));var a=E.filter('[name="'+e.data("filter")+'"]').offset().top,o=I.scrollTop(),r=I.offset().top;I.stop().animate({scrollTop:a+o-r-2},200,"swing",(function(){M.call(t),H=!1}))})).on("@picker.show",(function(){t.recentEmojis&&N(t),M.call(t)})).on("@tone.click",(function(e){j.children().removeClass("active");var n=e.addClass("active").data("skin");n?(I.addClass("skinnable"),C.hide().filter("[data-tone="+n+"]").show(),b.removeClass("active")):(I.removeClass("skinnable"),C.hide().filter("[data-tone=0]").show(),b.eq(0).click()),M.call(t),a.search&&t.trigger("search.keypress")})).on("@button.click",(function(e){e.is(".active")?t.hidePicker():(t.showPicker(),t.searchSel=null)})).on("@!paste",(function(n,a){var o=function(a){var o="caret-"+(new Date).getTime(),r=k(a,t);v(r),v('<i id="'+o+'"></i>'),n.scrollTop(s);var i=e("#"+o),l=i.offset().top-n.offset().top,c=n.height();(s+l>=c||s>l)&&n.scrollTop(s+l-2*c/3),i.remove(),t.stayFocused=!1,x.apply(t),h(t,"paste",[n,a,r])};if(a.originalEvent.clipboardData){var r=a.originalEvent.clipboardData.getData("text/plain");return o(r),a.preventDefault?a.preventDefault():a.stop(),a.returnValue=!1,a.stopPropagation(),!1}t.stayFocused=!0,v("<span>"+g+"</span>");var i=l(n[0]),s=n.scrollTop(),u=e("<div/>",{contenteditable:!0}).css({position:"fixed",left:"-999px",width:"1px",height:"1px",top:"20px",overflow:"hidden"}).appendTo(e("BODY")).focus();window.setTimeout((function(){n.focus(),c(n[0],i);var e=D(u.html().replace(/\r\n|\n|\r/g,"<br>"),t);u.remove(),o(e)}),200)})).on("@emojibtn.click",(function(e){i.removeClass("has-placeholder"),null!==t.searchSel&&(i.focus(),c(i[0],t.searchSel),t.searchSel=null),t.standalone?(i.html(y(e.data("name"),t.emojiTemplate)),t.trigger("blur")):(l(i[0]),v(y(e.data("name"),t.emojiTemplate))),t.recentEmojis&&L(t,e.data("name")),t.trigger("search.keypress")})).on("@!resize @keyup @emojibtn.click",x).on("@!mousedown",(function(n,a){return e(a.target).hasClass("search")?(t.stayFocused=!0,null===t.searchSel&&(t.searchSel=l(n[0]))):(F.is(".focused")||n.trigger("focus"),a.preventDefault()),!1})).on("@change",(function(){var e=t.editor.html().replace(/<\/?(?:div|span|p)[^>]*>/gi,"");e.length&&!/^<br[^>]*>$/i.test(e)||t.editor.html(t.content=""),n[U](t.getText())})).on("@source.change",(function(){t.setText(n[U]()),h("change")})).on("@focus",(function(){F.addClass("focused")})).on("@blur",(function(){F.removeClass("focused"),a.hidePickerOnBlur&&t.hidePicker();var e=t.editor.html();t.content!==e?(t.content=e,h(t,"change",[t.editor]),n.trigger("blur").trigger("change")):n.trigger("blur"),a.search&&(t.search.val(""),t.trigger("search.keypress",!0))})),a.search&&t.on("@search.focus",(function(){t.stayFocused=!0,t.search.addClass("focused")})).on("@search.keypress",(function(n){var o=u.find(".emojionearea-filter"),r=a.tones?j.find("i.active").data("skin"):0,i=t.search.val().replace(/ /g,"_").replace(/"/g,'\\"');i&&i.length?(t.recentFilter.hasClass("active")&&t.recentFilter.removeClass("active").next().addClass("active"),t.recentCategory.hide(),t.recentFilter.hide(),C.each((function(){var t=function(e,t){var n=e.find('.emojibtn[data-name*="'+i+'"]');0===n.length?(e.data("tone")===t&&e.hide(),o.filter('[data-filter="'+e.attr("name")+'"]').hide()):(e.find('.emojibtn:not([data-name*="'+i+'"])').hide(),n.show(),e.data("tone")===t&&e.show(),o.filter('[data-filter="'+e.attr("name")+'"]').show())},n=e(this);0===n.data("tone")?E.filter(':not([name="recent"])').each((function(){t(e(this),0)})):t(n,r)})),H?M.call(t):I.trigger("scroll")):(N(t,!0),C.filter('[data-tone="'+j.find("i.active").data("skin")+'"]:not([name="recent"])').show(),e(".emojibtn",C).show(),o.show(),M.call(t))})).on("@search.blur",(function(){t.stayFocused=!1,t.search.removeClass("focused"),t.trigger("blur")})),a.shortcuts&&t.on("@keydown",(function(e,n){n.ctrlKey||(9==n.which?(n.preventDefault(),s.click()):27==n.which&&(n.preventDefault(),s.is(".active")&&t.hidePicker()))})),S(a.events)&&!e.isEmptyObject(a.events)&&e.each(a.events,(function(e,n){t.on(e.replace(/_/g,"."),n)})),a.autocomplete){var B=function(){var n={maxCount:a.textcomplete.maxCount,placement:a.textcomplete.placement};a.shortcuts&&(n.onKeydown=function(e,t){if(!e.ctrlKey&&13==e.which)return t.KEY_ENTER});var o=e.map(r.emojioneList,(function(e,t){return a.autocompleteTones?t:/_tone[12345]/.test(t)?null:t}));o.sort(),i.textcomplete([{id:m,match:/\B(:[\-+\w]*)$/,search:function(t,n){n(e.map(o,(function(e){return 0===e.indexOf(t)?e:null})))},template:function(e){return y(e,t.emojiTemplate)+" "+e.replace(/:/g,"")},replace:function(e){return y(e,t.emojiTemplate)},cache:!0,index:1}],n),a.textcomplete.placement&&"static"==e(i.data("textComplete").option.appendTo).css("position")&&e(i.data("textComplete").option.appendTo).css("position","relative")},G=function(){if(t.disabled){var e=function(){t.off("enabled",e),B()};t.on("enabled",e)}else B()};e.fn.textcomplete?G():e.ajax({url:"https://cdn.rawgit.com/yuku-t/jquery-textcomplete/v1.3.4/dist/jquery.textcomplete.js",dataType:"script",cache:!0,success:G})}t.inline&&(F.addClass(P("inline",!0)),t.on("@keydown",(function(e,t){13==t.which&&t.preventDefault()}))),/firefox/i.test(navigator.userAgent)&&document.execCommand("enableObjectResizing",!1,!1),t.isReady=!0,t.trigger("onLoad",i),t.trigger("ready",i)}window.getSelection&&document.createRange?(l=function(e){var t=window.getSelection&&window.getSelection();if(t&&t.rangeCount>0)return t.getRangeAt(0)},c=function(e,t){var n=document.createRange();n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset),(t=window.getSelection()).removeAllRanges(),t.addRange(n)}):document.selection&&document.body.createTextRange&&(l=function(e){return document.selection.createRange()},c=function(e,t){var n=document.body.createTextRange();n.moveToElementText(e),n.setStart(t.startContanier,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n.select()});var j={defaultBase:"https://cdnjs.cloudflare.com/ajax/libs/emojione/",defaultBase3:"https://cdn.jsdelivr.net/",base:null,isLoading:!1};function F(t){var n,o=A();t=T(t),j.isLoading||(!r||E(w(r))<2?(j.isLoading=!0,n=E(o)>5?j.defaultBase3+"npm/emojione@"+o:E(o)>4?j.defaultBase3+"emojione/"+o:j.defaultBase+"/"+o,e.ajax({url:n+"/lib/js/emojione.min.js",dataType:"script",cache:!0,success:function(){var n;for(o=w(r=a),(p=E(o))>4?(j.base=j.defaultBase3+"emojione/assets/"+o,n=j.base+"/sprites/emojione-sprite-"+r.emojiSize+".css"):(j.base=j.defaultBase+o+"/assets",n=j.base+"/sprites/emojione.sprites.css"),t.sprite&&(document.createStyleSheet?document.createStyleSheet(n):e("<link/>",{rel:"stylesheet",href:n}).appendTo("head"));i.length;)i.shift().call();j.isLoading=!1}})):(o=w(r),p=E(o),j.base=p>4?j.defaultBase3+"emojione/assets/"+o:j.defaultBase+o+"/assets")),s((function(){var e="";t.useInternalCDN&&(p>4&&(e=r.emojiSize+"/"),r.imagePathPNG=j.base+"/png/"+e,r.imagePathSVG=j.base+"/svg/"+e,r.imagePathSVGSprites=j.base+"/sprites/emojione.sprites.svg",r.imageType=t.imageType),E(o)>4?(u=r.regUnicode,r.imageType=t.imageType||"png"):u=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+r.unicodeRegexp+")","gi")}))}var q=function(e,a){var r=this;F(a),n[r.id=++t]={},o[r.id]={},s((function(){U(r,e,a)}))};function Y(t,n){n=n.replace(/^@/,"");var a=t.id;o[a][n]&&(e.each(o[a][n],(function(a,o){e.each(e.isArray(o[0])?o[0]:[o[0]],(function(a,r){e(r).on(o[1],(function(){var a=f.call(arguments),r=e.isFunction(o[2])?o[2].apply(t,[n].concat(a)):o[2];r&&h(t,n,[r].concat(a))}))}))})),o[a][n]=null)}q.prototype.on=function(t,a){if(t&&e.isFunction(a)){var o=this;e.each(t.toLowerCase().split(" "),(function(e,t){Y(o,t),(n[o.id][t]||(n[o.id][t]=[])).push(a)}))}return this},q.prototype.off=function(t,a){if(t){var o=this.id;e.each(t.toLowerCase().replace(/_/g,".").split(" "),(function(t,r){n[o][r]&&!/^@/.test(r)&&(a?e.each(n[o][r],(function(e,t){t===a&&n[o][r].splice(e,1)})):n[o][r]=[])}))}return this},q.prototype.trigger=function(){var e=f.call(arguments),t=[this].concat(e.slice(0,1));return t.push(e.slice(1)),h.apply(this,t)},q.prototype.setFocus=function(){var e=this;return s((function(){e.editor.focus()})),e},q.prototype.setText=function(e){var t=this;return s((function(){t.editor.html(k(e,t)),t.content=t.editor.html(),h(t,"change",[t.editor]),x.apply(t)})),t},q.prototype.getText=function(){return D(this.editor.html(),this)},q.prototype.showPicker=function(){var e=this;return e._sh_timer&&window.clearTimeout(e._sh_timer),e.picker.removeClass("hidden"),e._sh_timer=window.setTimeout((function(){e.button.addClass("active")}),50),h(e,"picker.show",[e.picker]),e},q.prototype.hidePicker=function(){var e=this;return e._sh_timer&&window.clearTimeout(e._sh_timer),e.button.removeClass("active"),e._sh_timer=window.setTimeout((function(){e.picker.addClass("hidden")}),500),h(e,"picker.hide",[e.picker]),e},q.prototype.enable=function(){var e=this,t=function(){e.disabled=!1,e.editor.prop("contenteditable",!0),e.button.show();var t=e[e.standalone?"button":"editor"];t.parent().removeClass("emojionearea-disable"),h(e,"enabled",[t])};return e.isReady?t():e.on("ready",t),e},q.prototype.disable=function(){var e=this;e.disabled=!0;var t=function(){e.editor.prop("contenteditable",!1),e.hidePicker(),e.button.hide();var t=e[e.standalone?"button":"editor"];t.parent().addClass("emojionearea-disable"),h(e,"disabled",[t])};return e.isReady?t():e.on("ready",t),e},e.fn.emojioneArea=function(t){return this.each((function(){return this.emojioneArea||e.data(this,"emojioneArea",this.emojioneArea=new q(e(this),t)),this.emojioneArea}))},e.fn.emojioneArea.defaults=C(),e.fn.emojioneAreaText=function(t){t=T(t);var n=this,a={shortnames:!t||void 0===t.shortnames||t.shortnames,emojiTemplate:'<img alt="{alt}" class="emojione'+(t&&t.sprite&&p<3?'-{uni}" src="'+d:'emoji" src="{img}')+'"/>'};return F(t),s((function(){n.each((function(){var t=e(this);return t.hasClass("emojionearea-text")||t.addClass("emojionearea-text").html(k(t.is("TEXTAREA")||t.is("INPUT")?t.val():t.text(),a)),t}))})),this}}(n("./node_modules/jquery/dist/jquery.js"))},"./node_modules/engine.io-client/lib/globalThis.browser.js":e=>{e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"./node_modules/engine.io-client/lib/index.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/socket.js");e.exports=(e,t)=>new a(e,t),e.exports.Socket=a,e.exports.protocol=a.protocol,e.exports.Transport=n("./node_modules/engine.io-client/lib/transport.js"),e.exports.transports=n("./node_modules/engine.io-client/lib/transports/index.js"),e.exports.parser=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/index.js")},"./node_modules/engine.io-client/lib/socket.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/transports/index.js"),o=n("./node_modules/component-emitter/index.js"),r=n("./node_modules/engine.io-client/node_modules/debug/src/browser.js")("engine.io-client:socket"),i=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/index.js"),s=n("./node_modules/engine.io-client/node_modules/parseuri/index.js"),l=n("./node_modules/engine.io-client/node_modules/parseqs/index.js");class c extends o{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=s(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=s(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,jsonp:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{}},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=l.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,this.open()}createTransport(e){r('creating transport "%s"',e);const t=function(e){const t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.opts.query);t.EIO=i.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return r("options: %j",n),new a[e](n)}open(){let e;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){const e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return r("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){r("setting transport %s",e.name);const t=this;this.transport&&(r("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))}probe(e){r('probing transport "%s"',e);let t=this.createTransport(e,{probe:1}),n=!1;const a=this;function o(){if(a.onlyBinaryUpgrades){const e=!this.supportsBinary&&a.transport.supportsBinary;n=n||e}n||(r('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(r('probe transport "%s" pong',e),a.upgrading=!0,a.emit("upgrading",t),!t)return;c.priorWebsocketSuccess="websocket"===t.name,r('pausing current transport "%s"',a.transport.name),a.transport.pause((function(){n||"closed"!==a.readyState&&(r("changing transport and sending upgrade packet"),f(),a.setTransport(t),t.send([{type:"upgrade"}]),a.emit("upgrade",t),t=null,a.upgrading=!1,a.flush())}))}else{r('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,a.emit("upgradeError",n)}})))}function i(){n||(n=!0,f(),t.close(),t=null)}function s(n){const o=new Error("probe error: "+n);o.transport=t.name,i(),r('probe transport "%s" failed because of error: %s',e,n),a.emit("upgradeError",o)}function l(){s("transport closed")}function u(){s("socket closed")}function d(e){t&&e.name!==t.name&&(r('"%s" works - aborting "%s"',e.name,t.name),i())}function f(){t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",l),a.removeListener("close",u),a.removeListener("upgrading",d)}c.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",s),t.once("close",l),this.once("close",u),this.once("upgrading",d),t.open()}onOpen(){if(r("socket open"),this.readyState="open",c.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){r("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(r('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emit("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else r('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=setTimeout((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout)}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()}flush(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(r("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,a){if("function"==typeof t&&(a=t,t=void 0),"function"==typeof n&&(a=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),a&&this.once("flush",a),this.flush()}close(){const e=this;function t(){e.onClose("forced close"),r("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function a(){e.once("upgrade",n),e.once("upgradeError",n)}return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){this.upgrading?a():t()})):this.upgrading?a():t()),this}onError(e){r("socket error %j",e),c.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)}onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){r('socket close with reason: "%s"',e);const n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}}filterUpgrades(e){const t=[];let n=0;const a=e.length;for(;n<a;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}c.priorWebsocketSuccess=!1,c.protocol=i.protocol,e.exports=c},"./node_modules/engine.io-client/lib/transport.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/index.js"),o=n("./node_modules/component-emitter/index.js");e.exports=class extends o{constructor(e){super(),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)}onOpen(){this.readyState="open",this.writable=!0,this.emit("open")}onData(e){const t=a.decodePacket(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){this.emit("packet",e)}onClose(){this.readyState="closed",this.emit("close")}}},"./node_modules/engine.io-client/lib/transports/index.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/xmlhttprequest.js"),o=n("./node_modules/engine.io-client/lib/transports/polling-xhr.js"),r=n("./node_modules/engine.io-client/lib/transports/polling-jsonp.js"),i=n("./node_modules/engine.io-client/lib/transports/websocket.js");t.polling=function(e){let t,n=!1,i=!1;const s=!1!==e.jsonp;if("undefined"!=typeof location){const t="https:"===location.protocol;let a=location.port;a||(a=t?443:80),n=e.hostname!==location.hostname||a!==e.port,i=e.secure!==t}if(e.xdomain=n,e.xscheme=i,t=new a(e),"open"in t&&!e.forceJSONP)return new o(e);if(!s)throw new Error("JSONP disabled");return new r(e)},t.websocket=i},"./node_modules/engine.io-client/lib/transports/polling-jsonp.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/transports/polling.js"),o=n("./node_modules/engine.io-client/lib/globalThis.browser.js"),r=/\n/g,i=/\\n/g;let s;function l(){}e.exports=class extends a{constructor(e){super(e),this.query=this.query||{},s||(s=o.___eio=o.___eio||[]),this.index=s.length;const t=this;s.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=l)}),!1)}get supportsBinary(){return!1}doClose(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),super.doClose()}doPoll(){const e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};const n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t;"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){const e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)}doWrite(e,t){const n=this;let a;if(!this.form){const e=document.createElement("form"),t=document.createElement("textarea"),n=this.iframeId="eio_iframe_"+this.index;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.target=n,e.method="POST",e.setAttribute("accept-charset","utf-8"),t.name="d",e.appendChild(t),document.body.appendChild(e),this.form=e,this.area=t}function o(){s(),t()}function s(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{const e='<iframe src="javascript:0" name="'+n.iframeId+'">';a=document.createElement(e)}catch(e){a=document.createElement("iframe"),a.name=n.iframeId,a.src="javascript:0"}a.id=n.iframeId,n.form.appendChild(a),n.iframe=a}this.form.action=this.uri(),s(),e=e.replace(i,"\\\n"),this.area.value=e.replace(r,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&o()}:this.iframe.onload=o}}},"./node_modules/engine.io-client/lib/transports/polling-xhr.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/xmlhttprequest.js"),o=n("./node_modules/engine.io-client/lib/transports/polling.js"),r=n("./node_modules/component-emitter/index.js"),{pick:i}=n("./node_modules/engine.io-client/lib/util.js"),s=n("./node_modules/engine.io-client/lib/globalThis.browser.js"),l=n("./node_modules/engine.io-client/node_modules/debug/src/browser.js")("engine.io-client:polling-xhr");function c(){}const u=null!=new a({xdomain:!1}).responseType;class d extends r{constructor(e,t){super(),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=i(this.opts,"agent","enablesXDR","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new a(e),n=this;try{l("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},l("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete d.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&this.onData(e)}hasXDR(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR}abort(){this.cleanup()}}if(d.requestsCount=0,d.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",f);else if("function"==typeof addEventListener){addEventListener("onpagehide"in s?"pagehide":"unload",f,!1)}function f(){for(let e in d.requests)d.requests.hasOwnProperty(e)&&d.requests[e].abort()}e.exports=class extends o{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=u&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new d(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e}),a=this;n.on("success",t),n.on("error",(function(e){a.onError("xhr post error",e)}))}doPoll(){l("xhr poll");const e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e}},e.exports.Request=d},"./node_modules/engine.io-client/lib/transports/polling.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/transport.js"),o=n("./node_modules/engine.io-client/node_modules/parseqs/index.js"),r=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/index.js"),i=n("./node_modules/yeast/index.js"),s=n("./node_modules/engine.io-client/node_modules/debug/src/browser.js")("engine.io-client:polling");e.exports=class extends a{get name(){return"polling"}doOpen(){this.poll()}pause(e){const t=this;function n(){s("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){let e=0;this.polling&&(s("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){s("pre-pause polling complete"),--e||n()}))),this.writable||(s("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){s("pre-pause writing complete"),--e||n()})))}else n()}poll(){s("polling"),this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=this;s("polling got data %s",e);r.decodePayload(e,this.socket.binaryType).forEach((function(e,n,a){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():s('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=this;function t(){s("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(s("transport open - closing"),t()):(s("transport not open - deferring close"),this.once("open",t))}write(e){this.writable=!1,r.encodePayload(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emit("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=i()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}}},"./node_modules/engine.io-client/lib/transports/websocket-constructor.browser.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/globalThis.browser.js");e.exports={WebSocket:a.WebSocket||a.MozWebSocket,usingBrowserWebSocket:!0,defaultBinaryType:"arraybuffer"}},"./node_modules/engine.io-client/lib/transports/websocket.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/lib/transport.js"),o=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/index.js"),r=n("./node_modules/engine.io-client/node_modules/parseqs/index.js"),i=n("./node_modules/yeast/index.js"),{pick:s}=n("./node_modules/engine.io-client/lib/util.js"),{WebSocket:l,usingBrowserWebSocket:c,defaultBinaryType:u}=n("./node_modules/engine.io-client/lib/transports/websocket-constructor.browser.js"),d=n("./node_modules/engine.io-client/node_modules/debug/src/browser.js")("engine.io-client:websocket"),f="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class m extends a{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=f?{}:s(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c&&!f?t?new l(e,t):new l(e):new l(e,t,n)}catch(e){return this.emit("error",e)}this.ws.binaryType=this.socket.binaryType||u,this.addEventListeners()}addEventListeners(){const e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}}write(e){const t=this;this.writable=!1;let n=e.length,a=0;const r=n;for(;a<r;a++)!function(e){o.encodePacket(e,t.supportsBinary,(function(a){const o={};if(!c&&(e.options&&(o.compress=e.options.compress),t.opts.perMessageDeflate)){("string"==typeof a?Buffer.byteLength(a):a.length)<t.opts.perMessageDeflate.threshold&&(o.compress=!1)}try{c?t.ws.send(a):t.ws.send(a,o)}catch(e){d("websocket closed before onclose event")}--n||i()}))}(e[a]);function i(){t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0)}}onClose(){a.prototype.onClose.call(this)}doClose(){void 0!==this.ws&&this.ws.close()}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=i()),this.supportsBinary||(e.b64=1),e=r.encode(e),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}check(){return!(!l||"__initialize"in l&&this.name===m.prototype.name)}}e.exports=m},"./node_modules/engine.io-client/lib/util.js":e=>{e.exports.pick=(e,...t)=>t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})},"./node_modules/engine.io-client/lib/xmlhttprequest.js":(e,t,n)=>{const a=n("./node_modules/has-cors/index.js"),o=n("./node_modules/engine.io-client/lib/globalThis.browser.js");e.exports=function(e){const t=e.xdomain,n=e.xscheme,r=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||a))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&r)return new XDomainRequest}catch(e){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},"./node_modules/engine.io-client/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js":(e,t)=>{!function(e){"use strict";t.encode=function(t){var n,a=new Uint8Array(t),o=a.length,r="";for(n=0;n<o;n+=3)r+=e[a[n]>>2],r+=e[(3&a[n])<<4|a[n+1]>>4],r+=e[(15&a[n+1])<<2|a[n+2]>>6],r+=e[63&a[n+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r},t.decode=function(t){var n,a,o,r,i,s=.75*t.length,l=t.length,c=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(n=0;n<l;n+=4)a=e.indexOf(t[n]),o=e.indexOf(t[n+1]),r=e.indexOf(t[n+2]),i=e.indexOf(t[n+3]),d[c++]=a<<2|o>>4,d[c++]=(15&o)<<4|r>>2,d[c++]=(3&r)<<6|63&i;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},"./node_modules/engine.io-client/node_modules/debug/src/browser.js":(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(o=a))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n("./node_modules/engine.io-client/node_modules/debug/src/common.js")(t);const{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"./node_modules/engine.io-client/node_modules/debug/src/common.js":(e,t,n)=>{e.exports=function(e){function t(e){let n,o=null;function r(...e){if(!r.enabled)return;const a=r,o=Number(new Date),i=o-(n||o);a.diff=i,a.prev=n,a.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const r=t.formatters[o];if("function"==typeof r){const t=e[s];n=r.call(a,t),e.splice(s,1),s--}return n})),t.formatArgs.call(a,e);(a.log||t.log).apply(a,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=a,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(r),r}function a(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const a=("string"==typeof e?e:"").split(/[\s,]+/),o=a.length;for(n=0;n<o;n++)a[n]&&("-"===(e=a[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,a;for(n=0,a=t.skips.length;n<a;n++)if(t.skips[n].test(e))return!1;for(n=0,a=t.names.length;n<a;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n("./node_modules/ms/index.js"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},"./node_modules/engine.io-client/node_modules/engine.io-parser/lib/commons.js":e=>{const t=Object.create(null);t.open="0",t.close="1",t.ping="2",t.pong="3",t.message="4",t.upgrade="5",t.noop="6";const n=Object.create(null);Object.keys(t).forEach((e=>{n[t[e]]=e}));e.exports={PACKET_TYPES:t,PACKET_TYPES_REVERSE:n,ERROR_PACKET:{type:"error",data:"parser error"}}},"./node_modules/engine.io-client/node_modules/engine.io-parser/lib/decodePacket.browser.js":(e,t,n)=>{const{PACKET_TYPES_REVERSE:a,ERROR_PACKET:o}=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/commons.js");let r;"function"==typeof ArrayBuffer&&(r=n("./node_modules/engine.io-client/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js"));const i=(e,t)=>{if(r){const n=r.decode(e);return s(n,t)}return{base64:!0,data:e}},s=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}};e.exports=(e,t)=>{if("string"!=typeof e)return{type:"message",data:s(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:i(e.substring(1),t)};return a[n]?e.length>1?{type:a[n],data:e.substring(1)}:{type:a[n]}:o}},"./node_modules/engine.io-client/node_modules/engine.io-parser/lib/encodePacket.browser.js":(e,t,n)=>{const{PACKET_TYPES:a}=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/commons.js"),o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,i=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)};e.exports=({type:e,data:t},n,s)=>{return o&&t instanceof Blob?n?s(t):i(t,s):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?n?s(t instanceof ArrayBuffer?t:t.buffer):i(new Blob([t]),s):s(a[e]+(t||""));var l}},"./node_modules/engine.io-client/node_modules/engine.io-parser/lib/index.js":(e,t,n)=>{const a=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/encodePacket.browser.js"),o=n("./node_modules/engine.io-client/node_modules/engine.io-parser/lib/decodePacket.browser.js"),r=String.fromCharCode(30);e.exports={protocol:4,encodePacket:a,encodePayload:(e,t)=>{const n=e.length,o=new Array(n);let i=0;e.forEach(((e,s)=>{a(e,!1,(e=>{o[s]=e,++i===n&&t(o.join(r))}))}))},decodePacket:o,decodePayload:(e,t)=>{const n=e.split(r),a=[];for(let e=0;e<n.length;e++){const r=o(n[e],t);if(a.push(r),"error"===r.type)break}return a}}},"./node_modules/engine.io-client/node_modules/parseqs/index.js":(e,t)=>{t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),a=0,o=n.length;a<o;a++){var r=n[a].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}},"./node_modules/engine.io-client/node_modules/parseuri/index.js":e=>{var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var a=e,o=e.indexOf("["),r=e.indexOf("]");-1!=o&&-1!=r&&(e=e.substring(0,o)+e.substring(o,r).replace(/:/g,";")+e.substring(r,e.length));for(var i=t.exec(e||""),s={},l=14;l--;)s[n[l]]=i[l]||"";return-1!=o&&-1!=r&&(s.source=a,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(e,t){var n=/\/{2,9}/g,a=t.replace(n,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||a.splice(0,1);"/"==t.substr(t.length-1,1)&&a.splice(a.length-1,1);return a}(0,s.path),s.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,a){t&&(n[t]=a)})),n}(0,s.query),s}},"./node_modules/events/events.js":e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,a=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function r(){r.init.call(this)}e.exports=r,e.exports.once=function(e,t){return new Promise((function(n,a){function o(){void 0!==r&&e.removeListener("error",r),n([].slice.call(arguments))}var r;"error"!==t&&(r=function(n){e.removeListener(t,o),a(n)},e.once("error",r)),e.once(t,o)}))},r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var i=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function c(e,t,n,a){var o,r,i,c;if(s(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(o=l(e))>0&&i.length>o&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(a);return o.listener=n,a.wrapFn=o,o}function f(e,t,n){var a=e._events;if(void 0===a)return[];var o=a[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),a=0;a<t;++a)n[a]=e[a];return n}Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),r.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return l(this)},r.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,r=this._events;if(void 0!==r)o=o&&void 0===r.error;else if(!o)return!1;if(o){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=r[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var c=l.length,u=p(l,c);for(n=0;n<c;++n)a(u[n],this,t)}return!0},r.prototype.addListener=function(e,t){return c(this,e,t,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return c(this,e,t,!0)},r.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,a,o,r,i;if(s(t),void 0===(a=this._events))return this;if(void 0===(n=a[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(a[e]=n[0]),void 0!==a.removeListener&&this.emit("removeListener",e,i||t)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,a;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,r=Object.keys(n);for(a=0;a<r.length;++a)"removeListener"!==(o=r[a])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},r.prototype.listeners=function(e){return f(this,e,!0)},r.prototype.rawListeners=function(e){return f(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},r.prototype.listenerCount=m,r.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"./node_modules/angular/index-exposed.js":(e,t,n)=>{var a=n("./node_modules/angular/index.js");n("./node_modules/expose-loader/dist/runtime/getGlobalThis.js").angular=a,e.exports=a},"./node_modules/expose-loader/dist/runtime/getGlobalThis.js":(e,t,n)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},"./node_modules/has-cors/index.js":e=>{try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},"./node_modules/highlightjs/highlight.pack.js":(e,t)=>{var n,a,o;a=function(e){var t=[],n=Object.keys,a={},o={},r=/^(no-?highlight|plain|text)$/i,i=/\blang(?:uage)?-([\w-]+)\b/i,s=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,l="</span>",c={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},u="of and for in not or if then".split(" ");function d(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function f(e){return e.nodeName.toLowerCase()}function m(e){return r.test(e)}function p(e){var t,n={},a=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return a.forEach((function(e){for(t in e)n[t]=e[t]})),n}function g(e){var t=[];return function e(n,a){for(var o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?a+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:a,node:o}),a=e(o,a),f(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:a,node:o}));return a}(e,0),t}function h(e){return!!e&&(e.endsWithParent||h(e.starts))}function _(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return p(e,{variants:null},t)}))),e.cached_variants?e.cached_variants:h(e)?[p(e,{starts:e.starts?p(e.starts):null})]:[e]}function b(e,t){return t?Number(t):(n=e,-1!=u.indexOf(n.toLowerCase())?0:1);var n}function y(e){function t(e){return e&&e.source||e}function a(n,a){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(a?"g":""))}function o(e){var n,o,r={},i=[],s={},l=1;function c(e,t){r[l]=e,i.push([e,t]),l+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(t)+1}for(var u=0;u<e.contains.length;u++)c(o=e.contains[u],o.beginKeywords?"\\.?(?:"+o.begin+")\\.?":o.begin);e.terminator_end&&c("end",e.terminator_end),e.illegal&&c("illegal",e.illegal);var d=i.map((function(e){return e[1]}));return n=a(function(e,n){for(var a=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,o=0,r="",i=0;i<e.length;i++){var s=o+=1,l=t(e[i]);for(i>0&&(r+=n),r+="(";l.length>0;){var c=a.exec(l);if(null==c){r+=l;break}r+=l.substring(0,c.index),l=l.substring(c.index+c[0].length),"\\"==c[0][0]&&c[1]?r+="\\"+String(Number(c[1])+s):(r+=c[0],"("==c[0]&&o++)}r+=")"}return r}(d,"|"),!0),s.lastIndex=0,s.exec=function(t){var a;if(0===i.length)return null;n.lastIndex=s.lastIndex;var o=n.exec(t);if(!o)return null;for(var l=0;l<o.length;l++)if(null!=o[l]&&null!=r[""+l]){a=r[""+l];break}return"string"==typeof a?(o.type=a,o.extra=[e.illegal,e.terminator_end]):(o.type="begin",o.rule=a),o},s}!function r(i,s){i.compiled||(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords&&(i.keywords=function(e,t){var a={};return"string"==typeof e?o("keyword",e):n(e).forEach((function(t){o(t,e[t])})),a;function o(e,n){t&&(n=n.toLowerCase()),n.split(" ").forEach((function(t){var n=t.split("|");a[n[0]]=[e,b(n[0],n[1])]}))}}(i.keywords,e.case_insensitive)),i.lexemesRe=a(i.lexemes||/\w+/,!0),s&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=a(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=a(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&s.terminator_end&&(i.terminator_end+=(i.end?"|":"")+s.terminator_end)),i.illegal&&(i.illegalRe=a(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map((function(e){return _("self"===e?i:e)}))),i.contains.forEach((function(e){r(e,i)})),i.starts&&r(i.starts,s),i.terminators=o(i))}(e)}function v(e,t,n,o){function r(e,t){if(function(e,t){var n=e&&e.exec(t);return n&&0===n.index}(e.endRe,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}if(e.endsWithParent)return r(e.parent,t)}function i(e,t){var n=_.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function s(e,t,n,a){if(!n&&""===t)return"";if(!e)return t;var o='<span class="'+(a?"":c.classPrefix);return(o+=e+'">')+t+(n?"":l)}function u(){E+=null!=S.subLanguage?function(){var e="string"==typeof S.subLanguage;if(e&&!a[S.subLanguage])return d(T);var t=e?v(S.subLanguage,T,!0,w[S.subLanguage]):A(T,S.subLanguage.length?S.subLanguage:void 0);return S.relevance>0&&(I+=t.relevance),e&&(w[S.subLanguage]=t.top),s(t.language,t.value,!1,!0)}():function(){var e,t,n,a;if(!S.keywords)return d(T);for(a="",t=0,S.lexemesRe.lastIndex=0,n=S.lexemesRe.exec(T);n;)a+=d(T.substring(t,n.index)),(e=i(S,n))?(I+=e[1],a+=s(e[0],d(n[0]))):a+=d(n[0]),t=S.lexemesRe.lastIndex,n=S.lexemesRe.exec(T);return a+d(T.substr(t))}(),T=""}function f(e){E+=e.className?s(e.className,"",!0):"",S=Object.create(e,{parent:{value:S}})}function m(e){var t=e[0],n=e.rule;return n&&n.endSameAsBegin&&(n.endRe=function(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}(t)),n.skip?T+=t:(n.excludeBegin&&(T+=t),u(),n.returnBegin||n.excludeBegin||(T=t)),f(n),n.returnBegin?0:t.length}function p(e){var t=e[0],n=r(S,t);if(n){var a=S;a.skip?T+=t:(a.returnEnd||a.excludeEnd||(T+=t),u(),a.excludeEnd&&(T=t));do{S.className&&(E+=l),S.skip||S.subLanguage||(I+=S.relevance),S=S.parent}while(S!==n.parent);return n.starts&&(n.endSameAsBegin&&(n.starts.endRe=n.endRe),f(n.starts)),a.returnEnd?0:t.length}}var g={};function h(e,a){var o=a&&a[0];if(T+=e,null==o)return u(),0;if("begin"==g.type&&"end"==a.type&&g.index==a.index&&""===o)return T+=t.slice(a.index,a.index+1),1;if(g=a,"begin"===a.type)return m(a);if("illegal"===a.type&&!n)throw new Error('Illegal lexeme "'+o+'" for mode "'+(S.className||"<unnamed>")+'"');if("end"===a.type){var r=p(a);if(null!=r)return r}return T+=o,o.length}var _=C(e);if(!_)throw new Error('Unknown language: "'+e+'"');y(_);var b,S=o||_,w={},E="";for(b=S;b!==_;b=b.parent)b.className&&(E=s(b.className,"",!0)+E);var T="",I=0;try{for(var k,D,x=0;S.terminators.lastIndex=x,k=S.terminators.exec(t);)D=h(t.substring(x,k.index),k),x=k.index+D;for(h(t.substr(x)),b=S;b.parent;b=b.parent)b.className&&(E+=l);return{relevance:I,value:E,illegal:!1,language:e,top:S}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{illegal:!0,relevance:0,value:d(t)};throw e}}function A(e,t){t=t||c.languages||n(a);var o={relevance:0,value:d(e)},r=o;return t.filter(C).filter(T).forEach((function(t){var n=v(t,e,!1);n.language=t,n.relevance>r.relevance&&(r=n),n.relevance>o.relevance&&(r=o,o=n)})),r.language&&(o.second_best=r),o}function S(e){return c.tabReplace||c.useBR?e.replace(s,(function(e,t){return c.useBR&&"\n"===e?"<br>":c.tabReplace?t.replace(/\t/g,c.tabReplace):""})):e}function w(e){var n,a,r,s,l,u=function(e){var t,n,a,o,r=e.className+" ";if(r+=e.parentNode?e.parentNode.className:"",n=i.exec(r))return C(n[1])?n[1]:"no-highlight";for(t=0,a=(r=r.split(/\s+/)).length;t<a;t++)if(m(o=r[t])||C(o))return o}(e);m(u)||(c.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):n=e,l=n.textContent,r=u?v(u,l,!0):A(l),(a=g(n)).length&&((s=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=r.value,r.value=function(e,n,a){var o=0,r="",i=[];function s(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:"start"===n[0].event?e:n:e.length?e:n}function l(e){r+="<"+f(e)+t.map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+d(e.value).replace('"',"&quot;")+'"'})).join("")+">"}function c(e){r+="</"+f(e)+">"}function u(e){("start"===e.event?l:c)(e.node)}for(;e.length||n.length;){var m=s();if(r+=d(a.substring(o,m[0].offset)),o=m[0].offset,m===e){i.reverse().forEach(c);do{u(m.splice(0,1)[0]),m=s()}while(m===e&&m.length&&m[0].offset===o);i.reverse().forEach(l)}else"start"===m[0].event?i.push(m[0].node):i.pop(),u(m.splice(0,1)[0])}return r+d(a.substr(o))}(a,g(s),l)),r.value=S(r.value),e.innerHTML=r.value,e.className=function(e,t,n){var a=t?o[t]:n,r=[e.trim()];return e.match(/\bhljs\b/)||r.push("hljs"),-1===e.indexOf(a)&&r.push(a),r.join(" ").trim()}(e.className,u,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function E(){if(!E.called){E.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,w)}}function C(e){return e=(e||"").toLowerCase(),a[e]||a[o[e]]}function T(e){var t=C(e);return t&&!t.disableAutodetect}return e.highlight=v,e.highlightAuto=A,e.fixMarkup=S,e.highlightBlock=w,e.configure=function(e){c=p(c,e)},e.initHighlighting=E,e.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",E,!1),addEventListener("load",E,!1)},e.registerLanguage=function(t,n){var r=a[t]=n(e);r.rawDefinition=n.bind(null,e),r.aliases&&r.aliases.forEach((function(e){o[e]=t}))},e.listLanguages=function(){return n(a)},e.getLanguage=C,e.autoDetection=T,e.inherit=p,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,a){var o=e.inherit({className:"comment",begin:t,end:n,contains:[]},a||{});return o.contains.push(e.PHRASAL_WORDS_MODE),o.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),o},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e.registerLanguage("1c",(function(e){var t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",n="далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",a="null истина ложь неопределено",o=e.inherit(e.NUMBER_MODE),r={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},i={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},s=e.inherit(e.C_LINE_COMMENT_MODE);return{case_insensitive:!0,lexemes:t,keywords:{keyword:n,built_in:"разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",class:"webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",type:"comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",literal:a},contains:[{className:"meta",lexemes:t,begin:"#|&",end:"$",keywords:{"meta-keyword":n+"загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент "},contains:[s]},{className:"function",lexemes:t,variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",lexemes:t,begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{keyword:"знач",literal:a},contains:[o,r,i]},s]},e.inherit(e.TITLE_MODE,{begin:t})]},s,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},o,r,i]}})),e.registerLanguage("abnf",(function(e){var t="^[a-zA-Z][a-zA-Z0-9-]*",n="[!@#$^&',?+~`|:]",a=e.COMMENT(";","$"),o={className:"attribute",begin:t+"(?=\\s*=)"};return{illegal:n,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"].join(" "),contains:[o,a,{className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},{className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},{className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},{className:"symbol",begin:/%[si]/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}})),e.registerLanguage("accesslog",(function(e){var t=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{contains:[{className:"number",begin:"^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b",relevance:5},{className:"number",begin:"\\b\\d+\\b",relevance:0},{className:"string",begin:'"('+t.join("|")+")",end:'"',keywords:t.join(" "),illegal:"\\n",relevance:5,contains:[{begin:"HTTP/[12]\\.\\d",relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:"\\n",relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:"\\n",relevance:0},{className:"string",begin:'"Mozilla/\\d\\.\\d \\(',end:'"',illegal:"\\n",relevance:3},{className:"string",begin:'"',end:'"',illegal:"\\n",relevance:0}]}})),e.registerLanguage("actionscript",(function(e){var t={className:"rest_arg",begin:"[.]{3}",end:"[a-zA-Z_$][a-zA-Z0-9_$]*",relevance:10};return{aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:"{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:";",keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t]},{begin:":\\s*([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)"}]},e.METHOD_GUARD],illegal:/#/}})),e.registerLanguage("ada",(function(e){var t="[A-Za-z](_?[A-Za-z0-9.])*",n="[]{}%#'\"",a=e.COMMENT("--","$"),o={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:n,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:t,endsParent:!0,relevance:0}]};return{case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[a,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"symbol",begin:"'"+t},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:n},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[a,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:n},o,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:n},o]}})),e.registerLanguage("angelscript",(function(e){var t={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},a={className:"keyword",begin:"<",end:">",contains:[t,n]};return t.contains=[a],n.contains=[a],{aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunctions*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"interface namespace",end:"{",illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:"{",illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}})),e.registerLanguage("apache",(function(e){var t={className:"number",begin:"[\\$%]\\d+"};return{aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:"</?",end:">"},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",t]},t,e.QUOTE_STRING_MODE]}}],illegal:/\S/}})),e.registerLanguage("applescript",(function(e){var t=e.inherit(e.QUOTE_STRING_MODE,{illegal:""}),n={className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_NUMBER_MODE,t]},a=e.COMMENT("--","$"),o=[a,e.COMMENT("\\(\\*","\\*\\)",{contains:["self",a]}),e.HASH_COMMENT_MODE];return{aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{className:"literal",begin:"\\b(text item delimiters|current application|missing value)\\b"},{className:"keyword",begin:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{beginKeywords:"on",illegal:"[${=;\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]}].concat(o),illegal:"//|->|=>|\\[\\["}})),e.registerLanguage("arcade",(function(e){var t="[A-Za-z_][0-9A-Za-z_]*",n={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},r={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,a,e.REGEXP_MODE];var i=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["arcade"],keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:i}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:i}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}})),e.registerLanguage("cpp",(function(e){var t={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},n={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},{begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\((?:.|\n)*?\)\1"/}]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(n,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r=e.IDENT_RE+"\\s*\\(",i={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},s=[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,n];return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:i,illegal:"</",contains:s.concat([o,{begin:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:i,contains:["self",t]},{begin:e.IDENT_RE+"::",keywords:i},{variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:i,contains:s.concat([{begin:/\(/,end:/\)/,keywords:i,contains:s.concat(["self"]),relevance:0}]),relevance:0},{className:"function",begin:"("+e.IDENT_RE+"[\\*&\\s]+)+"+r,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:i,illegal:/[^\w\s\*&]/,contains:[{begin:r,returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,a,t,{begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,a,t]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o]},{className:"class",beginKeywords:"class struct",end:/[{;:]/,contains:[{begin:/</,end:/>/,contains:["self"]},e.TITLE_MODE]}]),exports:{preprocessor:o,strings:n,keywords:i}}})),e.registerLanguage("arduino",(function(e){var t="boolean byte word String",n="setup loopKeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",a="DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW",o=e.getLanguage("cpp").rawDefinition(),r=o.keywords;return r.keyword+=" "+t,r.literal+=" "+a,r.built_in+=" "+n,o})),e.registerLanguage("armasm",(function(e){return{case_insensitive:!0,aliases:["arm"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?",end:"\\s"},e.COMMENT("[;@]","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"[=#]\\w+"}],relevance:0}]}})),e.registerLanguage("xml",(function(e){var t={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"<!DOCTYPE",end:">",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:"<style(?=\\s|>)",end:">",keywords:{name:"style"},contains:[t],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>)",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"tag",begin:"</?",end:"/?>",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}})),e.registerLanguage("asciidoc",(function(e){return{aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,5}) .+?( \\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{className:"strong",begin:"\\B\\*(?![\\*\\s])",end:"(\\n{2}|\\*)",contains:[{begin:"\\\\*\\w",relevance:0}]},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0},{className:"emphasis",begin:"_(?![_\\s])",end:"(\\n{2}|_)",relevance:0},{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}})),e.registerLanguage("aspectj",(function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",n="get set args call";return{keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t+" "+n,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",keywords:t+" "+n,relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}})),e.registerLanguage("autohotkey",(function(e){var t={begin:"`[\\s\\S]"};return{case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}})),e.registerLanguage("autoit",(function(e){var t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},a={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},o={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",literal:"True False And Null Not Or"},contains:[t,n,a,o,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[a,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},a,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,a,o]}]}]}})),e.registerLanguage("avrasm",(function(e){return{case_insensitive:!0,lexemes:"\\.?"+e.IDENT_RE,keywords:{keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}})),e.registerLanguage("awk",(function(e){return{keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}})),e.registerLanguage("axapta",(function(e){return{keywords:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}})),e.registerLanguage("bash",(function(e){var t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]};return{aliases:["sh","zsh"],lexemes:/\b-?[a-z\._]+\b/,keywords:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[{className:"meta",begin:/^#![^\n]+sh\s*$/,relevance:10},{className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},e.HASH_COMMENT_MODE,n,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}})),e.registerLanguage("basic",(function(e){return{case_insensitive:!0,illegal:"^.",lexemes:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keywords:{keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b([0-9]+[0-9edED.]*[#!]?)",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}})),e.registerLanguage("bnf",(function(e){return{contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,starts:{end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}]}})),e.registerLanguage("brainfuck",(function(e){var t={className:"literal",begin:"[\\+\\-]",relevance:0};return{aliases:["bf"],contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|\-\-)/,contains:[t]},t]}})),e.registerLanguage("cal",(function(e){var t="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},r={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[a,o]}].concat(n)},i={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,r]};return{case_insensitive:!0,keywords:{keyword:t,literal:"false true"},illegal:/\/\*/,contains:[a,o,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,i,r]}})),e.registerLanguage("capnproto",(function(e){return{aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}})),e.registerLanguage("ceylon",(function(e){var t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[n]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return n.contains=a,{keywords:{keyword:t+" shared abstract formal default actual variable late native deprecatedfinal sealed annotation suppressWarnings small",meta:"doc by license see throws tagged"},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?:\\:"[^"]*")?'}].concat(a)}})),e.registerLanguage("clean",(function(e){return{aliases:["clean","icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}})),e.registerLanguage("clojure",(function(e){var t="a-zA-Z_\\-!.?+*=<>&#'",n="["+t+"]["+t+"0-9/;:]*",a={begin:n,relevance:0},o={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i=e.COMMENT(";","$",{relevance:0}),s={className:"literal",begin:/\b(true|false|nil)\b/},l={begin:"[\\[\\{]",end:"[\\]\\}]"},c={className:"comment",begin:"\\^"+n},u=e.COMMENT("\\^\\{","\\}"),d={className:"symbol",begin:"[:]{1,2}"+n},f={begin:"\\(",end:"\\)"},m={endsWithParent:!0,relevance:0},p={keywords:{"builtin-name":"def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},lexemes:n,className:"name",begin:n,starts:m},g=[f,r,c,u,i,d,l,o,s,a];return f.contains=[e.COMMENT("comment",""),p,m],m.contains=g,l.contains=g,u.contains=[l],{aliases:["clj"],illegal:/\S/,contains:[f,r,c,u,i,d,l,o,s]}})),e.registerLanguage("clojure-repl",(function(e){return{contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}})),e.registerLanguage("cmake",(function(e){return{aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:"\\${",end:"}"},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}})),e.registerLanguage("coffeescript",(function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",a={className:"subst",begin:/#\{/,end:/}/,keywords:t},o=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[a,e.HASH_COMMENT_MODE]},{begin:"//[gim]*",relevance:0},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W)/}]},{begin:"@"+n},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];a.contains=o;var r=e.inherit(e.TITLE_MODE,{begin:n}),i="(\\(.*\\))?\\s*\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:o.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+i,end:"[-=]>",returnBegin:!0,contains:[r,s]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:i,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[r]},r]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}})),e.registerLanguage("coq",(function(e){return{keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies DependentDerive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}})),e.registerLanguage("cos",(function(e){return{case_insensitive:!0,aliases:["cos","cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}})),e.registerLanguage("crmsh",(function(e){var t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z\$_\#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}})),e.registerLanguage("crystal",(function(e){var t="(_*[ui](8|16|32|64|128))?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?",o={keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},r={className:"subst",begin:"#{",end:"}",keywords:o},i={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function s(e,t){var n=[{begin:e,end:t}];return n[0].contains=n,n}var l={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:s("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:s("\\[","\\]")},{begin:"%[Qwi]?{",end:"}",contains:s("{","}")},{begin:"%[Qwi]?<",end:">",contains:s("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},c={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:s("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:s("\\[","\\]")},{begin:"%q{",end:"}",contains:s("{","}")},{begin:"%q<",end:">",contains:s("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},u={begin:"(?!%})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},d=[i,l,c,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"%r\\(",end:"\\)",contains:s("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:s("\\[","\\]")},{begin:"%r{",end:"}",contains:s("{","}")},{begin:"%r<",end:">",contains:s("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},u,{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})],relevance:10},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})],relevance:10},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:5},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[l,{begin:n}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_*[-+]?[0-9_]*)?(_*f(32|64))?(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return r.contains=d,i.contains=d.slice(1),{aliases:["cr"],lexemes:"[a-zA-Z_]\\w*[!?=]?",keywords:o,contains:d}})),e.registerLanguage("cs",(function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var when where yield",literal:"null false true"},n={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},a={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},o=e.inherit(a,{illegal:/\n/}),r={className:"subst",begin:"{",end:"}",keywords:t},i=e.inherit(r,{illegal:/\n/}),s={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,i]},l={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},r]},c=e.inherit(l,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},i]});r.contains=[l,s,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,e.C_BLOCK_COMMENT_MODE],i.contains=[c,s,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var u={variants:[l,s,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},d=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?";return{aliases:["csharp","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},u,n,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:,]/,contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+d+"\\s+)+"+e.IDENT_RE+"\\s*\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[u,n,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}})),e.registerLanguage("csp",(function(e){return{case_insensitive:!1,lexemes:"[a-zA-Z][a-zA-Z0-9_-]*",keywords:{keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}})),e.registerLanguage("css",(function(e){var t={begin:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}})),e.registerLanguage("d",(function(e){var t="((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",n="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",a={className:"number",begin:"\\b"+t+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},o={className:"number",begin:"\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|"+t+"(i|[fF]i|Li))",relevance:0},r={className:"string",begin:"'("+n+"|.)",end:"'",illegal:"."},i={className:"string",begin:'"',contains:[{begin:n,relevance:0}],end:'"[cwd]?'},s=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:{keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},i,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},o,a,r,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}})),e.registerLanguage("markdown",(function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^\\s*([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```\\w*\\s*$",end:"^```[ ]*$"},{begin:"`.+?`"},{begin:"^( {4}|\\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}})),e.registerLanguage("dart",(function(e){var t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:"\\${",end:"}"}],keywords:"true false null this is new super"},a={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};return n.contains=[e.C_NUMBER_MODE,a],{keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is library mixin new null on operator part rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:"Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double dynamic int num print Element ElementList document querySelector querySelectorAll window"},contains:[a,e.COMMENT("/\\*\\*","\\*/",{subLanguage:"markdown"}),e.COMMENT("///+\\s*","$",{contains:[{subLanguage:"markdown",begin:".",end:"$"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}})),e.registerLanguage("delphi",(function(e){var t="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],a={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},r={className:"string",begin:/(#\d+)+/},i={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},s={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[o,r,a].concat(n)},a].concat(n)};return{aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[o,r,e.NUMBER_MODE,i,s,a].concat(n)}})),e.registerLanguage("diff",(function(e){return{aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}})),e.registerLanguage("django",(function(e){var t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%}/,/\{%\s*endcomment\s*%}/),e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:[t]}]}})),e.registerLanguage("dns",(function(e){return{aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}})),e.registerLanguage("dockerfile",(function(e){return{aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}})),e.registerLanguage("dos",(function(e){var t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shiftsort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}})),e.registerLanguage("dsconfig",(function(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:"\\s",excludeEnd:!0,relevance:10},{className:"built_in",begin:"(list|create|get|set|delete)-(\\w+)",end:"\\s",excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:"--(\\w+)",end:"\\s",excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:"[\\w-?]+:\\w+",end:"\\W",relevance:0},{className:"string",begin:"\\w+-?\\w+",end:"\\W",relevance:0},e.HASH_COMMENT_MODE]}})),e.registerLanguage("dts",(function(e){var t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},a={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o={className:"variable",begin:"\\&[a-z\\d_]*\\b"},r={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},i={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",begin:"<",end:">",contains:[n,o]},l={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{keywords:"",contains:[{className:"class",begin:"/\\s*{",end:"};",relevance:10,contains:[o,r,i,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t]},o,r,i,l,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,a,{begin:e.IDENT_RE+"::",keywords:""}]}})),e.registerLanguage("dust",(function(e){return{aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}})),e.registerLanguage("ebnf",(function(e){var t=e.COMMENT(/\(\*/,/\*\)/);return{illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z][a-zA-Z-]*([\s-]+[a-zA-Z][a-zA-Z]*)*/},{begin:/=/,end:/;/,contains:[t,{className:"meta",begin:/\?.*\?/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}})),e.registerLanguage("elixir",(function(e){var t="[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?",n="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0",a={className:"subst",begin:"#\\{",end:"}",lexemes:t,keywords:n},o={className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},r={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},i=e.inherit(r,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),s=[o,e.HASH_COMMENT_MODE,i,r,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[o,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:t+":(?!:)",relevance:0},{className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return a.contains=s,{lexemes:t,keywords:n,contains:s}})),e.registerLanguage("elm",(function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[a,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[a,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,a,{begin:"{",end:"}",contains:a.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}})),e.registerLanguage("ruby",(function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",n={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},a={className:"doctag",begin:"@[A-Za-z]+"},o={begin:"#<",end:">"},r=[e.COMMENT("#","$",{contains:[a]}),e.COMMENT("^\\=begin","^\\=end",{contains:[a],relevance:10}),e.COMMENT("^__END__","\\n$")],i={className:"subst",begin:"#\\{",end:"}",keywords:n},s={className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},{begin:/\w+/,endSameAsBegin:!0,contains:[e.BACKSLASH_ESCAPE,i]}]}]},l={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:n},c=[s,o,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(r)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:t}),l].concat(r)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[s,{begin:t}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:n},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[o,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r),relevance:0}].concat(r);i.contains=c,l.contains=c;var u=[{begin:/^\s*=>/,starts:{end:"$",contains:c}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{end:"$",contains:c}}];return{aliases:["rb","gemspec","podspec","thor","irb"],keywords:n,illegal:/\/\*/,contains:r.concat(u).concat(c)}})),e.registerLanguage("erb",(function(e){return{subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}})),e.registerLanguage("erlang-repl",(function(e){return{keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\?(::)?([A-Z]\\w*(::)?)+"},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}})),e.registerLanguage("erlang",(function(e){var t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",a={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},o=e.COMMENT("%","$"),r={className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},i={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:"{",end:"}",relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:"{",end:"}",relevance:0}]},f={beginKeywords:"fun receive if try case",end:"end",keywords:a};f.contains=[o,i,e.inherit(e.APOS_STRING_MODE,{className:""}),f,s,e.QUOTE_STRING_MODE,r,l,c,u,d];var m=[o,i,f,s,e.QUOTE_STRING_MODE,r,l,c,u,d];s.contains[1].contains=m,l.contains=m,d.contains[1].contains=m;var p={className:"params",begin:"\\(",end:"\\)",contains:m};return{aliases:["erl"],keywords:a,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[p,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:a,contains:m}},o,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,lexemes:"-"+e.IDENT_RE,keywords:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",contains:[p]},r,e.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}})),e.registerLanguage("excel",(function(e){return{aliases:["xlsx","xls"],case_insensitive:!0,lexemes:/[a-zA-Z][\w\.]*/,keywords:{built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}})),e.registerLanguage("fix",(function(e){return{contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}})),e.registerLanguage("flix",(function(e){var t={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},t,e.C_NUMBER_MODE]}})),e.registerLanguage("fortran",(function(e){return{case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}})),e.registerLanguage("fsharp",(function(e){var t={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*","\\*\\)"),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,t]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}})),e.registerLanguage("gams",(function(e){var t={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na","built-in":"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},n={className:"symbol",variants:[{begin:/\=[lgenxc]=/},{begin:/\$/}]},a={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:t,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},r={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[a,o,{className:"comment",begin:/([ ]*[a-z0-9&#*=?@>\\<:\-,()$\[\]_.{}!+%^]+)+/,relevance:0}]};return{aliases:["gms"],case_insensitive:!0,keywords:t,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,r]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[r]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},n]},e.C_NUMBER_MODE,n]}})),e.registerLanguage("gauss",(function(e){var t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),a={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},o={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},r=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,o]}],i={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,a,o){var s=e.inherit({className:"function",beginKeywords:t,end:a,excludeEnd:!0,contains:[].concat(r)},o||{});return s.contains.push(i),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},u={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,u,c,"self"]};return u.contains.push(d),{aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,c,a,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,o]}})),e.registerLanguage("gcode",(function(e){var t=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.C_NUMBER_RE}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",end:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{aliases:["nc"],case_insensitive:!0,lexemes:"[A-Z_][A-Z0-9_.]*",keywords:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR",contains:[{className:"meta",begin:"\\%"},{className:"meta",begin:"([O])([0-9]+)"}].concat(t)}})),e.registerLanguage("gherkin",(function(e){return{aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}})),e.registerLanguage("glsl",(function(e){return{keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBufferiimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}})),e.registerLanguage("gml",(function(e){return{aliases:["gml","GML"],case_insensitive:!1,keywords:{keywords:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names array_length_1d array_length_2d array_height_2d array_equals array_create array_copy random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version  timezone_local timezone_utc gamespeed_fps gamespeed_microseconds  ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt  mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive  ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds  os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile  device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari  phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes  phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category  achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded  achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype  text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET  gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings  vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x y xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour  background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),e.registerLanguage("go",(function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,illegal:/["']/}]}]}})),e.registerLanguage("golo",(function(e){return{keywords:{keyword:"println readln print import module function local return let var while for foreach times in case when match with break continue augment augmentation each find filter reduce if then else otherwise try catch finally raise throw orIfNull DynamicObject|10 DynamicVariable struct Observable map set vector list array",literal:"true false null"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}})),e.registerLanguage("gradle",(function(e){return{case_insensitive:!0,keywords:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}})),e.registerLanguage("groovy",(function(e){return{keywords:{literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait super this abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},{className:"string",begin:"'''",end:"'''"},{className:"string",begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,{className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},e.BINARY_NUMBER_MODE,{className:"class",beginKeywords:"class interface trait enum",end:"{",illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{className:"string",begin:/[^\?]{0}[A-Za-z0-9_$]+ *:/},{begin:/\?/,end:/\:/},{className:"symbol",begin:"^\\s*[A-Za-z0-9_$]+:",relevance:0}],illegal:/#|<\//}})),e.registerLanguage("haml",(function(e){return{case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:"{\\s*",end:"\\s*}",contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:"#{",starts:{end:"}",subLanguage:"ruby"}}]}})),e.registerLanguage("handlebars",(function(e){var t={"builtin-name":"each in with if else unless bindattr action collection debugger log outlet template unbound view yield lookup"},n={begin:/".*?"|'.*?'|\[.*?\]|\w+/},a=e.inherit(n,{keywords:t,starts:{endsWithParent:!0,relevance:0,contains:[e.inherit(n,{relevance:0})]}}),o=e.inherit(a,{className:"name"}),r=e.inherit(a,{relevance:0});return{aliases:["hbs","html.hbs","html.handlebars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[o],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[o]},{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[o]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,keywords:t,contains:[r]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,keywords:t,contains:[r]}]}})),e.registerLanguage("haskell",(function(e){var t={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},n={className:"meta",begin:"{-#",end:"#-}"},a={className:"meta",begin:"^#",end:"$"},o={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[n,a,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]};return{aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[r,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[r,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[o,r,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,o,r,{begin:"{",end:"}",contains:r.contains},t]},{beginKeywords:"default",end:"$",contains:[o,r,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[o,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,a,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,o,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}})),e.registerLanguage("haxe",(function(e){return{aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:"\\W}"}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ \t]*",end:"[^A-Za-z0-9_ \t\\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ \t]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}})),e.registerLanguage("hsp",(function(e){return{case_insensitive:!0,lexemes:/[\w\._]+/,keywords:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:'{"',end:'"}',contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}})),e.registerLanguage("htmlbars",(function(e){var t="action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view",n=(e.QUOTE_STRING_MODE,{endsWithParent:!0,relevance:0,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE,{illegal:/\}\}/,begin:/[a-zA-Z0-9_]+=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[a-zA-Z0-9_]+/}]},e.NUMBER_MODE]});return{case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.\-]+/,keywords:{"builtin-name":t},starts:n}]},{className:"template-variable",begin:/\{\{[a-zA-Z][a-zA-Z\-]+/,end:/\}\}/,keywords:{keyword:"as",built_in:t},contains:[e.QUOTE_STRING_MODE]}]}})),e.registerLanguage("http",(function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],illegal:"\\S",contains:[{begin:"^"+t,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+t+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:t},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}})),e.registerLanguage("hy",(function(e){var t="a-zA-Z_\\-!.?+*=<>&#'",n="["+t+"]["+t+"0-9/;:]*",a={begin:n,relevance:0},o={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i=e.COMMENT(";","$",{relevance:0}),s={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},l={begin:"[\\[\\{]",end:"[\\]\\}]"},c={className:"comment",begin:"\\^"+n},u=e.COMMENT("\\^\\{","\\}"),d={className:"symbol",begin:"[:]{1,2}"+n},f={begin:"\\(",end:"\\)"},m={endsWithParent:!0,relevance:0},p={keywords:{"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},lexemes:n,className:"name",begin:n,starts:m},g=[f,r,c,u,i,d,l,o,s,a];return f.contains=[e.COMMENT("comment",""),p,m],m.contains=g,l.contains=g,{aliases:["hylang"],illegal:/\S/,contains:[{className:"meta",begin:"^#!",end:"$"},f,r,c,u,i,d,l,o,s]}})),e.registerLanguage("inform7",(function(e){return{aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}})),e.registerLanguage("ini",(function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]};return{aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"section",begin:/^\s*\[+/,end:/\]+/},{begin:/^[a-z0-9\[\]_\.-]+\s*=\s*/,end:"$",returnBegin:!0,contains:[{className:"attr",begin:/[a-z0-9\[\]_\.-]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"literal",begin:/\bon|off|true|false|yes|no\b/},{className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},t,{className:"number",begin:/([\+\-]+)?[\d]+_[\d_]+/},e.NUMBER_MODE]}]}]}})),e.registerLanguage("irpf90",(function(e){return{case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}})),e.registerLanguage("isbl",(function(e){var t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n={className:"number",begin:e.NUMBER_RE,relevance:0},a={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},o={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},r={variants:[{className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,o]},{className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,o]}]},i={keyword:"and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",built_in:"SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING  SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",class:"AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",literal:"null true false nil "},s={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:i,relevance:0},l={className:"type",begin:":[ \\t]*("+"IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ".trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},c={className:"variable",lexemes:t,keywords:i,begin:t,relevance:0,contains:[l,s]},u="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(";return{aliases:["isbl"],case_insensitive:!0,lexemes:t,keywords:i,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:u,end:"\\)$",returnBegin:!0,lexemes:t,keywords:i,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",lexemes:t,keywords:{built_in:"AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр "},begin:u,end:"\\(",returnBegin:!0,excludeEnd:!0},s,c,a,n,r]},l,s,c,a,n,r]}})),e.registerLanguage("java",(function(e){var t="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",n={className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0};return{aliases:["jsp"],keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n,{className:"meta",begin:"@[A-Za-z]+"}]}})),e.registerLanguage("javascript",(function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},r={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},i={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,o],subLanguage:"css"}},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,i,s,a,e.REGEXP_MODE];var l=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,i,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,{begin:/[{,\n]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:l}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin:/</,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}})),e.registerLanguage("jboss-cli",(function(e){var t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0};return{aliases:["wildfly-cli"],lexemes:"[a-z-]+",keywords:{keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B(([\/.])[\w\-.\/=]+)+/},t]}})),e.registerLanguage("json",(function(e){var t={literal:"true false null"},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],a=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],o={end:",",endsWithParent:!0,excludeEnd:!0,contains:a,keywords:t},r={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(o,{begin:/:/})].concat(n),illegal:"\\S"},i={begin:"\\[",end:"\\]",contains:[e.inherit(o)],illegal:"\\S"};return a.push(r,i),n.forEach((function(e){a.push(e)})),{contains:a,keywords:t,illegal:"\\S"}})),e.registerLanguage("julia",(function(e){var t={keyword:"in isa where baremodule begin break catch ccall const continue do else elseif end export false finally for function global if import importall let local macro module quote return true try using while type immutable abstract bitstype typealias ",literal:"true false ARGS C_NULL DevNull ENDIAN_BOM ENV I Inf Inf16 Inf32 Inf64 InsertionSort JULIA_HOME LOAD_PATH MergeSort NaN NaN16 NaN32 NaN64 PROGRAM_FILE QuickSort RoundDown RoundFromZero RoundNearest RoundNearestTiesAway RoundNearestTiesUp RoundToZero RoundUp STDERR STDIN STDOUT VERSION catalan e|0 eu|0 eulergamma golden im nothing pi γ π φ ",built_in:"ANY AbstractArray AbstractChannel AbstractFloat AbstractMatrix AbstractRNG AbstractSerializer AbstractSet AbstractSparseArray AbstractSparseMatrix AbstractSparseVector AbstractString AbstractUnitRange AbstractVecOrMat AbstractVector Any ArgumentError Array AssertionError Associative Base64DecodePipe Base64EncodePipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError BufferStream CachingPool CapturedException CartesianIndex CartesianRange Cchar Cdouble Cfloat Channel Char Cint Cintmax_t Clong Clonglong ClusterManager Cmd CodeInfo Colon Complex Complex128 Complex32 Complex64 CompositeException Condition ConjArray ConjMatrix ConjVector Cptrdiff_t Cshort Csize_t Cssize_t Cstring Cuchar Cuint Cuintmax_t Culong Culonglong Cushort Cwchar_t Cwstring DataType Date DateFormat DateTime DenseArray DenseMatrix DenseVecOrMat DenseVector Diagonal Dict DimensionMismatch Dims DirectIndexString Display DivideError DomainError EOFError EachLine Enum Enumerate ErrorException Exception ExponentialBackOff Expr Factorization FileMonitor Float16 Float32 Float64 Function Future GlobalRef GotoNode HTML Hermitian IO IOBuffer IOContext IOStream IPAddr IPv4 IPv6 IndexCartesian IndexLinear IndexStyle InexactError InitError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException InvalidStateException Irrational KeyError LabelNode LinSpace LineNumberNode LoadError LowerTriangular MIME Matrix MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode NullException Nullable Number ObjectIdDict OrdinalRange OutOfMemoryError OverflowError Pair ParseError PartialQuickSort PermutedDimsArray Pipe PollingFileWatcher ProcessExitedException Ptr QuoteNode RandomDevice Range RangeIndex Rational RawFD ReadOnlyMemoryError Real ReentrantLock Ref Regex RegexMatch RemoteChannel RemoteException RevString RoundingMode RowVector SSAValue SegmentationFault SerializationState Set SharedArray SharedMatrix SharedVector Signed SimpleVector Slot SlotNumber SparseMatrixCSC SparseVector StackFrame StackOverflowError StackTrace StepRange StepRangeLen StridedArray StridedMatrix StridedVecOrMat StridedVector String SubArray SubString SymTridiagonal Symbol Symmetric SystemError TCPSocket Task Text TextDisplay Timer Tridiagonal Tuple Type TypeError TypeMapEntry TypeMapLevel TypeName TypeVar TypedSlot UDPSocket UInt UInt128 UInt16 UInt32 UInt64 UInt8 UndefRefError UndefVarError UnicodeError UniformScaling Union UnionAll UnitRange Unsigned UpperTriangular Val Vararg VecElement VecOrMat Vector VersionNumber Void WeakKeyDict WeakRef WorkerConfig WorkerPool "},n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",a={lexemes:n,keywords:t,illegal:/<\//},o={className:"subst",begin:/\$\(/,end:/\)/,keywords:t},r={className:"variable",begin:"\\$"+n},i={className:"string",contains:[e.BACKSLASH_ESCAPE,o,r],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,o,r],begin:"`",end:"`"},l={className:"meta",begin:"@"+n};return a.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i,s,l,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],o.contains=a.contains,a})),e.registerLanguage("julia-repl",(function(e){return{contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}})),e.registerLanguage("kotlin",(function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:"\\${",end:"}",contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},r={className:"string",variants:[{begin:'"""',end:'"""',contains:[o,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,a]}]};a.contains.push(r);var i={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(r,{className:"meta-string"})]}]},l={className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0},c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=u;return d.variants[1].contains=[u],u.variants[1].contains=[d],{aliases:["kt"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n,i,s,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,i,s,r,e.C_NUMBER_MODE]},c]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},i,s]},r,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},l]}})),e.registerLanguage("lasso",(function(e){var t="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",a="\\]|\\?>",o={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},r=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),i={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[r]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'[a-zA-Z_][\\w.]*'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$][a-zA-Z_][\\w.]*"},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)[a-zA-Z_][\\w.]*",relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)"})]}];return{aliases:["ls","lassoscript"],case_insensitive:!0,lexemes:"[a-zA-Z_][\\w.]*|&[lg]t;",keywords:o,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[r]}},i,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",lexemes:"[a-zA-Z_][\\w.]*|&[lg]t;",keywords:o,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[r]}},i,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}})),e.registerLanguage("ldif",(function(e){return{contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}})),e.registerLanguage("leaf",(function(e){return{contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:" {",returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}})),e.registerLanguage("less",(function(e){var t="([\\w-]+|@{[\\w-]+})",n=[],a=[],o=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},r=function(e,t,n){return{className:e,begin:t,relevance:n}},i={begin:"\\(",end:"\\)",contains:a,relevance:0};a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o("'"),o('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r("number","#[0-9A-Fa-f]+\\b"),i,r("variable","@@?[\\w-]+",10),r("variable","@{[\\w-]+}"),r("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var s=a.concat({begin:"{",end:"}",contains:n}),l={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},c={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},u={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:a,relevance:0}},d={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:s}},f={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l,r("keyword","all\\b"),r("variable","@{[\\w-]+}"),r("selector-tag",t+"%?",0),r("selector-id","#"+t),r("selector-class","\\."+t,0),r("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:s},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,d,c,f),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}})),e.registerLanguage("lisp",(function(e){var t="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",n="\\|[^]*?\\|",a="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",o={className:"literal",begin:"\\b(t{1}|nil)\\b"},r={className:"number",variants:[{begin:a,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+a+" +"+a,end:"\\)"}]},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},d={begin:n},f={contains:[r,i,l,c,{begin:"\\(",end:"\\)",contains:["self",o,i,r,u]},u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},p={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return p.contains=[{className:"name",variants:[{begin:t},{begin:n}]},g],g.contains=[f,m,p,o,r,i,s,l,c,d,u],{illegal:/\S/,contains:[r,{className:"meta",begin:"^#!",end:"$"},o,i,s,f,m,p,u]}})),e.registerLanguage("livecodeserver",(function(e){var t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],a=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),o=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[o,a],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a].concat(n),illegal:";$|^\\[|^=|&|{"}})),e.registerLanguage("livescript",(function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native list map __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},n="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",a=e.inherit(e.TITLE_MODE,{begin:n}),o={className:"subst",begin:/#\{/,end:/}/,keywords:t},r={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},i=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,r]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,r]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[o,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W)/}]},{begin:"@"+n},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];o.contains=i;var s={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{aliases:["ls"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{begin:"(#=>|=>|\\|>>|-?->|\\!->)"},{className:"function",contains:[a,s],returnBegin:!0,variants:[{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",end:"\\->\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}})),e.registerLanguage("llvm",(function(e){var t="([-a-zA-Z$._][\\w\\-$.]*)";return{keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[{className:"keyword",begin:"i\\d+"},e.COMMENT(";","\\n",{relevance:0}),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:'"',end:'[^\\\\]"'}],relevance:0},{className:"title",variants:[{begin:"@"+t},{begin:"@\\d+"},{begin:"!"+t},{begin:"!\\d+"+t}]},{className:"symbol",variants:[{begin:"%"+t},{begin:"%\\d+"},{begin:"#\\d+"}]},{className:"number",variants:[{begin:"0[xX][a-fA-F0-9]+"},{begin:"-?\\d+(?:[.]\\d+)?(?:[eE][-+]?\\d+(?:[.]\\d+)?)?"}],relevance:0}]}})),e.registerLanguage("lsl",(function(e){var t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},n={className:"number",begin:e.C_NUMBER_RE};return{illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},n,{className:"section",variants:[{begin:"\\b(?:state|default)\\b"},{begin:"\\b(?:state_(?:entry|exit)|touch(?:_(?:start|end))?|(?:land_)?collision(?:_(?:start|end))?|timer|listen|(?:no_)?sensor|control|(?:not_)?at_(?:rot_)?target|money|email|experience_permissions(?:_denied)?|run_time_permissions|changed|attach|dataserver|moving_(?:start|end)|link_message|(?:on|object)_rez|remote_data|http_re(?:sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(?:ll(?:AgentInExperience|(?:Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(?:Details|ErrorMessage)|ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached(?:List)?|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|Request(?:Experience)?Permissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|SitOnLink|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(?:PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(?:XP_ERROR_(?:EXPERIENCES_DISABLED|EXPERIENCE_(?:DISABLED|SUSPENDED)|INVALID_(?:EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(?:FOUND|PERMITTED(?:_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(?:PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(?:_OBJECT)?|(?:DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(?:FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(?:_(?:BY_(?:LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(?:PARCEL(?:_OWNER)?|REGION)))?|CAMERA_(?:PITCH|DISTANCE|BEHINDNESS_(?:ANGLE|LAG)|(?:FOCUS|POSITION)(?:_(?:THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(?:ROOT|SET|ALL_(?:OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(?:IVE|_(?:ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(?:FWD|BACK|(?:ROT_)?(?:LEFT|RIGHT)|UP|DOWN|(?:ML_)?LBUTTON)|PERMISSION_(?:RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(?:CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(?:TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(?:INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(?:_START)?|TELEPORT|MEDIA)|OBJECT_(?:CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(?:PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(?:ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(?:COUNT|EQUIVALENCE)|RETURN_(?:PARCEL(?:_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(?:_TAG)?|CREATOR|ATTACHED_(?:POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(?:BODY_SHAPE|PATHFINDING)_TYPE|(?:RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(?:MEMORY|TIME))|TYPE_(?:INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(?:DEBUG|PUBLIC)_CHANNEL|ATTACH_(?:AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](?:SHOULDER|HAND|FOOT|EAR|EYE|[UL](?:ARM|LEG)|HIP)|(?:LEFT|RIGHT)_PEC|HUD_(?:CENTER_[12]|TOP_(?:RIGHT|CENTER|LEFT)|BOTTOM(?:_(?:RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(?:BASE|TIP)|[LR]WING|FACE_(?:JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(?:LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(?:ONLINE|NAME|BORN|SIM_(?:POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(?:ON_FILE|USED)|REMOTE_DATA_(?:CHANNEL|REQUEST|REPLY)|PSYS_(?:PART_(?:BF_(?:ZERO|ONE(?:_MINUS_(?:DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(?:START|END)_(?:COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(?:RIBBON|WIND|INTERP_(?:COLOR|SCALE)|BOUNCE|FOLLOW_(?:SRC|VELOCITY)|TARGET_(?:POS|LINEAR)|EMISSIVE)_MASK)|SRC_(?:MAX_AGE|PATTERN|ANGLE_(?:BEGIN|END)|BURST_(?:RATE|PART_COUNT|RADIUS|SPEED_(?:MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(?:DROP|EXPLODE|ANGLE(?:_CONE(?:_EMPTY)?)?)))|VEHICLE_(?:REFERENCE_FRAME|TYPE_(?:NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(?:LINEAR|ANGULAR)_(?:FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(?:HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(?:LINEAR|ANGULAR)_(?:DEFLECTION_(?:EFFICIENCY|TIMESCALE)|MOTOR_(?:DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(?:EFFICIENCY|TIMESCALE)|BANKING_(?:EFFICIENCY|MIX|TIMESCALE)|FLAG_(?:NO_DEFLECTION_UP|LIMIT_(?:ROLL_ONLY|MOTOR_UP)|HOVER_(?:(?:WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(?:STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(?:ALLOW_UNSIT|ALPHA_MODE(?:_(?:BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(?:_(?:BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(?:DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(?:_(?:STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(?:NONE|LOW|MEDIUM|HIGH)|BUMP_(?:NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(?:DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(?:TYPE_(?:SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(?:MIRROR|INVERT))|PHYSICS(?:_(?:SHAPE_(?:CONVEX|NONE|PRIM|TYPE)))?|(?:POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(?:ALT_IMAGE_ENABLE|CONTROLS|(?:CURRENT|HOME)_URL|AUTO_(?:LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(?:WIDTH|HEIGHT)_PIXELS|WHITELIST(?:_ENABLE)?|PERMS_(?:INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(?:STANDARD|MINI)|PERM_(?:NONE|OWNER|GROUP|ANYONE)|MAX_(?:URL_LENGTH|WHITELIST_(?:SIZE|COUNT)|(?:WIDTH|HEIGHT)_PIXELS)))|MASK_(?:BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(?:TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(?:MEDIA_COMMAND_(?:STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(?:ALLOW_(?:FLY|(?:GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(?:GROUP_)?OBJECTS)|USE_(?:ACCESS_(?:GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(?:GROUP|ALL)_OBJECT_ENTRY)|COUNT_(?:TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(?:NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(?:MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(?:_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(?:HIDE|DEFAULT)|REGION_FLAG_(?:ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(?:COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(?:METHOD|MIMETYPE|BODY_(?:MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(?:INVALID_(?:AGENT|LINK_OBJECT)|NO(?:T_EXPERIENCE|_(?:ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(?:TRIM(?:_(?:HEAD|TAIL))?)|CLICK_ACTION_(?:NONE|TOUCH|SIT|BUY|PAY|OPEN(?:_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(?:NONE|SCRIPT_MEMORY)|RC_(?:DATA_FLAGS|DETECT_PHANTOM|GET_(?:LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(?:TYPES|AGENTS|(?:NON)?PHYSICAL|LAND))|RCERR_(?:CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(?:ALLOWED_(?:AGENT|GROUP)_(?:ADD|REMOVE)|BANNED_AGENT_(?:ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(?:COMMAND|CMD_(?:PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(?:GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(?:CMD_(?:(?:SMOOTH_)?STOP|JUMP)|DESIRED_(?:TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(?:_(?:[ABCD]|NONE))?|MAX_(?:DECEL|TURN_RADIUS|(?:ACCEL|SPEED)))|PURSUIT_(?:OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(?:CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(?:EVADE_(?:HIDDEN|SPOTTED)|FAILURE_(?:DYNAMIC_PATHFINDING_DISABLED|INVALID_(?:GOAL|START)|NO_(?:NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(?:PARCEL_)?UNREACHABLE)|(?:GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(?:_(?:FAST|NONE|SLOW))?|CONTENT_TYPE_(?:ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(?:RADIUS|STATIC)|(?:PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(?:AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(?:FALSE|TRUE)\\b"},{begin:"\\b(?:ZERO_ROTATION)\\b"},{begin:"\\b(?:EOF|JSON_(?:ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(?:BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(?:GRANTED|DENIED))\\b"},{begin:"\\b(?:ZERO_VECTOR|TOUCH_INVALID_(?:TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(?:integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}})),e.registerLanguage("lua",(function(e){var t="\\[=*\\[",n="\\]=*\\]",a={begin:t,end:n,contains:["self"]},o=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[",n,{contains:[a],relevance:10})];return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:{literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstringmodule next pairs pcall print rawequal rawget rawset require select setfenvsetmetatable tonumber tostring type unpack xpcall arg selfcoroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[a],relevance:5}])}})),e.registerLanguage("makefile",(function(e){var t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},a={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*[:+?]?=",illegal:"\\n",returnBegin:!0,contains:[{begin:"^"+e.UNDERSCORE_IDENT_RE,end:"[:+?]?=",excludeEnd:!0}]},r={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{aliases:["mk","mak"],keywords:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath",lexemes:/[\w-]+/,contains:[e.HASH_COMMENT_MODE,t,n,a,o,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{"meta-keyword":".PHONY"},lexemes:/[\.\w]+/},r]}})),e.registerLanguage("mathematica",(function(e){return{aliases:["mma","wl"],lexemes:"(\\$|\\b)"+e.IDENT_RE+"\\b",keywords:"AASTriangle AbelianGroup Abort AbortKernels AbortProtect AbortScheduledTask Above Abs AbsArg AbsArgPlot Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AcceptanceThreshold AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Activate Active ActiveClassification ActiveClassificationObject ActiveItem ActivePrediction ActivePredictionObject ActiveStyle AcyclicGraphQ AddOnHelpPath AddSides AddTo AddToSearchIndex AddUsers AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AdministrativeDivisionData AffineHalfSpace AffineSpace AffineStateSpaceModel AffineTransform After AggregatedEntityClass AggregationLayer AircraftData AirportData AirPressureData AirTemperatureData AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowAdultContent AllowedCloudExtraParameters AllowedCloudParameterExtensions AllowedDimensions AllowedFrequencyRange AllowedHeads AllowGroupClose AllowIncomplete AllowInlineCells AllowKernelInitialization AllowLooseGrammar AllowReverseGroupClose AllowScriptLevelChange AllTrue Alphabet AlphabeticOrder AlphabeticSort AlphaChannel AlternateImage AlternatingFactorial AlternatingGroup AlternativeHypothesis Alternatives AltitudeMethod AmbientLight AmbiguityFunction AmbiguityList Analytic AnatomyData AnatomyForm AnatomyPlot3D AnatomySkinStyle AnatomyStyling AnchoredSearch And AndersonDarlingTest AngerJ AngleBisector AngleBracket AnglePath AnglePath3D AngleVector AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning AnimationRunTime AnimationTimeIndex Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotate Annotation AnnotationDelete AnnotationNames AnnotationRules AnnotationValue Annuity AnnuityDue Annulus AnomalyDetection AnomalyDetectorFunction Anonymous Antialiasing AntihermitianMatrixQ Antisymmetric AntisymmetricMatrixQ Antonyms AnyOrder AnySubset AnyTrue Apart ApartSquareFree APIFunction Appearance AppearanceElements AppearanceRules AppellF1 Append AppendCheck AppendLayer AppendTo ApplicationIdentificationKey Apply ApplySides ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcCurvature ARCHProcess ArcLength ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Area Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess Around AroundReplace ARProcess Array ArrayComponents ArrayDepth ArrayFilter ArrayFlatten ArrayMesh ArrayPad ArrayPlot ArrayQ ArrayResample ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads ASATriangle Ask AskAppend AskConfirm AskDisplay AskedQ AskedValue AskFunction AskState AskTemplateDisplay AspectRatio AspectRatioFixed Assert AssociateTo Association AssociationFormat AssociationMap AssociationQ AssociationThread AssumeDeterministic Assuming Assumptions AstronomicalData AsymptoticDSolveValue AsymptoticEqual AsymptoticEquivalent AsymptoticGreater AsymptoticGreaterEqual AsymptoticIntegrate AsymptoticLess AsymptoticLessEqual AsymptoticOutputTracker AsymptoticRSolveValue AsymptoticSolve AsymptoticSum Asynchronous AsynchronousTaskObject AsynchronousTasks Atom AtomCoordinates AtomCount AtomDiagramCoordinates AtomList AtomQ AttentionLayer Attributes Audio AudioAmplify AudioAnnotate AudioAnnotationLookup AudioBlockMap AudioCapture AudioChannelAssignment AudioChannelCombine AudioChannelMix AudioChannels AudioChannelSeparate AudioData AudioDelay AudioDelete AudioDevice AudioDistance AudioFade AudioFrequencyShift AudioGenerator AudioIdentify AudioInputDevice AudioInsert AudioIntervals AudioJoin AudioLabel AudioLength AudioLocalMeasurements AudioLooping AudioLoudness AudioMeasurements AudioNormalize AudioOutputDevice AudioOverlay AudioPad AudioPan AudioPartition AudioPause AudioPitchShift AudioPlay AudioPlot AudioQ AudioRecord AudioReplace AudioResample AudioReverb AudioSampleRate AudioSpectralMap AudioSpectralTransformation AudioSplit AudioStop AudioStream AudioStreams AudioTimeStretch AudioTrim AudioType AugmentedPolyhedron AugmentedSymmetricPolynomial Authenticate Authentication AuthenticationDialog AutoAction Autocomplete AutocompletionFunction AutoCopy AutocorrelationTest AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutoQuoteCharacters AutoRefreshed AutoRemove AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords AutoSubmitting Axes AxesEdge AxesLabel AxesOrigin AxesStyle AxiomaticTheory AxisBabyMonsterGroupB Back Background BackgroundAppearance BackgroundTasksSettings Backslash Backsubstitution Backward Ball Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarcodeImage BarcodeRecognize BaringhausHenzeTest BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseDecode BaseEncode BaseForm Baseline BaselinePosition BaseStyle BasicRecurrentLayer BatchNormalizationLayer BatchSize BatesDistribution BattleLemarieWavelet BayesianMaximization BayesianMaximizationObject BayesianMinimization BayesianMinimizationObject Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized Between BetweennessCentrality BeveledPolyhedron BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryDeserialize BinaryDistance BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinarySerialize BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BiquadraticFilterModel BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor BiweightLocation BiweightMidvariance Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockchainAddressData BlockchainBase BlockchainBlockData BlockchainContractValue BlockchainData BlockchainGet BlockchainKeyEncode BlockchainPut BlockchainTokenData BlockchainTransaction BlockchainTransactionData BlockchainTransactionSign BlockchainTransactionSubmit BlockMap BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bond BondCount BondList BondQ Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms BooleanQ BooleanRegion Booleans BooleanStrings BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryDiscretizeGraphics BoundaryDiscretizeRegion BoundaryMesh BoundaryMeshRegion BoundaryMeshRegionQ BoundaryStyle BoundedRegionQ BoundingRegion Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxObject BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break BridgeData BrightnessEqualize BroadcastStationData Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurve3DBoxOptions BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BSplineSurface3DBoxOptions BubbleChart BubbleChart3D BubbleScale BubbleSizes BuildingData BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteArray ByteArrayFormat ByteArrayQ ByteArrayToString ByteCount ByteOrderingC CachedValue CacheGraphics CachePersistence CalendarConvert CalendarData CalendarType Callout CalloutMarker CalloutStyle CallPacket CanberraDistance Cancel CancelButton CandlestickChart CanonicalGraph CanonicalizePolygon CanonicalizePolyhedron CanonicalName CanonicalWarpingCorrespondence CanonicalWarpingDistance CantorMesh CantorStaircase Cap CapForm CapitalDifferentialD Capitalize CapsuleShape CaptureRunning CardinalBSplineBasis CarlemanLinearize CarmichaelLambda CaseOrdering Cases CaseSensitive Cashflow Casoratian Catalan CatalanNumber Catch Catenate CatenateLayer CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling CelestialSystem Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEvaluationLanguage CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellLabelStyle CellLabelTemplate CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterArray CenterDot CentralFeature CentralMoment CentralMomentGeneratingFunction Cepstrogram CepstrogramArray CepstrumArray CForm ChampernowneNumber ChangeOptions ChannelBase ChannelBrokerAction ChannelDatabin ChannelHistoryLength ChannelListen ChannelListener ChannelListeners ChannelListenerWait ChannelObject ChannelPreSendFunction ChannelReceiverFunction ChannelSend ChannelSubscribers ChanVeseBinarize Character CharacterCounts CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterName CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop ChromaticityPlot ChromaticityPlot3D ChromaticPolynomial Circle CircleBox CircleDot CircleMinus CirclePlus CirclePoints CircleThrough CircleTimes CirculantGraph CircularOrthogonalMatrixDistribution CircularQuaternionMatrixDistribution CircularRealMatrixDistribution CircularSymplecticMatrixDistribution CircularUnitaryMatrixDistribution Circumsphere CityData ClassifierFunction ClassifierInformation ClassifierMeasurements ClassifierMeasurementsObject Classify ClassPriors Clear ClearAll ClearAttributes ClearCookies ClearPermissions ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipPlanesStyle ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent CloudAccountData CloudBase CloudConnect CloudDeploy CloudDirectory CloudDisconnect CloudEvaluate CloudExport CloudExpression CloudExpressions CloudFunction CloudGet CloudImport CloudLoggingData CloudObject CloudObjectInformation CloudObjectInformationData CloudObjectNameFormat CloudObjects CloudObjectURLType CloudPublish CloudPut CloudRenderingMethod CloudSave CloudShare CloudSubmit CloudSymbol CloudUnshare ClusterClassify ClusterDissimilarityFunction ClusteringComponents ClusteringTree CMYKColor Coarse CodeAssistOptions Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorBalance ColorCombine ColorConvert ColorCoverage ColorData ColorDataFunction ColorDetect ColorDistance ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQ ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorsNear ColorSpace ColorToneMapping Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CombinedEntityClass CombinerFunction CometData CommonDefaultFormatTypes Commonest CommonestFilter CommonName CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompanyData CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledCodeFunction CompiledFunction CompilerOptions Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComplexListPlot ComplexPlot ComplexPlot3D ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries CompositeQ Composition CompoundElement CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData ComputeUncertainty Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath ConformAudio ConformImages Congruent ConicHullRegion ConicHullRegion3DBox ConicHullRegionBox ConicOptimization Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphComponents ConnectedGraphQ ConnectedMeshComponents ConnectedMoleculeComponents ConnectedMoleculeQ ConnectionSettings ConnectLibraryCallbackFunction ConnectSystemModelComponents ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray ConstantArrayLayer ConstantImage ConstantPlusLayer ConstantRegionQ Constants ConstantTimesLayer ConstellationData ConstrainedMax ConstrainedMin Construct Containing ContainsAll ContainsAny ContainsExactly ContainsNone ContainsOnly ContentFieldOptions ContentLocationFunction ContentObject ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTask ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean ContrastiveLossLayer Control ControlActive ControlAlignment ControlGroupContentsBox ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket ConvexHullMesh ConvexPolygonQ ConvexPolyhedronQ ConvolutionLayer Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CookieFunction Cookies CoordinateBoundingBox CoordinateBoundingBoxArray CoordinateBounds CoordinateBoundsArray CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDatabin CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CountDistinct CountDistinctBy CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Counts CountsBy Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateCellID CreateChannel CreateCloudExpression CreateDatabin CreateDataSystemModel CreateDialog CreateDirectory CreateDocument CreateFile CreateIntermediateDirectories CreateManagedLibraryExpression CreateNotebook CreatePalette CreatePalettePacket CreatePermissionsGroup CreateScheduledTask CreateSearchIndex CreateSystemModel CreateTemporary CreateUUID CreateWindow CriterionFunction CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossEntropyLossLayer CrossingCount CrossingDetect CrossingPolygon CrossMatrix Csc Csch CTCLossLayer Cube CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrencyConvert CurrentDate CurrentImage CurrentlySpeakingPacket CurrentNotebookImage CurrentScreenImage CurrentValue Curry CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecompositionD DagumDistribution DamData DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DatabaseConnect DatabaseDisconnect DatabaseReference Databin DatabinAdd DatabinRemove Databins DatabinUpload DataCompression DataDistribution DataRange DataReversed Dataset Date DateBounds Dated DateDelimiters DateDifference DatedUnit DateFormat DateFunction DateHistogram DateList DateListLogPlot DateListPlot DateListStepPlot DateObject DateObjectQ DateOverlapsQ DatePattern DatePlus DateRange DateReduction DateString DateTicksFormat DateValue DateWithinQ DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayHemisphere DaylightQ DayMatchQ DayName DayNightTerminator DayPlus DayRange DayRound DeBruijnGraph DeBruijnSequence Debug DebugTag Decapitalize Decimal DecimalForm DeclareKnownSymbols DeclarePackage Decompose DeconvolutionLayer Decrement Decrypt DecryptFile DedekindEta DeepSpaceProbeData Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultPrintPrecision DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValue DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod DefineResourceFunction Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic DEigensystem DEigenvalues Deinitialization Del DelaunayMesh Delayed Deletable Delete DeleteAnomalies DeleteBorderComponents DeleteCases DeleteChannel DeleteCloudExpression DeleteContents DeleteDirectory DeleteDuplicates DeleteDuplicatesBy DeleteFile DeleteMissing DeleteObject DeletePermissionsKey DeleteSearchIndex DeleteSmallComponents DeleteStopwords DeleteWithContents DeletionWarning DelimitedArray DelimitedSequence Delimiter DelimiterFlashTime DelimiterMatching Delimiters DeliveryFunction Dendrogram Denominator DensityGraphics DensityHistogram DensityPlot DensityPlot3D DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DerivedKey DescriptorStateSpace DesignMatrix DestroyAfterEvaluation Det DeviceClose DeviceConfigure DeviceExecute DeviceExecuteAsynchronous DeviceObject DeviceOpen DeviceOpenQ DeviceRead DeviceReadBuffer DeviceReadLatest DeviceReadList DeviceReadTimeSeries Devices DeviceStreams DeviceWrite DeviceWriteBuffer DGaussianWavelet DiacriticalPositioning Diagonal DiagonalizableMatrixQ DiagonalMatrix DiagonalMatrixQ Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DictionaryWordQ DifferenceDelta DifferenceOrder DifferenceQuotient DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitalSignature DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralAngle DihedralGroup Dilation DimensionalCombinations DimensionalMeshComponents DimensionReduce DimensionReducerFunction DimensionReduction Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletBeta DirichletCharacter DirichletCondition DirichletConvolve DirichletDistribution DirichletEta DirichletL DirichletLambda DirichletTransform DirichletWindow DisableConsolePrintPacket DisableFormatting DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLimit DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscreteMaxLimit DiscreteMinLimit DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform DiscreteWaveletTransform DiscretizeGraphics DiscretizeRegion Discriminant DisjointQ Disjunction Disk DiskBox DiskMatrix DiskSegment Dispatch DispatchQ DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceMatrix DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers DivideSides Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentGenerator DocumentGeneratorInformation DocumentGeneratorInformationData DocumentGenerators DocumentNotebook DocumentWeightingRules Dodecahedron DomainRegistrationInformation DominantColors DOSTextFormat Dot DotDashed DotEqual DotLayer DotPlusLayer Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DropoutLayer DSolve DSolveValue Dt DualLinearProgramming DualPolyhedron DualSystemsModel DumpGet DumpSave DuplicateFreeQ Duration Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicGeoGraphics DynamicImage DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptionsE EarthImpactData EarthquakeData EccentricityCentrality Echo EchoFunction EclipseType EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeContract EdgeCost EdgeCount EdgeCoverQ EdgeCycleMatrix EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight EdgeWeightedGraphQ Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData ElementwiseLayer ElidedForms Eliminate EliminationOrder Ellipsoid EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmbedCode EmbeddedHTML EmbeddedService EmbeddingLayer EmbeddingObject EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EmptyRegion EnableConsolePrintPacket Enabled Encode Encrypt EncryptedObject EncryptFile End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfBuffer EndOfFile EndOfLine EndOfString EndPackage EngineEnvironment EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entity EntityClass EntityClassList EntityCopies EntityFunction EntityGroup EntityInstance EntityList EntityPrefetch EntityProperties EntityProperty EntityPropertyClass EntityRegister EntityStore EntityStores EntityTypeName EntityUnregister EntityValue Entropy EntropyFilter Environment Epilog EpilogFunction Equal EqualColumns EqualRows EqualTilde EqualTo EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EscapeRadius EstimatedBackground EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerAngles EulerCharacteristic EulerE EulerGamma EulerianGraphQ EulerMatrix EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluateScheduledTask EvaluationBox EvaluationCell EvaluationCompletionAction EvaluationData EvaluationElements EvaluationEnvironment EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels EventSeries ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludedLines ExcludedPhysicalQuantities ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog ExoplanetData Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi ExpirationDate Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportByteArray ExportForm ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpressionUUID ExpToTrig ExtendedEntityClass ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalBundle ExternalCall ExternalDataCharacterEncoding ExternalEvaluate ExternalFunction ExternalFunctionName ExternalObject ExternalOptions ExternalSessionObject ExternalSessions ExternalTypeSignature ExternalValue Extract ExtractArchive ExtractLayer ExtremeValueDistributionFaceForm FaceGrids FaceGridsStyle FacialFeatures Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail Failure FailureAction FailureDistribution FailureQ False FareySequence FARIMAProcess FeatureDistance FeatureExtract FeatureExtraction FeatureExtractor FeatureExtractorFunction FeatureNames FeatureNearest FeatureSpacePlot FeatureSpacePlot3D FeatureTypes FEDisableConsolePrintPacket FeedbackLinearize FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket FetalGrowthData Fibonacci Fibonorial FieldCompletionFunction FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileConvert FileDate FileExistsQ FileExtension FileFormat FileHandler FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameForms FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileSize FileSystemMap FileSystemScan FileTemplate FileTemplateApply FileType FilledCurve FilledCurveBox FilledCurveBoxOptions Filling FillingStyle FillingTransform FilteredEntityClass FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindAnomalies FindArgMax FindArgMin FindChannels FindClique FindClusters FindCookies FindCurvePath FindCycle FindDevices FindDistribution FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEdgeIndependentPaths FindEquationalProof FindEulerianCycle FindExternalEvaluators FindFaces FindFile FindFit FindFormula FindFundamentalCycles FindGeneratingFunction FindGeoLocation FindGeometricConjectures FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindHamiltonianPath FindHiddenMarkovStates FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMatchingColor FindMaximum FindMaximumFlow FindMaxValue FindMeshDefects FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindMoleculeSubstructure FindPath FindPeaks FindPermutation FindPostmanTour FindProcessParameters FindRepeat FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindSpanningTree FindSystemModelEquilibrium FindTextualAnswer FindThreshold FindTransientRepeat FindVertexCover FindVertexCut FindVertexIndependentPaths Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstCase FirstPassageTimeDistribution FirstPosition FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FitRegularization FittedModel FixedOrder FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlattenLayer FlatTopWindow FlipView Floor FlowPolynomial FlushPrintOutputPacket Fold FoldList FoldPair FoldPairList FollowRedirects Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FormControl FormFunction FormLayoutFunction FormObject FormPage FormTheme FormulaData FormulaLookup FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalGaussianNoiseProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameRate FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrenetSerretSystem FrequencySamplingFilterKernel FresnelC FresnelF FresnelG FresnelS Friday FrobeniusNumber FrobeniusSolve FromAbsoluteTime FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS FromEntity FromJulianDate FromLetterNumber FromPolarCoordinates FromRomanNumeral FromSphericalCoordinates FromUnixTime Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullInformationOutputRegulator FullOptions FullRegion FullSimplify Function FunctionCompile FunctionCompileExport FunctionCompileExportByteArray FunctionCompileExportLibrary FunctionCompileExportString FunctionDomain FunctionExpand FunctionInterpolation FunctionPeriod FunctionRange FunctionSpace FussellVeselyImportanceGaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins GalaxyData GalleryView Gamma GammaDistribution GammaRegularized GapPenalty GARCHProcess GatedRecurrentLayer Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianOrthogonalMatrixDistribution GaussianSymplecticMatrixDistribution GaussianUnitaryMatrixDistribution GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateAsymmetricKeyPair GenerateConditions GeneratedCell GeneratedDocumentBinding GenerateDerivedKey GenerateDigitalSignature GenerateDocument GeneratedParameters GeneratedQuantityMagnitudes GenerateHTTPResponse GenerateSecuredAuthenticationKey GenerateSymmetricKey GeneratingFunction GeneratorDescription GeneratorHistoryLength GeneratorOutputType Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeoAntipode GeoArea GeoArraySize GeoBackground GeoBoundingBox GeoBounds GeoBoundsRegion GeoBubbleChart GeoCenter GeoCircle GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDisk GeoDisplacement GeoDistance GeoDistanceList GeoElevationData GeoEntities GeoGraphics GeogravityModelData GeoGridDirectionDifference GeoGridLines GeoGridLinesStyle GeoGridPosition GeoGridRange GeoGridRangePadding GeoGridUnitArea GeoGridUnitDistance GeoGridVector GeoGroup GeoHemisphere GeoHemisphereBoundary GeoHistogram GeoIdentify GeoImage GeoLabels GeoLength GeoListPlot GeoLocation GeologicalPeriodData GeomagneticModelData GeoMarker GeometricAssertion GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricScene GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoModel GeoNearest GeoPath GeoPosition GeoPositionENU GeoPositionXYZ GeoProjection GeoProjectionData GeoRange GeoRangePadding GeoRegionValuePlot GeoResolution GeoScaleBar GeoServer GeoSmoothHistogram GeoStreamPlot GeoStyling GeoStylingImageFunction GeoVariant GeoVector GeoVectorENU GeoVectorPlot GeoVectorXYZ GeoVisibleRegion GeoVisibleRegionBoundary GeoWithinQ GeoZoomLevel GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenAngle GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter GrammarApply GrammarRules GrammarToken Graph Graph3D GraphAssortativity GraphAutomorphismGroup GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel Greater GreaterEqual GreaterEqualLess GreaterEqualThan GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterThan GreaterTilde Green GreenFunction Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupBy GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators Groupings GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain GroupTogetherGrouping GroupTogetherNestedGrouping GrowCutComponents Gudermannian GuidedFilter GumbelDistributionHaarWavelet HadamardMatrix HalfLine HalfNormalDistribution HalfPlane HalfSpace HamiltonianGraphQ HammingDistance HammingWindow HandlerFunctions HandlerFunctionsKeys HankelH1 HankelH2 HankelMatrix HankelTransform HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash Haversine HazardFunction Head HeadCompose HeaderLines Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings Here HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenMarkovProcess HiddenSurface Highlighted HighlightGraph HighlightImage HighlightMesh HighpassFilter HigmanSimsGroupHS HilbertCurve HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HistoricalPeriodData HitMissTransform HITSCentrality HjorthDistribution HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HostLookup HotellingTSquareDistribution HoytDistribution HTMLSave HTTPErrorResponse HTTPRedirect HTTPRequest HTTPRequestData HTTPResponse Hue HumanGrowthData HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyperplane Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestDataI IconData Iconize IconizedObject IconRules Icosahedron Identity IdentityMatrix If IgnoreCase IgnoreDiacritics IgnorePunctuation IgnoreSpellCheck IgnoringInactive Im Image Image3D Image3DProjection Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageApplyIndexed ImageAspectRatio ImageAssemble ImageAugmentationLayer ImageBoundingBoxes ImageCache ImageCacheValid ImageCapture ImageCaptureFunction ImageCases ImageChannels ImageClip ImageCollage ImageColorSpace ImageCompose ImageContainsQ ImageContents ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDisplacements ImageDistance ImageEffect ImageExposureCombine ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageFocusCombine ImageForestingComponents ImageFormattingWidth ImageForwardTransformation ImageGraphics ImageHistogram ImageIdentify ImageInstanceQ ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarker ImageMarkers ImageMeasurements ImageMesh ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImagePosition ImagePreviewFunction ImagePyramid ImagePyramidApply ImageQ ImageRangeCache ImageRecolor ImageReflect ImageRegion ImageResize ImageResolution ImageRestyle ImageRotate ImageRotated ImageSaliencyFilter ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions ImagingDevice ImplicitRegion Implies Import ImportAutoReplacements ImportByteArray ImportOptions ImportString ImprovementImportance In Inactivate Inactive IncidenceGraph IncidenceList IncidenceMatrix IncludeAromaticBonds IncludeConstantBasis IncludeDefinitions IncludeDirectories IncludeFileExtension IncludeGeneratorTasks IncludeHydrogens IncludeInflections IncludeMetaInformation IncludePods IncludeQuantities IncludeRelatedTables IncludeSingularTerm IncludeWindowTimes Increment IndefiniteMatrixQ Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentPhysicalQuantity IndependentUnit IndependentUnitDimension IndependentVertexSetQ Indeterminate IndeterminateThreshold IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers InfiniteLine InfinitePlane Infinity Infix InflationAdjust InflationMethod Information InformationData InformationDataGrid Inherited InheritScope InhomogeneousPoissonProcess InitialEvaluationHistory Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InitializationObjects InitializationValue Initialize InitialSeeding InlineCounterAssignments InlineCounterIncrements InlineRules Inner InnerPolygon InnerPolyhedron Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionFunction InsertionPointObject InsertLinebreaks InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Insphere Install InstallService InstanceNormalizationLayer InString Integer IntegerDigits IntegerExponent IntegerLength IntegerName IntegerPart IntegerPartitions IntegerQ IntegerReverse Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction Interpreter InterpretTemplate InterquartileRange Interrupt InterruptSettings IntersectingQ Intersection Interval IntervalIntersection IntervalMarkers IntervalMarkersStyle IntervalMemberQ IntervalSlider IntervalUnion Into Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHankelTransform InverseHaversine InverseImagePyramid InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InverseMellinTransform InversePermutation InverseRadon InverseRadonTransform InverseSeries InverseShortTimeFourier InverseSpectrogram InverseSurvivalFunction InverseTransformedRegion InverseWaveletTransform InverseWeierstrassP InverseWishartMatrixDistribution InverseZTransform Invisible InvisibleApplication InvisibleTimes IPAddress IrreduciblePolynomialQ IslandData IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemAspectRatio ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcessJaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join JoinAcross Joined JoinedCurve JoinedCurveBox JoinedCurveBoxOptions JoinForm JordanDecomposition JordanModelDecomposition JulianDate JuliaSetBoettcher JuliaSetIterationCount JuliaSetPlot JuliaSetPointsK KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KEdgeConnectedComponents KEdgeConnectedGraphQ KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelFunction KernelMixtureDistribution Kernels Ket Key KeyCollisionFunction KeyComplement KeyDrop KeyDropFrom KeyExistsQ KeyFreeQ KeyIntersection KeyMap KeyMemberQ KeypointStrength Keys KeySelect KeySort KeySortBy KeyTake KeyUnion KeyValueMap KeyValuePattern Khinchin KillProcess KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnapsackSolve KnightTourGraph KnotData KnownUnitQ KochCurve KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter KVertexConnectedComponents KVertexConnectedGraphQLABColor Label Labeled LabeledSlider LabelingFunction LabelingSize LabelStyle LabelVisibility LaguerreL LakeData LambdaComponents LambertW LaminaData LanczosWindow LandauDistribution Language LanguageCategory LanguageData LanguageIdentify LanguageOptions LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCHColor LCM LeaderSize LeafCount LeapYearQ LearnDistribution LearnedDistribution LearningRate LearningRateMultipliers LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessEqualThan LessFullEqual LessGreater LessLess LessSlantEqual LessThan LessTilde LetterCharacter LetterCounts LetterNumber LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryDataType LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox Line3DBoxOptions LinearFilter LinearFractionalOptimization LinearFractionalTransform LinearGradientImage LinearizingTransformationData LinearLayer LinearModelFit LinearOffsetFunction LinearOptimization LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBoxOptions LineBreak LinebreakAdjustments LineBreakChart LinebreakSemicolonWeighting LineBreakWithin LineColor LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRankCentrality LinkRead LinkReadHeld LinkReadyQ Links LinkService LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot ListDensityPlot3D Listen ListFormat ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListSliceContourPlot3D ListSliceDensityPlot3D ListSliceVectorPlot3D ListStepPlot ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalAdaptiveBinarize LocalCache LocalClusteringCoefficient LocalizeDefinitions LocalizeVariables LocalObject LocalObjects LocalResponseNormalizationLayer LocalSubmit LocalSymbol LocalTime LocalTimeZone LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogisticSigmoid LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongestOrderedSequence LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow LongShortTermMemoryLayer Lookup Loopback LoopFreeGraphQ LossFunction LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowerTriangularMatrixQ LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LunarEclipse LUVColor LyapunovSolve LyonsGroupLyMachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MailAddressValidation MailExecute MailFolder MailItem MailReceiverFunction MailResponseFunction MailSearch MailServerConnect MailServerConnection MailSettings MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules ManagedLibraryExpressionID ManagedLibraryExpressionQ MandelbrotSetBoettcher MandelbrotSetDistance MandelbrotSetIterationCount MandelbrotSetMemberQ MandelbrotSetPlot MangoldtLambda ManhattanDistance Manipulate Manipulator MannedSpaceMissionData MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarchenkoPasturDistribution MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicalFunctionData MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixNormalDistribution MatrixPlot MatrixPower MatrixPropertyDistribution MatrixQ MatrixRank MatrixTDistribution Max MaxBend MaxCellMeasure MaxColorDistance MaxDetect MaxDuration MaxExtraBandwidths MaxExtraConditions MaxFeatureDisplacement MaxFeatures MaxFilter MaximalBy Maximize MaxItems MaxIterations MaxLimit MaxMemoryUsed MaxMixtureKernels MaxOverlapFraction MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxTrainingRounds MaxValue MaxwellDistribution MaxWordGap McLaughlinGroupMcL Mean MeanAbsoluteLossLayer MeanAround MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter MeanSquaredLossLayer Median MedianDeviation MedianFilter MedicalTestData Medium MeijerG MeijerGReduce MeixnerDistribution MellinConvolve MellinTransform MemberQ MemoryAvailable MemoryConstrained MemoryConstraint MemoryInUse MengerMesh Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuList MenuPacket MenuSortingValue MenuStyle MenuView Merge MergeDifferences MergingFunction MersennePrimeExponent MersennePrimeExponentQ Mesh MeshCellCentroid MeshCellCount MeshCellHighlight MeshCellIndex MeshCellLabel MeshCellMarker MeshCellMeasure MeshCellQuality MeshCells MeshCellShapeFunction MeshCellStyle MeshCoordinates MeshFunctions MeshPrimitives MeshQualityGoal MeshRange MeshRefinementFunction MeshRegion MeshRegionQ MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageObject MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation MeteorShowerData Method MethodOptions MexicanHatWavelet MeyerWavelet Midpoint Min MinColorDistance MinDetect MineralData MinFilter MinimalBy MinimalPolynomial MinimalStateSpaceModel Minimize MinimumTimeIncrement MinIntervalSize MinkowskiQuestionMark MinLimit MinMax MinorPlanetData Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingBehavior MissingDataMethod MissingDataRules MissingQ MissingString MissingStyle MissingValuePattern MittagLefflerE MixedFractionParts MixedGraphQ MixedMagnitude MixedRadix MixedRadixQuantity MixedUnit MixtureDistribution Mod Modal Mode Modular ModularInverse ModularLambda Module Modulus MoebiusMu Molecule MoleculeContainsQ MoleculeEquivalentQ MoleculeGraph MoleculeModify MoleculePattern MoleculePlot MoleculePlot3D MoleculeProperty MoleculeQ MoleculeValue Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction MomentOfInertia Monday Monitor MonomialList MonomialOrder MonsterGroupM MoonPhase MoonPosition MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform MortalityData Most MountainData MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovieData MovingAverage MovingMap MovingMedian MoyalDistribution Multicolumn MultiedgeStyle MultigraphQ MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity MultiplySides Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistributionN NakagamiDistribution NameQ Names NamespaceBox NamespaceBoxOptions Nand NArgMax NArgMin NBernoulliB NBodySimulation NBodySimulationData NCache NDEigensystem NDEigenvalues NDSolve NDSolveValue Nearest NearestFunction NearestNeighborGraph NearestTo NebulaData NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeDefiniteMatrixQ NegativeIntegers NegativeMultinomialDistribution NegativeRationals NegativeReals NegativeSemidefiniteMatrixQ NeighborhoodData NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestGraph NestList NestWhile NestWhileList NetAppend NetBidirectionalOperator NetChain NetDecoder NetDelete NetDrop NetEncoder NetEvaluationMode NetExtract NetFlatten NetFoldOperator NetGraph NetInformation NetInitialize NetInsert NetInsertSharedArrays NetJoin NetMapOperator NetMapThreadOperator NetMeasurements NetModel NetNestOperator NetPairEmbeddingOperator NetPort NetPortGradient NetPrepend NetRename NetReplace NetReplacePart NetSharedArray NetStateObject NetTake NetTrain NetTrainResultsObject NetworkPacketCapture NetworkPacketRecording NetworkPacketRecordingDuring NetworkPacketTrace NeumannValue NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextCell NextDate NextPrime NextScheduledTaskTime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NightHemisphere NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants NondimensionalizationTransform None NoneTrue NonlinearModelFit NonlinearStateSpaceModel NonlocalMeansFilter NonNegative NonNegativeIntegers NonNegativeRationals NonNegativeReals NonPositive NonPositiveIntegers NonPositiveRationals NonPositiveReals Nor NorlundB Norm Normal NormalDistribution NormalGrouping NormalizationLayer Normalize Normalized NormalizedSquaredEuclideanDistance NormalMatrixQ NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookImport NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookTemplate NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde Nothing NotHumpDownHump NotHumpEqual NotificationFunction NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar Now NoWhitespace NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms NuclearExplosionData NuclearReactorData Null NullRecords NullSpace NullWords Number NumberCompose NumberDecompose NumberExpand NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberLinePlot NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator NumberSigns NumberString Numerator NumeratorDenominator NumericalOrder NumericalSort NumericArray NumericArrayQ NumericArrayType NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlotO ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OceanData Octahedron OddQ Off Offset OLEData On ONanGroupON Once OneIdentity Opacity OpacityFunction OpacityFunctionScaling Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionalElement OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering OrderingBy OrderingLayer Orderless OrderlessPatternSequence OrnsteinUhlenbeckProcess Orthogonalize OrthogonalMatrixQ Out Outer OuterPolygon OuterPolyhedron OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OverwriteTarget OwenT OwnValuesPackage PackingMethod PaddedForm Padding PaddingLayer PaddingSize PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageTheme PageWidth Pagination PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath PalindromeQ Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo Parallelepiped ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds Parallelogram ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParametricRegion ParentBox ParentCell ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParentNotebook ParetoDistribution ParetoPickandsDistribution ParkData Part PartBehavior PartialCorrelationFunction PartialD ParticleAcceleratorData ParticleData Partition PartitionGranularity PartitionsP PartitionsQ PartLayer PartOfSpeech PartProtection ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteAutoQuoteCharacters PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PeakDetect PeanoCurve PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PercentForm PerfectNumber PerfectNumberQ PerformanceGoal Perimeter PeriodicBoundaryCondition PeriodicInterpolation Periodogram PeriodogramArray Permanent Permissions PermissionsGroup PermissionsGroupMemberQ PermissionsGroups PermissionsKey PermissionsKeys PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PerpendicularBisector PersistenceLocation PersistenceTime PersistentObject PersistentObjects PersistentValue PersonData PERTDistribution PetersenGraph PhaseMargins PhaseRange PhysicalSystemData Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest PingTime Pink PitchRecognize Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarAngle PlanarGraph PlanarGraphQ PlanckRadiationLaw PlaneCurveData PlanetaryMoonData PlanetData PlantData Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLabels PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangeClipPlanesStyle PlotRangePadding PlotRegion PlotStyle PlotTheme Pluralize Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox Point3DBoxOptions PointBox PointBoxOptions PointFigureChart PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonalNumber PolygonAngle PolygonBox PolygonBoxOptions PolygonCoordinates PolygonDecomposition PolygonHoleScale PolygonIntersections PolygonScale Polyhedron PolyhedronAngle PolyhedronCoordinates PolyhedronData PolyhedronDecomposition PolyhedronGenus PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PoolingLayer PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position PositionIndex Positive PositiveDefiniteMatrixQ PositiveIntegers PositiveRationals PositiveReals PositiveSemidefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerRange PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement Predict PredictionRoot PredictorFunction PredictorInformation PredictorMeasurements PredictorMeasurementsObject PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependLayer PrependTo PreprocessingRules PreserveColor PreserveImageOptions Previous PreviousCell PreviousDate PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitivePolynomialQ PrimitiveRoot PrimitiveRootList PrincipalComponents PrincipalValue Print PrintableASCIIQ PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment Printout3D Printout3DPreviewer PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateKey PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessConnection ProcessDirectory ProcessEnvironment Processes ProcessEstimator ProcessInformation ProcessObject ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessStatus ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm ProofObject Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse PsychrometricPropertyData PublicKey PublisherID PulsarData PunctuationCharacter Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptionsQBinomial QFactorial QGamma QHypergeometricPFQ QnDispersion QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ QuadraticOptimization Quantile QuantilePlot Quantity QuantityArray QuantityDistribution QuantityForm QuantityMagnitude QuantityQ QuantityUnit QuantityVariable QuantityVariableCanonicalUnit QuantityVariableDimensions QuantityVariableIdentifier QuantityVariablePhysicalQuantity Quartics QuartileDeviation Quartiles QuartileSkewness Query QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainderRadialGradientImage RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RadonTransform RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Ramp Random RandomChoice RandomColor RandomComplex RandomEntity RandomFunction RandomGeoPosition RandomGraph RandomImage RandomInstance RandomInteger RandomPermutation RandomPoint RandomPolygon RandomPolyhedron RandomPrime RandomReal RandomSample RandomSeed RandomSeeding RandomVariate RandomWalkProcess RandomWord Range RangeFilter RangeSpecification RankedMax RankedMin RarerProbability Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadByteArray ReadLine ReadList ReadProtected ReadString Real RealAbs RealBlockDiagonalForm RealDigits RealExponent Reals RealSign Reap RecognitionPrior RecognitionThreshold Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RectangularRepeatingElement RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate Region RegionBinarize RegionBoundary RegionBounds RegionCentroid RegionDifference RegionDimension RegionDisjoint RegionDistance RegionDistanceFunction RegionEmbeddingDimension RegionEqual RegionFunction RegionImage RegionIntersection RegionMeasure RegionMember RegionMemberFunction RegionMoment RegionNearest RegionNearestFunction RegionPlot RegionPlot3D RegionProduct RegionQ RegionResize RegionSize RegionSymmetricDifference RegionUnion RegionWithin RegisterExternalEvaluator RegularExpression Regularization RegularlySampledQ RegularPolygon ReIm ReImLabels ReImPlot ReImStyle Reinstall RelationalDatabase RelationGraph Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot RemoteAuthorizationCaching RemoteConnect RemoteConnectionObject RemoteFile RemoteRun RemoteRunProcess Remove RemoveAlphaChannel RemoveAsynchronousTask RemoveAudioStream RemoveBackground RemoveChannelListener RemoveChannelSubscribers Removed RemoveDiacritics RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RemoveUsers RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart RepairMesh Repeated RepeatedNull RepeatedString RepeatedTiming RepeatingElement Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated ReplicateLayer RequiredPhysicalQuantities Resampling ResamplingAlgorithmData ResamplingMethod Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask ReshapeLayer Residue ResizeLayer Resolve ResourceAcquire ResourceData ResourceFunction ResourceObject ResourceRegister ResourceRemove ResourceSearch ResourceSubmissionObject ResourceSubmit ResourceSystemBase ResourceUpdate ResponseForm Rest RestartInterval Restricted Resultant ResumePacket Return ReturnEntersInput ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnReceiptFunction ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseSort ReverseSortBy ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ RiemannXi Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightComposition RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity RollPitchYawAngles RollPitchYawMatrix RomanNumeral Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RSolveValue RudinShapiro RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulePlot RulerUnits Run RunProcess RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilaritySameQ SameTest SampledEntityClass SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SASTriangle SatelliteData SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveConnection SaveDefinitions SavitzkyGolayMatrix SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTask ScheduledTaskActiveQ ScheduledTaskInformation ScheduledTaskInformationData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScientificNotationThreshold ScorerGi ScorerGiPrime ScorerHi ScorerHiPrime ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptForm ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition SearchAdjustment SearchIndexObject SearchIndices SearchQueryString SearchResultObject Sec Sech SechDistribution SecondOrderConeOptimization SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SecuredAuthenticationKey SecuredAuthenticationKeys SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook SelectFirst Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemanticImport SemanticImportString SemanticInterpretation SemialgebraicComponentInstances SemidefiniteOptimization SendMail SendMessage Sequence SequenceAlignment SequenceAttentionLayer SequenceCases SequenceCount SequenceFold SequenceFoldList SequenceForm SequenceHold SequenceLastLayer SequenceMostLayer SequencePosition SequencePredict SequencePredictorFunction SequenceReplace SequenceRestLayer SequenceReverseLayer SequenceSplit Series SeriesCoefficient SeriesData ServiceConnect ServiceDisconnect ServiceExecute ServiceObject ServiceRequest ServiceResponse ServiceSubmit SessionSubmit SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetCloudDirectory SetCookies SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPermissions SetPrecision SetProperty SetSecuredAuthenticationKey SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemModel SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetUsers SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share SharingList Sharpen ShearingMatrix ShearingTransform ShellRegion ShenCastanMatrix ShiftedGompertzDistribution ShiftRegisterSequence Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortTimeFourier ShortTimeFourierData ShortUpArrow Show ShowAutoConvert ShowAutoSpellCheck ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowCodeAssist ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiderealTime SiegelTheta SiegelTukeyTest SierpinskiCurve SierpinskiMesh Sign Signature SignedRankTest SignedRegionDistance SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ SimplePolygonQ SimplePolyhedronQ Simplex Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution SkinStyle Skip SliceContourPlot3D SliceDensityPlot3D SliceDistribution SliceVectorPlot3D Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDecomposition SmithDelayCompensator SmithWatermanSimilarity SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SnDispersion Snippet SnubPolyhedron SocialMediaData Socket SocketConnect SocketListen SocketListener SocketObject SocketOpen SocketReadMessage SocketReadyQ Sockets SocketWaitAll SocketWaitNext SoftmaxLayer SokalSneathDissimilarity SolarEclipse SolarSystemFeatureData SolidAngle SolidData SolidRegionQ Solve SolveAlways SolveDelayed Sort SortBy SortedBy SortedEntityClass Sound SoundAndGraphics SoundNote SoundVolume SourceLink Sow Space SpaceCurveData SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution SpatialMedian SpatialTransformationLayer Speak SpeakTextPacket SpearmanRankTest SpearmanRho SpeciesData SpecificityGoal SpectralLineData Spectrogram SpectrogramArray Specularity SpeechRecognize SpeechSynthesize SpellingCorrection SpellingCorrectionList SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SpherePoints SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SphericalShell SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquareMatrixQ SquareRepeatingElement SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave SSSTriangle StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackedDateListPlot StackedListPlot StackInhibit StadiumShape StandardAtmosphereData StandardDeviation StandardDeviationFilter StandardForm Standardize Standardized StandardOceanData StandbyDistribution Star StarClusterData StarData StarGraph StartAsynchronousTask StartExternalSession StartingStepSize StartOfLine StartOfString StartProcess StartScheduledTask StartupSound StartWebSession StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StateTransformationLinearize StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StereochemistryElements StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StoppingPowerData StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamMarkers StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringContainsQ StringCount StringDelete StringDrop StringEndsQ StringExpression StringExtract StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPadLeft StringPadRight StringPart StringPartition StringPosition StringQ StringRepeat StringReplace StringReplaceList StringReplacePart StringReverse StringRiffle StringRotateLeft StringRotateRight StringSkeleton StringSplit StringStartsQ StringTake StringTemplate StringToByteArray StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleData StyleDefinitions StyleForm StyleHints StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subdivide Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subsequences Subset SubsetEqual SubsetMap SubsetQ Subsets SubStar SubstitutionSystem Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubtractSides SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde Success SuchThat Sum SumConvergence SummationLayer Sunday SunPosition Sunrise Sunset SuperDagger SuperMinus SupernovaData SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceArea SurfaceColor SurfaceData SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricKey SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Synonyms Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SynthesizeMissingValues SystemDialogInput SystemException SystemGet SystemHelpPath SystemInformation SystemInformationData SystemInstall SystemModel SystemModeler SystemModelExamples SystemModelLinearize SystemModelParametricSimulate SystemModelPlot SystemModelProgressReporting SystemModelReliability SystemModels SystemModelSimulate SystemModelSimulateSensitivity SystemModelSimulationData SystemOpen SystemOptions SystemProcessData SystemProcesses SystemsConnectionsModel SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelLinearity SystemsModelMerge SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemsModelVectorRelativeOrders SystemStub SystemTestTab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TableViewBoxBackground TableViewBoxOptions TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeDrop TakeLargest TakeLargestBy TakeList TakeSmallest TakeSmallestBy TakeWhile Tally Tan Tanh TargetDevice TargetFunctions TargetSystem TargetUnits TaskAbort TaskExecute TaskObject TaskRemove TaskResume Tasks TaskSuspend TaskWait TautologyQ TelegraphProcess TemplateApply TemplateArgBox TemplateBox TemplateBoxOptions TemplateEvaluate TemplateExpression TemplateIf TemplateObject TemplateSequence TemplateSlot TemplateSlotSequence TemplateUnevaluated TemplateVerbatim TemplateWith TemporalData TemporalRegularity Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge TestID TestReport TestReportObject TestResultObject Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCases TextCell TextClipboardType TextContents TextData TextElement TextForm TextGrid TextJustification TextLine TextPacket TextParagraph TextPosition TextRecognize TextSearch TextSearchReport TextSentences TextString TextStructure TextStyle TextTranslation Texture TextureCoordinateFunction TextureCoordinateScaling TextWords Therefore ThermodynamicData ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreadingLayer ThreeJSymbol Threshold Through Throw ThueMorse Thumbnail Thursday Ticks TicksStyle TideData Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint TimeDirection TimeFormat TimeGoal TimelinePlot TimeObject TimeObjectQ Times TimesBy TimeSeries TimeSeriesAggregate TimeSeriesForecast TimeSeriesInsert TimeSeriesInvertibility TimeSeriesMap TimeSeriesMapThread TimeSeriesModel TimeSeriesModelFit TimeSeriesResample TimeSeriesRescale TimeSeriesShift TimeSeriesThread TimeSeriesWindow TimeUsed TimeValue TimeWarpingCorrespondence TimeWarpingDistance TimeZone TimeZoneConvert TimeZoneOffset Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate Today ToDiscreteTimeModel ToEntity ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase Tomorrow ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform ToPolarCoordinates TopologicalSort ToRadicals ToRules ToSphericalCoordinates ToString Total TotalHeight TotalLayer TotalVariationFilter TotalWidth TouchPosition TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TrackingFunction TracyWidomDistribution TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TrainingProgressCheckpointing TrainingProgressFunction TrainingProgressMeasurements TrainingProgressReporting TrainingStoppingCriterion TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationClass TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField TransformedProcess TransformedRegion TransitionDirection TransitionDuration TransitionEffect TransitiveClosureGraph TransitiveReductionGraph Translate TranslationOptions TranslationTransform Transliterate Transparent TransparentColor Transpose TransposeLayer TrapSelection TravelDirections TravelDirectionsData TravelDistance TravelDistanceList TravelMethod TravelTime TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle Triangle TriangleCenter TriangleConstruct TriangleMeasurement TriangleWave TriangularDistribution TriangulateMesh Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean TrimmedVariance TropicalStormData True TrueQ TruncatedDistribution TruncatedPolyhedron TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBoxOptions TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow TunnelData Tuples TuranGraph TuringMachine TuttePolynomial TwoWayRule Typed TypeSpecifierUnateQ Uncompress UnconstrainedParameters Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UnderseaFeatureData UndirectedEdge UndirectedGraph UndirectedGraphQ UndoOptions UndoTrackedVariables Unequal UnequalTo Unevaluated UniformDistribution UniformGraphDistribution UniformPolyhedron UniformSumDistribution Uninstall Union UnionPlus Unique UnitaryMatrixQ UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitSystem UnitTriangle UnitVector UnitVectorLayer UnityDimensions UniverseModelData UniversityData UnixTime Unprotect UnregisterExternalEvaluator UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpdateSearchIndex UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize UpperTriangularMatrixQ Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpTo UpValues URL URLBuild URLDecode URLDispatcher URLDownload URLDownloadSubmit URLEncode URLExecute URLExpand URLFetch URLFetchAsynchronous URLParse URLQueryDecode URLQueryEncode URLRead URLResponseTime URLSave URLSaveAsynchronous URLShorten URLSubmit UseGraphicsRange UserDefinedWavelet Using UsingFrontEnd UtilityFunctionV2Get ValenceErrorHandling ValidationLength ValidationSet Value ValueBox ValueBoxOptions ValueDimensions ValueForm ValuePreprocessingFunction ValueQ Values ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorAround VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorGreater VectorGreaterEqual VectorLess VectorLessEqual VectorMarkers VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerificationTest VerifyConvergence VerifyDerivedKey VerifyDigitalSignature VerifyInterpretation VerifySecurityCertificates VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexContract VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight VertexWeightedGraphQ Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewProjection ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoiceStyleData VoigtDistribution VolcanoData Volume VonMisesDistribution VoronoiMeshWaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WarpingCorrespondence WarpingDistance WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeatherForecastData WebAudioSearch WebElementObject WeberE WebExecute WebImage WebImageSearch WebSearch WebSessionObject WebSessions WebWindowObject Wedge Wednesday WeibullDistribution WeierstrassE1 WeierstrassE2 WeierstrassE3 WeierstrassEta1 WeierstrassEta2 WeierstrassEta3 WeierstrassHalfPeriods WeierstrassHalfPeriodW1 WeierstrassHalfPeriodW2 WeierstrassHalfPeriodW3 WeierstrassInvariantG2 WeierstrassInvariantG3 WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White WhiteNoiseProcess WhitePoint Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WikipediaData WikipediaSearch WilksW WilksWTest WindDirectionData WindingCount WindingPolygon WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowPersistentStyles WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth WindSpeedData WindVectorData WinsorizedMean WinsorizedVariance WishartMatrixDistribution With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult WolframLanguageData Word WordBoundary WordCharacter WordCloud WordCount WordCounts WordData WordDefinition WordFrequency WordFrequencyData WordList WordOrientation WordSearch WordSelectionFunction WordSeparators WordSpacings WordStem WordTranslation WorkingPrecision WrapAround Write WriteLine WriteString WronskianXMLElement XMLObject XMLTemplate Xnor Xor XYZColorYellow Yesterday YuleDissimilarityZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZIPCodeData ZipfDistribution ZoomCenter ZoomFactor ZTest ZTransform$Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AllowExternalChannelFunctions $AssertFunction $Assumptions $AsynchronousTask $AudioInputDevices $AudioOutputDevices $BaseDirectory $BatchInput $BatchOutput $BlockchainBase $BoxForms $ByteOrdering $CacheBaseDirectory $Canceled $ChannelBase $CharacterEncoding $CharacterEncodings $CloudBase $CloudConnected $CloudCreditsAvailable $CloudEvaluation $CloudExpressionBase $CloudObjectNameFormat $CloudObjectURLType $CloudRootDirectory $CloudSymbolBase $CloudUserID $CloudUserUUID $CloudVersion $CloudVersionNumber $CloudWolframEngineVersionNumber $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $Cookies $CookieStore $CreationDate $CurrentLink $CurrentTask $CurrentWebSession $DateStringFormat $DefaultAudioInputDevice $DefaultAudioOutputDevice $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultLocalBase $DefaultMailbox $DefaultNetworkInterface $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $EmbedCodeEnvironments $EmbeddableServices $EntityStores $Epilog $EvaluationCloudBase $EvaluationCloudObject $EvaluationEnvironment $ExportFormats $Failed $FinancialDataSource $FontFamilies $FormatType $FrontEnd $FrontEndSession $GeoEntityTypes $GeoLocation $GeoLocationCity $GeoLocationCountry $GeoLocationPrecision $GeoLocationSource $HistoryLength $HomeDirectory $HTMLExportRules $HTTPCookies $HTTPRequest $IgnoreEOF $ImageFormattingWidth $ImagingDevice $ImagingDevices $ImportFormats $IncomingMailSettings $InitialDirectory $Initialization $InitializationContexts $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $InterpreterTypes $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $LocalBase $LocalSymbolBase $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $MobilePhone $ModuleNumber $NetworkConnected $NetworkInterfaces $NetworkLicense $NewMessage $NewSymbol $Notebooks $NoValue $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $Permissions $PermissionsGroupBase $PersistenceBase $PersistencePath $PipeSupported $PlotTheme $Post $Pre $PreferencesDirectory $PreInitialization $PrePrint $PreRead $PrintForms $PrintLiteral $Printout3DPreviewer $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $PublisherID $RandomState $RecursionLimit $RegisteredDeviceClasses $RegisteredUserName $ReleaseNumber $RequesterAddress $RequesterWolframID $RequesterWolframUUID $ResourceSystemBase $RootDirectory $ScheduledTask $ScriptCommandLine $ScriptInputString $SecuredAuthenticationKeyTokens $ServiceCreditsAvailable $Services $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SourceLink $SSHAuthentication $SummaryBoxDataSizeLimit $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemMemory $SystemShell $SystemTimeZone $SystemWordLength $TemplatePath $TemporaryDirectory $TemporaryPrefix $TestFileName $TextStyle $TimedOut $TimeUnit $TimeZone $TimeZoneEntity $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $UnitSystem $Urgent $UserAddOnsDirectory $UserAgentLanguages $UserAgentMachine $UserAgentName $UserAgentOperatingSystem $UserAgentString $UserAgentVersion $UserBaseDirectory $UserDocumentsDirectory $Username $UserName $UserURLBase $Version $VersionNumber $VoiceStyles $WolframID $WolframUUID",contains:[e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),e.registerLanguage("matlab",(function(e){var t="('|\\.')+",n={relevance:0,contains:[{begin:t}]};return{keywords:{keyword:"break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*('|\\.')+",relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}],starts:n},e.COMMENT("^\\s*\\%\\{\\s*$","^\\s*\\%\\}\\s*$"),e.COMMENT("\\%","$")]}})),e.registerLanguage("maxima",(function(e){return{lexemes:"[A-Za-z_%][0-9A-Za-z_%]*",keywords:{keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}})),e.registerLanguage("mel",(function(e){return{keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"[\\$\\%\\@](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),e.registerLanguage("mercury",(function(e){var t=e.COMMENT("%","$"),n=e.inherit(e.APOS_STRING_MODE,{relevance:0}),a=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return a.contains.push({className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0}),{aliases:["m","moo"],keywords:{keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},t,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,n,a,{begin:/:-/},{begin:/\.$/}]}})),e.registerLanguage("mipsasm",(function(e){return{case_insensitive:!0,aliases:["mips"],lexemes:"\\.?"+e.IDENT_RE,keywords:{meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(.hb)?|jr(.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs.[sd]|add.[sd]|alnv.ps|bc1[ft]l?|c.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et]).[sd]|(ceil|floor|round|trunc).[lw].[sd]|cfc1|cvt.d.[lsw]|cvt.l.[dsw]|cvt.ps.s|cvt.s.[dlw]|cvt.s.p[lu]|cvt.w.[dls]|div.[ds]|ldx?c1|luxc1|lwx?c1|madd.[sd]|mfc1|mov[fntz]?.[ds]|msub.[sd]|mth?c1|mul.[ds]|neg.[ds]|nmadd.[ds]|nmsub.[ds]|p[lu][lu].ps|recip.fmt|r?sqrt.[ds]|sdx?c1|sub.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:"/"}})),e.registerLanguage("mizar",(function(e){return{keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}})),e.registerLanguage("perl",(function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",n={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:t},a={begin:"->{",end:"}"},o={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},r=[e.BACKSLASH_ESCAPE,n,o],i=[o,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),a,{className:"string",contains:r,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*\\<",end:"\\>",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"{\\w+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return n.contains=i,a.contains=i,{aliases:["pl","pm"],lexemes:/[\w\.]+/,keywords:t,contains:i}})),e.registerLanguage("mojolicious",(function(e){return{subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}})),e.registerLanguage("monkey",(function(e){var t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}})),e.registerLanguage("moonscript",(function(e){var t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",a={className:"subst",begin:/#\{/,end:/}/,keywords:t},o=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];a.contains=o;var r=e.inherit(e.TITLE_MODE,{begin:n}),i="(\\(.*\\))?\\s*\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{aliases:["moon"],keywords:t,illegal:/\/\*/,contains:o.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+i,end:"[-=]>",returnBegin:!0,contains:[r,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:i,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[r]},r]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}})),e.registerLanguage("n1ql",(function(e){return{case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE],relevance:2},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}})),e.registerLanguage("nginx",(function(e){var t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,lexemes:"[a-z/_]+",keywords:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}})),e.registerLanguage("nimrod",(function(e){return{aliases:["nim"],keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/{\./,end:/\.}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}})),e.registerLanguage("nix",(function(e){var t={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},n={className:"subst",begin:/\$\{/,end:/}/,keywords:t},a={className:"string",contains:[n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},o=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,{begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]}];return n.contains=o,{aliases:["nixos"],keywords:t,contains:o}})),e.registerLanguage("nsis",(function(e){var t={className:"variable",begin:/\$+{[\w\.:-]+}/},n={className:"variable",begin:/\$+\w+/,illegal:/\(\){}/},a={className:"variable",begin:/\$+\([\w\^\.:-]+\)/},o={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"meta",begin:/\$(\\[nrt]|\$)/},{className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},t,n,a]};return{case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},o,{className:"keyword",begin:/\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},t,n,a,{className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},{className:"class",begin:/\w+\:\:\w+/},e.NUMBER_MODE]}})),e.registerLanguage("objectivec",(function(e){var t=/[a-zA-Z@][a-zA-Z0-9_]*/,n="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],keywords:{keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},lexemes:t,illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"}]},{className:"meta",begin:"#",end:"$",contains:[{className:"meta-string",variants:[{begin:'"',end:'"'},{begin:"<",end:">"}]}]},{className:"class",begin:"("+n.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:n,lexemes:t,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}})),e.registerLanguage("ocaml",(function(e){return{aliases:["ml"],keywords:{keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}})),e.registerLanguage("openscad",(function(e){var t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"function",beginKeywords:"module function",end:"\\=|\\{",contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",n,a,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]};return{aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},a,t,{begin:"[*!#%]",relevance:0},o]}})),e.registerLanguage("oxygene",(function(e){var t="abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",n=e.COMMENT("{","}",{relevance:0}),a=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),o={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},r={className:"string",begin:"(#\\d+)+"},i={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[o,r]},n,a]};return{case_insensitive:!0,lexemes:/\.?\w+/,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[n,a,e.C_LINE_COMMENT_MODE,o,r,e.NUMBER_MODE,i,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:t,contains:[o,r,n,a,e.C_LINE_COMMENT_MODE,i]}]}})),e.registerLanguage("parser3",(function(e){var t=e.COMMENT("{","}",{contains:["self"]});return{subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT("\\^rem{","}",{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:"\\$\\{?[\\w\\-\\.\\:]+\\}?"},{className:"keyword",begin:"\\^[\\w\\-\\.\\:]+"},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}})),e.registerLanguage("pf",(function(e){return{aliases:["pf.conf"],lexemes:/[a-z0-9_<>-]+/,keywords:{built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/},{className:"variable",begin:/<(?!\/)/,end:/>/}]}})),e.registerLanguage("pgsql",(function(e){var t=e.COMMENT("--","$"),n="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",a=n.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|"),o="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAPLEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILYINET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map((function(e){return e.split("|")[0]})).join("|");return{aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",built_in:"CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|{{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+o+")\\s*\\("},{begin:"\\.("+a+")\\b"},{begin:"\\b("+a+")\\s+PATH\\b",keywords:{keyword:"PATH",type:n.replace("PATH ","")}},{className:"type",begin:"\\b("+a+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},{begin:"\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",endSameAsBegin:!0,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]},{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}})),e.registerLanguage("php",(function(e){var t={begin:"\\$+[a-zA-Z_\7f-ÿ][a-zA-Z0-9_\7f-ÿ]*"},n={className:"meta",begin:/<\?(php)?|\?>/},a={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},o={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",t,e.C_BLOCK_COMMENT_MODE,a,o]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},a,o]}})),e.registerLanguage("plaintext",(function(e){return{disableAutodetect:!0}})),e.registerLanguage("pony",(function(e){return{keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+"'",relevance:0},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),e.registerLanguage("powershell",(function(e){var t={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$[\w\d][\w\d_:]*/}]},a={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[t,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},o=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]});return{aliases:["ps","ps1"],lexemes:/-?[A-z\.\-]+/,case_insensitive:!0,keywords:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catchValidateNoCircleInNodeResources ValidateNodeExclusiveResources ValidateNodeManager ValidateNodeResources ValidateNodeResourceSource ValidateNoNameNodeResources ThrowError IsHiddenResourceIsPatternMatched ",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning Add-MDTPersistentDrive Disable-MDTMonitorService Enable-MDTMonitorService Get-MDTDeploymentShareStatistics Get-MDTMonitorData Get-MDTOperatingSystemCatalog Get-MDTPersistentDrive Import-MDTApplication Import-MDTDriver Import-MDTOperatingSystem Import-MDTPackage Import-MDTTaskSequence New-MDTDatabase Remove-MDTMonitorData Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema Update-MDTDeploymentShare Update-MDTLinkedDS Update-MDTMedia Add-VamtProductKey Export-VamtData Find-VamtManagedMachine Get-VamtConfirmationId Get-VamtProduct Get-VamtProductKey Import-VamtData Initialize-VamtData Install-VamtConfirmationId Install-VamtProductActivation Install-VamtProductKey Update-VamtProduct Add-CIDatastore Add-KeyManagementServer Add-NodeKeys Add-NsxDynamicCriteria Add-NsxDynamicMemberSet Add-NsxEdgeInterfaceAddress Add-NsxFirewallExclusionListMember Add-NsxFirewallRuleMember Add-NsxIpSetMember Add-NsxLicense Add-NsxLoadBalancerPoolMember Add-NsxLoadBalancerVip Add-NsxSecondaryManager Add-NsxSecurityGroupMember Add-NsxSecurityPolicyRule Add-NsxSecurityPolicyRuleGroup Add-NsxSecurityPolicyRuleService Add-NsxServiceGroupMember Add-NsxTransportZoneMember Add-PassthroughDevice Add-VDSwitchPhysicalNetworkAdapter Add-VDSwitchVMHost Add-VMHost Add-VMHostNtpServer Add-VirtualSwitchPhysicalNetworkAdapter Add-XmlElement Add-vRACustomForm Add-vRAPrincipalToTenantRole Add-vRAReservationNetwork Add-vRAReservationStorage Clear-NsxEdgeInterface Clear-NsxManagerTimeSettings Compress-Archive Connect-CIServer Connect-CisServer Connect-HCXServer Connect-NIServer Connect-NsxLogicalSwitch Connect-NsxServer Connect-NsxtServer Connect-SrmServer Connect-VIServer Connect-Vmc Connect-vRAServer Connect-vRNIServer ConvertFrom-Markdown ConvertTo-MOFInstance Copy-DatastoreItem Copy-HardDisk Copy-NsxEdge Copy-VDisk Copy-VMGuestFile Debug-Runspace Disable-NsxEdgeSsh Disable-RunspaceDebug Disable-vRNIDataSource Disconnect-CIServer Disconnect-CisServer Disconnect-HCXServer Disconnect-NsxLogicalSwitch Disconnect-NsxServer Disconnect-NsxtServer Disconnect-SrmServer Disconnect-VIServer Disconnect-Vmc Disconnect-vRAServer Disconnect-vRNIServer Dismount-Tools Enable-NsxEdgeSsh Enable-RunspaceDebug Enable-vRNIDataSource Expand-Archive Export-NsxObject Export-SpbmStoragePolicy Export-VApp Export-VDPortGroup Export-VDSwitch Export-VMHostProfile Export-vRAIcon Export-vRAPackage Find-Command Find-DscResource Find-Module Find-NsxWhereVMUsed Find-Package Find-PackageProvider Find-RoleCapability Find-Script Format-Hex Format-VMHostDiskPartition Format-XML Generate-VersionInfo Get-AdvancedSetting Get-AlarmAction Get-AlarmActionTrigger Get-AlarmDefinition Get-Annotation Get-CDDrive Get-CIAccessControlRule Get-CIDatastore Get-CINetworkAdapter Get-CIRole Get-CIUser Get-CIVApp Get-CIVAppNetwork Get-CIVAppStartRule Get-CIVAppTemplate Get-CIVM Get-CIVMTemplate Get-CIView Get-Catalog Get-CisCommand Get-CisService Get-CloudCommand Get-Cluster Get-CompatibleVersionAddtionaPropertiesStr Get-ComplexResourceQualifier Get-ConfigurationErrorCount Get-ContentLibraryItem Get-CustomAttribute Get-DSCResourceModules Get-Datacenter Get-Datastore Get-DatastoreCluster Get-DrsClusterGroup Get-DrsRecommendation Get-DrsRule Get-DrsVMHostRule Get-DscResource Get-EdgeGateway Get-EncryptedPassword Get-ErrorReport Get-EsxCli Get-EsxTop Get-ExternalNetwork Get-FileHash Get-FloppyDrive Get-Folder Get-HAPrimaryVMHost Get-HCXAppliance Get-HCXApplianceCompute Get-HCXApplianceDVS Get-HCXApplianceDatastore Get-HCXApplianceNetwork Get-HCXContainer Get-HCXDatastore Get-HCXGateway Get-HCXInterconnectStatus Get-HCXJob Get-HCXMigration Get-HCXNetwork Get-HCXNetworkExtension Get-HCXReplication Get-HCXReplicationSnapshot Get-HCXService Get-HCXSite Get-HCXSitePairing Get-HCXVM Get-HardDisk Get-IScsiHbaTarget Get-InnerMostErrorRecord Get-InstallPath Get-InstalledModule Get-InstalledScript Get-Inventory Get-ItemPropertyValue Get-KeyManagementServer Get-KmipClientCertificate Get-KmsCluster Get-Log Get-LogType Get-MarkdownOption Get-Media Get-MofInstanceName Get-MofInstanceText Get-NetworkAdapter Get-NetworkPool Get-NfsUser Get-NicTeamingPolicy Get-NsxApplicableMember Get-NsxApplicableSecurityAction Get-NsxBackingDVSwitch Get-NsxBackingPortGroup Get-NsxCliDfwAddrSet Get-NsxCliDfwFilter Get-NsxCliDfwRule Get-NsxClusterStatus Get-NsxController Get-NsxDynamicCriteria Get-NsxDynamicMemberSet Get-NsxEdge Get-NsxEdgeBgp Get-NsxEdgeBgpNeighbour Get-NsxEdgeCertificate Get-NsxEdgeCsr Get-NsxEdgeFirewall Get-NsxEdgeFirewallRule Get-NsxEdgeInterface Get-NsxEdgeInterfaceAddress Get-NsxEdgeNat Get-NsxEdgeNatRule Get-NsxEdgeOspf Get-NsxEdgeOspfArea Get-NsxEdgeOspfInterface Get-NsxEdgePrefix Get-NsxEdgeRedistributionRule Get-NsxEdgeRouting Get-NsxEdgeStaticRoute Get-NsxEdgeSubInterface Get-NsxFirewallExclusionListMember Get-NsxFirewallGlobalConfiguration Get-NsxFirewallPublishStatus Get-NsxFirewallRule Get-NsxFirewallRuleMember Get-NsxFirewallSavedConfiguration Get-NsxFirewallSection Get-NsxFirewallThreshold Get-NsxIpPool Get-NsxIpSet Get-NsxLicense Get-NsxLoadBalancer Get-NsxLoadBalancerApplicationProfile Get-NsxLoadBalancerApplicationRule Get-NsxLoadBalancerMonitor Get-NsxLoadBalancerPool Get-NsxLoadBalancerPoolMember Get-NsxLoadBalancerStats Get-NsxLoadBalancerVip Get-NsxLogicalRouter Get-NsxLogicalRouterBgp Get-NsxLogicalRouterBgpNeighbour Get-NsxLogicalRouterBridge Get-NsxLogicalRouterBridging Get-NsxLogicalRouterInterface Get-NsxLogicalRouterOspf Get-NsxLogicalRouterOspfArea Get-NsxLogicalRouterOspfInterface Get-NsxLogicalRouterPrefix Get-NsxLogicalRouterRedistributionRule Get-NsxLogicalRouterRouting Get-NsxLogicalRouterStaticRoute Get-NsxLogicalSwitch Get-NsxMacSet Get-NsxManagerBackup Get-NsxManagerCertificate Get-NsxManagerComponentSummary Get-NsxManagerNetwork Get-NsxManagerRole Get-NsxManagerSsoConfig Get-NsxManagerSyncStatus Get-NsxManagerSyslogServer Get-NsxManagerSystemSummary Get-NsxManagerTimeSettings Get-NsxManagerVcenterConfig Get-NsxSecondaryManager Get-NsxSecurityGroup Get-NsxSecurityGroupEffectiveIpAddress Get-NsxSecurityGroupEffectiveMacAddress Get-NsxSecurityGroupEffectiveMember Get-NsxSecurityGroupEffectiveVirtualMachine Get-NsxSecurityGroupEffectiveVnic Get-NsxSecurityGroupMemberTypes Get-NsxSecurityPolicy Get-NsxSecurityPolicyHighestUsedPrecedence Get-NsxSecurityPolicyRule Get-NsxSecurityTag Get-NsxSecurityTagAssignment Get-NsxSegmentIdRange Get-NsxService Get-NsxServiceDefinition Get-NsxServiceGroup Get-NsxServiceGroupMember Get-NsxServiceProfile Get-NsxSpoofguardNic Get-NsxSpoofguardPolicy Get-NsxSslVpn Get-NsxSslVpnAuthServer Get-NsxSslVpnClientInstallationPackage Get-NsxSslVpnIpPool Get-NsxSslVpnPrivateNetwork Get-NsxSslVpnUser Get-NsxTransportZone Get-NsxUserRole Get-NsxVdsContext Get-NsxtPolicyService Get-NsxtService Get-OSCustomizationNicMapping Get-OSCustomizationSpec Get-Org Get-OrgNetwork Get-OrgVdc Get-OrgVdcNetwork Get-OvfConfiguration Get-PSCurrentConfigurationNode Get-PSDefaultConfigurationDocument Get-PSMetaConfigDocumentInstVersionInfo Get-PSMetaConfigurationProcessed Get-PSReadLineKeyHandler Get-PSReadLineOption Get-PSRepository Get-PSTopConfigurationName Get-PSVersion Get-Package Get-PackageProvider Get-PackageSource Get-PassthroughDevice Get-PositionInfo Get-PowerCLICommunity Get-PowerCLIConfiguration Get-PowerCLIHelp Get-PowerCLIVersion Get-PowerNsxVersion Get-ProviderVdc Get-PublicKeyFromFile Get-PublicKeyFromStore Get-ResourcePool Get-Runspace Get-RunspaceDebug Get-ScsiController Get-ScsiLun Get-ScsiLunPath Get-SecurityInfo Get-SecurityPolicy Get-Snapshot Get-SpbmCapability Get-SpbmCompatibleStorage Get-SpbmEntityConfiguration Get-SpbmFaultDomain Get-SpbmPointInTimeReplica Get-SpbmReplicationGroup Get-SpbmReplicationPair Get-SpbmStoragePolicy Get-Stat Get-StatInterval Get-StatType Get-Tag Get-TagAssignment Get-TagCategory Get-Task Get-Template Get-TimeZone Get-Uptime Get-UsbDevice Get-VAIOFilter Get-VApp Get-VDBlockedPolicy Get-VDPort Get-VDPortgroup Get-VDPortgroupOverridePolicy Get-VDSecurityPolicy Get-VDSwitch Get-VDSwitchPrivateVlan Get-VDTrafficShapingPolicy Get-VDUplinkLacpPolicy Get-VDUplinkTeamingPolicy Get-VDisk Get-VIAccount Get-VICommand Get-VICredentialStoreItem Get-VIEvent Get-VIObjectByVIView Get-VIPermission Get-VIPrivilege Get-VIProperty Get-VIRole Get-VM Get-VMGuest Get-VMHost Get-VMHostAccount Get-VMHostAdvancedConfiguration Get-VMHostAuthentication Get-VMHostAvailableTimeZone Get-VMHostDiagnosticPartition Get-VMHostDisk Get-VMHostDiskPartition Get-VMHostFirewallDefaultPolicy Get-VMHostFirewallException Get-VMHostFirmware Get-VMHostHardware Get-VMHostHba Get-VMHostModule Get-VMHostNetwork Get-VMHostNetworkAdapter Get-VMHostNtpServer Get-VMHostPatch Get-VMHostPciDevice Get-VMHostProfile Get-VMHostProfileImageCacheConfiguration Get-VMHostProfileRequiredInput Get-VMHostProfileStorageDeviceConfiguration Get-VMHostProfileUserConfiguration Get-VMHostProfileVmPortGroupConfiguration Get-VMHostRoute Get-VMHostService Get-VMHostSnmp Get-VMHostStartPolicy Get-VMHostStorage Get-VMHostSysLogServer Get-VMQuestion Get-VMResourceConfiguration Get-VMStartPolicy Get-VTpm Get-VTpmCSR Get-VTpmCertificate Get-VasaProvider Get-VasaStorageArray Get-View Get-VirtualPortGroup Get-VirtualSwitch Get-VmcSddcNetworkService Get-VmcService Get-VsanClusterConfiguration Get-VsanComponent Get-VsanDisk Get-VsanDiskGroup Get-VsanEvacuationPlan Get-VsanFaultDomain Get-VsanIscsiInitiatorGroup Get-VsanIscsiInitiatorGroupTargetAssociation Get-VsanIscsiLun Get-VsanIscsiTarget Get-VsanObject Get-VsanResyncingComponent Get-VsanRuntimeInfo Get-VsanSpaceUsage Get-VsanStat Get-VsanView Get-vRAApplianceServiceStatus Get-vRAAuthorizationRole Get-vRABlueprint Get-vRABusinessGroup Get-vRACatalogItem Get-vRACatalogItemRequestTemplate Get-vRACatalogPrincipal Get-vRAComponentRegistryService Get-vRAComponentRegistryServiceEndpoint Get-vRAComponentRegistryServiceStatus Get-vRAContent Get-vRAContentData Get-vRAContentType Get-vRACustomForm Get-vRAEntitledCatalogItem Get-vRAEntitledService Get-vRAEntitlement Get-vRAExternalNetworkProfile Get-vRAGroupPrincipal Get-vRAIcon Get-vRANATNetworkProfile Get-vRANetworkProfileIPAddressList Get-vRANetworkProfileIPRangeSummary Get-vRAPackage Get-vRAPackageContent Get-vRAPropertyDefinition Get-vRAPropertyGroup Get-vRARequest Get-vRARequestDetail Get-vRAReservation Get-vRAReservationComputeResource Get-vRAReservationComputeResourceMemory Get-vRAReservationComputeResourceNetwork Get-vRAReservationComputeResourceResourcePool Get-vRAReservationComputeResourceStorage Get-vRAReservationPolicy Get-vRAReservationTemplate Get-vRAReservationType Get-vRAResource Get-vRAResourceAction Get-vRAResourceActionRequestTemplate Get-vRAResourceMetric Get-vRAResourceOperation Get-vRAResourceType Get-vRARoutedNetworkProfile Get-vRAService Get-vRAServiceBlueprint Get-vRASourceMachine Get-vRAStorageReservationPolicy Get-vRATenant Get-vRATenantDirectory Get-vRATenantDirectoryStatus Get-vRATenantRole Get-vRAUserPrincipal Get-vRAUserPrincipalGroupMembership Get-vRAVersion Get-vRNIAPIVersion Get-vRNIApplication Get-vRNIApplicationTier Get-vRNIDataSource Get-vRNIDataSourceSNMPConfig Get-vRNIDatastore Get-vRNIDistributedSwitch Get-vRNIDistributedSwitchPortGroup Get-vRNIEntity Get-vRNIEntityName Get-vRNIFirewallRule Get-vRNIFlow Get-vRNIHost Get-vRNIHostVMKNic Get-vRNIIPSet Get-vRNIL2Network Get-vRNINSXManager Get-vRNINodes Get-vRNIProblem Get-vRNIRecommendedRules Get-vRNIRecommendedRulesNsxBundle Get-vRNISecurityGroup Get-vRNISecurityTag Get-vRNIService Get-vRNIServiceGroup Get-vRNIVM Get-vRNIVMvNIC Get-vRNIvCenter Get-vRNIvCenterCluster Get-vRNIvCenterDatacenter Get-vRNIvCenterFolder Grant-NsxSpoofguardNicApproval Import-CIVApp Import-CIVAppTemplate Import-NsxObject Import-PackageProvider Import-PowerShellDataFile Import-SpbmStoragePolicy Import-VApp Import-VMHostProfile Import-vRAContentData Import-vRAIcon Import-vRAPackage Initialize-ConfigurationRuntimeState Install-Module Install-NsxCluster Install-Package Install-PackageProvider Install-Script Install-VMHostPatch Invoke-DrsRecommendation Invoke-NsxCli Invoke-NsxClusterResolveAll Invoke-NsxManagerSync Invoke-NsxRestMethod Invoke-NsxWebRequest Invoke-VMHostProfile Invoke-VMScript Invoke-XpathQuery Invoke-vRADataCollection Invoke-vRARestMethod Invoke-vRATenantDirectorySync Invoke-vRNIRestMethod Join-String Mount-Tools Move-Cluster Move-Datacenter Move-Datastore Move-Folder Move-HardDisk Move-Inventory Move-NsxSecurityPolicyRule Move-ResourcePool Move-Template Move-VApp Move-VDisk Move-VM Move-VMHost New-AdvancedSetting New-AlarmAction New-AlarmActionTrigger New-CDDrive New-CIAccessControlRule New-CIVApp New-CIVAppNetwork New-CIVAppTemplate New-CIVM New-Cluster New-CustomAttribute New-Datacenter New-Datastore New-DatastoreCluster New-DatastoreDrive New-DrsClusterGroup New-DrsRule New-DrsVMHostRule New-DscChecksum New-FloppyDrive New-Folder New-Guid New-HCXAppliance New-HCXMigration New-HCXNetworkExtension New-HCXNetworkMapping New-HCXReplication New-HCXSitePairing New-HCXStaticRoute New-HardDisk New-IScsiHbaTarget New-KmipClientCertificate New-NetworkAdapter New-NfsUser New-NsxAddressSpec New-NsxClusterVxlanConfig New-NsxController New-NsxDynamicCriteriaSpec New-NsxEdge New-NsxEdgeBgpNeighbour New-NsxEdgeCsr New-NsxEdgeFirewallRule New-NsxEdgeInterfaceSpec New-NsxEdgeNatRule New-NsxEdgeOspfArea New-NsxEdgeOspfInterface New-NsxEdgePrefix New-NsxEdgeRedistributionRule New-NsxEdgeSelfSignedCertificate New-NsxEdgeStaticRoute New-NsxEdgeSubInterface New-NsxEdgeSubInterfaceSpec New-NsxFirewallRule New-NsxFirewallSavedConfiguration New-NsxFirewallSection New-NsxIpPool New-NsxIpSet New-NsxLoadBalancerApplicationProfile New-NsxLoadBalancerApplicationRule New-NsxLoadBalancerMemberSpec New-NsxLoadBalancerMonitor New-NsxLoadBalancerPool New-NsxLogicalRouter New-NsxLogicalRouterBgpNeighbour New-NsxLogicalRouterBridge New-NsxLogicalRouterInterface New-NsxLogicalRouterInterfaceSpec New-NsxLogicalRouterOspfArea New-NsxLogicalRouterOspfInterface New-NsxLogicalRouterPrefix New-NsxLogicalRouterRedistributionRule New-NsxLogicalRouterStaticRoute New-NsxLogicalSwitch New-NsxMacSet New-NsxManager New-NsxSecurityGroup New-NsxSecurityPolicy New-NsxSecurityPolicyAssignment New-NsxSecurityPolicyFirewallRuleSpec New-NsxSecurityPolicyGuestIntrospectionSpec New-NsxSecurityPolicyNetworkIntrospectionSpec New-NsxSecurityTag New-NsxSecurityTagAssignment New-NsxSegmentIdRange New-NsxService New-NsxServiceGroup New-NsxSpoofguardPolicy New-NsxSslVpnAuthServer New-NsxSslVpnClientInstallationPackage New-NsxSslVpnIpPool New-NsxSslVpnPrivateNetwork New-NsxSslVpnUser New-NsxTransportZone New-NsxVdsContext New-OSCustomizationNicMapping New-OSCustomizationSpec New-Org New-OrgNetwork New-OrgVdc New-OrgVdcNetwork New-ResourcePool New-ScriptFileInfo New-ScsiController New-Snapshot New-SpbmRule New-SpbmRuleSet New-SpbmStoragePolicy New-StatInterval New-Tag New-TagAssignment New-TagCategory New-Template New-TemporaryFile New-VAIOFilter New-VApp New-VDPortgroup New-VDSwitch New-VDSwitchPrivateVlan New-VDisk New-VICredentialStoreItem New-VIInventoryDrive New-VIPermission New-VIProperty New-VIRole New-VISamlSecurityContext New-VM New-VMHostAccount New-VMHostNetworkAdapter New-VMHostProfile New-VMHostProfileVmPortGroupConfiguration New-VMHostRoute New-VTpm New-VasaProvider New-VcsOAuthSecurityContext New-VirtualPortGroup New-VirtualSwitch New-VsanDisk New-VsanDiskGroup New-VsanFaultDomain New-VsanIscsiInitiatorGroup New-VsanIscsiInitiatorGroupTargetAssociation New-VsanIscsiLun New-VsanIscsiTarget New-vRABusinessGroup New-vRAEntitlement New-vRAExternalNetworkProfile New-vRAGroupPrincipal New-vRANATNetworkProfile New-vRANetworkProfileIPRangeDefinition New-vRAPackage New-vRAPropertyDefinition New-vRAPropertyGroup New-vRAReservation New-vRAReservationNetworkDefinition New-vRAReservationPolicy New-vRAReservationStorageDefinition New-vRARoutedNetworkProfile New-vRAService New-vRAStorageReservationPolicy New-vRATenant New-vRATenantDirectory New-vRAUserPrincipal New-vRNIApplication New-vRNIApplicationTier New-vRNIDataSource Open-VMConsoleWindow Publish-Module Publish-NsxSpoofguardPolicy Publish-Script Register-PSRepository Register-PackageSource Remove-AdvancedSetting Remove-AlarmAction Remove-AlarmActionTrigger Remove-Alias Remove-CDDrive Remove-CIAccessControlRule Remove-CIVApp Remove-CIVAppNetwork Remove-CIVAppTemplate Remove-Cluster Remove-CustomAttribute Remove-Datacenter Remove-Datastore Remove-DatastoreCluster Remove-DrsClusterGroup Remove-DrsRule Remove-DrsVMHostRule Remove-FloppyDrive Remove-Folder Remove-HCXAppliance Remove-HCXNetworkExtension Remove-HCXReplication Remove-HCXSitePairing Remove-HardDisk Remove-IScsiHbaTarget Remove-Inventory Remove-KeyManagementServer Remove-NetworkAdapter Remove-NfsUser Remove-NsxCluster Remove-NsxClusterVxlanConfig Remove-NsxController Remove-NsxDynamicCriteria Remove-NsxDynamicMemberSet Remove-NsxEdge Remove-NsxEdgeBgpNeighbour Remove-NsxEdgeCertificate Remove-NsxEdgeCsr Remove-NsxEdgeFirewallRule Remove-NsxEdgeInterfaceAddress Remove-NsxEdgeNatRule Remove-NsxEdgeOspfArea Remove-NsxEdgeOspfInterface Remove-NsxEdgePrefix Remove-NsxEdgeRedistributionRule Remove-NsxEdgeStaticRoute Remove-NsxEdgeSubInterface Remove-NsxFirewallExclusionListMember Remove-NsxFirewallRule Remove-NsxFirewallRuleMember Remove-NsxFirewallSavedConfiguration Remove-NsxFirewallSection Remove-NsxIpPool Remove-NsxIpSet Remove-NsxIpSetMember Remove-NsxLoadBalancerApplicationProfile Remove-NsxLoadBalancerMonitor Remove-NsxLoadBalancerPool Remove-NsxLoadBalancerPoolMember Remove-NsxLoadBalancerVip Remove-NsxLogicalRouter Remove-NsxLogicalRouterBgpNeighbour Remove-NsxLogicalRouterBridge Remove-NsxLogicalRouterInterface Remove-NsxLogicalRouterOspfArea Remove-NsxLogicalRouterOspfInterface Remove-NsxLogicalRouterPrefix Remove-NsxLogicalRouterRedistributionRule Remove-NsxLogicalRouterStaticRoute Remove-NsxLogicalSwitch Remove-NsxMacSet Remove-NsxSecondaryManager Remove-NsxSecurityGroup Remove-NsxSecurityGroupMember Remove-NsxSecurityPolicy Remove-NsxSecurityPolicyAssignment Remove-NsxSecurityPolicyRule Remove-NsxSecurityPolicyRuleGroup Remove-NsxSecurityPolicyRuleService Remove-NsxSecurityTag Remove-NsxSecurityTagAssignment Remove-NsxSegmentIdRange Remove-NsxService Remove-NsxServiceGroup Remove-NsxSpoofguardPolicy Remove-NsxSslVpnClientInstallationPackage Remove-NsxSslVpnIpPool Remove-NsxSslVpnPrivateNetwork Remove-NsxSslVpnUser Remove-NsxTransportZone Remove-NsxTransportZoneMember Remove-NsxVdsContext Remove-OSCustomizationNicMapping Remove-OSCustomizationSpec Remove-Org Remove-OrgNetwork Remove-OrgVdc Remove-OrgVdcNetwork Remove-PSReadLineKeyHandler Remove-PassthroughDevice Remove-ResourcePool Remove-Snapshot Remove-SpbmStoragePolicy Remove-StatInterval Remove-Tag Remove-TagAssignment Remove-TagCategory Remove-Template Remove-UsbDevice Remove-VAIOFilter Remove-VApp Remove-VDPortGroup Remove-VDSwitch Remove-VDSwitchPhysicalNetworkAdapter Remove-VDSwitchPrivateVlan Remove-VDSwitchVMHost Remove-VDisk Remove-VICredentialStoreItem Remove-VIPermission Remove-VIProperty Remove-VIRole Remove-VM Remove-VMHost Remove-VMHostAccount Remove-VMHostNetworkAdapter Remove-VMHostNtpServer Remove-VMHostProfile Remove-VMHostProfileVmPortGroupConfiguration Remove-VMHostRoute Remove-VTpm Remove-VasaProvider Remove-VirtualPortGroup Remove-VirtualSwitch Remove-VirtualSwitchPhysicalNetworkAdapter Remove-VsanDisk Remove-VsanDiskGroup Remove-VsanFaultDomain Remove-VsanIscsiInitiatorGroup Remove-VsanIscsiInitiatorGroupTargetAssociation Remove-VsanIscsiLun Remove-VsanIscsiTarget Remove-vRABusinessGroup Remove-vRACustomForm Remove-vRAExternalNetworkProfile Remove-vRAGroupPrincipal Remove-vRAIcon Remove-vRANATNetworkProfile Remove-vRAPackage Remove-vRAPrincipalFromTenantRole Remove-vRAPropertyDefinition Remove-vRAPropertyGroup Remove-vRAReservation Remove-vRAReservationNetwork Remove-vRAReservationPolicy Remove-vRAReservationStorage Remove-vRARoutedNetworkProfile Remove-vRAService Remove-vRAStorageReservationPolicy Remove-vRATenant Remove-vRATenantDirectory Remove-vRAUserPrincipal Remove-vRNIApplication Remove-vRNIApplicationTier Remove-vRNIDataSource Repair-NsxEdge Repair-VsanObject Request-vRACatalogItem Request-vRAResourceAction Restart-CIVApp Restart-CIVAppGuest Restart-CIVM Restart-CIVMGuest Restart-VM Restart-VMGuest Restart-VMHost Restart-VMHostService Resume-HCXReplication Revoke-NsxSpoofguardNicApproval Save-Module Save-Package Save-Script Search-Cloud Set-AdvancedSetting Set-AlarmDefinition Set-Annotation Set-CDDrive Set-CIAccessControlRule Set-CINetworkAdapter Set-CIVApp Set-CIVAppNetwork Set-CIVAppStartRule Set-CIVAppTemplate Set-Cluster Set-CustomAttribute Set-Datacenter Set-Datastore Set-DatastoreCluster Set-DrsClusterGroup Set-DrsRule Set-DrsVMHostRule Set-FloppyDrive Set-Folder Set-HCXAppliance Set-HCXMigration Set-HCXReplication Set-HardDisk Set-IScsiHbaTarget Set-KeyManagementServer Set-KmsCluster Set-MarkdownOption Set-NetworkAdapter Set-NfsUser Set-NicTeamingPolicy Set-NodeExclusiveResources Set-NodeManager Set-NodeResourceSource Set-NodeResources Set-NsxEdge Set-NsxEdgeBgp Set-NsxEdgeFirewall Set-NsxEdgeInterface Set-NsxEdgeNat Set-NsxEdgeOspf Set-NsxEdgeRouting Set-NsxFirewallGlobalConfiguration Set-NsxFirewallRule Set-NsxFirewallSavedConfiguration Set-NsxFirewallThreshold Set-NsxLoadBalancer Set-NsxLoadBalancerPoolMember Set-NsxLogicalRouter Set-NsxLogicalRouterBgp Set-NsxLogicalRouterBridging Set-NsxLogicalRouterInterface Set-NsxLogicalRouterOspf Set-NsxLogicalRouterRouting Set-NsxManager Set-NsxManagerRole Set-NsxManagerTimeSettings Set-NsxSecurityPolicy Set-NsxSecurityPolicyFirewallRule Set-NsxSslVpn Set-OSCustomizationNicMapping Set-OSCustomizationSpec Set-Org Set-OrgNetwork Set-OrgVdc Set-OrgVdcNetwork Set-PSCurrentConfigurationNode Set-PSDefaultConfigurationDocument Set-PSMetaConfigDocInsProcessedBeforeMeta Set-PSMetaConfigVersionInfoV2 Set-PSReadLineKeyHandler Set-PSReadLineOption Set-PSRepository Set-PSTopConfigurationName Set-PackageSource Set-PowerCLIConfiguration Set-ResourcePool Set-ScsiController Set-ScsiLun Set-ScsiLunPath Set-SecurityPolicy Set-Snapshot Set-SpbmEntityConfiguration Set-SpbmStoragePolicy Set-StatInterval Set-Tag Set-TagCategory Set-Template Set-VAIOFilter Set-VApp Set-VDBlockedPolicy Set-VDPort Set-VDPortgroup Set-VDPortgroupOverridePolicy Set-VDSecurityPolicy Set-VDSwitch Set-VDTrafficShapingPolicy Set-VDUplinkLacpPolicy Set-VDUplinkTeamingPolicy Set-VDVlanConfiguration Set-VDisk Set-VIPermission Set-VIRole Set-VM Set-VMHost Set-VMHostAccount Set-VMHostAdvancedConfiguration Set-VMHostAuthentication Set-VMHostDiagnosticPartition Set-VMHostFirewallDefaultPolicy Set-VMHostFirewallException Set-VMHostFirmware Set-VMHostHba Set-VMHostModule Set-VMHostNetwork Set-VMHostNetworkAdapter Set-VMHostProfile Set-VMHostProfileImageCacheConfiguration Set-VMHostProfileStorageDeviceConfiguration Set-VMHostProfileUserConfiguration Set-VMHostProfileVmPortGroupConfiguration Set-VMHostRoute Set-VMHostService Set-VMHostSnmp Set-VMHostStartPolicy Set-VMHostStorage Set-VMHostSysLogServer Set-VMQuestion Set-VMResourceConfiguration Set-VMStartPolicy Set-VTpm Set-VirtualPortGroup Set-VirtualSwitch Set-VsanClusterConfiguration Set-VsanFaultDomain Set-VsanIscsiInitiatorGroup Set-VsanIscsiLun Set-VsanIscsiTarget Set-vRABusinessGroup Set-vRACatalogItem Set-vRACustomForm Set-vRAEntitlement Set-vRAExternalNetworkProfile Set-vRANATNetworkProfile Set-vRAReservation Set-vRAReservationNetwork Set-vRAReservationPolicy Set-vRAReservationStorage Set-vRARoutedNetworkProfile Set-vRAService Set-vRAStorageReservationPolicy Set-vRATenant Set-vRATenantDirectory Set-vRAUserPrincipal Set-vRNIDataSourceSNMPConfig Show-Markdown Start-CIVApp Start-CIVM Start-HCXMigration Start-HCXReplication Start-SpbmReplicationFailover Start-SpbmReplicationPrepareFailover Start-SpbmReplicationPromote Start-SpbmReplicationReverse Start-SpbmReplicationTestFailover Start-ThreadJob Start-VApp Start-VM Start-VMHost Start-VMHostService Start-VsanClusterDiskUpdate Start-VsanClusterRebalance Start-VsanEncryptionConfiguration Stop-CIVApp Stop-CIVAppGuest Stop-CIVM Stop-CIVMGuest Stop-SpbmReplicationTestFailover Stop-Task Stop-VApp Stop-VM Stop-VMGuest Stop-VMHost Stop-VMHostService Stop-VsanClusterRebalance Suspend-CIVApp Suspend-CIVM Suspend-HCXReplication Suspend-VM Suspend-VMGuest Suspend-VMHost Sync-SpbmReplicationGroup Test-ConflictingResources Test-HCXMigration Test-HCXReplication Test-Json Test-ModuleReloadRequired Test-MofInstanceText Test-NodeManager Test-NodeResourceSource Test-NodeResources Test-ScriptFileInfo Test-VMHostProfileCompliance Test-VMHostSnmp Test-VsanClusterHealth Test-VsanNetworkPerformance Test-VsanStoragePerformance Test-VsanVMCreation Test-vRAPackage Uninstall-Module Uninstall-Package Uninstall-Script Unlock-VM Unregister-PSRepository Unregister-PackageSource Update-ConfigurationDocumentRef Update-ConfigurationErrorCount Update-DependsOn Update-LocalConfigManager Update-Module Update-ModuleManifest Update-ModuleVersion Update-PowerNsx Update-Script Update-ScriptFileInfo Update-Tools Update-VsanHclDatabase ValidateUpdate-ConfigurationData Wait-Debugger Wait-NsxControllerJob Wait-NsxGenericJob Wait-NsxJob Wait-Task Wait-Tools Write-Information Write-Log Write-MetaConfigFile Write-NodeMOFFile",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},contains:[t,e.NUMBER_MODE,a,{className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},{className:"literal",begin:/\$(null|true|false)\b/},n,o]}})),e.registerLanguage("processing",(function(e){return{keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),e.registerLanguage("profile",(function(e){return{contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}})),e.registerLanguage("prolog",(function(e){var t={begin:/\(/,end:/\)/,relevance:0},n={begin:/\[/,end:/\]/},a={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},r=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},t,{begin:/:-/},n,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,{className:"string",begin:/0\'(\\\'|.)/},{className:"string",begin:/0\'\\s/},e.C_NUMBER_MODE];return t.contains=r,n.contains=r,{contains:r.concat([{begin:/\.$/}])}})),e.registerLanguage("properties",(function(e){var t="[ \\t\\f]*",n="("+t+"[:=]"+t+"|[ \\t\\f]+)",a="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",r={end:n,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\n"}]}};return{case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{begin:a+n,returnBegin:!0,contains:[{className:"attr",begin:a,endsParent:!0,relevance:0}],starts:r},{begin:o+n,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:o,endsParent:!0,relevance:0}],starts:r},{className:"attr",relevance:0,begin:o+t+"$"}]}})),e.registerLanguage("protobuf",(function(e){return{keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/;/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+/,end:/\s*=/,excludeEnd:!0}]}})),e.registerLanguage("puppet",(function(e){var t=e.COMMENT("#","$"),n="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:n}),o={className:"variable",begin:"\\$"+n},r={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{aliases:["pp"],contains:[t,o,r,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,t]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[r,t,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}})),e.registerLanguage("purebasic",(function(e){return{aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until  UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}})),e.registerLanguage("python",(function(e){var t={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},n={className:"meta",begin:/^(>>>|\.\.\.) /},a={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},o={begin:/\{\{/,relevance:0},r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,o,a]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,o,a]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,o,a]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,a]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},i={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},s={className:"params",begin:/\(/,end:/\)/,contains:["self",n,i,r,e.HASH_COMMENT_MODE]};return a.contains=[r,i,n],{aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[n,i,r,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,s,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}})),e.registerLanguage("q",(function(e){return{aliases:["k","kdb"],keywords:{keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),e.registerLanguage("qml",(function(e){var t="[a-zA-Z_][a-zA-Z0-9\\._]*",n={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:t,returnEnd:!1}},a={begin:t+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:t,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},o={begin:t+"\\s*{",end:"{",returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:t})]};return{aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4dPromise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},n,a,o],illegal:/#/}})),e.registerLanguage("r",(function(e){var t="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{contains:[e.HASH_COMMENT_MODE,{begin:t,lexemes:t,keywords:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{begin:"`",end:"`",relevance:0},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]}]}})),e.registerLanguage("reasonml",(function(e){var t="~?[a-z$_][0-9a-zA-Z$_]*",n="`?[A-Z$_][0-9a-zA-Z$_]*",a="("+["||","&&","++","**","+.","*","/","*.","/.","...","|>"].map((function(e){return e.split("").map((function(e){return"\\"+e})).join("")})).join("|")+"|==|===)",o="\\s+"+a+"\\s+",r={keyword:"and as asr assert begin class constraint do done downto else end exception externalfor fun function functor if in include inherit initializerland lazy let lor lsl lsr lxor match method mod module mutable new nonrecobject of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},i="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",s={className:"number",relevance:0,variants:[{begin:i},{begin:"\\(\\-"+i+"\\)"}]},l={className:"operator",relevance:0,begin:a},c=[{className:"identifier",relevance:0,begin:t},l,s],u=[e.QUOTE_STRING_MODE,l,{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",contains:[{className:"identifier",begin:n,relevance:0}]}],d=[{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:n,relevance:0}]}],f={className:"function",relevance:0,keywords:r,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+t+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:t},{begin:"~?[a-z$_][0-9a-zA-Z$_]*(s*:s*[a-z$_][0-9a-z$_]*((s*('?[a-z$_][0-9a-z$_]*s*(,'?[a-z$_][0-9a-z$_]*)*)?s*))?)?(s*:s*[a-z$_][0-9a-z$_]*((s*('?[a-z$_][0-9a-z$_]*s*(,'?[a-z$_][0-9a-z$_]*)*)?s*))?)?"},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[{begin:t,end:"(,|\\n|\\))",relevance:0,contains:[l,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:d}]}]}]},{begin:"\\(\\.\\s"+t+"\\)\\s*=>"}]};u.push(f);var m={className:"constructor",begin:n+"\\(",end:"\\)",illegal:"\\n",keywords:r,contains:[e.QUOTE_STRING_MODE,l,{className:"params",begin:"\\b"+t}]},p={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:r,end:"=>",relevance:0,contains:[m,l,{relevance:0,className:"constructor",begin:n}]},g={className:"module-access",keywords:r,returnBegin:!0,variants:[{begin:"\\b("+n+"\\.)+"+t},{begin:"\\b("+n+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[f,{begin:"\\(",end:"\\)",skip:!0}].concat(u)},{begin:"\\b("+n+"\\.)+{",end:"}"}],contains:u};return d.push(g),{aliases:["re"],keywords:r,illegal:"(:\\-|:=|\\${|\\+=)",contains:[e.COMMENT("/\\*","\\*/",{illegal:"^(\\#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},e.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:c},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:c},m,{className:"operator",begin:o,illegal:"\\-\\->",relevance:0},s,e.C_LINE_COMMENT_MODE,p,f,{className:"module-def",begin:"\\bmodule\\s+"+t+"\\s+"+n+"\\s+=\\s+{",end:"}",returnBegin:!0,keywords:r,relevance:0,contains:[{className:"module",relevance:0,begin:n},{begin:"{",end:"}",skip:!0}].concat(u)},g]}})),e.registerLanguage("rib",(function(e){return{keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}})),e.registerLanguage("roboconf",(function(e){var t="[a-zA-Z-_][^\\n{]+\\{",n={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:"}",keywords:"facet",contains:[n,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:"}",keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",n,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:"}",contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}})),e.registerLanguage("routeros",(function(e){var t="foreach do while for if from to step else on-error and or not in",n="true false yes no nothing nil null",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},r={className:"string",begin:/'/,end:/'/};return{aliases:["routeros","mikrotik"],case_insensitive:!0,lexemes:/:?[\w-]+/,keywords:{literal:n,keyword:t+" :"+t.split(" ").join(" :")+" :"+"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime".split(" ").join(" :")},contains:[{variants:[{begin:/^@/,end:/$/},{begin:/\/\*/,end:/\*\//},{begin:/%%/,end:/$/},{begin:/^'/,end:/$/},{begin:/^\s*\/[\w-]+=/,end:/$/},{begin:/\/\//,end:/$/},{begin:/^\[\</,end:/\>\]$/},{begin:/<\//,end:/>/},{begin:/^facet /,end:/\}/},{begin:"^1\\.\\.(\\d+)$",end:/$/}],illegal:/./},e.COMMENT("^#","$"),o,r,a,{begin:/[\w-]+\=([^\s\{\}\[\]\(\)]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[o,r,a,{className:"literal",begin:"\\b("+n.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s\{\}\[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+",relevance:10},{begin:/\.\./}]}]}})),e.registerLanguage("rsl",(function(e){return{keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}})),e.registerLanguage("ruleslanguage",(function(e){return{keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+[a-zA-Z\\ \\.]*",relevance:0},{begin:"#[a-zA-Z\\ \\.]+"}]}]}})),e.registerLanguage("rust",(function(e){var t="([ui](8|16|32|64|128|size)|f(32|64))?",n="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{aliases:["rs"],keywords:{keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:n},lexemes:e.IDENT_RE+"!?",illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+t}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#\\!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:"{",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:e.IDENT_RE+"::",keywords:{built_in:n}},{begin:"->"}]}})),e.registerLanguage("sas",(function(e){return{aliases:["sas","SAS"],case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s\;]/},{className:"variable",begin:/\&[a-zA-Z_\&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%(bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window)"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%](abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate)[(]"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}})),e.registerLanguage("scala",(function(e){var t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:"\\${",end:"}"}]},n={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[t],relevance:10}]},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},r={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},o]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[o]};return{keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},a,i,r,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}})),e.registerLanguage("scheme",(function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(\\-|\\+)?\\d+([./]\\d+)?",a={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},o={className:"number",variants:[{begin:n,relevance:0},{begin:"(\\-|\\+)?\\d+([./]\\d+)?[+\\-](\\-|\\+)?\\d+([./]\\d+)?i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},r=e.QUOTE_STRING_MODE,i=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],s={begin:t,relevance:0},l={className:"symbol",begin:"'"+t},c={endsWithParent:!0,relevance:0},u={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",a,r,o,s,l]}]},d={className:"name",begin:t,lexemes:t,keywords:{"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"}},f={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[d,{begin:/\(/,end:/\)/,endsParent:!0,contains:[s]}]},d,c]};return c.contains=[a,o,r,s,l,u,f].concat(i),{illegal:/\S/,contains:[{className:"meta",begin:"^#!",end:"$"},o,r,l,u,f].concat(i)}})),e.registerLanguage("scilab",(function(e){var t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{aliases:["sci"],lexemes:/%?\w+/,keywords:{keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",end:"",relevance:0},{begin:"\\[",end:"\\]'*[\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}})),e.registerLanguage("scss",(function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}})),e.registerLanguage("shell",(function(e){return{aliases:["console"],contains:[{className:"meta",begin:"^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]",starts:{end:"$",subLanguage:"bash"}}]}})),e.registerLanguage("smali",(function(e){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{aliases:["smali"],contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}})),e.registerLanguage("smalltalk",(function(e){var t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},a={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,a,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"\\#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,a]}]}})),e.registerLanguage("sml",(function(e){return{aliases:["ml"],keywords:{keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}})),e.registerLanguage("sqf",(function(e){var t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},n={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{aliases:["sqf"],case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z_]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},t,n],illegal:/#|^\$ /}})),e.registerLanguage("sql",(function(e){var t=e.COMMENT("--","$");return{case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,lexemes:/[\w\.]+/,keywords:{keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}]},{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]}})),e.registerLanguage("stan",(function(e){return{contains:[e.HASH_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE,lexemes:e.UNDERSCORE_IDENT_RE,keywords:{name:"for in while repeat until if then else",symbol:"bernoulli bernoulli_logit binomial binomial_logit beta_binomial hypergeometric categorical categorical_logit ordered_logistic neg_binomial neg_binomial_2 neg_binomial_2_log poisson poisson_log multinomial normal exp_mod_normal skew_normal student_t cauchy double_exponential logistic gumbel lognormal chi_square inv_chi_square scaled_inv_chi_square exponential inv_gamma weibull frechet rayleigh wiener pareto pareto_type_2 von_mises uniform multi_normal multi_normal_prec multi_normal_cholesky multi_gp multi_gp_cholesky multi_student_t gaussian_dlm_obs dirichlet lkj_corr lkj_corr_cholesky wishart inv_wishart","selector-tag":"int real vector simplex unit_vector ordered positive_ordered row_vector matrix cholesky_factor_corr cholesky_factor_cov corr_matrix cov_matrix",title:"functions model data parameters quantities transformed generated",literal:"true false"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0}]}})),e.registerLanguage("stata",(function(e){return{aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),e.registerLanguage("step21",(function(e){return{aliases:["p21","step","stp"],case_insensitive:!0,lexemes:"[A-Z_][A-Z0-9_.]*",keywords:{keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}})),e.registerLanguage("stylus",(function(e){var t={className:"variable",begin:"\\$"+e.IDENT_RE},n={className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},a="(?=[\\.\\s\\n\\[\\:,])";return{aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[\\.\\s\\n\\[\\:,])",className:"selector-class"},{begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*(?=[\\.\\s\\n\\[\\:,])",className:"selector-id"},{begin:"\\b("+["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"].join("|")+")"+a,className:"selector-tag"},{begin:"&?:?:\\b("+["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"].join("|")+")"+a},{begin:"@("+["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"].join("|")+")\\b"},t,e.CSS_NUMBER_MODE,e.NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[n,t,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse().join("|")+")\\b",starts:{end:/;|$/,contains:[n,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/\./,relevance:0}}]}})),e.registerLanguage("subunit",(function(e){return{case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}})),e.registerLanguage("swift",(function(e){var t={keyword:"#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),a={className:"subst",begin:/\\\(/,end:"\\)",keywords:t,contains:[]},o={className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"""/,end:/"""/},{begin:/"/,end:/"/}]},r={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0};return a.contains=[r],{keywords:t,contains:[o,e.C_LINE_COMMENT_MODE,n,{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*[!?]"},{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},r,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin:/</,end:/>/},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,contains:["self",r,o,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:t,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{className:"meta",begin:"(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper)"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,n]}]}})),e.registerLanguage("taggerscript",(function(e){return{contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}})),e.registerLanguage("yaml",(function(e){var t="true false yes no null",n={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]}]};return{case_insensitive:!0,aliases:["yml","YAML","yaml"],contains:[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!"+e.UNDERSCORE_IDENT_RE},{className:"type",begin:"!!"+e.UNDERSCORE_IDENT_RE},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"\\-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},{className:"number",begin:e.C_NUMBER_RE+"\\b"},n]}})),e.registerLanguage("tap",(function(e){return{case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:"(s+)?---$",end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}})),e.registerLanguage("tcl",(function(e){return{aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{excludeEnd:!0,variants:[{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",end:"[^a-zA-Z0-9_\\}\\$]"},{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},{className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]}]}})),e.registerLanguage("tex",(function(e){var t={className:"tag",begin:/\\/,relevance:0,contains:[{className:"name",variants:[{begin:/[a-zA-Z\u0430-\u044f\u0410-\u042f]+[*]?/},{begin:/[^a-zA-Z\u0430-\u044f\u0410-\u042f0-9]/}],starts:{endsWithParent:!0,relevance:0,contains:[{className:"string",variants:[{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/}]},{begin:/\s*=\s*/,endsWithParent:!0,relevance:0,contains:[{className:"number",begin:/-?\d*\.?\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?/}]}]}}]};return{contains:[t,{className:"formula",contains:[t],relevance:0,variants:[{begin:/\$\$/,end:/\$\$/},{begin:/\$/,end:/\$/}]},e.COMMENT("%","$",{relevance:0})]}})),e.registerLanguage("thrift",(function(e){var t="bool byte i16 i32 i64 double string binary";return{keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:t,contains:["self"]}]}})),e.registerLanguage("tp",(function(e){var t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"};return{keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}})),e.registerLanguage("twig",(function(e){var t="attribute block constant cycle date dump include max min parent random range source template_from_string",n={beginKeywords:t,keywords:{name:t},relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},a={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[n]},o="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return o=o+" "+o.split(" ").map((function(e){return"end"+e})).join(" "),{aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:o,starts:{endsWithParent:!0,contains:[a,n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:["self",a,n]}]}})),e.registerLanguage("typescript",(function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},a={className:"meta",begin:"@"+t},o={begin:"\\(",end:/\)/,keywords:n,contains:["self",e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.NUMBER_MODE]},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,o]},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},l={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"xml"}},c={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"css"}},u={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};return s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,c,u,i,e.REGEXP_MODE],{aliases:["ts"],keywords:n,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,c,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[\{;]/,excludeEnd:!0,keywords:n,contains:["self",e.inherit(e.TITLE_MODE,{begin:t}),r],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/[\{;]/,excludeEnd:!0,contains:["self",r]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},a,o]}})),e.registerLanguage("vala",(function(e){return{keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:"{",excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}})),e.registerLanguage("vbnet",(function(e){return{aliases:["vb"],case_insensitive:!0,keywords:{keyword:"addhandler addressof alias and andalso aggregate ansi as async assembly auto await binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue iterator join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor yield",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},illegal:"//|{|}|endif|gosub|variant|wend|^\\$ ",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT("'","$",{returnBegin:!0,contains:[{className:"doctag",begin:"'''|\x3c!--|--\x3e",contains:[e.PHRASAL_WORDS_MODE]},{className:"doctag",begin:"</?",end:">",contains:[e.PHRASAL_WORDS_MODE]}]}),e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end region externalsource"}}]}})),e.registerLanguage("vbscript",(function(e){return{aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},illegal:"//",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}})),e.registerLanguage("vbscript-html",(function(e){return{subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}})),e.registerLanguage("verilog",(function(e){return{aliases:["v","sv","svh"],case_insensitive:!1,keywords:{keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},lexemes:/[\w\$]+/,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}})),e.registerLanguage("vhdl",(function(e){return{case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:"{",contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}})),e.registerLanguage("vim",(function(e){return{lexemes:/[!#@\w]+/,keywords:{keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}})),e.registerLanguage("x86asm",(function(e){return{case_insensitive:!0,lexemes:"[.%]?"+e.IDENT_RE,keywords:{keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0  xmm1  xmm2  xmm3  xmm4  xmm5  xmm6  xmm7  xmm8  xmm9 xmm10  xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0  ymm1  ymm2  ymm3  ymm4  ymm5  ymm6  ymm7  ymm8  ymm9 ymm10  ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0  zmm1  zmm2  zmm3  zmm4  zmm5  zmm6  zmm7  zmm8  zmm9 zmm10  zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__  __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__  __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}})),e.registerLanguage("xl",(function(e){var t={keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},n={className:"string",begin:'"',end:'"',illegal:"\\n"},a={beginKeywords:"import",end:"$",keywords:t,contains:[n]},o={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{aliases:["tao"],lexemes:/[a-zA-Z][a-zA-Z0-9_?]*/,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},o,a,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}})),e.registerLanguage("xquery",(function(e){var t=[{className:"variable",begin:/[\$][\w-:]+/},{className:"built_in",variants:[{begin:/\barray\:/,end:/(?:append|filter|flatten|fold\-(?:left|right)|for-each(?:\-pair)?|get|head|insert\-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap\:/,end:/(?:contains|entry|find|for\-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath\:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop\:/,end:/\(/,excludeEnd:!0},{begin:/\bfn\:/,end:/\(/,excludeEnd:!0},{begin:/[^<\/\$\:'"-]\b(?:abs|accumulator\-(?:after|before)|adjust\-(?:date(?:Time)?|time)\-to\-timezone|analyze\-string|apply|available\-(?:environment\-variables|system\-properties)|avg|base\-uri|boolean|ceiling|codepoints?\-(?:equal|to\-string)|collation\-key|collection|compare|concat|contains(?:\-token)?|copy\-of|count|current(?:\-)?(?:date(?:Time)?|time|group(?:ing\-key)?|output\-uri|merge\-(?:group|key))?data|dateTime|days?\-from\-(?:date(?:Time)?|duration)|deep\-equal|default\-(?:collation|language)|distinct\-values|document(?:\-uri)?|doc(?:\-available)?|element\-(?:available|with\-id)|empty|encode\-for\-uri|ends\-with|environment\-variable|error|escape\-html\-uri|exactly\-one|exists|false|filter|floor|fold\-(?:left|right)|for\-each(?:\-pair)?|format\-(?:date(?:Time)?|time|integer|number)|function\-(?:arity|available|lookup|name)|generate\-id|has\-children|head|hours\-from\-(?:dateTime|duration|time)|id(?:ref)?|implicit\-timezone|in\-scope\-prefixes|index\-of|innermost|insert\-before|iri\-to\-uri|json\-(?:doc|to\-xml)|key|lang|last|load\-xquery\-module|local\-name(?:\-from\-QName)?|(?:lower|upper)\-case|matches|max|minutes\-from\-(?:dateTime|duration|time)|min|months?\-from\-(?:date(?:Time)?|duration)|name(?:space\-uri\-?(?:for\-prefix|from\-QName)?)?|nilled|node\-name|normalize\-(?:space|unicode)|not|number|one\-or\-more|outermost|parse\-(?:ietf\-date|json)|path|position|(?:prefix\-from\-)?QName|random\-number\-generator|regex\-group|remove|replace|resolve\-(?:QName|uri)|reverse|root|round(?:\-half\-to\-even)?|seconds\-from\-(?:dateTime|duration|time)|snapshot|sort|starts\-with|static\-base\-uri|stream\-available|string\-?(?:join|length|to\-codepoints)?|subsequence|substring\-?(?:after|before)?|sum|system\-property|tail|timezone\-from\-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type\-available|unordered|unparsed\-(?:entity|text)?\-?(?:public\-id|uri|available|lines)?|uri\-collection|xml\-to\-json|years?\-from\-(?:date(?:Time)?|duration)|zero\-or\-one)\b/},{begin:/\blocal\:/,end:/\(/,excludeEnd:!0},{begin:/\bzip\:/,end:/(?:zip\-file|(?:xml|html|text|binary)\-entry| (?:update\-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb)\:/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{className:"comment",begin:"\\(:",end:":\\)",relevance:10,contains:[{className:"doctag",begin:"@\\w+"}]},{className:"meta",begin:/%[\w-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:"{",excludeEnd:!0},{begin:/<([\w\._:\-]+)((\s*.*)=('|").*('|"))?>/,end:/(\/[\w\._:\-]+>)/,subLanguage:"xml",contains:[{begin:"{",end:"}",subLanguage:"xquery"},"self"]}];return{aliases:["xpath","xq"],case_insensitive:!1,lexemes:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:t}})),e.registerLanguage("zephir",(function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["zep"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var let while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally int uint long ulong char uchar double float bool boolean stringlikely unlikely",contains:[e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:"<<<['\"]?\\w+['\"]?$",end:"^\\w+;",contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_BLOCK_COMMENT_MODE,t,n]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},t,n]}})),e},o="object"==typeof window&&window||"object"==typeof self&&self,t.nodeType?o&&(o.hljs=a({}),void 0===(n=function(){return o.hljs}.apply(t,[]))||(e.exports=n)):a(t)},"./node_modules/jquery-textcomplete/dist/jquery.textcomplete.js":(e,t,n)=>{var a,o,r;o=[n("./node_modules/jquery/dist/jquery.js")],void 0===(r="function"==typeof(a=function(e){if(void 0===e)throw new Error("jQuery.textcomplete requires jQuery");return function(e){"use strict";var t=function(e){console.warn&&console.warn(e)},n=1;e.fn.textcomplete=function(a,o){var r=Array.prototype.slice.call(arguments);return this.each((function(){var i=this,s=e(this),l=s.data("textComplete");if(l||(o||(o={}),o._oid=n++,l=new e.fn.textcomplete.Completer(this,o),s.data("textComplete",l)),"string"==typeof a){if(!l)return;r.shift(),l[a].apply(l,r),"destroy"===a&&s.removeData("textComplete")}else e.each(a,(function(n){e.each(["header","footer","placement","maxCount"],(function(e){n[e]&&(l.option[e]=n[e],t(e+"as a strategy param is deprecated. Use option."),delete n[e])}))})),l.register(e.fn.textcomplete.Strategy.parse(a,{el:i,$el:s}))}))}}(e),function(e){"use strict";var t=function(e){var t,n;return function(){var a=Array.prototype.slice.call(arguments);if(t)n=a;else{t=!0;var o=this;a.unshift((function a(){if(n){var r=n;n=void 0,r.unshift(a),e.apply(o,r)}else t=!1})),e.apply(this,a)}}},n=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=0,o=[];function r(t,n){if(this.$el=e(t),this.id="textcomplete"+a++,this.strategies=[],this.views=[],this.option=e.extend({},r.defaults,n),!(this.$el.is("input[type=text]")||this.$el.is("input[type=search]")||this.$el.is("textarea")||t.isContentEditable||"true"==t.contentEditable))throw new Error("textcomplete must be called on a Textarea or a ContentEditable.");if(t===t.ownerDocument.activeElement)this.initialize();else{var i=this;this.$el.one("focus."+this.id,(function(){i.initialize()})),this.option.adapter&&"CKEditor"!=this.option.adapter||"undefined"==typeof CKEDITOR||!this.$el.is("textarea")||CKEDITOR.on("instanceReady",(function(t){-1==e.inArray(t.editor.id,o)&&(o.push(t.editor.id),t.editor.on("focus",(function(n){i.$el=e(t.editor.editable().$),i.option.adapter||(i.option.adapter=e.fn.textcomplete.CKEditor),i.option.ckeditor_instance=t.editor,i.initialize()})))}))}}r.defaults={appendTo:"body",className:"",dropdownClassName:"dropdown-menu textcomplete-dropdown",maxCount:10,zIndex:"100",rightEdgeOffset:30},e.extend(r.prototype,{id:null,option:null,strategies:null,adapter:null,dropdown:null,$el:null,$iframe:null,initialize:function(){var t,n,a=this.$el.get(0);if(this.$el.prop("ownerDocument")!==document&&window.frames.length)for(var o=0;o<window.frames.length;o++)if(this.$el.prop("ownerDocument")===window.frames[o].document){this.$iframe=e(window.frames[o].frameElement);break}this.dropdown=new e.fn.textcomplete.Dropdown(a,this,this.option),this.option.adapter?t=this.option.adapter:(n=this.$el.is("textarea")||this.$el.is("input[type=text]")||this.$el.is("input[type=search]")?"number"==typeof a.selectionEnd?"Textarea":"IETextarea":"ContentEditable",t=e.fn.textcomplete[n]),this.adapter=new t(a,this,this.option)},destroy:function(){this.$el.off("."+this.id),this.adapter&&this.adapter.destroy(),this.dropdown&&this.dropdown.destroy(),this.$el=this.adapter=this.dropdown=null},deactivate:function(){this.dropdown&&this.dropdown.deactivate()},trigger:function(e,t){this.dropdown||this.initialize(),null!=e||(e=this.adapter.getTextFromHeadToCaret());var n=this._extractSearchQuery(e);if(n.length){var a=n[1];if(t&&this._term===a&&""!==a)return;this._term=a,this._search.apply(this,n)}else this._term=null,this.dropdown.deactivate()},fire:function(e){var t=Array.prototype.slice.call(arguments,1);return this.$el.trigger(e,t),this},register:function(e){Array.prototype.push.apply(this.strategies,e)},select:function(e,t,n){this._term=null,this.adapter.select(e,t,n),this.fire("change").fire("textComplete:select",e,t),this.adapter.focus()},_clearAtNext:!0,_term:null,_extractSearchQuery:function(t){for(var a=0;a<this.strategies.length;a++){var o=this.strategies[a],r=o.context(t);if(r||""===r){var i=e.isFunction(o.match)?o.match(t):o.match;n(r)&&(t=r);var s=t.match(i);if(s)return[o,s[o.index],s]}}return[]},_search:t((function(e,t,n,a){var o=this;t.search(n,(function(a,r){o.dropdown.shown||o.dropdown.activate(),o._clearAtNext&&(o.dropdown.clear(),o._clearAtNext=!1),o.dropdown.setPosition(o.adapter.getCaretPosition()),o.dropdown.render(o._zip(a,t,n)),r||(e(),o._clearAtNext=!0)}),a)})),_zip:function(t,n,a){return e.map(t,(function(e){return{value:e,strategy:n,term:a}}))}}),e.fn.textcomplete.Completer=r}(e),function(e){"use strict";var t=e(window),n=function(e,t){var n,a,o=t.strategy.idProperty;for(n=0;n<e.length;n++)if((a=e[n]).strategy===t.strategy)if(o){if(a.value[o]===t.value[o])return!0}else if(a.value===t.value)return!0;return!1},a={};e(document).on("click",(function(t){var n=t.originalEvent&&t.originalEvent.keepTextCompleteDropdown;e.each(a,(function(e,t){e!==n&&t.deactivate()}))}));var o={SKIP_DEFAULT:0,KEY_UP:1,KEY_DOWN:2,KEY_ENTER:3,KEY_PAGEUP:4,KEY_PAGEDOWN:5,KEY_ESCAPE:6};function r(t,n,o){this.$el=r.createElement(o),this.completer=n,this.id=n.id+"dropdown",this._data=[],this.$inputEl=e(t),this.option=o,o.listPosition&&(this.setPosition=o.listPosition),o.height&&this.$el.height(o.height);var i=this;e.each(["maxCount","placement","footer","header","noResultsMessage","className"],(function(e,t){null!=o[t]&&(i[t]=o[t])})),this._bindEvents(t),a[this.id]=this}e.extend(r,{createElement:function(t){var n=t.appendTo;return n instanceof e||(n=e(n)),e("<ul></ul>").addClass(t.dropdownClassName).attr("id","textcomplete-dropdown-"+t._oid).css({display:"none",left:0,position:"absolute",zIndex:t.zIndex}).appendTo(n)}}),e.extend(r.prototype,{$el:null,$inputEl:null,completer:null,footer:null,header:null,id:null,maxCount:null,placement:"",shown:!1,data:[],className:"",destroy:function(){this.deactivate(),this.$el.off("."+this.id),this.$inputEl.off("."+this.id),this.clear(),this.$el.remove(),this.$el=this.$inputEl=this.completer=null,delete a[this.id]},render:function(t){var n=this._buildContents(t),a=e.map(t,(function(e){return e.value}));if(t.length){var o=t[0].strategy;o.id?this.$el.attr("data-strategy",o.id):this.$el.removeAttr("data-strategy"),this._renderHeader(a),this._renderFooter(a),n&&(this._renderContents(n),this._fitToBottom(),this._fitToRight(),this._activateIndexedItem()),this._setScroll()}else this.noResultsMessage?this._renderNoResultsMessage(a):this.shown&&this.deactivate()},setPosition:function(n){var a="absolute";return this.$inputEl.add(this.$inputEl.parents()).each((function(){return"absolute"!==e(this).css("position")&&("fixed"===e(this).css("position")?(n.top-=t.scrollTop(),n.left-=t.scrollLeft(),a="fixed",!1):void 0)})),this.$el.css(this._applyPlacement(n)),this.$el.css({position:a}),this},clear:function(){this.$el.html(""),this.data=[],this._index=0,this._$header=this._$footer=this._$noResultsMessage=null},activate:function(){return this.shown||(this.clear(),this.$el.show(),this.className&&this.$el.addClass(this.className),this.completer.fire("textComplete:show"),this.shown=!0),this},deactivate:function(){return this.shown&&(this.$el.hide(),this.className&&this.$el.removeClass(this.className),this.completer.fire("textComplete:hide"),this.shown=!1),this},isUp:function(e){return 38===e.keyCode||e.ctrlKey&&80===e.keyCode},isDown:function(e){return 40===e.keyCode||e.ctrlKey&&78===e.keyCode},isEnter:function(e){return!(e.ctrlKey||e.altKey||e.metaKey||e.shiftKey)&&(13===e.keyCode||9===e.keyCode||!0===this.option.completeOnSpace&&32===e.keyCode)},isPageup:function(e){return 33===e.keyCode},isPagedown:function(e){return 34===e.keyCode},isEscape:function(e){return 27===e.keyCode},_data:null,_index:null,_$header:null,_$noResultsMessage:null,_$footer:null,_bindEvents:function(){this.$el.on("mousedown."+this.id,".textcomplete-item",e.proxy(this._onClick,this)),this.$el.on("touchstart."+this.id,".textcomplete-item",e.proxy(this._onClick,this)),this.$el.on("mouseover."+this.id,".textcomplete-item",e.proxy(this._onMouseover,this)),this.$inputEl.on("keydown."+this.id,e.proxy(this._onKeydown,this))},_onClick:function(t){var n=e(t.target);t.preventDefault(),t.originalEvent.keepTextCompleteDropdown=this.id,n.hasClass("textcomplete-item")||(n=n.closest(".textcomplete-item"));var a=this.data[parseInt(n.data("index"),10)];this.completer.select(a.value,a.strategy,t);var o=this;setTimeout((function(){o.deactivate(),"touchstart"===t.type&&o.$inputEl.focus()}),0)},_onMouseover:function(t){var n=e(t.target);t.preventDefault(),n.hasClass("textcomplete-item")||(n=n.closest(".textcomplete-item")),this._index=parseInt(n.data("index"),10),this._activateIndexedItem()},_onKeydown:function(t){var n;if(this.shown)switch(e.isFunction(this.option.onKeydown)&&(n=this.option.onKeydown(t,o)),null==n&&(n=this._defaultKeydown(t)),n){case o.KEY_UP:t.preventDefault(),this._up();break;case o.KEY_DOWN:t.preventDefault(),this._down();break;case o.KEY_ENTER:t.preventDefault(),this._enter(t);break;case o.KEY_PAGEUP:t.preventDefault(),this._pageup();break;case o.KEY_PAGEDOWN:t.preventDefault(),this._pagedown();break;case o.KEY_ESCAPE:t.preventDefault(),this.deactivate()}},_defaultKeydown:function(e){return this.isUp(e)?o.KEY_UP:this.isDown(e)?o.KEY_DOWN:this.isEnter(e)?o.KEY_ENTER:this.isPageup(e)?o.KEY_PAGEUP:this.isPagedown(e)?o.KEY_PAGEDOWN:this.isEscape(e)?o.KEY_ESCAPE:void 0},_up:function(){0===this._index?this._index=this.data.length-1:this._index-=1,this._activateIndexedItem(),this._setScroll()},_down:function(){this._index===this.data.length-1?this._index=0:this._index+=1,this._activateIndexedItem(),this._setScroll()},_enter:function(e){var t=this.data[parseInt(this._getActiveElement().data("index"),10)];this.completer.select(t.value,t.strategy,e),this.deactivate()},_pageup:function(){var t=0,n=this._getActiveElement().position().top-this.$el.innerHeight();this.$el.children().each((function(a){if(e(this).position().top+e(this).outerHeight()>n)return t=a,!1})),this._index=t,this._activateIndexedItem(),this._setScroll()},_pagedown:function(){var t=this.data.length-1,n=this._getActiveElement().position().top+this.$el.innerHeight();this.$el.children().each((function(a){if(e(this).position().top>n)return t=a,!1})),this._index=t,this._activateIndexedItem(),this._setScroll()},_activateIndexedItem:function(){this.$el.find(".textcomplete-item.active").removeClass("active"),this._getActiveElement().addClass("active")},_getActiveElement:function(){return this.$el.children(".textcomplete-item:nth("+this._index+")")},_setScroll:function(){var e=this._getActiveElement(),t=e.position().top,n=e.outerHeight(),a=this.$el.innerHeight(),o=this.$el.scrollTop();0===this._index||this._index==this.data.length-1||t<0?this.$el.scrollTop(t+o):t+n>a&&this.$el.scrollTop(t+n+o-a)},_buildContents:function(e){var t,a,o,r="";for(a=0;a<e.length&&this.data.length!==this.maxCount;a++)t=e[a],n(this.data,t)||(o=this.data.length,this.data.push(t),r+='<li class="textcomplete-item" data-index="'+o+'"><a>',r+=t.strategy.template(t.value,t.term),r+="</a></li>");return r},_renderHeader:function(t){if(this.header){this._$header||(this._$header=e('<li class="textcomplete-header"></li>').prependTo(this.$el));var n=e.isFunction(this.header)?this.header(t):this.header;this._$header.html(n)}},_renderFooter:function(t){if(this.footer){this._$footer||(this._$footer=e('<li class="textcomplete-footer"></li>').appendTo(this.$el));var n=e.isFunction(this.footer)?this.footer(t):this.footer;this._$footer.html(n)}},_renderNoResultsMessage:function(t){if(this.noResultsMessage){this._$noResultsMessage||(this._$noResultsMessage=e('<li class="textcomplete-no-results-message"></li>').appendTo(this.$el));var n=e.isFunction(this.noResultsMessage)?this.noResultsMessage(t):this.noResultsMessage;this._$noResultsMessage.html(n)}},_renderContents:function(e){this._$footer?this._$footer.before(e):this.$el.append(e)},_fitToBottom:function(){var e=t.scrollTop()+t.height(),n=this.$el.height();this.$el.position().top+n>e&&(this.completer.$iframe||this.$el.offset({top:e-n}))},_fitToRight:function(){for(var e,n=this.option.rightEdgeOffset,a=this.$el.offset().left,o=this.$el.width(),r=t.width()-n;a+o>r&&(this.$el.offset({left:a-n}),!((e=this.$el.offset().left)>=a));)a=e},_applyPlacement:function(e){return-1!==this.placement.indexOf("top")?e={top:"auto",bottom:this.$el.parent().height()-e.top+e.lineHeight,left:e.left}:(e.bottom="auto",delete e.lineHeight),-1!==this.placement.indexOf("absleft")?e.left=0:-1!==this.placement.indexOf("absright")&&(e.right=0,e.left="auto"),e}}),e.fn.textcomplete.Dropdown=r,e.extend(e.fn.textcomplete,o)}(e),function(e){"use strict";var t=function(e){var t={};return function(n,a){t[n]?a(t[n]):e.call(this,n,(function(e){t[n]=(t[n]||[]).concat(e),a.apply(null,arguments)}))}};function n(n){e.extend(this,n),this.cache&&(this.search=t(this.search))}n.parse=function(t,a){return e.map(t,(function(e){var t=new n(e);return t.el=a.el,t.$el=a.$el,t}))},e.extend(n.prototype,{match:null,replace:null,search:null,id:null,cache:!1,context:function(){return!0},index:2,template:function(e){return e},idProperty:null}),e.fn.textcomplete.Strategy=n}(e),function(e){"use strict";var t=Date.now||function(){return(new Date).getTime()},n=function(e,n){var a,o,r,i,s,l=function(){var c=t()-i;c<n?a=setTimeout(l,n-c):(a=null,s=e.apply(r,o),r=o=null)};return function(){return r=this,o=arguments,i=t(),a||(a=setTimeout(l,n)),s}};function a(){}e.extend(a.prototype,{id:null,completer:null,el:null,$el:null,option:null,initialize:function(t,a,o){this.el=t,this.$el=e(t),this.id=a.id+this.constructor.name,this.completer=a,this.option=o,this.option.debounce&&(this._onKeyup=n(this._onKeyup,this.option.debounce)),this._bindEvents()},destroy:function(){this.$el.off("."+this.id),this.$el=this.el=this.completer=null},select:function(){throw new Error("Not implemented")},getCaretPosition:function(){var t=this._getCaretRelativePosition(),n=this.$el.offset(),a=this.option.appendTo;if(a){a instanceof e||(a=e(a));var o=a.offsetParent().offset();n.top-=o.top,n.left-=o.left}return t.top+=n.top,t.left+=n.left,t},focus:function(){this.$el.focus()},_bindEvents:function(){this.$el.on("keyup."+this.id,e.proxy(this._onKeyup,this))},_onKeyup:function(e){this._skipSearch(e)||this.completer.trigger(this.getTextFromHeadToCaret(),!0)},_skipSearch:function(e){switch(e.keyCode){case 9:case 13:case 16:case 17:case 18:case 33:case 34:case 40:case 38:case 27:return!0}if(e.ctrlKey)switch(e.keyCode){case 78:case 80:return!0}}}),e.fn.textcomplete.Adapter=a}(e),function(e){"use strict";function t(e,t,n){this.initialize(e,t,n)}e.extend(t.prototype,e.fn.textcomplete.Adapter.prototype,{select:function(t,n,a){var o,r=this.getTextFromHeadToCaret(),i=this.el.value.substring(this.el.selectionEnd),s=n.replace(t,a);void 0!==s&&(e.isArray(s)&&(i=s[1]+i,s=s[0]),o=e.isFunction(n.match)?n.match(r):n.match,r=r.replace(o,s),this.$el.val(r+i),this.el.selectionStart=this.el.selectionEnd=r.length)},getTextFromHeadToCaret:function(){return this.el.value.substring(0,this.el.selectionEnd)},_getCaretRelativePosition:function(){var t=e.fn.textcomplete.getCaretCoordinates(this.el,this.el.selectionStart);return{top:t.top+this._calculateLineHeight()-this.$el.scrollTop(),left:t.left-this.$el.scrollLeft(),lineHeight:this._calculateLineHeight()}},_calculateLineHeight:function(){var e=parseInt(this.$el.css("line-height"),10);if(isNaN(e)){var t=this.el.parentNode,n=document.createElement(this.el.nodeName),a=this.el.style;n.setAttribute("style","margin:0px;padding:0px;font-family:"+a.fontFamily+";font-size:"+a.fontSize),n.innerHTML="test",t.appendChild(n),e=n.clientHeight,t.removeChild(n)}return e}}),e.fn.textcomplete.Textarea=t}(e),function(e){"use strict";var t="吶";function n(n,a,o){this.initialize(n,a,o),e("<span>"+t+"</span>").css({position:"absolute",top:-9999,left:-9999}).insertBefore(n)}e.extend(n.prototype,e.fn.textcomplete.Textarea.prototype,{select:function(t,n,a){var o,r=this.getTextFromHeadToCaret(),i=this.el.value.substring(r.length),s=n.replace(t,a);if(void 0!==s){e.isArray(s)&&(i=s[1]+i,s=s[0]),o=e.isFunction(n.match)?n.match(r):n.match,r=r.replace(o,s),this.$el.val(r+i),this.el.focus();var l=this.el.createTextRange();l.collapse(!0),l.moveEnd("character",r.length),l.moveStart("character",r.length),l.select()}},getTextFromHeadToCaret:function(){this.el.focus();var e=document.selection.createRange();e.moveStart("character",-this.el.value.length);var n=e.text.split(t);return 1===n.length?n[0]:n[1]}}),e.fn.textcomplete.IETextarea=n}(e),function(e){"use strict";function t(e,t,n){this.initialize(e,t,n)}e.extend(t.prototype,e.fn.textcomplete.Adapter.prototype,{select:function(t,n,a){var o=this.getTextFromHeadToCaret(),r=this.el.ownerDocument.getSelection(),i=r.getRangeAt(0),s=i.cloneRange();s.selectNodeContents(i.startContainer);var l,c=s.toString().substring(i.startOffset),u=n.replace(t,a);if(void 0!==u){e.isArray(u)&&(c=u[1]+c,u=u[0]),l=e.isFunction(n.match)?n.match(o):n.match,o=o.replace(l,u).replace(/ $/,"&nbsp"),i.selectNodeContents(i.startContainer),i.deleteContents();var d=this.el.ownerDocument.createElement("div");d.innerHTML=o;var f=this.el.ownerDocument.createElement("div");f.innerHTML=c;for(var m,p,g=this.el.ownerDocument.createDocumentFragment();m=d.firstChild;)p=g.appendChild(m);for(;m=f.firstChild;)g.appendChild(m);i.insertNode(g),i.setStartAfter(p),i.collapse(!0),r.removeAllRanges(),r.addRange(i)}},_getCaretRelativePosition:function(){var t=this.el.ownerDocument.getSelection().getRangeAt(0).cloneRange(),n=t.endContainer.parentNode,a=this.el.ownerDocument.createElement("span");t.insertNode(a),t.selectNodeContents(a),t.deleteContents(),setTimeout((function(){n.normalize()}),0);var o=e(a),r=o.offset();if(r.left-=this.$el.offset().left,r.top+=o.height()-this.$el.offset().top,r.lineHeight=o.height(),this.completer.$iframe){var i=this.completer.$iframe.offset();r.top+=i.top,r.left+=i.left,r.top-=e(this.completer.$iframe[0].contentWindow.document).scrollTop()}return o.remove(),r},getTextFromHeadToCaret:function(){var e=this.el.ownerDocument.getSelection().getRangeAt(0),t=e.cloneRange();return t.selectNodeContents(e.startContainer),t.toString().substring(0,e.startOffset)}}),e.fn.textcomplete.ContentEditable=t}(e),function(e){"use strict";function t(e,t,n){this.initialize(e,t,n)}e.extend(t.prototype,e.fn.textcomplete.ContentEditable.prototype,{_bindEvents:function(){var t=this;this.option.ckeditor_instance.on("key",(function(e){var n=e.data;if(t._onKeyup(n),t.completer.dropdown.shown&&t._skipSearch(n))return!1}),null,null,1),this.$el.on("keyup."+this.id,e.proxy(this._onKeyup,this))}}),e.fn.textcomplete.CKEditor=t}(e),function(e){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n="undefined"!=typeof window,a=n&&null!=window.mozInnerScreenX;function o(e,o,r){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var i=r&&r.debug||!1;if(i){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);var c=l.style,u=window.getComputedStyle?getComputedStyle(e):e.currentStyle;c.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(c.wordWrap="break-word"),c.position="absolute",i||(c.visibility="hidden"),t.forEach((function(e){c[e]=u[e]})),a?e.scrollHeight>parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",l.textContent=e.value.substring(0,o),"INPUT"===e.nodeName&&(l.textContent=l.textContent.replace(/\s/g," "));var d=document.createElement("span");d.textContent=e.value.substring(o)||".",l.appendChild(d);var f={top:d.offsetTop+parseInt(u.borderTopWidth),left:d.offsetLeft+parseInt(u.borderLeftWidth)};return i?d.style.backgroundColor="#aaa":document.body.removeChild(l),f}e.fn.textcomplete.getCaretCoordinates=o}(e),e})?a.apply(t,o):a)||(e.exports=r)},"./node_modules/jquery/dist/jquery.js":function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(a,o){"use strict";var r=[],i=Object.getPrototypeOf,s=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},c=r.push,u=r.indexOf,d={},f=d.toString,m=d.hasOwnProperty,p=m.toString,g=p.call(Object),h={},_=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},y=a.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function A(e,t,n){var a,o,r=(n=n||y).createElement("script");if(r.text=e,t)for(a in v)(o=t[a]||t.getAttribute&&t.getAttribute(a))&&r.setAttribute(a,o);n.head.appendChild(r).parentNode.removeChild(r)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var w="3.5.1",E=function(e,t){return new E.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!_(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}E.fn=E.prototype={jquery:w,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.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)},even:function(){return this.pushStack(E.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(e,t){return t%2})))},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:c,sort:r.sort,splice:r.splice},E.extend=E.fn.extend=function(){var e,t,n,a,o,r,i=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof i&&(c=i,i=arguments[s]||{},s++),"object"==typeof i||_(i)||(i={}),s===l&&(i=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)a=e[t],"__proto__"!==t&&i!==a&&(c&&a&&(E.isPlainObject(a)||(o=Array.isArray(a)))?(n=i[t],r=o&&!Array.isArray(n)?[]:o||E.isPlainObject(n)?n:{},o=!1,i[t]=E.extend(c,r,a)):void 0!==a&&(i[t]=a));return i},E.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=i(e))||"function"==typeof(n=m.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){A(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,a=0;if(C(e))for(n=e.length;a<n&&!1!==t.call(e[a],a,e[a]);a++);else for(a in e)if(!1===t.call(e[a],a,e[a]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?E.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,a=0,o=e.length;a<n;a++)e[o++]=t[a];return e.length=o,e},grep:function(e,t,n){for(var a=[],o=0,r=e.length,i=!n;o<r;o++)!t(e[o],o)!==i&&a.push(e[o]);return a},map:function(e,t,n){var a,o,r=0,i=[];if(C(e))for(a=e.length;r<a;r++)null!=(o=t(e[r],r,n))&&i.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&i.push(o);return l(i)},guid:1,support:h}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=r[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=function(e){var t,n,a,o,r,i,s,l,c,u,d,f,m,p,g,h,_,b,y,v="sizzle"+1*new Date,A=e.document,S=0,w=0,E=le(),C=le(),T=le(),I=le(),k=function(e,t){return e===t&&(d=!0),0},D={}.hasOwnProperty,x=[],M=x.pop,P=x.push,O=x.push,R=x.slice,N=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\[[\\x20\\t\\r\\n\\f]*("+U+")(?:"+$+"*([*^$|!~]?=)"+$+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+$+"*\\]",F=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",q=new RegExp($+"+","g"),Y=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),H=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),G=new RegExp($+"|>"),V=new RegExp(F),W=new RegExp("^"+U+"$"),Q={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},z=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ae=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},ie=ve((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(x=R.call(A.childNodes),A.childNodes),x[A.childNodes.length].nodeType}catch(e){O={apply:x.length?function(e,t){P.apply(e,R.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}function se(e,t,a,o){var r,s,c,u,d,p,_,b=t&&t.ownerDocument,A=t?t.nodeType:9;if(a=a||[],"string"!=typeof e||!e||1!==A&&9!==A&&11!==A)return a;if(!o&&(f(t),t=t||m,g)){if(11!==A&&(d=Z.exec(e)))if(r=d[1]){if(9===A){if(!(c=t.getElementById(r)))return a;if(c.id===r)return a.push(c),a}else if(b&&(c=b.getElementById(r))&&y(t,c)&&c.id===r)return a.push(c),a}else{if(d[2])return O.apply(a,t.getElementsByTagName(e)),a;if((r=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(a,t.getElementsByClassName(r)),a}if(n.qsa&&!I[e+" "]&&(!h||!h.test(e))&&(1!==A||"object"!==t.nodeName.toLowerCase())){if(_=e,b=t,1===A&&(G.test(e)||B.test(e))){for((b=ee.test(e)&&_e(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ae,oe):t.setAttribute("id",u=v)),s=(p=i(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+ye(p[s]);_=p.join(",")}try{return O.apply(a,b.querySelectorAll(_)),a}catch(t){I(e,!0)}finally{u===v&&t.removeAttribute("id")}}}return l(e.replace(Y,"$1"),t,a,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>a.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[v]=!0,e}function ue(e){var t=m.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)a.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return ce((function(t){return t=+t,ce((function(n,a){for(var o,r=e([],n.length,t),i=r.length;i--;)n[o=r[i]]&&(n[o]=!(a[o]=n[o]))}))}))}function _e(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},r=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!z.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,o,i=e?e.ownerDocument||e:A;return i!=m&&9===i.nodeType&&i.documentElement?(p=(m=i).documentElement,g=!r(m),A!=m&&(o=m.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.scope=ue((function(e){return p.appendChild(e).appendChild(m.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(m.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(m.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=v,!m.getElementsByName||!m.getElementsByName(v).length})),n.getById?(a.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},a.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(a.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}},a.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,a,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),a=0;r=o[a++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),a.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,a=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&a.push(n);return a}return r},a.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},_=[],h=[],(n.qsa=X.test(m.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+v+"'></a><select id='"+v+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+L+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),(t=m.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=m.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=X.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),_.push("!=",F)})),h=h.length&&new RegExp(h.join("|")),_=_.length&&new RegExp(_.join("|")),t=X.test(p.compareDocumentPosition),y=t||X.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):e.compareDocumentPosition&&16&e.compareDocumentPosition(a)))}: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 d=!0,0;var a=!e.compareDocumentPosition-!t.compareDocumentPosition;return a||(1&(a=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===a?e==m||e.ownerDocument==A&&y(A,e)?-1:t==m||t.ownerDocument==A&&y(A,t)?1:u?N(u,e)-N(u,t):0:4&a?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,a=0,o=e.parentNode,r=t.parentNode,i=[e],s=[t];if(!o||!r)return e==m?-1:t==m?1:o?-1:r?1:u?N(u,e)-N(u,t):0;if(o===r)return fe(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;i[a]===s[a];)a++;return a?fe(i[a],s[a]):i[a]==A?-1:s[a]==A?1:0},m):m},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&g&&!I[t+" "]&&(!_||!_.test(t))&&(!h||!h.test(t)))try{var a=b.call(e,t);if(a||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return a}catch(e){I(t,!0)}return se(t,m,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=m&&f(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=m&&f(e);var o=a.attrHandle[t.toLowerCase()],r=o&&D.call(a.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(ae,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,a=[],o=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(k),d){for(;t=e[r++];)t===e[r]&&(o=a.push(r));for(;o--;)e.splice(a[o],1)}return u=null,e},o=se.getText=function(e){var t,n="",a=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[a++];)n+=o(t);return n},(a=se.selectors={cacheLength:50,createPseudo:ce,match:Q,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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=i(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=E[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+$+"|$)"))&&E(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(a){var o=se.attr(a,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,a,o){var r="nth"!==e.slice(0,3),i="last"!==e.slice(-4),s="of-type"===t;return 1===a&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,m,p,g=r!==i?"nextSibling":"previousSibling",h=t.parentNode,_=s&&t.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(h){if(r){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===_:1===f.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[i?h.firstChild:h.lastChild],i&&b){for(y=(m=(c=(u=(d=(f=h)[v]||(f[v]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],f=m&&h.childNodes[m];f=++m&&f&&f[g]||(y=m=0)||p.pop();)if(1===f.nodeType&&++y&&f===t){u[e]=[S,m,y];break}}else if(b&&(y=m=(c=(u=(d=(f=t)[v]||(f[v]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===y)for(;(f=++m&&f&&f[g]||(y=m=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==_:1!==f.nodeType)||!++y||(b&&((u=(d=f[v]||(f[v]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[S,y]),f!==t)););return(y-=o)===a||y%a==0&&y/a>=0}}},PSEUDO:function(e,t){var n,o=a.pseudos[e]||a.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[v]?o(t):o.length>1?(n=[e,e,"",t],a.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var a,r=o(e,t),i=r.length;i--;)e[a=N(e,r[i])]=!(n[a]=r[i])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],a=s(e.replace(Y,"$1"));return a[v]?ce((function(e,t,n,o){for(var r,i=a(e,null,o,[]),s=e.length;s--;)(r=i[s])&&(e[s]=!(t[s]=r))})):function(e,o,r){return t[0]=e,a(t,null,r,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return W.test(e||"")||se.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===p},focus:function(e){return e===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),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!a.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return K.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:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:he((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:he((function(e,t,n){for(var a=n<0?n+t:n>t?t:n;--a>=0;)e.push(a);return e})),gt:he((function(e,t,n){for(var a=n<0?n+t:n;++a<t;)e.push(a);return e}))}}).pseudos.nth=a.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})a.pseudos[t]=me(t);for(t in{submit:!0,reset:!0})a.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,n=e.length,a="";t<n;t++)a+=e[t].value;return a}function ve(e,t,n){var a=t.dir,o=t.next,r=o||a,i=n&&"parentNode"===r,s=w++;return t.first?function(t,n,o){for(;t=t[a];)if(1===t.nodeType||i)return e(t,n,o);return!1}:function(t,n,l){var c,u,d,f=[S,s];if(l){for(;t=t[a];)if((1===t.nodeType||i)&&e(t,n,l))return!0}else for(;t=t[a];)if(1===t.nodeType||i)if(u=(d=t[v]||(t[v]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[a]||t;else{if((c=u[r])&&c[0]===S&&c[1]===s)return f[2]=c[2];if(u[r]=f,f[2]=e(t,n,l))return!0}return!1}}function Ae(e){return e.length>1?function(t,n,a){for(var o=e.length;o--;)if(!e[o](t,n,a))return!1;return!0}:e[0]}function Se(e,t,n,a,o){for(var r,i=[],s=0,l=e.length,c=null!=t;s<l;s++)(r=e[s])&&(n&&!n(r,a,o)||(i.push(r),c&&t.push(s)));return i}function we(e,t,n,a,o,r){return a&&!a[v]&&(a=we(a)),o&&!o[v]&&(o=we(o,r)),ce((function(r,i,s,l){var c,u,d,f=[],m=[],p=i.length,g=r||function(e,t,n){for(var a=0,o=t.length;a<o;a++)se(e,t[a],n);return n}(t||"*",s.nodeType?[s]:s,[]),h=!e||!r&&t?g:Se(g,f,e,s,l),_=n?o||(r?e:p||a)?[]:i:h;if(n&&n(h,_,s,l),a)for(c=Se(_,m),a(c,[],s,l),u=c.length;u--;)(d=c[u])&&(_[m[u]]=!(h[m[u]]=d));if(r){if(o||e){if(o){for(c=[],u=_.length;u--;)(d=_[u])&&c.push(h[u]=d);o(null,_=[],c,l)}for(u=_.length;u--;)(d=_[u])&&(c=o?N(r,d):f[u])>-1&&(r[c]=!(i[c]=d))}}else _=Se(_===i?_.splice(p,_.length):_),o?o(null,i,_,l):O.apply(i,_)}))}function Ee(e){for(var t,n,o,r=e.length,i=a.relative[e[0].type],s=i||a.relative[" "],l=i?1:0,u=ve((function(e){return e===t}),s,!0),d=ve((function(e){return N(t,e)>-1}),s,!0),f=[function(e,n,a){var o=!i&&(a||n!==c)||((t=n).nodeType?u(e,n,a):d(e,n,a));return t=null,o}];l<r;l++)if(n=a.relative[e[l].type])f=[ve(Ae(f),n)];else{if((n=a.filter[e[l].type].apply(null,e[l].matches))[v]){for(o=++l;o<r&&!a.relative[e[o].type];o++);return we(l>1&&Ae(f),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(Y,"$1"),n,l<o&&Ee(e.slice(l,o)),o<r&&Ee(e=e.slice(o)),o<r&&ye(e))}f.push(n)}return Ae(f)}return be.prototype=a.filters=a.pseudos,a.setFilters=new be,i=se.tokenize=function(e,t){var n,o,r,i,s,l,c,u=C[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=a.preFilter;s;){for(i in n&&!(o=H.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),n=!1,(o=B.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace(Y," ")}),s=s.slice(n.length)),a.filter)!(o=Q[i].exec(s))||c[i]&&!(o=c[i](o))||(n=o.shift(),r.push({value:n,type:i,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):C(e,l).slice(0)},s=se.compile=function(e,t){var n,o=[],r=[],s=T[e+" "];if(!s){for(t||(t=i(e)),n=t.length;n--;)(s=Ee(t[n]))[v]?o.push(s):r.push(s);(s=T(e,function(e,t){var n=t.length>0,o=e.length>0,r=function(r,i,s,l,u){var d,p,h,_=0,b="0",y=r&&[],v=[],A=c,w=r||o&&a.find.TAG("*",u),E=S+=null==A?1:Math.random()||.1,C=w.length;for(u&&(c=i==m||i||u);b!==C&&null!=(d=w[b]);b++){if(o&&d){for(p=0,i||d.ownerDocument==m||(f(d),s=!g);h=e[p++];)if(h(d,i||m,s)){l.push(d);break}u&&(S=E)}n&&((d=!h&&d)&&_--,r&&y.push(d))}if(_+=b,n&&b!==_){for(p=0;h=t[p++];)h(y,v,i,s);if(r){if(_>0)for(;b--;)y[b]||v[b]||(v[b]=M.call(l));v=Se(v)}O.apply(l,v),u&&!r&&v.length>0&&_+t.length>1&&se.uniqueSort(l)}return u&&(S=E,c=A),y};return n?ce(r):r}(r,o))).selector=e}return s},l=se.select=function(e,t,n,o){var r,l,c,u,d,f="function"==typeof e&&e,m=!o&&i(e=f.selector||e);if(n=n||[],1===m.length){if((l=m[0]=m[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&a.relative[l[1].type]){if(!(t=(a.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=Q.needsContext.test(e)?0:l.length;r--&&(c=l[r],!a.relative[u=c.type]);)if((d=a.find[u])&&(o=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&_e(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&ye(l)))return O.apply(n,o),n;break}}return(f||s(e,m))(o,t,!g,n,!t||ee.test(e)&&_e(t.parentNode)||t),n},n.sortStable=v.split("").sort(k).join("")===v,n.detectDuplicates=!!d,f(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(m.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(L,(function(e,t,n){var a;if(!n)return!0===e[t]?t.toLowerCase():(a=e.getAttributeNode(t))&&a.specified?a.value:null})),se}(a);E.find=T,E.expr=T.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=T.uniqueSort,E.text=T.getText,E.isXMLDoc=T.isXML,E.contains=T.contains,E.escapeSelector=T.escape;var I=function(e,t,n){for(var a=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&E(e).is(n))break;a.push(e)}return a},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=E.expr.match.needsContext;function x(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return _(t)?E.grep(e,(function(e,a){return!!t.call(e,a,e)!==n})):t.nodeType?E.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?E.grep(e,(function(e){return u.call(t,e)>-1!==n})):E.filter(t,e,n)}E.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?E.find.matchesSelector(a,e)?[a]:[]:E.find.matches(e,E.grep(t,(function(e){return 1===e.nodeType})))},E.fn.extend({find:function(e){var t,n,a=this.length,o=this;if("string"!=typeof e)return this.pushStack(E(e).filter((function(){for(t=0;t<a;t++)if(E.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<a;t++)E.find(e,o[t],n);return a>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&D.test(e)?E(e):e||[],!1).length}});var O,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var a,o;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(a="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),M.test(a[1])&&E.isPlainObject(t))for(a in t)_(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(o=y.getElementById(a[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,O=E(y);var N=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0}))},closest:function(e,t){var n,a=0,o=this.length,r=[],i="string"!=typeof e&&E(e);if(!D.test(e))for(;a<o;a++)for(n=this[a];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?E.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(E(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return $(e,"nextSibling")},prev:function(e){return $(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(x(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},(function(e,t){E.fn[e]=function(n,a){var o=E.map(this,t,n);return"Until"!==e.slice(-5)&&(a=n),a&&"string"==typeof a&&(o=E.filter(a,o)),this.length>1&&(L[e]||E.uniqueSort(o),N.test(e)&&o.reverse()),this.pushStack(o)}}));var U=/[^\x20\t\r\n\f]+/g;function j(e){return e}function F(e){throw e}function q(e,t,n,a){var o;try{e&&_(o=e.promise)?o.call(e).done(t).fail(n):e&&_(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(a))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return E.each(e.match(U)||[],(function(e,n){t[n]=!0})),t}(e):E.extend({},e);var t,n,a,o,r=[],i=[],s=-1,l=function(){for(o=o||e.once,a=t=!0;i.length;s=-1)for(n=i.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=r.length,n=!1);e.memory||(n=!1),t=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(s=r.length-1,i.push(n)),function t(n){E.each(n,(function(n,a){_(a)?e.unique&&c.has(a)||r.push(a):a&&a.length&&"string"!==S(a)&&t(a)}))}(arguments),n&&!t&&l()),this},remove:function(){return E.each(arguments,(function(e,t){for(var n;(n=E.inArray(t,r,n))>-1;)r.splice(n,1),n<=s&&s--})),this},has:function(e){return e?E.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=i=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=i=[],n||t||(r=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!a}};return c},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return E.Deferred((function(n){E.each(t,(function(t,a){var o=_(e[a[4]])&&e[a[4]];r[a[1]]((function(){var e=o&&o.apply(this,arguments);e&&_(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var r=0;function i(e,t,n,o){return function(){var s=this,l=arguments,c=function(){var a,c;if(!(e<r)){if((a=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=a&&("object"==typeof a||"function"==typeof a)&&a.then,_(c)?o?c.call(a,i(r,t,j,o),i(r,t,F,o)):(r++,c.call(a,i(r,t,j,o),i(r,t,F,o),i(r,t,j,t.notifyWith))):(n!==j&&(s=void 0,l=[a]),(o||t.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(a){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(a,u.stackTrace),e+1>=r&&(n!==F&&(s=void 0,l=[a]),t.rejectWith(s,l))}};e?u():(E.Deferred.getStackHook&&(u.stackTrace=E.Deferred.getStackHook()),a.setTimeout(u))}}return E.Deferred((function(a){t[0][3].add(i(0,a,_(o)?o:j,a.notifyWith)),t[1][3].add(i(0,a,_(e)?e:j)),t[2][3].add(i(0,a,_(n)?n:F))})).promise()},promise:function(e){return null!=e?E.extend(e,o):o}},r={};return E.each(t,(function(e,a){var i=a[2],s=a[5];o[a[1]]=i.add,s&&i.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(a[3].fire),r[a[0]]=function(){return r[a[0]+"With"](this===r?void 0:this,arguments),this},r[a[0]+"With"]=i.fireWith})),o.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,a=Array(n),o=s.call(arguments),r=E.Deferred(),i=function(e){return function(n){a[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||r.resolveWith(a,o)}};if(t<=1&&(q(e,r.done(i(n)).resolve,r.reject,!t),"pending"===r.state()||_(o[n]&&o[n].then)))return r.then();for(;n--;)q(o[n],i(n),r.reject);return r.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){a.console&&a.console.warn&&e&&Y.test(e.name)&&a.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){a.setTimeout((function(){throw e}))};var H=E.Deferred();function B(){y.removeEventListener("DOMContentLoaded",B),a.removeEventListener("load",B),E.ready()}E.fn.ready=function(e){return H.then(e).catch((function(e){E.readyException(e)})),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||H.resolveWith(y,[E]))}}),E.ready.then=H.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?a.setTimeout(E.ready):(y.addEventListener("DOMContentLoaded",B),a.addEventListener("load",B));var G=function(e,t,n,a,o,r,i){var s=0,l=e.length,c=null==n;if("object"===S(n))for(s in o=!0,n)G(e,t,s,n[s],!0,r,i);else if(void 0!==a&&(o=!0,_(a)||(i=!0),c&&(i?(t.call(e,a),t=null):(c=t,t=function(e,t,n){return c.call(E(e),n)})),t))for(;s<l;s++)t(e[s],n,i?a:a.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):r},V=/^-ms-/,W=/-([a-z])/g;function Q(e,t){return t.toUpperCase()}function z(e){return e.replace(V,"ms-").replace(W,Q)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=E.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var a,o=this.cache(e);if("string"==typeof t)o[z(t)]=n;else for(a in t)o[z(a)]=t[a];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,a=e[this.expando];if(void 0!==a){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in a?[t]:t.match(U)||[]).length;for(;n--;)delete a[t[n]]}(void 0===t||E.isEmptyObject(a))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var X=new J,Z=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var a;if(void 0===n&&1===e.nodeType)if(a="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(a))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return Z.hasData(e)||X.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,a,o,r=this[0],i=r&&r.attributes;if(void 0===e){if(this.length&&(o=Z.get(r),1===r.nodeType&&!X.get(r,"hasDataAttrs"))){for(n=i.length;n--;)i[n]&&0===(a=i[n].name).indexOf("data-")&&(a=z(a.slice(5)),ne(r,a,o[a]));X.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){Z.set(this,e)})):G(this,(function(t){var n;if(r&&void 0===t)return void 0!==(n=Z.get(r,e))||void 0!==(n=ne(r,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),E.extend({queue:function(e,t,n){var a;if(e)return t=(t||"fx")+"queue",a=X.get(e,t),n&&(!a||Array.isArray(n)?a=X.access(e,t,E.makeArray(n)):a.push(n)),a||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),a=n.length,o=n.shift(),r=E._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),a--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,(function(){E.dequeue(e,t)}),r)),!a&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:E.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):void 0===t?this:this.each((function(){var n=E.queue(this,e,t);E._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&E.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){E.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,a=1,o=E.Deferred(),r=this,i=this.length,s=function(){--a||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(n=X.get(r[i],e+"queueHooks"))&&n.empty&&(a++,n.empty.add(s));return s(),o.promise(t)}});var ae=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+ae+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=y.documentElement,se=function(e){return E.contains(e.ownerDocument,e)},le={composed:!0};ie.getRootNode&&(se=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===E.css(e,"display")};function ue(e,t,n,a){var o,r,i=20,s=a?function(){return a.cur()}:function(){return E.css(e,t,"")},l=s(),c=n&&n[3]||(E.cssNumber[t]?"":"px"),u=e.nodeType&&(E.cssNumber[t]||"px"!==c&&+l)&&oe.exec(E.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;i--;)E.style(e,t,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(i=0),u/=r;u*=2,E.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],a&&(a.unit=c,a.start=u,a.end=o)),o}var de={};function fe(e){var t,n=e.ownerDocument,a=e.nodeName,o=de[a];return o||(t=n.body.appendChild(n.createElement(a)),o=E.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),de[a]=o,o)}function me(e,t){for(var n,a,o=[],r=0,i=e.length;r<i;r++)(a=e[r]).style&&(n=a.style.display,t?("none"===n&&(o[r]=X.get(a,"display")||null,o[r]||(a.style.display="")),""===a.style.display&&ce(a)&&(o[r]=fe(a))):"none"!==n&&(o[r]="none",X.set(a,"display",n)));for(r=0;r<i;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}E.fn.extend({show:function(){return me(this,!0)},hide:function(){return me(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?E(this).show():E(this).hide()}))}});var pe,ge,he=/^(?:checkbox|radio)$/i,_e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(ge=y.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),pe.appendChild(ge),h.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",h.option=!!pe.lastChild;var ye={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 ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&x(e,t)?E.merge([e],n):n}function Ae(e,t){for(var n=0,a=e.length;n<a;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,h.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function we(e,t,n,a,o){for(var r,i,s,l,c,u,d=t.createDocumentFragment(),f=[],m=0,p=e.length;m<p;m++)if((r=e[m])||0===r)if("object"===S(r))E.merge(f,r.nodeType?[r]:r);else if(Se.test(r)){for(i=i||d.appendChild(t.createElement("div")),s=(_e.exec(r)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,i.innerHTML=l[1]+E.htmlPrefilter(r)+l[2],u=l[0];u--;)i=i.lastChild;E.merge(f,i.childNodes),(i=d.firstChild).textContent=""}else f.push(t.createTextNode(r));for(d.textContent="",m=0;r=f[m++];)if(a&&E.inArray(r,a)>-1)o&&o.push(r);else if(c=se(r),i=ve(d.appendChild(r),"script"),c&&Ae(i),n)for(u=0;r=i[u++];)be.test(r.type||"")&&n.push(r);return d}var Ee=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ie(){return!0}function ke(){return!1}function De(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function xe(e,t,n,a,o,r){var i,s;if("object"==typeof t){for(s in"string"!=typeof n&&(a=a||n,n=void 0),t)xe(e,s,n,a,t[s],r);return e}if(null==a&&null==o?(o=n,a=n=void 0):null==o&&("string"==typeof n?(o=a,a=void 0):(o=a,a=n,n=void 0)),!1===o)o=ke;else if(!o)return e;return 1===r&&(i=o,(o=function(e){return E().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=E.guid++)),e.each((function(){E.event.add(this,t,o,a,n)}))}function Me(e,t,n){n?(X.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var a,o,r=X.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),X.set(this,t,r),a=n(this,t),this[t](),r!==(o=X.get(this,t))||a?X.set(this,t,!1):o={},r!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else r.length&&(X.set(this,t,{value:E.event.trigger(E.extend(r[0],E.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&E.event.add(e,t,Ie)}E.event={global:{},add:function(e,t,n,a,o){var r,i,s,l,c,u,d,f,m,p,g,h=X.get(e);if(K(e))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&E.find.matchesSelector(ie,o),n.guid||(n.guid=E.guid++),(l=h.events)||(l=h.events=Object.create(null)),(i=h.handle)||(i=h.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(U)||[""]).length;c--;)m=g=(s=Te.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),m&&(d=E.event.special[m]||{},m=(o?d.delegateType:d.bindType)||m,d=E.event.special[m]||{},u=E.extend({type:m,origType:g,data:a,handler:n,guid:n.guid,selector:o,needsContext:o&&E.expr.match.needsContext.test(o),namespace:p.join(".")},r),(f=l[m])||((f=l[m]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,a,p,i)||e.addEventListener&&e.addEventListener(m,i)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),E.event.global[m]=!0)},remove:function(e,t,n,a,o){var r,i,s,l,c,u,d,f,m,p,g,h=X.hasData(e)&&X.get(e);if(h&&(l=h.events)){for(c=(t=(t||"").match(U)||[""]).length;c--;)if(m=g=(s=Te.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),m){for(d=E.event.special[m]||{},f=l[m=(a?d.delegateType:d.bindType)||m]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=r=f.length;r--;)u=f[r],!o&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||a&&a!==u.selector&&("**"!==a||!u.selector)||(f.splice(r,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));i&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,h.handle)||E.removeEvent(e,m,h.handle),delete l[m])}else for(m in l)E.event.remove(e,m+t[c],n,a,!0);E.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,a,o,r,i,s=new Array(arguments.length),l=E.event.fix(e),c=(X.get(this,"events")||Object.create(null))[l.type]||[],u=E.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(i=E.event.handlers.call(this,l,c),t=0;(o=i[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(a=((E.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(l.result=a)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,a,o,r,i,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],i={},n=0;n<l;n++)void 0===i[o=(a=t[n]).selector+" "]&&(i[o]=a.needsContext?E(o,this).index(c)>-1:E.find(o,this,null,[c]).length),i[o]&&r.push(a);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:_(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&x(t,"input")&&Me(t,"click",Ie),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&x(t,"input")&&Me(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&x(t,"input")&&X.get(t,"click")||x(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ie:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ie,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ie,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ie,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ee.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(e,t){E.event.special[e]={setup:function(){return Me(this,e,De),!1},trigger:function(){return Me(this,e),!0},delegateType:t}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,a=this,o=e.relatedTarget,r=e.handleObj;return o&&(o===a||E.contains(a,o))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),E.fn.extend({on:function(e,t,n,a){return xe(this,e,t,n,a)},one:function(e,t,n,a){return xe(this,e,t,n,a,1)},off:function(e,t,n){var a,o;if(e&&e.preventDefault&&e.handleObj)return a=e.handleObj,E(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each((function(){E.event.remove(this,e,n,t)}))}});var Pe=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var n,a,o,r,i,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(o in X.remove(t,"handle events"),s)for(n=0,a=s[o].length;n<a;n++)E.event.add(t,o,s[o][n]);Z.hasData(e)&&(r=Z.access(e),i=E.extend({},r),Z.set(t,i))}}function je(e,t){var n=t.nodeName.toLowerCase();"input"===n&&he.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,a){t=l(t);var o,r,i,s,c,u,d=0,f=e.length,m=f-1,p=t[0],g=_(p);if(g||f>1&&"string"==typeof p&&!h.checkClone&&Oe.test(p))return e.each((function(o){var r=e.eq(o);g&&(t[0]=p.call(this,o,r.html())),Fe(r,t,n,a)}));if(f&&(r=(o=we(t,e[0].ownerDocument,!1,e,a)).firstChild,1===o.childNodes.length&&(o=r),r||a)){for(s=(i=E.map(ve(o,"script"),Le)).length;d<f;d++)c=o,d!==m&&(c=E.clone(c,!0,!0),s&&E.merge(i,ve(c,"script"))),n.call(e[d],c,d);if(s)for(u=i[i.length-1].ownerDocument,E.map(i,$e),d=0;d<s;d++)c=i[d],be.test(c.type||"")&&!X.access(c,"globalEval")&&E.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?E._evalUrl&&!c.noModule&&E._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):A(c.textContent.replace(Re,""),c,u))}return e}function qe(e,t,n){for(var a,o=t?E.filter(t,e):e,r=0;null!=(a=o[r]);r++)n||1!==a.nodeType||E.cleanData(ve(a)),a.parentNode&&(n&&se(a)&&Ae(ve(a,"script")),a.parentNode.removeChild(a));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var a,o,r,i,s=e.cloneNode(!0),l=se(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(i=ve(s),a=0,o=(r=ve(e)).length;a<o;a++)je(r[a],i[a]);if(t)if(n)for(r=r||ve(e),i=i||ve(s),a=0,o=r.length;a<o;a++)Ue(r[a],i[a]);else Ue(e,s);return(i=ve(s,"script")).length>0&&Ae(i,!l&&ve(e,"script")),s},cleanData:function(e){for(var t,n,a,o=E.event.special,r=0;void 0!==(n=e[r]);r++)if(K(n)){if(t=n[X.expando]){if(t.events)for(a in t.events)o[a]?E.event.remove(n,a):E.removeEvent(n,a,t.handle);n[X.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),E.fn.extend({detach:function(e){return qe(this,e,!0)},remove:function(e){return qe(this,e)},text:function(e){return G(this,(function(e){return void 0===e?E.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 Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(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&&(E.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},n=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!ye[(_e.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<a;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){E.fn[e]=function(e){for(var n,a=[],o=E(e),r=o.length-1,i=0;i<=r;i++)n=i===r?this:this.clone(!0),E(o[i])[t](n),c.apply(a,n.get());return this.pushStack(a)}}));var Ye=new RegExp("^("+ae+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=a),t.getComputedStyle(e)},Be=function(e,t,n){var a,o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];for(o in a=n.call(e),t)e.style[o]=r[o];return a},Ge=new RegExp(re.join("|"),"i");function Ve(e,t,n){var a,o,r,i,s=e.style;return(n=n||He(e))&&(""!==(i=n.getPropertyValue(t)||n[t])||se(e)||(i=E.style(e,t)),!h.pixelBoxStyles()&&Ye.test(i)&&Ge.test(t)&&(a=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=n.width,s.width=a,s.minWidth=o,s.maxWidth=r)),void 0!==i?i+"":i}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(c).appendChild(u);var e=a.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",i=36===t(e.right),o=36===t(e.width),u.style.position="absolute",r=12===t(u.offsetWidth/3),ie.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,r,i,s,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===u.style.backgroundClip,E.extend(h,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),i},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,o;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",ie.appendChild(e).appendChild(t).appendChild(n),o=a.getComputedStyle(t),s=parseInt(o.height)>3,ie.removeChild(e)),s}}))}();var Qe=["Webkit","Moz","ms"],ze=y.createElement("div").style,Ke={};function Je(e){var t=E.cssProps[e]||Ke[e];return t||(e in ze?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;n--;)if((e=Qe[n]+t)in ze)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var a=oe.exec(t);return a?Math.max(0,a[2]-(n||0))+(a[3]||"px"):t}function at(e,t,n,a,o,r){var i="width"===t?1:0,s=0,l=0;if(n===(a?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(l+=E.css(e,n+re[i],!0,o)),a?("content"===n&&(l-=E.css(e,"padding"+re[i],!0,o)),"margin"!==n&&(l-=E.css(e,"border"+re[i]+"Width",!0,o))):(l+=E.css(e,"padding"+re[i],!0,o),"padding"!==n?l+=E.css(e,"border"+re[i]+"Width",!0,o):s+=E.css(e,"border"+re[i]+"Width",!0,o));return!a&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))||0),l}function ot(e,t,n){var a=He(e),o=(!h.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,a),r=o,i=Ve(e,t,a),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(i)){if(!n)return i;i="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&x(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===E.css(e,"display",!1,a))&&e.getClientRects().length&&(o="border-box"===E.css(e,"boxSizing",!1,a),(r=s in e)&&(i=e[s])),(i=parseFloat(i)||0)+at(e,t,n||(o?"border":"content"),r,a,i)+"px"}function rt(e,t,n,a,o){return new rt.prototype.init(e,t,n,a,o)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,a){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,i,s=z(t),l=Ze.test(t),c=e.style;if(l||(t=Je(s)),i=E.cssHooks[t]||E.cssHooks[s],void 0===n)return i&&"get"in i&&void 0!==(o=i.get(e,!1,a))?o:c[t];"string"===(r=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=ue(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(E.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,a))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,a){var o,r,i,s=z(t);return Ze.test(t)||(t=Je(s)),(i=E.cssHooks[t]||E.cssHooks[s])&&"get"in i&&(o=i.get(e,!0,n)),void 0===o&&(o=Ve(e,t,a)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,a){if(n)return!Xe.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,a):Be(e,et,(function(){return ot(e,t,a)}))},set:function(e,n,a){var o,r=He(e),i=!h.scrollboxSize()&&"absolute"===r.position,s=(i||a)&&"border-box"===E.css(e,"boxSizing",!1,r),l=a?at(e,t,a,s,r):0;return s&&i&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-at(e,t,"border",!1,r)-.5)),l&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),nt(0,n,l)}}})),E.cssHooks.marginLeft=We(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(e,t){E.cssHooks[e+t]={expand:function(n){for(var a=0,o={},r="string"==typeof n?n.split(" "):[n];a<4;a++)o[e+re[a]+t]=r[a]||r[a-2]||r[0];return o}},"margin"!==e&&(E.cssHooks[e+t].set=nt)})),E.fn.extend({css:function(e,t){return G(this,(function(e,t,n){var a,o,r={},i=0;if(Array.isArray(t)){for(a=He(e),o=t.length;i<o;i++)r[t[i]]=E.css(e,t[i],!1,a);return r}return void 0!==n?E.style(e,t,n):E.css(e,t)}),e,t,arguments.length>1)}}),E.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,a,o,r){this.elem=e,this.prop=n,this.easing=o||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=r||(E.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=E.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):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.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=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=rt.prototype.init,E.fx.step={};var it,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===y.hidden&&a.requestAnimationFrame?a.requestAnimationFrame(ut):a.setTimeout(ut,E.fx.interval),E.fx.tick())}function dt(){return a.setTimeout((function(){it=void 0})),it=Date.now()}function ft(e,t){var n,a=0,o={height:e};for(t=t?1:0;a<4;a+=2-t)o["margin"+(n=re[a])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function mt(e,t,n){for(var a,o=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),r=0,i=o.length;r<i;r++)if(a=o[r].call(n,t,e))return a}function pt(e,t,n){var a,o,r=0,i=pt.prefilters.length,s=E.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=it||dt(),n=Math.max(0,c.startTime+c.duration-t),a=1-(n/c.duration||0),r=0,i=c.tweens.length;r<i;r++)c.tweens[r].run(a);return s.notifyWith(e,[c,a,n]),a<1&&i?n:(i||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var a=E.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(a),a},stop:function(t){var n=0,a=t?c.tweens.length:0;if(o)return this;for(o=!0;n<a;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,a,o,r,i;for(n in e)if(o=t[a=z(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==a&&(e[a]=r,delete e[n]),(i=E.cssHooks[a])&&"expand"in i)for(n in r=i.expand(r),delete e[a],r)n in e||(e[n]=r[n],t[n]=o);else t[a]=o}(u,c.opts.specialEasing);r<i;r++)if(a=pt.prefilters[r].call(c,e,u,c.opts))return _(a.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=a.stop.bind(a)),a;return E.map(u,mt,c),_(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){_(e)?(t=e,e=["*"]):e=e.match(U);for(var n,a=0,o=e.length;a<o;a++)n=e[a],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var a,o,r,i,s,l,c,u,d="width"in t||"height"in t,f=this,m={},p=e.style,g=e.nodeType&&ce(e),h=X.get(e,"fxshow");for(a in n.queue||(null==(i=E._queueHooks(e,"fx")).unqueued&&(i.unqueued=0,s=i.empty.fire,i.empty.fire=function(){i.unqueued||s()}),i.unqueued++,f.always((function(){f.always((function(){i.unqueued--,E.queue(e,"fx").length||i.empty.fire()}))}))),t)if(o=t[a],lt.test(o)){if(delete t[a],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!h||void 0===h[a])continue;g=!0}m[a]=h&&h[a]||E.style(e,a)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(m))for(a in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=h&&h.display)&&(c=X.get(e,"display")),"none"===(u=E.css(e,"display"))&&(c?u=c:(me([e],!0),c=e.style.display||c,u=E.css(e,"display"),me([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===E.css(e,"float")&&(l||(f.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,m)l||(h?"hidden"in h&&(g=h.hidden):h=X.access(e,"fxshow",{display:c}),r&&(h.hidden=!g),g&&me([e],!0),f.done((function(){for(a in g||me([e]),X.remove(e,"fxshow"),m)E.style(e,a,m[a])}))),l=mt(g?h[a]:0,a,f),a in h||(h[a]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),E.speed=function(e,t,n){var a=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||_(e)&&e,duration:e,easing:n&&t||t&&!_(t)&&t};return E.fx.off?a.duration=0:"number"!=typeof a.duration&&(a.duration in E.fx.speeds?a.duration=E.fx.speeds[a.duration]:a.duration=E.fx.speeds._default),null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){_(a.old)&&a.old.call(this),a.queue&&E.dequeue(this,a.queue)},a},E.fn.extend({fadeTo:function(e,t,n,a){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,a)},animate:function(e,t,n,a){var o=E.isEmptyObject(e),r=E.speed(t,n,a),i=function(){var t=pt(this,E.extend({},e),r);(o||X.get(this,"finish"))&&t.stop(!0)};return i.finish=i,o||!1===r.queue?this.each(i):this.queue(r.queue,i)},stop:function(e,t,n){var a=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",r=E.timers,i=X.get(this);if(o)i[o]&&i[o].stop&&a(i[o]);else for(o in i)i[o]&&i[o].stop&&ct.test(o)&&a(i[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||E.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),a=n[e+"queue"],o=n[e+"queueHooks"],r=E.timers,i=a?a.length:0;for(n.finish=!0,E.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<i;t++)a[t]&&a[t].finish&&a[t].finish.call(this);delete n.finish}))}}),E.each(["toggle","show","hide"],(function(e,t){var n=E.fn[t];E.fn[t]=function(e,a,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,a,o)}})),E.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){E.fn[e]=function(e,n,a){return this.animate(t,e,n,a)}})),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),it=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){st||(st=!0,ut())},E.fx.stop=function(){st=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(e,t){return e=E.fx&&E.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=a.setTimeout(t,e);n.stop=function(){a.clearTimeout(o)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var gt,ht=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return G(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))}}),E.extend({attr:function(e,t,n){var a,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?E.prop(e,t,n):(1===r&&E.isXMLDoc(e)||(o=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):o&&"set"in o&&void 0!==(a=o.set(e,n,t))?a:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(a=o.get(e,t))?a:null==(a=E.find.attr(e,t))?void 0:a)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&x(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,a=0,o=t&&t.match(U);if(o&&1===e.nodeType)for(;n=o[a++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ht[t]||E.find.attr;ht[t]=function(e,t,a){var o,r,i=t.toLowerCase();return a||(r=ht[i],ht[i]=o,o=null!=n(e,t,a)?i:null,ht[i]=r),o}}));var _t=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function yt(e){return(e.match(U)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(U)||[]}E.fn.extend({prop:function(e,t){return G(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[E.propFix[e]||e]}))}}),E.extend({prop:function(e,t,n){var a,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&E.isXMLDoc(e)||(t=E.propFix[t]||t,o=E.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(a=o.set(e,n,t))?a:e[t]=n:o&&"get"in o&&null!==(a=o.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(E.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)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(e){var t,n,a,o,r,i,s,l=0;if(_(e))return this.each((function(t){E(this).addClass(e.call(this,t,vt(this)))}));if((t=At(e)).length)for(;n=this[l++];)if(o=vt(n),a=1===n.nodeType&&" "+yt(o)+" "){for(i=0;r=t[i++];)a.indexOf(" "+r+" ")<0&&(a+=r+" ");o!==(s=yt(a))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,a,o,r,i,s,l=0;if(_(e))return this.each((function(t){E(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=At(e)).length)for(;n=this[l++];)if(o=vt(n),a=1===n.nodeType&&" "+yt(o)+" "){for(i=0;r=t[i++];)for(;a.indexOf(" "+r+" ")>-1;)a=a.replace(" "+r+" "," ");o!==(s=yt(a))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,a="string"===n||Array.isArray(e);return"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):_(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,o,r,i;if(a)for(o=0,r=E(this),i=At(e);t=i[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,a=0;for(t=" "+e+" ";n=this[a++];)if(1===n.nodeType&&(" "+yt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;E.fn.extend({val:function(e){var t,n,a,o=this[0];return arguments.length?(a=_(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=a?e.call(this,n,E(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=E.map(o,(function(e){return null==e?"":e+""}))),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=E.valHooks[o.type]||E.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(St,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:yt(E.text(e))}},select:{get:function(e){var t,n,a,o=e.options,r=e.selectedIndex,i="select-one"===e.type,s=i?null:[],l=i?r+1:o.length;for(a=r<0?l:i?r:0;a<l;a++)if(((n=o[a]).selected||a===r)&&!n.disabled&&(!n.parentNode.disabled||!x(n.parentNode,"optgroup"))){if(t=E(n).val(),i)return t;s.push(t)}return s},set:function(e,t){for(var n,a,o=e.options,r=E.makeArray(t),i=o.length;i--;)((a=o[i]).selected=E.inArray(E.valHooks.option.get(a),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},h.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in a;var wt=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,o){var r,i,s,l,c,u,d,f,p=[n||y],g=m.call(e,"type")?e.type:e,h=m.call(e,"namespace")?e.namespace.split("."):[];if(i=f=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!wt.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(h=g.split("."),g=h.shift(),h.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[E.expando]?e:new E.Event(g,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),d=E.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!b(n)){for(l=d.delegateType||g,wt.test(l+g)||(i=i.parentNode);i;i=i.parentNode)p.push(i),s=i;s===(n.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||a)}for(r=0;(i=p[r++])&&!e.isPropagationStopped();)f=i,e.type=r>1?l:d.bindType||g,(u=(X.get(i,"events")||Object.create(null))[e.type]&&X.get(i,"handle"))&&u.apply(i,t),(u=c&&i[c])&&u.apply&&K(i)&&(e.result=u.apply(i,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!K(n)||c&&_(n[g])&&!b(n)&&((s=n[c])&&(n[c]=null),E.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,Et),n[g](),e.isPropagationStopped()&&f.removeEventListener(g,Et),E.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var a=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(a,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),h.focusin||E.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var a=this.ownerDocument||this.document||this,o=X.access(a,t);o||a.addEventListener(e,n,!0),X.access(a,t,(o||0)+1)},teardown:function(){var a=this.ownerDocument||this.document||this,o=X.access(a,t)-1;o?X.access(a,t,o):(a.removeEventListener(e,n,!0),X.remove(a,t))}}}));var Ct=a.location,Tt={guid:Date.now()},It=/\?/;E.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+e),t};var kt=/\[\]$/,Dt=/\r?\n/g,xt=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,a){var o;if(Array.isArray(t))E.each(t,(function(t,o){n||kt.test(e)?a(e,o):Pt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,a)}));else if(n||"object"!==S(t))a(e,t);else for(o in t)Pt(e+"["+o+"]",t[o],n,a)}E.param=function(e,t){var n,a=[],o=function(e,t){var n=_(t)?t():t;a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){o(this.name,this.value)}));else for(n in e)Pt(n,e[n],t,o);return a.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Mt.test(this.nodeName)&&!xt.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}})):{name:t.name,value:n.replace(Dt,"\r\n")}})).get()}});var Ot=/%20/g,Rt=/#.*$/,Nt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,Ut=/^\/\//,jt={},Ft={},qt="*/".concat("*"),Yt=y.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var a,o=0,r=t.toLowerCase().match(U)||[];if(_(n))for(;a=r[o++];)"+"===a[0]?(a=a.slice(1)||"*",(e[a]=e[a]||[]).unshift(n)):(e[a]=e[a]||[]).push(n)}}function Bt(e,t,n,a){var o={},r=e===Ft;function i(s){var l;return o[s]=!0,E.each(e[s]||[],(function(e,s){var c=s(t,n,a);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)})),l}return i(t.dataTypes[0])||!o["*"]&&i("*")}function Gt(e,t){var n,a,o=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:a||(a={}))[n]=t[n]);return a&&E.extend(!0,e,a),e}Yt.href=Ct.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,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":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,E.ajaxSettings),t):Gt(E.ajaxSettings,e)},ajaxPrefilter:Ht(jt),ajaxTransport:Ht(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o,r,i,s,l,c,u,d,f,m=E.ajaxSetup({},t),p=m.context||m,g=m.context&&(p.nodeType||p.jquery)?E(p):E.event,h=E.Deferred(),_=E.Callbacks("once memory"),b=m.statusCode||{},v={},A={},S="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(c){if(!i)for(i={};t=Lt.exec(r);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(e,t){return null==c&&(e=A[e.toLowerCase()]=A[e.toLowerCase()]||e,v[e]=t),this},overrideMimeType:function(e){return null==c&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)w.always(e[w.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),C(0,t),this}};if(h.promise(w),m.url=((e||m.url||Ct.href)+"").replace(Ut,Ct.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(U)||[""],null==m.crossDomain){l=y.createElement("a");try{l.href=m.url,l.href=l.href,m.crossDomain=Yt.protocol+"//"+Yt.host!=l.protocol+"//"+l.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=E.param(m.data,m.traditional)),Bt(jt,m,t,w),c)return w;for(d in(u=E.event&&m.global)&&0==E.active++&&E.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!$t.test(m.type),o=m.url.replace(Rt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Ot,"+")):(f=m.url.slice(o.length),m.data&&(m.processData||"string"==typeof m.data)&&(o+=(It.test(o)?"&":"?")+m.data,delete m.data),!1===m.cache&&(o=o.replace(Nt,"$1"),f=(It.test(o)?"&":"?")+"_="+Tt.guid+++f),m.url=o+f),m.ifModified&&(E.lastModified[o]&&w.setRequestHeader("If-Modified-Since",E.lastModified[o]),E.etag[o]&&w.setRequestHeader("If-None-Match",E.etag[o])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+qt+"; q=0.01":""):m.accepts["*"]),m.headers)w.setRequestHeader(d,m.headers[d]);if(m.beforeSend&&(!1===m.beforeSend.call(p,w,m)||c))return w.abort();if(S="abort",_.add(m.complete),w.done(m.success),w.fail(m.error),n=Bt(Ft,m,t,w)){if(w.readyState=1,u&&g.trigger("ajaxSend",[w,m]),c)return w;m.async&&m.timeout>0&&(s=a.setTimeout((function(){w.abort("timeout")}),m.timeout));try{c=!1,n.send(v,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,i,l){var d,f,y,v,A,S=t;c||(c=!0,s&&a.clearTimeout(s),n=void 0,r=l||"",w.readyState=e>0?4:0,d=e>=200&&e<300||304===e,i&&(v=function(e,t,n){for(var a,o,r,i,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(o in s)if(s[o]&&s[o].test(a)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}i||(i=o)}r=r||i}if(r)return r!==l[0]&&l.unshift(r),n[r]}(m,w,i)),!d&&E.inArray("script",m.dataTypes)>-1&&(m.converters["text script"]=function(){}),v=function(e,t,n,a){var o,r,i,s,l,c={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(i=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(i=c[l+" "+s[0]]||c["* "+s[0]])){!0===i?i=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(m,v,w,d),d?(m.ifModified&&((A=w.getResponseHeader("Last-Modified"))&&(E.lastModified[o]=A),(A=w.getResponseHeader("etag"))&&(E.etag[o]=A)),204===e||"HEAD"===m.type?S="nocontent":304===e?S="notmodified":(S=v.state,f=v.data,d=!(y=v.error))):(y=S,!e&&S||(S="error",e<0&&(e=0))),w.status=e,w.statusText=(t||S)+"",d?h.resolveWith(p,[f,S,w]):h.rejectWith(p,[w,S,y]),w.statusCode(b),b=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[w,m,d?f:y]),_.fireWith(p,[w,S]),u&&(g.trigger("ajaxComplete",[w,m]),--E.active||E.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],(function(e,t){E[t]=function(e,n,a,o){return _(n)&&(o=o||a,a=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:o,data:n,success:a},E.isPlainObject(e)&&e))}})),E.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(_(e)&&(e=e.call(this[0])),t=E(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 _(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=_(e);return this.each((function(n){E(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Wt=E.ajaxSettings.xhr();h.cors=!!Wt&&"withCredentials"in Wt,h.ajax=Wt=!!Wt,E.ajaxTransport((function(e){var t,n;if(h.cors||Wt&&!e.crossDomain)return{send:function(o,r){var i,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];for(i in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(i,o[i]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Vt[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(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&a.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),E.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),E.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 E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),E.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(a,o){t=E("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Qt,zt=[],Kt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||E.expando+"_"+Tt.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",(function(e,t,n){var o,r,i,s=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=_(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Kt,"$1"+o):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||E.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=a[o],a[o]=function(){i=arguments},n.always((function(){void 0===r?E(a).removeProp(o):a[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,zt.push(o)),i&&_(r)&&r(i[0]),i=r=void 0})),"script"})),h.createHTMLDocument=((Qt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Qt.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((a=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(a)):t=y),r=!n&&[],(o=M.exec(e))?[t.createElement(o[1])]:(o=we([e],t,r),r&&r.length&&E(r).remove(),E.merge([],o.childNodes)));var a,o,r},E.fn.load=function(e,t,n){var a,o,r,i=this,s=e.indexOf(" ");return s>-1&&(a=yt(e.slice(s)),e=e.slice(0,s)),_(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),i.length>0&&E.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){r=arguments,i.html(a?E("<div>").append(E.parseHTML(e)).find(a):e)})).always(n&&function(e,t){i.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,(function(t){return e===t.elem})).length},E.offset={setOffset:function(e,t,n){var a,o,r,i,s,l,c=E.css(e,"position"),u=E(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),r=E.css(e,"top"),l=E.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(i=(a=u.position()).top,o=a.left):(i=parseFloat(r)||0,o=parseFloat(l)||0),_(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(d.top=t.top-s.top+i),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){E.offset.setOffset(this,e,t)}));var t,n,a=this[0];return a?a.getClientRects().length?(t=a.getBoundingClientRect(),n=a.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,a=this[0],o={top:0,left:0};if("fixed"===E.css(a,"position"))t=a.getBoundingClientRect();else{for(t=this.offset(),n=a.ownerDocument,e=a.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==a&&1===e.nodeType&&((o=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),o.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-E.css(a,"marginTop",!0),left:t.left-o.left-E.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||ie}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;E.fn[e]=function(a){return G(this,(function(e,a,o){var r;if(b(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[a];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[a]=o}),e,a,arguments.length)}})),E.each(["top","left"],(function(e,t){E.cssHooks[t]=We(h.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),Ye.test(n)?E(e).position()[t]+"px":n}))})),E.each({Height:"height",Width:"width"},(function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,a){E.fn[a]=function(o,r){var i=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return G(this,(function(t,n,o){var r;return b(t)?0===a.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?E.css(t,n,s):E.style(t,n,o,s)}),t,i?o:void 0,i)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){E.fn[t]=function(e){return this.on(t,e)}})),E.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,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Jt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,a,o;if("string"==typeof t&&(n=e[t],t=e,e=n),_(e))return a=s.call(arguments,2),(o=function(){return e.apply(t||this,a.concat(s.call(arguments)))}).guid=e.guid=e.guid||E.guid++,o},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=x,E.isFunction=_,E.isWindow=b,E.camelCase=z,E.type=S,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(Jt,"")},void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n);var Xt=a.jQuery,Zt=a.$;return E.noConflict=function(e){return a.$===E&&(a.$=Zt),e&&a.jQuery===E&&(a.jQuery=Xt),E},void 0===o&&(a.jQuery=a.$=E),E}))},"./node_modules/jssip/lib-es5/Config.js":(e,t,n)=>{"use strict";function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var r=n("./node_modules/jssip/lib-es5/Utils.js"),i=n("./node_modules/jssip/lib-es5/Constants.js"),s=n("./node_modules/jssip/lib-es5/Grammar.js"),l=n("./node_modules/jssip/lib-es5/URI.js"),c=n("./node_modules/jssip/lib-es5/Socket.js"),u=n("./node_modules/jssip/lib-es5/Exceptions.js");t.settings={authorization_user:null,password:null,realm:null,ha1:null,authorization_jwt:null,display_name:null,uri:null,contact_uri:null,instance_id:null,use_preloaded_route:!1,session_timers:!0,session_timers_refresh_method:i.UPDATE,session_timers_force_refresher:!1,no_answer_timeout:60,register:!0,register_expires:600,registrar_server:null,sockets:null,connection_recovery_max_interval:i.CONNECTION_RECOVERY_MAX_INTERVAL,connection_recovery_min_interval:i.CONNECTION_RECOVERY_MIN_INTERVAL,via_host:"".concat(r.createRandomToken(12),".invalid")};var d={mandatory:{sockets:function(e){var t=[];if(c.isSocket(e))t.push({socket:e});else{if(!Array.isArray(e)||!e.length)return;var n,o=a(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;Object.prototype.hasOwnProperty.call(r,"socket")&&c.isSocket(r.socket)?t.push(r):c.isSocket(r)&&t.push({socket:r})}}catch(e){o.e(e)}finally{o.f()}}return t},uri:function(e){/^sip:/i.test(e)||(e="".concat(i.SIP,":").concat(e));var t=l.parse(e);return t&&t.user?t:void 0}},optional:{authorization_user:function(e){return-1===s.parse('"'.concat(e,'"'),"quoted_string")?void 0:e},authorization_jwt:function(e){if("string"==typeof e)return e},user_agent:function(e){if("string"==typeof e)return e},connection_recovery_max_interval:function(e){if(r.isDecimal(e)){var t=Number(e);if(t>0)return t}},connection_recovery_min_interval:function(e){if(r.isDecimal(e)){var t=Number(e);if(t>0)return t}},contact_uri:function(e){if("string"==typeof e){var t=s.parse(e,"SIP_URI");if(-1!==t)return t}},display_name:function(e){return e},instance_id:function(e){return/^uuid:/i.test(e)&&(e=e.substr(5)),-1===s.parse(e,"uuid")?void 0:e},no_answer_timeout:function(e){if(r.isDecimal(e)){var t=Number(e);if(t>0)return t}},session_timers:function(e){if("boolean"==typeof e)return e},session_timers_refresh_method:function(e){if("string"==typeof e&&((e=e.toUpperCase())===i.INVITE||e===i.UPDATE))return e},session_timers_force_refresher:function(e){if("boolean"==typeof e)return e},password:function(e){return String(e)},realm:function(e){return String(e)},ha1:function(e){return String(e)},register:function(e){if("boolean"==typeof e)return e},register_expires:function(e){if(r.isDecimal(e)){var t=Number(e);if(t>0)return t}},registrar_server:function(e){/^sip:/i.test(e)||(e="".concat(i.SIP,":").concat(e));var t=l.parse(e);return t?t.user?void 0:t:void 0},use_preloaded_route:function(e){if("boolean"==typeof e)return e}}};t.load=function(e,t){for(var n in d.mandatory){if(!t.hasOwnProperty(n))throw new u.ConfigurationError(n);var a=t[n],o=d.mandatory[n](a);if(void 0===o)throw new u.ConfigurationError(n,a);e[n]=o}for(var i in d.optional)if(t.hasOwnProperty(i)){var s=t[i];if(r.isEmpty(s))continue;var l=d.optional[i](s);if(void 0===l)throw new u.ConfigurationError(i,s);e[i]=l}}},"./node_modules/jssip/lib-es5/Constants.js":(e,t,n)=>{"use strict";var a=n("./node_modules/jssip/package.json");e.exports={USER_AGENT:"".concat(a.title," ").concat(a.version),SIP:"sip",SIPS:"sips",causes:{CONNECTION_ERROR:"Connection Error",REQUEST_TIMEOUT:"Request Timeout",SIP_FAILURE_CODE:"SIP Failure Code",INTERNAL_ERROR:"Internal Error",BUSY:"Busy",REJECTED:"Rejected",REDIRECTED:"Redirected",UNAVAILABLE:"Unavailable",NOT_FOUND:"Not Found",ADDRESS_INCOMPLETE:"Address Incomplete",INCOMPATIBLE_SDP:"Incompatible SDP",MISSING_SDP:"Missing SDP",AUTHENTICATION_ERROR:"Authentication Error",BYE:"Terminated",WEBRTC_ERROR:"WebRTC Error",CANCELED:"Canceled",NO_ANSWER:"No Answer",EXPIRES:"Expires",NO_ACK:"No ACK",DIALOG_ERROR:"Dialog Error",USER_DENIED_MEDIA_ACCESS:"User Denied Media Access",BAD_MEDIA_DESCRIPTION:"Bad Media Description",RTP_TIMEOUT:"RTP Timeout"},SIP_ERROR_CAUSES:{REDIRECTED:[300,301,302,305,380],BUSY:[486,600],REJECTED:[403,603],NOT_FOUND:[404,604],UNAVAILABLE:[480,410,408,430],ADDRESS_INCOMPLETE:[484,424],INCOMPATIBLE_SDP:[488,606],AUTHENTICATION_ERROR:[401,407]},ACK:"ACK",BYE:"BYE",CANCEL:"CANCEL",INFO:"INFO",INVITE:"INVITE",MESSAGE:"MESSAGE",NOTIFY:"NOTIFY",OPTIONS:"OPTIONS",REGISTER:"REGISTER",REFER:"REFER",UPDATE:"UPDATE",SUBSCRIBE:"SUBSCRIBE",DTMF_TRANSPORT:{INFO:"INFO",RFC2833:"RFC2833"},REASON_PHRASE:{100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",424:"Bad Location Information",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"JsSIP Internal Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"},ALLOWED_METHODS:"INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY",ACCEPTED_BODY_TYPES:"application/sdp, application/dtmf-relay",MAX_FORWARDS:69,SESSION_EXPIRES:90,MIN_SESSION_EXPIRES:60,CONNECTION_RECOVERY_MAX_INTERVAL:30,CONNECTION_RECOVERY_MIN_INTERVAL:2}},"./node_modules/jssip/lib-es5/Dialog.js":(e,t,n)=>{"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var i=n("./node_modules/jssip/lib-es5/SIPMessage.js"),s=n("./node_modules/jssip/lib-es5/Constants.js"),l=n("./node_modules/jssip/lib-es5/Transactions.js"),c=n("./node_modules/jssip/lib-es5/Dialog/RequestSender.js"),u=n("./node_modules/jssip/lib-es5/Utils.js"),d=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:Dialog"),f={STATUS_EARLY:1,STATUS_CONFIRMED:2};e.exports=function(){function e(t,n,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.STATUS_CONFIRMED;if(a(this,e),this._owner=t,this._ua=t._ua,this._uac_pending_reply=!1,this._uas_pending_reply=!1,!n.hasHeader("contact"))return{error:"unable to create a Dialog without Contact header field"};n instanceof i.IncomingResponse&&(r=n.status_code<200?f.STATUS_EARLY:f.STATUS_CONFIRMED);var s=n.parseHeader("contact");"UAS"===o?(this._id={call_id:n.call_id,local_tag:n.to_tag,remote_tag:n.from_tag,toString:function(){return this.call_id+this.local_tag+this.remote_tag}},this._state=r,this._remote_seqnum=n.cseq,this._local_uri=n.parseHeader("to").uri,this._remote_uri=n.parseHeader("from").uri,this._remote_target=s.uri,this._route_set=n.getHeaders("record-route"),this._ack_seqnum=this._remote_seqnum):"UAC"===o&&(this._id={call_id:n.call_id,local_tag:n.from_tag,remote_tag:n.to_tag,toString:function(){return this.call_id+this.local_tag+this.remote_tag}},this._state=r,this._local_seqnum=n.cseq,this._local_uri=n.parseHeader("from").uri,this._remote_uri=n.parseHeader("to").uri,this._remote_target=s.uri,this._route_set=n.getHeaders("record-route").reverse(),this._ack_seqnum=null),this._ua.newDialog(this),d("new ".concat(o," dialog created with status ").concat(this._state===f.STATUS_EARLY?"EARLY":"CONFIRMED"))}return r(e,null,[{key:"C",get:function(){return f}}]),r(e,[{key:"update",value:function(e,t){this._state=f.STATUS_CONFIRMED,d("dialog ".concat(this._id.toString(),"  changed to CONFIRMED state")),"UAC"===t&&(this._route_set=e.getHeaders("record-route").reverse())}},{key:"terminate",value:function(){d("dialog ".concat(this._id.toString()," deleted")),this._ua.destroyDialog(this)}},{key:"sendRequest",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=u.cloneArray(n.extraHeaders),o=u.cloneObject(n.eventHandlers),r=n.body||null,i=this._createRequest(e,a,r);o.onAuthenticated=function(){t._local_seqnum+=1};var s=new c(this,i,o);return s.send(),i}},{key:"receiveRequest",value:function(e){this._checkInDialogRequest(e)&&(e.method===s.ACK&&null!==this._ack_seqnum?this._ack_seqnum=null:e.method===s.INVITE&&(this._ack_seqnum=e.cseq),this._owner.receiveRequest(e))}},{key:"_createRequest",value:function(e,t,n){t=u.cloneArray(t),this._local_seqnum||(this._local_seqnum=Math.floor(1e4*Math.random()));var a=e===s.CANCEL||e===s.ACK?this._local_seqnum:this._local_seqnum+=1;return new i.OutgoingRequest(e,this._remote_target,this._ua,{cseq:a,call_id:this._id.call_id,from_uri:this._local_uri,from_tag:this._id.local_tag,to_uri:this._remote_uri,to_tag:this._id.remote_tag,route_set:this._route_set},t,n)}},{key:"_checkInDialogRequest",value:function(e){var t=this;if(this._remote_seqnum)if(e.cseq<this._remote_seqnum){if(e.method!==s.ACK)return e.reply(500),!1;if(null===this._ack_seqnum||e.cseq!==this._ack_seqnum)return!1}else e.cseq>this._remote_seqnum&&(this._remote_seqnum=e.cseq);else this._remote_seqnum=e.cseq;if(e.method===s.INVITE||e.method===s.UPDATE&&e.body){if(!0===this._uac_pending_reply)e.reply(491);else{if(!0===this._uas_pending_reply){var n=1+(10*Math.random()|0);return e.reply(500,null,["Retry-After:".concat(n)]),!1}this._uas_pending_reply=!0;e.server_transaction.on("stateChanged",(function n(){e.server_transaction.state!==l.C.STATUS_ACCEPTED&&e.server_transaction.state!==l.C.STATUS_COMPLETED&&e.server_transaction.state!==l.C.STATUS_TERMINATED||(e.server_transaction.removeListener("stateChanged",n),t._uas_pending_reply=!1)}))}e.hasHeader("contact")&&e.server_transaction.on("stateChanged",(function(){e.server_transaction.state===l.C.STATUS_ACCEPTED&&(t._remote_target=e.parseHeader("contact").uri)}))}else e.method===s.NOTIFY&&e.hasHeader("contact")&&e.server_transaction.on("stateChanged",(function(){e.server_transaction.state===l.C.STATUS_COMPLETED&&(t._remote_target=e.parseHeader("contact").uri)}));return!0}},{key:"id",get:function(){return this._id}},{key:"local_seqnum",get:function(){return this._local_seqnum},set:function(e){this._local_seqnum=e}},{key:"owner",get:function(){return this._owner}},{key:"uac_pending_reply",get:function(){return this._uac_pending_reply},set:function(e){this._uac_pending_reply=e}},{key:"uas_pending_reply",get:function(){return this._uas_pending_reply}}]),e}()},"./node_modules/jssip/lib-es5/Dialog/RequestSender.js":(e,t,n)=>{"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n("./node_modules/jssip/lib-es5/Constants.js"),r=n("./node_modules/jssip/lib-es5/Transactions.js"),i=n("./node_modules/jssip/lib-es5/RTCSession.js"),s=n("./node_modules/jssip/lib-es5/RequestSender.js"),l={onRequestTimeout:function(){},onTransportError:function(){},onSuccessResponse:function(){},onErrorResponse:function(){},onAuthenticated:function(){},onDialogError:function(){}};e.exports=function(){function e(t,n,a){for(var o in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dialog=t,this._ua=t._ua,this._request=n,this._eventHandlers=a,this._reattempt=!1,this._reattemptTimer=null,l)Object.prototype.hasOwnProperty.call(l,o)&&(this._eventHandlers[o]||(this._eventHandlers[o]=l[o]))}var t,n,c;return t=e,(n=[{key:"send",value:function(){var e=this,t=new s(this._ua,this._request,{onRequestTimeout:function(){e._eventHandlers.onRequestTimeout()},onTransportError:function(){e._eventHandlers.onTransportError()},onAuthenticated:function(t){e._eventHandlers.onAuthenticated(t)},onReceiveResponse:function(t){e._receiveResponse(t)}});t.send(),(this._request.method===o.INVITE||this._request.method===o.UPDATE&&this._request.body)&&t.clientTransaction.state!==r.C.STATUS_TERMINATED&&(this._dialog.uac_pending_reply=!0,t.clientTransaction.on("stateChanged",(function n(){t.clientTransaction.state!==r.C.STATUS_ACCEPTED&&t.clientTransaction.state!==r.C.STATUS_COMPLETED&&t.clientTransaction.state!==r.C.STATUS_TERMINATED||(t.clientTransaction.removeListener("stateChanged",n),e._dialog.uac_pending_reply=!1)})))}},{key:"_receiveResponse",value:function(e){var t=this;408===e.status_code||481===e.status_code?this._eventHandlers.onDialogError(e):e.method===o.INVITE&&491===e.status_code?this._reattempt?e.status_code>=200&&e.status_code<300?this._eventHandlers.onSuccessResponse(e):e.status_code>=300&&this._eventHandlers.onErrorResponse(e):(this._request.cseq=this._dialog.local_seqnum+=1,this._reattemptTimer=setTimeout((function(){t._dialog.owner.status!==i.C.STATUS_TERMINATED&&(t._reattempt=!0,t._request_sender.send())}),1e3)):e.status_code>=200&&e.status_code<300?this._eventHandlers.onSuccessResponse(e):e.status_code>=300&&this._eventHandlers.onErrorResponse(e)}},{key:"request",get:function(){return this._request}}])&&a(t.prototype,n),c&&a(t,c),e}()},"./node_modules/jssip/lib-es5/DigestAuthentication.js":(e,t,n)=>{"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n("./node_modules/jssip/lib-es5/Utils.js"),r=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:DigestAuthentication"),i=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:DigestAuthentication");i.log=console.warn.bind(console),e.exports=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._credentials=t,this._cnonce=null,this._nc=0,this._ncHex="00000000",this._algorithm=null,this._realm=null,this._nonce=null,this._opaque=null,this._stale=null,this._qop=null,this._method=null,this._uri=null,this._ha1=null,this._response=null}var t,n,s;return t=e,(n=[{key:"get",value:function(e){switch(e){case"realm":return this._realm;case"ha1":return this._ha1;default:return void i('get() | cannot get "%s" parameter',e)}}},{key:"authenticate",value:function(e,t){var n=e.method,a=e.ruri,s=e.body,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this._algorithm=t.algorithm,this._realm=t.realm,this._nonce=t.nonce,this._opaque=t.opaque,this._stale=t.stale,this._algorithm){if("MD5"!==this._algorithm)return i('authenticate() | challenge with Digest algorithm different than "MD5", authentication aborted'),!1}else this._algorithm="MD5";if(!this._nonce)return i("authenticate() | challenge without Digest nonce, authentication aborted"),!1;if(!this._realm)return i("authenticate() | challenge without Digest realm, authentication aborted"),!1;if(!this._credentials.password){if(!this._credentials.ha1)return i("authenticate() | no plain SIP password nor ha1 provided, authentication aborted"),!1;if(this._credentials.realm!==this._realm)return i('authenticate() | no plain SIP password, and stored `realm` does not match the given `realm`, cannot authenticate [stored:"%s", given:"%s"]',this._credentials.realm,this._realm),!1}if(t.qop)if(t.qop.indexOf("auth-int")>-1)this._qop="auth-int";else{if(!(t.qop.indexOf("auth")>-1))return i('authenticate() | challenge without Digest qop different than "auth" or "auth-int", authentication aborted'),!1;this._qop="auth"}else this._qop=null;this._method=n,this._uri=a,this._cnonce=l||o.createRandomToken(12),this._nc+=1;var c,u,d=Number(this._nc).toString(16);return this._ncHex="00000000".substr(0,8-d.length)+d,4294967296===this._nc&&(this._nc=1,this._ncHex="00000001"),this._credentials.password?this._ha1=o.calculateMD5("".concat(this._credentials.username,":").concat(this._realm,":").concat(this._credentials.password)):this._ha1=this._credentials.ha1,"auth"===this._qop?(c="".concat(this._method,":").concat(this._uri),u=o.calculateMD5(c),r('authenticate() | using qop=auth [a2:"%s"]',c),this._response=o.calculateMD5("".concat(this._ha1,":").concat(this._nonce,":").concat(this._ncHex,":").concat(this._cnonce,":auth:").concat(u))):"auth-int"===this._qop?(c="".concat(this._method,":").concat(this._uri,":").concat(o.calculateMD5(s||"")),u=o.calculateMD5(c),r('authenticate() | using qop=auth-int [a2:"%s"]',c),this._response=o.calculateMD5("".concat(this._ha1,":").concat(this._nonce,":").concat(this._ncHex,":").concat(this._cnonce,":auth-int:").concat(u))):null===this._qop&&(c="".concat(this._method,":").concat(this._uri),u=o.calculateMD5(c),r('authenticate() | using qop=null [a2:"%s"]',c),this._response=o.calculateMD5("".concat(this._ha1,":").concat(this._nonce,":").concat(u))),r("authenticate() | response generated"),!0}},{key:"toString",value:function(){var e=[];if(!this._response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm=".concat(this._algorithm)),e.push('username="'.concat(this._credentials.username,'"')),e.push('realm="'.concat(this._realm,'"')),e.push('nonce="'.concat(this._nonce,'"')),e.push('uri="'.concat(this._uri,'"')),e.push('response="'.concat(this._response,'"')),this._opaque&&e.push('opaque="'.concat(this._opaque,'"')),this._qop&&(e.push("qop=".concat(this._qop)),e.push('cnonce="'.concat(this._cnonce,'"')),e.push("nc=".concat(this._ncHex))),"Digest ".concat(e.join(", "))}}])&&a(t.prototype,n),s&&a(t,s),e}()},"./node_modules/jssip/lib-es5/Exceptions.js":e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function o(e){var t=l();return function(){var n,a=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return r(this,n)}}function r(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return s(e,arguments,u(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),c(a,e)})(e)}function s(e,t,n){return(s=l()?Reflect.construct:function(e,t,n){var a=[null];a.push.apply(a,t);var o=new(Function.bind.apply(e,a));return n&&c(o,n.prototype),o}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){a(r,e);var t=o(r);function r(e,a){var o;return n(this,r),(o=t.call(this)).code=1,o.name="CONFIGURATION_ERROR",o.parameter=e,o.value=a,o.message=o.value?"Invalid value ".concat(JSON.stringify(o.value),' for parameter "').concat(o.parameter,'"'):"Missing parameter: ".concat(o.parameter),o}return r}(i(Error)),f=function(e){a(r,e);var t=o(r);function r(e){var a;return n(this,r),(a=t.call(this)).code=2,a.name="INVALID_STATE_ERROR",a.status=e,a.message="Invalid status: ".concat(e),a}return r}(i(Error)),m=function(e){a(r,e);var t=o(r);function r(e){var a;return n(this,r),(a=t.call(this)).code=3,a.name="NOT_SUPPORTED_ERROR",a.message=e,a}return r}(i(Error)),p=function(e){a(r,e);var t=o(r);function r(e){var a;return n(this,r),(a=t.call(this)).code=4,a.name="NOT_READY_ERROR",a.message=e,a}return r}(i(Error));e.exports={ConfigurationError:d,InvalidStateError:f,NotSupportedError:m,NotReadyError:p}},"./node_modules/jssip/lib-es5/Grammar.js":(e,t,n)=>{"use strict";e.exports=function(){function e(e){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-\x1F\x80-\uFFFF]/g,escape)+'"'}var t={parse:function(t,a){var o={CRLF:c,DIGIT:u,ALPHA:d,HEXDIG:f,WSP:m,OCTET:p,DQUOTE:g,SP:h,HTAB:_,alphanum:b,reserved:y,unreserved:v,mark:A,escaped:S,LWS:w,SWS:E,HCOLON:C,TEXT_UTF8_TRIM:T,TEXT_UTF8char:I,UTF8_NONASCII:k,UTF8_CONT:D,LHEX:function(){var e;null===(e=u())&&(/^[a-f]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[a-f]")));return e},token:x,token_nodot:M,separators:function(){var e;40===t.charCodeAt(r)?(e="(",r++):(e=null,l('"("'));null===e&&(41===t.charCodeAt(r)?(e=")",r++):(e=null,l('")"')),null===e&&(60===t.charCodeAt(r)?(e="<",r++):(e=null,l('"<"')),null===e&&(62===t.charCodeAt(r)?(e=">",r++):(e=null,l('">"')),null===e&&(64===t.charCodeAt(r)?(e="@",r++):(e=null,l('"@"')),null===e&&(44===t.charCodeAt(r)?(e=",",r++):(e=null,l('","')),null===e&&(59===t.charCodeAt(r)?(e=";",r++):(e=null,l('";"')),null===e&&(58===t.charCodeAt(r)?(e=":",r++):(e=null,l('":"')),null===e&&(92===t.charCodeAt(r)?(e="\\",r++):(e=null,l('"\\\\"')),null===e&&null===(e=g())&&(47===t.charCodeAt(r)?(e="/",r++):(e=null,l('"/"')),null===e&&(91===t.charCodeAt(r)?(e="[",r++):(e=null,l('"["')),null===e&&(93===t.charCodeAt(r)?(e="]",r++):(e=null,l('"]"')),null===e&&(63===t.charCodeAt(r)?(e="?",r++):(e=null,l('"?"')),null===e&&(61===t.charCodeAt(r)?(e="=",r++):(e=null,l('"="')),null===e&&(123===t.charCodeAt(r)?(e="{",r++):(e=null,l('"{"')),null===e&&(125===t.charCodeAt(r)?(e="}",r++):(e=null,l('"}"')),null===e&&null===(e=h())&&(e=_()))))))))))))))));return e},word:P,STAR:O,SLASH:R,EQUAL:N,LPAREN:L,RPAREN:$,RAQUOT:U,LAQUOT:j,COMMA:F,SEMI:q,COLON:Y,LDQUOT:H,RDQUOT:B,comment:function e(){var t,n,a,o;if(o=r,null!==(t=L())){for(n=[],null===(a=G())&&null===(a=z())&&(a=e());null!==a;)n.push(a),null===(a=G())&&null===(a=z())&&(a=e());null!==n&&null!==(a=$())?t=[t,n,a]:(t=null,r=o)}else t=null,r=o;return t},ctext:G,quoted_string:V,quoted_string_clean:W,qdtext:Q,quoted_pair:z,SIP_URI_noparams:K,SIP_URI:J,uri_scheme:X,uri_scheme_sips:Z,uri_scheme_sip:ee,userinfo:te,user:ne,user_unreserved:ae,password:oe,hostport:re,host:ie,hostname:se,domainlabel:le,toplabel:ce,IPv6reference:ue,IPv6address:de,h16:fe,ls32:me,IPv4address:pe,dec_octet:ge,port:he,uri_parameters:_e,uri_parameter:be,transport_param:ye,user_param:ve,method_param:Ae,ttl_param:Se,maddr_param:we,lr_param:Ee,other_param:Ce,pname:Te,pvalue:Ie,paramchar:ke,param_unreserved:De,headers:xe,header:Me,hname:Pe,hvalue:Oe,hnv_unreserved:Re,Request_Response:function(){var e;null===(e=ut())&&(e=Ne());return e},Request_Line:Ne,Request_URI:Le,absoluteURI:$e,hier_part:Ue,net_path:je,abs_path:Fe,opaque_part:qe,uric:Ye,uric_no_slash:He,path_segments:Be,segment:Ge,param:Ve,pchar:We,scheme:Qe,authority:ze,srvr:Ke,reg_name:Je,query:Xe,SIP_Version:Ze,INVITEm:et,ACKm:tt,OPTIONSm:nt,BYEm:at,CANCELm:ot,REGISTERm:rt,SUBSCRIBEm:it,NOTIFYm:st,REFERm:lt,Method:ct,Status_Line:ut,Status_Code:dt,extension_code:ft,Reason_Phrase:mt,Allow_Events:function(){var e,t,n,a,o,i;if(o=r,null!==(e=$t())){for(t=[],i=r,null!==(n=F())&&null!==(a=$t())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=F())&&null!==(a=$t())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},Call_ID:function(){var e,n,a,o,i,s;o=r,i=r,null!==(e=P())?(s=r,64===t.charCodeAt(r)?(n="@",r++):(n=null,l('"@"')),null!==n&&null!==(a=P())?n=[n,a]:(n=null,r=s),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=i)):(e=null,r=i);null!==e&&(e=function(e){Fn=t.substring(r,e)}(o));null===e&&(r=o);return e},Contact:function(){var e,t,n,a,o,i,s;if(o=r,null===(e=O()))if(i=r,null!==(e=pt())){for(t=[],s=r,null!==(n=F())&&null!==(a=pt())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=F())&&null!==(a=pt())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;null!==e&&(e=function(e){var t,n;for(n=Fn.multi_header.length,t=0;t<n;t++)if(null===Fn.multi_header[t].parsed){Fn=null;break}Fn=null!==Fn?Fn.multi_header:-1}());null===e&&(r=o);return e},contact_param:pt,name_addr:gt,display_name:ht,contact_params:_t,c_p_q:bt,c_p_expires:yt,delta_seconds:vt,qvalue:At,generic_param:St,gen_value:wt,Content_Disposition:function(){var e,t,n,a,o,i;if(o=r,null!==(e=Et())){for(t=[],i=r,null!==(n=q())&&null!==(a=Ct())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=q())&&null!==(a=Ct())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},disp_type:Et,disp_param:Ct,handling_param:Tt,Content_Encoding:function(){var e,t,n,a,o,i;if(o=r,null!==(e=x())){for(t=[],i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},Content_Length:function(){var e,t,n;if(n=r,null!==(t=u()))for(e=[];null!==t;)e.push(t),t=u();else e=null;null!==e&&(e=void(Fn=parseInt(e.join(""))));null===e&&(r=n);return e},Content_Type:function(){var e,n;n=r,null!==(e=It())&&(e=function(e){Fn=t.substring(r,e)}(n));null===e&&(r=n);return e},media_type:It,m_type:kt,discrete_type:Dt,composite_type:xt,extension_token:Mt,x_token:Pt,m_subtype:Ot,m_parameter:Rt,m_value:Nt,CSeq:function(){var e,t,n,a;a=r,null!==(e=Lt())&&null!==(t=w())&&null!==(n=ct())?e=[e,t,n]:(e=null,r=a);return e},CSeq_value:Lt,Expires:function(){var e,t;t=r,null!==(e=vt())&&(e=void(Fn=e));null===e&&(r=t);return e},Event:function(){var e,t,n,a,o,i,s;if(o=r,i=r,null!==(e=$t())){for(t=[],s=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;null!==e&&(l=e[0],e=void(Fn.event=l.join("").toLowerCase()));var l;null===e&&(r=o);return e},event_type:$t,From:function(){var e,t,n,a,o,i,s;o=r,i=r,null===(e=K())&&(e=gt());if(null!==e){for(t=[],s=r,null!==(n=q())&&null!==(a=Ut())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=q())&&null!==(a=Ut())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;null!==e&&(e=function(e){var t=Fn.tag;try{Fn=new jn(Fn.uri,Fn.display_name,Fn.params),t&&Fn.setParam("tag",t)}catch(e){Fn=-1}}());null===e&&(r=o);return e},from_param:Ut,tag_param:jt,Max_Forwards:function(){var e,t,n;if(n=r,null!==(t=u()))for(e=[];null!==t;)e.push(t),t=u();else e=null;null!==e&&(e=void(Fn=parseInt(e.join(""))));null===e&&(r=n);return e},Min_Expires:function(){var e,t;t=r,null!==(e=vt())&&(e=void(Fn=e));null===e&&(r=t);return e},Name_Addr_Header:function(){var e,t,n,a,o,i,s,l,c,u;l=r,c=r,e=[],t=ht();for(;null!==t;)e.push(t),t=ht();if(null!==e)if(null!==(t=j()))if(null!==(n=J()))if(null!==(a=U())){for(o=[],u=r,null!==(i=q())&&null!==(s=St())?i=[i,s]:(i=null,r=u);null!==i;)o.push(i),u=r,null!==(i=q())&&null!==(s=St())?i=[i,s]:(i=null,r=u);null!==o?e=[e,t,n,a,o]:(e=null,r=c)}else e=null,r=c;else e=null,r=c;else e=null,r=c;else e=null,r=c;null!==e&&(e=function(e){try{Fn=new jn(Fn.uri,Fn.display_name,Fn.params)}catch(e){Fn=-1}}());null===e&&(r=l);return e},Proxy_Authenticate:function(){return Ft()},challenge:Ft,other_challenge:qt,auth_param:Yt,digest_cln:Ht,realm:Bt,realm_value:Gt,domain:Vt,URI:Wt,nonce:Qt,nonce_value:zt,opaque:Kt,stale:Jt,algorithm:Xt,qop_options:Zt,qop_value:en,Proxy_Require:function(){var e,t,n,a,o,i;if(o=r,null!==(e=x())){for(t=[],i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},Record_Route:function(){var e,t,n,a,o,i,s;if(o=r,i=r,null!==(e=tn())){for(t=[],s=r,null!==(n=F())&&null!==(a=tn())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=F())&&null!==(a=tn())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;null!==e&&(e=function(e){var t,n;for(n=Fn.multi_header.length,t=0;t<n;t++)if(null===Fn.multi_header[t].parsed){Fn=null;break}Fn=null!==Fn?Fn.multi_header:-1}());null===e&&(r=o);return e},rec_route:tn,Reason:function(){var e,n,a,o,i,s,c;i=r,s=r,"sip"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"SIP"'));null===e&&(e=x());if(null!==e){for(n=[],c=r,null!==(a=q())&&null!==(o=nn())?a=[a,o]:(a=null,r=c);null!==a;)n.push(a),c=r,null!==(a=q())&&null!==(o=nn())?a=[a,o]:(a=null,r=c);null!==n?e=[e,n]:(e=null,r=s)}else e=null,r=s;null!==e&&(e=function(e,t){if(Fn.protocol=t.toLowerCase(),Fn.params||(Fn.params={}),Fn.params.text&&'"'===Fn.params.text[0]){var n=Fn.params.text;Fn.text=n.substring(1,n.length-1),delete Fn.params.text}}(0,e[0]));null===e&&(r=i);return e},reason_param:nn,reason_cause:an,Require:function(){var e,t,n,a,o,i;if(o=r,null!==(e=x())){for(t=[],i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},Route:function(){var e,t,n,a,o,i;if(o=r,null!==(e=on())){for(t=[],i=r,null!==(n=F())&&null!==(a=on())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=F())&&null!==(a=on())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},route_param:on,Subscription_State:function(){var e,t,n,a,o,i;if(o=r,null!==(e=rn())){for(t=[],i=r,null!==(n=q())&&null!==(a=sn())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=q())&&null!==(a=sn())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},substate_value:rn,subexp_params:sn,event_reason_value:ln,Subject:function(){var e;return e=null!==(e=T())?e:""},Supported:function(){var e,t,n,a,o,i;if(o=r,null!==(e=x())){for(t=[],i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=F())&&null!==(a=x())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e=null!==e?e:""},To:function(){var e,t,n,a,o,i,s;o=r,i=r,null===(e=K())&&(e=gt());if(null!==e){for(t=[],s=r,null!==(n=q())&&null!==(a=cn())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=q())&&null!==(a=cn())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;null!==e&&(e=function(e){var t=Fn.tag;try{Fn=new jn(Fn.uri,Fn.display_name,Fn.params),t&&Fn.setParam("tag",t)}catch(e){Fn=-1}}());null===e&&(r=o);return e},to_param:cn,Via:function(){var e,t,n,a,o,i;if(o=r,null!==(e=un())){for(t=[],i=r,null!==(n=F())&&null!==(a=un())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=F())&&null!==(a=un())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},via_param:un,via_params:dn,via_ttl:fn,via_maddr:mn,via_received:pn,via_branch:gn,response_port:hn,rport:_n,sent_protocol:bn,protocol_name:yn,transport:vn,sent_by:An,via_host:Sn,via_port:wn,ttl:En,WWW_Authenticate:function(){return Ft()},Session_Expires:function(){var e,t,n,a,o,i;if(o=r,null!==(e=Cn())){for(t=[],i=r,null!==(n=q())&&null!==(a=Tn())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=q())&&null!==(a=Tn())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},s_e_expires:Cn,s_e_params:Tn,s_e_refresher:In,extension_header:function(){var e,t,n,a;a=r,null!==(e=x())&&null!==(t=C())&&null!==(n=kn())?e=[e,t,n]:(e=null,r=a);return e},header_value:kn,message_body:function(){var e,t;e=[],t=p();for(;null!==t;)e.push(t),t=p();return e},uuid_URI:function(){var e,n,a;a=r,"uuid:"===t.substr(r,5)?(e="uuid:",r+=5):(e=null,l('"uuid:"'));null!==e&&null!==(n=Dn())?e=[e,n]:(e=null,r=a);return e},uuid:Dn,hex4:xn,hex8:Mn,hex12:Pn,Refer_To:function(){var e,t,n,a,o,i,s;o=r,i=r,null===(e=K())&&(e=gt());if(null!==e){for(t=[],s=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;null!==e&&(e=function(e){try{Fn=new jn(Fn.uri,Fn.display_name,Fn.params)}catch(e){Fn=-1}}());null===e&&(r=o);return e},Replaces:function(){var e,t,n,a,o,i;if(o=r,null!==(e=On())){for(t=[],i=r,null!==(n=q())&&null!==(a=Rn())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=q())&&null!==(a=Rn())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e},call_id:On,replaces_param:Rn,to_tag:Nn,from_tag:Ln,early_flag:$n};if(void 0!==a){if(void 0===o[a])throw new Error("Invalid rule name: "+e(a)+".")}else a="CRLF";var r=0,i=0,s=[];function l(e){r<i||(r>i&&(i=r,s=[]),s.push(e))}function c(){var e;return"\r\n"===t.substr(r,2)?(e="\r\n",r+=2):(e=null,l('"\\r\\n"')),e}function u(){var e;return/^[0-9]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[0-9]")),e}function d(){var e;return/^[a-zA-Z]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[a-zA-Z]")),e}function f(){var e;return/^[0-9a-fA-F]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[0-9a-fA-F]")),e}function m(){var e;return null===(e=h())&&(e=_()),e}function p(){var e;return/^[\0-\xFF]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[\\0-\\xFF]")),e}function g(){var e;return/^["]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l('["]')),e}function h(){var e;return 32===t.charCodeAt(r)?(e=" ",r++):(e=null,l('" "')),e}function _(){var e;return 9===t.charCodeAt(r)?(e="\t",r++):(e=null,l('"\\t"')),e}function b(){var e;return/^[a-zA-Z0-9]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[a-zA-Z0-9]")),e}function y(){var e;return 59===t.charCodeAt(r)?(e=";",r++):(e=null,l('";"')),null===e&&(47===t.charCodeAt(r)?(e="/",r++):(e=null,l('"/"')),null===e&&(63===t.charCodeAt(r)?(e="?",r++):(e=null,l('"?"')),null===e&&(58===t.charCodeAt(r)?(e=":",r++):(e=null,l('":"')),null===e&&(64===t.charCodeAt(r)?(e="@",r++):(e=null,l('"@"')),null===e&&(38===t.charCodeAt(r)?(e="&",r++):(e=null,l('"&"')),null===e&&(61===t.charCodeAt(r)?(e="=",r++):(e=null,l('"="')),null===e&&(43===t.charCodeAt(r)?(e="+",r++):(e=null,l('"+"')),null===e&&(36===t.charCodeAt(r)?(e="$",r++):(e=null,l('"$"')),null===e&&(44===t.charCodeAt(r)?(e=",",r++):(e=null,l('","'))))))))))),e}function v(){var e;return null===(e=b())&&(e=A()),e}function A(){var e;return 45===t.charCodeAt(r)?(e="-",r++):(e=null,l('"-"')),null===e&&(95===t.charCodeAt(r)?(e="_",r++):(e=null,l('"_"')),null===e&&(46===t.charCodeAt(r)?(e=".",r++):(e=null,l('"."')),null===e&&(33===t.charCodeAt(r)?(e="!",r++):(e=null,l('"!"')),null===e&&(126===t.charCodeAt(r)?(e="~",r++):(e=null,l('"~"')),null===e&&(42===t.charCodeAt(r)?(e="*",r++):(e=null,l('"*"')),null===e&&(39===t.charCodeAt(r)?(e="'",r++):(e=null,l('"\'"')),null===e&&(40===t.charCodeAt(r)?(e="(",r++):(e=null,l('"("')),null===e&&(41===t.charCodeAt(r)?(e=")",r++):(e=null,l('")"')))))))))),e}function S(){var e,n,a,o,i;return o=r,i=r,37===t.charCodeAt(r)?(e="%",r++):(e=null,l('"%"')),null!==e&&null!==(n=f())&&null!==(a=f())?e=[e,n,a]:(e=null,r=i),null!==e&&(e=e.join("")),null===e&&(r=o),e}function w(){var e,t,n,a,o,i;for(a=r,o=r,i=r,e=[],t=m();null!==t;)e.push(t),t=m();if(null!==e&&null!==(t=c())?e=[e,t]:(e=null,r=i),null!==(e=null!==e?e:"")){if(null!==(n=m()))for(t=[];null!==n;)t.push(n),n=m();else t=null;null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return null!==e&&(e=" "),null===e&&(r=a),e}function E(){var e;return e=null!==(e=w())?e:""}function C(){var e,n,a,o,i;for(o=r,i=r,e=[],null===(n=h())&&(n=_());null!==n;)e.push(n),null===(n=h())&&(n=_());return null!==e?(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=":"),null===e&&(r=o),e}function T(){var e,n,a,o,i,s,l;if(i=r,s=r,null!==(n=I()))for(e=[];null!==n;)e.push(n),n=I();else e=null;if(null!==e){for(n=[],l=r,a=[],o=w();null!==o;)a.push(o),o=w();for(null!==a&&null!==(o=I())?a=[a,o]:(a=null,r=l);null!==a;){for(n.push(a),l=r,a=[],o=w();null!==o;)a.push(o),o=w();null!==a&&null!==(o=I())?a=[a,o]:(a=null,r=l)}null!==n?e=[e,n]:(e=null,r=s)}else e=null,r=s;return null!==e&&(e=function(e){return t.substring(r,e)}(i)),null===e&&(r=i),e}function I(){var e;return/^[!-~]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[!-~]")),null===e&&(e=k()),e}function k(){var e;return/^[\x80-\uFFFF]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[\\x80-\\uFFFF]")),e}function D(){var e;return/^[\x80-\xBF]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[\\x80-\\xBF]")),e}function x(){var e,n,a;if(a=r,null===(n=b())&&(45===t.charCodeAt(r)?(n="-",r++):(n=null,l('"-"')),null===n&&(46===t.charCodeAt(r)?(n=".",r++):(n=null,l('"."')),null===n&&(33===t.charCodeAt(r)?(n="!",r++):(n=null,l('"!"')),null===n&&(37===t.charCodeAt(r)?(n="%",r++):(n=null,l('"%"')),null===n&&(42===t.charCodeAt(r)?(n="*",r++):(n=null,l('"*"')),null===n&&(95===t.charCodeAt(r)?(n="_",r++):(n=null,l('"_"')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(96===t.charCodeAt(r)?(n="`",r++):(n=null,l('"`"')),null===n&&(39===t.charCodeAt(r)?(n="'",r++):(n=null,l('"\'"')),null===n&&(126===t.charCodeAt(r)?(n="~",r++):(n=null,l('"~"')))))))))))),null!==n)for(e=[];null!==n;)e.push(n),null===(n=b())&&(45===t.charCodeAt(r)?(n="-",r++):(n=null,l('"-"')),null===n&&(46===t.charCodeAt(r)?(n=".",r++):(n=null,l('"."')),null===n&&(33===t.charCodeAt(r)?(n="!",r++):(n=null,l('"!"')),null===n&&(37===t.charCodeAt(r)?(n="%",r++):(n=null,l('"%"')),null===n&&(42===t.charCodeAt(r)?(n="*",r++):(n=null,l('"*"')),null===n&&(95===t.charCodeAt(r)?(n="_",r++):(n=null,l('"_"')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(96===t.charCodeAt(r)?(n="`",r++):(n=null,l('"`"')),null===n&&(39===t.charCodeAt(r)?(n="'",r++):(n=null,l('"\'"')),null===n&&(126===t.charCodeAt(r)?(n="~",r++):(n=null,l('"~"'))))))))))));else e=null;return null!==e&&(e=function(e){return t.substring(r,e)}(a)),null===e&&(r=a),e}function M(){var e,n,a;if(a=r,null===(n=b())&&(45===t.charCodeAt(r)?(n="-",r++):(n=null,l('"-"')),null===n&&(33===t.charCodeAt(r)?(n="!",r++):(n=null,l('"!"')),null===n&&(37===t.charCodeAt(r)?(n="%",r++):(n=null,l('"%"')),null===n&&(42===t.charCodeAt(r)?(n="*",r++):(n=null,l('"*"')),null===n&&(95===t.charCodeAt(r)?(n="_",r++):(n=null,l('"_"')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(96===t.charCodeAt(r)?(n="`",r++):(n=null,l('"`"')),null===n&&(39===t.charCodeAt(r)?(n="'",r++):(n=null,l('"\'"')),null===n&&(126===t.charCodeAt(r)?(n="~",r++):(n=null,l('"~"'))))))))))),null!==n)for(e=[];null!==n;)e.push(n),null===(n=b())&&(45===t.charCodeAt(r)?(n="-",r++):(n=null,l('"-"')),null===n&&(33===t.charCodeAt(r)?(n="!",r++):(n=null,l('"!"')),null===n&&(37===t.charCodeAt(r)?(n="%",r++):(n=null,l('"%"')),null===n&&(42===t.charCodeAt(r)?(n="*",r++):(n=null,l('"*"')),null===n&&(95===t.charCodeAt(r)?(n="_",r++):(n=null,l('"_"')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(96===t.charCodeAt(r)?(n="`",r++):(n=null,l('"`"')),null===n&&(39===t.charCodeAt(r)?(n="'",r++):(n=null,l('"\'"')),null===n&&(126===t.charCodeAt(r)?(n="~",r++):(n=null,l('"~"')))))))))));else e=null;return null!==e&&(e=function(e){return t.substring(r,e)}(a)),null===e&&(r=a),e}function P(){var e,n,a;if(a=r,null===(n=b())&&(45===t.charCodeAt(r)?(n="-",r++):(n=null,l('"-"')),null===n&&(46===t.charCodeAt(r)?(n=".",r++):(n=null,l('"."')),null===n&&(33===t.charCodeAt(r)?(n="!",r++):(n=null,l('"!"')),null===n&&(37===t.charCodeAt(r)?(n="%",r++):(n=null,l('"%"')),null===n&&(42===t.charCodeAt(r)?(n="*",r++):(n=null,l('"*"')),null===n&&(95===t.charCodeAt(r)?(n="_",r++):(n=null,l('"_"')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(96===t.charCodeAt(r)?(n="`",r++):(n=null,l('"`"')),null===n&&(39===t.charCodeAt(r)?(n="'",r++):(n=null,l('"\'"')),null===n&&(126===t.charCodeAt(r)?(n="~",r++):(n=null,l('"~"')),null===n&&(40===t.charCodeAt(r)?(n="(",r++):(n=null,l('"("')),null===n&&(41===t.charCodeAt(r)?(n=")",r++):(n=null,l('")"')),null===n&&(60===t.charCodeAt(r)?(n="<",r++):(n=null,l('"<"')),null===n&&(62===t.charCodeAt(r)?(n=">",r++):(n=null,l('">"')),null===n&&(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null===n&&(92===t.charCodeAt(r)?(n="\\",r++):(n=null,l('"\\\\"')),null===n&&null===(n=g())&&(47===t.charCodeAt(r)?(n="/",r++):(n=null,l('"/"')),null===n&&(91===t.charCodeAt(r)?(n="[",r++):(n=null,l('"["')),null===n&&(93===t.charCodeAt(r)?(n="]",r++):(n=null,l('"]"')),null===n&&(63===t.charCodeAt(r)?(n="?",r++):(n=null,l('"?"')),null===n&&(123===t.charCodeAt(r)?(n="{",r++):(n=null,l('"{"')),null===n&&(125===t.charCodeAt(r)?(n="}",r++):(n=null,l('"}"')))))))))))))))))))))))),null!==n)for(e=[];null!==n;)e.push(n),null===(n=b())&&(45===t.charCodeAt(r)?(n="-",r++):(n=null,l('"-"')),null===n&&(46===t.charCodeAt(r)?(n=".",r++):(n=null,l('"."')),null===n&&(33===t.charCodeAt(r)?(n="!",r++):(n=null,l('"!"')),null===n&&(37===t.charCodeAt(r)?(n="%",r++):(n=null,l('"%"')),null===n&&(42===t.charCodeAt(r)?(n="*",r++):(n=null,l('"*"')),null===n&&(95===t.charCodeAt(r)?(n="_",r++):(n=null,l('"_"')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(96===t.charCodeAt(r)?(n="`",r++):(n=null,l('"`"')),null===n&&(39===t.charCodeAt(r)?(n="'",r++):(n=null,l('"\'"')),null===n&&(126===t.charCodeAt(r)?(n="~",r++):(n=null,l('"~"')),null===n&&(40===t.charCodeAt(r)?(n="(",r++):(n=null,l('"("')),null===n&&(41===t.charCodeAt(r)?(n=")",r++):(n=null,l('")"')),null===n&&(60===t.charCodeAt(r)?(n="<",r++):(n=null,l('"<"')),null===n&&(62===t.charCodeAt(r)?(n=">",r++):(n=null,l('">"')),null===n&&(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null===n&&(92===t.charCodeAt(r)?(n="\\",r++):(n=null,l('"\\\\"')),null===n&&null===(n=g())&&(47===t.charCodeAt(r)?(n="/",r++):(n=null,l('"/"')),null===n&&(91===t.charCodeAt(r)?(n="[",r++):(n=null,l('"["')),null===n&&(93===t.charCodeAt(r)?(n="]",r++):(n=null,l('"]"')),null===n&&(63===t.charCodeAt(r)?(n="?",r++):(n=null,l('"?"')),null===n&&(123===t.charCodeAt(r)?(n="{",r++):(n=null,l('"{"')),null===n&&(125===t.charCodeAt(r)?(n="}",r++):(n=null,l('"}"'))))))))))))))))))))))));else e=null;return null!==e&&(e=function(e){return t.substring(r,e)}(a)),null===e&&(r=a),e}function O(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(42===t.charCodeAt(r)?(n="*",r++):(n=null,l('"*"')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e="*"),null===e&&(r=o),e}function R(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(47===t.charCodeAt(r)?(n="/",r++):(n=null,l('"/"')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e="/"),null===e&&(r=o),e}function N(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e="="),null===e&&(r=o),e}function L(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(40===t.charCodeAt(r)?(n="(",r++):(n=null,l('"("')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e="("),null===e&&(r=o),e}function $(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(41===t.charCodeAt(r)?(n=")",r++):(n=null,l('")"')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=")"),null===e&&(r=o),e}function U(){var e,n,a,o;return a=r,o=r,62===t.charCodeAt(r)?(e=">",r++):(e=null,l('">"')),null!==e&&null!==(n=E())?e=[e,n]:(e=null,r=o),null!==e&&(e=">"),null===e&&(r=a),e}function j(){var e,n,a,o;return a=r,o=r,null!==(e=E())?(60===t.charCodeAt(r)?(n="<",r++):(n=null,l('"<"')),null!==n?e=[e,n]:(e=null,r=o)):(e=null,r=o),null!==e&&(e="<"),null===e&&(r=a),e}function F(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(44===t.charCodeAt(r)?(n=",",r++):(n=null,l('","')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=","),null===e&&(r=o),e}function q(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(59===t.charCodeAt(r)?(n=";",r++):(n=null,l('";"')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=";"),null===e&&(r=o),e}function Y(){var e,n,a,o,i;return o=r,i=r,null!==(e=E())?(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=E())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=":"),null===e&&(r=o),e}function H(){var e,t,n,a;return n=r,a=r,null!==(e=E())&&null!==(t=g())?e=[e,t]:(e=null,r=a),null!==e&&(e='"'),null===e&&(r=n),e}function B(){var e,t,n,a;return n=r,a=r,null!==(e=g())&&null!==(t=E())?e=[e,t]:(e=null,r=a),null!==e&&(e='"'),null===e&&(r=n),e}function G(){var e;return/^[!-']/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[!-']")),null===e&&(/^[*-[]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[*-[]")),null===e&&(/^[\]-~]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[\\]-~]")),null===e&&null===(e=k())&&(e=w()))),e}function V(){var e,n,a,o,i,s;if(i=r,s=r,null!==(e=E()))if(null!==(n=g())){for(a=[],null===(o=Q())&&(o=z());null!==o;)a.push(o),null===(o=Q())&&(o=z());null!==a&&null!==(o=g())?e=[e,n,a,o]:(e=null,r=s)}else e=null,r=s;else e=null,r=s;return null!==e&&(e=function(e){return t.substring(r,e)}(i)),null===e&&(r=i),e}function W(){var e,n,a,o,i,s;if(i=r,s=r,null!==(e=E()))if(null!==(n=g())){for(a=[],null===(o=Q())&&(o=z());null!==o;)a.push(o),null===(o=Q())&&(o=z());null!==a&&null!==(o=g())?e=[e,n,a,o]:(e=null,r=s)}else e=null,r=s;else e=null,r=s;return null!==e&&(e=function(e){var n=t.substring(r,e).trim();return n.substring(1,n.length-1).replace(/\\([\x00-\x09\x0b-\x0c\x0e-\x7f])/g,"$1")}(i)),null===e&&(r=i),e}function Q(){var e;return null===(e=w())&&(33===t.charCodeAt(r)?(e="!",r++):(e=null,l('"!"')),null===e&&(/^[#-[]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[#-[]")),null===e&&(/^[\]-~]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[\\]-~]")),null===e&&(e=k())))),e}function z(){var e,n,a;return a=r,92===t.charCodeAt(r)?(e="\\",r++):(e=null,l('"\\\\"')),null!==e?(/^[\0-\t]/.test(t.charAt(r))?(n=t.charAt(r),r++):(n=null,l("[\\0-\\t]")),null===n&&(/^[\x0B-\f]/.test(t.charAt(r))?(n=t.charAt(r),r++):(n=null,l("[\\x0B-\\f]")),null===n&&(/^[\x0E-\7f]/.test(t.charAt(r))?(n=t.charAt(r),r++):(n=null,l("[\\x0E-\7f]")))),null!==n?e=[e,n]:(e=null,r=a)):(e=null,r=a),e}function K(){var e,n,a,o,i,s;return i=r,s=r,null!==(e=X())?(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=null!==(a=te())?a:"")&&null!==(o=re())?e=[e,n,a,o]:(e=null,r=s)):(e=null,r=s),null!==e&&(e=function(e){try{Fn.uri=new Un(Fn.scheme,Fn.user,Fn.host,Fn.port),delete Fn.scheme,delete Fn.user,delete Fn.host,delete Fn.host_type,delete Fn.port}catch(e){Fn=-1}}()),null===e&&(r=i),e}function J(){var e,n,o,i,s,c,u,d;return u=r,d=r,null!==(e=X())?(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(o=null!==(o=te())?o:"")&&null!==(i=re())&&null!==(s=_e())&&null!==(c=null!==(c=xe())?c:"")?e=[e,n,o,i,s,c]:(e=null,r=d)):(e=null,r=d),null!==e&&(e=function(e){try{Fn.uri=new Un(Fn.scheme,Fn.user,Fn.host,Fn.port,Fn.uri_params,Fn.uri_headers),delete Fn.scheme,delete Fn.user,delete Fn.host,delete Fn.host_type,delete Fn.port,delete Fn.uri_params,"SIP_URI"===a&&(Fn=Fn.uri)}catch(e){Fn=-1}}()),null===e&&(r=u),e}function X(){var e;return null===(e=Z())&&(e=ee()),e}function Z(){var e,n,a;return n=r,"sips"===t.substr(r,4).toLowerCase()?(e=t.substr(r,4),r+=4):(e=null,l('"sips"')),null!==e&&(a=e,e=void(Fn.scheme=a.toLowerCase())),null===e&&(r=n),e}function ee(){var e,n,a;return n=r,"sip"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"sip"')),null!==e&&(a=e,e=void(Fn.scheme=a.toLowerCase())),null===e&&(r=n),e}function te(){var e,n,a,o,i,s;return o=r,i=r,null!==(e=ne())?(s=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=oe())?n=[n,a]:(n=null,r=s),null!==(n=null!==n?n:"")?(64===t.charCodeAt(r)?(a="@",r++):(a=null,l('"@"')),null!==a?e=[e,n,a]:(e=null,r=i)):(e=null,r=i)):(e=null,r=i),null!==e&&(e=function(e){Fn.user=decodeURIComponent(t.substring(r-1,e))}(o)),null===e&&(r=o),e}function ne(){var e,t;if(null===(t=v())&&null===(t=S())&&(t=ae()),null!==t)for(e=[];null!==t;)e.push(t),null===(t=v())&&null===(t=S())&&(t=ae());else e=null;return e}function ae(){var e;return 38===t.charCodeAt(r)?(e="&",r++):(e=null,l('"&"')),null===e&&(61===t.charCodeAt(r)?(e="=",r++):(e=null,l('"="')),null===e&&(43===t.charCodeAt(r)?(e="+",r++):(e=null,l('"+"')),null===e&&(36===t.charCodeAt(r)?(e="$",r++):(e=null,l('"$"')),null===e&&(44===t.charCodeAt(r)?(e=",",r++):(e=null,l('","')),null===e&&(59===t.charCodeAt(r)?(e=";",r++):(e=null,l('";"')),null===e&&(63===t.charCodeAt(r)?(e="?",r++):(e=null,l('"?"')),null===e&&(47===t.charCodeAt(r)?(e="/",r++):(e=null,l('"/"'))))))))),e}function oe(){var e,n,a;for(a=r,e=[],null===(n=v())&&null===(n=S())&&(38===t.charCodeAt(r)?(n="&",r++):(n=null,l('"&"')),null===n&&(61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(36===t.charCodeAt(r)?(n="$",r++):(n=null,l('"$"')),null===n&&(44===t.charCodeAt(r)?(n=",",r++):(n=null,l('","')))))));null!==n;)e.push(n),null===(n=v())&&null===(n=S())&&(38===t.charCodeAt(r)?(n="&",r++):(n=null,l('"&"')),null===n&&(61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')),null===n&&(36===t.charCodeAt(r)?(n="$",r++):(n=null,l('"$"')),null===n&&(44===t.charCodeAt(r)?(n=",",r++):(n=null,l('","')))))));return null!==e&&(e=function(e){Fn.password=t.substring(r,e)}(a)),null===e&&(r=a),e}function re(){var e,n,a,o,i;return o=r,null!==(e=ie())?(i=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=he())?n=[n,a]:(n=null,r=i),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=o)):(e=null,r=o),e}function ie(){var e,n;return n=r,null===(e=se())&&null===(e=pe())&&(e=ue()),null!==e&&(e=function(e){return Fn.host=t.substring(r,e).toLowerCase(),Fn.host}(n)),null===e&&(r=n),e}function se(){var e,n,a,o,i,s;for(o=r,i=r,e=[],s=r,null!==(n=le())?(46===t.charCodeAt(r)?(a=".",r++):(a=null,l('"."')),null!==a?n=[n,a]:(n=null,r=s)):(n=null,r=s);null!==n;)e.push(n),s=r,null!==(n=le())?(46===t.charCodeAt(r)?(a=".",r++):(a=null,l('"."')),null!==a?n=[n,a]:(n=null,r=s)):(n=null,r=s);return null!==e&&null!==(n=ce())?(46===t.charCodeAt(r)?(a=".",r++):(a=null,l('"."')),null!==(a=null!==a?a:"")?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=function(e){return Fn.host_type="domain",t.substring(r,e)}(o)),null===e&&(r=o),e}function le(){var e,n,a,o;if(o=r,null!==(e=b())){for(n=[],null===(a=b())&&(45===t.charCodeAt(r)?(a="-",r++):(a=null,l('"-"')),null===a&&(95===t.charCodeAt(r)?(a="_",r++):(a=null,l('"_"'))));null!==a;)n.push(a),null===(a=b())&&(45===t.charCodeAt(r)?(a="-",r++):(a=null,l('"-"')),null===a&&(95===t.charCodeAt(r)?(a="_",r++):(a=null,l('"_"'))));null!==n?e=[e,n]:(e=null,r=o)}else e=null,r=o;return e}function ce(){var e,n,a,o;if(o=r,null!==(e=d())){for(n=[],null===(a=b())&&(45===t.charCodeAt(r)?(a="-",r++):(a=null,l('"-"')),null===a&&(95===t.charCodeAt(r)?(a="_",r++):(a=null,l('"_"'))));null!==a;)n.push(a),null===(a=b())&&(45===t.charCodeAt(r)?(a="-",r++):(a=null,l('"-"')),null===a&&(95===t.charCodeAt(r)?(a="_",r++):(a=null,l('"_"'))));null!==n?e=[e,n]:(e=null,r=o)}else e=null,r=o;return e}function ue(){var e,n,a,o,i;return o=r,i=r,91===t.charCodeAt(r)?(e="[",r++):(e=null,l('"["')),null!==e&&null!==(n=de())?(93===t.charCodeAt(r)?(a="]",r++):(a=null,l('"]"')),null!==a?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=function(e){return Fn.host_type="IPv6",t.substring(r,e)}(o)),null===e&&(r=o),e}function de(){var e,n,a,o,i,s,c,u,d,f,m,p,g,h,_,b;return h=r,_=r,null!==(e=fe())?(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?(58===t.charCodeAt(r)?(o=":",r++):(o=null,l('":"')),null!==o&&null!==(i=fe())?(58===t.charCodeAt(r)?(s=":",r++):(s=null,l('":"')),null!==s&&null!==(c=fe())?(58===t.charCodeAt(r)?(u=":",r++):(u=null,l('":"')),null!==u&&null!==(d=fe())?(58===t.charCodeAt(r)?(f=":",r++):(f=null,l('":"')),null!==f&&null!==(m=fe())?(58===t.charCodeAt(r)?(p=":",r++):(p=null,l('":"')),null!==p&&null!==(g=me())?e=[e,n,a,o,i,s,c,u,d,f,m,p,g]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,"::"===t.substr(r,2)?(e="::",r+=2):(e=null,l('"::"')),null!==e&&null!==(n=fe())?(58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?(58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=fe())?(58===t.charCodeAt(r)?(c=":",r++):(c=null,l('":"')),null!==c&&null!==(u=fe())?(58===t.charCodeAt(r)?(d=":",r++):(d=null,l('":"')),null!==d&&null!==(f=fe())?(58===t.charCodeAt(r)?(m=":",r++):(m=null,l('":"')),null!==m&&null!==(p=me())?e=[e,n,a,o,i,s,c,u,d,f,m,p]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,"::"===t.substr(r,2)?(e="::",r+=2):(e=null,l('"::"')),null!==e&&null!==(n=fe())?(58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?(58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=fe())?(58===t.charCodeAt(r)?(c=":",r++):(c=null,l('":"')),null!==c&&null!==(u=fe())?(58===t.charCodeAt(r)?(d=":",r++):(d=null,l('":"')),null!==d&&null!==(f=me())?e=[e,n,a,o,i,s,c,u,d,f]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,"::"===t.substr(r,2)?(e="::",r+=2):(e=null,l('"::"')),null!==e&&null!==(n=fe())?(58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?(58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=fe())?(58===t.charCodeAt(r)?(c=":",r++):(c=null,l('":"')),null!==c&&null!==(u=me())?e=[e,n,a,o,i,s,c,u]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,"::"===t.substr(r,2)?(e="::",r+=2):(e=null,l('"::"')),null!==e&&null!==(n=fe())?(58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?(58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=me())?e=[e,n,a,o,i,s]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,"::"===t.substr(r,2)?(e="::",r+=2):(e=null,l('"::"')),null!==e&&null!==(n=fe())?(58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=me())?e=[e,n,a,o]:(e=null,r=_)):(e=null,r=_),null===e&&(_=r,"::"===t.substr(r,2)?(e="::",r+=2):(e=null,l('"::"')),null!==e&&null!==(n=me())?e=[e,n]:(e=null,r=_),null===e&&(_=r,"::"===t.substr(r,2)?(e="::",r+=2):(e=null,l('"::"')),null!==e&&null!==(n=fe())?e=[e,n]:(e=null,r=_),null===e&&(_=r,null!==(e=fe())?("::"===t.substr(r,2)?(n="::",r+=2):(n=null,l('"::"')),null!==n&&null!==(a=fe())?(58===t.charCodeAt(r)?(o=":",r++):(o=null,l('":"')),null!==o&&null!==(i=fe())?(58===t.charCodeAt(r)?(s=":",r++):(s=null,l('":"')),null!==s&&null!==(c=fe())?(58===t.charCodeAt(r)?(u=":",r++):(u=null,l('":"')),null!==u&&null!==(d=fe())?(58===t.charCodeAt(r)?(f=":",r++):(f=null,l('":"')),null!==f&&null!==(m=me())?e=[e,n,a,o,i,s,c,u,d,f,m]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,null!==(e=fe())?(b=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?n=[n,a]:(n=null,r=b),null!==(n=null!==n?n:"")?("::"===t.substr(r,2)?(a="::",r+=2):(a=null,l('"::"')),null!==a&&null!==(o=fe())?(58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=fe())?(58===t.charCodeAt(r)?(c=":",r++):(c=null,l('":"')),null!==c&&null!==(u=fe())?(58===t.charCodeAt(r)?(d=":",r++):(d=null,l('":"')),null!==d&&null!==(f=me())?e=[e,n,a,o,i,s,c,u,d,f]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,null!==(e=fe())?(b=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?n=[n,a]:(n=null,r=b),null!==(n=null!==n?n:"")?(b=r,58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?a=[a,o]:(a=null,r=b),null!==(a=null!==a?a:"")?("::"===t.substr(r,2)?(o="::",r+=2):(o=null,l('"::"')),null!==o&&null!==(i=fe())?(58===t.charCodeAt(r)?(s=":",r++):(s=null,l('":"')),null!==s&&null!==(c=fe())?(58===t.charCodeAt(r)?(u=":",r++):(u=null,l('":"')),null!==u&&null!==(d=me())?e=[e,n,a,o,i,s,c,u,d]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,null!==(e=fe())?(b=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?n=[n,a]:(n=null,r=b),null!==(n=null!==n?n:"")?(b=r,58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?a=[a,o]:(a=null,r=b),null!==(a=null!==a?a:"")?(b=r,58===t.charCodeAt(r)?(o=":",r++):(o=null,l('":"')),null!==o&&null!==(i=fe())?o=[o,i]:(o=null,r=b),null!==(o=null!==o?o:"")?("::"===t.substr(r,2)?(i="::",r+=2):(i=null,l('"::"')),null!==i&&null!==(s=fe())?(58===t.charCodeAt(r)?(c=":",r++):(c=null,l('":"')),null!==c&&null!==(u=me())?e=[e,n,a,o,i,s,c,u]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,null!==(e=fe())?(b=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?n=[n,a]:(n=null,r=b),null!==(n=null!==n?n:"")?(b=r,58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?a=[a,o]:(a=null,r=b),null!==(a=null!==a?a:"")?(b=r,58===t.charCodeAt(r)?(o=":",r++):(o=null,l('":"')),null!==o&&null!==(i=fe())?o=[o,i]:(o=null,r=b),null!==(o=null!==o?o:"")?(b=r,58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=fe())?i=[i,s]:(i=null,r=b),null!==(i=null!==i?i:"")?("::"===t.substr(r,2)?(s="::",r+=2):(s=null,l('"::"')),null!==s&&null!==(c=me())?e=[e,n,a,o,i,s,c]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,null!==(e=fe())?(b=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?n=[n,a]:(n=null,r=b),null!==(n=null!==n?n:"")?(b=r,58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?a=[a,o]:(a=null,r=b),null!==(a=null!==a?a:"")?(b=r,58===t.charCodeAt(r)?(o=":",r++):(o=null,l('":"')),null!==o&&null!==(i=fe())?o=[o,i]:(o=null,r=b),null!==(o=null!==o?o:"")?(b=r,58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=fe())?i=[i,s]:(i=null,r=b),null!==(i=null!==i?i:"")?(b=r,58===t.charCodeAt(r)?(s=":",r++):(s=null,l('":"')),null!==s&&null!==(c=fe())?s=[s,c]:(s=null,r=b),null!==(s=null!==s?s:"")?("::"===t.substr(r,2)?(c="::",r+=2):(c=null,l('"::"')),null!==c&&null!==(u=fe())?e=[e,n,a,o,i,s,c,u]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_),null===e&&(_=r,null!==(e=fe())?(b=r,58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?n=[n,a]:(n=null,r=b),null!==(n=null!==n?n:"")?(b=r,58===t.charCodeAt(r)?(a=":",r++):(a=null,l('":"')),null!==a&&null!==(o=fe())?a=[a,o]:(a=null,r=b),null!==(a=null!==a?a:"")?(b=r,58===t.charCodeAt(r)?(o=":",r++):(o=null,l('":"')),null!==o&&null!==(i=fe())?o=[o,i]:(o=null,r=b),null!==(o=null!==o?o:"")?(b=r,58===t.charCodeAt(r)?(i=":",r++):(i=null,l('":"')),null!==i&&null!==(s=fe())?i=[i,s]:(i=null,r=b),null!==(i=null!==i?i:"")?(b=r,58===t.charCodeAt(r)?(s=":",r++):(s=null,l('":"')),null!==s&&null!==(c=fe())?s=[s,c]:(s=null,r=b),null!==(s=null!==s?s:"")?(b=r,58===t.charCodeAt(r)?(c=":",r++):(c=null,l('":"')),null!==c&&null!==(u=fe())?c=[c,u]:(c=null,r=b),null!==(c=null!==c?c:"")?("::"===t.substr(r,2)?(u="::",r+=2):(u=null,l('"::"')),null!==u?e=[e,n,a,o,i,s,c,u]:(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_)):(e=null,r=_))))))))))))))),null!==e&&(e=function(e){return Fn.host_type="IPv6",t.substring(r,e)}(h)),null===e&&(r=h),e}function fe(){var e,t,n,a,o;return o=r,null!==(e=f())&&null!==(t=null!==(t=f())?t:"")&&null!==(n=null!==(n=f())?n:"")&&null!==(a=null!==(a=f())?a:"")?e=[e,t,n,a]:(e=null,r=o),e}function me(){var e,n,a,o;return o=r,null!==(e=fe())?(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n&&null!==(a=fe())?e=[e,n,a]:(e=null,r=o)):(e=null,r=o),null===e&&(e=pe()),e}function pe(){var e,n,a,o,i,s,c,u,d;return u=r,d=r,null!==(e=ge())?(46===t.charCodeAt(r)?(n=".",r++):(n=null,l('"."')),null!==n&&null!==(a=ge())?(46===t.charCodeAt(r)?(o=".",r++):(o=null,l('"."')),null!==o&&null!==(i=ge())?(46===t.charCodeAt(r)?(s=".",r++):(s=null,l('"."')),null!==s&&null!==(c=ge())?e=[e,n,a,o,i,s,c]:(e=null,r=d)):(e=null,r=d)):(e=null,r=d)):(e=null,r=d),null!==e&&(e=function(e){return Fn.host_type="IPv4",t.substring(r,e)}(u)),null===e&&(r=u),e}function ge(){var e,n,a,o;return o=r,"25"===t.substr(r,2)?(e="25",r+=2):(e=null,l('"25"')),null!==e?(/^[0-5]/.test(t.charAt(r))?(n=t.charAt(r),r++):(n=null,l("[0-5]")),null!==n?e=[e,n]:(e=null,r=o)):(e=null,r=o),null===e&&(o=r,50===t.charCodeAt(r)?(e="2",r++):(e=null,l('"2"')),null!==e?(/^[0-4]/.test(t.charAt(r))?(n=t.charAt(r),r++):(n=null,l("[0-4]")),null!==n&&null!==(a=u())?e=[e,n,a]:(e=null,r=o)):(e=null,r=o),null===e&&(o=r,49===t.charCodeAt(r)?(e="1",r++):(e=null,l('"1"')),null!==e&&null!==(n=u())&&null!==(a=u())?e=[e,n,a]:(e=null,r=o),null===e&&(o=r,/^[1-9]/.test(t.charAt(r))?(e=t.charAt(r),r++):(e=null,l("[1-9]")),null!==e&&null!==(n=u())?e=[e,n]:(e=null,r=o),null===e&&(e=u())))),e}function he(){var e,t,n,a,o,i,s,l;return i=r,s=r,null!==(e=null!==(e=u())?e:"")&&null!==(t=null!==(t=u())?t:"")&&null!==(n=null!==(n=u())?n:"")&&null!==(a=null!==(a=u())?a:"")&&null!==(o=null!==(o=u())?o:"")?e=[e,t,n,a,o]:(e=null,r=s),null!==e&&(l=e,l=parseInt(l.join("")),Fn.port=l,e=l),null===e&&(r=i),e}function _e(){var e,n,a,o;for(e=[],o=r,59===t.charCodeAt(r)?(n=";",r++):(n=null,l('";"')),null!==n&&null!==(a=be())?n=[n,a]:(n=null,r=o);null!==n;)e.push(n),o=r,59===t.charCodeAt(r)?(n=";",r++):(n=null,l('";"')),null!==n&&null!==(a=be())?n=[n,a]:(n=null,r=o);return e}function be(){var e;return null===(e=ye())&&null===(e=ve())&&null===(e=Ae())&&null===(e=Se())&&null===(e=we())&&null===(e=Ee())&&(e=Ce()),e}function ye(){var e,n,a,o,i;return a=r,o=r,"transport="===t.substr(r,10).toLowerCase()?(e=t.substr(r,10),r+=10):(e=null,l('"transport="')),null!==e?("udp"===t.substr(r,3).toLowerCase()?(n=t.substr(r,3),r+=3):(n=null,l('"udp"')),null===n&&("tcp"===t.substr(r,3).toLowerCase()?(n=t.substr(r,3),r+=3):(n=null,l('"tcp"')),null===n&&("sctp"===t.substr(r,4).toLowerCase()?(n=t.substr(r,4),r+=4):(n=null,l('"sctp"')),null===n&&("tls"===t.substr(r,3).toLowerCase()?(n=t.substr(r,3),r+=3):(n=null,l('"tls"')),null===n&&(n=x())))),null!==n?e=[e,n]:(e=null,r=o)):(e=null,r=o),null!==e&&(i=e[1],Fn.uri_params||(Fn.uri_params={}),e=void(Fn.uri_params.transport=i.toLowerCase())),null===e&&(r=a),e}function ve(){var e,n,a,o,i;return a=r,o=r,"user="===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"user="')),null!==e?("phone"===t.substr(r,5).toLowerCase()?(n=t.substr(r,5),r+=5):(n=null,l('"phone"')),null===n&&("ip"===t.substr(r,2).toLowerCase()?(n=t.substr(r,2),r+=2):(n=null,l('"ip"')),null===n&&(n=x())),null!==n?e=[e,n]:(e=null,r=o)):(e=null,r=o),null!==e&&(i=e[1],Fn.uri_params||(Fn.uri_params={}),e=void(Fn.uri_params.user=i.toLowerCase())),null===e&&(r=a),e}function Ae(){var e,n,a,o,i;return a=r,o=r,"method="===t.substr(r,7).toLowerCase()?(e=t.substr(r,7),r+=7):(e=null,l('"method="')),null!==e&&null!==(n=ct())?e=[e,n]:(e=null,r=o),null!==e&&(i=e[1],Fn.uri_params||(Fn.uri_params={}),e=void(Fn.uri_params.method=i)),null===e&&(r=a),e}function Se(){var e,n,a,o,i;return a=r,o=r,"ttl="===t.substr(r,4).toLowerCase()?(e=t.substr(r,4),r+=4):(e=null,l('"ttl="')),null!==e&&null!==(n=En())?e=[e,n]:(e=null,r=o),null!==e&&(i=e[1],Fn.params||(Fn.params={}),e=void(Fn.params.ttl=i)),null===e&&(r=a),e}function we(){var e,n,a,o,i;return a=r,o=r,"maddr="===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"maddr="')),null!==e&&null!==(n=ie())?e=[e,n]:(e=null,r=o),null!==e&&(i=e[1],Fn.uri_params||(Fn.uri_params={}),e=void(Fn.uri_params.maddr=i)),null===e&&(r=a),e}function Ee(){var e,n,a,o,i,s;return o=r,i=r,"lr"===t.substr(r,2).toLowerCase()?(e=t.substr(r,2),r+=2):(e=null,l('"lr"')),null!==e?(s=r,61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null!==n&&null!==(a=x())?n=[n,a]:(n=null,r=s),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=i)):(e=null,r=i),null!==e&&(Fn.uri_params||(Fn.uri_params={}),e=void(Fn.uri_params.lr=void 0)),null===e&&(r=o),e}function Ce(){var e,n,a,o,i,s,c,u;return o=r,i=r,null!==(e=Te())?(s=r,61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null!==n&&null!==(a=Ie())?n=[n,a]:(n=null,r=s),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=i)):(e=null,r=i),null!==e&&(c=e[0],u=e[1],Fn.uri_params||(Fn.uri_params={}),u=void 0===u?void 0:u[1],e=void(Fn.uri_params[c.toLowerCase()]=u)),null===e&&(r=o),e}function Te(){var e,t,n;if(n=r,null!==(t=ke()))for(e=[];null!==t;)e.push(t),t=ke();else e=null;return null!==e&&(e=e.join("")),null===e&&(r=n),e}function Ie(){var e,t,n;if(n=r,null!==(t=ke()))for(e=[];null!==t;)e.push(t),t=ke();else e=null;return null!==e&&(e=e.join("")),null===e&&(r=n),e}function ke(){var e;return null===(e=De())&&null===(e=v())&&(e=S()),e}function De(){var e;return 91===t.charCodeAt(r)?(e="[",r++):(e=null,l('"["')),null===e&&(93===t.charCodeAt(r)?(e="]",r++):(e=null,l('"]"')),null===e&&(47===t.charCodeAt(r)?(e="/",r++):(e=null,l('"/"')),null===e&&(58===t.charCodeAt(r)?(e=":",r++):(e=null,l('":"')),null===e&&(38===t.charCodeAt(r)?(e="&",r++):(e=null,l('"&"')),null===e&&(43===t.charCodeAt(r)?(e="+",r++):(e=null,l('"+"')),null===e&&(36===t.charCodeAt(r)?(e="$",r++):(e=null,l('"$"')))))))),e}function xe(){var e,n,a,o,i,s,c;if(s=r,63===t.charCodeAt(r)?(e="?",r++):(e=null,l('"?"')),null!==e)if(null!==(n=Me())){for(a=[],c=r,38===t.charCodeAt(r)?(o="&",r++):(o=null,l('"&"')),null!==o&&null!==(i=Me())?o=[o,i]:(o=null,r=c);null!==o;)a.push(o),c=r,38===t.charCodeAt(r)?(o="&",r++):(o=null,l('"&"')),null!==o&&null!==(i=Me())?o=[o,i]:(o=null,r=c);null!==a?e=[e,n,a]:(e=null,r=s)}else e=null,r=s;else e=null,r=s;return e}function Me(){var e,n,a,o,i,s,c;return o=r,i=r,null!==(e=Pe())?(61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null!==n&&null!==(a=Oe())?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(s=e[0],c=e[2],s=s.join("").toLowerCase(),c=c.join(""),Fn.uri_headers||(Fn.uri_headers={}),e=void(Fn.uri_headers[s]?Fn.uri_headers[s].push(c):Fn.uri_headers[s]=[c])),null===e&&(r=o),e}function Pe(){var e,t;if(null===(t=Re())&&null===(t=v())&&(t=S()),null!==t)for(e=[];null!==t;)e.push(t),null===(t=Re())&&null===(t=v())&&(t=S());else e=null;return e}function Oe(){var e,t;for(e=[],null===(t=Re())&&null===(t=v())&&(t=S());null!==t;)e.push(t),null===(t=Re())&&null===(t=v())&&(t=S());return e}function Re(){var e;return 91===t.charCodeAt(r)?(e="[",r++):(e=null,l('"["')),null===e&&(93===t.charCodeAt(r)?(e="]",r++):(e=null,l('"]"')),null===e&&(47===t.charCodeAt(r)?(e="/",r++):(e=null,l('"/"')),null===e&&(63===t.charCodeAt(r)?(e="?",r++):(e=null,l('"?"')),null===e&&(58===t.charCodeAt(r)?(e=":",r++):(e=null,l('":"')),null===e&&(43===t.charCodeAt(r)?(e="+",r++):(e=null,l('"+"')),null===e&&(36===t.charCodeAt(r)?(e="$",r++):(e=null,l('"$"')))))))),e}function Ne(){var e,t,n,a,o,i;return i=r,null!==(e=ct())&&null!==(t=h())&&null!==(n=Le())&&null!==(a=h())&&null!==(o=Ze())?e=[e,t,n,a,o]:(e=null,r=i),e}function Le(){var e;return null===(e=J())&&(e=$e()),e}function $e(){var e,n,a,o;return o=r,null!==(e=Qe())?(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null!==n?(null===(a=Ue())&&(a=qe()),null!==a?e=[e,n,a]:(e=null,r=o)):(e=null,r=o)):(e=null,r=o),e}function Ue(){var e,n,a,o,i;return o=r,null===(e=je())&&(e=Fe()),null!==e?(i=r,63===t.charCodeAt(r)?(n="?",r++):(n=null,l('"?"')),null!==n&&null!==(a=Xe())?n=[n,a]:(n=null,r=i),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=o)):(e=null,r=o),e}function je(){var e,n,a,o;return o=r,"//"===t.substr(r,2)?(e="//",r+=2):(e=null,l('"//"')),null!==e&&null!==(n=ze())&&null!==(a=null!==(a=Fe())?a:"")?e=[e,n,a]:(e=null,r=o),e}function Fe(){var e,n,a;return a=r,47===t.charCodeAt(r)?(e="/",r++):(e=null,l('"/"')),null!==e&&null!==(n=Be())?e=[e,n]:(e=null,r=a),e}function qe(){var e,t,n,a;if(a=r,null!==(e=He())){for(t=[],n=Ye();null!==n;)t.push(n),n=Ye();null!==t?e=[e,t]:(e=null,r=a)}else e=null,r=a;return e}function Ye(){var e;return null===(e=y())&&null===(e=v())&&(e=S()),e}function He(){var e;return null===(e=v())&&null===(e=S())&&(59===t.charCodeAt(r)?(e=";",r++):(e=null,l('";"')),null===e&&(63===t.charCodeAt(r)?(e="?",r++):(e=null,l('"?"')),null===e&&(58===t.charCodeAt(r)?(e=":",r++):(e=null,l('":"')),null===e&&(64===t.charCodeAt(r)?(e="@",r++):(e=null,l('"@"')),null===e&&(38===t.charCodeAt(r)?(e="&",r++):(e=null,l('"&"')),null===e&&(61===t.charCodeAt(r)?(e="=",r++):(e=null,l('"="')),null===e&&(43===t.charCodeAt(r)?(e="+",r++):(e=null,l('"+"')),null===e&&(36===t.charCodeAt(r)?(e="$",r++):(e=null,l('"$"')),null===e&&(44===t.charCodeAt(r)?(e=",",r++):(e=null,l('","'))))))))))),e}function Be(){var e,n,a,o,i,s;if(i=r,null!==(e=Ge())){for(n=[],s=r,47===t.charCodeAt(r)?(a="/",r++):(a=null,l('"/"')),null!==a&&null!==(o=Ge())?a=[a,o]:(a=null,r=s);null!==a;)n.push(a),s=r,47===t.charCodeAt(r)?(a="/",r++):(a=null,l('"/"')),null!==a&&null!==(o=Ge())?a=[a,o]:(a=null,r=s);null!==n?e=[e,n]:(e=null,r=i)}else e=null,r=i;return e}function Ge(){var e,n,a,o,i,s;for(i=r,e=[],n=We();null!==n;)e.push(n),n=We();if(null!==e){for(n=[],s=r,59===t.charCodeAt(r)?(a=";",r++):(a=null,l('";"')),null!==a&&null!==(o=Ve())?a=[a,o]:(a=null,r=s);null!==a;)n.push(a),s=r,59===t.charCodeAt(r)?(a=";",r++):(a=null,l('";"')),null!==a&&null!==(o=Ve())?a=[a,o]:(a=null,r=s);null!==n?e=[e,n]:(e=null,r=i)}else e=null,r=i;return e}function Ve(){var e,t;for(e=[],t=We();null!==t;)e.push(t),t=We();return e}function We(){var e;return null===(e=v())&&null===(e=S())&&(58===t.charCodeAt(r)?(e=":",r++):(e=null,l('":"')),null===e&&(64===t.charCodeAt(r)?(e="@",r++):(e=null,l('"@"')),null===e&&(38===t.charCodeAt(r)?(e="&",r++):(e=null,l('"&"')),null===e&&(61===t.charCodeAt(r)?(e="=",r++):(e=null,l('"="')),null===e&&(43===t.charCodeAt(r)?(e="+",r++):(e=null,l('"+"')),null===e&&(36===t.charCodeAt(r)?(e="$",r++):(e=null,l('"$"')),null===e&&(44===t.charCodeAt(r)?(e=",",r++):(e=null,l('","'))))))))),e}function Qe(){var e,n,a,o,i;if(o=r,i=r,null!==(e=d())){for(n=[],null===(a=d())&&null===(a=u())&&(43===t.charCodeAt(r)?(a="+",r++):(a=null,l('"+"')),null===a&&(45===t.charCodeAt(r)?(a="-",r++):(a=null,l('"-"')),null===a&&(46===t.charCodeAt(r)?(a=".",r++):(a=null,l('"."')))));null!==a;)n.push(a),null===(a=d())&&null===(a=u())&&(43===t.charCodeAt(r)?(a="+",r++):(a=null,l('"+"')),null===a&&(45===t.charCodeAt(r)?(a="-",r++):(a=null,l('"-"')),null===a&&(46===t.charCodeAt(r)?(a=".",r++):(a=null,l('"."')))));null!==n?e=[e,n]:(e=null,r=i)}else e=null,r=i;return null!==e&&(e=function(e){Fn.scheme=t.substring(r,e)}(o)),null===e&&(r=o),e}function ze(){var e;return null===(e=Ke())&&(e=Je()),e}function Ke(){var e,n,a,o;return a=r,o=r,null!==(e=te())?(64===t.charCodeAt(r)?(n="@",r++):(n=null,l('"@"')),null!==n?e=[e,n]:(e=null,r=o)):(e=null,r=o),null!==(e=null!==e?e:"")&&null!==(n=re())?e=[e,n]:(e=null,r=a),e=null!==e?e:""}function Je(){var e,n;if(null===(n=v())&&null===(n=S())&&(36===t.charCodeAt(r)?(n="$",r++):(n=null,l('"$"')),null===n&&(44===t.charCodeAt(r)?(n=",",r++):(n=null,l('","')),null===n&&(59===t.charCodeAt(r)?(n=";",r++):(n=null,l('";"')),null===n&&(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null===n&&(64===t.charCodeAt(r)?(n="@",r++):(n=null,l('"@"')),null===n&&(38===t.charCodeAt(r)?(n="&",r++):(n=null,l('"&"')),null===n&&(61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"')))))))))),null!==n)for(e=[];null!==n;)e.push(n),null===(n=v())&&null===(n=S())&&(36===t.charCodeAt(r)?(n="$",r++):(n=null,l('"$"')),null===n&&(44===t.charCodeAt(r)?(n=",",r++):(n=null,l('","')),null===n&&(59===t.charCodeAt(r)?(n=";",r++):(n=null,l('";"')),null===n&&(58===t.charCodeAt(r)?(n=":",r++):(n=null,l('":"')),null===n&&(64===t.charCodeAt(r)?(n="@",r++):(n=null,l('"@"')),null===n&&(38===t.charCodeAt(r)?(n="&",r++):(n=null,l('"&"')),null===n&&(61===t.charCodeAt(r)?(n="=",r++):(n=null,l('"="')),null===n&&(43===t.charCodeAt(r)?(n="+",r++):(n=null,l('"+"'))))))))));else e=null;return e}function Xe(){var e,t;for(e=[],t=Ye();null!==t;)e.push(t),t=Ye();return e}function Ze(){var e,n,a,o,i,s,c,d;if(c=r,d=r,"sip"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"SIP"')),null!==e)if(47===t.charCodeAt(r)?(n="/",r++):(n=null,l('"/"')),null!==n){if(null!==(o=u()))for(a=[];null!==o;)a.push(o),o=u();else a=null;if(null!==a)if(46===t.charCodeAt(r)?(o=".",r++):(o=null,l('"."')),null!==o){if(null!==(s=u()))for(i=[];null!==s;)i.push(s),s=u();else i=null;null!==i?e=[e,n,a,o,i]:(e=null,r=d)}else e=null,r=d;else e=null,r=d}else e=null,r=d;else e=null,r=d;return null!==e&&(e=function(e){Fn.sip_version=t.substring(r,e)}(c)),null===e&&(r=c),e}function et(){var e;return"INVITE"===t.substr(r,6)?(e="INVITE",r+=6):(e=null,l('"INVITE"')),e}function tt(){var e;return"ACK"===t.substr(r,3)?(e="ACK",r+=3):(e=null,l('"ACK"')),e}function nt(){var e;return"OPTIONS"===t.substr(r,7)?(e="OPTIONS",r+=7):(e=null,l('"OPTIONS"')),e}function at(){var e;return"BYE"===t.substr(r,3)?(e="BYE",r+=3):(e=null,l('"BYE"')),e}function ot(){var e;return"CANCEL"===t.substr(r,6)?(e="CANCEL",r+=6):(e=null,l('"CANCEL"')),e}function rt(){var e;return"REGISTER"===t.substr(r,8)?(e="REGISTER",r+=8):(e=null,l('"REGISTER"')),e}function it(){var e;return"SUBSCRIBE"===t.substr(r,9)?(e="SUBSCRIBE",r+=9):(e=null,l('"SUBSCRIBE"')),e}function st(){var e;return"NOTIFY"===t.substr(r,6)?(e="NOTIFY",r+=6):(e=null,l('"NOTIFY"')),e}function lt(){var e;return"REFER"===t.substr(r,5)?(e="REFER",r+=5):(e=null,l('"REFER"')),e}function ct(){var e,n;return n=r,null===(e=et())&&null===(e=tt())&&null===(e=nt())&&null===(e=at())&&null===(e=ot())&&null===(e=rt())&&null===(e=it())&&null===(e=st())&&null===(e=lt())&&(e=x()),null!==e&&(e=function(e){return Fn.method=t.substring(r,e),Fn.method}(n)),null===e&&(r=n),e}function ut(){var e,t,n,a,o,i;return i=r,null!==(e=Ze())&&null!==(t=h())&&null!==(n=dt())&&null!==(a=h())&&null!==(o=mt())?e=[e,t,n,a,o]:(e=null,r=i),e}function dt(){var e,t,n;return t=r,null!==(e=ft())&&(n=e,e=void(Fn.status_code=parseInt(n.join("")))),null===e&&(r=t),e}function ft(){var e,t,n,a;return a=r,null!==(e=u())&&null!==(t=u())&&null!==(n=u())?e=[e,t,n]:(e=null,r=a),e}function mt(){var e,n,a;for(a=r,e=[],null===(n=y())&&null===(n=v())&&null===(n=S())&&null===(n=k())&&null===(n=D())&&null===(n=h())&&(n=_());null!==n;)e.push(n),null===(n=y())&&null===(n=v())&&null===(n=S())&&null===(n=k())&&null===(n=D())&&null===(n=h())&&(n=_());return null!==e&&(e=function(e){Fn.reason_phrase=t.substring(r,e)}(a)),null===e&&(r=a),e}function pt(){var e,t,n,a,o,i,s;if(o=r,i=r,null===(e=K())&&(e=gt()),null!==e){for(t=[],s=r,null!==(n=q())&&null!==(a=_t())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=q())&&null!==(a=_t())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;return null!==e&&(e=function(e){var t;Fn.multi_header||(Fn.multi_header=[]);try{t=new jn(Fn.uri,Fn.display_name,Fn.params),delete Fn.uri,delete Fn.display_name,delete Fn.params}catch(e){t=null}Fn.multi_header.push({possition:r,offset:e,parsed:t})}(o)),null===e&&(r=o),e}function gt(){var e,t,n,a,o;return o=r,null!==(e=null!==(e=ht())?e:"")&&null!==(t=j())&&null!==(n=J())&&null!==(a=U())?e=[e,t,n,a]:(e=null,r=o),e}function ht(){var e,t,n,a,o,i,s,l;if(o=r,i=r,null!==(e=x())){for(t=[],s=r,null!==(n=w())&&null!==(a=x())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=w())&&null!==(a=x())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;return null===e&&(e=W()),null!==e&&(l=e,e=void(Fn.display_name="string"==typeof l?l:l[1].reduce((function(e,t){return e+t[0]+t[1]}),l[0]))),null===e&&(r=o),e}function _t(){var e;return null===(e=bt())&&null===(e=yt())&&(e=St()),e}function bt(){var e,n,a,o,i,s;return o=r,i=r,"q"===t.substr(r,1).toLowerCase()?(e=t.substr(r,1),r++):(e=null,l('"q"')),null!==e&&null!==(n=N())&&null!==(a=At())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],Fn.params||(Fn.params={}),e=void(Fn.params.q=s)),null===e&&(r=o),e}function yt(){var e,n,a,o,i,s;return o=r,i=r,"expires"===t.substr(r,7).toLowerCase()?(e=t.substr(r,7),r+=7):(e=null,l('"expires"')),null!==e&&null!==(n=N())&&null!==(a=vt())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],Fn.params||(Fn.params={}),e=void(Fn.params.expires=s)),null===e&&(r=o),e}function vt(){var e,t,n;if(n=r,null!==(t=u()))for(e=[];null!==t;)e.push(t),t=u();else e=null;return null!==e&&(e=parseInt(e.join(""))),null===e&&(r=n),e}function At(){var e,n,a,o,i,s,c,d;return s=r,c=r,48===t.charCodeAt(r)?(e="0",r++):(e=null,l('"0"')),null!==e?(d=r,46===t.charCodeAt(r)?(n=".",r++):(n=null,l('"."')),null!==n&&null!==(a=null!==(a=u())?a:"")&&null!==(o=null!==(o=u())?o:"")&&null!==(i=null!==(i=u())?i:"")?n=[n,a,o,i]:(n=null,r=d),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=c)):(e=null,r=c),null!==e&&(e=function(e){return parseFloat(t.substring(r,e))}(s)),null===e&&(r=s),e}function St(){var e,t,n,a,o,i,s,l;return a=r,o=r,null!==(e=x())?(i=r,null!==(t=N())&&null!==(n=wt())?t=[t,n]:(t=null,r=i),null!==(t=null!==t?t:"")?e=[e,t]:(e=null,r=o)):(e=null,r=o),null!==e&&(s=e[0],l=e[1],Fn.params||(Fn.params={}),l=void 0===l?void 0:l[1],e=void(Fn.params[s.toLowerCase()]=l)),null===e&&(r=a),e}function wt(){var e;return null===(e=x())&&null===(e=ie())&&(e=V()),e}function Et(){var e;return"render"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"render"')),null===e&&("session"===t.substr(r,7).toLowerCase()?(e=t.substr(r,7),r+=7):(e=null,l('"session"')),null===e&&("icon"===t.substr(r,4).toLowerCase()?(e=t.substr(r,4),r+=4):(e=null,l('"icon"')),null===e&&("alert"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"alert"')),null===e&&(e=x())))),e}function Ct(){var e;return null===(e=Tt())&&(e=St()),e}function Tt(){var e,n,a,o;return o=r,"handling"===t.substr(r,8).toLowerCase()?(e=t.substr(r,8),r+=8):(e=null,l('"handling"')),null!==e&&null!==(n=N())?("optional"===t.substr(r,8).toLowerCase()?(a=t.substr(r,8),r+=8):(a=null,l('"optional"')),null===a&&("required"===t.substr(r,8).toLowerCase()?(a=t.substr(r,8),r+=8):(a=null,l('"required"')),null===a&&(a=x())),null!==a?e=[e,n,a]:(e=null,r=o)):(e=null,r=o),e}function It(){var e,t,n,a,o,i,s,l;if(s=r,null!==(e=kt()))if(null!==(t=R()))if(null!==(n=Ot())){for(a=[],l=r,null!==(o=q())&&null!==(i=Rt())?o=[o,i]:(o=null,r=l);null!==o;)a.push(o),l=r,null!==(o=q())&&null!==(i=Rt())?o=[o,i]:(o=null,r=l);null!==a?e=[e,t,n,a]:(e=null,r=s)}else e=null,r=s;else e=null,r=s;else e=null,r=s;return e}function kt(){var e;return null===(e=Dt())&&(e=xt()),e}function Dt(){var e;return"text"===t.substr(r,4).toLowerCase()?(e=t.substr(r,4),r+=4):(e=null,l('"text"')),null===e&&("image"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"image"')),null===e&&("audio"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"audio"')),null===e&&("video"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"video"')),null===e&&("application"===t.substr(r,11).toLowerCase()?(e=t.substr(r,11),r+=11):(e=null,l('"application"')),null===e&&(e=Mt()))))),e}function xt(){var e;return"message"===t.substr(r,7).toLowerCase()?(e=t.substr(r,7),r+=7):(e=null,l('"message"')),null===e&&("multipart"===t.substr(r,9).toLowerCase()?(e=t.substr(r,9),r+=9):(e=null,l('"multipart"')),null===e&&(e=Mt())),e}function Mt(){var e;return null===(e=x())&&(e=Pt()),e}function Pt(){var e,n,a;return a=r,"x-"===t.substr(r,2).toLowerCase()?(e=t.substr(r,2),r+=2):(e=null,l('"x-"')),null!==e&&null!==(n=x())?e=[e,n]:(e=null,r=a),e}function Ot(){var e;return null===(e=Mt())&&(e=x()),e}function Rt(){var e,t,n,a;return a=r,null!==(e=x())&&null!==(t=N())&&null!==(n=Nt())?e=[e,t,n]:(e=null,r=a),e}function Nt(){var e;return null===(e=x())&&(e=V()),e}function Lt(){var e,t,n,a;if(n=r,null!==(t=u()))for(e=[];null!==t;)e.push(t),t=u();else e=null;return null!==e&&(a=e,e=void(Fn.value=parseInt(a.join("")))),null===e&&(r=n),e}function $t(){var e,n,a,o,i,s;if(i=r,null!==(e=M())){for(n=[],s=r,46===t.charCodeAt(r)?(a=".",r++):(a=null,l('"."')),null!==a&&null!==(o=M())?a=[a,o]:(a=null,r=s);null!==a;)n.push(a),s=r,46===t.charCodeAt(r)?(a=".",r++):(a=null,l('"."')),null!==a&&null!==(o=M())?a=[a,o]:(a=null,r=s);null!==n?e=[e,n]:(e=null,r=i)}else e=null,r=i;return e}function Ut(){var e;return null===(e=jt())&&(e=St()),e}function jt(){var e,n,a,o,i,s;return o=r,i=r,"tag"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"tag"')),null!==e&&null!==(n=N())&&null!==(a=x())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.tag=s)),null===e&&(r=o),e}function Ft(){var e,n,a,o,i,s,c,u;if(c=r,"digest"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"Digest"')),null!==e)if(null!==(n=w()))if(null!==(a=Ht())){for(o=[],u=r,null!==(i=F())&&null!==(s=Ht())?i=[i,s]:(i=null,r=u);null!==i;)o.push(i),u=r,null!==(i=F())&&null!==(s=Ht())?i=[i,s]:(i=null,r=u);null!==o?e=[e,n,a,o]:(e=null,r=c)}else e=null,r=c;else e=null,r=c;else e=null,r=c;return null===e&&(e=qt()),e}function qt(){var e,t,n,a,o,i,s,l;if(s=r,null!==(e=x()))if(null!==(t=w()))if(null!==(n=Yt())){for(a=[],l=r,null!==(o=F())&&null!==(i=Yt())?o=[o,i]:(o=null,r=l);null!==o;)a.push(o),l=r,null!==(o=F())&&null!==(i=Yt())?o=[o,i]:(o=null,r=l);null!==a?e=[e,t,n,a]:(e=null,r=s)}else e=null,r=s;else e=null,r=s;else e=null,r=s;return e}function Yt(){var e,t,n,a;return a=r,null!==(e=x())&&null!==(t=N())?(null===(n=x())&&(n=V()),null!==n?e=[e,t,n]:(e=null,r=a)):(e=null,r=a),e}function Ht(){var e;return null===(e=Bt())&&null===(e=Vt())&&null===(e=Qt())&&null===(e=Kt())&&null===(e=Jt())&&null===(e=Xt())&&null===(e=Zt())&&(e=Yt()),e}function Bt(){var e,n,a,o;return o=r,"realm"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"realm"')),null!==e&&null!==(n=N())&&null!==(a=Gt())?e=[e,n,a]:(e=null,r=o),e}function Gt(){var e,t,n;return t=r,null!==(e=W())&&(n=e,e=void(Fn.realm=n)),null===e&&(r=t),e}function Vt(){var e,n,a,o,i,s,c,u,d;if(u=r,"domain"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"domain"')),null!==e)if(null!==(n=N()))if(null!==(a=H()))if(null!==(o=Wt())){if(i=[],d=r,null!==(c=h()))for(s=[];null!==c;)s.push(c),c=h();else s=null;for(null!==s&&null!==(c=Wt())?s=[s,c]:(s=null,r=d);null!==s;){if(i.push(s),d=r,null!==(c=h()))for(s=[];null!==c;)s.push(c),c=h();else s=null;null!==s&&null!==(c=Wt())?s=[s,c]:(s=null,r=d)}null!==i&&null!==(s=B())?e=[e,n,a,o,i,s]:(e=null,r=u)}else e=null,r=u;else e=null,r=u;else e=null,r=u;else e=null,r=u;return e}function Wt(){var e;return null===(e=$e())&&(e=Fe()),e}function Qt(){var e,n,a,o;return o=r,"nonce"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"nonce"')),null!==e&&null!==(n=N())&&null!==(a=zt())?e=[e,n,a]:(e=null,r=o),e}function zt(){var e,t,n;return t=r,null!==(e=W())&&(n=e,e=void(Fn.nonce=n)),null===e&&(r=t),e}function Kt(){var e,n,a,o,i,s;return o=r,i=r,"opaque"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"opaque"')),null!==e&&null!==(n=N())&&null!==(a=W())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.opaque=s)),null===e&&(r=o),e}function Jt(){var e,n,a,o,i;return o=r,"stale"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"stale"')),null!==e&&null!==(n=N())?(i=r,"true"===t.substr(r,4).toLowerCase()?(a=t.substr(r,4),r+=4):(a=null,l('"true"')),null!==a&&(a=void(Fn.stale=!0)),null===a&&(r=i),null===a&&(i=r,"false"===t.substr(r,5).toLowerCase()?(a=t.substr(r,5),r+=5):(a=null,l('"false"')),null!==a&&(a=void(Fn.stale=!1)),null===a&&(r=i)),null!==a?e=[e,n,a]:(e=null,r=o)):(e=null,r=o),e}function Xt(){var e,n,a,o,i,s;return o=r,i=r,"algorithm"===t.substr(r,9).toLowerCase()?(e=t.substr(r,9),r+=9):(e=null,l('"algorithm"')),null!==e&&null!==(n=N())?("md5"===t.substr(r,3).toLowerCase()?(a=t.substr(r,3),r+=3):(a=null,l('"MD5"')),null===a&&("md5-sess"===t.substr(r,8).toLowerCase()?(a=t.substr(r,8),r+=8):(a=null,l('"MD5-sess"')),null===a&&(a=x())),null!==a?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.algorithm=s.toUpperCase())),null===e&&(r=o),e}function Zt(){var e,n,a,o,i,s,c,u,d,f;if(u=r,"qop"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"qop"')),null!==e)if(null!==(n=N()))if(null!==(a=H())){if(d=r,null!==(o=en())){for(i=[],f=r,44===t.charCodeAt(r)?(s=",",r++):(s=null,l('","')),null!==s&&null!==(c=en())?s=[s,c]:(s=null,r=f);null!==s;)i.push(s),f=r,44===t.charCodeAt(r)?(s=",",r++):(s=null,l('","')),null!==s&&null!==(c=en())?s=[s,c]:(s=null,r=f);null!==i?o=[o,i]:(o=null,r=d)}else o=null,r=d;null!==o&&null!==(i=B())?e=[e,n,a,o,i]:(e=null,r=u)}else e=null,r=u;else e=null,r=u;else e=null,r=u;return e}function en(){var e,n,a;return n=r,"auth-int"===t.substr(r,8).toLowerCase()?(e=t.substr(r,8),r+=8):(e=null,l('"auth-int"')),null===e&&("auth"===t.substr(r,4).toLowerCase()?(e=t.substr(r,4),r+=4):(e=null,l('"auth"')),null===e&&(e=x())),null!==e&&(a=e,Fn.qop||(Fn.qop=[]),e=void Fn.qop.push(a.toLowerCase())),null===e&&(r=n),e}function tn(){var e,t,n,a,o,i,s;if(o=r,i=r,null!==(e=gt())){for(t=[],s=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=s);null!==n;)t.push(n),s=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=s);null!==t?e=[e,t]:(e=null,r=i)}else e=null,r=i;return null!==e&&(e=function(e){var t;Fn.multi_header||(Fn.multi_header=[]);try{t=new jn(Fn.uri,Fn.display_name,Fn.params),delete Fn.uri,delete Fn.display_name,delete Fn.params}catch(e){t=null}Fn.multi_header.push({possition:r,offset:e,parsed:t})}(o)),null===e&&(r=o),e}function nn(){var e;return null===(e=an())&&(e=St()),e}function an(){var e,n,a,o,i,s,c;if(i=r,s=r,"cause"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"cause"')),null!==e)if(null!==(n=N())){if(null!==(o=u()))for(a=[];null!==o;)a.push(o),o=u();else a=null;null!==a?e=[e,n,a]:(e=null,r=s)}else e=null,r=s;else e=null,r=s;return null!==e&&(c=e[2],e=void(Fn.cause=parseInt(c.join("")))),null===e&&(r=i),e}function on(){var e,t,n,a,o,i;if(o=r,null!==(e=gt())){for(t=[],i=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=i);null!==n;)t.push(n),i=r,null!==(n=q())&&null!==(a=St())?n=[n,a]:(n=null,r=i);null!==t?e=[e,t]:(e=null,r=o)}else e=null,r=o;return e}function rn(){var e,n;return n=r,"active"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"active"')),null===e&&("pending"===t.substr(r,7).toLowerCase()?(e=t.substr(r,7),r+=7):(e=null,l('"pending"')),null===e&&("terminated"===t.substr(r,10).toLowerCase()?(e=t.substr(r,10),r+=10):(e=null,l('"terminated"')),null===e&&(e=x()))),null!==e&&(e=function(e){Fn.state=t.substring(r,e)}(n)),null===e&&(r=n),e}function sn(){var e,n,a,o,i,s,c,u;return o=r,i=r,"reason"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"reason"')),null!==e&&null!==(n=N())&&null!==(a=ln())?e=[e,n,a]:(e=null,r=i),null!==e&&(e=void(void 0!==(s=e[2])&&(Fn.reason=s))),null===e&&(r=o),null===e&&(o=r,i=r,"expires"===t.substr(r,7).toLowerCase()?(e=t.substr(r,7),r+=7):(e=null,l('"expires"')),null!==e&&null!==(n=N())&&null!==(a=vt())?e=[e,n,a]:(e=null,r=i),null!==e&&(e=void(void 0!==(u=e[2])&&(Fn.expires=u))),null===e&&(r=o),null===e&&(o=r,i=r,"retry_after"===t.substr(r,11).toLowerCase()?(e=t.substr(r,11),r+=11):(e=null,l('"retry_after"')),null!==e&&null!==(n=N())&&null!==(a=vt())?e=[e,n,a]:(e=null,r=i),null!==e&&(e=void(void 0!==(c=e[2])&&(Fn.retry_after=c))),null===e&&(r=o),null===e&&(e=St()))),e}function ln(){var e;return"deactivated"===t.substr(r,11).toLowerCase()?(e=t.substr(r,11),r+=11):(e=null,l('"deactivated"')),null===e&&("probation"===t.substr(r,9).toLowerCase()?(e=t.substr(r,9),r+=9):(e=null,l('"probation"')),null===e&&("rejected"===t.substr(r,8).toLowerCase()?(e=t.substr(r,8),r+=8):(e=null,l('"rejected"')),null===e&&("timeout"===t.substr(r,7).toLowerCase()?(e=t.substr(r,7),r+=7):(e=null,l('"timeout"')),null===e&&("giveup"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"giveup"')),null===e&&("noresource"===t.substr(r,10).toLowerCase()?(e=t.substr(r,10),r+=10):(e=null,l('"noresource"')),null===e&&("invariant"===t.substr(r,9).toLowerCase()?(e=t.substr(r,9),r+=9):(e=null,l('"invariant"')),null===e&&(e=x()))))))),e}function cn(){var e;return null===(e=jt())&&(e=St()),e}function un(){var e,t,n,a,o,i,s,l;if(s=r,null!==(e=bn()))if(null!==(t=w()))if(null!==(n=An())){for(a=[],l=r,null!==(o=q())&&null!==(i=dn())?o=[o,i]:(o=null,r=l);null!==o;)a.push(o),l=r,null!==(o=q())&&null!==(i=dn())?o=[o,i]:(o=null,r=l);null!==a?e=[e,t,n,a]:(e=null,r=s)}else e=null,r=s;else e=null,r=s;else e=null,r=s;return e}function dn(){var e;return null===(e=fn())&&null===(e=mn())&&null===(e=pn())&&null===(e=gn())&&null===(e=hn())&&(e=St()),e}function fn(){var e,n,a,o,i,s;return o=r,i=r,"ttl"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"ttl"')),null!==e&&null!==(n=N())&&null!==(a=En())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.ttl=s)),null===e&&(r=o),e}function mn(){var e,n,a,o,i,s;return o=r,i=r,"maddr"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"maddr"')),null!==e&&null!==(n=N())&&null!==(a=ie())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.maddr=s)),null===e&&(r=o),e}function pn(){var e,n,a,o,i,s;return o=r,i=r,"received"===t.substr(r,8).toLowerCase()?(e=t.substr(r,8),r+=8):(e=null,l('"received"')),null!==e&&null!==(n=N())?(null===(a=pe())&&(a=de()),null!==a?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.received=s)),null===e&&(r=o),e}function gn(){var e,n,a,o,i,s;return o=r,i=r,"branch"===t.substr(r,6).toLowerCase()?(e=t.substr(r,6),r+=6):(e=null,l('"branch"')),null!==e&&null!==(n=N())&&null!==(a=x())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.branch=s)),null===e&&(r=o),e}function hn(){var e,n,a,o,i;return o=r,"rport"===t.substr(r,5).toLowerCase()?(e=t.substr(r,5),r+=5):(e=null,l('"rport"')),null!==e?(i=r,null!==(n=N())&&null!==(a=_n())?n=[n,a]:(n=null,r=i),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=o)):(e=null,r=o),e}function _n(){var e,t,n,a,o,i,s,l;return i=r,s=r,null!==(e=null!==(e=u())?e:"")&&null!==(t=null!==(t=u())?t:"")&&null!==(n=null!==(n=u())?n:"")&&null!==(a=null!==(a=u())?a:"")&&null!==(o=null!==(o=u())?o:"")?e=[e,t,n,a,o]:(e=null,r=s),null!==e&&(l=e,e=void(Fn.rport=parseInt(l.join("")))),null===e&&(r=i),e}function bn(){var e,t,n,a,o,i;return i=r,null!==(e=yn())&&null!==(t=R())&&null!==(n=x())&&null!==(a=R())&&null!==(o=vn())?e=[e,t,n,a,o]:(e=null,r=i),e}function yn(){var e,n,a;return n=r,"sip"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"SIP"')),null===e&&(e=x()),null!==e&&(a=e,e=void(Fn.protocol=a)),null===e&&(r=n),e}function vn(){var e,n,a;return n=r,"udp"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"UDP"')),null===e&&("tcp"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"TCP"')),null===e&&("tls"===t.substr(r,3).toLowerCase()?(e=t.substr(r,3),r+=3):(e=null,l('"TLS"')),null===e&&("sctp"===t.substr(r,4).toLowerCase()?(e=t.substr(r,4),r+=4):(e=null,l('"SCTP"')),null===e&&(e=x())))),null!==e&&(a=e,e=void(Fn.transport=a)),null===e&&(r=n),e}function An(){var e,t,n,a,o;return a=r,null!==(e=Sn())?(o=r,null!==(t=Y())&&null!==(n=wn())?t=[t,n]:(t=null,r=o),null!==(t=null!==t?t:"")?e=[e,t]:(e=null,r=a)):(e=null,r=a),e}function Sn(){var e,n;return n=r,null===(e=pe())&&null===(e=ue())&&(e=se()),null!==e&&(e=function(e){Fn.host=t.substring(r,e)}(n)),null===e&&(r=n),e}function wn(){var e,t,n,a,o,i,s,l;return i=r,s=r,null!==(e=null!==(e=u())?e:"")&&null!==(t=null!==(t=u())?t:"")&&null!==(n=null!==(n=u())?n:"")&&null!==(a=null!==(a=u())?a:"")&&null!==(o=null!==(o=u())?o:"")?e=[e,t,n,a,o]:(e=null,r=s),null!==e&&(l=e,e=void(Fn.port=parseInt(l.join("")))),null===e&&(r=i),e}function En(){var e,t,n,a,o;return a=r,o=r,null!==(e=u())&&null!==(t=null!==(t=u())?t:"")&&null!==(n=null!==(n=u())?n:"")?e=[e,t,n]:(e=null,r=o),null!==e&&(e=parseInt(e.join(""))),null===e&&(r=a),e}function Cn(){var e,t,n;return t=r,null!==(e=vt())&&(n=e,e=void(Fn.expires=n)),null===e&&(r=t),e}function Tn(){var e;return null===(e=In())&&(e=St()),e}function In(){var e,n,a,o,i,s;return o=r,i=r,"refresher"===t.substr(r,9).toLowerCase()?(e=t.substr(r,9),r+=9):(e=null,l('"refresher"')),null!==e&&null!==(n=N())?("uac"===t.substr(r,3).toLowerCase()?(a=t.substr(r,3),r+=3):(a=null,l('"uac"')),null===a&&("uas"===t.substr(r,3).toLowerCase()?(a=t.substr(r,3),r+=3):(a=null,l('"uas"'))),null!==a?e=[e,n,a]:(e=null,r=i)):(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.refresher=s.toLowerCase())),null===e&&(r=o),e}function kn(){var e,t;for(e=[],null===(t=I())&&null===(t=D())&&(t=w());null!==t;)e.push(t),null===(t=I())&&null===(t=D())&&(t=w());return e}function Dn(){var e,n,a,o,i,s,c,u,d,f,m;return f=r,m=r,null!==(e=Mn())?(45===t.charCodeAt(r)?(n="-",r++):(n=null,l('"-"')),null!==n&&null!==(a=xn())?(45===t.charCodeAt(r)?(o="-",r++):(o=null,l('"-"')),null!==o&&null!==(i=xn())?(45===t.charCodeAt(r)?(s="-",r++):(s=null,l('"-"')),null!==s&&null!==(c=xn())?(45===t.charCodeAt(r)?(u="-",r++):(u=null,l('"-"')),null!==u&&null!==(d=Pn())?e=[e,n,a,o,i,s,c,u,d]:(e=null,r=m)):(e=null,r=m)):(e=null,r=m)):(e=null,r=m)):(e=null,r=m),null!==e&&(e=function(e,n){Fn=t.substring(r+5,e)}(f,e[0])),null===e&&(r=f),e}function xn(){var e,t,n,a,o;return o=r,null!==(e=f())&&null!==(t=f())&&null!==(n=f())&&null!==(a=f())?e=[e,t,n,a]:(e=null,r=o),e}function Mn(){var e,t,n;return n=r,null!==(e=xn())&&null!==(t=xn())?e=[e,t]:(e=null,r=n),e}function Pn(){var e,t,n,a;return a=r,null!==(e=xn())&&null!==(t=xn())&&null!==(n=xn())?e=[e,t,n]:(e=null,r=a),e}function On(){var e,n,a,o,i,s;return o=r,i=r,null!==(e=P())?(s=r,64===t.charCodeAt(r)?(n="@",r++):(n=null,l('"@"')),null!==n&&null!==(a=P())?n=[n,a]:(n=null,r=s),null!==(n=null!==n?n:"")?e=[e,n]:(e=null,r=i)):(e=null,r=i),null!==e&&(e=function(e){Fn.call_id=t.substring(r,e)}(o)),null===e&&(r=o),e}function Rn(){var e;return null===(e=Nn())&&null===(e=Ln())&&null===(e=$n())&&(e=St()),e}function Nn(){var e,n,a,o,i,s;return o=r,i=r,"to-tag"===t.substr(r,6)?(e="to-tag",r+=6):(e=null,l('"to-tag"')),null!==e&&null!==(n=N())&&null!==(a=x())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.to_tag=s)),null===e&&(r=o),e}function Ln(){var e,n,a,o,i,s;return o=r,i=r,"from-tag"===t.substr(r,8)?(e="from-tag",r+=8):(e=null,l('"from-tag"')),null!==e&&null!==(n=N())&&null!==(a=x())?e=[e,n,a]:(e=null,r=i),null!==e&&(s=e[2],e=void(Fn.from_tag=s)),null===e&&(r=o),e}function $n(){var e,n;return n=r,"early-only"===t.substr(r,10)?(e="early-only",r+=10):(e=null,l('"early-only"')),null!==e&&(e=void(Fn.early_only=!0)),null===e&&(r=n),e}var Un=n("./node_modules/jssip/lib-es5/URI.js"),jn=n("./node_modules/jssip/lib-es5/NameAddrHeader.js"),Fn={};if(null===o[a]()||r!==t.length){var qn=Math.max(r,i),Yn=qn<t.length?t.charAt(qn):null,Hn=function(){for(var e=1,n=1,a=!1,o=0;o<Math.max(r,i);o++){var s=t.charAt(o);"\n"===s?(a||e++,n=1,a=!1):"\r"===s||"\u2028"===s||"\u2029"===s?(e++,n=1,a=!0):(n++,a=!1)}return{line:e,column:n}}();return new this.SyntaxError(function(e){e.sort();for(var t=null,n=[],a=0;a<e.length;a++)e[a]!==t&&(n.push(e[a]),t=e[a]);return n}(s),Yn,qn,Hn.line,Hn.column),-1}return Fn},toSource:function(){return this._source},SyntaxError:function(t,n,a,o,r){this.name="SyntaxError",this.expected=t,this.found=n,this.message=function(t,n){var a;switch(t.length){case 0:a="end of input";break;case 1:a=t[0];break;default:a=t.slice(0,t.length-1).join(", ")+" or "+t[t.length-1]}return"Expected "+a+" but "+(n?e(n):"end of input")+" found."}(t,n),this.offset=a,this.line=o,this.column=r}};return t.SyntaxError.prototype=Error.prototype,t}()},"./node_modules/jssip/lib-es5/JsSIP.js":(e,t,n)=>{"use strict";var a=n("./node_modules/jssip/package.json"),o=n("./node_modules/jssip/lib-es5/Constants.js"),r=n("./node_modules/jssip/lib-es5/Exceptions.js"),i=n("./node_modules/jssip/lib-es5/Utils.js"),s=n("./node_modules/jssip/lib-es5/UA.js"),l=n("./node_modules/jssip/lib-es5/URI.js"),c=n("./node_modules/jssip/lib-es5/NameAddrHeader.js"),u=n("./node_modules/jssip/lib-es5/Grammar.js"),d=n("./node_modules/jssip/lib-es5/WebSocketInterface.js");n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP")("version %s",a.version),e.exports={C:o,Exceptions:r,Utils:i,UA:s,URI:l,NameAddrHeader:c,WebSocketInterface:d,Grammar:u,debug:n("./node_modules/jssip/node_modules/debug/src/browser.js"),get name(){return a.title},get version(){return a.version}}},"./node_modules/jssip/lib-es5/Message.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=n("./node_modules/events/events.js").EventEmitter,u=n("./node_modules/jssip/lib-es5/Constants.js"),d=n("./node_modules/jssip/lib-es5/SIPMessage.js"),f=n("./node_modules/jssip/lib-es5/Utils.js"),m=n("./node_modules/jssip/lib-es5/RequestSender.js"),p=n("./node_modules/jssip/lib-es5/Exceptions.js"),g=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:Message");e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,n,a,s=i(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this))._ua=e,t._request=null,t._closed=!1,t._direction=null,t._local_identity=null,t._remote_identity=null,t._is_replied=!1,t._data={},t}return t=l,(n=[{key:"send",value:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e;if(void 0===e||void 0===t)throw new TypeError("Not enough arguments");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: ".concat(o));var r=f.cloneArray(a.extraHeaders),i=f.cloneObject(a.eventHandlers),s=a.contentType||"text/plain";for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&this.on(l,i[l]);r.push("Content-Type: ".concat(s)),this._request=new d.OutgoingRequest(u.MESSAGE,e,this._ua,null,r),t&&(this._request.body=t);var c=new m(this._ua,this._request,{onRequestTimeout:function(){n._onRequestTimeout()},onTransportError:function(){n._onTransportError()},onReceiveResponse:function(e){n._receiveResponse(e)}});this._newMessage("local",this._request),c.send()}},{key:"init_incoming",value:function(e){this._request=e,this._newMessage("remote",e),this._is_replied||(this._is_replied=!0,e.reply(200)),this._close()}},{key:"accept",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f.cloneArray(e.extraHeaders),n=e.body;if("incoming"!==this._direction)throw new p.NotSupportedError('"accept" not supported for outgoing Message');if(this._is_replied)throw new Error("incoming Message already replied");this._is_replied=!0,this._request.reply(200,null,t,n)}},{key:"reject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.status_code||480,n=e.reason_phrase,a=f.cloneArray(e.extraHeaders),o=e.body;if("incoming"!==this._direction)throw new p.NotSupportedError('"reject" not supported for outgoing Message');if(this._is_replied)throw new Error("incoming Message already replied");if(t<300||t>=700)throw new TypeError("Invalid status_code: ".concat(t));this._is_replied=!0,this._request.reply(t,n,a,o)}},{key:"_receiveResponse",value:function(e){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(e.status_code):break;case/^2[0-9]{2}$/.test(e.status_code):this._succeeded("remote",e);break;default:var t=f.sipErrorCause(e.status_code);this._failed("remote",e,t)}}},{key:"_onRequestTimeout",value:function(){this._closed||this._failed("system",null,u.causes.REQUEST_TIMEOUT)}},{key:"_onTransportError",value:function(){this._closed||this._failed("system",null,u.causes.CONNECTION_ERROR)}},{key:"_close",value:function(){this._closed=!0,this._ua.destroyMessage(this)}},{key:"_newMessage",value:function(e,t){"remote"===e?(this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from):"local"===e&&(this._direction="outgoing",this._local_identity=t.from,this._remote_identity=t.to),this._ua.newMessage(this,{originator:e,message:this,request:t})}},{key:"_failed",value:function(e,t,n){g("MESSAGE failed"),this._close(),g('emit "failed"'),this.emit("failed",{originator:e,response:t||null,cause:n})}},{key:"_succeeded",value:function(e,t){g("MESSAGE succeeded"),this._close(),g('emit "succeeded"'),this.emit("succeeded",{originator:e,response:t})}},{key:"direction",get:function(){return this._direction}},{key:"local_identity",get:function(){return this._local_identity}},{key:"remote_identity",get:function(){return this._remote_identity}}])&&o(t.prototype,n),a&&o(t,a),l}(c)},"./node_modules/jssip/lib-es5/NameAddrHeader.js":(e,t,n)=>{"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var r=n("./node_modules/jssip/lib-es5/URI.js"),i=n("./node_modules/jssip/lib-es5/Grammar.js");e.exports=function(){function e(t,n,a){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!(t&&t instanceof r))throw new TypeError('missing or invalid "uri" parameter');for(var o in this._uri=t,this._parameters={},this.display_name=n,a)Object.prototype.hasOwnProperty.call(a,o)&&this.setParam(o,a[o])}return o(e,null,[{key:"parse",value:function(e){return-1!==(e=i.parse(e,"Name_Addr_Header"))?e:void 0}}]),o(e,[{key:"setParam",value:function(e,t){e&&(this._parameters[e.toLowerCase()]=null==t?null:t.toString())}},{key:"getParam",value:function(e){if(e)return this._parameters[e.toLowerCase()]}},{key:"hasParam",value:function(e){if(e)return!!this._parameters.hasOwnProperty(e.toLowerCase())}},{key:"deleteParam",value:function(e){if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e)){var t=this._parameters[e];return delete this._parameters[e],t}}},{key:"clearParams",value:function(){this._parameters={}}},{key:"clone",value:function(){return new e(this._uri.clone(),this._display_name,JSON.parse(JSON.stringify(this._parameters)))}},{key:"_quote",value:function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}},{key:"toString",value:function(){var e=this._display_name?'"'.concat(this._quote(this._display_name),'" '):"";for(var t in e+="<".concat(this._uri.toString(),">"),this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(e+=";".concat(t),null!==this._parameters[t]&&(e+="=".concat(this._parameters[t])));return e}},{key:"uri",get:function(){return this._uri}},{key:"display_name",get:function(){return this._display_name},set:function(e){this._display_name=0===e?"0":e}}]),e}()},"./node_modules/jssip/lib-es5/Parser.js":(e,t,n)=>{"use strict";function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var r=n("./node_modules/jssip/lib-es5/Grammar.js"),i=n("./node_modules/jssip/lib-es5/SIPMessage.js"),s=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:Parser");function l(e,t){var n=t,a=0,o=0;if(e.substring(n,n+2).match(/(^\r\n)/))return-2;for(;0===a;){if(-1===(o=e.indexOf("\r\n",n)))return o;!e.substring(o+2,o+4).match(/(^\r\n)/)&&e.charAt(o+2).match(/(^\s+)/)?n=o+2:a=o}return a}function c(e,t,n,o){var s,l=t.indexOf(":",n),c=t.substring(n,l).trim(),u=t.substring(l+1,o).trim();switch(c.toLowerCase()){case"via":case"v":e.addHeader("via",u),1===e.getHeaders("via").length?(s=e.parseHeader("Via"))&&(e.via=s,e.via_branch=s.branch):s=0;break;case"from":case"f":e.setHeader("from",u),(s=e.parseHeader("from"))&&(e.from=s,e.from_tag=s.getParam("tag"));break;case"to":case"t":e.setHeader("to",u),(s=e.parseHeader("to"))&&(e.to=s,e.to_tag=s.getParam("tag"));break;case"record-route":if(-1===(s=r.parse(u,"Record_Route")))s=void 0;else{var d,f=a(s);try{for(f.s();!(d=f.n()).done;){var m=d.value;e.addHeader("record-route",u.substring(m.possition,m.offset)),e.headers["Record-Route"][e.getHeaders("record-route").length-1].parsed=m.parsed}}catch(e){f.e(e)}finally{f.f()}}break;case"call-id":case"i":e.setHeader("call-id",u),(s=e.parseHeader("call-id"))&&(e.call_id=u);break;case"contact":case"m":if(-1===(s=r.parse(u,"Contact")))s=void 0;else{var p,g=a(s);try{for(g.s();!(p=g.n()).done;){var h=p.value;e.addHeader("contact",u.substring(h.possition,h.offset)),e.headers.Contact[e.getHeaders("contact").length-1].parsed=h.parsed}}catch(e){g.e(e)}finally{g.f()}}break;case"content-length":case"l":e.setHeader("content-length",u),s=e.parseHeader("content-length");break;case"content-type":case"c":e.setHeader("content-type",u),s=e.parseHeader("content-type");break;case"cseq":e.setHeader("cseq",u),(s=e.parseHeader("cseq"))&&(e.cseq=s.value),e instanceof i.IncomingResponse&&(e.method=s.method);break;case"max-forwards":e.setHeader("max-forwards",u),s=e.parseHeader("max-forwards");break;case"www-authenticate":e.setHeader("www-authenticate",u),s=e.parseHeader("www-authenticate");break;case"proxy-authenticate":e.setHeader("proxy-authenticate",u),s=e.parseHeader("proxy-authenticate");break;case"session-expires":case"x":e.setHeader("session-expires",u),(s=e.parseHeader("session-expires"))&&(e.session_expires=s.expires,e.session_expires_refresher=s.refresher);break;case"refer-to":case"r":e.setHeader("refer-to",u),(s=e.parseHeader("refer-to"))&&(e.refer_to=s);break;case"replaces":e.setHeader("replaces",u),(s=e.parseHeader("replaces"))&&(e.replaces=s);break;case"event":case"o":e.setHeader("event",u),(s=e.parseHeader("event"))&&(e.event=s);break;default:e.addHeader(c,u),s=0}return void 0!==s||{error:'error parsing header "'.concat(c,'"')}}s.log=console.warn.bind(console),t.parseMessage=function(e,t){var n,a,o=e.indexOf("\r\n");if(-1!==o){var u=e.substring(0,o),d=r.parse(u,"Request_Response");if(-1!==d){d.status_code?((n=new i.IncomingResponse).status_code=d.status_code,n.reason_phrase=d.reason_phrase):((n=new i.IncomingRequest(t)).method=d.method,n.ruri=d.uri),n.data=e;for(var f=o+2;;){if(-2===(o=l(e,f))){a=f+2;break}if(-1===o)return void s("parseMessage() | malformed message");if(!0!==(d=c(n,e,f,o)))return void s("parseMessage() |",d.error);f=o+2}if(n.hasHeader("content-length")){var m=n.getHeader("content-length");n.body=e.substr(a,m)}else n.body=e.substring(a);return n}s('parseMessage() | error parsing first line of SIP message: "'.concat(u,'"'))}else s("parseMessage() | no CRLF found, not a SIP message")}},"./node_modules/jssip/lib-es5/RTCSession.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=n("./node_modules/events/events.js").EventEmitter,m=n("./node_modules/sdp-transform/lib/index.js"),p=n("./node_modules/jssip/lib-es5/Constants.js"),g=n("./node_modules/jssip/lib-es5/Exceptions.js"),h=n("./node_modules/jssip/lib-es5/Transactions.js"),_=n("./node_modules/jssip/lib-es5/Utils.js"),b=n("./node_modules/jssip/lib-es5/Timers.js"),y=n("./node_modules/jssip/lib-es5/SIPMessage.js"),v=n("./node_modules/jssip/lib-es5/Dialog.js"),A=n("./node_modules/jssip/lib-es5/RequestSender.js"),S=n("./node_modules/jssip/lib-es5/RTCSession/DTMF.js"),w=n("./node_modules/jssip/lib-es5/RTCSession/Info.js"),E=n("./node_modules/jssip/lib-es5/RTCSession/ReferNotifier.js"),C=n("./node_modules/jssip/lib-es5/RTCSession/ReferSubscriber.js"),T=n("./node_modules/jssip/lib-es5/URI.js"),I=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:RTCSession"),k=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:RTCSession");k.log=console.warn.bind(console);var D={STATUS_NULL:0,STATUS_INVITE_SENT:1,STATUS_1XX_RECEIVED:2,STATUS_INVITE_RECEIVED:3,STATUS_WAITING_FOR_ANSWER:4,STATUS_ANSWERED:5,STATUS_WAITING_FOR_ACK:6,STATUS_CANCELED:7,STATUS_TERMINATED:8,STATUS_CONFIRMED:9},x=["audio","video"];e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,e);var t=c(n);function n(e){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),I("new"),(a=t.call(this))._id=null,a._ua=e,a._status=D.STATUS_NULL,a._dialog=null,a._earlyDialogs={},a._contact=null,a._from_tag=null,a._to_tag=null,a._connection=null,a._connectionPromiseQueue=Promise.resolve(),a._request=null,a._is_canceled=!1,a._cancel_reason="",a._is_confirmed=!1,a._late_sdp=!1,a._rtcOfferConstraints=null,a._rtcAnswerConstraints=null,a._localMediaStream=null,a._localMediaStreamLocallyGenerated=!1,a._rtcReady=!0,a._timers={ackTimer:null,expiresTimer:null,invite2xxTimer:null,userNoAnswerTimer:null},a._direction=null,a._local_identity=null,a._remote_identity=null,a._start_time=null,a._end_time=null,a._tones=null,a._audioMuted=!1,a._videoMuted=!1,a._localHold=!1,a._remoteHold=!1,a._sessionTimers={enabled:a._ua.configuration.session_timers,refreshMethod:a._ua.configuration.session_timers_refresh_method,defaultExpires:p.SESSION_EXPIRES,currentExpires:null,running:!1,refresher:!1,timer:null},a._referSubscribers={},a._data={},a}return s(n,null,[{key:"C",get:function(){return D}}]),s(n,[{key:"isInProgress",value:function(){switch(this._status){case D.STATUS_NULL:case D.STATUS_INVITE_SENT:case D.STATUS_1XX_RECEIVED:case D.STATUS_INVITE_RECEIVED:case D.STATUS_WAITING_FOR_ANSWER:return!0;default:return!1}}},{key:"isEstablished",value:function(){switch(this._status){case D.STATUS_ANSWERED:case D.STATUS_WAITING_FOR_ACK:case D.STATUS_CONFIRMED:return!0;default:return!1}}},{key:"isEnded",value:function(){switch(this._status){case D.STATUS_CANCELED:case D.STATUS_TERMINATED:return!0;default:return!1}}},{key:"isMuted",value:function(){return{audio:this._audioMuted,video:this._videoMuted}}},{key:"isOnHold",value:function(){return{local:this._localHold,remote:this._remoteHold}}},{key:"connect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;I("connect()");var a=e,o=_.cloneObject(t.eventHandlers),r=_.cloneArray(t.extraHeaders),i=_.cloneObject(t.mediaConstraints,{audio:!0,video:!0}),s=t.mediaStream||null,l=_.cloneObject(t.pcConfig,{iceServers:[]}),c=t.rtcConstraints||null,u=t.rtcOfferConstraints||null;if(this._rtcOfferConstraints=u,this._rtcAnswerConstraints=t.rtcAnswerConstraints||null,this._data=t.data||this._data,void 0===e)throw new TypeError("Not enough arguments");if(this._status!==D.STATUS_NULL)throw new g.InvalidStateError(this._status);if(!window.RTCPeerConnection)throw new g.NotSupportedError("WebRTC not supported");if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: ".concat(a));for(var d in this._sessionTimers.enabled&&_.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=p.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=p.SESSION_EXPIRES),o)Object.prototype.hasOwnProperty.call(o,d)&&this.on(d,o[d]);this._from_tag=_.newTag();var f=t.anonymous||!1,m={from_tag:this._from_tag};this._contact=this._ua.contact.toString({anonymous:f,outbound:!0}),f?(m.from_display_name="Anonymous",m.from_uri=new T("sip","anonymous","anonymous.invalid"),r.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())),r.push("Privacy: id")):t.fromUserName&&(m.from_uri=new T("sip",t.fromUserName,this._ua.configuration.uri.host),r.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))),t.fromDisplayName&&(m.from_display_name=t.fromDisplayName),r.push("Contact: ".concat(this._contact)),r.push("Content-Type: application/sdp"),this._sessionTimers.enabled&&r.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher?";refresher=uac":"")),this._request=new y.InitialOutgoingInviteRequest(e,this._ua,m,r),this._id=this._request.call_id+this._from_tag,this._createRTCConnection(l,c),this._direction="outgoing",this._local_identity=this._request.from,this._remote_identity=this._request.to,n&&n(this),this._newRTCSession("local",this._request),this._sendInitialRequest(i,u,s)}},{key:"init_incoming",value:function(e,t){var n,a=this;I("init_incoming()");var o=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0;e.body&&"application/sdp"!==o?e.reply(415):(this._status=D.STATUS_INVITE_RECEIVED,this._from_tag=e.from_tag,this._id=e.call_id+this._from_tag,this._request=e,this._contact=this._ua.contact.toString(),e.hasHeader("expires")&&(n=1e3*e.getHeader("expires")),e.to_tag=_.newTag(),this._createDialog(e,"UAS",!0)?(e.body?this._late_sdp=!1:this._late_sdp=!0,this._status=D.STATUS_WAITING_FOR_ANSWER,this._timers.userNoAnswerTimer=setTimeout((function(){e.reply(408),a._failed("local",null,p.causes.NO_ANSWER)}),this._ua.configuration.no_answer_timeout),n&&(this._timers.expiresTimer=setTimeout((function(){a._status===D.STATUS_WAITING_FOR_ANSWER&&(e.reply(487),a._failed("system",null,p.causes.EXPIRES))}),n)),this._direction="incoming",this._local_identity=e.to,this._remote_identity=e.from,t&&t(this),this._newRTCSession("remote",e),this._status!==D.STATUS_TERMINATED&&(e.reply(180,null,["Contact: ".concat(this._contact)]),this._progress("local",null))):e.reply(500,"Missing Contact header field"))}},{key:"answer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I("answer()");var n=this._request,a=_.cloneArray(t.extraHeaders),r=_.cloneObject(t.mediaConstraints),i=t.mediaStream||null,s=_.cloneObject(t.pcConfig,{iceServers:[]}),l=t.rtcConstraints||null,c=t.rtcAnswerConstraints||null,u=_.cloneObject(t.rtcOfferConstraints),d=!1,f=!1,m=!1,h=!1;if(this._rtcAnswerConstraints=c,this._rtcOfferConstraints=t.rtcOfferConstraints||null,this._data=t.data||this._data,"incoming"!==this._direction)throw new g.NotSupportedError('"answer" not supported for outgoing RTCSession');if(this._status!==D.STATUS_WAITING_FOR_ANSWER)throw new g.InvalidStateError(this._status);if(this._sessionTimers.enabled&&_.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=p.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=p.SESSION_EXPIRES),this._status=D.STATUS_ANSWERED,this._createDialog(n,"UAS")){clearTimeout(this._timers.userNoAnswerTimer),a.unshift("Contact: ".concat(this._contact));var b=n.parseSDP();Array.isArray(b.media)||(b.media=[b.media]);var y,v=o(b.media);try{for(v.s();!(y=v.n()).done;){var A=y.value;"audio"===A.type&&(d=!0,A.direction&&"sendrecv"!==A.direction||(m=!0)),"video"===A.type&&(f=!0,A.direction&&"sendrecv"!==A.direction||(h=!0))}}catch(e){v.e(e)}finally{v.f()}if(i&&!1===r.audio){var S,w=o(i.getAudioTracks());try{for(w.s();!(S=w.n()).done;){var E=S.value;i.removeTrack(E)}}catch(e){w.e(e)}finally{w.f()}}if(i&&!1===r.video){var C,T=o(i.getVideoTracks());try{for(T.s();!(C=T.n()).done;){var x=C.value;i.removeTrack(x)}}catch(e){T.e(e)}finally{T.f()}}i||void 0!==r.audio||(r.audio=m),i||void 0!==r.video||(r.video=h),i||d||u.offerToReceiveAudio||(r.audio=!1),i||f||u.offerToReceiveVideo||(r.video=!1),this._createRTCConnection(s,l),Promise.resolve().then((function(){return i||(r.audio||r.video?(e._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(r).catch((function(t){if(e._status===D.STATUS_TERMINATED)throw new Error("terminated");throw n.reply(480),e._failed("local",null,p.causes.USER_DENIED_MEDIA_ACCESS),k('emit "getusermediafailed" [error:%o]',t),e.emit("getusermediafailed",t),new Error("getUserMedia() failed")}))):void 0)})).then((function(t){if(e._status===D.STATUS_TERMINATED)throw new Error("terminated");e._localMediaStream=t,t&&t.getTracks().forEach((function(n){e._connection.addTrack(n,t)}))})).then((function(){if(!e._late_sdp){var t={originator:"remote",type:"offer",sdp:n.body};I('emit "sdp"'),e.emit("sdp",t);var a=new RTCSessionDescription({type:"offer",sdp:t.sdp});return e._connectionPromiseQueue=e._connectionPromiseQueue.then((function(){return e._connection.setRemoteDescription(a)})).catch((function(t){throw n.reply(488),e._failed("system",null,p.causes.WEBRTC_ERROR),k('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),e.emit("peerconnection:setremotedescriptionfailed",t),new Error("peerconnection.setRemoteDescription() failed")})),e._connectionPromiseQueue}})).then((function(){if(e._status===D.STATUS_TERMINATED)throw new Error("terminated");return e._connecting(n),e._late_sdp?e._createLocalDescription("offer",e._rtcOfferConstraints).catch((function(){throw n.reply(500),new Error("_createLocalDescription() failed")})):e._createLocalDescription("answer",c).catch((function(){throw n.reply(500),new Error("_createLocalDescription() failed")}))})).then((function(t){if(e._status===D.STATUS_TERMINATED)throw new Error("terminated");e._handleSessionTimersInIncomingRequest(n,a),n.reply(200,null,a,t,(function(){e._status=D.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(n,t),e._setACKTimer(),e._accepted("local")}),(function(){e._failed("system",null,p.causes.CONNECTION_ERROR)}))})).catch((function(t){e._status!==D.STATUS_TERMINATED&&k(t)}))}else n.reply(500,"Error creating dialog")}},{key:"terminate",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I("terminate()");var n,a=t.cause||p.causes.BYE,o=_.cloneArray(t.extraHeaders),r=t.body,i=t.status_code,s=t.reason_phrase;if(this._status===D.STATUS_TERMINATED)throw new g.InvalidStateError(this._status);switch(this._status){case D.STATUS_NULL:case D.STATUS_INVITE_SENT:case D.STATUS_1XX_RECEIVED:if(I("canceling session"),i&&(i<200||i>=700))throw new TypeError("Invalid status_code: ".concat(i));i&&(s=s||p.REASON_PHRASE[i]||"",n="SIP ;cause=".concat(i,' ;text="').concat(s,'"')),this._status===D.STATUS_NULL||this._status===D.STATUS_INVITE_SENT?(this._is_canceled=!0,this._cancel_reason=n):this._status===D.STATUS_1XX_RECEIVED&&this._request.cancel(n),this._status=D.STATUS_CANCELED,this._failed("local",null,p.causes.CANCELED);break;case D.STATUS_WAITING_FOR_ANSWER:case D.STATUS_ANSWERED:if(I("rejecting session"),(i=i||480)<300||i>=700)throw new TypeError("Invalid status_code: ".concat(i));this._request.reply(i,s,o,r),this._failed("local",null,p.causes.REJECTED);break;case D.STATUS_WAITING_FOR_ACK:case D.STATUS_CONFIRMED:if(I("terminating session"),s=t.reason_phrase||p.REASON_PHRASE[i]||"",i&&(i<200||i>=700))throw new TypeError("Invalid status_code: ".concat(i));if(i&&o.push("Reason: SIP ;cause=".concat(i,'; text="').concat(s,'"')),this._status===D.STATUS_WAITING_FOR_ACK&&"incoming"===this._direction&&this._request.server_transaction.state!==h.C.STATUS_TERMINATED){var l=this._dialog;this.receiveRequest=function(t){t.method===p.ACK&&(e.sendRequest(p.BYE,{extraHeaders:o,body:r}),l.terminate())},this._request.server_transaction.on("stateChanged",(function(){e._request.server_transaction.state===h.C.STATUS_TERMINATED&&(e.sendRequest(p.BYE,{extraHeaders:o,body:r}),l.terminate())})),this._ended("local",null,a),this._dialog=l,this._ua.newDialog(l)}else this.sendRequest(p.BYE,{extraHeaders:o,body:r}),this._ended("local",null,a)}}},{key:"sendDTMF",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I("sendDTMF() | tones: %s",e);var n=0,a=t.duration||null,o=t.interToneGap||null,r=t.transportType||p.DTMF_TRANSPORT.INFO;if(void 0===e)throw new TypeError("Not enough arguments");if(this._status!==D.STATUS_CONFIRMED&&this._status!==D.STATUS_WAITING_FOR_ACK)throw new g.InvalidStateError(this._status);if(r!==p.DTMF_TRANSPORT.INFO&&r!==p.DTMF_TRANSPORT.RFC2833)throw new TypeError("invalid transportType: ".concat(r));if("number"==typeof e&&(e=e.toString()),!e||"string"!=typeof e||!e.match(/^[0-9A-DR#*,]+$/i))throw new TypeError("Invalid tones: ".concat(e));if(a&&!_.isDecimal(a))throw new TypeError("Invalid tone duration: ".concat(a));if(a?a<S.C.MIN_DURATION?(I('"duration" value is lower than the minimum allowed, setting it to '.concat(S.C.MIN_DURATION," milliseconds")),a=S.C.MIN_DURATION):a>S.C.MAX_DURATION?(I('"duration" value is greater than the maximum allowed, setting it to '.concat(S.C.MAX_DURATION," milliseconds")),a=S.C.MAX_DURATION):a=Math.abs(a):a=S.C.DEFAULT_DURATION,t.duration=a,o&&!_.isDecimal(o))throw new TypeError("Invalid interToneGap: ".concat(o));if(o?o<S.C.MIN_INTER_TONE_GAP?(I('"interToneGap" value is lower than the minimum allowed, setting it to '.concat(S.C.MIN_INTER_TONE_GAP," milliseconds")),o=S.C.MIN_INTER_TONE_GAP):o=Math.abs(o):o=S.C.DEFAULT_INTER_TONE_GAP,r!==p.DTMF_TRANSPORT.RFC2833)this._tones?this._tones+=e:(this._tones=e,s.call(this));else{var i=this._getDTMFRTPSender();i&&(e=i.toneBuffer+e,i.insertDTMF(e,a,o))}function s(){var e,r=this;if(this._status===D.STATUS_TERMINATED||!this._tones||n>=this._tones.length)this._tones=null;else{var i=this._tones[n];if(n+=1,","===i)e=2e3;else{var l=new S(this);t.eventHandlers={onFailed:function(){r._tones=null}},l.send(i,t),e=a+o}setTimeout(s.bind(this),e)}}}},{key:"sendInfo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(I("sendInfo()"),this._status!==D.STATUS_CONFIRMED&&this._status!==D.STATUS_WAITING_FOR_ACK)throw new g.InvalidStateError(this._status);var a=new w(this);a.send(e,t,n)}},{key:"mute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!1};I("mute()");var t=!1,n=!1;!1===this._audioMuted&&e.audio&&(t=!0,this._audioMuted=!0,this._toggleMuteAudio(!0)),!1===this._videoMuted&&e.video&&(n=!0,this._videoMuted=!0,this._toggleMuteVideo(!0)),!0!==t&&!0!==n||this._onmute({audio:t,video:n})}},{key:"unmute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!0};I("unmute()");var t=!1,n=!1;!0===this._audioMuted&&e.audio&&(t=!0,this._audioMuted=!1,!1===this._localHold&&this._toggleMuteAudio(!1)),!0===this._videoMuted&&e.video&&(n=!0,this._videoMuted=!1,!1===this._localHold&&this._toggleMuteVideo(!1)),!0!==t&&!0!==n||this._onunmute({audio:t,video:n})}},{key:"hold",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(I("hold()"),this._status!==D.STATUS_WAITING_FOR_ACK&&this._status!==D.STATUS_CONFIRMED)return!1;if(!0===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!0,this._onhold("local");var a={succeeded:function(){n&&n()},failed:function(){e.terminate({cause:p.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Hold Failed"})}};return t.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:a,extraHeaders:t.extraHeaders}):this._sendReinvite({eventHandlers:a,extraHeaders:t.extraHeaders}),!0}},{key:"unhold",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(I("unhold()"),this._status!==D.STATUS_WAITING_FOR_ACK&&this._status!==D.STATUS_CONFIRMED)return!1;if(!1===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!1,this._onunhold("local");var a={succeeded:function(){n&&n()},failed:function(){e.terminate({cause:p.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Unhold Failed"})}};return t.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:a,extraHeaders:t.extraHeaders}):this._sendReinvite({eventHandlers:a,extraHeaders:t.extraHeaders}),!0}},{key:"renegotiate",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;I("renegotiate()");var a=t.rtcOfferConstraints||null;if(this._status!==D.STATUS_WAITING_FOR_ACK&&this._status!==D.STATUS_CONFIRMED)return!1;if(!this._isReadyToReOffer())return!1;var o={succeeded:function(){n&&n()},failed:function(){e.terminate({cause:p.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Media Renegotiation Failed"})}};return this._setLocalMediaStatus(),t.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:o,rtcOfferConstraints:a,extraHeaders:t.extraHeaders}):this._sendReinvite({eventHandlers:o,rtcOfferConstraints:a,extraHeaders:t.extraHeaders}),!0}},{key:"refer",value:function(e,t){var n=this;I("refer()");var a=e;if(this._status!==D.STATUS_WAITING_FOR_ACK&&this._status!==D.STATUS_CONFIRMED)return!1;if(!(e=this._ua.normalizeTarget(e)))throw new TypeError("Invalid target: ".concat(a));var o=new C(this);o.sendRefer(e,t);var r=o.id;return this._referSubscribers[r]=o,o.on("requestFailed",(function(){delete n._referSubscribers[r]})),o.on("accepted",(function(){delete n._referSubscribers[r]})),o.on("failed",(function(){delete n._referSubscribers[r]})),o}},{key:"sendRequest",value:function(e,t){return I("sendRequest()"),this._dialog.sendRequest(e,t)}},{key:"receiveRequest",value:function(e){var t=this;if(I("receiveRequest()"),e.method===p.CANCEL)this._status!==D.STATUS_WAITING_FOR_ANSWER&&this._status!==D.STATUS_ANSWERED||(this._status=D.STATUS_CANCELED,this._request.reply(487),this._failed("remote",e,p.causes.CANCELED));else switch(e.method){case p.ACK:if(this._status!==D.STATUS_WAITING_FOR_ACK)return;if(this._status=D.STATUS_CONFIRMED,clearTimeout(this._timers.ackTimer),clearTimeout(this._timers.invite2xxTimer),this._late_sdp){if(!e.body){this.terminate({cause:p.causes.MISSING_SDP,status_code:400});break}var n={originator:"remote",type:"answer",sdp:e.body};I('emit "sdp"'),this.emit("sdp",n);var a=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return t._connection.setRemoteDescription(a)})).then((function(){t._is_confirmed||t._confirmed("remote",e)})).catch((function(e){t.terminate({cause:p.causes.BAD_MEDIA_DESCRIPTION,status_code:488}),k('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),t.emit("peerconnection:setremotedescriptionfailed",e)}))}else this._is_confirmed||this._confirmed("remote",e);break;case p.BYE:this._status===D.STATUS_CONFIRMED||this._status===D.STATUS_WAITING_FOR_ACK?(e.reply(200),this._ended("remote",e,p.causes.BYE)):this._status===D.STATUS_INVITE_RECEIVED||this._status===D.STATUS_WAITING_FOR_ANSWER?(e.reply(200),this._request.reply(487,"BYE Received"),this._ended("remote",e,p.causes.BYE)):e.reply(403,"Wrong Status");break;case p.INVITE:this._status===D.STATUS_CONFIRMED?e.hasHeader("replaces")?this._receiveReplaces(e):this._receiveReinvite(e):e.reply(403,"Wrong Status");break;case p.INFO:if(this._status===D.STATUS_1XX_RECEIVED||this._status===D.STATUS_WAITING_FOR_ANSWER||this._status===D.STATUS_ANSWERED||this._status===D.STATUS_WAITING_FOR_ACK||this._status===D.STATUS_CONFIRMED){var o=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0;o&&o.match(/^application\/dtmf-relay/i)?new S(this).init_incoming(e):void 0!==o?new w(this).init_incoming(e):e.reply(415)}else e.reply(403,"Wrong Status");break;case p.UPDATE:this._status===D.STATUS_CONFIRMED?this._receiveUpdate(e):e.reply(403,"Wrong Status");break;case p.REFER:this._status===D.STATUS_CONFIRMED?this._receiveRefer(e):e.reply(403,"Wrong Status");break;case p.NOTIFY:this._status===D.STATUS_CONFIRMED?this._receiveNotify(e):e.reply(403,"Wrong Status");break;default:e.reply(501)}}},{key:"onTransportError",value:function(){k("onTransportError()"),this._status!==D.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:p.causes.CONNECTION_ERROR,cause:p.causes.CONNECTION_ERROR})}},{key:"onRequestTimeout",value:function(){k("onRequestTimeout()"),this._status!==D.STATUS_TERMINATED&&this.terminate({status_code:408,reason_phrase:p.causes.REQUEST_TIMEOUT,cause:p.causes.REQUEST_TIMEOUT})}},{key:"onDialogError",value:function(){k("onDialogError()"),this._status!==D.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:p.causes.DIALOG_ERROR,cause:p.causes.DIALOG_ERROR})}},{key:"newDTMF",value:function(e){I("newDTMF()"),this.emit("newDTMF",e)}},{key:"newInfo",value:function(e){I("newInfo()"),this.emit("newInfo",e)}},{key:"_isReadyToReOffer",value:function(){return this._rtcReady?this._dialog?!0!==this._dialog.uac_pending_reply&&!0!==this._dialog.uas_pending_reply||(I("_isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress"),!1):(I("_isReadyToReOffer() | session not established yet"),!1):(I("_isReadyToReOffer() | internal WebRTC status not ready"),!1)}},{key:"_close",value:function(){if(I("close()"),this._localMediaStream&&this._localMediaStreamLocallyGenerated&&(I("close() | closing local MediaStream"),_.closeMediaStream(this._localMediaStream)),this._status!==D.STATUS_TERMINATED){if(this._status=D.STATUS_TERMINATED,this._connection)try{this._connection.close()}catch(e){k("close() | error closing the RTCPeerConnection: %o",e)}for(var e in this._timers)Object.prototype.hasOwnProperty.call(this._timers,e)&&clearTimeout(this._timers[e]);for(var t in clearTimeout(this._sessionTimers.timer),this._dialog&&(this._dialog.terminate(),delete this._dialog),this._earlyDialogs)Object.prototype.hasOwnProperty.call(this._earlyDialogs,t)&&(this._earlyDialogs[t].terminate(),delete this._earlyDialogs[t]);for(var n in this._referSubscribers)Object.prototype.hasOwnProperty.call(this._referSubscribers,n)&&delete this._referSubscribers[n];this._ua.destroyRTCSession(this)}}},{key:"_setInvite2xxTimer",value:function(e,t){var n=b.T1;this._timers.invite2xxTimer=setTimeout(function a(){this._status===D.STATUS_WAITING_FOR_ACK&&(e.reply(200,null,["Contact: ".concat(this._contact)],t),n<b.T2&&(n*=2)>b.T2&&(n=b.T2),this._timers.invite2xxTimer=setTimeout(a.bind(this),n))}.bind(this),n)}},{key:"_setACKTimer",value:function(){var e=this;this._timers.ackTimer=setTimeout((function(){e._status===D.STATUS_WAITING_FOR_ACK&&(I("no ACK received, terminating the session"),clearTimeout(e._timers.invite2xxTimer),e.sendRequest(p.BYE),e._ended("remote",null,p.causes.NO_ACK))}),b.TIMER_H)}},{key:"_createRTCConnection",value:function(e,t){var n=this;this._connection=new RTCPeerConnection(e,t),this._connection.addEventListener("iceconnectionstatechange",(function(){"failed"===n._connection.iceConnectionState&&n.terminate({cause:p.causes.RTP_TIMEOUT,status_code:408,reason_phrase:p.causes.RTP_TIMEOUT})})),I('emit "peerconnection"'),this.emit("peerconnection",{peerconnection:this._connection})}},{key:"_createLocalDescription",value:function(e,t){var n=this;if(I("createLocalDescription()"),"offer"!==e&&"answer"!==e)throw new Error('createLocalDescription() | invalid type "'.concat(e,'"'));var a=this._connection;return this._rtcReady=!1,Promise.resolve().then((function(){return"offer"===e?a.createOffer(t).catch((function(e){return k('emit "peerconnection:createofferfailed" [error:%o]',e),n.emit("peerconnection:createofferfailed",e),Promise.reject(e)})):a.createAnswer(t).catch((function(e){return k('emit "peerconnection:createanswerfailed" [error:%o]',e),n.emit("peerconnection:createanswerfailed",e),Promise.reject(e)}))})).then((function(e){return a.setLocalDescription(e).catch((function(e){return n._rtcReady=!0,k('emit "peerconnection:setlocaldescriptionfailed" [error:%o]',e),n.emit("peerconnection:setlocaldescriptionfailed",e),Promise.reject(e)}))})).then((function(){if(!("complete"!==a.iceGatheringState||t&&t.iceRestart)){n._rtcReady=!0;var o={originator:"local",type:e,sdp:a.localDescription.sdp};return I('emit "sdp"'),n.emit("sdp",o),Promise.resolve(o.sdp)}return new Promise((function(t){var o,r,i=!1,s=function(){a.removeEventListener("icecandidate",o),a.removeEventListener("icegatheringstatechange",r),i=!0,n._rtcReady=!0;var s={originator:"local",type:e,sdp:a.localDescription.sdp};I('emit "sdp"'),n.emit("sdp",s),t(s.sdp)};a.addEventListener("icecandidate",o=function(e){var t=e.candidate;t?n.emit("icecandidate",{candidate:t,ready:s}):i||s()}),a.addEventListener("icegatheringstatechange",r=function(){"complete"!==a.iceGatheringState||i||s()})}))}))}},{key:"_createDialog",value:function(e,t,n){var a="UAS"===t?e.to_tag:e.from_tag,o="UAS"===t?e.from_tag:e.to_tag,r=e.call_id+a+o,i=this._earlyDialogs[r];if(n)return!!i||((i=new v(this,e,t,v.C.STATUS_EARLY)).error?(I(i.error),this._failed("remote",e,p.causes.INTERNAL_ERROR),!1):(this._earlyDialogs[r]=i,!0));if(this._from_tag=e.from_tag,this._to_tag=e.to_tag,i)return i.update(e,t),this._dialog=i,delete this._earlyDialogs[r],!0;var s=new v(this,e,t);return s.error?(I(s.error),this._failed("remote",e,p.causes.INTERNAL_ERROR),!1):(this._dialog=s,!0)}},{key:"_receiveReinvite",value:function(e){var t=this;I("receiveReinvite()");var n=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,a={request:e,callback:void 0,reject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o=!0;var n=t.status_code||403,a=t.reason_phrase||"",r=_.cloneArray(t.extraHeaders);if(this._status!==D.STATUS_CONFIRMED)return!1;if(n<300||n>=700)throw new TypeError("Invalid status_code: ".concat(n));e.reply(n,a,r)}.bind(this)},o=!1;if(this.emit("reinvite",a),!o){if(this._late_sdp=!1,!e.body)return this._late_sdp=!0,this._remoteHold&&(this._remoteHold=!1,this._onunhold("remote")),void(this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return t._createLocalDescription("offer",t._rtcOfferConstraints)})).then((function(e){r.call(t,e)})).catch((function(){e.reply(500)})));if("application/sdp"!==n)return I("invalid Content-Type"),void e.reply(415);this._processInDialogSdpOffer(e).then((function(e){t._status!==D.STATUS_TERMINATED&&r.call(t,e)})).catch((function(e){k(e)}))}function r(t){var n=this,o=["Contact: ".concat(this._contact)];this._handleSessionTimersInIncomingRequest(e,o),this._late_sdp&&(t=this._mangleOffer(t)),e.reply(200,null,o,t,(function(){n._status=D.STATUS_WAITING_FOR_ACK,n._setInvite2xxTimer(e,t),n._setACKTimer()})),"function"==typeof a.callback&&a.callback()}}},{key:"_receiveUpdate",value:function(e){var t=this;I("receiveUpdate()");var n=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,a={request:e,callback:void 0,reject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o=!0;var n=t.status_code||403,a=t.reason_phrase||"",r=_.cloneArray(t.extraHeaders);if(this._status!==D.STATUS_CONFIRMED)return!1;if(n<300||n>=700)throw new TypeError("Invalid status_code: ".concat(n));e.reply(n,a,r)}.bind(this)},o=!1;if(this.emit("update",a),!o)if(e.body){if("application/sdp"!==n)return I("invalid Content-Type"),void e.reply(415);this._processInDialogSdpOffer(e).then((function(e){t._status!==D.STATUS_TERMINATED&&r.call(t,e)})).catch((function(e){k(e)}))}else r.call(this,null);function r(t){var n=["Contact: ".concat(this._contact)];this._handleSessionTimersInIncomingRequest(e,n),e.reply(200,null,n,t),"function"==typeof a.callback&&a.callback()}}},{key:"_processInDialogSdpOffer",value:function(e){var t=this;I("_processInDialogSdpOffer()");var n,a=e.parseSDP(),r=!1,i=o(a.media);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(-1!==x.indexOf(s.type)){var l=s.direction||a.direction||"sendrecv";if("sendonly"!==l&&"inactive"!==l){r=!1;break}r=!0}}}catch(e){i.e(e)}finally{i.f()}var c={originator:"remote",type:"offer",sdp:e.body};I('emit "sdp"'),this.emit("sdp",c);var u=new RTCSessionDescription({type:"offer",sdp:c.sdp});return this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){if(t._status===D.STATUS_TERMINATED)throw new Error("terminated");return t._connection.setRemoteDescription(u).catch((function(n){throw e.reply(488),k('emit "peerconnection:setremotedescriptionfailed" [error:%o]',n),t.emit("peerconnection:setremotedescriptionfailed",n),n}))})).then((function(){if(t._status===D.STATUS_TERMINATED)throw new Error("terminated");!0===t._remoteHold&&!1===r?(t._remoteHold=!1,t._onunhold("remote")):!1===t._remoteHold&&!0===r&&(t._remoteHold=!0,t._onhold("remote"))})).then((function(){if(t._status===D.STATUS_TERMINATED)throw new Error("terminated");return t._createLocalDescription("answer",t._rtcAnswerConstraints).catch((function(t){throw e.reply(500),k('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]',t),t}))})).catch((function(e){k("_processInDialogSdpOffer() failed [error: %o]",e)})),this._connectionPromiseQueue}},{key:"_receiveRefer",value:function(e){var t=this;if(I("receiveRefer()"),!e.refer_to)return I("no Refer-To header field present in REFER"),void e.reply(400);if(e.refer_to.uri.scheme!==p.SIP)return I("Refer-To header field points to a non-SIP URI scheme"),void e.reply(416);e.reply(202);var a=new E(this,e.cseq);function o(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t="function"==typeof t?t:null,this._status!==D.STATUS_WAITING_FOR_ACK&&this._status!==D.STATUS_CONFIRMED)return!1;var r=new n(this._ua);if(r.on("progress",(function(e){var t=e.response;a.notify(t.status_code,t.reason_phrase)})),r.on("accepted",(function(e){var t=e.response;a.notify(t.status_code,t.reason_phrase)})),r.on("_failed",(function(e){var t=e.message,n=e.cause;t?a.notify(t.status_code,t.reason_phrase):a.notify(487,n)})),e.refer_to.uri.hasHeader("replaces")){var i=decodeURIComponent(e.refer_to.uri.getHeader("replaces"));o.extraHeaders=_.cloneArray(o.extraHeaders),o.extraHeaders.push("Replaces: ".concat(i))}r.connect(e.refer_to.uri.toAor(),o,t)}function r(){a.notify(603)}I('emit "refer"'),this.emit("refer",{request:e,accept:function(e,n){o.call(t,e,n)},reject:function(){r.call(t)}})}},{key:"_receiveNotify",value:function(e){switch(I("receiveNotify()"),e.event||e.reply(400),e.event.event){case"refer":var t,n;if(e.event.params&&e.event.params.id)t=e.event.params.id,n=this._referSubscribers[t];else{if(1!==Object.keys(this._referSubscribers).length)return void e.reply(400,"Missing event id parameter");n=this._referSubscribers[Object.keys(this._referSubscribers)[0]]}if(!n)return void e.reply(481,"Subscription does not exist");n.receiveNotify(e),e.reply(200);break;default:e.reply(489)}}},{key:"_receiveReplaces",value:function(e){var t=this;function a(t){var a=this;if(this._status!==D.STATUS_WAITING_FOR_ACK&&this._status!==D.STATUS_CONFIRMED)return!1;var o=new n(this._ua);o.on("confirmed",(function(){a.terminate()})),o.init_incoming(e,t)}function o(){I("Replaced INVITE rejected by the user"),e.reply(486)}I("receiveReplaces()"),this.emit("replaces",{request:e,accept:function(e){a.call(t,e)},reject:function(){o.call(t)}})}},{key:"_sendInitialRequest",value:function(e,t,n){var a=this,o=new A(this._ua,this._request,{onRequestTimeout:function(){a.onRequestTimeout()},onTransportError:function(){a.onTransportError()},onAuthenticated:function(e){a._request=e},onReceiveResponse:function(e){a._receiveInviteResponse(e)}});Promise.resolve().then((function(){return n||(e.audio||e.video?(a._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(e).catch((function(e){if(a._status===D.STATUS_TERMINATED)throw new Error("terminated");throw a._failed("local",null,p.causes.USER_DENIED_MEDIA_ACCESS),k('emit "getusermediafailed" [error:%o]',e),a.emit("getusermediafailed",e),e}))):void 0)})).then((function(e){if(a._status===D.STATUS_TERMINATED)throw new Error("terminated");return a._localMediaStream=e,e&&e.getTracks().forEach((function(t){a._connection.addTrack(t,e)})),a._connecting(a._request),a._createLocalDescription("offer",t).catch((function(e){throw a._failed("local",null,p.causes.WEBRTC_ERROR),e}))})).then((function(e){if(a._is_canceled||a._status===D.STATUS_TERMINATED)throw new Error("terminated");a._request.body=e,a._status=D.STATUS_INVITE_SENT,I('emit "sending" [request:%o]',a._request),a.emit("sending",{request:a._request}),o.send()})).catch((function(e){a._status!==D.STATUS_TERMINATED&&k(e)}))}},{key:"_getDTMFRTPSender",value:function(){var e=this._connection.getSenders().find((function(e){return e.track&&"audio"===e.track.kind}));if(e&&e.dtmf)return e.dtmf;k("sendDTMF() | no local audio track to send DTMF with")}},{key:"_receiveInviteResponse",value:function(e){var t=this;if(I("receiveInviteResponse()"),this._dialog&&e.status_code>=200&&e.status_code<=299){if(this._dialog.id.call_id===e.call_id&&this._dialog.id.local_tag===e.from_tag&&this._dialog.id.remote_tag===e.to_tag)return void this.sendRequest(p.ACK);var n=new v(this,e,"UAC");return void 0!==n.error?void I(n.error):(this.sendRequest(p.ACK),void this.sendRequest(p.BYE))}if(this._is_canceled)e.status_code>=100&&e.status_code<200?this._request.cancel(this._cancel_reason):e.status_code>=200&&e.status_code<299&&this._acceptAndTerminate(e);else if(this._status===D.STATUS_INVITE_SENT||this._status===D.STATUS_1XX_RECEIVED)switch(!0){case/^100$/.test(e.status_code):this._status=D.STATUS_1XX_RECEIVED;break;case/^1[0-9]{2}$/.test(e.status_code):if(!e.to_tag){I("1xx response received without to tag");break}if(e.hasHeader("contact")&&!this._createDialog(e,"UAC",!0))break;if(this._status=D.STATUS_1XX_RECEIVED,!e.body){this._progress("remote",e);break}var a={originator:"remote",type:"answer",sdp:e.body};I('emit "sdp"'),this.emit("sdp",a);var o=new RTCSessionDescription({type:"answer",sdp:a.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return t._connection.setRemoteDescription(o)})).then((function(){return t._progress("remote",e)})).catch((function(e){k('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),t.emit("peerconnection:setremotedescriptionfailed",e)}));break;case/^2[0-9]{2}$/.test(e.status_code):if(this._status=D.STATUS_CONFIRMED,!e.body){this._acceptAndTerminate(e,400,p.causes.MISSING_SDP),this._failed("remote",e,p.causes.BAD_MEDIA_DESCRIPTION);break}if(!this._createDialog(e,"UAC"))break;var r={originator:"remote",type:"answer",sdp:e.body};I('emit "sdp"'),this.emit("sdp",r);var i=new RTCSessionDescription({type:"answer",sdp:r.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){if("stable"===t._connection.signalingState)return t._connection.createOffer(t._rtcOfferConstraints).then((function(e){return t._connection.setLocalDescription(e)})).catch((function(n){t._acceptAndTerminate(e,500,n.toString()),t._failed("local",e,p.causes.WEBRTC_ERROR)}))})).then((function(){t._connection.setRemoteDescription(i).then((function(){t._handleSessionTimersInIncomingResponse(e),t._accepted("remote",e),t.sendRequest(p.ACK),t._confirmed("local",null)})).catch((function(n){t._acceptAndTerminate(e,488,"Not Acceptable Here"),t._failed("remote",e,p.causes.BAD_MEDIA_DESCRIPTION),k('emit "peerconnection:setremotedescriptionfailed" [error:%o]',n),t.emit("peerconnection:setremotedescriptionfailed",n)}))}));break;default:var s=_.sipErrorCause(e.status_code);this._failed("remote",e,s)}}},{key:"_sendReinvite",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I("sendReinvite()");var n=_.cloneArray(t.extraHeaders),a=_.cloneObject(t.eventHandlers),o=t.rtcOfferConstraints||this._rtcOfferConstraints||null,r=!1;function i(e){var t=this;if(this._status!==D.STATUS_TERMINATED&&(this.sendRequest(p.ACK),!r))if(this._handleSessionTimersInIncomingResponse(e),e.body)if(e.hasHeader("Content-Type")&&"application/sdp"===e.getHeader("Content-Type").toLowerCase()){var n={originator:"remote",type:"answer",sdp:e.body};I('emit "sdp"'),this.emit("sdp",n);var o=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return t._connection.setRemoteDescription(o)})).then((function(){a.succeeded&&a.succeeded(e)})).catch((function(e){s.call(t),k('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),t.emit("peerconnection:setremotedescriptionfailed",e)}))}else s.call(this);else s.call(this)}function s(e){a.failed&&a.failed(e)}n.push("Contact: ".concat(this._contact)),n.push("Content-Type: application/sdp"),this._sessionTimers.running&&n.push("Session-Expires: ".concat(this._sessionTimers.currentExpires,";refresher=").concat(this._sessionTimers.refresher?"uac":"uas")),this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return e._createLocalDescription("offer",o)})).then((function(t){var a={originator:"local",type:"offer",sdp:t=e._mangleOffer(t)};I('emit "sdp"'),e.emit("sdp",a),e.sendRequest(p.INVITE,{extraHeaders:n,body:t,eventHandlers:{onSuccessResponse:function(t){i.call(e,t),r=!0},onErrorResponse:function(t){s.call(e,t)},onTransportError:function(){e.onTransportError()},onRequestTimeout:function(){e.onRequestTimeout()},onDialogError:function(){e.onDialogError()}}})})).catch((function(){s()}))}},{key:"_sendUpdate",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I("sendUpdate()");var n=_.cloneArray(t.extraHeaders),a=_.cloneObject(t.eventHandlers),o=t.rtcOfferConstraints||this._rtcOfferConstraints||null,r=t.sdpOffer||!1,i=!1;function s(e){var t=this;if(this._status!==D.STATUS_TERMINATED&&!i)if(this._handleSessionTimersInIncomingResponse(e),r){if(!e.body)return void l.call(this);if(!e.hasHeader("Content-Type")||"application/sdp"!==e.getHeader("Content-Type").toLowerCase())return void l.call(this);var n={originator:"remote",type:"answer",sdp:e.body};I('emit "sdp"'),this.emit("sdp",n);var o=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return t._connection.setRemoteDescription(o)})).then((function(){a.succeeded&&a.succeeded(e)})).catch((function(e){l.call(t),k('emit "peerconnection:setremotedescriptionfailed" [error:%o]',e),t.emit("peerconnection:setremotedescriptionfailed",e)}))}else a.succeeded&&a.succeeded(e)}function l(e){a.failed&&a.failed(e)}n.push("Contact: ".concat(this._contact)),this._sessionTimers.running&&n.push("Session-Expires: ".concat(this._sessionTimers.currentExpires,";refresher=").concat(this._sessionTimers.refresher?"uac":"uas")),r?(n.push("Content-Type: application/sdp"),this._connectionPromiseQueue=this._connectionPromiseQueue.then((function(){return e._createLocalDescription("offer",o)})).then((function(t){var a={originator:"local",type:"offer",sdp:t=e._mangleOffer(t)};I('emit "sdp"'),e.emit("sdp",a),e.sendRequest(p.UPDATE,{extraHeaders:n,body:t,eventHandlers:{onSuccessResponse:function(t){s.call(e,t),i=!0},onErrorResponse:function(t){l.call(e,t)},onTransportError:function(){e.onTransportError()},onRequestTimeout:function(){e.onRequestTimeout()},onDialogError:function(){e.onDialogError()}}})})).catch((function(){l.call(e)}))):this.sendRequest(p.UPDATE,{extraHeaders:n,eventHandlers:{onSuccessResponse:function(t){s.call(e,t)},onErrorResponse:function(t){l.call(e,t)},onTransportError:function(){e.onTransportError()},onRequestTimeout:function(){e.onRequestTimeout()},onDialogError:function(){e.onDialogError()}}})}},{key:"_acceptAndTerminate",value:function(e,t,n){I("acceptAndTerminate()");var a=[];t&&(n=n||p.REASON_PHRASE[t]||"",a.push("Reason: SIP ;cause=".concat(t,'; text="').concat(n,'"'))),(this._dialog||this._createDialog(e,"UAC"))&&(this.sendRequest(p.ACK),this.sendRequest(p.BYE,{extraHeaders:a})),this._status=D.STATUS_TERMINATED}},{key:"_mangleOffer",value:function(e){if(!this._localHold&&!this._remoteHold)return e;if(e=m.parse(e),this._localHold&&!this._remoteHold){I("mangleOffer() | me on hold, mangling offer");var t,n=o(e.media);try{for(n.s();!(t=n.n()).done;){var a=t.value;-1!==x.indexOf(a.type)&&(a.direction?"sendrecv"===a.direction?a.direction="sendonly":"recvonly"===a.direction&&(a.direction="inactive"):a.direction="sendonly")}}catch(e){n.e(e)}finally{n.f()}}else if(this._localHold&&this._remoteHold){I("mangleOffer() | both on hold, mangling offer");var r,i=o(e.media);try{for(i.s();!(r=i.n()).done;){var s=r.value;-1!==x.indexOf(s.type)&&(s.direction="inactive")}}catch(e){i.e(e)}finally{i.f()}}else if(this._remoteHold){I("mangleOffer() | remote on hold, mangling offer");var l,c=o(e.media);try{for(c.s();!(l=c.n()).done;){var u=l.value;-1!==x.indexOf(u.type)&&(u.direction?"sendrecv"===u.direction?u.direction="recvonly":"recvonly"===u.direction&&(u.direction="inactive"):u.direction="recvonly")}}catch(e){c.e(e)}finally{c.f()}}return m.write(e)}},{key:"_setLocalMediaStatus",value:function(){var e=!0,t=!0;(this._localHold||this._remoteHold)&&(e=!1,t=!1),this._audioMuted&&(e=!1),this._videoMuted&&(t=!1),this._toggleMuteAudio(!e),this._toggleMuteVideo(!t)}},{key:"_handleSessionTimersInIncomingRequest",value:function(e,t){var n;this._sessionTimers.enabled&&(e.session_expires&&e.session_expires>=p.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,n=e.session_expires_refresher||"uas"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,n="uas"),t.push("Session-Expires: ".concat(this._sessionTimers.currentExpires,";refresher=").concat(n)),this._sessionTimers.refresher="uas"===n,this._runSessionTimer())}},{key:"_handleSessionTimersInIncomingResponse",value:function(e){var t;this._sessionTimers.enabled&&(e.session_expires&&e.session_expires>=p.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=e.session_expires,t=e.session_expires_refresher||"uac"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,t="uac"),this._sessionTimers.refresher="uac"===t,this._runSessionTimer())}},{key:"_runSessionTimer",value:function(){var e=this,t=this._sessionTimers.currentExpires;this._sessionTimers.running=!0,clearTimeout(this._sessionTimers.timer),this._sessionTimers.refresher?this._sessionTimers.timer=setTimeout((function(){e._status!==D.STATUS_TERMINATED&&(I("runSessionTimer() | sending session refresh request"),e._sessionTimers.refreshMethod===p.UPDATE?e._sendUpdate():e._sendReinvite())}),500*t):this._sessionTimers.timer=setTimeout((function(){e._status!==D.STATUS_TERMINATED&&(k("runSessionTimer() | timer expired, terminating the session"),e.terminate({cause:p.causes.REQUEST_TIMEOUT,status_code:408,reason_phrase:"Session Timer Expired"}))}),1100*t)}},{key:"_toggleMuteAudio",value:function(e){var t,n=o(this._connection.getSenders().filter((function(e){return e.track&&"audio"===e.track.kind})));try{for(n.s();!(t=n.n()).done;){t.value.track.enabled=!e}}catch(e){n.e(e)}finally{n.f()}}},{key:"_toggleMuteVideo",value:function(e){var t,n=o(this._connection.getSenders().filter((function(e){return e.track&&"video"===e.track.kind})));try{for(n.s();!(t=n.n()).done;){t.value.track.enabled=!e}}catch(e){n.e(e)}finally{n.f()}}},{key:"_newRTCSession",value:function(e,t){I("newRTCSession()"),this._ua.newRTCSession(this,{originator:e,session:this,request:t})}},{key:"_connecting",value:function(e){I("session connecting"),I('emit "connecting"'),this.emit("connecting",{request:e})}},{key:"_progress",value:function(e,t){I("session progress"),I('emit "progress"'),this.emit("progress",{originator:e,response:t||null})}},{key:"_accepted",value:function(e,t){I("session accepted"),this._start_time=new Date,I('emit "accepted"'),this.emit("accepted",{originator:e,response:t||null})}},{key:"_confirmed",value:function(e,t){I("session confirmed"),this._is_confirmed=!0,I('emit "confirmed"'),this.emit("confirmed",{originator:e,ack:t||null})}},{key:"_ended",value:function(e,t,n){I("session ended"),this._end_time=new Date,this._close(),I('emit "ended"'),this.emit("ended",{originator:e,message:t||null,cause:n})}},{key:"_failed",value:function(e,t,n){I("session failed"),I('emit "_failed"'),this.emit("_failed",{originator:e,message:t||null,cause:n}),this._close(),I('emit "failed"'),this.emit("failed",{originator:e,message:t||null,cause:n})}},{key:"_onhold",value:function(e){I("session onhold"),this._setLocalMediaStatus(),I('emit "hold"'),this.emit("hold",{originator:e})}},{key:"_onunhold",value:function(e){I("session onunhold"),this._setLocalMediaStatus(),I('emit "unhold"'),this.emit("unhold",{originator:e})}},{key:"_onmute",value:function(e){var t=e.audio,n=e.video;I("session onmute"),this._setLocalMediaStatus(),I('emit "muted"'),this.emit("muted",{audio:t,video:n})}},{key:"_onunmute",value:function(e){var t=e.audio,n=e.video;I("session onunmute"),this._setLocalMediaStatus(),I('emit "unmuted"'),this.emit("unmuted",{audio:t,video:n})}},{key:"C",get:function(){return D}},{key:"causes",get:function(){return p.causes}},{key:"id",get:function(){return this._id}},{key:"connection",get:function(){return this._connection}},{key:"contact",get:function(){return this._contact}},{key:"direction",get:function(){return this._direction}},{key:"local_identity",get:function(){return this._local_identity}},{key:"remote_identity",get:function(){return this._remote_identity}},{key:"start_time",get:function(){return this._start_time}},{key:"end_time",get:function(){return this._end_time}},{key:"data",get:function(){return this._data},set:function(e){this._data=e}},{key:"status",get:function(){return this._status}}]),n}(f)},"./node_modules/jssip/lib-es5/RTCSession/DTMF.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=n("./node_modules/events/events.js").EventEmitter,u=n("./node_modules/jssip/lib-es5/Constants.js"),d=n("./node_modules/jssip/lib-es5/Exceptions.js"),f=n("./node_modules/jssip/lib-es5/Utils.js"),m=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:RTCSession:DTMF");n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:RTCSession:DTMF").log=console.warn.bind(console);var p={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500};e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,n,a,s=i(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this))._session=e,t._direction=null,t._tone=null,t._duration=null,t._request=null,t}return t=l,(n=[{key:"send",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw new TypeError("Not enough arguments");if(this._direction="outgoing",this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new d.InvalidStateError(this._session.status);var a=f.cloneArray(n.extraHeaders);if(this.eventHandlers=f.cloneObject(n.eventHandlers),"string"==typeof e)e=e.toUpperCase();else{if("number"!=typeof e)throw new TypeError("Invalid tone: ".concat(e));e=e.toString()}if(!e.match(/^[0-9A-DR#*]$/))throw new TypeError("Invalid tone: ".concat(e));this._tone=e,this._duration=n.duration,a.push("Content-Type: application/dtmf-relay");var o="Signal=".concat(this._tone,"\r\n");o+="Duration=".concat(this._duration),this._session.newDTMF({originator:"local",dtmf:this,request:this._request}),this._session.sendRequest(u.INFO,{extraHeaders:a,eventHandlers:{onSuccessResponse:function(e){t.emit("succeeded",{originator:"remote",response:e})},onErrorResponse:function(e){t.eventHandlers.onFailed&&t.eventHandlers.onFailed(),t.emit("failed",{originator:"remote",response:e})},onRequestTimeout:function(){t._session.onRequestTimeout()},onTransportError:function(){t._session.onTransportError()},onDialogError:function(){t._session.onDialogError()}},body:o})}},{key:"init_incoming",value:function(e){var t=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/,n=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;if(this._direction="incoming",this._request=e,e.reply(200),e.body){var a=e.body.split("\n");a.length>=1&&t.test(a[0])&&(this._tone=a[0].replace(t,"$2")),a.length>=2&&n.test(a[1])&&(this._duration=parseInt(a[1].replace(n,"$2"),10))}this._duration||(this._duration=p.DEFAULT_DURATION),this._tone?this._session.newDTMF({originator:"remote",dtmf:this,request:e}):m("invalid INFO DTMF received, discarded")}},{key:"tone",get:function(){return this._tone}},{key:"duration",get:function(){return this._duration}}])&&o(t.prototype,n),a&&o(t,a),l}(c),e.exports.C=p},"./node_modules/jssip/lib-es5/RTCSession/Info.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=n("./node_modules/events/events.js").EventEmitter;n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:RTCSession:Info").log=console.warn.bind(console);var u=n("./node_modules/jssip/lib-es5/Constants.js"),d=n("./node_modules/jssip/lib-es5/Exceptions.js"),f=n("./node_modules/jssip/lib-es5/Utils.js");e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,n,a,s=i(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this))._session=e,t._direction=null,t._contentType=null,t._body=null,t}return t=l,(n=[{key:"send",value:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._direction="outgoing",void 0===e)throw new TypeError("Not enough arguments");if(this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new d.InvalidStateError(this._session.status);this._contentType=e,this._body=t;var o=f.cloneArray(a.extraHeaders);o.push("Content-Type: ".concat(e)),this._session.newInfo({originator:"local",info:this,request:this.request}),this._session.sendRequest(u.INFO,{extraHeaders:o,eventHandlers:{onSuccessResponse:function(e){n.emit("succeeded",{originator:"remote",response:e})},onErrorResponse:function(e){n.emit("failed",{originator:"remote",response:e})},onTransportError:function(){n._session.onTransportError()},onRequestTimeout:function(){n._session.onRequestTimeout()},onDialogError:function(){n._session.onDialogError()}},body:t})}},{key:"init_incoming",value:function(e){this._direction="incoming",this.request=e,e.reply(200),this._contentType=e.hasHeader("Content-Type")?e.getHeader("Content-Type").toLowerCase():void 0,this._body=e.body,this._session.newInfo({originator:"remote",info:this,request:e})}},{key:"contentType",get:function(){return this._contentType}},{key:"body",get:function(){return this._body}}])&&o(t.prototype,n),a&&o(t,a),l}(c)},"./node_modules/jssip/lib-es5/RTCSession/ReferNotifier.js":(e,t,n)=>{"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n("./node_modules/jssip/lib-es5/Constants.js"),r=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:RTCSession:ReferNotifier"),i="refer",s="message/sipfrag;version=2.0",l=300;e.exports=function(){function e(t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._session=t,this._id=n,this._expires=a||l,this._active=!0,this.notify(100)}var t,n,c;return t=e,(n=[{key:"notify",value:function(e,t){var n;r("notify()"),!1!==this._active&&(t=t||o.REASON_PHRASE[e]||"",n=e>=200?"terminated;reason=noresource":"active;expires=".concat(this._expires),this._session.sendRequest(o.NOTIFY,{extraHeaders:["Event: ".concat(i,";id=").concat(this._id),"Subscription-State: ".concat(n),"Content-Type: ".concat(s)],body:"SIP/2.0 ".concat(e," ").concat(t),eventHandlers:{onErrorResponse:function(){this._active=!1}}}))}}])&&a(t.prototype,n),c&&a(t,c),e}()},"./node_modules/jssip/lib-es5/RTCSession/ReferSubscriber.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=n("./node_modules/events/events.js").EventEmitter,u=n("./node_modules/jssip/lib-es5/Constants.js"),d=n("./node_modules/jssip/lib-es5/Grammar.js"),f=n("./node_modules/jssip/lib-es5/Utils.js"),m=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:RTCSession:ReferSubscriber");e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,n,a,s=i(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this))._id=null,t._session=e,t}return t=l,(n=[{key:"sendRefer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m("sendRefer()");var a=f.cloneArray(n.extraHeaders),o=f.cloneObject(n.eventHandlers);for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&this.on(r,o[r]);var i=null;n.replaces&&(i=n.replaces._request.call_id,i+=";to-tag=".concat(n.replaces._to_tag),i+=";from-tag=".concat(n.replaces._from_tag),i=encodeURIComponent(i));var s="Refer-To: <".concat(e).concat(i?"?Replaces=".concat(i):"",">");a.push(s);var l="Referred-By: <".concat(this._session._ua._configuration.uri._scheme,":").concat(this._session._ua._configuration.uri._user,"@").concat(this._session._ua._configuration.uri._host,">");a.push(l),a.push("Contact: ".concat(this._session.contact));var c=this._session.sendRequest(u.REFER,{extraHeaders:a,eventHandlers:{onSuccessResponse:function(e){t._requestSucceeded(e)},onErrorResponse:function(e){t._requestFailed(e,u.causes.REJECTED)},onTransportError:function(){t._requestFailed(null,u.causes.CONNECTION_ERROR)},onRequestTimeout:function(){t._requestFailed(null,u.causes.REQUEST_TIMEOUT)},onDialogError:function(){t._requestFailed(null,u.causes.DIALOG_ERROR)}}});this._id=c.cseq}},{key:"receiveNotify",value:function(e){if(m("receiveNotify()"),e.body){var t=d.parse(e.body.trim(),"Status_Line");if(-1!==t)switch(!0){case/^100$/.test(t.status_code):this.emit("trying",{request:e,status_line:t});break;case/^1[0-9]{2}$/.test(t.status_code):this.emit("progress",{request:e,status_line:t});break;case/^2[0-9]{2}$/.test(t.status_code):this.emit("accepted",{request:e,status_line:t});break;default:this.emit("failed",{request:e,status_line:t})}else m('receiveNotify() | error parsing NOTIFY body: "'.concat(e.body,'"'))}}},{key:"_requestSucceeded",value:function(e){m("REFER succeeded"),m('emit "requestSucceeded"'),this.emit("requestSucceeded",{response:e})}},{key:"_requestFailed",value:function(e,t){m("REFER failed"),m('emit "requestFailed"'),this.emit("requestFailed",{response:e||null,cause:t})}},{key:"id",get:function(){return this._id}}])&&o(t.prototype,n),a&&o(t,a),l}(c)},"./node_modules/jssip/lib-es5/Registrator.js":(e,t,n)=>{"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n("./node_modules/jssip/lib-es5/Utils.js"),r=n("./node_modules/jssip/lib-es5/Constants.js"),i=n("./node_modules/jssip/lib-es5/SIPMessage.js"),s=n("./node_modules/jssip/lib-es5/RequestSender.js"),l=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:Registrator");e.exports=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);this._ua=t,this._transport=n,this._registrar=t.configuration.registrar_server,this._expires=t.configuration.register_expires,this._call_id=o.createRandomToken(22),this._cseq=0,this._to_uri=t.configuration.uri,this._registrationTimer=null,this._registering=!1,this._registered=!1,this._contact=this._ua.contact.toString(),this._contact+=";+sip.ice",this._extraHeaders=[],this._extraContactParams="",this._contact+=";reg-id=".concat(1),this._contact+=';+sip.instance="<urn:uuid:'.concat(this._ua.configuration.instance_id,'>"')}var t,n,c;return t=e,(n=[{key:"setExtraHeaders",value:function(e){Array.isArray(e)||(e=[]),this._extraHeaders=e.slice()}},{key:"setExtraContactParams",value:function(e){for(var t in e instanceof Object||(e={}),this._extraContactParams="",e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];this._extraContactParams+=";".concat(t),n&&(this._extraContactParams+="=".concat(n))}}},{key:"register",value:function(){var e=this;if(this._registering)l("Register request in progress...");else{var t=this._extraHeaders.slice();t.push("Contact: ".concat(this._contact,";expires=").concat(this._expires).concat(this._extraContactParams)),t.push("Expires: ".concat(this._expires));var n=new i.OutgoingRequest(r.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},t),a=new s(this._ua,n,{onRequestTimeout:function(){e._registrationFailure(null,r.causes.REQUEST_TIMEOUT)},onTransportError:function(){e._registrationFailure(null,r.causes.CONNECTION_ERROR)},onAuthenticated:function(){e._cseq+=1},onReceiveResponse:function(t){if(t.cseq===e._cseq)switch(null!==e._registrationTimer&&(clearTimeout(e._registrationTimer),e._registrationTimer=null),!0){case/^1[0-9]{2}$/.test(t.status_code):break;case/^2[0-9]{2}$/.test(t.status_code):if(e._registering=!1,!t.hasHeader("Contact")){l("no Contact header in response to REGISTER, response ignored");break}var n=t.headers.Contact.reduce((function(e,t){return e.concat(t.parsed)}),[]).find((function(t){return t.uri.user===e._ua.contact.uri.user}));if(!n){l("no Contact header pointing to us, response ignored");break}var a=n.getParam("expires");!a&&t.hasHeader("expires")&&(a=t.getHeader("expires")),a||(a=e._expires),(a=Number(a))<10&&(a=10);var i=a>64?1e3*a/2+Math.floor(1e3*(a/2-32)*Math.random()):1e3*a-5e3;e._registrationTimer=setTimeout((function(){e._registrationTimer=null,0===e._ua.listeners("registrationExpiring").length?e.register():e._ua.emit("registrationExpiring")}),i),n.hasParam("temp-gruu")&&(e._ua.contact.temp_gruu=n.getParam("temp-gruu").replace(/"/g,"")),n.hasParam("pub-gruu")&&(e._ua.contact.pub_gruu=n.getParam("pub-gruu").replace(/"/g,"")),e._registered||(e._registered=!0,e._ua.registered({response:t}));break;case/^423$/.test(t.status_code):t.hasHeader("min-expires")?(e._expires=Number(t.getHeader("min-expires")),e._expires<10&&(e._expires=10),e.register()):(l("423 response received for REGISTER without Min-Expires"),e._registrationFailure(t,r.causes.SIP_FAILURE_CODE));break;default:var s=o.sipErrorCause(t.status_code);e._registrationFailure(t,s)}}});this._registering=!0,a.send()}}},{key:"unregister",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._registered){this._registered=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null);var n=this._extraHeaders.slice();t.all?n.push("Contact: *".concat(this._extraContactParams)):n.push("Contact: ".concat(this._contact,";expires=0").concat(this._extraContactParams)),n.push("Expires: 0");var a=new i.OutgoingRequest(r.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},n),c=new s(this._ua,a,{onRequestTimeout:function(){e._unregistered(null,r.causes.REQUEST_TIMEOUT)},onTransportError:function(){e._unregistered(null,r.causes.CONNECTION_ERROR)},onAuthenticated:function(){e._cseq+=1},onReceiveResponse:function(t){switch(!0){case/^1[0-9]{2}$/.test(t.status_code):break;case/^2[0-9]{2}$/.test(t.status_code):e._unregistered(t);break;default:var n=o.sipErrorCause(t.status_code);e._unregistered(t,n)}}});c.send()}else l("already unregistered")}},{key:"close",value:function(){this._registered&&this.unregister()}},{key:"onTransportClosed",value:function(){this._registering=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),this._registered&&(this._registered=!1,this._ua.unregistered({}))}},{key:"_registrationFailure",value:function(e,t){this._registering=!1,this._ua.registrationFailed({response:e||null,cause:t}),this._registered&&(this._registered=!1,this._ua.unregistered({response:e||null,cause:t}))}},{key:"_unregistered",value:function(e,t){this._registering=!1,this._registered=!1,this._ua.unregistered({response:e||null,cause:t||null})}},{key:"registered",get:function(){return this._registered}}])&&a(t.prototype,n),c&&a(t,c),e}()},"./node_modules/jssip/lib-es5/RequestSender.js":(e,t,n)=>{"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n("./node_modules/jssip/lib-es5/Constants.js"),r=n("./node_modules/jssip/lib-es5/DigestAuthentication.js"),i=n("./node_modules/jssip/lib-es5/Transactions.js"),s=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:RequestSender"),l={onRequestTimeout:function(){},onTransportError:function(){},onReceiveResponse:function(){},onAuthenticated:function(){}};e.exports=function(){function e(t,n,a){for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ua=t,this._eventHandlers=a,this._method=n.method,this._request=n,this._auth=null,this._challenged=!1,this._staled=!1,l)Object.prototype.hasOwnProperty.call(l,r)&&(this._eventHandlers[r]||(this._eventHandlers[r]=l[r]));t.status!==t.C.STATUS_USER_CLOSED||this._method===o.BYE&&this._method===o.ACK||this._eventHandlers.onTransportError()}var t,n,c;return t=e,(n=[{key:"send",value:function(){var e=this,t={onRequestTimeout:function(){e._eventHandlers.onRequestTimeout()},onTransportError:function(){e._eventHandlers.onTransportError()},onReceiveResponse:function(t){e._receiveResponse(t)}};switch(this._method){case"INVITE":this.clientTransaction=new i.InviteClientTransaction(this._ua,this._ua.transport,this._request,t);break;case"ACK":this.clientTransaction=new i.AckClientTransaction(this._ua,this._ua.transport,this._request,t);break;default:this.clientTransaction=new i.NonInviteClientTransaction(this._ua,this._ua.transport,this._request,t)}this._ua._configuration.authorization_jwt&&this._request.setHeader("Authorization",this._ua._configuration.authorization_jwt),this.clientTransaction.send()}},{key:"_receiveResponse",value:function(e){var t,n,a=e.status_code;if(401!==a&&407!==a||null===this._ua.configuration.password&&null===this._ua.configuration.ha1)this._eventHandlers.onReceiveResponse(e);else{if(401===e.status_code?(t=e.parseHeader("www-authenticate"),n="authorization"):(t=e.parseHeader("proxy-authenticate"),n="proxy-authorization"),!t)return s("".concat(e.status_code," with wrong or missing challenge, cannot authenticate")),void this._eventHandlers.onReceiveResponse(e);if(!this._challenged||!this._staled&&!0===t.stale){if(this._auth||(this._auth=new r({username:this._ua.configuration.authorization_user,password:this._ua.configuration.password,realm:this._ua.configuration.realm,ha1:this._ua.configuration.ha1})),!this._auth.authenticate(this._request,t))return void this._eventHandlers.onReceiveResponse(e);this._challenged=!0,this._ua.set("realm",this._auth.get("realm")),this._ua.set("ha1",this._auth.get("ha1")),t.stale&&(this._staled=!0),this._request=this._request.clone(),this._request.cseq+=1,this._request.setHeader("cseq","".concat(this._request.cseq," ").concat(this._method)),this._request.setHeader(n,this._auth.toString()),this._eventHandlers.onAuthenticated(this._request),this.send()}else this._eventHandlers.onReceiveResponse(e)}}}])&&a(t.prototype,n),c&&a(t,c),e}()},"./node_modules/jssip/lib-es5/SIPMessage.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw r}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function m(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}var p=n("./node_modules/sdp-transform/lib/index.js"),g=n("./node_modules/jssip/lib-es5/Constants.js"),h=n("./node_modules/jssip/lib-es5/Utils.js"),_=n("./node_modules/jssip/lib-es5/NameAddrHeader.js"),b=n("./node_modules/jssip/lib-es5/Grammar.js"),y=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:SIPMessage"),v=function(){function e(t,n,a,o,r,i){if(d(this,e),!t||!n||!a)return null;o=o||{},this.ua=a,this.headers={},this.method=t,this.ruri=n,this.body=i,this.extraHeaders=h.cloneArray(r),o.route_set?this.setHeader("route",o.route_set):a.configuration.use_preloaded_route&&this.setHeader("route","<".concat(a.transport.sip_uri,";lr>")),this.setHeader("via",""),this.setHeader("max-forwards",g.MAX_FORWARDS);var s=o.to_uri||n,l=o.to_tag?{tag:o.to_tag}:null,c=void 0!==o.to_display_name?o.to_display_name:null;this.to=new _(s,c,l),this.setHeader("to",this.to.toString());var u,f=o.from_uri||a.configuration.uri,m={tag:o.from_tag||h.newTag()};u=void 0!==o.from_display_name?o.from_display_name:a.configuration.display_name?a.configuration.display_name:null,this.from=new _(f,u,m),this.setHeader("from",this.from.toString());var p=o.call_id||a.configuration.jssip_id+h.createRandomToken(15);this.call_id=p,this.setHeader("call-id",p);var b=o.cseq||Math.floor(1e4*Math.random());this.cseq=b,this.setHeader("cseq","".concat(b," ").concat(t))}return m(e,[{key:"setHeader",value:function(e,t){for(var n=new RegExp("^\\s*".concat(e,"\\s*:"),"i"),a=0;a<this.extraHeaders.length;a++)n.test(this.extraHeaders[a])&&this.extraHeaders.splice(a,1);this.headers[h.headerize(e)]=Array.isArray(t)?t:[t]}},{key:"getHeader",value:function(e){var t=this.headers[h.headerize(e)];if(t){if(t[0])return t[0]}else{var n,a=new RegExp("^\\s*".concat(e,"\\s*:"),"i"),o=c(this.extraHeaders);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(a.test(r))return r.substring(r.indexOf(":")+1).trim()}}catch(e){o.e(e)}finally{o.f()}}}},{key:"getHeaders",value:function(e){var t=this.headers[h.headerize(e)],n=[];if(t){var a,o=c(t);try{for(o.s();!(a=o.n()).done;){var r=a.value;n.push(r)}}catch(e){o.e(e)}finally{o.f()}return n}var i,s=new RegExp("^\\s*".concat(e,"\\s*:"),"i"),l=c(this.extraHeaders);try{for(l.s();!(i=l.n()).done;){var u=i.value;s.test(u)&&n.push(u.substring(u.indexOf(":")+1).trim())}}catch(e){l.e(e)}finally{l.f()}return n}},{key:"hasHeader",value:function(e){if(this.headers[h.headerize(e)])return!0;var t,n=new RegExp("^\\s*".concat(e,"\\s*:"),"i"),a=c(this.extraHeaders);try{for(a.s();!(t=a.n()).done;){var o=t.value;if(n.test(o))return!0}}catch(e){a.e(e)}finally{a.f()}return!1}},{key:"parseSDP",value:function(e){return!e&&this.sdp||(this.sdp=p.parse(this.body||"")),this.sdp}},{key:"toString",value:function(){var e="".concat(this.method," ").concat(this.ruri," SIP/2.0\r\n");for(var t in this.headers)if(Object.prototype.hasOwnProperty.call(this.headers,t)){var n,a=c(this.headers[t]);try{for(a.s();!(n=a.n()).done;){var o=n.value;e+="".concat(t,": ").concat(o,"\r\n")}}catch(e){a.e(e)}finally{a.f()}}var r,i=c(this.extraHeaders);try{for(i.s();!(r=i.n()).done;){var s=r.value;e+="".concat(s.trim(),"\r\n")}}catch(e){i.e(e)}finally{i.f()}var l=[];switch(this.method){case g.REGISTER:l.push("path","gruu");break;case g.INVITE:this.ua.configuration.session_timers&&l.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&l.push("gruu"),l.push("ice","replaces");break;case g.UPDATE:this.ua.configuration.session_timers&&l.push("timer"),l.push("ice")}l.push("outbound");var u=this.ua.configuration.user_agent||g.USER_AGENT;if(e+="Allow: ".concat(g.ALLOWED_METHODS,"\r\n"),e+="Supported: ".concat(l,"\r\n"),e+="User-Agent: ".concat(u,"\r\n"),this.body){var d=h.str_utf8_length(this.body);e+="Content-Length: ".concat(d,"\r\n\r\n"),e+=this.body}else e+="Content-Length: 0\r\n\r\n";return e}},{key:"clone",value:function(){var t=new e(this.method,this.ruri,this.ua);return Object.keys(this.headers).forEach((function(e){t.headers[e]=this.headers[e].slice()}),this),t.body=this.body,t.extraHeaders=h.cloneArray(this.extraHeaders),t.to=this.to,t.from=this.from,t.call_id=this.call_id,t.cseq=this.cseq,t}}]),e}(),A=function(e){o(n,e);var t=i(n);function n(e,a,o,r,i){var s;return d(this,n),(s=t.call(this,g.INVITE,e,a,o,r,i)).transaction=null,s}return m(n,[{key:"cancel",value:function(e){this.transaction.cancel(e)}},{key:"clone",value:function(){var e=new n(this.ruri,this.ua);return Object.keys(this.headers).forEach((function(t){e.headers[t]=this.headers[t].slice()}),this),e.body=this.body,e.extraHeaders=h.cloneArray(this.extraHeaders),e.to=this.to,e.from=this.from,e.call_id=this.call_id,e.cseq=this.cseq,e.transaction=this.transaction,e}}]),n}(v),S=function(){function e(){d(this,e),this.data=null,this.headers=null,this.method=null,this.via=null,this.via_branch=null,this.call_id=null,this.cseq=null,this.from=null,this.from_tag=null,this.to=null,this.to_tag=null,this.body=null,this.sdp=null}return m(e,[{key:"addHeader",value:function(e,t){var n={raw:t};e=h.headerize(e),this.headers[e]?this.headers[e].push(n):this.headers[e]=[n]}},{key:"getHeader",value:function(e){var t=this.headers[h.headerize(e)];if(t)return t[0]?t[0].raw:void 0}},{key:"getHeaders",value:function(e){var t=this.headers[h.headerize(e)],n=[];if(!t)return[];var a,o=c(t);try{for(o.s();!(a=o.n()).done;){var r=a.value;n.push(r.raw)}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"hasHeader",value:function(e){return!!this.headers[h.headerize(e)]}},{key:"parseHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e=h.headerize(e),this.headers[e]){if(!(t>=this.headers[e].length)){var n=this.headers[e][t],a=n.raw;if(n.parsed)return n.parsed;var o=b.parse(a,e.replace(/-/g,"_"));return-1===o?(this.headers[e].splice(t,1),void y('error parsing "'.concat(e,'" header field with value "').concat(a,'"'))):(n.parsed=o,o)}y('not so many "'.concat(e,'" headers present'))}else y('header "'.concat(e,'" not present'))}},{key:"s",value:function(e,t){return this.parseHeader(e,t)}},{key:"setHeader",value:function(e,t){var n={raw:t};this.headers[h.headerize(e)]=[n]}},{key:"parseSDP",value:function(e){return!e&&this.sdp||(this.sdp=p.parse(this.body||"")),this.sdp}},{key:"toString",value:function(){return this.data}}]),e}(),w=function(e){o(n,e);var t=i(n);function n(e){var a;return d(this,n),(a=t.call(this)).ua=e,a.headers={},a.ruri=null,a.transport=null,a.server_transaction=null,a}return m(n,[{key:"reply",value:function(e,t,n,a,o,r){var i=[],s=this.getHeader("To");if(t=t||null,!(e=e||null)||e<100||e>699)throw new TypeError("Invalid status_code: ".concat(e));if(t&&"string"!=typeof t&&!(t instanceof String))throw new TypeError("Invalid reason_phrase: ".concat(t));t=t||g.REASON_PHRASE[e]||"",n=h.cloneArray(n);var l="SIP/2.0 ".concat(e," ").concat(t,"\r\n");if(this.method===g.INVITE&&e>100&&e<=200){var u,d=c(this.getHeaders("record-route"));try{for(d.s();!(u=d.n()).done;){var f=u.value;l+="Record-Route: ".concat(f,"\r\n")}}catch(e){d.e(e)}finally{d.f()}}var m,p=c(this.getHeaders("via"));try{for(p.s();!(m=p.n()).done;){var _=m.value;l+="Via: ".concat(_,"\r\n")}}catch(e){p.e(e)}finally{p.f()}!this.to_tag&&e>100?s+=";tag=".concat(h.newTag()):this.to_tag&&!this.s("to").hasParam("tag")&&(s+=";tag=".concat(this.to_tag)),l+="To: ".concat(s,"\r\n"),l+="From: ".concat(this.getHeader("From"),"\r\n"),l+="Call-ID: ".concat(this.call_id,"\r\n"),l+="CSeq: ".concat(this.cseq," ").concat(this.method,"\r\n");var b,y=c(n);try{for(y.s();!(b=y.n()).done;){var v=b.value;l+="".concat(v.trim(),"\r\n")}}catch(e){y.e(e)}finally{y.f()}switch(this.method){case g.INVITE:this.ua.configuration.session_timers&&i.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&i.push("gruu"),i.push("ice","replaces");break;case g.UPDATE:this.ua.configuration.session_timers&&i.push("timer"),a&&i.push("ice"),i.push("replaces")}if(i.push("outbound"),this.method===g.OPTIONS?(l+="Allow: ".concat(g.ALLOWED_METHODS,"\r\n"),l+="Accept: ".concat(g.ACCEPTED_BODY_TYPES,"\r\n")):405===e?l+="Allow: ".concat(g.ALLOWED_METHODS,"\r\n"):415===e&&(l+="Accept: ".concat(g.ACCEPTED_BODY_TYPES,"\r\n")),l+="Supported: ".concat(i,"\r\n"),a){var A=h.str_utf8_length(a);l+="Content-Type: application/sdp\r\n",l+="Content-Length: ".concat(A,"\r\n\r\n"),l+=a}else l+="Content-Length: ".concat(0,"\r\n\r\n");this.server_transaction.receiveResponse(e,l,o,r)}},{key:"reply_sl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getHeaders("via");if(!e||e<100||e>699)throw new TypeError("Invalid status_code: ".concat(e));if(t&&"string"!=typeof t&&!(t instanceof String))throw new TypeError("Invalid reason_phrase: ".concat(t));t=t||g.REASON_PHRASE[e]||"";var a,o="SIP/2.0 ".concat(e," ").concat(t,"\r\n"),r=c(n);try{for(r.s();!(a=r.n()).done;){var i=a.value;o+="Via: ".concat(i,"\r\n")}}catch(e){r.e(e)}finally{r.f()}var s=this.getHeader("To");!this.to_tag&&e>100?s+=";tag=".concat(h.newTag()):this.to_tag&&!this.s("to").hasParam("tag")&&(s+=";tag=".concat(this.to_tag)),o+="To: ".concat(s,"\r\n"),o+="From: ".concat(this.getHeader("From"),"\r\n"),o+="Call-ID: ".concat(this.call_id,"\r\n"),o+="CSeq: ".concat(this.cseq," ").concat(this.method,"\r\n"),o+="Content-Length: ".concat(0,"\r\n\r\n"),this.transport.send(o)}}]),n}(S),E=function(e){o(n,e);var t=i(n);function n(){var e;return d(this,n),(e=t.call(this)).headers={},e.status_code=null,e.reason_phrase=null,e}return n}(S);e.exports={OutgoingRequest:v,InitialOutgoingInviteRequest:A,IncomingRequest:w,IncomingResponse:E}},"./node_modules/jssip/lib-es5/Socket.js":(e,t,n)=>{"use strict";var a=n("./node_modules/jssip/lib-es5/Utils.js"),o=n("./node_modules/jssip/lib-es5/Grammar.js"),r=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:Socket");r.log=console.warn.bind(console),t.isSocket=function(e){if(Array.isArray(e))return!1;if(void 0===e)return r("undefined JsSIP.Socket instance"),!1;try{if(!a.isString(e.url))throw r("missing or invalid JsSIP.Socket url property"),new Error;if(!a.isString(e.via_transport))throw r("missing or invalid JsSIP.Socket via_transport property"),new Error;if(-1===o.parse(e.sip_uri,"SIP_URI"))throw r("missing or invalid JsSIP.Socket sip_uri property"),new Error}catch(e){return!1}try{["connect","disconnect","send"].forEach((function(t){if(!a.isFunction(e[t]))throw r("missing or invalid JsSIP.Socket method: ".concat(t)),new Error}))}catch(e){return!1}return!0}},"./node_modules/jssip/lib-es5/Timers.js":e=>{"use strict";var t=500;e.exports={T1:t,T2:4e3,T4:5e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4}},"./node_modules/jssip/lib-es5/Transactions.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=n("./node_modules/events/events.js").EventEmitter,p=n("./node_modules/jssip/lib-es5/Constants.js"),g=n("./node_modules/jssip/lib-es5/SIPMessage.js"),h=n("./node_modules/jssip/lib-es5/Timers.js"),_=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:NonInviteClientTransaction"),b=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:InviteClientTransaction"),y=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:AckClientTransaction"),v=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:NonInviteServerTransaction"),A=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:InviteServerTransaction"),S={STATUS_TRYING:1,STATUS_PROCEEDING:2,STATUS_CALLING:3,STATUS_ACCEPTED:4,STATUS_COMPLETED:5,STATUS_TERMINATED:6,STATUS_CONFIRMED:7,NON_INVITE_CLIENT:"nict",NON_INVITE_SERVER:"nist",INVITE_CLIENT:"ict",INVITE_SERVER:"ist"},w=function(e){s(n,e);var t=c(n);function n(e,a,r,i){var s;o(this,n),(s=t.call(this)).type=S.NON_INVITE_CLIENT,s.id="z9hG4bK".concat(Math.floor(1e7*Math.random())),s.ua=e,s.transport=a,s.request=r,s.eventHandlers=i;var l="SIP/2.0/".concat(a.via_transport);return l+=" ".concat(e.configuration.via_host,";branch=").concat(s.id),s.request.setHeader("via",l),s.ua.newTransaction(d(s)),s}return i(n,[{key:"stateChanged",value:function(e){this.state=e,this.emit("stateChanged")}},{key:"send",value:function(){var e=this;this.stateChanged(S.STATUS_TRYING),this.F=setTimeout((function(){e.timer_F()}),h.TIMER_F),this.transport.send(this.request)||this.onTransportError()}},{key:"onTransportError",value:function(){_("transport error occurred, deleting transaction ".concat(this.id)),clearTimeout(this.F),clearTimeout(this.K),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onTransportError()}},{key:"timer_F",value:function(){_("Timer F expired for transaction ".concat(this.id)),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout()}},{key:"timer_K",value:function(){this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"receiveResponse",value:function(e){var t=this,n=e.status_code;if(n<200)switch(this.state){case S.STATUS_TRYING:case S.STATUS_PROCEEDING:this.stateChanged(S.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e)}else switch(this.state){case S.STATUS_TRYING:case S.STATUS_PROCEEDING:this.stateChanged(S.STATUS_COMPLETED),clearTimeout(this.F),408===n?this.eventHandlers.onRequestTimeout():this.eventHandlers.onReceiveResponse(e),this.K=setTimeout((function(){t.timer_K()}),h.TIMER_K)}}},{key:"C",get:function(){return S}}]),n}(m),E=function(e){s(n,e);var t=c(n);function n(e,a,r,i){var s;o(this,n),(s=t.call(this)).type=S.INVITE_CLIENT,s.id="z9hG4bK".concat(Math.floor(1e7*Math.random())),s.ua=e,s.transport=a,s.request=r,s.eventHandlers=i,r.transaction=d(s);var l="SIP/2.0/".concat(a.via_transport);return l+=" ".concat(e.configuration.via_host,";branch=").concat(s.id),s.request.setHeader("via",l),s.ua.newTransaction(d(s)),s}return i(n,[{key:"stateChanged",value:function(e){this.state=e,this.emit("stateChanged")}},{key:"send",value:function(){var e=this;this.stateChanged(S.STATUS_CALLING),this.B=setTimeout((function(){e.timer_B()}),h.TIMER_B),this.transport.send(this.request)||this.onTransportError()}},{key:"onTransportError",value:function(){clearTimeout(this.B),clearTimeout(this.D),clearTimeout(this.M),this.state!==S.STATUS_ACCEPTED&&(b("transport error occurred, deleting transaction ".concat(this.id)),this.eventHandlers.onTransportError()),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"timer_M",value:function(){b("Timer M expired for transaction ".concat(this.id)),this.state===S.STATUS_ACCEPTED&&(clearTimeout(this.B),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"timer_B",value:function(){b("Timer B expired for transaction ".concat(this.id)),this.state===S.STATUS_CALLING&&(this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout())}},{key:"timer_D",value:function(){b("Timer D expired for transaction ".concat(this.id)),clearTimeout(this.B),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"sendACK",value:function(e){var t=this,n=new g.OutgoingRequest(p.ACK,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq});n.setHeader("from",this.request.getHeader("from")),n.setHeader("via",this.request.getHeader("via")),n.setHeader("to",e.getHeader("to")),this.D=setTimeout((function(){t.timer_D()}),h.TIMER_D),this.transport.send(n)}},{key:"cancel",value:function(e){if(this.state===S.STATUS_PROCEEDING){var t=new g.OutgoingRequest(p.CANCEL,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq});t.setHeader("from",this.request.getHeader("from")),t.setHeader("via",this.request.getHeader("via")),t.setHeader("to",this.request.getHeader("to")),e&&t.setHeader("reason",e),this.transport.send(t)}}},{key:"receiveResponse",value:function(e){var t=this,n=e.status_code;if(n>=100&&n<=199)switch(this.state){case S.STATUS_CALLING:this.stateChanged(S.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(e);break;case S.STATUS_PROCEEDING:this.eventHandlers.onReceiveResponse(e)}else if(n>=200&&n<=299)switch(this.state){case S.STATUS_CALLING:case S.STATUS_PROCEEDING:this.stateChanged(S.STATUS_ACCEPTED),this.M=setTimeout((function(){t.timer_M()}),h.TIMER_M),this.eventHandlers.onReceiveResponse(e);break;case S.STATUS_ACCEPTED:this.eventHandlers.onReceiveResponse(e)}else if(n>=300&&n<=699)switch(this.state){case S.STATUS_CALLING:case S.STATUS_PROCEEDING:this.stateChanged(S.STATUS_COMPLETED),this.sendACK(e),this.eventHandlers.onReceiveResponse(e);break;case S.STATUS_COMPLETED:this.sendACK(e)}}},{key:"C",get:function(){return S}}]),n}(m),C=function(e){s(n,e);var t=c(n);function n(e,a,r,i){var s;o(this,n),(s=t.call(this)).id="z9hG4bK".concat(Math.floor(1e7*Math.random())),s.transport=a,s.request=r,s.eventHandlers=i;var l="SIP/2.0/".concat(a.via_transport);return l+=" ".concat(e.configuration.via_host,";branch=").concat(s.id),s.request.setHeader("via",l),s}return i(n,[{key:"send",value:function(){this.transport.send(this.request)||this.onTransportError()}},{key:"onTransportError",value:function(){y("transport error occurred for transaction ".concat(this.id)),this.eventHandlers.onTransportError()}},{key:"C",get:function(){return S}}]),n}(m),T=function(e){s(n,e);var t=c(n);function n(e,a,r){var i;return o(this,n),(i=t.call(this)).type=S.NON_INVITE_SERVER,i.id=r.via_branch,i.ua=e,i.transport=a,i.request=r,i.last_response="",r.server_transaction=d(i),i.state=S.STATUS_TRYING,e.newTransaction(d(i)),i}return i(n,[{key:"stateChanged",value:function(e){this.state=e,this.emit("stateChanged")}},{key:"timer_J",value:function(){v("Timer J expired for transaction ".concat(this.id)),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"onTransportError",value:function(){this.transportError||(this.transportError=!0,v("transport error occurred, deleting transaction ".concat(this.id)),clearTimeout(this.J),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"receiveResponse",value:function(e,t,n,a){var o=this;if(100===e)switch(this.state){case S.STATUS_TRYING:this.stateChanged(S.STATUS_PROCEEDING),this.transport.send(t)||this.onTransportError();break;case S.STATUS_PROCEEDING:this.last_response=t,this.transport.send(t)?n&&n():(this.onTransportError(),a&&a())}else if(e>=200&&e<=699)switch(this.state){case S.STATUS_TRYING:case S.STATUS_PROCEEDING:this.stateChanged(S.STATUS_COMPLETED),this.last_response=t,this.J=setTimeout((function(){o.timer_J()}),h.TIMER_J),this.transport.send(t)?n&&n():(this.onTransportError(),a&&a())}}},{key:"C",get:function(){return S}}]),n}(m),I=function(e){s(n,e);var t=c(n);function n(e,a,r){var i;return o(this,n),(i=t.call(this)).type=S.INVITE_SERVER,i.id=r.via_branch,i.ua=e,i.transport=a,i.request=r,i.last_response="",r.server_transaction=d(i),i.state=S.STATUS_PROCEEDING,e.newTransaction(d(i)),i.resendProvisionalTimer=null,r.reply(100),i}return i(n,[{key:"stateChanged",value:function(e){this.state=e,this.emit("stateChanged")}},{key:"timer_H",value:function(){A("Timer H expired for transaction ".concat(this.id)),this.state===S.STATUS_COMPLETED&&A("ACK not received, dialog will be terminated"),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"timer_I",value:function(){this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"timer_L",value:function(){A("Timer L expired for transaction ".concat(this.id)),this.state===S.STATUS_ACCEPTED&&(this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"onTransportError",value:function(){this.transportError||(this.transportError=!0,A("transport error occurred, deleting transaction ".concat(this.id)),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),clearTimeout(this.L),clearTimeout(this.H),clearTimeout(this.I),this.stateChanged(S.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"resend_provisional",value:function(){this.transport.send(this.last_response)||this.onTransportError()}},{key:"receiveResponse",value:function(e,t,n,a){var o=this;if(e>=100&&e<=199)switch(this.state){case S.STATUS_PROCEEDING:this.transport.send(t)||this.onTransportError(),this.last_response=t}if(e>100&&e<=199&&this.state===S.STATUS_PROCEEDING)null===this.resendProvisionalTimer&&(this.resendProvisionalTimer=setInterval((function(){o.resend_provisional()}),h.PROVISIONAL_RESPONSE_INTERVAL));else if(e>=200&&e<=299)switch(this.state){case S.STATUS_PROCEEDING:this.stateChanged(S.STATUS_ACCEPTED),this.last_response=t,this.L=setTimeout((function(){o.timer_L()}),h.TIMER_L),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null);case S.STATUS_ACCEPTED:this.transport.send(t)?n&&n():(this.onTransportError(),a&&a())}else if(e>=300&&e<=699)switch(this.state){case S.STATUS_PROCEEDING:null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),this.transport.send(t)?(this.stateChanged(S.STATUS_COMPLETED),this.H=setTimeout((function(){o.timer_H()}),h.TIMER_H),n&&n()):(this.onTransportError(),a&&a())}}},{key:"C",get:function(){return S}}]),n}(m);e.exports={C:S,NonInviteClientTransaction:w,InviteClientTransaction:E,AckClientTransaction:C,NonInviteServerTransaction:T,InviteServerTransaction:I,checkTransaction:function(e,t){var n,a=e._transactions;switch(t.method){case p.INVITE:if(n=a.ist[t.via_branch]){switch(n.state){case S.STATUS_PROCEEDING:n.transport.send(n.last_response)}return!0}break;case p.ACK:if(!(n=a.ist[t.via_branch]))return!1;if(n.state===S.STATUS_ACCEPTED)return!1;if(n.state===S.STATUS_COMPLETED)return n.state=S.STATUS_CONFIRMED,n.I=setTimeout((function(){n.timer_I()}),h.TIMER_I),!0;break;case p.CANCEL:return(n=a.ist[t.via_branch])?(t.reply_sl(200),n.state!==S.STATUS_PROCEEDING):(t.reply_sl(481),!0);default:if(n=a.nist[t.via_branch]){switch(n.state){case S.STATUS_TRYING:break;case S.STATUS_PROCEEDING:case S.STATUS_COMPLETED:n.transport.send(n.last_response)}return!0}}}}},"./node_modules/jssip/lib-es5/Transport.js":(e,t,n)=>{"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=n("./node_modules/jssip/lib-es5/Socket.js"),i=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:Transport"),s=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:Transport"),l=n("./node_modules/jssip/lib-es5/Constants.js");s.log=console.warn.bind(console);var c={STATUS_CONNECTED:0,STATUS_CONNECTING:1,STATUS_DISCONNECTED:2,SOCKET_STATUS_READY:0,SOCKET_STATUS_ERROR:1,recovery_options:{min_interval:l.CONNECTION_RECOVERY_MIN_INTERVAL,max_interval:l.CONNECTION_RECOVERY_MAX_INTERVAL}};e.exports=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.recovery_options;if(a(this,e),i("new()"),this.status=c.STATUS_DISCONNECTED,this.socket=null,this.sockets=[],this.recovery_options=n,this.recover_attempts=0,this.recovery_timer=null,this.close_requested=!1,void 0===t)throw new TypeError("Invalid argument. undefined 'sockets' argument");t instanceof Array||(t=[t]),t.forEach((function(e){if(!r.isSocket(e.socket))throw new TypeError("Invalid argument. invalid 'JsSIP.Socket' instance");if(e.weight&&!Number(e.weight))throw new TypeError("Invalid argument. 'weight' attribute is not a number");this.sockets.push({socket:e.socket,weight:e.weight||0,status:c.SOCKET_STATUS_READY})}),this),this._getSocket()}var t,n,l;return t=e,(n=[{key:"connect",value:function(){i("connect()"),this.isConnected()?i("Transport is already connected"):this.isConnecting()?i("Transport is connecting"):(this.close_requested=!1,this.status=c.STATUS_CONNECTING,this.onconnecting({socket:this.socket,attempts:this.recover_attempts}),this.close_requested||(this.socket.onconnect=this._onConnect.bind(this),this.socket.ondisconnect=this._onDisconnect.bind(this),this.socket.ondata=this._onData.bind(this),this.socket.connect()))}},{key:"disconnect",value:function(){i("close()"),this.close_requested=!0,this.recover_attempts=0,this.status=c.STATUS_DISCONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.socket.onconnect=function(){},this.socket.ondisconnect=function(){},this.socket.ondata=function(){},this.socket.disconnect(),this.ondisconnect({socket:this.socket,error:!1})}},{key:"send",value:function(e){if(i("send()"),!this.isConnected())return s("unable to send message, transport is not connected"),!1;var t=e.toString();return i("sending message:\n\n".concat(t,"\n")),this.socket.send(t)}},{key:"isConnected",value:function(){return this.status===c.STATUS_CONNECTED}},{key:"isConnecting",value:function(){return this.status===c.STATUS_CONNECTING}},{key:"_reconnect",value:function(){var e=this;this.recover_attempts+=1;var t=Math.floor(Math.random()*Math.pow(2,this.recover_attempts)+1);t<this.recovery_options.min_interval?t=this.recovery_options.min_interval:t>this.recovery_options.max_interval&&(t=this.recovery_options.max_interval),i("reconnection attempt: ".concat(this.recover_attempts,". next connection attempt in ").concat(t," seconds")),this.recovery_timer=setTimeout((function(){e.close_requested||e.isConnected()||e.isConnecting()||(e._getSocket(),e.connect())}),1e3*t)}},{key:"_getSocket",value:function(){var e=[];if(this.sockets.forEach((function(t){t.status!==c.SOCKET_STATUS_ERROR&&(0===e.length?e.push(t):t.weight>e[0].weight?e=[t]:t.weight===e[0].weight&&e.push(t))})),0===e.length)return this.sockets.forEach((function(e){e.status=c.SOCKET_STATUS_READY})),void this._getSocket();var t=Math.floor(Math.random()*e.length);this.socket=e[t].socket}},{key:"_onConnect",value:function(){this.recover_attempts=0,this.status=c.STATUS_CONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.onconnect({socket:this})}},{key:"_onDisconnect",value:function(e,t,n){this.status=c.STATUS_DISCONNECTED,this.ondisconnect({socket:this.socket,error:e,code:t,reason:n}),this.close_requested||(this.sockets.forEach((function(e){this.socket===e.socket&&(e.status=c.SOCKET_STATUS_ERROR)}),this),this._reconnect(e))}},{key:"_onData",value:function(e){if("\r\n"!==e){if("string"!=typeof e){try{e=String.fromCharCode.apply(null,new Uint8Array(e))}catch(e){return void i("received binary message failed to be converted into string, message discarded")}i("received binary message:\n\n".concat(e,"\n"))}else i("received text message:\n\n".concat(e,"\n"));this.ondata({transport:this,message:e})}else i("received message with CRLF Keep Alive response")}},{key:"via_transport",get:function(){return this.socket.via_transport}},{key:"url",get:function(){return this.socket.url}},{key:"sip_uri",get:function(){return this.socket.sip_uri}}])&&o(t.prototype,n),l&&o(t,l),e}()},"./node_modules/jssip/lib-es5/UA.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=n("./node_modules/events/events.js").EventEmitter,f=n("./node_modules/jssip/lib-es5/Constants.js"),m=n("./node_modules/jssip/lib-es5/Registrator.js"),p=n("./node_modules/jssip/lib-es5/RTCSession.js"),g=n("./node_modules/jssip/lib-es5/Message.js"),h=n("./node_modules/jssip/lib-es5/Transactions.js"),_=n("./node_modules/jssip/lib-es5/Transport.js"),b=n("./node_modules/jssip/lib-es5/Utils.js"),y=n("./node_modules/jssip/lib-es5/Exceptions.js"),v=n("./node_modules/jssip/lib-es5/URI.js"),A=n("./node_modules/jssip/lib-es5/Parser.js"),S=n("./node_modules/jssip/lib-es5/SIPMessage.js"),w=n("./node_modules/jssip/lib-es5/sanityCheck.js"),E=n("./node_modules/jssip/lib-es5/Config.js"),C=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:UA"),T=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:UA");T.log=console.warn.bind(console);var I={STATUS_INIT:0,STATUS_READY:1,STATUS_USER_CLOSED:2,STATUS_NOT_READY:3,CONFIGURATION_ERROR:1,NETWORK_ERROR:2};function k(e){this.emit("connecting",e)}function D(e){this._status!==I.STATUS_USER_CLOSED&&(this._status=I.STATUS_READY,this._error=null,this.emit("connected",e),this._dynConfiguration.register&&this._registrator.register())}function x(e){for(var t=0,n=["nict","ict","nist","ist"];t<n.length;t++){var a=n[t];for(var o in this._transactions[a])Object.prototype.hasOwnProperty.call(this._transactions[a],o)&&this._transactions[a][o].onTransportError()}this.emit("disconnected",e),this._registrator.onTransportClosed(),this._status!==I.STATUS_USER_CLOSED&&(this._status=I.STATUS_NOT_READY,this._error=I.NETWORK_ERROR)}function M(e){var t=e.transport,n=e.message;if((n=A.parseMessage(n,this))&&!(this._status===I.STATUS_USER_CLOSED&&n instanceof S.IncomingRequest)&&w(n,this,t))if(n instanceof S.IncomingRequest)n.transport=t,this.receiveRequest(n);else if(n instanceof S.IncomingResponse){var a;switch(n.method){case f.INVITE:(a=this._transactions.ict[n.via_branch])&&a.receiveResponse(n);break;case f.ACK:break;default:(a=this._transactions.nict[n.via_branch])&&a.receiveResponse(n)}}}e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=s(n);function n(e){var a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),C("new() [configuration:%o]",e),(a=t.call(this))._cache={credentials:{}},a._configuration=Object.assign({},E.settings),a._dynConfiguration={},a._dialogs={},a._applicants={},a._sessions={},a._transport=null,a._contact=null,a._status=I.STATUS_INIT,a._error=null,a._transactions={nist:{},nict:{},ist:{},ict:{}},a._data={},a._closeTimer=null,void 0===e)throw new TypeError("Not enough arguments");try{a._loadConfig(e)}catch(e){throw a._status=I.STATUS_NOT_READY,a._error=I.CONFIGURATION_ERROR,e}return a._registrator=new m(c(a)),a}return r(n,null,[{key:"C",get:function(){return I}}]),r(n,[{key:"start",value:function(){C("start()"),this._status===I.STATUS_INIT?this._transport.connect():this._status===I.STATUS_USER_CLOSED?(C("restarting UA"),null!==this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null,this._transport.disconnect()),this._status=I.STATUS_INIT,this._transport.connect()):this._status===I.STATUS_READY?C("UA is in READY status, not restarted"):C("ERROR: connection is down, Auto-Recovery system is trying to reconnect"),this._dynConfiguration.register=this._configuration.register}},{key:"register",value:function(){C("register()"),this._dynConfiguration.register=!0,this._registrator.register()}},{key:"unregister",value:function(e){C("unregister()"),this._dynConfiguration.register=!1,this._registrator.unregister(e)}},{key:"registrator",value:function(){return this._registrator}},{key:"isRegistered",value:function(){return this._registrator.registered}},{key:"isConnected",value:function(){return this._transport.isConnected()}},{key:"call",value:function(e,t){C("call()");var n=new p(this);return n.connect(e,t),n}},{key:"sendMessage",value:function(e,t,n){C("sendMessage()");var a=new g(this);return a.send(e,t,n),a}},{key:"terminateSessions",value:function(e){for(var t in C("terminateSessions()"),this._sessions)this._sessions[t].isEnded()||this._sessions[t].terminate(e)}},{key:"stop",value:function(){var e=this;if(C("stop()"),this._dynConfiguration={},this._status!==I.STATUS_USER_CLOSED){this._registrator.close();var t=Object.keys(this._sessions).length;for(var n in this._sessions)if(Object.prototype.hasOwnProperty.call(this._sessions,n)){C("closing session ".concat(n));try{this._sessions[n].terminate()}catch(e){}}for(var a in this._applicants)if(Object.prototype.hasOwnProperty.call(this._applicants,a))try{this._applicants[a].close()}catch(e){}this._status=I.STATUS_USER_CLOSED,0===Object.keys(this._transactions.nict).length+Object.keys(this._transactions.nist).length+Object.keys(this._transactions.ict).length+Object.keys(this._transactions.ist).length&&0===t?this._transport.disconnect():this._closeTimer=setTimeout((function(){e._closeTimer=null,e._transport.disconnect()}),2e3)}else C("UA already closed")}},{key:"normalizeTarget",value:function(e){return b.normalizeTarget(e,this._configuration.hostport_params)}},{key:"get",value:function(e){switch(e){case"authorization_user":return this._configuration.authorization_user;case"realm":return this._configuration.realm;case"ha1":return this._configuration.ha1;case"authorization_jwt":return this._configuration.authorization_jwt;default:return void T('get() | cannot get "%s" parameter in runtime',e)}}},{key:"set",value:function(e,t){switch(e){case"authorization_user":this._configuration.authorization_user=String(t);break;case"password":this._configuration.password=String(t);break;case"realm":this._configuration.realm=String(t);break;case"ha1":this._configuration.ha1=String(t),this._configuration.password=null;break;case"authorization_jwt":this._configuration.authorization_jwt=String(t);break;case"display_name":this._configuration.display_name=t;break;default:return T('set() | cannot set "%s" parameter in runtime',e),!1}return!0}},{key:"newTransaction",value:function(e){this._transactions[e.type][e.id]=e,this.emit("newTransaction",{transaction:e})}},{key:"destroyTransaction",value:function(e){delete this._transactions[e.type][e.id],this.emit("transactionDestroyed",{transaction:e})}},{key:"newDialog",value:function(e){this._dialogs[e.id]=e}},{key:"destroyDialog",value:function(e){delete this._dialogs[e.id]}},{key:"newMessage",value:function(e,t){this._applicants[e]=e,this.emit("newMessage",t)}},{key:"destroyMessage",value:function(e){delete this._applicants[e]}},{key:"newRTCSession",value:function(e,t){this._sessions[e.id]=e,this.emit("newRTCSession",t)}},{key:"destroyRTCSession",value:function(e){delete this._sessions[e.id]}},{key:"registered",value:function(e){this.emit("registered",e)}},{key:"unregistered",value:function(e){this.emit("unregistered",e)}},{key:"registrationFailed",value:function(e){this.emit("registrationFailed",e)}},{key:"receiveRequest",value:function(e){var t=e.method;if(e.ruri.user!==this._configuration.uri.user&&e.ruri.user!==this._contact.uri.user)return C("Request-URI does not point to us"),void(e.method!==f.ACK&&e.reply_sl(404));if(e.ruri.scheme!==f.SIPS){if(!h.checkTransaction(this,e)){if(t===f.INVITE?new h.InviteServerTransaction(this,this._transport,e):t!==f.ACK&&t!==f.CANCEL&&new h.NonInviteServerTransaction(this,this._transport,e),t===f.OPTIONS)e.reply(200);else if(t===f.MESSAGE){if(0===this.listeners("newMessage").length)return void e.reply(405);new g(this).init_incoming(e)}else if(t===f.INVITE&&!e.to_tag&&0===this.listeners("newRTCSession").length)return void e.reply(405);var n,a;if(e.to_tag)(n=this._findDialog(e.call_id,e.from_tag,e.to_tag))?n.receiveRequest(e):t===f.NOTIFY?(a=this._findSession(e))?a.receiveRequest(e):(C("received NOTIFY request for a non existent subscription"),e.reply(481,"Subscription does not exist")):t!==f.ACK&&e.reply(481);else switch(t){case f.INVITE:if(window.RTCPeerConnection)if(e.hasHeader("replaces")){var o=e.replaces;(n=this._findDialog(o.call_id,o.from_tag,o.to_tag))?(a=n.owner).isEnded()?e.reply(603):a.receiveRequest(e):e.reply(481)}else(a=new p(this)).init_incoming(e);else T("INVITE received but WebRTC is not supported"),e.reply(488);break;case f.BYE:e.reply(481);break;case f.CANCEL:(a=this._findSession(e))?a.receiveRequest(e):C("received CANCEL request for a non existent session");break;case f.ACK:break;case f.NOTIFY:this.emit("sipEvent",{event:e.event,request:e}),e.reply(200);break;default:e.reply(405)}}}else e.reply_sl(416)}},{key:"_findSession",value:function(e){var t=e.call_id,n=e.from_tag,a=e.to_tag,o=t+n,r=this._sessions[o],i=t+a,s=this._sessions[i];return r||(s||null)}},{key:"_findDialog",value:function(e,t,n){var a=e+t+n,o=this._dialogs[a];return o||(a=e+n+t,(o=this._dialogs[a])||null)}},{key:"_loadConfig",value:function(e){try{E.load(this._configuration,e)}catch(e){throw e}0===this._configuration.display_name&&(this._configuration.display_name="0"),this._configuration.instance_id||(this._configuration.instance_id=b.newUUID()),this._configuration.jssip_id=b.createRandomToken(5);var t=this._configuration.uri.clone();t.user=null,this._configuration.hostport_params=t.toString().replace(/^sip:/i,"");try{this._transport=new _(this._configuration.sockets,{max_interval:this._configuration.connection_recovery_max_interval,min_interval:this._configuration.connection_recovery_min_interval}),this._transport.onconnecting=k.bind(this),this._transport.onconnect=D.bind(this),this._transport.ondisconnect=x.bind(this),this._transport.ondata=M.bind(this)}catch(e){throw T(e),new y.ConfigurationError("sockets",this._configuration.sockets)}if(delete this._configuration.sockets,this._configuration.authorization_user||(this._configuration.authorization_user=this._configuration.uri.user),!this._configuration.registrar_server){var n=this._configuration.uri.clone();n.user=null,n.clearParams(),n.clearHeaders(),this._configuration.registrar_server=n}this._configuration.no_answer_timeout*=1e3,this._configuration.contact_uri?this._configuration.via_host=this._configuration.contact_uri.host:this._configuration.contact_uri=new v("sip",b.createRandomToken(8),this._configuration.via_host,null,{transport:"ws"}),this._contact={pub_gruu:null,temp_gruu:null,uri:this._configuration.contact_uri,toString:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.anonymous||null,n=e.outbound||null,a="<";return a+=t?this.temp_gruu||"sip:anonymous@anonymous.invalid;transport=ws":this.pub_gruu||this.uri.toString(),!n||(t?this.temp_gruu:this.pub_gruu)||(a+=";ob"),a+=">"}};var a=["authorization_user","password","realm","ha1","authorization_jwt","display_name","register"];for(var o in this._configuration)Object.prototype.hasOwnProperty.call(this._configuration,o)&&(-1!==a.indexOf(o)?Object.defineProperty(this._configuration,o,{writable:!0,configurable:!1}):Object.defineProperty(this._configuration,o,{writable:!1,configurable:!1}));for(var r in C("configuration parameters after validation:"),this._configuration)if(Object.prototype.hasOwnProperty.call(E.settings,r))switch(r){case"uri":case"registrar_server":C("- ".concat(r,": ").concat(this._configuration[r]));break;case"password":case"ha1":case"authorization_jwt":C("- ".concat(r,": NOT SHOWN"));break;default:C("- ".concat(r,": ").concat(JSON.stringify(this._configuration[r])))}}},{key:"C",get:function(){return I}},{key:"status",get:function(){return this._status}},{key:"contact",get:function(){return this._contact}},{key:"configuration",get:function(){return this._configuration}},{key:"transport",get:function(){return this._transport}}]),n}(d)},"./node_modules/jssip/lib-es5/URI.js":(e,t,n)=>{"use strict";function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var l=n("./node_modules/jssip/lib-es5/Constants.js"),c=n("./node_modules/jssip/lib-es5/Utils.js"),u=n("./node_modules/jssip/lib-es5/Grammar.js");e.exports=function(){function e(t,n,a,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(r(this,e),!a)throw new TypeError('missing or invalid "host" parameter');for(var c in this._parameters={},this._headers={},this._scheme=t||l.SIP,this._user=n,this._host=a,this._port=o,i)Object.prototype.hasOwnProperty.call(i,c)&&this.setParam(c,i[c]);for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&this.setHeader(u,s[u])}return s(e,null,[{key:"parse",value:function(e){return-1!==(e=u.parse(e,"SIP_URI"))?e:void 0}}]),s(e,[{key:"setParam",value:function(e,t){e&&(this._parameters[e.toLowerCase()]=null==t?null:t.toString())}},{key:"getParam",value:function(e){if(e)return this._parameters[e.toLowerCase()]}},{key:"hasParam",value:function(e){if(e)return!!this._parameters.hasOwnProperty(e.toLowerCase())}},{key:"deleteParam",value:function(e){if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e)){var t=this._parameters[e];return delete this._parameters[e],t}}},{key:"clearParams",value:function(){this._parameters={}}},{key:"setHeader",value:function(e,t){this._headers[c.headerize(e)]=Array.isArray(t)?t:[t]}},{key:"getHeader",value:function(e){if(e)return this._headers[c.headerize(e)]}},{key:"hasHeader",value:function(e){if(e)return!!this._headers.hasOwnProperty(c.headerize(e))}},{key:"deleteHeader",value:function(e){if(e=c.headerize(e),this._headers.hasOwnProperty(e)){var t=this._headers[e];return delete this._headers[e],t}}},{key:"clearHeaders",value:function(){this._headers={}}},{key:"clone",value:function(){return new e(this._scheme,this._user,this._host,this._port,JSON.parse(JSON.stringify(this._parameters)),JSON.parse(JSON.stringify(this._headers)))}},{key:"toString",value:function(){var e=[],t="".concat(this._scheme,":");for(var n in this._user&&(t+="".concat(c.escapeUser(this._user),"@")),t+=this._host,(this._port||0===this._port)&&(t+=":".concat(this._port)),this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,n)&&(t+=";".concat(n),null!==this._parameters[n]&&(t+="=".concat(this._parameters[n])));for(var o in this._headers)if(Object.prototype.hasOwnProperty.call(this._headers,o)){var r,i=a(this._headers[o]);try{for(i.s();!(r=i.n()).done;){var s=r.value;e.push("".concat(o,"=").concat(s))}}catch(e){i.e(e)}finally{i.f()}}return e.length>0&&(t+="?".concat(e.join("&"))),t}},{key:"toAor",value:function(e){var t="".concat(this._scheme,":");return this._user&&(t+="".concat(c.escapeUser(this._user),"@")),t+=this._host,e&&(this._port||0===this._port)&&(t+=":".concat(this._port)),t}},{key:"scheme",get:function(){return this._scheme},set:function(e){this._scheme=e.toLowerCase()}},{key:"user",get:function(){return this._user},set:function(e){this._user=e}},{key:"host",get:function(){return this._host},set:function(e){this._host=e.toLowerCase()}},{key:"port",get:function(){return this._port},set:function(e){this._port=0===e?e:parseInt(e,10)||null}}]),e}()},"./node_modules/jssip/lib-es5/Utils.js":(e,t,n)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=n("./node_modules/jssip/lib-es5/Constants.js"),s=n("./node_modules/jssip/lib-es5/URI.js"),l=n("./node_modules/jssip/lib-es5/Grammar.js");t.str_utf8_length=function(e){return unescape(encodeURIComponent(e)).length};var c=t.isFunction=function(e){return void 0!==e&&"[object Function]"===Object.prototype.toString.call(e)};t.isString=function(e){return void 0!==e&&"[object String]"===Object.prototype.toString.call(e)},t.isDecimal=function(e){return!isNaN(e)&&parseFloat(e)===parseInt(e,10)},t.isEmpty=function(e){return null===e||""===e||void 0===e||Array.isArray(e)&&0===e.length||"number"==typeof e&&isNaN(e)},t.hasMethods=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];for(var o=0,r=n;o<r.length;o++){var i=r[o];if(c(e[i]))return!1}return!0};var u=t.createRandomToken=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,a="";for(t=0;t<e;t++)a+=(Math.random()*n|0).toString(n);return a};t.newTag=function(){return u(10)},t.newUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},t.hostType=function(e){if(e)return-1!==(e=l.parse(e,"host"))?e.host_type:void 0};var d=t.escapeUser=function(e){return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")};t.normalizeTarget=function(e,t){if(e){if(e instanceof s)return e;if("string"==typeof e){var n,a,o,r=e.split("@");switch(r.length){case 1:if(!t)return;n=e,a=t;break;case 2:n=r[0],a=r[1];break;default:n=r.slice(0,r.length-1).join("@"),a=r[r.length-1]}return n=n.replace(/^(sips?|tel):/i,""),/^[-.()]*\+?[0-9\-.()]+$/.test(n)&&(n=n.replace(/[-.()]/g,"")),e="".concat(i.SIP,":").concat(d(n),"@").concat(a),(o=s.parse(e))?o:void 0}}else;},t.headerize=function(e){var t,n={"Call-Id":"Call-ID",Cseq:"CSeq","Www-Authenticate":"WWW-Authenticate"},a=e.toLowerCase().replace(/_/g,"-").split("-"),o="",r=a.length;for(t=0;t<r;t++)0!==t&&(o+="-"),o+=a[t].charAt(0).toUpperCase()+a[t].substring(1);return n[o]&&(o=n[o]),o},t.sipErrorCause=function(e){for(var t in i.SIP_ERROR_CAUSES)if(-1!==i.SIP_ERROR_CAUSES[t].indexOf(e))return i.causes[t];return i.causes.SIP_FAILURE_CODE},t.getRandomTestNetIP=function(){return"192.0.2.".concat((e=1,t=254,Math.floor(Math.random()*(t-e+1)+e)));var e,t},t.calculateMD5=function(e){function t(e,t){return e<<t|e>>>32-t}function n(e,t){var n=2147483648&e,a=2147483648&t,o=1073741824&e,r=1073741824&t,i=(1073741823&e)+(1073741823&t);return o&r?2147483648^i^n^a:o|r?1073741824&i?3221225472^i^n^a:1073741824^i^n^a:i^n^a}function a(e,a,o,r,i,s,l){return e=n(e,n(n(function(e,t,n){return e&t|~e&n}(a,o,r),i),l)),n(t(e,s),a)}function o(e,a,o,r,i,s,l){return e=n(e,n(n(function(e,t,n){return e&n|t&~n}(a,o,r),i),l)),n(t(e,s),a)}function r(e,a,o,r,i,s,l){return e=n(e,n(n(function(e,t,n){return e^t^n}(a,o,r),i),l)),n(t(e,s),a)}function i(e,a,o,r,i,s,l){return e=n(e,n(n(function(e,t,n){return t^(e|~n)}(a,o,r),i),l)),n(t(e,s),a)}function s(e){var t,n="",a="";for(t=0;t<=3;t++)n+=(a="0".concat((e>>>8*t&255).toString(16))).substr(a.length-2,2);return n}var l,c,u,d,f,m,p,g,h,_;for(l=function(e){for(var t,n=e.length,a=n+8,o=16*((a-a%64)/64+1),r=new Array(o-1),i=0,s=0;s<n;)i=s%4*8,r[t=(s-s%4)/4]=r[t]|e.charCodeAt(s)<<i,s++;return i=s%4*8,r[t=(s-s%4)/4]=r[t]|128<<i,r[o-2]=n<<3,r[o-1]=n>>>29,r}(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var a=e.charCodeAt(n);a<128?t+=String.fromCharCode(a):a>127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t}(e)),p=1732584193,g=4023233417,h=2562383102,_=271733878,c=0;c<l.length;c+=16)u=p,d=g,f=h,m=_,p=a(p,g,h,_,l[c+0],7,3614090360),_=a(_,p,g,h,l[c+1],12,3905402710),h=a(h,_,p,g,l[c+2],17,606105819),g=a(g,h,_,p,l[c+3],22,3250441966),p=a(p,g,h,_,l[c+4],7,4118548399),_=a(_,p,g,h,l[c+5],12,1200080426),h=a(h,_,p,g,l[c+6],17,2821735955),g=a(g,h,_,p,l[c+7],22,4249261313),p=a(p,g,h,_,l[c+8],7,1770035416),_=a(_,p,g,h,l[c+9],12,2336552879),h=a(h,_,p,g,l[c+10],17,4294925233),g=a(g,h,_,p,l[c+11],22,2304563134),p=a(p,g,h,_,l[c+12],7,1804603682),_=a(_,p,g,h,l[c+13],12,4254626195),h=a(h,_,p,g,l[c+14],17,2792965006),p=o(p,g=a(g,h,_,p,l[c+15],22,1236535329),h,_,l[c+1],5,4129170786),_=o(_,p,g,h,l[c+6],9,3225465664),h=o(h,_,p,g,l[c+11],14,643717713),g=o(g,h,_,p,l[c+0],20,3921069994),p=o(p,g,h,_,l[c+5],5,3593408605),_=o(_,p,g,h,l[c+10],9,38016083),h=o(h,_,p,g,l[c+15],14,3634488961),g=o(g,h,_,p,l[c+4],20,3889429448),p=o(p,g,h,_,l[c+9],5,568446438),_=o(_,p,g,h,l[c+14],9,3275163606),h=o(h,_,p,g,l[c+3],14,4107603335),g=o(g,h,_,p,l[c+8],20,1163531501),p=o(p,g,h,_,l[c+13],5,2850285829),_=o(_,p,g,h,l[c+2],9,4243563512),h=o(h,_,p,g,l[c+7],14,1735328473),p=r(p,g=o(g,h,_,p,l[c+12],20,2368359562),h,_,l[c+5],4,4294588738),_=r(_,p,g,h,l[c+8],11,2272392833),h=r(h,_,p,g,l[c+11],16,1839030562),g=r(g,h,_,p,l[c+14],23,4259657740),p=r(p,g,h,_,l[c+1],4,2763975236),_=r(_,p,g,h,l[c+4],11,1272893353),h=r(h,_,p,g,l[c+7],16,4139469664),g=r(g,h,_,p,l[c+10],23,3200236656),p=r(p,g,h,_,l[c+13],4,681279174),_=r(_,p,g,h,l[c+0],11,3936430074),h=r(h,_,p,g,l[c+3],16,3572445317),g=r(g,h,_,p,l[c+6],23,76029189),p=r(p,g,h,_,l[c+9],4,3654602809),_=r(_,p,g,h,l[c+12],11,3873151461),h=r(h,_,p,g,l[c+15],16,530742520),p=i(p,g=r(g,h,_,p,l[c+2],23,3299628645),h,_,l[c+0],6,4096336452),_=i(_,p,g,h,l[c+7],10,1126891415),h=i(h,_,p,g,l[c+14],15,2878612391),g=i(g,h,_,p,l[c+5],21,4237533241),p=i(p,g,h,_,l[c+12],6,1700485571),_=i(_,p,g,h,l[c+3],10,2399980690),h=i(h,_,p,g,l[c+10],15,4293915773),g=i(g,h,_,p,l[c+1],21,2240044497),p=i(p,g,h,_,l[c+8],6,1873313359),_=i(_,p,g,h,l[c+15],10,4264355552),h=i(h,_,p,g,l[c+6],15,2734768916),g=i(g,h,_,p,l[c+13],21,1309151649),p=i(p,g,h,_,l[c+4],6,4149444226),_=i(_,p,g,h,l[c+11],10,3174756917),h=i(h,_,p,g,l[c+2],15,718787259),g=i(g,h,_,p,l[c+9],21,3951481745),p=n(p,u),g=n(g,d),h=n(h,f),_=n(_,m);return(s(p)+s(g)+s(h)+s(_)).toLowerCase()},t.closeMediaStream=function(e){if(e)try{if(e.getTracks){var t,n=o(e.getTracks());try{for(n.s();!(t=n.n()).done;){t.value.stop()}}catch(e){n.e(e)}finally{n.f()}}else{var r,i=o(e.getAudioTracks());try{for(i.s();!(r=i.n()).done;){r.value.stop()}}catch(e){i.e(e)}finally{i.f()}var s,l=o(e.getVideoTracks());try{for(l.s();!(s=l.n()).done;){s.value.stop()}}catch(e){l.e(e)}finally{l.f()}}}catch(t){"function"!=typeof e.stop&&"object"!==a(e.stop)||e.stop()}},t.cloneArray=function(e){return e&&e.slice()||[]},t.cloneObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.assign({},e)||t}},"./node_modules/jssip/lib-es5/WebSocketInterface.js":(e,t,n)=>{"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n("./node_modules/jssip/lib-es5/Grammar.js"),r=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:WebSocketInterface"),i=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:ERROR:WebSocketInterface");i.log=console.warn.bind(console),e.exports=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r('new() [url:"%s"]',t),this._url=t,this._sip_uri=null,this._via_transport=null,this._ws=null;var n=o.parse(t,"absoluteURI");if(-1===n)throw i("invalid WebSocket URI: ".concat(t)),new TypeError("Invalid argument: ".concat(t));if("wss"!==n.scheme&&"ws"!==n.scheme)throw i("invalid WebSocket URI scheme: ".concat(n.scheme)),new TypeError("Invalid argument: ".concat(t));this._sip_uri="sip:".concat(n.host).concat(n.port?":".concat(n.port):"",";transport=ws"),this._via_transport=n.scheme.toUpperCase()}var t,n,s;return t=e,(n=[{key:"connect",value:function(){if(r("connect()"),this.isConnected())r("WebSocket ".concat(this._url," is already connected"));else if(this.isConnecting())r("WebSocket ".concat(this._url," is connecting"));else{this._ws&&this.disconnect(),r("connecting to WebSocket ".concat(this._url));try{this._ws=new WebSocket(this._url,"sip"),this._ws.binaryType="arraybuffer",this._ws.onopen=this._onOpen.bind(this),this._ws.onclose=this._onClose.bind(this),this._ws.onmessage=this._onMessage.bind(this),this._ws.onerror=this._onError.bind(this)}catch(e){this._onError(e)}}}},{key:"disconnect",value:function(){r("disconnect()"),this._ws&&(this._ws.onopen=function(){},this._ws.onclose=function(){},this._ws.onmessage=function(){},this._ws.onerror=function(){},this._ws.close(),this._ws=null)}},{key:"send",value:function(e){return r("send()"),this.isConnected()?(this._ws.send(e),!0):(i("unable to send message, WebSocket is not open"),!1)}},{key:"isConnected",value:function(){return this._ws&&this._ws.readyState===this._ws.OPEN}},{key:"isConnecting",value:function(){return this._ws&&this._ws.readyState===this._ws.CONNECTING}},{key:"_onOpen",value:function(){r("WebSocket ".concat(this._url," connected")),this.onconnect()}},{key:"_onClose",value:function(e){var t=e.wasClean,n=e.code,a=e.reason;r("WebSocket ".concat(this._url," closed")),!1===t&&r("WebSocket abrupt disconnection");var o={socket:this,error:!t,code:n,reason:a};this.ondisconnect(o)}},{key:"_onMessage",value:function(e){var t=e.data;r("received WebSocket message"),this.ondata(t)}},{key:"_onError",value:function(e){i("WebSocket ".concat(this._url," error: ").concat(e))}},{key:"via_transport",get:function(){return this._via_transport},set:function(e){this._via_transport=e.toUpperCase()}},{key:"sip_uri",get:function(){return this._sip_uri}},{key:"url",get:function(){return this._url}}])&&a(t.prototype,n),s&&a(t,s),e}()},"./node_modules/jssip/lib-es5/sanityCheck.js":(e,t,n)=>{"use strict";function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var r,i,s,l=n("./node_modules/jssip/lib-es5/Constants.js"),c=n("./node_modules/jssip/lib-es5/SIPMessage.js"),u=n("./node_modules/jssip/lib-es5/Utils.js"),d=n("./node_modules/jssip/node_modules/debug/src/browser.js")("JsSIP:sanityCheck"),f=[function(){for(var e=0,t=["from","to","call_id","cseq","via"];e<t.length;e++){var n=t[e];if(!r.hasHeader(n))return d("missing mandatory header field : ".concat(n,", dropping the response")),!1}}],m=[function(){if("sip"!==r.s("to").uri.scheme)return g(416),!1},function(){if(!r.to_tag&&r.call_id.substr(0,5)===i.configuration.jssip_id)return g(482),!1},function(){var e=u.str_utf8_length(r.body),t=r.getHeader("content-length");if(e<t)return g(400),!1},function(){var e,t=r.from_tag,n=r.call_id,a=r.cseq;if(r.to_tag)return;if(r.method===l.INVITE){if(i._transactions.ist[r.via_branch])return!1;for(var o in i._transactions.ist)if(Object.prototype.hasOwnProperty.call(i._transactions.ist,o)&&(e=i._transactions.ist[o]).request.from_tag===t&&e.request.call_id===n&&e.request.cseq===a)return g(482),!1}else{if(i._transactions.nist[r.via_branch])return!1;for(var s in i._transactions.nist)if(Object.prototype.hasOwnProperty.call(i._transactions.nist,s)&&(e=i._transactions.nist[s]).request.from_tag===t&&e.request.call_id===n&&e.request.cseq===a)return g(482),!1}}],p=[function(){if(r.getHeaders("via").length>1)return d("more than one Via header field present in the response, dropping the response"),!1},function(){var e=u.str_utf8_length(r.body),t=r.getHeader("content-length");if(e<t)return d("message body length is lower than the value in Content-Length header field, dropping the response"),!1}];function g(e){var t,n,o=r.getHeaders("via"),i="SIP/2.0 ".concat(e," ").concat(l.REASON_PHRASE[e],"\r\n"),c=a(o);try{for(c.s();!(n=c.n()).done;){var d=n.value;i+="Via: ".concat(d,"\r\n")}}catch(e){c.e(e)}finally{c.f()}t=r.getHeader("To"),r.to_tag||(t+=";tag=".concat(u.newTag())),i+="To: ".concat(t,"\r\n"),i+="From: ".concat(r.getHeader("From"),"\r\n"),i+="Call-ID: ".concat(r.call_id,"\r\n"),i+="CSeq: ".concat(r.cseq," ").concat(r.method,"\r\n"),i+="\r\n",s.send(i)}e.exports=function(e,t,n){r=e,i=t,s=n;var o,l=a(f);try{for(l.s();!(o=l.n()).done;){if(!1===(0,o.value)())return!1}}catch(e){l.e(e)}finally{l.f()}if(r instanceof c.IncomingRequest){var u,d=a(m);try{for(d.s();!(u=d.n()).done;){if(!1===(0,u.value)())return!1}}catch(e){d.e(e)}finally{d.f()}}else if(r instanceof c.IncomingResponse){var g,h=a(p);try{for(h.s();!(g=h.n()).done;){if(!1===(0,g.value)())return!1}}catch(e){h.e(e)}finally{h.f()}}return!0}},"./node_modules/jssip/node_modules/debug/src/browser.js":(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(o=a))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n("./node_modules/jssip/node_modules/debug/src/common.js")(t);const{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"./node_modules/jssip/node_modules/debug/src/common.js":(e,t,n)=>{e.exports=function(e){function t(e){let n,o=null;function r(...e){if(!r.enabled)return;const a=r,o=Number(new Date),i=o-(n||o);a.diff=i,a.prev=n,a.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const r=t.formatters[o];if("function"==typeof r){const t=e[s];n=r.call(a,t),e.splice(s,1),s--}return n})),t.formatArgs.call(a,e);(a.log||t.log).apply(a,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=a,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(r),r}function a(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const a=("string"==typeof e?e:"").split(/[\s,]+/),o=a.length;for(n=0;n<o;n++)a[n]&&("-"===(e=a[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,a;for(n=0,a=t.skips.length;n<a;n++)if(t.skips[n].test(e))return!1;for(n=0,a=t.names.length;n<a;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n("./node_modules/ms/index.js"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},"./node_modules/jssip/package.json":e=>{"use strict";e.exports=JSON.parse('{"name":"jssip","title":"JsSIP","description":"the Javascript SIP library","version":"3.7.1","homepage":"https://jssip.net","author":"José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)","contributors":["Iñaki Baz Castillo <ibc@aliax.net> (https://github.com/ibc)"],"types":"lib/JsSIP.d.ts","main":"lib-es5/JsSIP.js","keywords":["sip","websocket","webrtc","node","browser","library"],"license":"MIT","repository":{"type":"git","url":"https://github.com/versatica/JsSIP.git"},"bugs":{"url":"https://github.com/versatica/JsSIP/issues"},"dependencies":{"@types/debug":"^4.1.5","@types/node":"^14.14.13","debug":"^4.3.1","events":"^3.2.0","sdp-transform":"^2.14.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.10","ansi-colors":"^3.2.4","browserify":"^16.5.1","eslint":"^5.16.0","fancy-log":"^1.3.3","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-eslint":"^5.0.0","gulp-expect-file":"^1.0.2","gulp-header":"^2.0.9","gulp-nodeunit-runner":"^0.2.2","gulp-plumber":"^1.2.1","gulp-rename":"^1.4.0","gulp-uglify-es":"^1.0.4","pegjs":"^0.7.0","vinyl-buffer":"^1.0.1","vinyl-source-stream":"^2.0.0"},"scripts":{"lint":"gulp lint","test":"gulp test","prepublishOnly":"gulp babel"}}')},"./node_modules/jstree/dist/jstree.js":(e,t,n)=>{var a,o,r;!function(i){"use strict";o=[n("./node_modules/jquery/dist/jquery.js")],void 0===(r="function"==typeof(a=function(e,t){if(e.jstree)return;var n=0,a=!1,o=!1,r=!1,i=[],s=e("script:last").attr("src"),l=window.document,c=window.setImmediate,u=window.Promise;!c&&u&&(c=function(e,t){u.resolve(t).then(e)});e.jstree={version:"3.3.11",defaults:{plugins:[]},plugins:{},path:s&&-1!==s.indexOf("/")?s.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"},e.jstree.create=function(t,a){var o=new e.jstree.core(++n),r=a;return a=e.extend(!0,{},e.jstree.defaults,a),r&&r.plugins&&(a.plugins=r.plugins),e.each(a.plugins,(function(e,t){"core"!==e&&(o=o.plugin(t,a[t]))})),e(t).data("jstree",o),o.init(t,a),o},e.jstree.destroy=function(){e(".jstree:jstree").jstree("destroy"),e(l).off(".jstree")},e.jstree.core=function(e){this._id=e,this._cnt=0,this._wrk=null,this._data={core:{themes:{name:!1,dots:!1,icons:!1,ellipsis:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}},e.jstree.reference=function(t){var n=null,a=null;if(!t||!t.id||t.tagName&&t.nodeType||(t=t.id),!a||!a.length)try{a=e(t)}catch(e){}if(!a||!a.length)try{a=e("#"+t.replace(e.jstree.idregex,"\\$&"))}catch(e){}return a&&a.length&&(a=a.closest(".jstree")).length&&(a=a.data("jstree"))?n=a:e(".jstree").each((function(){var a=e(this).data("jstree");if(a&&a._model.data[t])return n=a,!1})),n},e.fn.jstree=function(n){var a="string"==typeof n,o=Array.prototype.slice.call(arguments,1),r=null;return!(!0===n&&!this.length)&&(this.each((function(){var i=e.jstree.reference(this),s=a&&i?i[n]:null;if(r=a&&s?s.apply(i,o):null,i||a||n!==t&&!e.isPlainObject(n)||e.jstree.create(this,n),(i&&!a||!0===n)&&(r=i||!1),null!==r&&r!==t)return!1})),null!==r&&r!==t?r:this)},e.expr.pseudos.jstree=e.expr.createPseudo((function(n){return function(n){return e(n).hasClass("jstree")&&e(n).data("jstree")!==t}})),e.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:e.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,ellipsis:!1,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0,loaded_state:!1,restore_focus:!0,compute_elements_positions:!1,keyboard:{"ctrl-space":function(t){t.type="click",e(t.currentTarget).trigger(t)},enter:function(t){t.type="click",e(t.currentTarget).trigger(t)},left:function(t){if(t.preventDefault(),this.is_open(t.currentTarget))this.close_node(t.currentTarget);else{var n=this.get_parent(t.currentTarget);n&&n.id!==e.jstree.root&&this.get_node(n,!0).children(".jstree-anchor").focus()}},up:function(e){e.preventDefault();var t=this.get_prev_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},right:function(t){if(t.preventDefault(),this.is_closed(t.currentTarget))this.open_node(t.currentTarget,(function(e){this.get_node(e,!0).children(".jstree-anchor").focus()}));else if(this.is_open(t.currentTarget)){var n=this.get_node(t.currentTarget,!0).children(".jstree-children")[0];n&&e(this._firstChild(n)).children(".jstree-anchor").focus()}},down:function(e){e.preventDefault();var t=this.get_next_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},"*":function(e){this.open_all()},home:function(t){t.preventDefault();var n=this._firstChild(this.get_container_ul()[0]);n&&e(n).children(".jstree-anchor").filter(":visible").focus()},end:function(e){e.preventDefault(),this.element.find(".jstree-anchor").filter(":visible").last().focus()},f2:function(e){e.preventDefault(),this.edit(e.currentTarget)}}},e.jstree.core.prototype={plugin:function(t,n){var a=e.jstree.plugins[t];return a?(this._data[t]={},a.prototype=this,new a(n,this)):this},init:function(t,n){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this._model.data[e.jstree.root]={id:e.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this.element=e(t).addClass("jstree jstree-"+this._id),this.settings=n,this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl="rtl"===this.element.css("direction"),this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl"),this.element.attr("role","tree"),this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0),this.element.attr("tabindex")||this.element.attr("tabindex","0"),this.bind(),this.trigger("init"),this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0),this._data.core.original_container_html.find("li").addBack().contents().filter((function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))})).remove(),this.element.html("<ul class='jstree-container-ul jstree-children' role='group'><li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading"),this._data.core.li_height=this.get_container_ul().children("li").first().outerHeight()||24,this._data.core.node=this._create_prototype_node(),this.trigger("loading"),this.load_node(e.jstree.root)},destroy:function(e){if(this.trigger("destroy"),this._wrk)try{window.URL.revokeObjectURL(this._wrk),this._wrk=null}catch(e){}e||this.element.empty(),this.teardown()},_create_prototype_node:function(){var e,t,n=l.createElement("LI");return n.setAttribute("role","none"),(e=l.createElement("I")).className="jstree-icon jstree-ocl",e.setAttribute("role","presentation"),n.appendChild(e),(e=l.createElement("A")).className="jstree-anchor",e.setAttribute("href","#"),e.setAttribute("tabindex","-1"),e.setAttribute("role","treeitem"),(t=l.createElement("I")).className="jstree-icon jstree-themeicon",t.setAttribute("role","presentation"),e.appendChild(t),n.appendChild(e),e=t=null,n},_kbevent_to_func:function(e){var t={8:"Backspace",9:"Tab",13:"Enter",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",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",16:"Shift",17:"Ctrl",18:"Alt",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",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*",173:"-"},n=[];if(e.ctrlKey&&n.push("ctrl"),e.altKey&&n.push("alt"),e.shiftKey&&n.push("shift"),n.push(t[e.which]||e.which),"shift-shift"===(n=n.sort().join("-").toLowerCase())||"ctrl-ctrl"===n||"alt-alt"===n)return null;var a,o,r=this.settings.core.keyboard;for(a in r)if(r.hasOwnProperty(a)&&("-"!==(o=a)&&"+"!==o&&(o=(o=o.replace("--","-MINUS").replace("+-","-MINUS").replace("++","-PLUS").replace("-+","-PLUS")).split(/-|\+/).sort().join("-").replace("MINUS","-").replace("PLUS","+").toLowerCase()),o===n))return r[a];return null},teardown:function(){this.unbind(),this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",(function(){return this.className.replace(/jstree[^ ]*|$/gi,"")})),this.element=null},bind:function(){var t="",n=null,a=0;this.element.on("dblclick.jstree",(function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;if(l.selection&&l.selection.empty)l.selection.empty();else if(window.getSelection){var t=window.getSelection();try{t.removeAllRanges(),t.collapse()}catch(e){}}})).on("mousedown.jstree",e.proxy((function(e){e.target===this.element[0]&&(e.preventDefault(),a=+new Date)}),this)).on("mousedown.jstree",".jstree-ocl",(function(e){e.preventDefault()})).on("click.jstree",".jstree-ocl",e.proxy((function(e){this.toggle_node(e.target)}),this)).on("dblclick.jstree",".jstree-anchor",e.proxy((function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;this.settings.core.dblclick_toggle&&this.toggle_node(e.target)}),this)).on("click.jstree",".jstree-anchor",e.proxy((function(t){t.preventDefault(),t.currentTarget!==l.activeElement&&e(t.currentTarget).focus(),this.activate_node(t.currentTarget,t)}),this)).on("keydown.jstree",".jstree-anchor",e.proxy((function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;this._data.core.rtl&&(37===e.which?e.which=39:39===e.which&&(e.which=37));var t=this._kbevent_to_func(e);if(t){var n=t.call(this,e);if(!1===n||!0===n)return n}}),this)).on("load_node.jstree",e.proxy((function(t,n){n.status&&(n.node.id!==e.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(e.proxy((function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var t,n,a=[];for(t=0,n=this._data.core.selected.length;t<n;t++)a=a.concat(this._model.data[this._data.core.selected[t]].parents);for(t=0,n=(a=e.vakata.array_unique(a)).length;t<n;t++)this.open_node(a[t],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}this.trigger("ready")}}),this),0))}),this)).on("keypress.jstree",e.proxy((function(a){if(a.target.tagName&&"input"===a.target.tagName.toLowerCase())return!0;n&&clearTimeout(n),n=setTimeout((function(){t=""}),500);var o=String.fromCharCode(a.which).toLowerCase(),r=this.element.find(".jstree-anchor").filter(":visible"),i=r.index(l.activeElement)||0,s=!1;if((t+=o).length>1){if(r.slice(i).each(e.proxy((function(n,a){if(0===e(a).text().toLowerCase().indexOf(t))return e(a).focus(),s=!0,!1}),this)),s)return;if(r.slice(0,i).each(e.proxy((function(n,a){if(0===e(a).text().toLowerCase().indexOf(t))return e(a).focus(),s=!0,!1}),this)),s)return}if(new RegExp("^"+o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"+$").test(t)){if(r.slice(i+1).each(e.proxy((function(t,n){if(e(n).text().toLowerCase().charAt(0)===o)return e(n).focus(),s=!0,!1}),this)),s)return;if(r.slice(0,i+1).each(e.proxy((function(t,n){if(e(n).text().toLowerCase().charAt(0)===o)return e(n).focus(),s=!0,!1}),this)),s)return}}),this)).on("init.jstree",e.proxy((function(){var e=this.settings.core.themes;this._data.core.themes.dots=e.dots,this._data.core.themes.stripes=e.stripes,this._data.core.themes.icons=e.icons,this._data.core.themes.ellipsis=e.ellipsis,this.set_theme(e.name||"default",e.url),this.set_theme_variant(e.variant)}),this)).on("loading.jstree",e.proxy((function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"](),this[this._data.core.themes.icons?"show_icons":"hide_icons"](),this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"](),this[this._data.core.themes.ellipsis?"show_ellipsis":"hide_ellipsis"]()}),this)).on("blur.jstree",".jstree-anchor",e.proxy((function(t){this._data.core.focused=null,e(t.currentTarget).filter(".jstree-hovered").trigger("mouseleave"),this.element.attr("tabindex","0")}),this)).on("focus.jstree",".jstree-anchor",e.proxy((function(t){var n=this.get_node(t.currentTarget);n&&n.id&&(this._data.core.focused=n.id),this.element.find(".jstree-hovered").not(t.currentTarget).trigger("mouseleave"),e(t.currentTarget).trigger("mouseenter"),this.element.attr("tabindex","-1")}),this)).on("focus.jstree",e.proxy((function(){if(+new Date-a>500&&!this._data.core.focused&&this.settings.core.restore_focus){a=0;var e=this.get_node(this.element.attr("aria-activedescendant"),!0);e&&e.find("> .jstree-anchor").focus()}}),this)).on("mouseenter.jstree",".jstree-anchor",e.proxy((function(e){this.hover_node(e.currentTarget)}),this)).on("mouseleave.jstree",".jstree-anchor",e.proxy((function(e){this.dehover_node(e.currentTarget)}),this))},unbind:function(){this.element.off(".jstree"),e(l).off(".jstree-"+this._id)},trigger:function(e,t){t||(t={}),t.instance=this,this.element.triggerHandler(e.replace(".jstree","")+".jstree",t)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(".jstree-children").first()},get_string:function(t){var n=this.settings.core.strings;return e.isFunction(n)?n.call(this,t):n&&n[t]?n[t]:t},_firstChild:function(e){for(e=e?e.firstChild:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_nextSibling:function(e){for(e=e?e.nextSibling:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_previousSibling:function(e){for(e=e?e.previousSibling:null;null!==e&&1!==e.nodeType;)e=e.previousSibling;return e},get_node:function(t,n){var a;t&&t.id&&(t=t.id),t instanceof e&&t.length&&t[0].id&&(t=t[0].id);try{if(this._model.data[t])t=this._model.data[t];else if("string"==typeof t&&this._model.data[t.replace(/^#/,"")])t=this._model.data[t.replace(/^#/,"")];else if("string"==typeof t&&(a=e("#"+t.replace(e.jstree.idregex,"\\$&"),this.element)).length&&this._model.data[a.closest(".jstree-node").attr("id")])t=this._model.data[a.closest(".jstree-node").attr("id")];else if((a=this.element.find(t)).length&&this._model.data[a.closest(".jstree-node").attr("id")])t=this._model.data[a.closest(".jstree-node").attr("id")];else{if(!(a=this.element.find(t)).length||!a.hasClass("jstree"))return!1;t=this._model.data[e.jstree.root]}return n&&(t=t.id===e.jstree.root?this.element:e("#"+t.id.replace(e.jstree.idregex,"\\$&"),this.element)),t}catch(e){return!1}},get_path:function(t,n,a){if(!(t=t.parents?t:this.get_node(t))||t.id===e.jstree.root||!t.parents)return!1;var o,r,i=[];for(i.push(a?t.id:t.text),o=0,r=t.parents.length;o<r;o++)i.push(a?t.parents[o]:this.get_text(t.parents[o]));return i=i.reverse().slice(1),n?i.join(n):i},get_next_dom:function(t,n){var a;if((t=this.get_node(t,!0))[0]===this.element[0]){for(a=this._firstChild(this.get_container_ul()[0]);a&&0===a.offsetHeight;)a=this._nextSibling(a);return!!a&&e(a)}if(!t||!t.length)return!1;if(n){a=t[0];do{a=this._nextSibling(a)}while(a&&0===a.offsetHeight);return!!a&&e(a)}if(t.hasClass("jstree-open")){for(a=this._firstChild(t.children(".jstree-children")[0]);a&&0===a.offsetHeight;)a=this._nextSibling(a);if(null!==a)return e(a)}a=t[0];do{a=this._nextSibling(a)}while(a&&0===a.offsetHeight);return null!==a?e(a):t.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(t,n){var a;if((t=this.get_node(t,!0))[0]===this.element[0]){for(a=this.get_container_ul()[0].lastChild;a&&0===a.offsetHeight;)a=this._previousSibling(a);return!!a&&e(a)}if(!t||!t.length)return!1;if(n){a=t[0];do{a=this._previousSibling(a)}while(a&&0===a.offsetHeight);return!!a&&e(a)}a=t[0];do{a=this._previousSibling(a)}while(a&&0===a.offsetHeight);if(null!==a){for(t=e(a);t.hasClass("jstree-open");)t=t.children(".jstree-children").first().children(".jstree-node:visible:last");return t}return!(!(a=t[0].parentNode.parentNode)||!a.className||-1===a.className.indexOf("jstree-node"))&&e(a)},get_parent:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.parent},get_children_dom:function(e){return(e=this.get_node(e,!0))[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):!(!e||!e.length)&&e.children(".jstree-children").children(".jstree-node")},is_parent:function(e){return(e=this.get_node(e))&&(!1===e.state.loaded||e.children.length>0)},is_loaded:function(e){return(e=this.get_node(e))&&e.state.loaded},is_loading:function(e){return(e=this.get_node(e))&&e.state&&e.state.loading},is_open:function(e){return(e=this.get_node(e))&&e.state.opened},is_closed:function(e){return(e=this.get_node(e))&&this.is_parent(e)&&!e.state.opened},is_leaf:function(e){return!this.is_parent(e)},load_node:function(t,n){var a,o,r,i,s;if(e.isArray(t))return this._load_nodes(t.slice(),n),!0;if(!(t=this.get_node(t)))return n&&n.call(this,t,!1),!1;if(t.state.loaded){for(t.state.loaded=!1,r=0,i=t.parents.length;r<i;r++)this._model.data[t.parents[r]].children_d=e.vakata.array_filter(this._model.data[t.parents[r]].children_d,(function(n){return-1===e.inArray(n,t.children_d)}));for(a=0,o=t.children_d.length;a<o;a++)this._model.data[t.children_d[a]].state.selected&&(s=!0),delete this._model.data[t.children_d[a]];s&&(this._data.core.selected=e.vakata.array_filter(this._data.core.selected,(function(n){return-1===e.inArray(n,t.children_d)}))),t.children=[],t.children_d=[],s&&this.trigger("changed",{action:"load_node",node:t,selected:this._data.core.selected})}return t.state.failed=!1,t.state.loading=!0,this.get_node(t,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(t,e.proxy((function(e){(t=this._model.data[t.id]).state.loading=!1,t.state.loaded=e,t.state.failed=!t.state.loaded;var a=this.get_node(t,!0),o=0,r=0,i=this._model.data,s=!1;for(o=0,r=t.children.length;o<r;o++)if(i[t.children[o]]&&!i[t.children[o]].state.hidden){s=!0;break}t.state.loaded&&a&&a.length&&(a.removeClass("jstree-closed jstree-open jstree-leaf"),s?"#"!==t.id&&a.addClass(t.state.opened?"jstree-open":"jstree-closed"):a.addClass("jstree-leaf")),a.removeClass("jstree-loading").attr("aria-busy",!1),this.trigger("load_node",{node:t,status:e}),n&&n.call(this,t,e)}),this)),!0},_load_nodes:function(e,t,n,a){var o,r,i=!0,s=function(){this._load_nodes(e,t,!0)},l=this._model.data,c=[];for(o=0,r=e.length;o<r;o++)l[e[o]]&&(!l[e[o]].state.loaded&&!l[e[o]].state.failed||!n&&a)&&(this.is_loading(e[o])||this.load_node(e[o],s),i=!1);if(i){for(o=0,r=e.length;o<r;o++)l[e[o]]&&l[e[o]].state.loaded&&c.push(e[o]);t&&!t.done&&(t.call(this,c),t.done=!0)}},load_all:function(t,n){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var a,o,r=[],i=this._model.data,s=i[t.id].children_d;for(t.state&&!t.state.loaded&&r.push(t.id),a=0,o=s.length;a<o;a++)i[s[a]]&&i[s[a]].state&&!i[s[a]].state.loaded&&r.push(s[a]);r.length?this._load_nodes(r,(function(){this.load_all(t,n)})):(n&&n.call(this,t),this.trigger("load_all",{node:t}))},_load_node:function(t,n){var a,o=this.settings.core.data,r=function(){return 3!==this.nodeType&&8!==this.nodeType};return o?e.isFunction(o)?o.call(this,t,e.proxy((function(a){!1===a?n.call(this,!1):this["string"==typeof a?"_append_html_data":"_append_json_data"](t,"string"==typeof a?e(e.parseHTML(a)).filter(r):a,(function(e){n.call(this,e)}))}),this)):"object"==typeof o?o.url?(o=e.extend(!0,{},o),e.isFunction(o.url)&&(o.url=o.url.call(this,t)),e.isFunction(o.data)&&(o.data=o.data.call(this,t)),e.ajax(o).done(e.proxy((function(a,o,i){var s=i.getResponseHeader("Content-Type");return s&&-1!==s.indexOf("json")||"object"==typeof a?this._append_json_data(t,a,(function(e){n.call(this,e)})):s&&-1!==s.indexOf("html")||"string"==typeof a?this._append_html_data(t,e(e.parseHTML(a)).filter(r),(function(e){n.call(this,e)})):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:i})},this.settings.core.error.call(this,this._data.core.last_error),n.call(this,!1))}),this)).fail(e.proxy((function(e){this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:e})},n.call(this,!1),this.settings.core.error.call(this,this._data.core.last_error)}),this))):(a=e.isArray(o)?e.extend(!0,[],o):e.isPlainObject(o)?e.extend(!0,{},o):o,t.id===e.jstree.root?this._append_json_data(t,a,(function(e){n.call(this,e)})):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),n.call(this,!1))):"string"==typeof o?t.id===e.jstree.root?this._append_html_data(t,e(e.parseHTML(o)).filter(r),(function(e){n.call(this,e)})):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),n.call(this,!1)):n.call(this,!1):t.id===e.jstree.root?this._append_html_data(t,this._data.core.original_container_html.clone(!0),(function(e){n.call(this,e)})):n.call(this,!1)},_node_changed:function(t){(t=this.get_node(t))&&-1===e.inArray(t.id,this._model.changed)&&this._model.changed.push(t.id)},_append_html_data:function(t,n,a){(t=this.get_node(t)).children=[],t.children_d=[];var o,r,i,s=n.is("ul")?n.children():n,l=t.id,c=[],u=[],d=this._model.data,f=d[l],m=this._data.core.selected.length;for(s.each(e.proxy((function(t,n){(o=this._parse_model_from_html(e(n),l,f.parents.concat()))&&(c.push(o),u.push(o),d[o].children_d.length&&(u=u.concat(d[o].children_d)))}),this)),f.children=c,f.children_d=u,r=0,i=f.parents.length;r<i;r++)d[f.parents[r]].children_d=d[f.parents[r]].children_d.concat(u);this.trigger("model",{nodes:u,parent:l}),l!==e.jstree.root?(this._node_changed(l),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==m&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),a.call(this,!0)},_append_json_data:function(t,n,a,o){if(null!==this.element){(t=this.get_node(t)).children=[],t.children_d=[],n.d&&"string"==typeof(n=n.d)&&(n=JSON.parse(n)),e.isArray(n)||(n=[n]);var r=null,i={df:this._model.default_state,dat:n,par:t.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},s=this,l=function(e,t){e.data&&(e=e.data);var n,a,o,r,i=e.dat,l=e.par,c=[],u=[],d=[],f=e.df,m=e.t_id,p=e.t_cnt,g=e.m,h=g[l],_=e.sel,b=function(e,n,a){a=a?a.concat():[],n&&a.unshift(n);var o,r,i,s,l=e.id.toString(),c={id:l,text:e.text||"",icon:e.icon===t||e.icon,parent:n,parents:a,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(o in f)f.hasOwnProperty(o)&&(c.state[o]=f[o]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(c.icon=e.data.jstree.icon),c.icon!==t&&null!==c.icon&&""!==c.icon||(c.icon=!0),e&&e.data&&(c.data=e.data,e.data.jstree))for(o in e.data.jstree)e.data.jstree.hasOwnProperty(o)&&(c.state[o]=e.data.jstree[o]);if(e&&"object"==typeof e.state)for(o in e.state)e.state.hasOwnProperty(o)&&(c.state[o]=e.state[o]);if(e&&"object"==typeof e.li_attr)for(o in e.li_attr)e.li_attr.hasOwnProperty(o)&&(c.li_attr[o]=e.li_attr[o]);if(c.li_attr.id||(c.li_attr.id=l),e&&"object"==typeof e.a_attr)for(o in e.a_attr)e.a_attr.hasOwnProperty(o)&&(c.a_attr[o]=e.a_attr[o]);for(e&&e.children&&!0===e.children&&(c.state.loaded=!1,c.children=[],c.children_d=[]),g[c.id]=c,o=0,r=c.children.length;o<r;o++)i=b(g[c.children[o]],c.id,a),s=g[i],c.children_d.push(i),s.children_d.length&&(c.children_d=c.children_d.concat(s.children_d));return delete e.data,delete e.children,g[c.id].original=e,c.state.selected&&d.push(c.id),c.id},y=function(e,n,a){a=a?a.concat():[],n&&a.unshift(n);var o,r,i,s,l,c=!1;do{c="j"+m+"_"+ ++p}while(g[c]);for(o in l={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===t||e.icon,parent:n,parents:a,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},f)f.hasOwnProperty(o)&&(l.state[o]=f[o]);if(e&&e.id&&(l.id=e.id.toString()),e&&e.text&&(l.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(l.icon=e.data.jstree.icon),l.icon!==t&&null!==l.icon&&""!==l.icon||(l.icon=!0),e&&e.data&&(l.data=e.data,e.data.jstree))for(o in e.data.jstree)e.data.jstree.hasOwnProperty(o)&&(l.state[o]=e.data.jstree[o]);if(e&&"object"==typeof e.state)for(o in e.state)e.state.hasOwnProperty(o)&&(l.state[o]=e.state[o]);if(e&&"object"==typeof e.li_attr)for(o in e.li_attr)e.li_attr.hasOwnProperty(o)&&(l.li_attr[o]=e.li_attr[o]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),e&&"object"==typeof e.a_attr)for(o in e.a_attr)e.a_attr.hasOwnProperty(o)&&(l.a_attr[o]=e.a_attr[o]);if(e&&e.children&&e.children.length){for(o=0,r=e.children.length;o<r;o++)i=y(e.children[o],l.id,a),s=g[i],l.children.push(i),s.children_d.length&&(l.children_d=l.children_d.concat(s.children_d));l.children_d=l.children_d.concat(l.children)}return e&&e.children&&!0===e.children&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete e.data,delete e.children,l.original=e,g[l.id]=l,l.state.selected&&d.push(l.id),l.id};if(i.length&&i[0].id!==t&&i[0].parent!==t){for(a=0,o=i.length;a<o;a++)i[a].children||(i[a].children=[]),i[a].state||(i[a].state={}),g[i[a].id.toString()]=i[a];for(a=0,o=i.length;a<o;a++)g[i[a].parent.toString()]?(g[i[a].parent.toString()].children.push(i[a].id.toString()),h.children_d.push(i[a].id.toString())):void 0!==s&&(s._data.core.last_error={error:"parse",plugin:"core",id:"core_07",reason:"Node with invalid parent",data:JSON.stringify({id:i[a].id.toString(),parent:i[a].parent.toString()})},s.settings.core.error.call(s,s._data.core.last_error));for(a=0,o=h.children.length;a<o;a++)n=b(g[h.children[a]],l,h.parents.concat()),u.push(n),g[n].children_d.length&&(u=u.concat(g[n].children_d));for(a=0,o=h.parents.length;a<o;a++)g[h.parents[a]].children_d=g[h.parents[a]].children_d.concat(u);r={cnt:p,mod:g,sel:_,par:l,dpc:u,add:d}}else{for(a=0,o=i.length;a<o;a++)(n=y(i[a],l,h.parents.concat()))&&(c.push(n),u.push(n),g[n].children_d.length&&(u=u.concat(g[n].children_d)));for(h.children=c,h.children_d=u,a=0,o=h.parents.length;a<o;a++)g[h.parents[a]].children_d=g[h.parents[a]].children_d.concat(u);r={cnt:p,mod:g,sel:_,par:l,dpc:u,add:d}}if("undefined"!=typeof window&&void 0!==window.document)return r;postMessage(r)},u=function(t,n){if(null!==this.element){this._cnt=t.cnt;var o,r=this._model.data;for(o in r)r.hasOwnProperty(o)&&r[o].state&&r[o].state.loading&&t.mod[o]&&(t.mod[o].state.loading=!0);if(this._model.data=t.mod,n){var i,l=t.add,u=t.sel,d=this._data.core.selected.slice();if(r=this._model.data,u.length!==d.length||e.vakata.array_unique(u.concat(d)).length!==u.length){for(o=0,i=u.length;o<i;o++)-1===e.inArray(u[o],l)&&-1===e.inArray(u[o],d)&&(r[u[o]].state.selected=!1);for(o=0,i=d.length;o<i;o++)-1===e.inArray(d[o],u)&&(r[d[o]].state.selected=!0)}}t.add.length&&(this._data.core.selected=this._data.core.selected.concat(t.add)),this.trigger("model",{nodes:t.dpc,parent:t.par}),t.par!==e.jstree.root?(this._node_changed(t.par),this.redraw()):this.redraw(!0),t.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),!n&&c?c((function(){a.call(s,!0)})):a.call(s,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+l.toString()],{type:"text/javascript"}))),!this._data.core.working||o?(this._data.core.working=!0,(r=new window.Worker(this._wrk)).onmessage=e.proxy((function(e){u.call(this,e.data,!0);try{r.terminate(),r=null}catch(e){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}),this),i.par?r.postMessage(i):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([t,n,a,!0])}catch(e){u.call(this,l(i),!1),this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else u.call(this,l(i),!1)}},_parse_model_from_html:function(n,a,o){o=o?[].concat(o):[],a&&o.unshift(a);var r,i,s,l,c,u=this._model.data,d={id:!1,text:!1,icon:!0,parent:a,parents:o,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(s in this._model.default_state)this._model.default_state.hasOwnProperty(s)&&(d.state[s]=this._model.default_state[s]);if(l=e.vakata.attributes(n,!0),e.each(l,(function(t,n){if(!(n=e.vakata.trim(n)).length)return!0;d.li_attr[t]=n,"id"===t&&(d.id=n.toString())})),(l=n.children("a").first()).length&&(l=e.vakata.attributes(l,!0),e.each(l,(function(t,n){(n=e.vakata.trim(n)).length&&(d.a_attr[t]=n)}))),(l=n.children("a").first().length?n.children("a").first().clone():n.clone()).children("ins, i, ul").remove(),l=l.html(),l=e("<div></div>").html(l),d.text=this.settings.core.force_text?l.text():l.html(),l=n.data(),d.data=l?e.extend(!0,{},l):null,d.state.opened=n.hasClass("jstree-open"),d.state.selected=n.children("a").hasClass("jstree-clicked"),d.state.disabled=n.children("a").hasClass("jstree-disabled"),d.data&&d.data.jstree)for(s in d.data.jstree)d.data.jstree.hasOwnProperty(s)&&(d.state[s]=d.data.jstree[s]);(l=n.children("a").children(".jstree-themeicon")).length&&(d.icon=!l.hasClass("jstree-themeicon-hidden")&&l.attr("rel")),d.state.icon!==t&&(d.icon=d.state.icon),d.icon!==t&&null!==d.icon&&""!==d.icon||(d.icon=!0),l=n.children("ul").children("li");do{c="j"+this._id+"_"+ ++this._cnt}while(u[c]);return d.id=d.li_attr.id?d.li_attr.id.toString():c,l.length?(l.each(e.proxy((function(t,n){r=this._parse_model_from_html(e(n),d.id,o),i=this._model.data[r],d.children.push(r),i.children_d.length&&(d.children_d=d.children_d.concat(i.children_d))}),this)),d.children_d=d.children_d.concat(d.children)):n.hasClass("jstree-closed")&&(d.state.loaded=!1),d.li_attr.class&&(d.li_attr.class=d.li_attr.class.replace("jstree-closed","").replace("jstree-open","")),d.a_attr.class&&(d.a_attr.class=d.a_attr.class.replace("jstree-clicked","").replace("jstree-disabled","")),u[d.id]=d,d.state.selected&&this._data.core.selected.push(d.id),d.id},_parse_model_from_flat_json:function(e,n,a){a=a?a.concat():[],n&&a.unshift(n);var o,r,i,s,l=e.id.toString(),c=this._model.data,u=this._model.default_state,d={id:l,text:e.text||"",icon:e.icon===t||e.icon,parent:n,parents:a,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(o in u)u.hasOwnProperty(o)&&(d.state[o]=u[o]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(d.icon=e.data.jstree.icon),d.icon!==t&&null!==d.icon&&""!==d.icon||(d.icon=!0),e&&e.data&&(d.data=e.data,e.data.jstree))for(o in e.data.jstree)e.data.jstree.hasOwnProperty(o)&&(d.state[o]=e.data.jstree[o]);if(e&&"object"==typeof e.state)for(o in e.state)e.state.hasOwnProperty(o)&&(d.state[o]=e.state[o]);if(e&&"object"==typeof e.li_attr)for(o in e.li_attr)e.li_attr.hasOwnProperty(o)&&(d.li_attr[o]=e.li_attr[o]);if(d.li_attr.id||(d.li_attr.id=l),e&&"object"==typeof e.a_attr)for(o in e.a_attr)e.a_attr.hasOwnProperty(o)&&(d.a_attr[o]=e.a_attr[o]);for(e&&e.children&&!0===e.children&&(d.state.loaded=!1,d.children=[],d.children_d=[]),c[d.id]=d,o=0,r=d.children.length;o<r;o++)s=c[i=this._parse_model_from_flat_json(c[d.children[o]],d.id,a)],d.children_d.push(i),s.children_d.length&&(d.children_d=d.children_d.concat(s.children_d));return delete e.data,delete e.children,c[d.id].original=e,d.state.selected&&this._data.core.selected.push(d.id),d.id},_parse_model_from_json:function(e,n,a){a=a?a.concat():[],n&&a.unshift(n);var o,r,i,s,l,c=!1,u=this._model.data,d=this._model.default_state;do{c="j"+this._id+"_"+ ++this._cnt}while(u[c]);for(o in l={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===t||e.icon,parent:n,parents:a,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},d)d.hasOwnProperty(o)&&(l.state[o]=d[o]);if(e&&e.id&&(l.id=e.id.toString()),e&&e.text&&(l.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(l.icon=e.data.jstree.icon),l.icon!==t&&null!==l.icon&&""!==l.icon||(l.icon=!0),e&&e.data&&(l.data=e.data,e.data.jstree))for(o in e.data.jstree)e.data.jstree.hasOwnProperty(o)&&(l.state[o]=e.data.jstree[o]);if(e&&"object"==typeof e.state)for(o in e.state)e.state.hasOwnProperty(o)&&(l.state[o]=e.state[o]);if(e&&"object"==typeof e.li_attr)for(o in e.li_attr)e.li_attr.hasOwnProperty(o)&&(l.li_attr[o]=e.li_attr[o]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),e&&"object"==typeof e.a_attr)for(o in e.a_attr)e.a_attr.hasOwnProperty(o)&&(l.a_attr[o]=e.a_attr[o]);if(e&&e.children&&e.children.length){for(o=0,r=e.children.length;o<r;o++)s=u[i=this._parse_model_from_json(e.children[o],l.id,a)],l.children.push(i),s.children_d.length&&(l.children_d=l.children_d.concat(s.children_d));l.children_d=l.children.concat(l.children_d)}return e&&e.children&&!0===e.children&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete e.data,delete e.children,l.original=e,u[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_redraw:function(){var t,n,a,o=this._model.force_full_redraw?this._model.data[e.jstree.root].children.concat([]):this._model.changed.concat([]),r=l.createElement("UL"),i=this._data.core.focused;for(n=0,a=o.length;n<a;n++)(t=this.redraw_node(o[n],!0,this._model.force_full_redraw))&&this._model.force_full_redraw&&r.appendChild(t);this._model.force_full_redraw&&(r.className=this.get_container_ul()[0].className,r.setAttribute("role","group"),this.element.empty().append(r)),null!==i&&this.settings.core.restore_focus&&((t=this.get_node(i,!0))&&t.length&&t.children(".jstree-anchor")[0]!==l.activeElement?t.children(".jstree-anchor").focus():this._data.core.focused=null),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:o})},redraw:function(e){e&&(this._model.force_full_redraw=!0),this._redraw()},draw_children:function(t){var n=this.get_node(t),a=!1,o=!1,r=!1,i=l;if(!n)return!1;if(n.id===e.jstree.root)return this.redraw(!0);if(!(t=this.get_node(t,!0))||!t.length)return!1;if(t.children(".jstree-children").remove(),t=t[0],n.children.length&&n.state.loaded){for((r=i.createElement("UL")).setAttribute("role","group"),r.className="jstree-children",a=0,o=n.children.length;a<o;a++)r.appendChild(this.redraw_node(n.children[a],!0,!0));t.appendChild(r)}},redraw_node:function(t,n,a,o){var r=this.get_node(t),i=!1,s=!1,c=!1,u=!1,d=!1,f=!1,m="",p=l,g=this._model.data,h=!1,_=null,b=0,y=0,v=!1,A=!1;if(!r)return!1;if(r.id===e.jstree.root)return this.redraw(!0);if(n=n||0===r.children.length,t=l.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(r.id[0])?"\\3"+r.id[0]+" "+r.id.substr(1).replace(e.jstree.idregex,"\\$&"):r.id.replace(e.jstree.idregex,"\\$&"))):l.getElementById(r.id))t=e(t),a||((i=t.parent().parent()[0])===this.element[0]&&(i=null),s=t.index()),n||!r.children.length||t.children(".jstree-children").length||(n=!0),n||(c=t.children(".jstree-children")[0]),h=t.children(".jstree-anchor")[0]===l.activeElement,t.remove();else if(n=!0,!a){if(!(null===(i=r.parent!==e.jstree.root?e("#"+r.parent.replace(e.jstree.idregex,"\\$&"),this.element)[0]:null)||i&&g[r.parent].state.opened))return!1;s=e.inArray(r.id,null===i?g[e.jstree.root].children:g[r.parent].children)}for(u in t=this._data.core.node.cloneNode(!0),m="jstree-node ",r.li_attr)if(r.li_attr.hasOwnProperty(u)){if("id"===u)continue;"class"!==u?t.setAttribute(u,r.li_attr[u]):m+=r.li_attr[u]}for(r.a_attr.id||(r.a_attr.id=r.id+"_anchor"),t.childNodes[1].setAttribute("aria-selected",!!r.state.selected),t.childNodes[1].setAttribute("aria-level",r.parents.length),this.settings.core.compute_elements_positions&&(t.childNodes[1].setAttribute("aria-setsize",g[r.parent].children.length),t.childNodes[1].setAttribute("aria-posinset",g[r.parent].children.indexOf(r.id)+1)),r.state.disabled&&t.childNodes[1].setAttribute("aria-disabled",!0),u=0,d=r.children.length;u<d;u++)if(!g[r.children[u]].state.hidden){v=!0;break}if(null!==r.parent&&g[r.parent]&&!r.state.hidden&&(u=e.inArray(r.id,g[r.parent].children),A=r.id,-1!==u))for(u++,d=g[r.parent].children.length;u<d&&(g[g[r.parent].children[u]].state.hidden||(A=g[r.parent].children[u]),A===r.id);u++);for(d in r.state.hidden&&(m+=" jstree-hidden"),r.state.loading&&(m+=" jstree-loading"),r.state.loaded&&!v?m+=" jstree-leaf":(m+=r.state.opened&&r.state.loaded?" jstree-open":" jstree-closed",t.childNodes[1].setAttribute("aria-expanded",r.state.opened&&r.state.loaded)),A===r.id&&(m+=" jstree-last"),t.id=r.id,t.className=m,m=(r.state.selected?" jstree-clicked":"")+(r.state.disabled?" jstree-disabled":""),r.a_attr)if(r.a_attr.hasOwnProperty(d)){if("href"===d&&"#"===r.a_attr[d])continue;"class"!==d?t.childNodes[1].setAttribute(d,r.a_attr[d]):m+=" "+r.a_attr[d]}if(m.length&&(t.childNodes[1].className="jstree-anchor "+m),(r.icon&&!0!==r.icon||!1===r.icon)&&(!1===r.icon?t.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===r.icon.indexOf("/")&&-1===r.icon.indexOf(".")?t.childNodes[1].childNodes[0].className+=" "+r.icon+" jstree-themeicon-custom":(t.childNodes[1].childNodes[0].style.backgroundImage='url("'+r.icon+'")',t.childNodes[1].childNodes[0].style.backgroundPosition="center center",t.childNodes[1].childNodes[0].style.backgroundSize="auto",t.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?t.childNodes[1].appendChild(p.createTextNode(r.text)):t.childNodes[1].innerHTML+=r.text,n&&r.children.length&&(r.state.opened||o)&&r.state.loaded){for((f=p.createElement("UL")).setAttribute("role","group"),f.className="jstree-children",u=0,d=r.children.length;u<d;u++)f.appendChild(this.redraw_node(r.children[u],n,!0));t.appendChild(f)}if(c&&t.appendChild(c),!a){for(i||(i=this.element[0]),u=0,d=i.childNodes.length;u<d;u++)if(i.childNodes[u]&&i.childNodes[u].className&&-1!==i.childNodes[u].className.indexOf("jstree-children")){_=i.childNodes[u];break}_||((_=p.createElement("UL")).setAttribute("role","group"),_.className="jstree-children",i.appendChild(_)),s<(i=_).childNodes.length?i.insertBefore(t,i.childNodes[s]):i.appendChild(t),h&&(b=this.element[0].scrollTop,y=this.element[0].scrollLeft,t.childNodes[1].focus(),this.element[0].scrollTop=b,this.element[0].scrollLeft=y)}return r.state.opened&&!r.state.loaded&&(r.state.opened=!1,setTimeout(e.proxy((function(){this.open_node(r.id,!1,0)}),this),0)),t},open_node:function(n,a,o){var r,i,s,l;if(e.isArray(n)){for(r=0,i=(n=n.slice()).length;r<i;r++)this.open_node(n[r],a,o);return!0}return!(!(n=this.get_node(n))||n.id===e.jstree.root)&&(o=o===t?this.settings.core.animation:o,this.is_closed(n)?this.is_loaded(n)?(s=this.get_node(n,!0),l=this,s.length&&(o&&s.children(".jstree-children").length&&s.children(".jstree-children").stop(!0,!0),n.children.length&&!this._firstChild(s.children(".jstree-children")[0])&&this.draw_children(n),o?(this.trigger("before_open",{node:n}),s.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").children(".jstree-anchor").attr("aria-expanded",!0).end().children(".jstree-children").stop(!0,!0).slideDown(o,(function(){this.style.display="",l.element&&l.trigger("after_open",{node:n})}))):(this.trigger("before_open",{node:n}),s[0].className=s[0].className.replace("jstree-closed","jstree-open"),s[0].childNodes[1].setAttribute("aria-expanded",!0))),n.state.opened=!0,a&&a.call(this,n,!0),s.length||this.trigger("before_open",{node:n}),this.trigger("open_node",{node:n}),o&&s.length||this.trigger("after_open",{node:n}),!0):this.is_loading(n)?setTimeout(e.proxy((function(){this.open_node(n,a,o)}),this),500):void this.load_node(n,(function(e,t){return t?this.open_node(e,a,o):!!a&&a.call(this,e,!1)})):(a&&a.call(this,n,!1),!1))},_open_to:function(t){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var n,a,o=t.parents;for(n=0,a=o.length;n<a;n+=1)n!==e.jstree.root&&this.open_node(o[n],!1,0);return e("#"+t.id.replace(e.jstree.idregex,"\\$&"),this.element)},close_node:function(n,a){var o,r,i,s;if(e.isArray(n)){for(o=0,r=(n=n.slice()).length;o<r;o++)this.close_node(n[o],a);return!0}return!(!(n=this.get_node(n))||n.id===e.jstree.root)&&(!this.is_closed(n)&&(a=a===t?this.settings.core.animation:a,i=this,s=this.get_node(n,!0),n.state.opened=!1,this.trigger("close_node",{node:n}),void(s.length?a?s.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").children(".jstree-anchor").attr("aria-expanded",!1).end().children(".jstree-children").stop(!0,!0).slideUp(a,(function(){this.style.display="",s.children(".jstree-children").remove(),i.element&&i.trigger("after_close",{node:n})})):(s[0].className=s[0].className.replace("jstree-open","jstree-closed"),s.children(".jstree-anchor").attr("aria-expanded",!1),s.children(".jstree-children").remove(),this.trigger("after_close",{node:n})):this.trigger("after_close",{node:n}))))},toggle_node:function(t){var n,a;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.toggle_node(t[n]);return!0}return this.is_closed(t)?this.open_node(t):this.is_open(t)?this.close_node(t):void 0},open_all:function(t,n,a){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var o,r,i,s=t.id===e.jstree.root?this.get_container_ul():this.get_node(t,!0);if(!s.length){for(o=0,r=t.children_d.length;o<r;o++)this.is_closed(this._model.data[t.children_d[o]])&&(this._model.data[t.children_d[o]].state.opened=!0);return this.trigger("open_all",{node:t})}a=a||s,i=this,(s=this.is_closed(t)?s.find(".jstree-closed").addBack():s.find(".jstree-closed")).each((function(){i.open_node(this,(function(e,t){t&&this.is_parent(e)&&this.open_all(e,n,a)}),n||0)})),0===a.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(a)})},close_all:function(t,n){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var a,o,r=t.id===e.jstree.root?this.get_container_ul():this.get_node(t,!0),i=this;for(r.length&&(r=this.is_open(t)?r.find(".jstree-open").addBack():r.find(".jstree-open"),e(r.get().reverse()).each((function(){i.close_node(this,n||0)}))),a=0,o=t.children_d.length;a<o;a++)this._model.data[t.children_d[a]].state.opened=!1;this.trigger("close_all",{node:t})},is_disabled:function(e){return(e=this.get_node(e))&&e.state&&e.state.disabled},enable_node:function(t){var n,a;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.enable_node(t[n]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.disabled=!1,this.get_node(t,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),this.trigger("enable_node",{node:t})},disable_node:function(t){var n,a;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.disable_node(t[n]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.disabled=!0,this.get_node(t,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),this.trigger("disable_node",{node:t})},is_hidden:function(e){return!0===(e=this.get_node(e)).state.hidden},hide_node:function(t,n){var a,o;if(e.isArray(t)){for(a=0,o=(t=t.slice()).length;a<o;a++)this.hide_node(t[a],!0);return n||this.redraw(),!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.hidden||(t.state.hidden=!0,this._node_changed(t.parent),n||this.redraw(),this.trigger("hide_node",{node:t}))},show_node:function(t,n){var a,o;if(e.isArray(t)){for(a=0,o=(t=t.slice()).length;a<o;a++)this.show_node(t[a],!0);return n||this.redraw(),!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.hidden&&(t.state.hidden=!1,this._node_changed(t.parent),n||this.redraw(),this.trigger("show_node",{node:t}))},hide_all:function(t){var n,a=this._model.data,o=[];for(n in a)a.hasOwnProperty(n)&&n!==e.jstree.root&&!a[n].state.hidden&&(a[n].state.hidden=!0,o.push(n));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("hide_all",{nodes:o}),o},show_all:function(t){var n,a=this._model.data,o=[];for(n in a)a.hasOwnProperty(n)&&n!==e.jstree.root&&a[n].state.hidden&&(a[n].state.hidden=!1,o.push(n));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("show_all",{nodes:o}),o},activate_node:function(e,n){if(this.is_disabled(e))return!1;if(n&&"object"==typeof n||(n={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==t?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(n.metaKey||n.ctrlKey||n.shiftKey)&&(!n.shiftKey||this._data.core.last_clicked&&this.get_parent(e)&&this.get_parent(e)===this._data.core.last_clicked.parent))if(n.shiftKey){var a,o,r=this.get_node(e).id,i=this._data.core.last_clicked.id,s=this.get_node(this._data.core.last_clicked.parent).children,l=!1;for(a=0,o=s.length;a<o;a+=1)s[a]===r&&(l=!l),s[a]===i&&(l=!l),this.is_disabled(s[a])||!l&&s[a]!==r&&s[a]!==i?this.deselect_node(s[a],!0,n):this.is_hidden(s[a])||this.select_node(s[a],!0,!1,n);this.trigger("changed",{action:"select_node",node:this.get_node(e),selected:this._data.core.selected,event:n})}else this.is_selected(e)?this.deselect_node(e,!1,n):this.select_node(e,!1,!1,n);else!this.settings.core.multiple&&(n.metaKey||n.ctrlKey||n.shiftKey)&&this.is_selected(e)?this.deselect_node(e,!1,n):(this.deselect_all(!0),this.select_node(e,!1,!1,n),this._data.core.last_clicked=this.get_node(e));this.trigger("activate_node",{node:this.get_node(e),event:n})},hover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||e.children(".jstree-hovered").length)return!1;var t=this.element.find(".jstree-hovered"),n=this.element;t&&t.length&&this.dehover_node(t),e.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(e)}),setTimeout((function(){n.attr("aria-activedescendant",e[0].id)}),0)},dehover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||!e.children(".jstree-hovered").length)return!1;e.children(".jstree-anchor").removeClass("jstree-hovered"),this.trigger("dehover_node",{node:this.get_node(e)})},select_node:function(t,n,a,o){var r,i,s;if(e.isArray(t)){for(i=0,s=(t=t.slice()).length;i<s;i++)this.select_node(t[i],n,a,o);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;r=this.get_node(t,!0),t.state.selected||(t.state.selected=!0,this._data.core.selected.push(t.id),a||(r=this._open_to(t)),r&&r.length&&r.children(".jstree-anchor").addClass("jstree-clicked").attr("aria-selected",!0),this.trigger("select_node",{node:t,selected:this._data.core.selected,event:o}),n||this.trigger("changed",{action:"select_node",node:t,selected:this._data.core.selected,event:o}))},deselect_node:function(t,n,a){var o,r,i;if(e.isArray(t)){for(o=0,r=(t=t.slice()).length;o<r;o++)this.deselect_node(t[o],n,a);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;i=this.get_node(t,!0),t.state.selected&&(t.state.selected=!1,this._data.core.selected=e.vakata.array_remove_item(this._data.core.selected,t.id),i.length&&i.children(".jstree-anchor").removeClass("jstree-clicked").attr("aria-selected",!1),this.trigger("deselect_node",{node:t,selected:this._data.core.selected,event:a}),n||this.trigger("changed",{action:"deselect_node",node:t,selected:this._data.core.selected,event:a}))},select_all:function(t){var n,a,o=this._data.core.selected.concat([]);for(this._data.core.selected=this._model.data[e.jstree.root].children_d.concat(),n=0,a=this._data.core.selected.length;n<a;n++)this._model.data[this._data.core.selected[n]]&&(this._model.data[this._data.core.selected[n]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),t||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:o})},deselect_all:function(e){var t,n,a=this._data.core.selected.concat([]);for(t=0,n=this._data.core.selected.length;t<n;t++)this._model.data[this._data.core.selected[t]]&&(this._model.data[this._data.core.selected[t]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked").attr("aria-selected",!1),this.trigger("deselect_all",{selected:this._data.core.selected,node:a}),e||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:a})},is_selected:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.state.selected},get_selected:function(t){return t?e.map(this._data.core.selected,e.proxy((function(e){return this.get_node(e)}),this)):this._data.core.selected.slice()},get_top_selected:function(t){var n,a,o,r,i=this.get_selected(!0),s={};for(n=0,a=i.length;n<a;n++)s[i[n].id]=i[n];for(n=0,a=i.length;n<a;n++)for(o=0,r=i[n].children_d.length;o<r;o++)s[i[n].children_d[o]]&&delete s[i[n].children_d[o]];for(n in i=[],s)s.hasOwnProperty(n)&&i.push(n);return t?e.map(i,e.proxy((function(e){return this.get_node(e)}),this)):i},get_bottom_selected:function(t){var n,a,o=this.get_selected(!0),r=[];for(n=0,a=o.length;n<a;n++)o[n].children.length||r.push(o[n].id);return t?e.map(r,e.proxy((function(e){return this.get_node(e)}),this)):r},get_state:function(){var t,n={core:{open:[],loaded:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}};for(t in this._model.data)this._model.data.hasOwnProperty(t)&&t!==e.jstree.root&&(this._model.data[t].state.loaded&&this.settings.core.loaded_state&&n.core.loaded.push(t),this._model.data[t].state.opened&&n.core.open.push(t),this._model.data[t].state.selected&&n.core.selected.push(t));return n},set_state:function(n,a){if(n){if(n.core&&n.core.selected&&n.core.initial_selection===t&&(n.core.initial_selection=this._data.core.selected.concat([]).sort().join(",")),n.core){var o,r;if(n.core.loaded)return this.settings.core.loaded_state&&e.isArray(n.core.loaded)&&n.core.loaded.length?this._load_nodes(n.core.loaded,(function(e){delete n.core.loaded,this.set_state(n,a)})):(delete n.core.loaded,this.set_state(n,a)),!1;if(n.core.open)return e.isArray(n.core.open)&&n.core.open.length?this._load_nodes(n.core.open,(function(e){this.open_node(e,!1,0),delete n.core.open,this.set_state(n,a)})):(delete n.core.open,this.set_state(n,a)),!1;if(n.core.scroll)return n.core.scroll&&n.core.scroll.left!==t&&this.element.scrollLeft(n.core.scroll.left),n.core.scroll&&n.core.scroll.top!==t&&this.element.scrollTop(n.core.scroll.top),delete n.core.scroll,this.set_state(n,a),!1;if(n.core.selected)return o=this,n.core.initial_selection!==t&&n.core.initial_selection!==this._data.core.selected.concat([]).sort().join(",")||(this.deselect_all(),e.each(n.core.selected,(function(e,t){o.select_node(t,!1,!0)}))),delete n.core.initial_selection,delete n.core.selected,this.set_state(n,a),!1;for(r in n)n.hasOwnProperty(r)&&"core"!==r&&-1===e.inArray(r,this.settings.plugins)&&delete n[r];if(e.isEmptyObject(n.core))return delete n.core,this.set_state(n,a),!1}return!e.isEmptyObject(n)||(n=null,a&&a.call(this),this.trigger("set_state"),!1)}return!1},refresh:function(t,n){this._data.core.state=!0===n?{}:this.get_state(),n&&e.isFunction(n)&&(this._data.core.state=n.call(this,this._data.core.state)),this._cnt=0,this._model.data={},this._model.data[e.jstree.root]={id:e.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this._data.core.selected=[],this._data.core.last_clicked=null,this._data.core.focused=null;var a=this.get_container_ul()[0].className;t||(this.element.html("<ul class='"+a+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading")),this.load_node(e.jstree.root,(function(t,n){n&&(this.get_container_ul()[0].className=a,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(e.extend(!0,{},this._data.core.state),(function(){this.trigger("refresh")}))),this._data.core.state=null}))},refresh_node:function(t){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var n=[],a=[],o=this._data.core.selected.concat([]);a.push(t.id),!0===t.state.opened&&n.push(t.id),this.get_node(t,!0).find(".jstree-open").each((function(){a.push(this.id),n.push(this.id)})),this._load_nodes(a,e.proxy((function(e){this.open_node(n,!1,0),this.select_node(o),this.trigger("refresh_node",{node:t,nodes:e})}),this),!1,!0)},set_id:function(t,n){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var a,o,r=this._model.data,i=t.id;for(n=n.toString(),r[t.parent].children[e.inArray(t.id,r[t.parent].children)]=n,a=0,o=t.parents.length;a<o;a++)r[t.parents[a]].children_d[e.inArray(t.id,r[t.parents[a]].children_d)]=n;for(a=0,o=t.children.length;a<o;a++)r[t.children[a]].parent=n;for(a=0,o=t.children_d.length;a<o;a++)r[t.children_d[a]].parents[e.inArray(t.id,r[t.children_d[a]].parents)]=n;return-1!==(a=e.inArray(t.id,this._data.core.selected))&&(this._data.core.selected[a]=n),(a=this.get_node(t.id,!0))&&(a.attr("id",n),this.element.attr("aria-activedescendant")===t.id&&this.element.attr("aria-activedescendant",n)),delete r[t.id],t.id=n,t.li_attr.id=n,r[n]=t,this.trigger("set_id",{node:t,new:t.id,old:i}),!0},get_text:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.text},set_text:function(t,n){var a,o;if(e.isArray(t)){for(a=0,o=(t=t.slice()).length;a<o;a++)this.set_text(t[a],n);return!0}return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&(t.text=n,this.get_node(t,!0).length&&this.redraw_node(t.id),this.trigger("set_text",{obj:t,text:n}),!0)},get_json:function(t,n,a){if(!(t=this.get_node(t||e.jstree.root)))return!1;n&&n.flat&&!a&&(a=[]);var o,r,i={id:t.id,text:t.text,icon:this.get_icon(t),li_attr:e.extend(!0,{},t.li_attr),a_attr:e.extend(!0,{},t.a_attr),state:{},data:(!n||!n.no_data)&&e.extend(!0,e.isArray(t.data)?[]:{},t.data)};if(n&&n.flat?i.parent=t.parent:i.children=[],n&&n.no_state)delete i.state;else for(o in t.state)t.state.hasOwnProperty(o)&&(i.state[o]=t.state[o]);if(n&&n.no_li_attr&&delete i.li_attr,n&&n.no_a_attr&&delete i.a_attr,n&&n.no_id&&(delete i.id,i.li_attr&&i.li_attr.id&&delete i.li_attr.id,i.a_attr&&i.a_attr.id&&delete i.a_attr.id),n&&n.flat&&t.id!==e.jstree.root&&a.push(i),!n||!n.no_children)for(o=0,r=t.children.length;o<r;o++)n&&n.flat?this.get_json(t.children[o],n,a):i.children.push(this.get_json(t.children[o],n));return n&&n.flat?a:t.id===e.jstree.root?i.children:i},create_node:function(n,a,o,r,i){if(null===n&&(n=e.jstree.root),!(n=this.get_node(n)))return!1;if(!(o=o===t?"last":o).toString().match(/^(before|after)$/)&&!i&&!this.is_loaded(n))return this.load_node(n,(function(){this.create_node(n,a,o,r,!0)}));var s,l,c,u;switch(a||(a={text:this.get_string("New node")}),(a="string"==typeof a?{text:a}:e.extend(!0,{},a)).text===t&&(a.text=this.get_string("New node")),n.id===e.jstree.root&&("before"===o&&(o="first"),"after"===o&&(o="last")),o){case"before":s=this.get_node(n.parent),o=e.inArray(n.id,s.children),n=s;break;case"after":s=this.get_node(n.parent),o=e.inArray(n.id,s.children)+1,n=s;break;case"inside":case"first":o=0;break;case"last":o=n.children.length;break;default:o||(o=0)}if(o>n.children.length&&(o=n.children.length),a.id||(a.id=!0),!this.check("create_node",a,n,o))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!0===a.id&&delete a.id,!(a=this._parse_model_from_json(a,n.id,n.parents.concat())))return!1;for(s=this.get_node(a),(l=[]).push(a),l=l.concat(s.children_d),this.trigger("model",{nodes:l,parent:n.id}),n.children_d=n.children_d.concat(l),c=0,u=n.parents.length;c<u;c++)this._model.data[n.parents[c]].children_d=this._model.data[n.parents[c]].children_d.concat(l);for(a=s,s=[],c=0,u=n.children.length;c<u;c++)s[c>=o?c+1:c]=n.children[c];return s[o]=a.id,n.children=s,this.redraw_node(n,!0),this.trigger("create_node",{node:this.get_node(a),parent:n.id,position:o}),r&&r.call(this,this.get_node(a)),a.id},rename_node:function(t,n){var a,o,r;if(e.isArray(t)){for(a=0,o=(t=t.slice()).length;a<o;a++)this.rename_node(t[a],n);return!0}return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&(r=t.text,this.check("rename_node",t,this.get_parent(t),n)?(this.set_text(t,n),this.trigger("rename_node",{node:t,text:n,old:r}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1))},delete_node:function(t){var n,a,o,r,i,s,l,c,u,d,f,m;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.delete_node(t[n]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;if(o=this.get_node(t.parent),r=e.inArray(t.id,o.children),d=!1,!this.check("delete_node",t,o,r))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==r&&(o.children=e.vakata.array_remove(o.children,r)),(i=t.children_d.concat([])).push(t.id),s=0,l=t.parents.length;s<l;s++)this._model.data[t.parents[s]].children_d=e.vakata.array_filter(this._model.data[t.parents[s]].children_d,(function(t){return-1===e.inArray(t,i)}));for(c=0,u=i.length;c<u;c++)if(this._model.data[i[c]].state.selected){d=!0;break}for(d&&(this._data.core.selected=e.vakata.array_filter(this._data.core.selected,(function(t){return-1===e.inArray(t,i)}))),this.trigger("delete_node",{node:t,parent:o.id}),d&&this.trigger("changed",{action:"delete_node",node:t,selected:this._data.core.selected,parent:o.id}),c=0,u=i.length;c<u;c++)delete this._model.data[i[c]];return-1!==e.inArray(this._data.core.focused,i)&&(this._data.core.focused=null,f=this.element[0].scrollTop,m=this.element[0].scrollLeft,o.id===e.jstree.root?this._model.data[e.jstree.root].children[0]&&this.get_node(this._model.data[e.jstree.root].children[0],!0).children(".jstree-anchor").focus():this.get_node(o,!0).children(".jstree-anchor").focus(),this.element[0].scrollTop=f,this.element[0].scrollLeft=m),this.redraw_node(o,!0),!0},check:function(t,n,a,o,r){n=n&&n.id?n:this.get_node(n),a=a&&a.id?a:this.get_node(a);var i=t.match(/^move_node|copy_node|create_node$/i)?a:n,s=this.settings.core.check_callback;if("move_node"===t||"copy_node"===t){if(!(r&&r.is_multi||"move_node"!==t||e.inArray(n.id,a.children)!==o))return this._data.core.last_error={error:"check",plugin:"core",id:"core_08",reason:"Moving node to its current position",data:JSON.stringify({chk:t,pos:o,obj:!(!n||!n.id)&&n.id,par:!(!a||!a.id)&&a.id})},!1;if(!(r&&r.is_multi||n.id!==a.id&&("move_node"!==t||e.inArray(n.id,a.children)!==o)&&-1===e.inArray(a.id,n.children_d)))return this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:t,pos:o,obj:!(!n||!n.id)&&n.id,par:!(!a||!a.id)&&a.id})},!1}return i&&i.data&&(i=i.data),i&&i.functions&&(!1===i.functions[t]||!0===i.functions[t])?(!1===i.functions[t]&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+t,data:JSON.stringify({chk:t,pos:o,obj:!(!n||!n.id)&&n.id,par:!(!a||!a.id)&&a.id})}),i.functions[t]):!(!1===s||e.isFunction(s)&&!1===s.call(this,t,n,a,o,r)||s&&!1===s[t])||(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+t,data:JSON.stringify({chk:t,pos:o,obj:!(!n||!n.id)&&n.id,par:!(!a||!a.id)&&a.id})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(n,a,o,r,i,s,l){var c,u,d,f,m,p,g,h,_,b,y,v,A,S;if(a=this.get_node(a),o=o===t?0:o,!a)return!1;if(!o.toString().match(/^(before|after)$/)&&!i&&!this.is_loaded(a))return this.load_node(a,(function(){this.move_node(n,a,o,r,!0,!1,l)}));if(e.isArray(n)){if(1!==n.length){for(c=0,u=n.length;c<u;c++)(_=this.move_node(n[c],a,o,r,i,!1,l))&&(a=_,o="after");return this.redraw(),!0}n=n[0]}if(!(n=n&&n.id?n:this.get_node(n))||n.id===e.jstree.root)return!1;if(d=(n.parent||e.jstree.root).toString(),m=o.toString().match(/^(before|after)$/)&&a.id!==e.jstree.root?this.get_node(a.parent):a,g=!(p=l||(this._model.data[n.id]?this:e.jstree.reference(n.id)))||!p._id||this._id!==p._id,f=p&&p._id&&d&&p._model.data[d]&&p._model.data[d].children?e.inArray(n.id,p._model.data[d].children):-1,p&&p._id&&(n=p._model.data[n.id]),g)return!!(_=this.copy_node(n,a,o,r,i,!1,l))&&(p&&p.delete_node(n),_);switch(a.id===e.jstree.root&&("before"===o&&(o="first"),"after"===o&&(o="last")),o){case"before":o=e.inArray(a.id,m.children);break;case"after":o=e.inArray(a.id,m.children)+1;break;case"inside":case"first":o=0;break;case"last":o=m.children.length;break;default:o||(o=0)}if(o>m.children.length&&(o=m.children.length),!this.check("move_node",n,m,o,{core:!0,origin:l,is_multi:p&&p._id&&p._id!==this._id,is_foreign:!p||!p._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(n.parent===m.id){for(h=m.children.concat(),-1!==(_=e.inArray(n.id,h))&&(h=e.vakata.array_remove(h,_),o>_&&o--),_=[],b=0,y=h.length;b<y;b++)_[b>=o?b+1:b]=h[b];_[o]=n.id,m.children=_,this._node_changed(m.id),this.redraw(m.id===e.jstree.root)}else{for((_=n.children_d.concat()).push(n.id),b=0,y=n.parents.length;b<y;b++){for(h=[],v=0,A=(S=p._model.data[n.parents[b]].children_d).length;v<A;v++)-1===e.inArray(S[v],_)&&h.push(S[v]);p._model.data[n.parents[b]].children_d=h}for(p._model.data[d].children=e.vakata.array_remove_item(p._model.data[d].children,n.id),b=0,y=m.parents.length;b<y;b++)this._model.data[m.parents[b]].children_d=this._model.data[m.parents[b]].children_d.concat(_);for(h=[],b=0,y=m.children.length;b<y;b++)h[b>=o?b+1:b]=m.children[b];for(h[o]=n.id,m.children=h,m.children_d.push(n.id),m.children_d=m.children_d.concat(n.children_d),n.parent=m.id,(_=m.parents.concat()).unshift(m.id),S=n.parents.length,n.parents=_,_=_.concat(),b=0,y=n.children_d.length;b<y;b++)this._model.data[n.children_d[b]].parents=this._model.data[n.children_d[b]].parents.slice(0,-1*S),Array.prototype.push.apply(this._model.data[n.children_d[b]].parents,_);d!==e.jstree.root&&m.id!==e.jstree.root||(this._model.force_full_redraw=!0),this._model.force_full_redraw||(this._node_changed(d),this._node_changed(m.id)),s||this.redraw()}return r&&r.call(this,n,m,o),this.trigger("move_node",{node:n,parent:m.id,position:o,old_parent:d,old_position:f,is_multi:p&&p._id&&p._id!==this._id,is_foreign:!p||!p._id,old_instance:p,new_instance:this}),n.id},copy_node:function(n,a,o,r,i,s,l){var c,u,d,f,m,p,g,h,_,b;if(a=this.get_node(a),o=o===t?0:o,!a)return!1;if(!o.toString().match(/^(before|after)$/)&&!i&&!this.is_loaded(a))return this.load_node(a,(function(){this.copy_node(n,a,o,r,!0,!1,l)}));if(e.isArray(n)){if(1!==n.length){for(c=0,u=n.length;c<u;c++)(f=this.copy_node(n[c],a,o,r,i,!0,l))&&(a=f,o="after");return this.redraw(),!0}n=n[0]}if(!(n=n&&n.id?n:this.get_node(n))||n.id===e.jstree.root)return!1;switch(h=(n.parent||e.jstree.root).toString(),_=o.toString().match(/^(before|after)$/)&&a.id!==e.jstree.root?this.get_node(a.parent):a,!(b=l||(this._model.data[n.id]?this:e.jstree.reference(n.id)))||!b._id||this._id!==b._id,b&&b._id&&(n=b._model.data[n.id]),a.id===e.jstree.root&&("before"===o&&(o="first"),"after"===o&&(o="last")),o){case"before":o=e.inArray(a.id,_.children);break;case"after":o=e.inArray(a.id,_.children)+1;break;case"inside":case"first":o=0;break;case"last":o=_.children.length;break;default:o||(o=0)}if(o>_.children.length&&(o=_.children.length),!this.check("copy_node",n,_,o,{core:!0,origin:l,is_multi:b&&b._id&&b._id!==this._id,is_foreign:!b||!b._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!(g=b?b.get_json(n,{no_id:!0,no_data:!0,no_state:!0}):n))return!1;if(!0===g.id&&delete g.id,!(g=this._parse_model_from_json(g,_.id,_.parents.concat())))return!1;for(f=this.get_node(g),n&&n.state&&!1===n.state.loaded&&(f.state.loaded=!1),(d=[]).push(g),d=d.concat(f.children_d),this.trigger("model",{nodes:d,parent:_.id}),m=0,p=_.parents.length;m<p;m++)this._model.data[_.parents[m]].children_d=this._model.data[_.parents[m]].children_d.concat(d);for(d=[],m=0,p=_.children.length;m<p;m++)d[m>=o?m+1:m]=_.children[m];return d[o]=f.id,_.children=d,_.children_d.push(f.id),_.children_d=_.children_d.concat(f.children_d),_.id===e.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(_.id),s||this.redraw(_.id===e.jstree.root),r&&r.call(this,f,_,o),this.trigger("copy_node",{node:f,original:n,parent:_.id,position:o,old_parent:h,old_position:b&&b._id&&h&&b._model.data[h]&&b._model.data[h].children?e.inArray(n.id,b._model.data[h].children):-1,is_multi:b&&b._id&&b._id!==this._id,is_foreign:!b||!b._id,old_instance:b,new_instance:this}),f.id},cut:function(t){if(t||(t=this._data.core.selected.concat()),e.isArray(t)||(t=[t]),!t.length)return!1;var n,i,s,l=[];for(i=0,s=t.length;i<s;i++)(n=this.get_node(t[i]))&&n.id&&n.id!==e.jstree.root&&l.push(n);if(!l.length)return!1;a=l,r=this,o="move_node",this.trigger("cut",{node:t})},copy:function(t){if(t||(t=this._data.core.selected.concat()),e.isArray(t)||(t=[t]),!t.length)return!1;var n,i,s,l=[];for(i=0,s=t.length;i<s;i++)(n=this.get_node(t[i]))&&n.id&&n.id!==e.jstree.root&&l.push(n);if(!l.length)return!1;a=l,r=this,o="copy_node",this.trigger("copy",{node:t})},get_buffer:function(){return{mode:o,node:a,inst:r}},can_paste:function(){return!1!==o&&!1!==a},paste:function(e,t){if(!((e=this.get_node(e))&&o&&o.match(/^(copy_node|move_node)$/)&&a))return!1;this[o](a,e,t,!1,!1,!1,r)&&this.trigger("paste",{parent:e.id,node:a,mode:o}),a=!1,o=!1,r=!1},clear_buffer:function(){a=!1,o=!1,r=!1,this.trigger("clear_buffer")},edit:function(t,n,a){var o,r,i,s,c,u,d,f,m,p=!1;return!!(t=this.get_node(t))&&(this.check("edit",t,this.get_parent(t))?(m=t,n="string"==typeof n?n:t.text,this.set_text(t,""),t=this._open_to(t),m.text=n,o=this._data.core.rtl,r=this.element.width(),this._data.core.focused=m.id,i=t.children(".jstree-anchor").focus(),s=e("<span></span>"),c=n,u=e("<div></div>",{css:{position:"absolute",top:"-200px",left:o?"0px":"-1000px",visibility:"hidden"}}).appendTo(l.body),d=e("<input />",{value:c,class:"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:e.proxy((function(n){n.stopImmediatePropagation(),n.preventDefault();var o,r=s.children(".jstree-rename-input").val(),l=this.settings.core.force_text;""===r&&(r=c),u.remove(),s.replaceWith(i),s.remove(),c=l?c:e("<div></div>").append(e.parseHTML(c)).html(),t=this.get_node(t),this.set_text(t,c),(o=!!this.rename_node(t,l?e("<div></div>").text(r).text():e("<div></div>").append(e.parseHTML(r)).html()))||this.set_text(t,c),this._data.core.focused=m.id,setTimeout(e.proxy((function(){var e=this.get_node(m.id,!0);e.length&&(this._data.core.focused=m.id,e.children(".jstree-anchor").focus())}),this),0),a&&a.call(this,m,o,p,r),d=null}),this),keydown:function(e){var t=e.which;27===t&&(p=!0,this.value=c),27!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&32!==t||e.stopImmediatePropagation(),27!==t&&13!==t||(e.preventDefault(),this.blur())},click:function(e){e.stopImmediatePropagation()},mousedown:function(e){e.stopImmediatePropagation()},keyup:function(e){d.width(Math.min(u.text("pW"+this.value).width(),r))},keypress:function(e){if(13===e.which)return!1}}),f={fontFamily:i.css("fontFamily")||"",fontSize:i.css("fontSize")||"",fontWeight:i.css("fontWeight")||"",fontStyle:i.css("fontStyle")||"",fontStretch:i.css("fontStretch")||"",fontVariant:i.css("fontVariant")||"",letterSpacing:i.css("letterSpacing")||"",wordSpacing:i.css("wordSpacing")||""},s.attr("class",i.attr("class")).append(i.contents().clone()).append(d),i.replaceWith(s),u.css(f),d.css(f).width(Math.min(u.text("pW"+d[0].value).width(),r))[0].select(),void e(l).one("mousedown.jstree touchstart.jstree dnd_start.vakata",(function(t){d&&t.target!==d&&e(d).blur()}))):(this.settings.core.error.call(this,this._data.core.last_error),!1))},set_theme:function(t,n){if(!t)return!1;if(!0===n){var a=this.settings.core.themes.dir;a||(a=e.jstree.path+"/themes"),n=a+"/"+t+"/style.css"}n&&-1===e.inArray(n,i)&&(e("head").append('<link rel="stylesheet" href="'+n+'" type="text/css" />'),i.push(n)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=t,this.element.addClass("jstree-"+t),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+t+"-responsive"),this.trigger("set_theme",{theme:t})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(e){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),this._data.core.themes.variant=e,e&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped"),this.trigger("show_stripes")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped"),this.trigger("hide_stripes")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots"),this.trigger("show_dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots"),this.trigger("hide_dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons"),this.trigger("show_icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons"),this.trigger("hide_icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},show_ellipsis:function(){this._data.core.themes.ellipsis=!0,this.get_container_ul().addClass("jstree-ellipsis"),this.trigger("show_ellipsis")},hide_ellipsis:function(){this._data.core.themes.ellipsis=!1,this.get_container_ul().removeClass("jstree-ellipsis"),this.trigger("hide_ellipsis")},toggle_ellipsis:function(){this._data.core.themes.ellipsis?this.hide_ellipsis():this.show_ellipsis()},set_icon:function(n,a){var o,r,i,s;if(e.isArray(n)){for(o=0,r=(n=n.slice()).length;o<r;o++)this.set_icon(n[o],a);return!0}return!(!(n=this.get_node(n))||n.id===e.jstree.root)&&(s=n.icon,n.icon=!0===a||null===a||a===t||""===a||a,i=this.get_node(n,!0).children(".jstree-anchor").children(".jstree-themeicon"),!1===a?(i.removeClass("jstree-themeicon-custom "+s).css("background","").removeAttr("rel"),this.hide_icon(n)):!0===a||null===a||a===t||""===a?(i.removeClass("jstree-themeicon-custom "+s).css("background","").removeAttr("rel"),!1===s&&this.show_icon(n)):-1===a.indexOf("/")&&-1===a.indexOf(".")?(i.removeClass(s).css("background",""),i.addClass(a+" jstree-themeicon-custom").attr("rel",a),!1===s&&this.show_icon(n)):(i.removeClass(s).css("background",""),i.addClass("jstree-themeicon-custom").css("background","url('"+a+"') center center no-repeat").attr("rel",a),!1===s&&this.show_icon(n)),!0)},get_icon:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.icon},hide_icon:function(t){var n,a;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.hide_icon(t[n]);return!0}return!(!(t=this.get_node(t))||t===e.jstree.root)&&(t.icon=!1,this.get_node(t,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0)},show_icon:function(t){var n,a,o;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.show_icon(t[n]);return!0}return!(!(t=this.get_node(t))||t===e.jstree.root)&&(o=this.get_node(t,!0),t.icon=!o.length||o.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"),t.icon||(t.icon=!0),o.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0)}},e.vakata={},e.vakata.attributes=function(t,n){t=e(t)[0];var a=n?{}:[];return t&&t.attributes&&e.each(t.attributes,(function(t,o){-1===e.inArray(o.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==o.value&&""!==e.vakata.trim(o.value)&&(n?a[o.name]=o.value:a.push(o.name))})),a},e.vakata.array_unique=function(e){var n,a,o=[],r={};for(n=0,a=e.length;n<a;n++)r[e[n]]===t&&(o.push(e[n]),r[e[n]]=!0);return o},e.vakata.array_remove=function(e,t){return e.splice(t,1),e},e.vakata.array_remove_item=function(t,n){var a=e.inArray(n,t);return-1!==a?e.vakata.array_remove(t,a):t},e.vakata.array_filter=function(e,t,n,a,o){if(e.filter)return e.filter(t,n);for(o in a=[],e)~~o+""==o+""&&o>=0&&t.call(n,e[o],+o,e)&&a.push(e[o]);return a},e.vakata.trim=function(e){return String.prototype.trim?String.prototype.trim.call(e.toString()):e.toString().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.jstree.plugins.changed=function(e,t){var n=[];this.trigger=function(e,a){var o,r;if(a||(a={}),"changed"===e.replace(".jstree","")){a.changed={selected:[],deselected:[]};var i={};for(o=0,r=n.length;o<r;o++)i[n[o]]=1;for(o=0,r=a.selected.length;o<r;o++)i[a.selected[o]]?i[a.selected[o]]=2:a.changed.selected.push(a.selected[o]);for(o=0,r=n.length;o<r;o++)1===i[n[o]]&&a.changed.deselected.push(n[o]);n=a.selected.slice()}t.trigger.call(this,e,a)},this.refresh=function(e,a){return n=[],t.refresh.apply(this,arguments)}};var d,f,m=l.createElement("I");m.className="jstree-icon jstree-checkbox",m.setAttribute("role","presentation"),e.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0,cascade_to_disabled:!0,cascade_to_hidden:!0},e.jstree.plugins.checkbox=function(n,a){this.bind=function(){a.bind.call(this),this._data.checkbox.uto=!1,this._data.checkbox.selected=[],this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined"),this.element.on("init.jstree",e.proxy((function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked"),this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")}),this)).on("loading.jstree",e.proxy((function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()}),this)),-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",e.proxy((function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(e.proxy(this._undetermined,this),50)}),this)),this.settings.checkbox.tie_selection||this.element.on("model.jstree",e.proxy((function(e,t){var n,a,o=this._model.data,r=(o[t.parent],t.nodes);for(n=0,a=r.length;n<a;n++)o[r[n]].state.checked=o[r[n]].state.checked||o[r[n]].original&&o[r[n]].original.state&&o[r[n]].original.state.checked,o[r[n]].state.checked&&this._data.checkbox.selected.push(r[n])}),this)),-1===this.settings.checkbox.cascade.indexOf("up")&&-1===this.settings.checkbox.cascade.indexOf("down")||this.element.on("model.jstree",e.proxy((function(t,n){var a,o,r,i,s,l,c=this._model.data,u=c[n.parent],d=n.nodes,f=[],m=this.settings.checkbox.cascade,p=this.settings.checkbox.tie_selection;if(-1!==m.indexOf("down"))if(u.state[p?"selected":"checked"]){for(o=0,r=d.length;o<r;o++)c[d[o]].state[p?"selected":"checked"]=!0;this._data[p?"core":"checkbox"].selected=this._data[p?"core":"checkbox"].selected.concat(d)}else for(o=0,r=d.length;o<r;o++)if(c[d[o]].state[p?"selected":"checked"]){for(i=0,s=c[d[o]].children_d.length;i<s;i++)c[c[d[o]].children_d[i]].state[p?"selected":"checked"]=!0;this._data[p?"core":"checkbox"].selected=this._data[p?"core":"checkbox"].selected.concat(c[d[o]].children_d)}if(-1!==m.indexOf("up")){for(o=0,r=u.children_d.length;o<r;o++)c[u.children_d[o]].children.length||f.push(c[u.children_d[o]].parent);for(i=0,s=(f=e.vakata.array_unique(f)).length;i<s;i++)for(u=c[f[i]];u&&u.id!==e.jstree.root;){for(a=0,o=0,r=u.children.length;o<r;o++)a+=c[u.children[o]].state[p?"selected":"checked"];if(a!==r)break;u.state[p?"selected":"checked"]=!0,this._data[p?"core":"checkbox"].selected.push(u.id),(l=this.get_node(u,!0))&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(p?"jstree-clicked":"jstree-checked"),u=this.get_node(u.parent)}}this._data[p?"core":"checkbox"].selected=e.vakata.array_unique(this._data[p?"core":"checkbox"].selected)}),this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",e.proxy((function(t,n){var a,o,r,i,s=n.node,l=this._model.data,c=this.get_node(s.parent),u=this.settings.checkbox.cascade,d=this.settings.checkbox.tie_selection,f={},m=this._data[d?"core":"checkbox"].selected;for(a=0,o=m.length;a<o;a++)f[m[a]]=!0;if(-1!==u.indexOf("down")){var p=this._cascade_new_checked_state(s.id,!0),g=s.children_d.concat(s.id);for(a=0,o=g.length;a<o;a++)p.indexOf(g[a])>-1?f[g[a]]=!0:delete f[g[a]]}if(-1!==u.indexOf("up"))for(;c&&c.id!==e.jstree.root;){for(r=0,a=0,o=c.children.length;a<o;a++)r+=l[c.children[a]].state[d?"selected":"checked"];if(r!==o)break;c.state[d?"selected":"checked"]=!0,f[c.id]=!0,(i=this.get_node(c,!0))&&i.length&&i.attr("aria-selected",!0).children(".jstree-anchor").addClass(d?"jstree-clicked":"jstree-checked"),c=this.get_node(c.parent)}for(a in m=[],f)f.hasOwnProperty(a)&&m.push(a);this._data[d?"core":"checkbox"].selected=m}),this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",e.proxy((function(t,n){var a,o,r,i=this.get_node(e.jstree.root),s=this._model.data;for(a=0,o=i.children_d.length;a<o;a++)(r=s[i.children_d[a]])&&r.original&&r.original.state&&r.original.state.undetermined&&(r.original.state.undetermined=!1)}),this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",e.proxy((function(t,n){var a,o,r,i=n.node,s=(this.get_node(i,!0),this.settings.checkbox.cascade),l=this.settings.checkbox.tie_selection,c=this._data[l?"core":"checkbox"].selected,u=i.children_d.concat(i.id);if(-1!==s.indexOf("down")){var d=this._cascade_new_checked_state(i.id,!1);c=e.vakata.array_filter(c,(function(e){return-1===u.indexOf(e)||d.indexOf(e)>-1}))}if(-1!==s.indexOf("up")&&-1===c.indexOf(i.id)){for(a=0,o=i.parents.length;a<o;a++)(r=this._model.data[i.parents[a]]).state[l?"selected":"checked"]=!1,r&&r.original&&r.original.state&&r.original.state.undetermined&&(r.original.state.undetermined=!1),(r=this.get_node(i.parents[a],!0))&&r.length&&r.attr("aria-selected",!1).children(".jstree-anchor").removeClass(l?"jstree-clicked":"jstree-checked");c=e.vakata.array_filter(c,(function(e){return-1===i.parents.indexOf(e)}))}this._data[l?"core":"checkbox"].selected=c}),this)),-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",e.proxy((function(t,n){for(var a,o,r,i,s=this.get_node(n.parent),l=this._model.data,c=this.settings.checkbox.tie_selection;s&&s.id!==e.jstree.root&&!s.state[c?"selected":"checked"];){for(r=0,a=0,o=s.children.length;a<o;a++)r+=l[s.children[a]].state[c?"selected":"checked"];if(!(o>0&&r===o))break;s.state[c?"selected":"checked"]=!0,this._data[c?"core":"checkbox"].selected.push(s.id),(i=this.get_node(s,!0))&&i.length&&i.attr("aria-selected",!0).children(".jstree-anchor").addClass(c?"jstree-clicked":"jstree-checked"),s=this.get_node(s.parent)}}),this)).on("move_node.jstree",e.proxy((function(t,n){var a,o,r,i,s,l=n.is_multi,c=n.old_parent,u=this.get_node(n.parent),d=this._model.data,f=this.settings.checkbox.tie_selection;if(!l)for(a=this.get_node(c);a&&a.id!==e.jstree.root&&!a.state[f?"selected":"checked"];){for(o=0,r=0,i=a.children.length;r<i;r++)o+=d[a.children[r]].state[f?"selected":"checked"];if(!(i>0&&o===i))break;a.state[f?"selected":"checked"]=!0,this._data[f?"core":"checkbox"].selected.push(a.id),(s=this.get_node(a,!0))&&s.length&&s.attr("aria-selected",!0).children(".jstree-anchor").addClass(f?"jstree-clicked":"jstree-checked"),a=this.get_node(a.parent)}for(a=u;a&&a.id!==e.jstree.root;){for(o=0,r=0,i=a.children.length;r<i;r++)o+=d[a.children[r]].state[f?"selected":"checked"];if(o===i)a.state[f?"selected":"checked"]||(a.state[f?"selected":"checked"]=!0,this._data[f?"core":"checkbox"].selected.push(a.id),(s=this.get_node(a,!0))&&s.length&&s.attr("aria-selected",!0).children(".jstree-anchor").addClass(f?"jstree-clicked":"jstree-checked"));else{if(!a.state[f?"selected":"checked"])break;a.state[f?"selected":"checked"]=!1,this._data[f?"core":"checkbox"].selected=e.vakata.array_remove_item(this._data[f?"core":"checkbox"].selected,a.id),(s=this.get_node(a,!0))&&s.length&&s.attr("aria-selected",!1).children(".jstree-anchor").removeClass(f?"jstree-clicked":"jstree-checked")}a=this.get_node(a.parent)}}),this))},this.get_undetermined=function(n){if(-1===this.settings.checkbox.cascade.indexOf("undetermined"))return[];var a,o,r,i,s={},l=this._model.data,c=this.settings.checkbox.tie_selection,u=this._data[c?"core":"checkbox"].selected,d=[],f=this,m=[];for(a=0,o=u.length;a<o;a++)if(l[u[a]]&&l[u[a]].parents)for(r=0,i=l[u[a]].parents.length;r<i&&s[l[u[a]].parents[r]]===t;r++)l[u[a]].parents[r]!==e.jstree.root&&(s[l[u[a]].parents[r]]=!0,d.push(l[u[a]].parents[r]));for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each((function(){var n,c=f.get_node(this);if(c)if(c.state.loaded){for(a=0,o=c.children_d.length;a<o;a++)if(!(n=l[c.children_d[a]]).state.loaded&&n.original&&n.original.state&&n.original.state.undetermined&&!0===n.original.state.undetermined)for(s[n.id]===t&&n.id!==e.jstree.root&&(s[n.id]=!0,d.push(n.id)),r=0,i=n.parents.length;r<i;r++)s[n.parents[r]]===t&&n.parents[r]!==e.jstree.root&&(s[n.parents[r]]=!0,d.push(n.parents[r]))}else if(c.original&&c.original.state&&c.original.state.undetermined&&!0===c.original.state.undetermined)for(s[c.id]===t&&c.id!==e.jstree.root&&(s[c.id]=!0,d.push(c.id)),r=0,i=c.parents.length;r<i;r++)s[c.parents[r]]===t&&c.parents[r]!==e.jstree.root&&(s[c.parents[r]]=!0,d.push(c.parents[r]))})),a=0,o=d.length;a<o;a++)l[d[a]].state[c?"selected":"checked"]||m.push(n?l[d[a]]:d[a]);return m},this._undetermined=function(){if(null!==this.element){var e,t,n,a=this.get_undetermined(!1);for(this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),e=0,t=a.length;e<t;e++)(n=this.get_node(a[e],!0))&&n.length&&n.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined")}},this.redraw_node=function(t,n,o,r){if(t=a.redraw_node.apply(this,arguments)){var i,s,l=null,c=null;for(i=0,s=t.childNodes.length;i<s;i++)if(t.childNodes[i]&&t.childNodes[i].className&&-1!==t.childNodes[i].className.indexOf("jstree-anchor")){l=t.childNodes[i];break}l&&(!this.settings.checkbox.tie_selection&&this._model.data[t.id].state.checked&&(l.className+=" jstree-checked"),c=m.cloneNode(!1),this._model.data[t.id].state.checkbox_disabled&&(c.className+=" jstree-checkbox-disabled"),l.insertBefore(c,l.childNodes[0]))}return o||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(e.proxy(this._undetermined,this),50)),t},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.get_container_ul().removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.get_container_ul().addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()},this.is_undetermined=function(t){t=this.get_node(t);var n,a,o=this.settings.checkbox.cascade,r=this.settings.checkbox.tie_selection,i=this._data[r?"core":"checkbox"].selected,s=this._model.data;if(!t||!0===t.state[r?"selected":"checked"]||-1===o.indexOf("undetermined")||-1===o.indexOf("down")&&-1===o.indexOf("up"))return!1;if(!t.state.loaded&&!0===t.original.state.undetermined)return!0;for(n=0,a=t.children_d.length;n<a;n++)if(-1!==e.inArray(t.children_d[n],i)||!s[t.children_d[n]].state.loaded&&s[t.children_d[n]].original.state.undetermined)return!0;return!1},this.disable_checkbox=function(t){var n,a,o;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.disable_checkbox(t[n]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;o=this.get_node(t,!0),t.state.checkbox_disabled||(t.state.checkbox_disabled=!0,o&&o.length&&o.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:t}))},this.enable_checkbox=function(t){var n,a,o;if(e.isArray(t)){for(n=0,a=(t=t.slice()).length;n<a;n++)this.enable_checkbox(t[n]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;o=this.get_node(t,!0),t.state.checkbox_disabled&&(t.state.checkbox_disabled=!1,o&&o.length&&o.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:t}))},this.activate_node=function(t,n){return!e(n.target).hasClass("jstree-checkbox-disabled")&&(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||e(n.target).hasClass("jstree-checkbox"))&&(n.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!e(n.target).hasClass("jstree-checkbox")?a.activate_node.call(this,t,n):!this.is_disabled(t)&&(this.is_checked(t)?this.uncheck_node(t,n):this.check_node(t,n),void this.trigger("activate_node",{node:this.get_node(t)})))},this._cascade_new_checked_state=function(e,t){var n,a,o,r=this,i=this.settings.checkbox.tie_selection,s=this._model.data[e],l=[],c=[];if(!this.settings.checkbox.cascade_to_disabled&&s.state.disabled||!this.settings.checkbox.cascade_to_hidden&&s.state.hidden)o=this.get_checked_descendants(e),s.state[i?"selected":"checked"]&&o.push(s.id),l=l.concat(o);else{if(s.children)for(n=0,a=s.children.length;n<a;n++){var u=s.children[n];o=r._cascade_new_checked_state(u,t),l=l.concat(o),o.indexOf(u)>-1&&c.push(u)}var d=r.get_node(s,!0),f=c.length>0&&c.length<s.children.length;s.original&&s.original.state&&s.original.state.undetermined&&(s.original.state.undetermined=f),f?(s.state[i?"selected":"checked"]=!1,d.attr("aria-selected",!1).children(".jstree-anchor").removeClass(i?"jstree-clicked":"jstree-checked")):t&&c.length===s.children.length?(s.state[i?"selected":"checked"]=t,l.push(s.id),d.attr("aria-selected",!0).children(".jstree-anchor").addClass(i?"jstree-clicked":"jstree-checked")):(s.state[i?"selected":"checked"]=!1,d.attr("aria-selected",!1).children(".jstree-anchor").removeClass(i?"jstree-clicked":"jstree-checked"))}return l},this.get_checked_descendants=function(t){var n=this,a=n.settings.checkbox.tie_selection,o=n._model.data[t];return e.vakata.array_filter(o.children_d,(function(e){return n._model.data[e].state[a?"selected":"checked"]}))},this.check_node=function(t,n){if(this.settings.checkbox.tie_selection)return this.select_node(t,!1,!0,n);var a,o,r;if(e.isArray(t)){for(o=0,r=(t=t.slice()).length;o<r;o++)this.check_node(t[o],n);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;a=this.get_node(t,!0),t.state.checked||(t.state.checked=!0,this._data.checkbox.selected.push(t.id),a&&a.length&&a.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:t,selected:this._data.checkbox.selected,event:n}))},this.uncheck_node=function(t,n){if(this.settings.checkbox.tie_selection)return this.deselect_node(t,!1,n);var a,o,r;if(e.isArray(t)){for(a=0,o=(t=t.slice()).length;a<o;a++)this.uncheck_node(t[a],n);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;r=this.get_node(t,!0),t.state.checked&&(t.state.checked=!1,this._data.checkbox.selected=e.vakata.array_remove_item(this._data.checkbox.selected,t.id),r.length&&r.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:t,selected:this._data.checkbox.selected,event:n}))},this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var t,n;this._data.checkbox.selected.concat([]);for(this._data.checkbox.selected=this._model.data[e.jstree.root].children_d.concat(),t=0,n=this._data.checkbox.selected.length;t<n;t++)this._model.data[this._data.checkbox.selected[t]]&&(this._model.data[this._data.checkbox.selected[t]].state.checked=!0);this.redraw(!0),this.trigger("check_all",{selected:this._data.checkbox.selected})},this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();var e,t,n=this._data.checkbox.selected.concat([]);for(e=0,t=this._data.checkbox.selected.length;e<t;e++)this._model.data[this._data.checkbox.selected[e]]&&(this._model.data[this._data.checkbox.selected[e]].state.checked=!1);this._data.checkbox.selected=[],this.element.find(".jstree-checked").removeClass("jstree-checked"),this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:n})},this.is_checked=function(t){return this.settings.checkbox.tie_selection?this.is_selected(t):!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.state.checked},this.get_checked=function(t){return this.settings.checkbox.tie_selection?this.get_selected(t):t?e.map(this._data.checkbox.selected,e.proxy((function(e){return this.get_node(e)}),this)):this._data.checkbox.selected.slice()},this.get_top_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_top_selected(t);var n,a,o,r,i=this.get_checked(!0),s={};for(n=0,a=i.length;n<a;n++)s[i[n].id]=i[n];for(n=0,a=i.length;n<a;n++)for(o=0,r=i[n].children_d.length;o<r;o++)s[i[n].children_d[o]]&&delete s[i[n].children_d[o]];for(n in i=[],s)s.hasOwnProperty(n)&&i.push(n);return t?e.map(i,e.proxy((function(e){return this.get_node(e)}),this)):i},this.get_bottom_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(t);var n,a,o=this.get_checked(!0),r=[];for(n=0,a=o.length;n<a;n++)o[n].children.length||r.push(o[n].id);return t?e.map(r,e.proxy((function(e){return this.get_node(e)}),this)):r},this.load_node=function(t,n){var o,r,i;if(!e.isArray(t)&&!this.settings.checkbox.tie_selection&&(i=this.get_node(t))&&i.state.loaded)for(o=0,r=i.children_d.length;o<r;o++)this._model.data[i.children_d[o]].state.checked&&(!0,this._data.checkbox.selected=e.vakata.array_remove_item(this._data.checkbox.selected,i.children_d[o]));return a.load_node.apply(this,arguments)},this.get_state=function(){var e=a.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection||(e.checkbox=this._data.checkbox.selected.slice()),e},this.set_state=function(t,n){var o=a.set_state.apply(this,arguments);if(o&&t.checkbox){if(!this.settings.checkbox.tie_selection){this.uncheck_all();var r=this;e.each(t.checkbox,(function(e,t){r.check_node(t)}))}return delete t.checkbox,this.set_state(t,n),!1}return o},this.refresh=function(e,t){return this.settings.checkbox.tie_selection&&(this._data.checkbox.selected=[]),a.refresh.apply(this,arguments)}},e.jstree.defaults.conditionalselect=function(){return!0},e.jstree.plugins.conditionalselect=function(e,t){this.activate_node=function(e,n){if(this.settings.conditionalselect.call(this,this.get_node(e),n))return t.activate_node.call(this,e,n)}},e.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(t,n){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(t){var n=e.jstree.reference(t.reference),a=n.get_node(t.reference);n.create_node(a,{},"last",(function(e){try{n.edit(e)}catch(t){setTimeout((function(){n.edit(e)}),0)}}))}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(t){var n=e.jstree.reference(t.reference),a=n.get_node(t.reference);n.edit(a)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(t){var n=e.jstree.reference(t.reference),a=n.get_node(t.reference);n.is_selected(a)?n.delete_node(n.get_selected()):n.delete_node(a)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(t){var n=e.jstree.reference(t.reference),a=n.get_node(t.reference);n.is_selected(a)?n.cut(n.get_top_selected()):n.cut(a)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(t){var n=e.jstree.reference(t.reference),a=n.get_node(t.reference);n.is_selected(a)?n.copy(n.get_top_selected()):n.copy(a)}},paste:{separator_before:!1,icon:!1,_disabled:function(t){return!e.jstree.reference(t.reference).can_paste()},separator_after:!1,label:"Paste",action:function(t){var n=e.jstree.reference(t.reference),a=n.get_node(t.reference);n.paste(a)}}}}}}},e.jstree.plugins.contextmenu=function(n,a){this.bind=function(){a.bind.call(this);var t,n,o=0,r=null;this.element.on("init.jstree loading.jstree ready.jstree",e.proxy((function(){this.get_container_ul().addClass("jstree-contextmenu")}),this)).on("contextmenu.jstree",".jstree-anchor",e.proxy((function(e,t){"input"!==e.target.tagName.toLowerCase()&&(e.preventDefault(),o=e.ctrlKey?+new Date:0,(t||r)&&(o=+new Date+1e4),r&&clearTimeout(r),this.is_loading(e.currentTarget)||this.show_contextmenu(e.currentTarget,e.pageX,e.pageY,e))}),this)).on("click.jstree",".jstree-anchor",e.proxy((function(t){this._data.contextmenu.visible&&(!o||+new Date-o>250)&&e.vakata.context.hide(),o=0}),this)).on("touchstart.jstree",".jstree-anchor",(function(a){a.originalEvent&&a.originalEvent.changedTouches&&a.originalEvent.changedTouches[0]&&(t=a.originalEvent.changedTouches[0].clientX,n=a.originalEvent.changedTouches[0].clientY,r=setTimeout((function(){e(a.currentTarget).trigger("contextmenu",!0)}),750))})).on("touchmove.vakata.jstree",(function(a){r&&a.originalEvent&&a.originalEvent.changedTouches&&a.originalEvent.changedTouches[0]&&(Math.abs(t-a.originalEvent.changedTouches[0].clientX)>10||Math.abs(n-a.originalEvent.changedTouches[0].clientY)>10)&&(clearTimeout(r),e.vakata.context.hide())})).on("touchend.vakata.jstree",(function(e){r&&clearTimeout(r)})),e(l).on("context_hide.vakata.jstree",e.proxy((function(t,n){this._data.contextmenu.visible=!1,e(n.reference).removeClass("jstree-context")}),this))},this.teardown=function(){this._data.contextmenu.visible&&e.vakata.context.hide(),a.teardown.call(this)},this.show_contextmenu=function(n,a,o,r){if(!(n=this.get_node(n))||n.id===e.jstree.root)return!1;var i=this.settings.contextmenu,s=this.get_node(n,!0).children(".jstree-anchor"),l=!1,c=!1;(i.show_at_node||a===t||o===t)&&(l=s.offset(),a=l.left,o=l.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(n)&&this.activate_node(n,r),c=i.items,e.isFunction(c)&&(c=c.call(this,n,e.proxy((function(e){this._show_contextmenu(n,a,o,e)}),this))),e.isPlainObject(c)&&this._show_contextmenu(n,a,o,c)},this._show_contextmenu=function(t,n,a,o){var r=this.get_node(t,!0).children(".jstree-anchor");e(l).one("context_show.vakata.jstree",e.proxy((function(t,n){var a="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";e(n.element).addClass(a),r.addClass("jstree-context")}),this)),this._data.contextmenu.visible=!0,e.vakata.context.show(r,{x:n,y:a},o),this.trigger("show_contextmenu",{node:t,x:n,y:a})}},function(e){var t=!1,n={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};e.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(t){e(l).triggerHandler("context_"+t+".vakata",{reference:n.reference,element:n.element,position:{x:n.position_x,y:n.position_y}})},_execute:function(t){return!(!(t=n.items[t])||t._disabled&&(!e.isFunction(t._disabled)||t._disabled({item:t,reference:n.reference,element:n.element}))||!t.action)&&t.action.call(null,{item:t,reference:n.reference,element:n.element,position:{x:n.position_x,y:n.position_y}})},_parse:function(t,a){if(!t)return!1;a||(n.html="",n.items=[]);var o,r="",i=!1;return a&&(r+="<ul>"),e.each(t,(function(t,a){if(!a)return!0;n.items.push(a),!i&&a.separator_before&&(r+="<li class='vakata-context-separator'><a href='#' "+(e.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;</a></li>"),i=!1,r+="<li class='"+(a._class||"")+(!0===a._disabled||e.isFunction(a._disabled)&&a._disabled({item:a,reference:n.reference,element:n.element})?" vakata-contextmenu-disabled ":"")+"' "+(a.shortcut?" data-shortcut='"+a.shortcut+"' ":"")+">",r+="<a href='#' rel='"+(n.items.length-1)+"' "+(a.title?"title='"+a.title+"'":"")+">",e.vakata.context.settings.icons&&(r+="<i ",a.icon&&(-1!==a.icon.indexOf("/")||-1!==a.icon.indexOf(".")?r+=" style='background:url(\""+a.icon+"\") center center no-repeat' ":r+=" class='"+a.icon+"' "),r+="></i><span class='vakata-contextmenu-sep'>&#160;</span>"),r+=(e.isFunction(a.label)?a.label({item:t,reference:n.reference,element:n.element}):a.label)+(a.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+a.shortcut+'">'+(a.shortcut_label||"")+"</span>":"")+"</a>",a.submenu&&(o=e.vakata.context._parse(a.submenu,!0))&&(r+=o),r+="</li>",a.separator_after&&(r+="<li class='vakata-context-separator'><a href='#' "+(e.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;</a></li>",i=!0)})),r=r.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),a&&(r+="</ul>"),a||(n.html=r,e.vakata.context._trigger("parse")),r.length>10&&r},_show_submenu:function(n){if((n=e(n)).length&&n.children("ul").length){var a=n.children("ul"),o=n.offset().left,r=o+n.outerWidth(),i=n.offset().top,s=a.width(),l=a.height(),c=e(window).width()+e(window).scrollLeft(),u=e(window).height()+e(window).scrollTop();t?n[r-(s+10+n.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):n[r+s>c&&o>c-r?"addClass":"removeClass"]("vakata-context-right"),i+l+10>u&&a.css("bottom","-1px"),n.hasClass("vakata-context-right")?o<s&&a.css("margin-right",o-s):c-r<s&&a.css("margin-left",c-r-s),a.show()}},show:function(a,o,r){var i,s,c,u,d,f,m,p,g=!0;switch(n.element&&n.element.length&&n.element.width(""),g){case!o&&!a:return!1;case!!o&&!!a:n.reference=a,n.position_x=o.x,n.position_y=o.y;break;case!o&&!!a:n.reference=a,i=a.offset(),n.position_x=i.left+a.outerHeight(),n.position_y=i.top;break;case!!o&&!a:n.position_x=o.x,n.position_y=o.y}a&&!r&&e(a).data("vakata_contextmenu")&&(r=e(a).data("vakata_contextmenu")),e.vakata.context._parse(r)&&n.element.html(n.html),n.items.length&&(n.element.appendTo(l.body),s=n.element,c=n.position_x,u=n.position_y,d=s.width(),f=s.height(),m=e(window).width()+e(window).scrollLeft(),p=e(window).height()+e(window).scrollTop(),t&&(c-=s.outerWidth()-e(a).outerWidth())<e(window).scrollLeft()+20&&(c=e(window).scrollLeft()+20),c+d+20>m&&(c=m-(d+20)),u+f+20>p&&(u=p-(f+20)),n.element.css({left:c,top:u}).show().find("a").first().focus().parent().addClass("vakata-context-hover"),n.is_visible=!0,e.vakata.context._trigger("show"))},hide:function(){n.is_visible&&(n.element.hide().find("ul").hide().end().find(":focus").blur().end().detach(),n.is_visible=!1,e.vakata.context._trigger("hide"))}},e((function(){t="rtl"===e(l.body).css("direction");var a=!1;n.element=e("<ul class='vakata-context'></ul>"),n.element.on("mouseenter","li",(function(t){t.stopImmediatePropagation(),e.contains(this,t.relatedTarget)||(a&&clearTimeout(a),n.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),e(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),e.vakata.context._show_submenu(this))})).on("mouseleave","li",(function(t){e.contains(this,t.relatedTarget)||e(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")})).on("mouseleave",(function(t){e(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),e.vakata.context.settings.hide_onmouseleave&&(a=setTimeout((function(){e.vakata.context.hide()}),e.vakata.context.settings.hide_onmouseleave))})).on("click","a",(function(t){t.preventDefault(),e(this).blur().parent().hasClass("vakata-context-disabled")||!1===e.vakata.context._execute(e(this).attr("rel"))||e.vakata.context.hide()})).on("keydown","a",(function(t){var a=null;switch(t.which){case 13:case 32:t.type="click",t.preventDefault(),e(t.currentTarget).trigger(t);break;case 37:n.is_visible&&(n.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 38:n.is_visible&&((a=n.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first()).length||(a=n.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),a.addClass("vakata-context-hover").children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 39:n.is_visible&&(n.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 40:n.is_visible&&((a=n.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first()).length||(a=n.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),a.addClass("vakata-context-hover").children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 27:e.vakata.context.hide(),t.preventDefault()}})).on("keydown",(function(e){e.preventDefault();var t=n.element.find(".vakata-contextmenu-shortcut-"+e.which).parent();t.parent().not(".vakata-context-disabled")&&t.click()})),e(l).on("mousedown.vakata.jstree",(function(t){n.is_visible&&n.element[0]!==t.target&&!e.contains(n.element[0],t.target)&&e.vakata.context.hide()})).on("context_show.vakata.jstree",(function(e,a){n.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),t&&n.element.addClass("vakata-context-rtl").css("direction","rtl"),n.element.find("ul").hide().end()}))}))}(e),e.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1,use_html5:!1},e.jstree.plugins.dnd=function(t,n){this.init=function(e,t){n.init.call(this,e,t),this.settings.dnd.use_html5=this.settings.dnd.use_html5&&"draggable"in l.createElement("span")},this.bind=function(){n.bind.call(this),this.element.on(this.settings.dnd.use_html5?"dragstart.jstree":"mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",e.proxy((function(t){if(this.settings.dnd.large_drag_target&&e(t.target).closest(".jstree-node")[0]!==t.currentTarget)return!0;if("touchstart"===t.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var n=this.get_node(t.target),a=this.is_selected(n)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,o=a>1?a+" "+this.get_string("nodes"):this.get_text(t.currentTarget);if(this.settings.core.force_text&&(o=e.vakata.html.escape(o)),n&&n.id&&n.id!==e.jstree.root&&(1===t.which||"touchstart"===t.type||"dragstart"===t.type)&&(!0===this.settings.dnd.is_draggable||e.isFunction(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,a>1?this.get_top_selected(!0):[n],t))){if(d={jstree:!0,origin:this,obj:this.get_node(n,!0),nodes:a>1?this.get_top_selected():[n.id]},f=t.currentTarget,!this.settings.dnd.use_html5)return this.element.trigger("mousedown.jstree"),e.vakata.dnd.start(t,d,'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><i class="jstree-icon jstree-er"></i>'+o+'<ins class="jstree-copy" style="display:none;">+</ins></div>');e.vakata.dnd._trigger("start",t,{helper:e(),element:f,data:d})}}),this)),this.settings.dnd.use_html5&&this.element.on("dragover.jstree",(function(t){return t.preventDefault(),e.vakata.dnd._trigger("move",t,{helper:e(),element:f,data:d}),!1})).on("drop.jstree",e.proxy((function(t){return t.preventDefault(),e.vakata.dnd._trigger("stop",t,{helper:e(),element:f,data:d}),!1}),this))},this.redraw_node=function(e,t,a,o){if((e=n.redraw_node.apply(this,arguments))&&this.settings.dnd.use_html5)if(this.settings.dnd.large_drag_target)e.setAttribute("draggable",!0);else{var r,i,s=null;for(r=0,i=e.childNodes.length;r<i;r++)if(e.childNodes[r]&&e.childNodes[r].className&&-1!==e.childNodes[r].className.indexOf("jstree-anchor")){s=e.childNodes[r];break}s&&s.setAttribute("draggable",!0)}return e}},e((function(){var n=!1,a=!1,o=!1,r=!1,i=e('<div id="jstree-marker">&#160;</div>').hide();e(l).on("dragover.vakata.jstree",(function(t){f&&e.vakata.dnd._trigger("move",t,{helper:e(),element:f,data:d})})).on("drop.vakata.jstree",(function(t){f&&(e.vakata.dnd._trigger("stop",t,{helper:e(),element:f,data:d}),f=null,d=null)})).on("dnd_start.vakata.jstree",(function(e,t){n=!1,o=!1,t&&t.data&&t.data.jstree&&i.appendTo(l.body)})).on("dnd_move.vakata.jstree",(function(s,l){var c=l.event.target!==o.target;if(r&&(l.event&&"dragover"===l.event.type&&!c||clearTimeout(r)),l&&l.data&&l.data.jstree&&(!l.event.target.id||"jstree-marker"!==l.event.target.id)){o=l.event;var u,d,f,m,p,g,h,_,b,y,v,A,S,w,E,C,T,I=e.jstree.reference(l.event.target),k=!1,D=!1,x=!1;if(I&&I._data&&I._data.dnd)if(i.attr("class","jstree-"+I.get_theme()+(I.settings.core.themes.responsive?" jstree-dnd-responsive":"")),E=l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey)),l.helper.children().attr("class","jstree-"+I.get_theme()+" jstree-"+I.get_theme()+"-"+I.get_theme_variant()+" "+(I.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[E?"show":"hide"](),l.event.target!==I.element[0]&&l.event.target!==I.get_container_ul()[0]||0!==I.get_container_ul().children().length){if((k=I.settings.dnd.large_drop_target?e(l.event.target).closest(".jstree-node").children(".jstree-anchor"):e(l.event.target).closest(".jstree-anchor"))&&k.length&&k.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(D=k.offset(),x=(l.event.pageY!==t?l.event.pageY:l.event.originalEvent.pageY)-D.top,f=k.outerHeight(),g=x<f/3?["b","i","a"]:x>f-f/3?["a","i","b"]:x>f/2?["i","a","b"]:["i","b","a"],e.each(g,(function(t,o){switch(o){case"b":u=D.left-6,d=D.top,m=I.get_parent(k),p=k.parent().index(),T="jstree-below";break;case"i":S=I.settings.dnd.inside_pos,w=I.get_node(k.parent()),u=D.left-2,d=D.top+f/2+1,m=w.id,p="first"===S?0:"last"===S?w.children.length:Math.min(S,w.children.length),T="jstree-inside";break;case"a":u=D.left-6,d=D.top+f,m=I.get_parent(k),p=k.parent().index()+1,T="jstree-above"}for(h=!0,_=0,b=l.data.nodes.length;_<b;_++)if(y=l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey))?"copy_node":"move_node",v=p,"move_node"===y&&"a"===o&&l.data.origin&&l.data.origin===I&&m===I.get_parent(l.data.nodes[_])&&(A=I.get_node(m),v>e.inArray(l.data.nodes[_],A.children)&&(v-=1)),!(h=h&&(I&&I.settings&&I.settings.dnd&&!1===I.settings.dnd.check_while_dragging||I.check(y,l.data.origin&&l.data.origin!==I?l.data.origin.get_node(l.data.nodes[_]):l.data.nodes[_],m,v,{dnd:!0,ref:I.get_node(k.parent()),pos:o,origin:l.data.origin,is_multi:l.data.origin&&l.data.origin!==I,is_foreign:!l.data.origin})))){I&&I.last_error&&(a=I.last_error());break}var s,x;if("i"===o&&k.parent().is(".jstree-closed")&&I.settings.dnd.open_timeout&&(l.event&&"dragover"===l.event.type&&!c||(r&&clearTimeout(r),r=setTimeout((s=I,x=k,function(){s.open_node(x)}),I.settings.dnd.open_timeout))),h)return(C=I.get_node(m,!0)).hasClass(".jstree-dnd-parent")||(e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),C.addClass("jstree-dnd-parent")),n={ins:I,par:m,pos:"i"!==o||"last"!==S||0!==p||I.is_loaded(w)?p:"last"},i.css({left:u+"px",top:d+"px"}).show(),i.removeClass("jstree-above jstree-inside jstree-below").addClass(T),l.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),l.event.originalEvent&&l.event.originalEvent.dataTransfer&&(l.event.originalEvent.dataTransfer.dropEffect=E?"copy":"move"),a={},g=!0,!1})),!0===g))return}else{for(h=!0,_=0,b=l.data.nodes.length;_<b&&(h=h&&I.check(l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey))?"copy_node":"move_node",l.data.origin&&l.data.origin!==I?l.data.origin.get_node(l.data.nodes[_]):l.data.nodes[_],e.jstree.root,"last",{dnd:!0,ref:I.get_node(e.jstree.root),pos:"i",origin:l.data.origin,is_multi:l.data.origin&&l.data.origin!==I,is_foreign:!l.data.origin}));_++);if(h)return n={ins:I,par:e.jstree.root,pos:"last"},i.hide(),l.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),void(l.event.originalEvent&&l.event.originalEvent.dataTransfer&&(l.event.originalEvent.dataTransfer.dropEffect=E?"copy":"move"))}e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),n=!1,l.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),l.event.originalEvent&&l.event.originalEvent.dataTransfer,i.hide()}})).on("dnd_scroll.vakata.jstree",(function(e,t){t&&t.data&&t.data.jstree&&(i.hide(),n=!1,o=!1,t.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))})).on("dnd_stop.vakata.jstree",(function(t,s){if(e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),r&&clearTimeout(r),s&&s.data&&s.data.jstree){i.hide().detach();var l,c,u=[];if(n){for(l=0,c=s.data.nodes.length;l<c;l++)u[l]=s.data.origin?s.data.origin.get_node(s.data.nodes[l]):s.data.nodes[l];n.ins[s.data.origin&&(s.data.origin.settings.dnd.always_copy||s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey))?"copy_node":"move_node"](u,n.par,n.pos,!1,!1,!1,s.data.origin)}else(l=e(s.event.target).closest(".jstree")).length&&a&&a.error&&"check"===a.error&&(l=l.jstree(!0))&&l.settings.core.error.call(this,a);o=!1,n=!1}})).on("keyup.jstree keydown.jstree",(function(t,s){(s=e.vakata.dnd._get())&&s.data&&s.data.jstree&&("keyup"===t.type&&27===t.which?(r&&clearTimeout(r),n=!1,a=!1,o=!1,r=!1,i.hide().detach(),e.vakata.dnd._clean()):(s.helper.find(".jstree-copy").first()[s.data.origin&&(s.data.origin.settings.dnd.always_copy||s.data.origin.settings.dnd.copy&&(t.metaKey||t.ctrlKey))?"show":"hide"](),o&&(o.metaKey=t.metaKey,o.ctrlKey=t.ctrlKey,e.vakata.dnd._trigger("move",o))))}))})),function(e){e.vakata.html={div:e("<div></div>"),escape:function(t){return e.vakata.html.div.text(t).html()},strip:function(t){return e.vakata.html.div.empty().append(e.parseHTML(t)).text()}};var n={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};e.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:10},_trigger:function(n,a,o){o===t&&(o=e.vakata.dnd._get()),o.event=a,e(l).triggerHandler("dnd_"+n+".vakata",o)},_get:function(){return{data:n.data,element:n.element,helper:n.helper}},_clean:function(){n.helper&&n.helper.remove(),n.scroll_i&&(clearInterval(n.scroll_i),n.scroll_i=!1),n={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},f=null,e(l).off("mousemove.vakata.jstree touchmove.vakata.jstree",e.vakata.dnd.drag),e(l).off("mouseup.vakata.jstree touchend.vakata.jstree",e.vakata.dnd.stop)},_scroll:function(t){if(!n.scroll_e||!n.scroll_l&&!n.scroll_t)return n.scroll_i&&(clearInterval(n.scroll_i),n.scroll_i=!1),!1;if(!n.scroll_i)return n.scroll_i=setInterval(e.vakata.dnd._scroll,100),!1;if(!0===t)return!1;var a=n.scroll_e.scrollTop(),o=n.scroll_e.scrollLeft();n.scroll_e.scrollTop(a+n.scroll_t*e.vakata.dnd.settings.scroll_speed),n.scroll_e.scrollLeft(o+n.scroll_l*e.vakata.dnd.settings.scroll_speed),a===n.scroll_e.scrollTop()&&o===n.scroll_e.scrollLeft()||e.vakata.dnd._trigger("scroll",n.scroll_e)},start:function(t,a,o){"touchstart"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),n.is_drag&&e.vakata.dnd.stop({});try{t.currentTarget.unselectable="on",t.currentTarget.onselectstart=function(){return!1},t.currentTarget.style&&(t.currentTarget.style.touchAction="none",t.currentTarget.style.msTouchAction="none",t.currentTarget.style.MozUserSelect="none")}catch(e){}return n.init_x=t.pageX,n.init_y=t.pageY,n.data=a,n.is_down=!0,n.element=t.currentTarget,n.target=t.target,n.is_touch="touchstart"===t.type,!1!==o&&(n.helper=e("<div id='vakata-dnd'></div>").html(o).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),e(l).on("mousemove.vakata.jstree touchmove.vakata.jstree",e.vakata.dnd.drag),e(l).on("mouseup.vakata.jstree touchend.vakata.jstree",e.vakata.dnd.stop),!1},drag:function(t){if("touchmove"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),n.is_down){if(!n.is_drag){if(!(Math.abs(t.pageX-n.init_x)>(n.is_touch?e.vakata.dnd.settings.threshold_touch:e.vakata.dnd.settings.threshold)||Math.abs(t.pageY-n.init_y)>(n.is_touch?e.vakata.dnd.settings.threshold_touch:e.vakata.dnd.settings.threshold)))return;n.helper&&(n.helper.appendTo(l.body),n.helper_w=n.helper.outerWidth()),n.is_drag=!0,e(n.target).one("click.vakata",!1),e.vakata.dnd._trigger("start",t)}var a=!1,o=!1,r=!1,i=!1,s=!1,c=!1,u=!1,d=!1,f=!1,m=!1;return n.scroll_t=0,n.scroll_l=0,n.scroll_e=!1,e(e(t.target).parentsUntil("body").addBack().get().reverse()).filter((function(){return/^auto|scroll$/.test(e(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)})).each((function(){var a=e(this),o=a.offset();if(this.scrollHeight>this.offsetHeight&&(o.top+a.height()-t.pageY<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_t=1),t.pageY-o.top<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(o.left+a.width()-t.pageX<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_l=1),t.pageX-o.left<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_l=-1)),n.scroll_t||n.scroll_l)return n.scroll_e=e(this),!1})),n.scroll_e||(a=e(l),o=e(window),r=a.height(),i=o.height(),s=a.width(),c=o.width(),u=a.scrollTop(),d=a.scrollLeft(),r>i&&t.pageY-u<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_t=-1),r>i&&i-(t.pageY-u)<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_t=1),s>c&&t.pageX-d<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_l=-1),s>c&&c-(t.pageX-d)<e.vakata.dnd.settings.scroll_proximity&&(n.scroll_l=1),(n.scroll_t||n.scroll_l)&&(n.scroll_e=a)),n.scroll_e&&e.vakata.dnd._scroll(!0),n.helper&&(f=parseInt(t.pageY+e.vakata.dnd.settings.helper_top,10),m=parseInt(t.pageX+e.vakata.dnd.settings.helper_left,10),r&&f+25>r&&(f=r-50),s&&m+n.helper_w>s&&(m=s-(n.helper_w+2)),n.helper.css({left:m+"px",top:f+"px"})),e.vakata.dnd._trigger("move",t),!1}},stop:function(t){if("touchend"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),n.is_drag)t.target!==n.target&&e(n.target).off("click.vakata"),e.vakata.dnd._trigger("stop",t);else if("touchend"===t.type&&t.target===n.target){var a=setTimeout((function(){e(t.target).click()}),100);e(t.target).one("click",(function(){a&&clearTimeout(a)}))}return e.vakata.dnd._clean(),!1}}}(e),e.jstree.defaults.massload=null,e.jstree.plugins.massload=function(t,n){this.init=function(e,t){this._data.massload={},n.init.call(this,e,t)},this._load_nodes=function(t,a,o,r){var i,s,l,c=this.settings.massload,u=[],d=this._model.data;if(!o){for(i=0,s=t.length;i<s;i++)d[t[i]]&&(d[t[i]].state.loaded||d[t[i]].state.failed)&&!r||(u.push(t[i]),(l=this.get_node(t[i],!0))&&l.length&&l.addClass("jstree-loading").attr("aria-busy",!0));if(this._data.massload={},u.length){if(e.isFunction(c))return c.call(this,u,e.proxy((function(e){var i,s;if(e)for(i in e)e.hasOwnProperty(i)&&(this._data.massload[i]=e[i]);for(i=0,s=t.length;i<s;i++)(l=this.get_node(t[i],!0))&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);n._load_nodes.call(this,t,a,o,r)}),this));if("object"==typeof c&&c&&c.url)return c=e.extend(!0,{},c),e.isFunction(c.url)&&(c.url=c.url.call(this,u)),e.isFunction(c.data)&&(c.data=c.data.call(this,u)),e.ajax(c).done(e.proxy((function(e,i,s){var c,u;if(e)for(c in e)e.hasOwnProperty(c)&&(this._data.massload[c]=e[c]);for(c=0,u=t.length;c<u;c++)(l=this.get_node(t[c],!0))&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);n._load_nodes.call(this,t,a,o,r)}),this)).fail(e.proxy((function(e){n._load_nodes.call(this,t,a,o,r)}),this))}}return n._load_nodes.call(this,t,a,o,r)},this._load_node=function(t,a){var o,r=this._data.massload[t.id],i=null;return r?(i=this["string"==typeof r?"_append_html_data":"_append_json_data"](t,"string"==typeof r?e(e.parseHTML(r)).filter((function(){return 3!==this.nodeType})):r,(function(e){a.call(this,e)})),(o=this.get_node(t.id,!0))&&o.length&&o.removeClass("jstree-loading").attr("aria-busy",!1),delete this._data.massload[t.id],i):n._load_node.call(this,t,a)}},e.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},e.jstree.plugins.search=function(n,a){this.bind=function(){a.bind.call(this),this._data.search.str="",this._data.search.dom=e(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",e.proxy((function(t,n){if(this._data.search.som&&n.res.length){var a,o,r,i,s=this._model.data,l=[];for(a=0,o=n.res.length;a<o;a++)if(s[n.res[a]]&&!s[n.res[a]].state.hidden&&(l.push(n.res[a]),l=l.concat(s[n.res[a]].parents),this._data.search.smc))for(r=0,i=s[n.res[a]].children_d.length;r<i;r++)s[s[n.res[a]].children_d[r]]&&!s[s[n.res[a]].children_d[r]].state.hidden&&l.push(s[n.res[a]].children_d[r]);l=e.vakata.array_remove_item(e.vakata.array_unique(l),e.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(l,!0),this.redraw(!0)}}),this)).on("clear_search.jstree",e.proxy((function(e,t){this._data.search.som&&t.res.length&&(this.show_node(this._data.search.hdn,!0),this.redraw(!0))}),this))},this.search=function(n,a,o,r,i,s){if(!1===n||""===e.vakata.trim(n.toString()))return this.clear_search();r=(r=this.get_node(r))&&r.id?r.id:null,n=n.toString();var l,c,u=this.settings.search,d=!!u.ajax&&u.ajax,f=this._model.data,m=null,p=[],g=[];if(this._data.search.res.length&&!i&&this.clear_search(),o===t&&(o=u.show_only_matches),s===t&&(s=u.show_only_matches_children),!a&&!1!==d)return e.isFunction(d)?d.call(this,n,e.proxy((function(t){t&&t.d&&(t=t.d),this._load_nodes(e.isArray(t)?e.vakata.array_unique(t):[],(function(){this.search(n,!0,o,r,i,s)}))}),this),r):((d=e.extend({},d)).data||(d.data={}),d.data.str=n,r&&(d.data.inside=r),this._data.search.lastRequest&&this._data.search.lastRequest.abort(),this._data.search.lastRequest=e.ajax(d).fail(e.proxy((function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(d)},this.settings.core.error.call(this,this._data.core.last_error)}),this)).done(e.proxy((function(t){t&&t.d&&(t=t.d),this._load_nodes(e.isArray(t)?e.vakata.array_unique(t):[],(function(){this.search(n,!0,o,r,i,s)}))}),this)),this._data.search.lastRequest);if(i||(this._data.search.str=n,this._data.search.dom=e(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=o,this._data.search.smc=s),m=new e.vakata.search(n,!0,{caseSensitive:u.case_sensitive,fuzzy:u.fuzzy}),e.each(f[r||e.jstree.root].children_d,(function(e,t){var a=f[t];a.text&&!a.state.hidden&&(!u.search_leaves_only||a.state.loaded&&0===a.children.length)&&(u.search_callback&&u.search_callback.call(this,n,a)||!u.search_callback&&m.search(a.text).isMatch)&&(p.push(t),g=g.concat(a.parents))})),p.length){for(l=0,c=(g=e.vakata.array_unique(g)).length;l<c;l++)g[l]!==e.jstree.root&&f[g[l]]&&!0===this.open_node(g[l],null,0)&&this._data.search.opn.push(g[l]);i?(this._data.search.dom=this._data.search.dom.add(e(this.element[0].querySelectorAll("#"+e.map(p,(function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")})).join(", #")))),this._data.search.res=e.vakata.array_unique(this._data.search.res.concat(p))):(this._data.search.dom=e(this.element[0].querySelectorAll("#"+e.map(p,(function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")})).join(", #"))),this._data.search.res=p),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:n,res:this._data.search.res,show_only_matches:o})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=e(this.element[0].querySelectorAll("#"+e.map(this._data.search.res,(function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")})).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=e()},this.redraw_node=function(t,n,o,r){if((t=a.redraw_node.apply(this,arguments))&&-1!==e.inArray(t.id,this._data.search.res)){var i,s,l=null;for(i=0,s=t.childNodes.length;i<s;i++)if(t.childNodes[i]&&t.childNodes[i].className&&-1!==t.childNodes[i].className.indexOf("jstree-anchor")){l=t.childNodes[i];break}l&&(l.className+=" jstree-search")}return t}},function(e){e.vakata.search=function(t,n,a){a=a||{},!1!==(a=e.extend({},e.vakata.search.defaults,a)).fuzzy&&(a.fuzzy=!0),t=a.caseSensitive?t:t.toLowerCase();var o,r,i,s,l=a.location,c=a.distance,u=a.threshold,d=t.length;return d>32&&(a.fuzzy=!1),a.fuzzy&&(o=1<<d-1,r=function(){var e={},n=0;for(n=0;n<d;n++)e[t.charAt(n)]=0;for(n=0;n<d;n++)e[t.charAt(n)]|=1<<d-n-1;return e}(),i=function(e,t){var n=e/d,a=Math.abs(l-t);return c?n+a/c:a?1:n}),s=function(e){if(e=a.caseSensitive?e:e.toLowerCase(),t===e||-1!==e.indexOf(t))return{isMatch:!0,score:0};if(!a.fuzzy)return{isMatch:!1,score:1};var n,s,c,f,m,p,g,h,_,b=e.length,y=u,v=e.indexOf(t,l),A=d+b,S=1,w=[];for(-1!==v&&(y=Math.min(i(0,v),y),-1!==(v=e.lastIndexOf(t,l+d))&&(y=Math.min(i(0,v),y))),v=-1,n=0;n<d;n++){for(c=0,f=A;c<f;)i(n,l+f)<=y?c=f:A=f,f=Math.floor((A-c)/2+c);for(A=f,p=Math.max(1,l-f+1),g=Math.min(l+f,b)+d,(h=new Array(g+2))[g+1]=(1<<n)-1,s=g;s>=p;s--)if(_=r[e.charAt(s-1)],h[s]=0===n?(h[s+1]<<1|1)&_:(h[s+1]<<1|1)&_|(m[s+1]|m[s])<<1|1|m[s+1],h[s]&o&&(S=i(n,s-1))<=y){if(y=S,v=s-1,w.push(v),!(v>l))break;p=Math.max(1,2*l-v)}if(i(n+1,l)>y)break;m=h}return{isMatch:v>=0,score:S}},!0===n?{search:s}:s(n)},e.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(e),e.jstree.defaults.sort=function(e,t){return this.get_text(e)>this.get_text(t)?1:-1},e.jstree.plugins.sort=function(t,n){this.bind=function(){n.bind.call(this),this.element.on("model.jstree",e.proxy((function(e,t){this.sort(t.parent,!0)}),this)).on("rename_node.jstree create_node.jstree",e.proxy((function(e,t){this.sort(t.parent||t.node.parent,!1),this.redraw_node(t.parent||t.node.parent,!0)}),this)).on("move_node.jstree copy_node.jstree",e.proxy((function(e,t){this.sort(t.parent,!1),this.redraw_node(t.parent,!0)}),this))},this.sort=function(t,n){var a,o;if((t=this.get_node(t))&&t.children&&t.children.length&&(t.children.sort(e.proxy(this.settings.sort,this)),n))for(a=0,o=t.children_d.length;a<o;a++)this.sort(t.children_d[a],!1)}};var p=!1;e.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1,preserve_loaded:!1},e.jstree.plugins.state=function(t,n){this.bind=function(){n.bind.call(this);var t=e.proxy((function(){this.element.on(this.settings.state.events,e.proxy((function(){p&&clearTimeout(p),p=setTimeout(e.proxy((function(){this.save_state()}),this),100)}),this)),this.trigger("state_ready")}),this);this.element.on("ready.jstree",e.proxy((function(e,n){this.element.one("restore_state.jstree",t),this.restore_state()||t()}),this))},this.save_state=function(){var t=this.get_state();this.settings.state.preserve_loaded||delete t.core.loaded;var n={state:t,ttl:this.settings.state.ttl,sec:+new Date};e.vakata.storage.set(this.settings.state.key,JSON.stringify(n))},this.restore_state=function(){var t=e.vakata.storage.get(this.settings.state.key);if(t)try{t=JSON.parse(t)}catch(e){return!1}return!(t&&t.ttl&&t.sec&&+new Date-t.sec>t.ttl)&&(t&&t.state&&(t=t.state),t&&e.isFunction(this.settings.state.filter)&&(t=this.settings.state.filter.call(this,t)),!!t&&(this.settings.state.preserve_loaded||delete t.core.loaded,this.element.one("set_state.jstree",(function(n,a){a.instance.trigger("restore_state",{state:e.extend(!0,{},t)})})),this.set_state(t),!0))},this.clear_state=function(){return e.vakata.storage.del(this.settings.state.key)}},function(e,t){e.vakata.storage={set:function(e,t){return window.localStorage.setItem(e,t)},get:function(e){return window.localStorage.getItem(e)},del:function(e){return window.localStorage.removeItem(e)}}}(e),e.jstree.defaults.types={default:{}},e.jstree.defaults.types[e.jstree.root]={},e.jstree.plugins.types=function(n,a){this.init=function(n,o){var r,i;if(o&&o.types&&o.types.default)for(r in o.types)if("default"!==r&&r!==e.jstree.root&&o.types.hasOwnProperty(r))for(i in o.types.default)o.types.default.hasOwnProperty(i)&&o.types[r][i]===t&&(o.types[r][i]=o.types.default[i]);a.init.call(this,n,o),this._model.data[e.jstree.root].type=e.jstree.root},this.refresh=function(t,n){a.refresh.call(this,t,n),this._model.data[e.jstree.root].type=e.jstree.root},this.bind=function(){this.element.on("model.jstree",e.proxy((function(n,a){var o,r,i,s=this._model.data,l=a.nodes,c=this.settings.types,u="default";for(o=0,r=l.length;o<r;o++){if(u="default",s[l[o]].original&&s[l[o]].original.type&&c[s[l[o]].original.type]&&(u=s[l[o]].original.type),s[l[o]].data&&s[l[o]].data.jstree&&s[l[o]].data.jstree.type&&c[s[l[o]].data.jstree.type]&&(u=s[l[o]].data.jstree.type),s[l[o]].type=u,!0===s[l[o]].icon&&c[u].icon!==t&&(s[l[o]].icon=c[u].icon),c[u].li_attr!==t&&"object"==typeof c[u].li_attr)for(i in c[u].li_attr)if(c[u].li_attr.hasOwnProperty(i)){if("id"===i)continue;s[l[o]].li_attr[i]===t?s[l[o]].li_attr[i]=c[u].li_attr[i]:"class"===i&&(s[l[o]].li_attr.class=c[u].li_attr.class+" "+s[l[o]].li_attr.class)}if(c[u].a_attr!==t&&"object"==typeof c[u].a_attr)for(i in c[u].a_attr)if(c[u].a_attr.hasOwnProperty(i)){if("id"===i)continue;s[l[o]].a_attr[i]===t?s[l[o]].a_attr[i]=c[u].a_attr[i]:"href"===i&&"#"===s[l[o]].a_attr[i]?s[l[o]].a_attr.href=c[u].a_attr.href:"class"===i&&(s[l[o]].a_attr.class=c[u].a_attr.class+" "+s[l[o]].a_attr.class)}}s[e.jstree.root].type=e.jstree.root}),this)),a.bind.call(this)},this.get_json=function(t,n,o){var r,i,s=this._model.data,l=n?e.extend(!0,{},n,{no_id:!1}):{},c=a.get_json.call(this,t,l,o);if(!1===c)return!1;if(e.isArray(c))for(r=0,i=c.length;r<i;r++)c[r].type=c[r].id&&s[c[r].id]&&s[c[r].id].type?s[c[r].id].type:"default",n&&n.no_id&&(delete c[r].id,c[r].li_attr&&c[r].li_attr.id&&delete c[r].li_attr.id,c[r].a_attr&&c[r].a_attr.id&&delete c[r].a_attr.id);else c.type=c.id&&s[c.id]&&s[c.id].type?s[c.id].type:"default",n&&n.no_id&&(c=this._delete_ids(c));return c},this._delete_ids=function(t){if(e.isArray(t)){for(var n=0,a=t.length;n<a;n++)t[n]=this._delete_ids(t[n]);return t}return delete t.id,t.li_attr&&t.li_attr.id&&delete t.li_attr.id,t.a_attr&&t.a_attr.id&&delete t.a_attr.id,t.children&&e.isArray(t.children)&&(t.children=this._delete_ids(t.children)),t},this.check=function(n,o,r,i,s){if(!1===a.check.call(this,n,o,r,i,s))return!1;o=o&&o.id?o:this.get_node(o),r=r&&r.id?r:this.get_node(r);var l,c,u,d,f=o&&o.id?s&&s.origin?s.origin:e.jstree.reference(o.id):null;switch(f=f&&f._model&&f._model.data?f._model.data:null,n){case"create_node":case"move_node":case"copy_node":if("move_node"!==n||-1===e.inArray(o.id,r.children)){if((l=this.get_rules(r)).max_children!==t&&-1!==l.max_children&&l.max_children===r.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+n,data:JSON.stringify({chk:n,pos:i,obj:!(!o||!o.id)&&o.id,par:!(!r||!r.id)&&r.id})},!1;if(l.valid_children!==t&&-1!==l.valid_children&&-1===e.inArray(o.type||"default",l.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+n,data:JSON.stringify({chk:n,pos:i,obj:!(!o||!o.id)&&o.id,par:!(!r||!r.id)&&r.id})},!1;if(f&&o.children_d&&o.parents){for(c=0,u=0,d=o.children_d.length;u<d;u++)c=Math.max(c,f[o.children_d[u]].parents.length);c=c-o.parents.length+1}(c<=0||c===t)&&(c=1);do{if(l.max_depth!==t&&-1!==l.max_depth&&l.max_depth<c)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+n,data:JSON.stringify({chk:n,pos:i,obj:!(!o||!o.id)&&o.id,par:!(!r||!r.id)&&r.id})},!1;r=this.get_node(r.parent),l=this.get_rules(r),c++}while(r)}}return!0},this.get_rules=function(e){if(!(e=this.get_node(e)))return!1;var n=this.get_type(e,!0);return n.max_depth===t&&(n.max_depth=-1),n.max_children===t&&(n.max_children=-1),n.valid_children===t&&(n.valid_children=-1),n},this.get_type=function(t,n){return!!(t=this.get_node(t))&&(n?e.extend({type:t.type},this.settings.types[t.type]):t.type)},this.set_type=function(n,a){var o,r,i,s,l,c,u,d,f=this._model.data;if(e.isArray(n)){for(r=0,i=(n=n.slice()).length;r<i;r++)this.set_type(n[r],a);return!0}if(o=this.settings.types,n=this.get_node(n),!o[a]||!n)return!1;if((u=this.get_node(n,!0))&&u.length&&(d=u.children(".jstree-anchor")),s=n.type,l=this.get_icon(n),n.type=a,(!0===l||!o[s]||o[s].icon!==t&&l===o[s].icon)&&this.set_icon(n,o[a].icon===t||o[a].icon),o[s]&&o[s].li_attr!==t&&"object"==typeof o[s].li_attr)for(c in o[s].li_attr)if(o[s].li_attr.hasOwnProperty(c)){if("id"===c)continue;"class"===c?(f[n.id].li_attr.class=(f[n.id].li_attr.class||"").replace(o[s].li_attr[c],""),u&&u.removeClass(o[s].li_attr[c])):f[n.id].li_attr[c]===o[s].li_attr[c]&&(f[n.id].li_attr[c]=null,u&&u.removeAttr(c))}if(o[s]&&o[s].a_attr!==t&&"object"==typeof o[s].a_attr)for(c in o[s].a_attr)if(o[s].a_attr.hasOwnProperty(c)){if("id"===c)continue;"class"===c?(f[n.id].a_attr.class=(f[n.id].a_attr.class||"").replace(o[s].a_attr[c],""),d&&d.removeClass(o[s].a_attr[c])):f[n.id].a_attr[c]===o[s].a_attr[c]&&("href"===c?(f[n.id].a_attr[c]="#",d&&d.attr("href","#")):(delete f[n.id].a_attr[c],d&&d.removeAttr(c)))}if(o[a].li_attr!==t&&"object"==typeof o[a].li_attr)for(c in o[a].li_attr)if(o[a].li_attr.hasOwnProperty(c)){if("id"===c)continue;f[n.id].li_attr[c]===t?(f[n.id].li_attr[c]=o[a].li_attr[c],u&&("class"===c?u.addClass(o[a].li_attr[c]):u.attr(c,o[a].li_attr[c]))):"class"===c&&(f[n.id].li_attr.class=o[a].li_attr[c]+" "+f[n.id].li_attr.class,u&&u.addClass(o[a].li_attr[c]))}if(o[a].a_attr!==t&&"object"==typeof o[a].a_attr)for(c in o[a].a_attr)if(o[a].a_attr.hasOwnProperty(c)){if("id"===c)continue;f[n.id].a_attr[c]===t?(f[n.id].a_attr[c]=o[a].a_attr[c],d&&("class"===c?d.addClass(o[a].a_attr[c]):d.attr(c,o[a].a_attr[c]))):"href"===c&&"#"===f[n.id].a_attr[c]?(f[n.id].a_attr.href=o[a].a_attr.href,d&&d.attr("href",o[a].a_attr.href)):"class"===c&&(f[n.id].a_attr.class=o[a].a_attr.class+" "+f[n.id].a_attr.class,d&&d.addClass(o[a].a_attr[c]))}return!0}},e.jstree.defaults.unique={case_sensitive:!1,trim_whitespace:!1,duplicate:function(e,t){return e+" ("+t+")"}},e.jstree.plugins.unique=function(n,a){this.check=function(t,n,o,r,i){if(!1===a.check.call(this,t,n,o,r,i))return!1;if(n=n&&n.id?n:this.get_node(n),!(o=o&&o.id?o:this.get_node(o))||!o.children)return!0;var s,l,c,u="rename_node"===t?r:n.text,d=[],f=this.settings.unique.case_sensitive,m=this.settings.unique.trim_whitespace,p=this._model.data;for(s=0,l=o.children.length;s<l;s++)c=p[o.children[s]].text,f||(c=c.toLowerCase()),m&&(c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),d.push(c);switch(f||(u=u.toLowerCase()),m&&(u=u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),t){case"delete_node":return!0;case"rename_node":return c=n.text||"",f||(c=c.toLowerCase()),m&&(c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),(s=-1===e.inArray(u,d)||n.text&&c===u)||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+u+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:r,obj:!(!n||!n.id)&&n.id,par:!(!o||!o.id)&&o.id})}),s;case"create_node":return(s=-1===e.inArray(u,d))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+u+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:r,obj:!(!n||!n.id)&&n.id,par:!(!o||!o.id)&&o.id})}),s;case"copy_node":return(s=-1===e.inArray(u,d))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+u+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:r,obj:!(!n||!n.id)&&n.id,par:!(!o||!o.id)&&o.id})}),s;case"move_node":return(s=n.parent===o.id&&(!i||!i.is_multi)||-1===e.inArray(u,d))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+u+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:r,obj:!(!n||!n.id)&&n.id,par:!(!o||!o.id)&&o.id})}),s}return!0},this.create_node=function(n,o,r,i,s){if(!o||o.text===t){if(null===n&&(n=e.jstree.root),!(n=this.get_node(n)))return a.create_node.call(this,n,o,r,i,s);if(!(r=r===t?"last":r).toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(n))return a.create_node.call(this,n,o,r,i,s);o||(o={});var l,c,u,d,f,m,p=this._model.data,g=this.settings.unique.case_sensitive,h=this.settings.unique.trim_whitespace,_=this.settings.unique.duplicate;for(c=l=this.get_string("New node"),u=[],d=0,f=n.children.length;d<f;d++)m=p[n.children[d]].text,g||(m=m.toLowerCase()),h&&(m=m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),u.push(m);for(d=1,m=c,g||(m=m.toLowerCase()),h&&(m=m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));-1!==e.inArray(m,u);)m=c=_.call(this,l,++d).toString(),g||(m=m.toLowerCase()),h&&(m=m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));o.text=c}return a.create_node.call(this,n,o,r,i,s)}};var g=l.createElement("DIV");if(g.setAttribute("unselectable","on"),g.setAttribute("role","presentation"),g.className="jstree-wholerow",g.innerHTML="&#160;",e.jstree.plugins.wholerow=function(t,n){this.bind=function(){n.bind.call(this),this.element.on("ready.jstree set_state.jstree",e.proxy((function(){this.hide_dots()}),this)).on("init.jstree loading.jstree ready.jstree",e.proxy((function(){this.get_container_ul().addClass("jstree-wholerow-ul")}),this)).on("deselect_all.jstree",e.proxy((function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")}),this)).on("changed.jstree",e.proxy((function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var n,a,o=!1;for(n=0,a=t.selected.length;n<a;n++)(o=this.get_node(t.selected[n],!0))&&o.length&&o.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")}),this)).on("open_node.jstree",e.proxy((function(e,t){this.get_node(t.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")}),this)).on("hover_node.jstree dehover_node.jstree",e.proxy((function(e,t){"hover_node"===e.type&&this.is_disabled(t.node)||this.get_node(t.node,!0).children(".jstree-wholerow")["hover_node"===e.type?"addClass":"removeClass"]("jstree-wholerow-hovered")}),this)).on("contextmenu.jstree",".jstree-wholerow",e.proxy((function(t){if(this._data.contextmenu){t.preventDefault();var n=e.Event("contextmenu",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,pageX:t.pageX,pageY:t.pageY});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(n)}}),this)).on("click.jstree",".jstree-wholerow",(function(t){t.stopImmediatePropagation();var n=e.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(n).focus()})).on("dblclick.jstree",".jstree-wholerow",(function(t){t.stopImmediatePropagation();var n=e.Event("dblclick",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(n).focus()})).on("click.jstree",".jstree-leaf > .jstree-ocl",e.proxy((function(t){t.stopImmediatePropagation();var n=e.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(n).focus()}),this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",e.proxy((function(e){return e.stopImmediatePropagation(),this.is_disabled(e.currentTarget)||this.hover_node(e.currentTarget),!1}),this)).on("mouseleave.jstree",".jstree-node",e.proxy((function(e){this.dehover_node(e.currentTarget)}),this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),n.teardown.call(this)},this.redraw_node=function(t,a,o,r){if(t=n.redraw_node.apply(this,arguments)){var i=g.cloneNode(!0);-1!==e.inArray(t.id,this._data.core.selected)&&(i.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===t.id&&(i.className+=" jstree-wholerow-hovered"),t.insertBefore(i,t.childNodes[0])}return t}},window.customElements&&Object&&Object.create){var h=Object.create(HTMLElement.prototype);h.createdCallback=function(){var t,n={core:{},plugins:[]};for(t in e.jstree.plugins)e.jstree.plugins.hasOwnProperty(t)&&this.attributes[t]&&(n.plugins.push(t),this.getAttribute(t)&&JSON.parse(this.getAttribute(t))&&(n[t]=JSON.parse(this.getAttribute(t))));for(t in e.jstree.defaults.core)e.jstree.defaults.core.hasOwnProperty(t)&&this.attributes[t]&&(n.core[t]=JSON.parse(this.getAttribute(t))||this.getAttribute(t));e(this).jstree(n)};try{window.customElements.define("vakata-jstree",(function(){}),{prototype:h})}catch(e){}}})?a.apply(t,o):a)||(e.exports=r)}()},"./node_modules/lodash/lodash.js":function(e,t,n){var a;e=n.nmd(e),function(){var o,r="Expected a function",i="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,f=256,m=1/0,p=9007199254740991,g=NaN,h=4294967295,_=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",f]],b="[object Arguments]",y="[object Array]",v="[object Boolean]",A="[object Date]",S="[object Error]",w="[object Function]",E="[object GeneratorFunction]",C="[object Map]",T="[object Number]",I="[object Object]",k="[object Promise]",D="[object RegExp]",x="[object Set]",M="[object String]",P="[object Symbol]",O="[object WeakMap]",R="[object ArrayBuffer]",N="[object DataView]",L="[object Float32Array]",$="[object Float64Array]",U="[object Int8Array]",j="[object Int16Array]",F="[object Int32Array]",q="[object Uint8Array]",Y="[object Uint8ClampedArray]",H="[object Uint16Array]",B="[object Uint32Array]",G=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,K=RegExp(Q.source),J=RegExp(z.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,re=RegExp(oe.source),ie=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,me=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,_e=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,Ae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",De="\\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",xe="['’]",Me="[\\ud800-\\udfff]",Pe="["+De+"]",Oe="["+Ee+"]",Re="\\d+",Ne="[\\u2700-\\u27bf]",Le="["+Te+"]",$e="[^\\ud800-\\udfff"+De+Re+Ce+Te+Ie+"]",Ue="\\ud83c[\\udffb-\\udfff]",je="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ye="["+Ie+"]",He="(?:"+Le+"|"+$e+")",Be="(?:"+Ye+"|"+$e+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Oe+"|"+Ue+")"+"?",Qe="[\\ufe0e\\ufe0f]?",ze=Qe+We+("(?:\\u200d(?:"+[je,Fe,qe].join("|")+")"+Qe+We+")*"),Ke="(?:"+[Ne,Fe,qe].join("|")+")"+ze,Je="(?:"+[je+Oe+"?",Oe,Fe,qe,Me].join("|")+")",Xe=RegExp(xe,"g"),Ze=RegExp(Oe,"g"),et=RegExp(Ue+"(?="+Ue+")|"+Je+ze,"g"),tt=RegExp([Ye+"?"+Le+"+"+Ge+"(?="+[Pe,Ye,"$"].join("|")+")",Be+"+"+Ve+"(?="+[Pe,Ye+He,"$"].join("|")+")",Ye+"?"+He+"+"+Ge,Ye+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ke].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Ee+ke+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],rt=-1,it={};it[L]=it[$]=it[U]=it[j]=it[F]=it[q]=it[Y]=it[H]=it[B]=!0,it[b]=it[y]=it[R]=it[v]=it[N]=it[A]=it[S]=it[w]=it[C]=it[T]=it[I]=it[D]=it[x]=it[M]=it[O]=!1;var st={};st[b]=st[y]=st[R]=st[N]=st[v]=st[A]=st[L]=st[$]=st[U]=st[j]=st[F]=st[C]=st[T]=st[I]=st[D]=st[x]=st[M]=st[P]=st[q]=st[Y]=st[H]=st[B]=!0,st[S]=st[w]=st[O]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=dt||ft||Function("return this")(),pt=t&&!t.nodeType&&t,gt=pt&&e&&!e.nodeType&&e,ht=gt&&gt.exports===pt,_t=ht&&dt.process,bt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(e){}}(),yt=bt&&bt.isArrayBuffer,vt=bt&&bt.isDate,At=bt&&bt.isMap,St=bt&&bt.isRegExp,wt=bt&&bt.isSet,Et=bt&&bt.isTypedArray;function Ct(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 Tt(e,t,n,a){for(var o=-1,r=null==e?0:e.length;++o<r;){var i=e[o];t(a,i,n(i),e)}return a}function It(e,t){for(var n=-1,a=null==e?0:e.length;++n<a&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,a=null==e?0:e.length,o=0,r=[];++n<a;){var i=e[n];t(i,n,e)&&(r[o++]=i)}return r}function Mt(e,t){return!!(null==e?0:e.length)&&qt(e,t,0)>-1}function Pt(e,t,n){for(var a=-1,o=null==e?0:e.length;++a<o;)if(n(t,e[a]))return!0;return!1}function Ot(e,t){for(var n=-1,a=null==e?0:e.length,o=Array(a);++n<a;)o[n]=t(e[n],n,e);return o}function Rt(e,t){for(var n=-1,a=t.length,o=e.length;++n<a;)e[o+n]=t[n];return e}function Nt(e,t,n,a){var o=-1,r=null==e?0:e.length;for(a&&r&&(n=e[++o]);++o<r;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,a){var o=null==e?0:e.length;for(a&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $t(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}var Ut=Gt("length");function jt(e,t,n){var a;return n(e,(function(e,n,o){if(t(e,n,o))return a=n,!1})),a}function Ft(e,t,n,a){for(var o=e.length,r=n+(a?1:-1);a?r--:++r<o;)if(t(e[r],r,e))return r;return-1}function qt(e,t,n){return t==t?function(e,t,n){var a=n-1,o=e.length;for(;++a<o;)if(e[a]===t)return a;return-1}(e,t,n):Ft(e,Ht,n)}function Yt(e,t,n,a){for(var o=n-1,r=e.length;++o<r;)if(a(e[o],t))return o;return-1}function Ht(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?Qt(e,t)/n:g}function Gt(e){return function(t){return null==t?o:t[e]}}function Vt(e){return function(t){return null==e?o:e[t]}}function Wt(e,t,n,a,o){return o(e,(function(e,o,r){n=a?(a=!1,e):t(n,e,o,r)})),n}function Qt(e,t){for(var n,a=-1,r=e.length;++a<r;){var i=t(e[a]);i!==o&&(n=n===o?i:n+i)}return n}function zt(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}function Kt(e){return e?e.slice(0,gn(e)+1).replace(ie,""):e}function Jt(e){return function(t){return e(t)}}function Xt(e,t){return Ot(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function en(e,t){for(var n=-1,a=e.length;++n<a&&qt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&++a;return a}var an=Vt({À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,a=e.length,o=0,r=[];++n<a;){var i=e[n];i!==t&&i!==s||(e[n]=s,r[o++]=n)}return r}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function mn(e){return sn(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Ut(e)}function pn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var hn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var _n=function e(t){var n,a=(t=null==t?mt:_n.defaults(mt.Object(),t,_n.pick(mt,ot))).Array,se=t.Date,Ee=t.Error,Ce=t.Function,Te=t.Math,Ie=t.Object,ke=t.RegExp,De=t.String,xe=t.TypeError,Me=a.prototype,Pe=Ce.prototype,Oe=Ie.prototype,Re=t["__core-js_shared__"],Ne=Pe.toString,Le=Oe.hasOwnProperty,$e=0,Ue=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Oe.toString,Fe=Ne.call(Ie),qe=mt._,Ye=ke("^"+Ne.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=ht?t.Buffer:o,Be=t.Symbol,Ge=t.Uint8Array,Ve=He?He.allocUnsafe:o,We=cn(Ie.getPrototypeOf,Ie),Qe=Ie.create,ze=Oe.propertyIsEnumerable,Ke=Me.splice,Je=Be?Be.isConcatSpreadable:o,et=Be?Be.iterator:o,nt=Be?Be.toStringTag:o,lt=function(){try{var e=pr(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ft=se&&se.now!==mt.Date.now&&se.now,pt=t.setTimeout!==mt.setTimeout&&t.setTimeout,gt=Te.ceil,_t=Te.floor,bt=Ie.getOwnPropertySymbols,Ut=He?He.isBuffer:o,Vt=t.isFinite,bn=Me.join,yn=cn(Ie.keys,Ie),vn=Te.max,An=Te.min,Sn=se.now,wn=t.parseInt,En=Te.random,Cn=Me.reverse,Tn=pr(t,"DataView"),In=pr(t,"Map"),kn=pr(t,"Promise"),Dn=pr(t,"Set"),xn=pr(t,"WeakMap"),Mn=pr(Ie,"create"),Pn=xn&&new xn,On={},Rn=qr(Tn),Nn=qr(In),Ln=qr(kn),$n=qr(Dn),Un=qr(xn),jn=Be?Be.prototype:o,Fn=jn?jn.valueOf:o,qn=jn?jn.toString:o;function Yn(e){if(os(e)&&!Wi(e)&&!(e instanceof Vn)){if(e instanceof Gn)return e;if(Le.call(e,"__wrapped__"))return Yr(e)}return new Gn(e)}var Hn=function(){function e(){}return function(t){if(!as(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Bn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Qn(e);this.size=t.size}function Xn(e,t){var n=Wi(e),a=!n&&Vi(e),o=!n&&!a&&Ji(e),r=!n&&!a&&!o&&fs(e),i=n||a||o||r,s=i?zt(e.length,De):[],l=s.length;for(var c in e)!t&&!Le.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ar(c,l))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Ka(0,t-1)]:o}function ea(e,t){return Ur(Po(e),ca(t,0,e.length))}function ta(e){return Ur(Po(e))}function na(e,t,n){(n!==o&&!Hi(e[t],n)||n===o&&!(t in e))&&sa(e,t,n)}function aa(e,t,n){var a=e[t];Le.call(e,t)&&Hi(a,n)&&(n!==o||t in e)||sa(e,t,n)}function oa(e,t){for(var n=e.length;n--;)if(Hi(e[n][0],t))return n;return-1}function ra(e,t,n,a){return pa(e,(function(e,o,r){t(a,e,n(e),r)})),a}function ia(e,t){return e&&Oo(t,Rs(t),e)}function sa(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function la(e,t){for(var n=-1,r=t.length,i=a(r),s=null==e;++n<r;)i[n]=s?o:Ds(e,t[n]);return i}function ca(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ua(e,t,n,a,r,i){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=r?n(e,a,r,i):n(e)),s!==o)return s;if(!as(e))return e;var d=Wi(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Po(e,s)}else{var f=_r(e),m=f==w||f==E;if(Ji(e))return To(e,l);if(f==I||f==b||m&&!r){if(s=c||m?{}:yr(e),!l)return c?function(e,t){return Oo(e,hr(e),t)}(e,function(e,t){return e&&Oo(t,Ns(t),e)}(s,e)):function(e,t){return Oo(e,gr(e),t)}(e,ia(s,e))}else{if(!st[f])return r?e:{};s=function(e,t,n){var a=e.constructor;switch(t){case R:return Io(e);case v:case A:return new a(+e);case N:return function(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case $:case U:case j:case F:case q:case Y:case H:case B:return ko(e,n);case C:return new a;case T:case M:return new a(e);case D:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new a;case P:return o=e,Fn?Ie(Fn.call(o)):{}}var o}(e,f,l)}}i||(i=new Jn);var p=i.get(e);if(p)return p;i.set(e,s),cs(e)?e.forEach((function(a){s.add(ua(a,t,n,a,e,i))})):rs(e)&&e.forEach((function(a,o){s.set(o,ua(a,t,n,o,e,i))}));var g=d?o:(u?c?sr:ir:c?Ns:Rs)(e);return It(g||e,(function(a,o){g&&(a=e[o=a]),aa(s,o,ua(a,t,n,o,e,i))})),s}function da(e,t,n){var a=n.length;if(null==e)return!a;for(e=Ie(e);a--;){var r=n[a],i=t[r],s=e[r];if(s===o&&!(r in e)||!i(s))return!1}return!0}function fa(e,t,n){if("function"!=typeof e)throw new xe(r);return Rr((function(){e.apply(o,n)}),t)}function ma(e,t,n,a){var o=-1,r=Mt,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Ot(t,Jt(n))),a?(r=Pt,i=!1):t.length>=200&&(r=Zt,i=!1,t=new Kn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=a||0!==u?u:0,i&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else r(t,d,a)||l.push(u)}return l}Yn.templateSettings={escape:X,evaluate:Z,interpolate:ee,variable:"",imports:{_:Yn}},Yn.prototype=Bn.prototype,Yn.prototype.constructor=Yn,Gn.prototype=Hn(Bn.prototype),Gn.prototype.constructor=Gn,Vn.prototype=Hn(Bn.prototype),Vn.prototype.constructor=Vn,Wn.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return n===i?o:n}return Le.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Mn?t[e]!==o:Le.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&t===o?i:t,this},Qn.prototype.clear=function(){this.__data__=[],this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=oa(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Qn.prototype.get=function(e){var t=this.__data__,n=oa(t,e);return n<0?o:t[n][1]},Qn.prototype.has=function(e){return oa(this.__data__,e)>-1},Qn.prototype.set=function(e,t){var n=this.__data__,a=oa(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(In||Qn),string:new Wn}},zn.prototype.delete=function(e){var t=fr(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return fr(this,e).get(e)},zn.prototype.has=function(e){return fr(this,e).has(e)},zn.prototype.set=function(e,t){var n=fr(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,i),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var a=n.__data__;if(!In||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(a)}return n.set(e,t),this.size=n.size,this};var pa=Lo(Sa),ga=Lo(wa,!0);function ha(e,t){var n=!0;return pa(e,(function(e,a,o){return n=!!t(e,a,o)})),n}function _a(e,t,n){for(var a=-1,r=e.length;++a<r;){var i=e[a],s=t(i);if(null!=s&&(l===o?s==s&&!ds(s):n(s,l)))var l=s,c=i}return c}function ba(e,t){var n=[];return pa(e,(function(e,a,o){t(e,a,o)&&n.push(e)})),n}function ya(e,t,n,a,o){var r=-1,i=e.length;for(n||(n=vr),o||(o=[]);++r<i;){var s=e[r];t>0&&n(s)?t>1?ya(s,t-1,n,a,o):Rt(o,s):a||(o[o.length]=s)}return o}var va=$o(),Aa=$o(!0);function Sa(e,t){return e&&va(e,t,Rs)}function wa(e,t){return e&&Aa(e,t,Rs)}function Ea(e,t){return xt(t,(function(t){return es(e[t])}))}function Ca(e,t){for(var n=0,a=(t=So(t,e)).length;null!=e&&n<a;)e=e[Fr(t[n++])];return n&&n==a?e:o}function Ta(e,t,n){var a=t(e);return Wi(e)?a:Rt(a,n(e))}function Ia(e){return null==e?e===o?"[object Undefined]":"[object Null]":nt&&nt in Ie(e)?function(e){var t=Le.call(e,nt),n=e[nt];try{e[nt]=o;var a=!0}catch(e){}var r=je.call(e);a&&(t?e[nt]=n:delete e[nt]);return r}(e):function(e){return je.call(e)}(e)}function ka(e,t){return e>t}function Da(e,t){return null!=e&&Le.call(e,t)}function xa(e,t){return null!=e&&t in Ie(e)}function Ma(e,t,n){for(var r=n?Pt:Mt,i=e[0].length,s=e.length,l=s,c=a(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Ot(f,Jt(t))),u=An(f.length,u),c[l]=!n&&(t||i>=120&&f.length>=120)?new Kn(l&&f):o}f=e[0];var m=-1,p=c[0];e:for(;++m<i&&d.length<u;){var g=f[m],h=t?t(g):g;if(g=n||0!==g?g:0,!(p?Zt(p,h):r(d,h,n))){for(l=s;--l;){var _=c[l];if(!(_?Zt(_,h):r(e[l],h,n)))continue e}p&&p.push(h),d.push(g)}}return d}function Pa(e,t,n){var a=null==(e=xr(e,t=So(t,e)))?e:e[Fr(Zr(t))];return null==a?o:Ct(a,e,n)}function Oa(e){return os(e)&&Ia(e)==b}function Ra(e,t,n,a,r){return e===t||(null==e||null==t||!os(e)&&!os(t)?e!=e&&t!=t:function(e,t,n,a,r,i){var s=Wi(e),l=Wi(t),c=s?y:_r(e),u=l?y:_r(t),d=(c=c==b?I:c)==I,f=(u=u==b?I:u)==I,m=c==u;if(m&&Ji(e)){if(!Ji(t))return!1;s=!0,d=!1}if(m&&!d)return i||(i=new Jn),s||fs(e)?or(e,t,n,a,r,i):function(e,t,n,a,o,r,i){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!r(new Ge(e),new Ge(t)));case v:case A:case T:return Hi(+e,+t);case S:return e.name==t.name&&e.message==t.message;case D:case M:return e==t+"";case C:var s=ln;case x:var l=1&a;if(s||(s=dn),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;a|=2,i.set(e,t);var u=or(s(e),s(t),a,o,r,i);return i.delete(e),u;case P:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,a,r,i);if(!(1&n)){var p=d&&Le.call(e,"__wrapped__"),g=f&&Le.call(t,"__wrapped__");if(p||g){var h=p?e.value():e,_=g?t.value():t;return i||(i=new Jn),r(h,_,n,a,i)}}if(!m)return!1;return i||(i=new Jn),function(e,t,n,a,r,i){var s=1&n,l=ir(e),c=l.length,u=ir(t).length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var f=l[d];if(!(s?f in t:Le.call(t,f)))return!1}var m=i.get(e),p=i.get(t);if(m&&p)return m==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);var h=s;for(;++d<c;){var _=e[f=l[d]],b=t[f];if(a)var y=s?a(b,_,f,t,e,i):a(_,b,f,e,t,i);if(!(y===o?_===b||r(_,b,n,a,i):y)){g=!1;break}h||(h="constructor"==f)}if(g&&!h){var v=e.constructor,A=t.constructor;v==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A||(g=!1)}return i.delete(e),i.delete(t),g}(e,t,n,a,r,i)}(e,t,n,a,Ra,r))}function Na(e,t,n,a){var r=n.length,i=r,s=!a;if(null==e)return!i;for(e=Ie(e);r--;){var l=n[r];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<i;){var c=(l=n[r])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var f=new Jn;if(a)var m=a(u,d,c,e,t,f);if(!(m===o?Ra(d,u,3,a,f):m))return!1}}return!0}function La(e){return!(!as(e)||(t=e,Ue&&Ue in t))&&(es(e)?Ye:be).test(qr(e));var t}function $a(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Wi(e)?Ha(e[0],e[1]):Ya(e):gl(e)}function Ua(e){if(!Tr(e))return yn(e);var t=[];for(var n in Ie(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ja(e){if(!as(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=Tr(e),n=[];for(var a in e)("constructor"!=a||!t&&Le.call(e,a))&&n.push(a);return n}function Fa(e,t){return e<t}function qa(e,t){var n=-1,o=zi(e)?a(e.length):[];return pa(e,(function(e,a,r){o[++n]=t(e,a,r)})),o}function Ya(e){var t=mr(e);return 1==t.length&&t[0][2]?kr(t[0][0],t[0][1]):function(n){return n===e||Na(n,e,t)}}function Ha(e,t){return wr(e)&&Ir(t)?kr(Fr(e),t):function(n){var a=Ds(n,e);return a===o&&a===t?xs(n,e):Ra(t,a,3)}}function Ba(e,t,n,a,r){e!==t&&va(t,(function(i,s){if(r||(r=new Jn),as(i))!function(e,t,n,a,r,i,s){var l=Pr(e,n),c=Pr(t,n),u=s.get(c);if(u)return void na(e,n,u);var d=i?i(l,c,n+"",e,t,s):o,f=d===o;if(f){var m=Wi(c),p=!m&&Ji(c),g=!m&&!p&&fs(c);d=c,m||p||g?Wi(l)?d=l:Ki(l)?d=Po(l):p?(f=!1,d=To(c,!0)):g?(f=!1,d=ko(c,!0)):d=[]:ss(c)||Vi(c)?(d=l,Vi(l)?d=vs(l):as(l)&&!es(l)||(d=yr(c))):f=!1}f&&(s.set(c,d),r(d,c,a,i,s),s.delete(c));na(e,n,d)}(e,t,s,n,Ba,a,r);else{var l=a?a(Pr(e,s),i,s+"",e,t,r):o;l===o&&(l=i),na(e,s,l)}}),Ns)}function Ga(e,t){var n=e.length;if(n)return Ar(t+=t<0?n:0,n)?e[t]:o}function Va(e,t,n){t=t.length?Ot(t,(function(e){return Wi(e)?function(t){return Ca(t,1===e.length?e[0]:e)}:e})):[il];var a=-1;return t=Ot(t,Jt(dr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(qa(e,(function(e,n,o){return{criteria:Ot(t,(function(t){return t(e)})),index:++a,value:e}})),(function(e,t){return function(e,t,n){var a=-1,o=e.criteria,r=t.criteria,i=o.length,s=n.length;for(;++a<i;){var l=Do(o[a],r[a]);if(l)return a>=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wa(e,t,n){for(var a=-1,o=t.length,r={};++a<o;){var i=t[a],s=Ca(e,i);n(s,i)&&to(r,So(i,e),s)}return r}function Qa(e,t,n,a){var o=a?Yt:qt,r=-1,i=t.length,s=e;for(e===t&&(t=Po(t)),n&&(s=Ot(e,Jt(n)));++r<i;)for(var l=0,c=t[r],u=n?n(c):c;(l=o(s,u,l,a))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function za(e,t){for(var n=e?t.length:0,a=n-1;n--;){var o=t[n];if(n==a||o!==r){var r=o;Ar(o)?Ke.call(e,o,1):po(e,o)}}return e}function Ka(e,t){return e+_t(En()*(t-e+1))}function Ja(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=_t(t/2))&&(e+=e)}while(t);return n}function Xa(e,t){return Nr(Dr(e,t,il),e+"")}function Za(e){return Zn(Hs(e))}function eo(e,t){var n=Hs(e);return Ur(n,ca(t,0,n.length))}function to(e,t,n,a){if(!as(e))return e;for(var r=-1,i=(t=So(t,e)).length,s=i-1,l=e;null!=l&&++r<i;){var c=Fr(t[r]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=s){var d=l[c];(u=a?a(d,c,l):o)===o&&(u=as(d)?d:Ar(t[r+1])?[]:{})}aa(l,c,u),l=l[c]}return e}var no=Pn?function(e,t){return Pn.set(e,t),e}:il,ao=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:al(t),writable:!0})}:il;function oo(e){return Ur(Hs(e))}function ro(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=a(r);++o<r;)i[o]=e[o+t];return i}function io(e,t){var n;return pa(e,(function(e,a,o){return!(n=t(e,a,o))})),!!n}function so(e,t,n){var a=0,o=null==e?a:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;a<o;){var r=a+o>>>1,i=e[r];null!==i&&!ds(i)&&(n?i<=t:i<t)?a=r+1:o=r}return o}return lo(e,t,il,n)}function lo(e,t,n,a){var r=0,i=null==e?0:e.length;if(0===i)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ds(t),u=t===o;r<i;){var d=_t((r+i)/2),f=n(e[d]),m=f!==o,p=null===f,g=f==f,h=ds(f);if(s)var _=a||g;else _=u?g&&(a||m):l?g&&m&&(a||!p):c?g&&m&&!p&&(a||!h):!p&&!h&&(a?f<=t:f<t);_?r=d+1:i=d}return An(i,4294967294)}function co(e,t){for(var n=-1,a=e.length,o=0,r=[];++n<a;){var i=e[n],s=t?t(i):i;if(!n||!Hi(s,l)){var l=s;r[o++]=0===i?0:i}}return r}function uo(e){return"number"==typeof e?e:ds(e)?g:+e}function fo(e){if("string"==typeof e)return e;if(Wi(e))return Ot(e,fo)+"";if(ds(e))return qn?qn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function mo(e,t,n){var a=-1,o=Mt,r=e.length,i=!0,s=[],l=s;if(n)i=!1,o=Pt;else if(r>=200){var c=t?null:Xo(e);if(c)return dn(c);i=!1,o=Zt,l=new Kn}else l=t?[]:s;e:for(;++a<r;){var u=e[a],d=t?t(u):u;if(u=n||0!==u?u:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function po(e,t){return null==(e=xr(e,t=So(t,e)))||delete e[Fr(Zr(t))]}function go(e,t,n,a){return to(e,t,n(Ca(e,t)),a)}function ho(e,t,n,a){for(var o=e.length,r=a?o:-1;(a?r--:++r<o)&&t(e[r],r,e););return n?ro(e,a?0:r,a?r+1:o):ro(e,a?r+1:0,a?o:r)}function _o(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function bo(e,t,n){var o=e.length;if(o<2)return o?mo(e[0]):[];for(var r=-1,i=a(o);++r<o;)for(var s=e[r],l=-1;++l<o;)l!=r&&(i[r]=ma(i[r]||s,e[l],t,n));return mo(ya(i,1),t,n)}function yo(e,t,n){for(var a=-1,r=e.length,i=t.length,s={};++a<r;){var l=a<i?t[a]:o;n(s,e[a],l)}return s}function vo(e){return Ki(e)?e:[]}function Ao(e){return"function"==typeof e?e:il}function So(e,t){return Wi(e)?e:wr(e,t)?[e]:jr(As(e))}var wo=Xa;function Eo(e,t,n){var a=e.length;return n=n===o?a:n,!t&&n>=a?e:ro(e,t,n)}var Co=dt||function(e){return mt.clearTimeout(e)};function To(e,t){if(t)return e.slice();var n=e.length,a=Ve?Ve(n):new e.constructor(n);return e.copy(a),a}function Io(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function ko(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var n=e!==o,a=null===e,r=e==e,i=ds(e),s=t!==o,l=null===t,c=t==t,u=ds(t);if(!l&&!u&&!i&&e>t||i&&s&&c&&!l&&!u||a&&s&&c||!n&&c||!r)return 1;if(!a&&!i&&!u&&e<t||u&&n&&r&&!a&&!i||l&&n&&r||!s&&r||!c)return-1}return 0}function xo(e,t,n,o){for(var r=-1,i=e.length,s=n.length,l=-1,c=t.length,u=vn(i-s,0),d=a(c+u),f=!o;++l<c;)d[l]=t[l];for(;++r<s;)(f||r<i)&&(d[n[r]]=e[r]);for(;u--;)d[l++]=e[r++];return d}function Mo(e,t,n,o){for(var r=-1,i=e.length,s=-1,l=n.length,c=-1,u=t.length,d=vn(i-l,0),f=a(d+u),m=!o;++r<d;)f[r]=e[r];for(var p=r;++c<u;)f[p+c]=t[c];for(;++s<l;)(m||r<i)&&(f[p+n[s]]=e[r++]);return f}function Po(e,t){var n=-1,o=e.length;for(t||(t=a(o));++n<o;)t[n]=e[n];return t}function Oo(e,t,n,a){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var l=t[i],c=a?a(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),r?sa(n,l,c):aa(n,l,c)}return n}function Ro(e,t){return function(n,a){var o=Wi(n)?Tt:ra,r=t?t():{};return o(n,e,dr(a,2),r)}}function No(e){return Xa((function(t,n){var a=-1,r=n.length,i=r>1?n[r-1]:o,s=r>2?n[2]:o;for(i=e.length>3&&"function"==typeof i?(r--,i):o,s&&Sr(n[0],n[1],s)&&(i=r<3?o:i,r=1),t=Ie(t);++a<r;){var l=n[a];l&&e(t,l,a,i)}return t}))}function Lo(e,t){return function(n,a){if(null==n)return n;if(!zi(n))return e(n,a);for(var o=n.length,r=t?o:-1,i=Ie(n);(t?r--:++r<o)&&!1!==a(i[r],r,i););return n}}function $o(e){return function(t,n,a){for(var o=-1,r=Ie(t),i=a(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(r[l],l,r))break}return t}}function Uo(e){return function(t){var n=sn(t=As(t))?pn(t):o,a=n?n[0]:t.charAt(0),r=n?Eo(n,1).join(""):t.slice(1);return a[e]()+r}}function jo(e){return function(t){return Nt(el(Vs(t).replace(Xe,"")),e,"")}}function Fo(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=Hn(e.prototype),a=e.apply(n,t);return as(a)?a:n}}function qo(e){return function(t,n,a){var r=Ie(t);if(!zi(t)){var i=dr(n,3);t=Rs(t),n=function(e){return i(r[e],e,r)}}var s=e(t,n,a);return s>-1?r[i?t[s]:s]:o}}function Yo(e){return rr((function(t){var n=t.length,a=n,i=Gn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new xe(r);if(i&&!l&&"wrapper"==cr(s))var l=new Gn([],!0)}for(a=l?a:n;++a<n;){var c=cr(s=t[a]),u="wrapper"==c?lr(s):o;l=u&&Er(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[cr(u[0])].apply(l,u[3]):1==s.length&&Er(s)?l[c]():l.thru(s)}return function(){var e=arguments,a=e[0];if(l&&1==e.length&&Wi(a))return l.plant(a).value();for(var o=0,r=n?t[o].apply(this,e):a;++o<n;)r=t[o].call(this,r);return r}}))}function Ho(e,t,n,r,i,s,l,c,u,f){var m=t&d,p=1&t,g=2&t,h=24&t,_=512&t,b=g?o:Fo(e);return function o(){for(var d=arguments.length,y=a(d),v=d;v--;)y[v]=arguments[v];if(h)var A=ur(o),S=nn(y,A);if(r&&(y=xo(y,r,i,h)),s&&(y=Mo(y,s,l,h)),d-=S,h&&d<f){var w=un(y,A);return Ko(e,t,Ho,o.placeholder,n,y,w,c,u,f-d)}var E=p?n:this,C=g?E[e]:e;return d=y.length,c?y=Mr(y,c):_&&d>1&&y.reverse(),m&&u<d&&(y.length=u),this&&this!==mt&&this instanceof o&&(C=b||Fo(C)),C.apply(E,y)}}function Bo(e,t){return function(n,a){return function(e,t,n,a){return Sa(e,(function(e,o,r){t(a,n(e),o,r)})),a}(n,e,t(a),{})}}function Go(e,t){return function(n,a){var r;if(n===o&&a===o)return t;if(n!==o&&(r=n),a!==o){if(r===o)return a;"string"==typeof n||"string"==typeof a?(n=fo(n),a=fo(a)):(n=uo(n),a=uo(a)),r=e(n,a)}return r}}function Vo(e){return rr((function(t){return t=Ot(t,Jt(dr())),Xa((function(n){var a=this;return e(t,(function(e){return Ct(e,a,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":fo(t)).length;if(n<2)return n?Ja(t,e):t;var a=Ja(t,gt(e/mn(t)));return sn(t)?Eo(pn(a),0,e).join(""):a.slice(0,e)}function Qo(e){return function(t,n,r){return r&&"number"!=typeof r&&Sr(t,n,r)&&(n=r=o),t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n,o){for(var r=-1,i=vn(gt((t-e)/(n||1)),0),s=a(i);i--;)s[o?i:++r]=e,e+=n;return s}(t,n,r=r===o?t<n?1:-1:hs(r),e)}}function zo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Ko(e,t,n,a,r,i,s,l,d,f){var m=8&t;t|=m?c:u,4&(t&=~(m?u:c))||(t&=-4);var p=[e,t,r,m?i:o,m?s:o,m?o:i,m?o:s,l,d,f],g=n.apply(o,p);return Er(e)&&Or(g,p),g.placeholder=a,Lr(g,e,t)}function Jo(e){var t=Te[e];return function(e,n){if(e=ys(e),(n=null==n?0:An(_s(n),292))&&Vt(e)){var a=(As(e)+"e").split("e");return+((a=(As(t(a[0]+"e"+(+a[1]+n)))+"e").split("e"))[0]+"e"+(+a[1]-n))}return t(e)}}var Xo=Dn&&1/dn(new Dn([,-0]))[1]==m?function(e){return new Dn(e)}:dl;function Zo(e){return function(t){var n=_r(t);return n==C?ln(t):n==x?fn(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function er(e,t,n,i,m,p,g,h){var _=2&t;if(!_&&"function"!=typeof e)throw new xe(r);var b=i?i.length:0;if(b||(t&=-97,i=m=o),g=g===o?g:vn(_s(g),0),h=h===o?h:_s(h),b-=m?m.length:0,t&u){var y=i,v=m;i=m=o}var A=_?o:lr(e),S=[e,t,n,i,m,y,v,p,g,h];if(A&&function(e,t){var n=e[1],a=t[1],o=n|a,r=o<131,i=a==d&&8==n||a==d&&n==f&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!r&&!i)return e;1&a&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?xo(c,l,t[4]):l,e[4]=c?un(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Mo(c,l,t[6]):l,e[6]=c?un(e[5],s):t[6]);(l=t[7])&&(e[7]=l);a&d&&(e[8]=null==e[8]?t[8]:An(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,A),e=S[0],t=S[1],n=S[2],i=S[3],m=S[4],!(h=S[9]=S[9]===o?_?0:e.length:vn(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==l?function(e,t,n){var r=Fo(e);return function i(){for(var s=arguments.length,l=a(s),c=s,u=ur(i);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:un(l,u);return(s-=d.length)<n?Ko(e,t,Ho,i.placeholder,o,l,d,o,o,n-s):Ct(this&&this!==mt&&this instanceof i?r:e,this,l)}}(e,t,h):t!=c&&33!=t||m.length?Ho.apply(o,S):function(e,t,n,o){var r=1&t,i=Fo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=a(u+l),f=this&&this!==mt&&this instanceof t?i:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return Ct(f,r?n:this,d)}}(e,t,n,i);else var w=function(e,t,n){var a=1&t,o=Fo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(a?n:this,arguments)}}(e,t,n);return Lr((A?no:Or)(w,S),e,t)}function tr(e,t,n,a){return e===o||Hi(e,Oe[n])&&!Le.call(a,n)?t:e}function nr(e,t,n,a,r,i){return as(e)&&as(t)&&(i.set(t,e),Ba(e,t,o,nr,i),i.delete(t)),e}function ar(e){return ss(e)?o:e}function or(e,t,n,a,r,i){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,p=2&n?new Kn:o;for(i.set(e,t),i.set(t,e);++f<l;){var g=e[f],h=t[f];if(a)var _=s?a(h,g,f,t,e,i):a(g,h,f,e,t,i);if(_!==o){if(_)continue;m=!1;break}if(p){if(!$t(t,(function(e,t){if(!Zt(p,t)&&(g===e||r(g,e,n,a,i)))return p.push(t)}))){m=!1;break}}else if(g!==h&&!r(g,h,n,a,i)){m=!1;break}}return i.delete(e),i.delete(t),m}function rr(e){return Nr(Dr(e,o,Qr),e+"")}function ir(e){return Ta(e,Rs,gr)}function sr(e){return Ta(e,Ns,hr)}var lr=Pn?function(e){return Pn.get(e)}:dl;function cr(e){for(var t=e.name+"",n=On[t],a=Le.call(On,t)?n.length:0;a--;){var o=n[a],r=o.func;if(null==r||r==e)return o.name}return t}function ur(e){return(Le.call(Yn,"placeholder")?Yn:e).placeholder}function dr(){var e=Yn.iteratee||sl;return e=e===sl?$a:e,arguments.length?e(arguments[0],arguments[1]):e}function fr(e,t){var n,a,o=e.__data__;return("string"==(a=typeof(n=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function mr(e){for(var t=Rs(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,Ir(o)]}return t}function pr(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return La(n)?n:o}var gr=bt?function(e){return null==e?[]:(e=Ie(e),xt(bt(e),(function(t){return ze.call(e,t)})))}:bl,hr=bt?function(e){for(var t=[];e;)Rt(t,gr(e)),e=We(e);return t}:bl,_r=Ia;function br(e,t,n){for(var a=-1,o=(t=So(t,e)).length,r=!1;++a<o;){var i=Fr(t[a]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||++a!=o?r:!!(o=null==e?0:e.length)&&ns(o)&&Ar(i,o)&&(Wi(e)||Vi(e))}function yr(e){return"function"!=typeof e.constructor||Tr(e)?{}:Hn(We(e))}function vr(e){return Wi(e)||Vi(e)||!!(Je&&e&&e[Je])}function Ar(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function Sr(e,t,n){if(!as(n))return!1;var a=typeof t;return!!("number"==a?zi(n)&&Ar(t,n.length):"string"==a&&t in n)&&Hi(n[t],e)}function wr(e,t){if(Wi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ds(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ie(t))}function Er(e){var t=cr(e),n=Yn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var a=lr(n);return!!a&&e===a[0]}(Tn&&_r(new Tn(new ArrayBuffer(1)))!=N||In&&_r(new In)!=C||kn&&_r(kn.resolve())!=k||Dn&&_r(new Dn)!=x||xn&&_r(new xn)!=O)&&(_r=function(e){var t=Ia(e),n=t==I?e.constructor:o,a=n?qr(n):"";if(a)switch(a){case Rn:return N;case Nn:return C;case Ln:return k;case $n:return x;case Un:return O}return t});var Cr=Re?es:yl;function Tr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Ir(e){return e==e&&!as(e)}function kr(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ie(n)))}}function Dr(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=vn(o.length-t,0),s=a(i);++r<i;)s[r]=o[t+r];r=-1;for(var l=a(t+1);++r<t;)l[r]=o[r];return l[t]=n(s),Ct(e,this,l)}}function xr(e,t){return t.length<2?e:Ca(e,ro(t,0,-1))}function Mr(e,t){for(var n=e.length,a=An(t.length,n),r=Po(e);a--;){var i=t[a];e[a]=Ar(i,n)?r[i]:o}return e}function Pr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Or=$r(no),Rr=pt||function(e,t){return mt.setTimeout(e,t)},Nr=$r(ao);function Lr(e,t,n){var a=t+"";return Nr(e,function(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return It(_,(function(n){var a="_."+n[0];t&n[1]&&!Mt(e,a)&&e.push(a)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(a),n)))}function $r(e){var t=0,n=0;return function(){var a=Sn(),r=16-(a-n);if(n=a,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ur(e,t){var n=-1,a=e.length,r=a-1;for(t=t===o?a:t;++n<t;){var i=Ka(n,r),s=e[i];e[i]=e[n],e[n]=s}return e.length=t,e}var jr=function(e){var t=$i(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ae,(function(e,n,a,o){t.push(a?o.replace(me,"$1"):n||e)})),t}));function Fr(e){if("string"==typeof e||ds(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function qr(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Yr(e){if(e instanceof Vn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hr=Xa((function(e,t){return Ki(e)?ma(e,ya(t,1,Ki,!0)):[]})),Br=Xa((function(e,t){var n=Zr(t);return Ki(n)&&(n=o),Ki(e)?ma(e,ya(t,1,Ki,!0),dr(n,2)):[]})),Gr=Xa((function(e,t){var n=Zr(t);return Ki(n)&&(n=o),Ki(e)?ma(e,ya(t,1,Ki,!0),o,n):[]}));function Vr(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var o=null==n?0:_s(n);return o<0&&(o=vn(a+o,0)),Ft(e,dr(t,3),o)}function Wr(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var r=a-1;return n!==o&&(r=_s(n),r=n<0?vn(a+r,0):An(r,a-1)),Ft(e,dr(t,3),r,!0)}function Qr(e){return(null==e?0:e.length)?ya(e,1):[]}function zr(e){return e&&e.length?e[0]:o}var Kr=Xa((function(e){var t=Ot(e,vo);return t.length&&t[0]===e[0]?Ma(t):[]})),Jr=Xa((function(e){var t=Zr(e),n=Ot(e,vo);return t===Zr(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ma(n,dr(t,2)):[]})),Xr=Xa((function(e){var t=Zr(e),n=Ot(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ma(n,o,t):[]}));function Zr(e){var t=null==e?0:e.length;return t?e[t-1]:o}var ei=Xa(ti);function ti(e,t){return e&&e.length&&t&&t.length?Qa(e,t):e}var ni=rr((function(e,t){var n=null==e?0:e.length,a=la(e,t);return za(e,Ot(t,(function(e){return Ar(e,n)?+e:e})).sort(Do)),a}));function ai(e){return null==e?e:Cn.call(e)}var oi=Xa((function(e){return mo(ya(e,1,Ki,!0))})),ri=Xa((function(e){var t=Zr(e);return Ki(t)&&(t=o),mo(ya(e,1,Ki,!0),dr(t,2))})),ii=Xa((function(e){var t=Zr(e);return t="function"==typeof t?t:o,mo(ya(e,1,Ki,!0),o,t)}));function si(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Ki(e))return t=vn(e.length,t),!0})),zt(t,(function(t){return Ot(e,Gt(t))}))}function li(e,t){if(!e||!e.length)return[];var n=si(e);return null==t?n:Ot(n,(function(e){return Ct(t,o,e)}))}var ci=Xa((function(e,t){return Ki(e)?ma(e,t):[]})),ui=Xa((function(e){return bo(xt(e,Ki))})),di=Xa((function(e){var t=Zr(e);return Ki(t)&&(t=o),bo(xt(e,Ki),dr(t,2))})),fi=Xa((function(e){var t=Zr(e);return t="function"==typeof t?t:o,bo(xt(e,Ki),o,t)})),mi=Xa(si);var pi=Xa((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,li(e,n)}));function gi(e){var t=Yn(e);return t.__chain__=!0,t}function hi(e,t){return t(e)}var _i=rr((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,r=function(t){return la(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Vn&&Ar(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:hi,args:[r],thisArg:o}),new Gn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(r)}));var bi=Ro((function(e,t,n){Le.call(e,n)?++e[n]:sa(e,n,1)}));var yi=qo(Vr),vi=qo(Wr);function Ai(e,t){return(Wi(e)?It:pa)(e,dr(t,3))}function Si(e,t){return(Wi(e)?kt:ga)(e,dr(t,3))}var wi=Ro((function(e,t,n){Le.call(e,n)?e[n].push(t):sa(e,n,[t])}));var Ei=Xa((function(e,t,n){var o=-1,r="function"==typeof t,i=zi(e)?a(e.length):[];return pa(e,(function(e){i[++o]=r?Ct(t,e,n):Pa(e,t,n)})),i})),Ci=Ro((function(e,t,n){sa(e,n,t)}));function Ti(e,t){return(Wi(e)?Ot:qa)(e,dr(t,3))}var Ii=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ki=Xa((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Sr(e,t[0],t[1])?t=[]:n>2&&Sr(t[0],t[1],t[2])&&(t=[t[0]]),Va(e,ya(t,1),[])})),Di=ft||function(){return mt.Date.now()};function xi(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,er(e,d,o,o,o,o,t)}function Mi(e,t){var n;if("function"!=typeof t)throw new xe(r);return e=_s(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Pi=Xa((function(e,t,n){var a=1;if(n.length){var o=un(n,ur(Pi));a|=c}return er(e,a,t,n,o)})),Oi=Xa((function(e,t,n){var a=3;if(n.length){var o=un(n,ur(Oi));a|=c}return er(t,a,e,n,o)}));function Ri(e,t,n){var a,i,s,l,c,u,d=0,f=!1,m=!1,p=!0;if("function"!=typeof e)throw new xe(r);function g(t){var n=a,r=i;return a=i=o,d=t,l=e.apply(r,n)}function h(e){return d=e,c=Rr(b,t),f?g(e):l}function _(e){var n=e-u;return u===o||n>=t||n<0||m&&e-d>=s}function b(){var e=Di();if(_(e))return y(e);c=Rr(b,function(e){var n=t-(e-u);return m?An(n,s-(e-d)):n}(e))}function y(e){return c=o,p&&a?g(e):(a=i=o,l)}function v(){var e=Di(),n=_(e);if(a=arguments,i=this,u=e,n){if(c===o)return h(u);if(m)return Co(c),c=Rr(b,t),g(u)}return c===o&&(c=Rr(b,t)),l}return t=ys(t)||0,as(n)&&(f=!!n.leading,s=(m="maxWait"in n)?vn(ys(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),v.cancel=function(){c!==o&&Co(c),d=0,a=u=i=c=o},v.flush=function(){return c===o?l:y(Di())},v}var Ni=Xa((function(e,t){return fa(e,1,t)})),Li=Xa((function(e,t,n){return fa(e,ys(t)||0,n)}));function $i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(r);var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],r=n.cache;if(r.has(o))return r.get(o);var i=e.apply(this,a);return n.cache=r.set(o,i)||r,i};return n.cache=new($i.Cache||zn),n}function Ui(e){if("function"!=typeof e)throw new xe(r);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)}}$i.Cache=zn;var ji=wo((function(e,t){var n=(t=1==t.length&&Wi(t[0])?Ot(t[0],Jt(dr())):Ot(ya(t,1),Jt(dr()))).length;return Xa((function(a){for(var o=-1,r=An(a.length,n);++o<r;)a[o]=t[o].call(this,a[o]);return Ct(e,this,a)}))})),Fi=Xa((function(e,t){var n=un(t,ur(Fi));return er(e,c,o,t,n)})),qi=Xa((function(e,t){var n=un(t,ur(qi));return er(e,u,o,t,n)})),Yi=rr((function(e,t){return er(e,f,o,o,o,t)}));function Hi(e,t){return e===t||e!=e&&t!=t}var Bi=zo(ka),Gi=zo((function(e,t){return e>=t})),Vi=Oa(function(){return arguments}())?Oa:function(e){return os(e)&&Le.call(e,"callee")&&!ze.call(e,"callee")},Wi=a.isArray,Qi=yt?Jt(yt):function(e){return os(e)&&Ia(e)==R};function zi(e){return null!=e&&ns(e.length)&&!es(e)}function Ki(e){return os(e)&&zi(e)}var Ji=Ut||yl,Xi=vt?Jt(vt):function(e){return os(e)&&Ia(e)==A};function Zi(e){if(!os(e))return!1;var t=Ia(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!as(e))return!1;var t=Ia(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==_s(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function as(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function os(e){return null!=e&&"object"==typeof e}var rs=At?Jt(At):function(e){return os(e)&&_r(e)==C};function is(e){return"number"==typeof e||os(e)&&Ia(e)==T}function ss(e){if(!os(e)||Ia(e)!=I)return!1;var t=We(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Fe}var ls=St?Jt(St):function(e){return os(e)&&Ia(e)==D};var cs=wt?Jt(wt):function(e){return os(e)&&_r(e)==x};function us(e){return"string"==typeof e||!Wi(e)&&os(e)&&Ia(e)==M}function ds(e){return"symbol"==typeof e||os(e)&&Ia(e)==P}var fs=Et?Jt(Et):function(e){return os(e)&&ns(e.length)&&!!it[Ia(e)]};var ms=zo(Fa),ps=zo((function(e,t){return e<=t}));function gs(e){if(!e)return[];if(zi(e))return us(e)?pn(e):Po(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=_r(e);return(t==C?ln:t==x?dn:Hs)(e)}function hs(e){return e?(e=ys(e))===m||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function _s(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function bs(e){return e?ca(_s(e),0,h):0}function ys(e){if("number"==typeof e)return e;if(ds(e))return g;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=Kt(e);var n=_e.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):he.test(e)?g:+e}function vs(e){return Oo(e,Ns(e))}function As(e){return null==e?"":fo(e)}var Ss=No((function(e,t){if(Tr(t)||zi(t))Oo(t,Rs(t),e);else for(var n in t)Le.call(t,n)&&aa(e,n,t[n])})),ws=No((function(e,t){Oo(t,Ns(t),e)})),Es=No((function(e,t,n,a){Oo(t,Ns(t),e,a)})),Cs=No((function(e,t,n,a){Oo(t,Rs(t),e,a)})),Ts=rr(la);var Is=Xa((function(e,t){e=Ie(e);var n=-1,a=t.length,r=a>2?t[2]:o;for(r&&Sr(t[0],t[1],r)&&(a=1);++n<a;)for(var i=t[n],s=Ns(i),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Hi(d,Oe[u])&&!Le.call(e,u))&&(e[u]=i[u])}return e})),ks=Xa((function(e){return e.push(o,nr),Ct($s,o,e)}));function Ds(e,t,n){var a=null==e?o:Ca(e,t);return a===o?n:a}function xs(e,t){return null!=e&&br(e,t,xa)}var Ms=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),al(il)),Ps=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),dr),Os=Xa(Pa);function Rs(e){return zi(e)?Xn(e):Ua(e)}function Ns(e){return zi(e)?Xn(e,!0):ja(e)}var Ls=No((function(e,t,n){Ba(e,t,n)})),$s=No((function(e,t,n,a){Ba(e,t,n,a)})),Us=rr((function(e,t){var n={};if(null==e)return n;var a=!1;t=Ot(t,(function(t){return t=So(t,e),a||(a=t.length>1),t})),Oo(e,sr(e),n),a&&(n=ua(n,7,ar));for(var o=t.length;o--;)po(n,t[o]);return n}));var js=rr((function(e,t){return null==e?{}:function(e,t){return Wa(e,t,(function(t,n){return xs(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Ot(sr(e),(function(e){return[e]}));return t=dr(t),Wa(e,n,(function(e,n){return t(e,n[0])}))}var qs=Zo(Rs),Ys=Zo(Ns);function Hs(e){return null==e?[]:Xt(e,Rs(e))}var Bs=jo((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Zs(As(e).toLowerCase())}function Vs(e){return(e=As(e))&&e.replace(Ae,an).replace(Ze,"")}var Ws=jo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=jo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),zs=Uo("toLowerCase");var Ks=jo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Js=jo((function(e,t,n){return e+(n?" ":"")+Zs(t)}));var Xs=jo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Uo("toUpperCase");function el(e,t,n){return e=As(e),(t=n?o:t)===o?function(e){return at.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var tl=Xa((function(e,t){try{return Ct(e,o,t)}catch(e){return Zi(e)?e:new Ee(e)}})),nl=rr((function(e,t){return It(t,(function(t){t=Fr(t),sa(e,t,Pi(e[t],e))})),e}));function al(e){return function(){return e}}var ol=Yo(),rl=Yo(!0);function il(e){return e}function sl(e){return $a("function"==typeof e?e:ua(e,1))}var ll=Xa((function(e,t){return function(n){return Pa(n,e,t)}})),cl=Xa((function(e,t){return function(n){return Pa(e,n,t)}}));function ul(e,t,n){var a=Rs(t),o=Ea(t,a);null!=n||as(t)&&(o.length||!a.length)||(n=t,t=e,e=this,o=Ea(t,Rs(t)));var r=!(as(n)&&"chain"in n&&!n.chain),i=es(e);return It(o,(function(n){var a=t[n];e[n]=a,i&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__),o=n.__actions__=Po(this.__actions__);return o.push({func:a,args:arguments,thisArg:e}),n.__chain__=t,n}return a.apply(e,Rt([this.value()],arguments))})})),e}function dl(){}var fl=Vo(Ot),ml=Vo(Dt),pl=Vo($t);function gl(e){return wr(e)?Gt(Fr(e)):function(e){return function(t){return Ca(t,e)}}(e)}var hl=Qo(),_l=Qo(!0);function bl(){return[]}function yl(){return!1}var vl=Go((function(e,t){return e+t}),0),Al=Jo("ceil"),Sl=Go((function(e,t){return e/t}),1),wl=Jo("floor");var El,Cl=Go((function(e,t){return e*t}),1),Tl=Jo("round"),Il=Go((function(e,t){return e-t}),0);return Yn.after=function(e,t){if("function"!=typeof t)throw new xe(r);return e=_s(e),function(){if(--e<1)return t.apply(this,arguments)}},Yn.ary=xi,Yn.assign=Ss,Yn.assignIn=ws,Yn.assignInWith=Es,Yn.assignWith=Cs,Yn.at=Ts,Yn.before=Mi,Yn.bind=Pi,Yn.bindAll=nl,Yn.bindKey=Oi,Yn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wi(e)?e:[e]},Yn.chain=gi,Yn.chunk=function(e,t,n){t=(n?Sr(e,t,n):t===o)?1:vn(_s(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,l=a(gt(r/t));i<r;)l[s++]=ro(e,i,i+=t);return l},Yn.compact=function(e){for(var t=-1,n=null==e?0:e.length,a=0,o=[];++t<n;){var r=e[t];r&&(o[a++]=r)}return o},Yn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=a(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(Wi(n)?Po(n):[n],ya(t,1))},Yn.cond=function(e){var t=null==e?0:e.length,n=dr();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new xe(r);return[n(e[0]),e[1]]})):[],Xa((function(n){for(var a=-1;++a<t;){var o=e[a];if(Ct(o[0],this,n))return Ct(o[1],this,n)}}))},Yn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return da(n,e,t)}}(ua(e,1))},Yn.constant=al,Yn.countBy=bi,Yn.create=function(e,t){var n=Hn(e);return null==t?n:ia(n,t)},Yn.curry=function e(t,n,a){var r=er(t,8,o,o,o,o,o,n=a?o:n);return r.placeholder=e.placeholder,r},Yn.curryRight=function e(t,n,a){var r=er(t,l,o,o,o,o,o,n=a?o:n);return r.placeholder=e.placeholder,r},Yn.debounce=Ri,Yn.defaults=Is,Yn.defaultsDeep=ks,Yn.defer=Ni,Yn.delay=Li,Yn.difference=Hr,Yn.differenceBy=Br,Yn.differenceWith=Gr,Yn.drop=function(e,t,n){var a=null==e?0:e.length;return a?ro(e,(t=n||t===o?1:_s(t))<0?0:t,a):[]},Yn.dropRight=function(e,t,n){var a=null==e?0:e.length;return a?ro(e,0,(t=a-(t=n||t===o?1:_s(t)))<0?0:t):[]},Yn.dropRightWhile=function(e,t){return e&&e.length?ho(e,dr(t,3),!0,!0):[]},Yn.dropWhile=function(e,t){return e&&e.length?ho(e,dr(t,3),!0):[]},Yn.fill=function(e,t,n,a){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Sr(e,t,n)&&(n=0,a=r),function(e,t,n,a){var r=e.length;for((n=_s(n))<0&&(n=-n>r?0:r+n),(a=a===o||a>r?r:_s(a))<0&&(a+=r),a=n>a?0:bs(a);n<a;)e[n++]=t;return e}(e,t,n,a)):[]},Yn.filter=function(e,t){return(Wi(e)?xt:ba)(e,dr(t,3))},Yn.flatMap=function(e,t){return ya(Ti(e,t),1)},Yn.flatMapDeep=function(e,t){return ya(Ti(e,t),m)},Yn.flatMapDepth=function(e,t,n){return n=n===o?1:_s(n),ya(Ti(e,t),n)},Yn.flatten=Qr,Yn.flattenDeep=function(e){return(null==e?0:e.length)?ya(e,m):[]},Yn.flattenDepth=function(e,t){return(null==e?0:e.length)?ya(e,t=t===o?1:_s(t)):[]},Yn.flip=function(e){return er(e,512)},Yn.flow=ol,Yn.flowRight=rl,Yn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,a={};++t<n;){var o=e[t];a[o[0]]=o[1]}return a},Yn.functions=function(e){return null==e?[]:Ea(e,Rs(e))},Yn.functionsIn=function(e){return null==e?[]:Ea(e,Ns(e))},Yn.groupBy=wi,Yn.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},Yn.intersection=Kr,Yn.intersectionBy=Jr,Yn.intersectionWith=Xr,Yn.invert=Ms,Yn.invertBy=Ps,Yn.invokeMap=Ei,Yn.iteratee=sl,Yn.keyBy=Ci,Yn.keys=Rs,Yn.keysIn=Ns,Yn.map=Ti,Yn.mapKeys=function(e,t){var n={};return t=dr(t,3),Sa(e,(function(e,a,o){sa(n,t(e,a,o),e)})),n},Yn.mapValues=function(e,t){var n={};return t=dr(t,3),Sa(e,(function(e,a,o){sa(n,a,t(e,a,o))})),n},Yn.matches=function(e){return Ya(ua(e,1))},Yn.matchesProperty=function(e,t){return Ha(e,ua(t,1))},Yn.memoize=$i,Yn.merge=Ls,Yn.mergeWith=$s,Yn.method=ll,Yn.methodOf=cl,Yn.mixin=ul,Yn.negate=Ui,Yn.nthArg=function(e){return e=_s(e),Xa((function(t){return Ga(t,e)}))},Yn.omit=Us,Yn.omitBy=function(e,t){return Fs(e,Ui(dr(t)))},Yn.once=function(e){return Mi(2,e)},Yn.orderBy=function(e,t,n,a){return null==e?[]:(Wi(t)||(t=null==t?[]:[t]),Wi(n=a?o:n)||(n=null==n?[]:[n]),Va(e,t,n))},Yn.over=fl,Yn.overArgs=ji,Yn.overEvery=ml,Yn.overSome=pl,Yn.partial=Fi,Yn.partialRight=qi,Yn.partition=Ii,Yn.pick=js,Yn.pickBy=Fs,Yn.property=gl,Yn.propertyOf=function(e){return function(t){return null==e?o:Ca(e,t)}},Yn.pull=ei,Yn.pullAll=ti,Yn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Qa(e,t,dr(n,2)):e},Yn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Qa(e,t,o,n):e},Yn.pullAt=ni,Yn.range=hl,Yn.rangeRight=_l,Yn.rearg=Yi,Yn.reject=function(e,t){return(Wi(e)?xt:ba)(e,Ui(dr(t,3)))},Yn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var a=-1,o=[],r=e.length;for(t=dr(t,3);++a<r;){var i=e[a];t(i,a,e)&&(n.push(i),o.push(a))}return za(e,o),n},Yn.rest=function(e,t){if("function"!=typeof e)throw new xe(r);return Xa(e,t=t===o?t:_s(t))},Yn.reverse=ai,Yn.sampleSize=function(e,t,n){return t=(n?Sr(e,t,n):t===o)?1:_s(t),(Wi(e)?ea:eo)(e,t)},Yn.set=function(e,t,n){return null==e?e:to(e,t,n)},Yn.setWith=function(e,t,n,a){return a="function"==typeof a?a:o,null==e?e:to(e,t,n,a)},Yn.shuffle=function(e){return(Wi(e)?ta:oo)(e)},Yn.slice=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Sr(e,t,n)?(t=0,n=a):(t=null==t?0:_s(t),n=n===o?a:_s(n)),ro(e,t,n)):[]},Yn.sortBy=ki,Yn.sortedUniq=function(e){return e&&e.length?co(e):[]},Yn.sortedUniqBy=function(e,t){return e&&e.length?co(e,dr(t,2)):[]},Yn.split=function(e,t,n){return n&&"number"!=typeof n&&Sr(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=As(e))&&("string"==typeof t||null!=t&&!ls(t))&&!(t=fo(t))&&sn(e)?Eo(pn(e),0,n):e.split(t,n):[]},Yn.spread=function(e,t){if("function"!=typeof e)throw new xe(r);return t=null==t?0:vn(_s(t),0),Xa((function(n){var a=n[t],o=Eo(n,0,t);return a&&Rt(o,a),Ct(e,this,o)}))},Yn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Yn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===o?1:_s(t))<0?0:t):[]},Yn.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?ro(e,(t=a-(t=n||t===o?1:_s(t)))<0?0:t,a):[]},Yn.takeRightWhile=function(e,t){return e&&e.length?ho(e,dr(t,3),!1,!0):[]},Yn.takeWhile=function(e,t){return e&&e.length?ho(e,dr(t,3)):[]},Yn.tap=function(e,t){return t(e),e},Yn.throttle=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw new xe(r);return as(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),Ri(e,t,{leading:a,maxWait:t,trailing:o})},Yn.thru=hi,Yn.toArray=gs,Yn.toPairs=qs,Yn.toPairsIn=Ys,Yn.toPath=function(e){return Wi(e)?Ot(e,Fr):ds(e)?[e]:Po(jr(As(e)))},Yn.toPlainObject=vs,Yn.transform=function(e,t,n){var a=Wi(e),o=a||Ji(e)||fs(e);if(t=dr(t,4),null==n){var r=e&&e.constructor;n=o?a?new r:[]:as(e)&&es(r)?Hn(We(e)):{}}return(o?It:Sa)(e,(function(e,a,o){return t(n,e,a,o)})),n},Yn.unary=function(e){return xi(e,1)},Yn.union=oi,Yn.unionBy=ri,Yn.unionWith=ii,Yn.uniq=function(e){return e&&e.length?mo(e):[]},Yn.uniqBy=function(e,t){return e&&e.length?mo(e,dr(t,2)):[]},Yn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?mo(e,o,t):[]},Yn.unset=function(e,t){return null==e||po(e,t)},Yn.unzip=si,Yn.unzipWith=li,Yn.update=function(e,t,n){return null==e?e:go(e,t,Ao(n))},Yn.updateWith=function(e,t,n,a){return a="function"==typeof a?a:o,null==e?e:go(e,t,Ao(n),a)},Yn.values=Hs,Yn.valuesIn=function(e){return null==e?[]:Xt(e,Ns(e))},Yn.without=ci,Yn.words=el,Yn.wrap=function(e,t){return Fi(Ao(t),e)},Yn.xor=ui,Yn.xorBy=di,Yn.xorWith=fi,Yn.zip=mi,Yn.zipObject=function(e,t){return yo(e||[],t||[],aa)},Yn.zipObjectDeep=function(e,t){return yo(e||[],t||[],to)},Yn.zipWith=pi,Yn.entries=qs,Yn.entriesIn=Ys,Yn.extend=ws,Yn.extendWith=Es,ul(Yn,Yn),Yn.add=vl,Yn.attempt=tl,Yn.camelCase=Bs,Yn.capitalize=Gs,Yn.ceil=Al,Yn.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),ca(ys(e),t,n)},Yn.clone=function(e){return ua(e,4)},Yn.cloneDeep=function(e){return ua(e,5)},Yn.cloneDeepWith=function(e,t){return ua(e,5,t="function"==typeof t?t:o)},Yn.cloneWith=function(e,t){return ua(e,4,t="function"==typeof t?t:o)},Yn.conformsTo=function(e,t){return null==t||da(e,t,Rs(t))},Yn.deburr=Vs,Yn.defaultTo=function(e,t){return null==e||e!=e?t:e},Yn.divide=Sl,Yn.endsWith=function(e,t,n){e=As(e),t=fo(t);var a=e.length,r=n=n===o?a:ca(_s(n),0,a);return(n-=t.length)>=0&&e.slice(n,r)==t},Yn.eq=Hi,Yn.escape=function(e){return(e=As(e))&&J.test(e)?e.replace(z,on):e},Yn.escapeRegExp=function(e){return(e=As(e))&&re.test(e)?e.replace(oe,"\\$&"):e},Yn.every=function(e,t,n){var a=Wi(e)?Dt:ha;return n&&Sr(e,t,n)&&(t=o),a(e,dr(t,3))},Yn.find=yi,Yn.findIndex=Vr,Yn.findKey=function(e,t){return jt(e,dr(t,3),Sa)},Yn.findLast=vi,Yn.findLastIndex=Wr,Yn.findLastKey=function(e,t){return jt(e,dr(t,3),wa)},Yn.floor=wl,Yn.forEach=Ai,Yn.forEachRight=Si,Yn.forIn=function(e,t){return null==e?e:va(e,dr(t,3),Ns)},Yn.forInRight=function(e,t){return null==e?e:Aa(e,dr(t,3),Ns)},Yn.forOwn=function(e,t){return e&&Sa(e,dr(t,3))},Yn.forOwnRight=function(e,t){return e&&wa(e,dr(t,3))},Yn.get=Ds,Yn.gt=Bi,Yn.gte=Gi,Yn.has=function(e,t){return null!=e&&br(e,t,Da)},Yn.hasIn=xs,Yn.head=zr,Yn.identity=il,Yn.includes=function(e,t,n,a){e=zi(e)?e:Hs(e),n=n&&!a?_s(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qt(e,t,n)>-1},Yn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var o=null==n?0:_s(n);return o<0&&(o=vn(a+o,0)),qt(e,t,o)},Yn.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=An(t,n)&&e<vn(t,n)}(e=ys(e),t,n)},Yn.invoke=Os,Yn.isArguments=Vi,Yn.isArray=Wi,Yn.isArrayBuffer=Qi,Yn.isArrayLike=zi,Yn.isArrayLikeObject=Ki,Yn.isBoolean=function(e){return!0===e||!1===e||os(e)&&Ia(e)==v},Yn.isBuffer=Ji,Yn.isDate=Xi,Yn.isElement=function(e){return os(e)&&1===e.nodeType&&!ss(e)},Yn.isEmpty=function(e){if(null==e)return!0;if(zi(e)&&(Wi(e)||"string"==typeof e||"function"==typeof e.splice||Ji(e)||fs(e)||Vi(e)))return!e.length;var t=_r(e);if(t==C||t==x)return!e.size;if(Tr(e))return!Ua(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Yn.isEqual=function(e,t){return Ra(e,t)},Yn.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:o)?n(e,t):o;return a===o?Ra(e,t,o,n):!!a},Yn.isError=Zi,Yn.isFinite=function(e){return"number"==typeof e&&Vt(e)},Yn.isFunction=es,Yn.isInteger=ts,Yn.isLength=ns,Yn.isMap=rs,Yn.isMatch=function(e,t){return e===t||Na(e,t,mr(t))},Yn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Na(e,t,mr(t),n)},Yn.isNaN=function(e){return is(e)&&e!=+e},Yn.isNative=function(e){if(Cr(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return La(e)},Yn.isNil=function(e){return null==e},Yn.isNull=function(e){return null===e},Yn.isNumber=is,Yn.isObject=as,Yn.isObjectLike=os,Yn.isPlainObject=ss,Yn.isRegExp=ls,Yn.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=p},Yn.isSet=cs,Yn.isString=us,Yn.isSymbol=ds,Yn.isTypedArray=fs,Yn.isUndefined=function(e){return e===o},Yn.isWeakMap=function(e){return os(e)&&_r(e)==O},Yn.isWeakSet=function(e){return os(e)&&"[object WeakSet]"==Ia(e)},Yn.join=function(e,t){return null==e?"":bn.call(e,t)},Yn.kebabCase=Ws,Yn.last=Zr,Yn.lastIndexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var r=a;return n!==o&&(r=(r=_s(n))<0?vn(a+r,0):An(r,a-1)),t==t?function(e,t,n){for(var a=n+1;a--;)if(e[a]===t)return a;return a}(e,t,r):Ft(e,Ht,r,!0)},Yn.lowerCase=Qs,Yn.lowerFirst=zs,Yn.lt=ms,Yn.lte=ps,Yn.max=function(e){return e&&e.length?_a(e,il,ka):o},Yn.maxBy=function(e,t){return e&&e.length?_a(e,dr(t,2),ka):o},Yn.mean=function(e){return Bt(e,il)},Yn.meanBy=function(e,t){return Bt(e,dr(t,2))},Yn.min=function(e){return e&&e.length?_a(e,il,Fa):o},Yn.minBy=function(e,t){return e&&e.length?_a(e,dr(t,2),Fa):o},Yn.stubArray=bl,Yn.stubFalse=yl,Yn.stubObject=function(){return{}},Yn.stubString=function(){return""},Yn.stubTrue=function(){return!0},Yn.multiply=Cl,Yn.nth=function(e,t){return e&&e.length?Ga(e,_s(t)):o},Yn.noConflict=function(){return mt._===this&&(mt._=qe),this},Yn.noop=dl,Yn.now=Di,Yn.pad=function(e,t,n){e=As(e);var a=(t=_s(t))?mn(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return Wo(_t(o),n)+e+Wo(gt(o),n)},Yn.padEnd=function(e,t,n){e=As(e);var a=(t=_s(t))?mn(e):0;return t&&a<t?e+Wo(t-a,n):e},Yn.padStart=function(e,t,n){e=As(e);var a=(t=_s(t))?mn(e):0;return t&&a<t?Wo(t-a,n)+e:e},Yn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(As(e).replace(ie,""),t||0)},Yn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Sr(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 a=e;e=t,t=a}if(n||e%1||t%1){var r=En();return An(e+r*(t-e+ct("1e-"+((r+"").length-1))),t)}return Ka(e,t)},Yn.reduce=function(e,t,n){var a=Wi(e)?Nt:Wt,o=arguments.length<3;return a(e,dr(t,4),n,o,pa)},Yn.reduceRight=function(e,t,n){var a=Wi(e)?Lt:Wt,o=arguments.length<3;return a(e,dr(t,4),n,o,ga)},Yn.repeat=function(e,t,n){return t=(n?Sr(e,t,n):t===o)?1:_s(t),Ja(As(e),t)},Yn.replace=function(){var e=arguments,t=As(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Yn.result=function(e,t,n){var a=-1,r=(t=So(t,e)).length;for(r||(r=1,e=o);++a<r;){var i=null==e?o:e[Fr(t[a])];i===o&&(a=r,i=n),e=es(i)?i.call(e):i}return e},Yn.round=Tl,Yn.runInContext=e,Yn.sample=function(e){return(Wi(e)?Zn:Za)(e)},Yn.size=function(e){if(null==e)return 0;if(zi(e))return us(e)?mn(e):e.length;var t=_r(e);return t==C||t==x?e.size:Ua(e).length},Yn.snakeCase=Ks,Yn.some=function(e,t,n){var a=Wi(e)?$t:io;return n&&Sr(e,t,n)&&(t=o),a(e,dr(t,3))},Yn.sortedIndex=function(e,t){return so(e,t)},Yn.sortedIndexBy=function(e,t,n){return lo(e,t,dr(n,2))},Yn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var a=so(e,t);if(a<n&&Hi(e[a],t))return a}return-1},Yn.sortedLastIndex=function(e,t){return so(e,t,!0)},Yn.sortedLastIndexBy=function(e,t,n){return lo(e,t,dr(n,2),!0)},Yn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if(Hi(e[n],t))return n}return-1},Yn.startCase=Js,Yn.startsWith=function(e,t,n){return e=As(e),n=null==n?0:ca(_s(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},Yn.subtract=Il,Yn.sum=function(e){return e&&e.length?Qt(e,il):0},Yn.sumBy=function(e,t){return e&&e.length?Qt(e,dr(t,2)):0},Yn.template=function(e,t,n){var a=Yn.templateSettings;n&&Sr(e,t,n)&&(t=o),e=As(e),t=Es({},t,a,tr);var r,i,s=Es({},t.imports,a.imports,tr),l=Rs(s),c=Xt(s,l),u=0,d=t.interpolate||Se,f="__p += '",m=ke((t.escape||Se).source+"|"+d.source+"|"+(d===ee?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),p="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(m,(function(t,n,a,o,s,l){return a||(a=o),f+=e.slice(u,l).replace(we,rn),n&&(r=!0,f+="' +\n__e("+n+") +\n'"),s&&(i=!0,f+="';\n"+s+";\n__p += '"),a&&(f+="' +\n((__t = ("+a+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var g=Le.call(t,"variable")&&t.variable;if(g){if(fe.test(g))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(G,""):f).replace(V,"$1").replace(W,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var h=tl((function(){return Ce(l,p+"return "+f).apply(o,c)}));if(h.source=f,Zi(h))throw h;return h},Yn.times=function(e,t){if((e=_s(e))<1||e>p)return[];var n=h,a=An(e,h);t=dr(t),e-=h;for(var o=zt(a,t);++n<e;)t(n);return o},Yn.toFinite=hs,Yn.toInteger=_s,Yn.toLength=bs,Yn.toLower=function(e){return As(e).toLowerCase()},Yn.toNumber=ys,Yn.toSafeInteger=function(e){return e?ca(_s(e),-9007199254740991,p):0===e?e:0},Yn.toString=As,Yn.toUpper=function(e){return As(e).toUpperCase()},Yn.trim=function(e,t,n){if((e=As(e))&&(n||t===o))return Kt(e);if(!e||!(t=fo(t)))return e;var a=pn(e),r=pn(t);return Eo(a,en(a,r),tn(a,r)+1).join("")},Yn.trimEnd=function(e,t,n){if((e=As(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=fo(t)))return e;var a=pn(e);return Eo(a,0,tn(a,pn(t))+1).join("")},Yn.trimStart=function(e,t,n){if((e=As(e))&&(n||t===o))return e.replace(ie,"");if(!e||!(t=fo(t)))return e;var a=pn(e);return Eo(a,en(a,pn(t))).join("")},Yn.truncate=function(e,t){var n=30,a="...";if(as(t)){var r="separator"in t?t.separator:r;n="length"in t?_s(t.length):n,a="omission"in t?fo(t.omission):a}var i=(e=As(e)).length;if(sn(e)){var s=pn(e);i=s.length}if(n>=i)return e;var l=n-mn(a);if(l<1)return a;var c=s?Eo(s,0,l).join(""):e.slice(0,l);if(r===o)return c+a;if(s&&(l+=c.length-l),ls(r)){if(e.slice(l).search(r)){var u,d=c;for(r.global||(r=ke(r.source,As(ge.exec(r))+"g")),r.lastIndex=0;u=r.exec(d);)var f=u.index;c=c.slice(0,f===o?l:f)}}else if(e.indexOf(fo(r),l)!=l){var m=c.lastIndexOf(r);m>-1&&(c=c.slice(0,m))}return c+a},Yn.unescape=function(e){return(e=As(e))&&K.test(e)?e.replace(Q,hn):e},Yn.uniqueId=function(e){var t=++$e;return As(e)+t},Yn.upperCase=Xs,Yn.upperFirst=Zs,Yn.each=Ai,Yn.eachRight=Si,Yn.first=zr,ul(Yn,(El={},Sa(Yn,(function(e,t){Le.call(Yn.prototype,t)||(El[t]=e)})),El),{chain:!1}),Yn.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Yn[e].placeholder=Yn})),It(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:vn(_s(n),0);var a=this.__filtered__&&!t?new Vn(this):this.clone();return a.__filtered__?a.__takeCount__=An(n,a.__takeCount__):a.__views__.push({size:An(n,h),type:e+(a.__dir__<0?"Right":"")}),a},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var n=t+1,a=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:dr(e,3),type:n}),t.__filtered__=t.__filtered__||a,t}})),It(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),It(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(il)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Xa((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Pa(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ui(dr(e)))},Vn.prototype.slice=function(e,t){e=_s(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=_s(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},Sa(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),r=Yn[a?"take"+("last"==t?"Right":""):t],i=a||/^find/.test(t);r&&(Yn.prototype[t]=function(){var t=this.__wrapped__,s=a?[1]:arguments,l=t instanceof Vn,c=s[0],u=l||Wi(t),d=function(e){var t=r.apply(Yn,Rt([e],s));return a&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,m=!!this.__actions__.length,p=i&&!f,g=l&&!m;if(!i&&u){t=g?t:new Vn(this);var h=e.apply(t,s);return h.__actions__.push({func:hi,args:[d],thisArg:o}),new Gn(h,f)}return p&&g?e.apply(this,s):(h=this.thru(d),p?a?h.value()[0]:h.value():h)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);Yn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var o=this.value();return t.apply(Wi(o)?o:[],e)}return this[n]((function(n){return t.apply(Wi(n)?n:[],e)}))}})),Sa(Vn.prototype,(function(e,t){var n=Yn[t];if(n){var a=n.name+"";Le.call(On,a)||(On[a]=[]),On[a].push({name:t,func:n})}})),On[Ho(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wi(e),a=t<0,o=n?e.length:0,r=function(e,t,n){var a=-1,o=n.length;for(;++a<o;){var r=n[a],i=r.size;switch(r.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=An(t,e+i);break;case"takeRight":e=vn(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=r.start,s=r.end,l=s-i,c=a?s:i-1,u=this.__iteratees__,d=u.length,f=0,m=An(l,this.__takeCount__);if(!n||!a&&o==l&&m==l)return _o(e,this.__actions__);var p=[];e:for(;l--&&f<m;){for(var g=-1,h=e[c+=t];++g<d;){var _=u[g],b=_.iteratee,y=_.type,v=b(h);if(2==y)h=v;else if(!v){if(1==y)continue e;break e}}p[f++]=h}return p},Yn.prototype.at=_i,Yn.prototype.chain=function(){return gi(this)},Yn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Yn.prototype.next=function(){this.__values__===o&&(this.__values__=gs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Yn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var a=Yr(n);a.__index__=0,a.__values__=o,t?r.__wrapped__=a:t=a;var r=a;n=n.__wrapped__}return r.__wrapped__=e,t},Yn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:hi,args:[ai],thisArg:o}),new Gn(t,this.__chain__)}return this.thru(ai)},Yn.prototype.toJSON=Yn.prototype.valueOf=Yn.prototype.value=function(){return _o(this.__wrapped__,this.__actions__)},Yn.prototype.first=Yn.prototype.head,et&&(Yn.prototype[et]=function(){return this}),Yn}();mt._=_n,(a=function(){return _n}.call(t,n,t,e))===o||(e.exports=a)}.call(this)},"./node_modules/md-date-range-picker/dist/md-date-range-picker.js":()=>{!function(e,t){function n(e){return{scope:{selectedTemplate:"=",selectedTemplateName:"=",dateStart:"=?",dateEnd:"=?",firstDayOfWeek:"=?",showTemplate:"=?",mdOnSelect:"&",localizationMap:"=?",customTemplates:"=?",disableTemplates:"@",maxRange:"=?",onePanel:"=?",isDisabledDate:"&?",format:"=?"},template:'<div class="md-date-range-picker md-whiteframe-1dp" ng-class="{\'md-date-range-picker__one-panel\':onePanel}"><div layout="column"><div layout="row" layout-margin><div class="md-date-range-picker__calendar-wrapper"><div class="md-date-range-picker__month-year" layout="row" layout-align="center center"><div flex layout="column" layout-align="center center"><span aria-label="Previous Month" class="md-button md-icon-button" event-key="prev"><md-icon md-svg-src="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4="></md-icon></span></div><md-select md-container-class="md-date-range-picker__select" md-on-close="updateActiveDate()" ng-model="activeMonth" placeholder="{{::getLocalizationVal(\'Month\')}}" class="md-no-underline"><md-option ng-value="::month.id" ng-repeat="month in months" ng-bind="::month.name"></md-option></md-select><md-select md-container-class="md-date-range-picker__select" md-on-close="updateActiveDate()" ng-model="activeYear" placeholder="{{::getLocalizationVal(\'Year\')}}" class="md-no-underline"><md-option ng-value="::year.id" ng-repeat="year in years" ng-bind="::year.name"></md-option></md-select><div flex layout="column" layout-align="center center" class="hide-gt-sm show-sm show-xs"><span aria-label="Next Month" class="md-icon-button md-button" event-key="next"><md-icon style="transform: rotate(-180deg)" md-svg-src="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4="></md-icon></span></div><div flex ng-if="onePanel" layout="column" layout-align="center center" class="hide-sm hide-xs show-gt-sm"><span aria-label="Next Month" class="md-icon-button md-button" event-key="next"><md-icon style="transform: rotate(-180deg)" md-svg-src="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4="></md-icon></span></div><div flex ng-if="!onePanel" layout="column" layout-align="center center" class="hide-sm hide-xs show-gt-sm"><span aria-label="Next Month" ng-disabled="true" aria-hidden="true" class="md-icon-button md-button"><md-icon></md-icon></span></div></div><div class="md-date-range-picker__week" style="font-size: 0"><span class="md-date-range-picker__calendar__grid" ng-repeat="day in days">{{::day.name}}</span></div><div class="md-date-range-picker__calendar"><span ng-repeat="date in dates" class="md-date-range-picker__calendar__grid" ng-class="{\'md-date-range-picker__calendar__selected\':inSelectedDateRange(date),\'md-date-range-picker__calendar__start\':isSelectedStartDate(date),\'md-date-range-picker__calendar__end\':isSelectedEndDate(date),\'md-date-range-picker__calendar__not-in-active-month\': !inCurrentMonth(date),\'md-date-range-picker__calendar__today\' : isToday(date),\'md-date-range-picker__calendar__disabled\': !isInMaxRange(date) || isDisabledDate({$date:date})}" event-key="date1" event-param="{{$index}}"><span event-key="date1" event-param="{{$index}}" class="md-date-range-picker__calendar__selection" ng-bind="{{::date.getDate()}}"></span></span></div></div><div ng-show="!onePanel" class="md-date-range-picker__calendar-wrapper hide-sm hide-xs show-gt-sm"><div class="md-date-range-picker__month-year" layout="row" layout-align="center center"><div flex layout="column" layout-align="center center" style="visibility: hidden"><span aria-label="Previous Month" class="md-button md-icon-button" event-key="prev"><md-icon md-svg-src="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4="></md-icon></span></div><md-select md-container-class="md-date-range-picker__select" md-on-close="updateActiveDate(true)" ng-model="activeMonth2" placeholder="{{::getLocalizationVal(\'Month\')}}" class="md-no-underline"><md-option ng-value="::month.id" ng-repeat="month in months" ng-bind="::month.name"></md-option></md-select><md-select md-container-class="md-date-range-picker__select" md-on-close="updateActiveDate(true)" ng-model="activeYear2" placeholder="{{::getLocalizationVal(\'Year\')}}" class="md-no-underline"><md-option ng-value="::year.id" ng-repeat="year in years" ng-bind="::year.name"></md-option></md-select><div flex layout="column" layout-align="center center"><span aria-label="Next Month" class="md-icon-button md-button" event-key="next"><md-icon style="transform: rotate(-180deg)" md-svg-src="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4="></md-icon></span></div></div><div class="md-date-range-picker__week" style="font-size: 0" ng-if="!onePanel"><span class="md-date-range-picker__calendar__grid" ng-repeat="day in days">{{::day.name}}</span></div><div class="md-date-range-picker__calendar"><span ng-repeat="date in dates2" class="md-date-range-picker__calendar__grid" ng-class="{\'md-date-range-picker__calendar__selected\':inSelectedDateRange(date), \'md-date-range-picker__calendar__start\':isSelectedStartDate(date), \'md-date-range-picker__calendar__end\':isSelectedEndDate(date), \'md-date-range-picker__calendar__not-in-active-month\': !inCurrentMonth(date, true), \'md-date-range-picker__calendar__today\' : isToday(date),\'md-date-range-picker__calendar__disabled\': !isInMaxRange(date) || isDisabledDate({$date:date}) }" event-key="date2" event-param="{{$index}}"><span event-key="date2" event-param="{{$index}}" class="md-date-range-picker__calendar__selection" ng-bind="{{::date.getDate()}}"></span></span></div></div></div><div class="md-date-range-picker__templates" ng-if="showTemplate"><div ng-if="!onePanel && !maxRange" class="hide-xs hide-sm show-gt-sm" layout="row" layout-align="center center" layout-wrap><div ng-repeat="(tmpltKey,tmpltName) in selectionTemplate" class="md-button" aria-label="{{::tmpltName}}" ng-class="selectedTemplate === tmpltKey ? \'md-primary md-raised\' : \'\'" event-key="{{tmpltKey}}" ng-bind="::tmpltName" flex="20"></div><div ng-repeat="tmplt in customTemplates" class="md-button" aria-label="{{::tmplt.name}}" ng-class="selectedTemplate === tmplt.name ? \'md-primary md-raised\' : \'\'" ng-click="selectCustomRange(tmplt.name,tmplt)" event-key="Custom Template" ng-bind="::tmplt.name" flex="20"></div></div><div ng-if="!maxRange" ng-class="{\'hide-gt-sm\':!onePanel}" layout="column" layout-padding><md-input-container><label>{{::getLocalizationVal(\'Date Range Template\')}}</label><md-select md-container-class="md-date-range-picker__select" class="md-block" placeholder="{{::getLocalizationVal(\'Custom Date Range\')}}" ng-model="selectedTemplate"><md-option value=""></md-option><md-option ng-repeat="(tmpltKey,tmpltName) in selectionTemplate track by tmpltKey" aria-label="{{::tmpltName}}" ng-click="actionByKey(tmpltKey,null)" ng-bind="::tmpltName" value="{{tmpltKey}}"></md-option><md-option ng-repeat="tmplt in customTemplates" aria-label="{{::tmplt.name}}" ng-click="selectCustomRange(tmplt.name,tmplt)" ng-bind="::tmplt.name" value="{{::tmplt.name}}"></md-option></md-select></md-input-container></div></div></div></div>',controller:"mdDateRangePickerCtrl",link:function(t,n,a,o){t.actionByKey=function(e,n,a){switch(e){case"prev":t.handleClickPrevMonth(a),t.runIfNotInDigest();break;case"next":t.handleClickNextMonth(a),t.runIfNotInDigest();break;case"date1":t.handleClickDate(a,t.dates[n])?t.runIfNotInDigest(t.triggerChange):t.runIfNotInDigest();break;case"date2":t.handleClickDate(a,t.dates2[n])?t.runIfNotInDigest(t.triggerChange):t.runIfNotInDigest();break;case"TD":t.handleClickSelectToday(),t.runIfNotInDigest(t.triggerChange);break;case"YD":t.handleClickSelectYesterday(),t.runIfNotInDigest(t.triggerChange);break;case"TW":t.handleClickSelectThisWeek(),t.runIfNotInDigest(t.triggerChange);break;case"LW":t.handleClickSelectLastWeek(),t.runIfNotInDigest(t.triggerChange);break;case"TM":t.handleClickSelectThisMonth(),t.runIfNotInDigest(t.triggerChange);break;case"LM":t.handleClickSelectLastMonth(),t.runIfNotInDigest(t.triggerChange);break;case"TY":t.handleClickSelectThisYear(),t.runIfNotInDigest(t.triggerChange);break;case"LY":t.handleClickSelectLastYear(),t.runIfNotInDigest(t.triggerChange);break;case"Custom Template":t.runIfNotInDigest(t.triggerChange)}},t.runIfNotInDigest=function(e){null==t.$root||t.$root.$$phase||(t.$apply(),e&&"function"==typeof e&&e())},n.on("click",(function(e){var n=e.target.getAttribute("event-key"),a=e.target.getAttribute("event-param");t.actionByKey(n,a,e)})),t.triggerChange=function(n){var a=e.getSelectedDate(t.dateStart,t.dateEnd,t.isDisabledDate,t.maxRange);t.mdOnSelect&&t.mdOnSelect({$dates:a})}}}}function a(e,t){var n={TD:a("Today"),YD:a("Yesterday"),TW:a("This Week"),LW:a("Last Week"),TM:a("This Month"),LM:a("Last Month"),TY:a("This Year"),LY:a("Last Year")};function a(t){return null!=e.localizationMap&&null!=e.localizationMap[t]?e.localizationMap[t]:t}function o(){return-1!==[void 0,null,"",NaN].indexOf(e.firstDayOfWeek)||-1===[0,1,2,3,4,5,6].indexOf(e.firstDayOfWeek)?1:e.firstDayOfWeek}function r(e){var t,n,a=[],r=(new Date(e.getFullYear(),e.getMonth(),1),new Date(e.getFullYear(),e.getMonth()+1,0)),i=o();for(t=1;t<=r.getDate();t++)a.push(new Date(e.getFullYear(),e.getMonth(),t));for(n=a[0].getDay(),t=0;n!==i;)a.unshift(new Date(e.getFullYear(),e.getMonth(),t)),n=n<=0?6:n-1,t--;for(n=(a[a.length-1].getDay()+1)%7,t=1;n!==i;)a.push(new Date(e.getFullYear(),e.getMonth()+1,t)),n=(n+1)%7,t++;return a}function i(e,t){if(e&&t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate());return new Date(t.getFullYear(),t.getMonth(),t.getDate())-n}}SELECTION_TEMPLATES_CUSTOM={},e.isMenuContainer=!1,e.days=[],e.label="Date range picker",e.dates=[],e.dates2=[],e.numberOfMonthToDisplay=2,e.today=new Date,e.dateStart&&e.dateStart.setHours(0,0,0,0),e.dateEnd&&e.dateEnd.setHours(23,59,59,999),e.firstDayOfMonth=e.dateStart?new Date(e.dateStart.getFullYear(),e.dateStart.getMonth(),1):Date(e.today.getFullYear(),e.today.getMonth(),1),e.lastDayOfMonth=e.dateStart?new Date(e.dateStart.getFullYear(),e.dateStart.getMonth()+1,0):Date(e.today.getFullYear(),e.today.getMonth()+1,0),e.activeDate=e.dateStart||e.today,e.activeDate2=new Date(e.activeDate.getFullYear(),e.activeDate.getMonth()+1,1),e.activeMonth=e.activeDate.getMonth(),e.activeYear=e.activeDate.getFullYear(),e.activeMonth2=e.activeDate2.getMonth(),e.activeYear2=e.activeDate2.getFullYear(),e.months=[],e.years=[],e.inCurrentMonth=function(t,n){return n?t.getMonth()===e.activeMonth2&&t.getFullYear()===e.activeYear2:t.getMonth()===e.activeMonth&&t.getFullYear()===e.activeYear},e.isToday=function(e){return 0===i(e,new Date)},e.handleClickDate=function(t,n){var a=!1,o=!1;if(0===i(e.dateStart,e.dateEnd)){if(0===i(e.dateStart,n))o=!0,a=!0;else if(!e.isDisabledDate||!e.isDisabledDate({$date:n})){var r=i(e.dateStart,n);r>0?(e.maxRange&&Math.abs(Math.ceil(r/864e5))+1<=e.maxRange||!e.maxRange)&&(e.dateEnd=n,o=!0,a=!0):(e.maxRange&&Math.abs(Math.ceil(r/864e5))+1<=e.maxRange||!e.maxRange)&&(e.dateStart=n,o=!0,a=!0)}}else e.isDisabledDate&&e.isDisabledDate({$date:n})||(e.dateStart=n,e.dateEnd=n,a=!0);a&&(e.selectedTemplate=!1,e.selectedTemplateName=e.selectedDateText());return o},e.inSelectedDateRange=function(t){return!(!e.dateStart||!e.dateEnd)&&(i(e.dateStart,t)>=0&&0<=i(t,e.dateEnd))},e.isSelectedStartDate=function(t){return 0===i(e.dateStart,t)},e.isSelectedEndDate=function(t){return 0===i(e.dateEnd,t)},e.updateActiveDate=function(t){var n=new Date(e.activeYear,e.activeMonth,1),a=new Date(e.activeYear2,e.activeMonth2,1);t?(n=new Date(e.activeYear2,e.activeMonth2-1,1),e.activeYear=n.getFullYear(),e.activeMonth=n.getMonth()):(a=new Date(e.activeYear,e.activeMonth+1,1),e.activeYear2=a.getFullYear(),e.activeMonth2=a.getMonth());e.focusToDate(n)},e.selectedDateText=function(){return e.format&&"function"==typeof e.format?e.format(e.dateStart,e.dateEnd,e.selectedTemplate,e.selectedTemplateName):e.dateStart&&e.dateEnd?e.selectedTemplate?null!=SELECTION_TEMPLATES_CUSTOM&&null!=SELECTION_TEMPLATES_CUSTOM[e.selectedTemplate]?SELECTION_TEMPLATES_CUSTOM[e.selectedTemplate].name:n[e.selectedTemplate]:0===i(e.dateStart,e.dateEnd)?t("date")(e.dateStart,"dd MMM yyyy"):t("date")(e.dateStart,"dd"+(e.dateStart.getMonth()!==e.dateEnd.getMonth()||e.dateStart.getFullYear()!==e.dateEnd.getFullYear()?" MMM":"")+(e.dateStart.getFullYear()!==e.dateEnd.getFullYear()?" yyyy":""))+" - "+t("date")(e.dateEnd,"dd MMM yyyy"):""},e.focusToDate=function(t){var n=new Date(t.getFullYear(),t.getMonth()+1,1);e.activeDate=t,e.activeMonth=t.getMonth(),e.activeYear=t.getFullYear(),e.activeDate2=n,e.activeMonth2=n.getMonth(),e.activeYear2=n.getFullYear(),e.dates=r(t),e.dates2=r(n)},e.handleClickNextMonth=function(t){var n=new Date(e.activeDate.getFullYear(),e.activeDate.getMonth()+1,1);e.focusToDate(n)},e.handleClickPrevMonth=function(t){var n=new Date(e.activeDate.getFullYear(),e.activeDate.getMonth()-1,1);e.focusToDate(n)},e.handleClickSelectToday=function(){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.dateStart=n,e.dateEnd=n,e.selectedTemplate="TD",e.selectedTemplateName=e.selectedDateText()},e.handleClickSelectYesterday=function(){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);e.dateStart=n,e.dateEnd=n,e.selectedTemplate="YD",e.selectedTemplateName=e.selectedDateText()},e.handleClickSelectThisWeek=function(){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()-(n.getDay()-o())),r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+(6-n.getDay()+o()));e.dateStart=a,e.dateEnd=r,e.selectedTemplate="TW",e.selectedTemplateName=e.selectedDateText()},e.handleClickSelectLastWeek=function(){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-7),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()-(n.getDay()-o())),r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+(6-n.getDay()+o()));e.dateStart=a,e.dateEnd=r,e.selectedTemplate="LW",e.selectedTemplateName=e.selectedDateText()},e.handleClickSelectThisMonth=function(){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),1),a=new Date(t.getFullYear(),t.getMonth()+1,0);e.dateStart=n,e.dateEnd=a,e.selectedTemplate="TM",e.selectedTemplateName=e.selectedDateText()},e.handleClickSelectLastMonth=function(){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),0),a=new Date(n.getFullYear(),n.getMonth(),1),o=new Date(n.getFullYear(),n.getMonth()+1,0);e.dateStart=a,e.dateEnd=o,e.selectedTemplate="LM",e.selectedTemplateName=e.selectedDateText()},e.handleClickSelectThisYear=function(){var t=new Date,n=new Date(t.getFullYear(),0,1),a=new Date(t.getFullYear(),11,31);e.dateStart=n,e.dateEnd=a,e.selectedTemplate="TY",e.selectedTemplateName=e.selectedDateText()},e.handleClickSelectLastYear=function(){var t=new Date,n=new Date(t.getFullYear()-1,0,1),a=new Date(t.getFullYear()-1,11,31);e.dateStart=n,e.dateEnd=a,e.selectedTemplate="LY",e.selectedTemplateName=e.selectedDateText()},e.getLocalizationVal=a,e.selectCustomRange=function(t,n){e.dateStart=n.dateStart,e.dateEnd=n.dateEnd,e.selectedTemplate=t,e.selectedTemplateName=e.selectedDateText()},e.isInMaxRange=function(t){if(!e.dateStart)return!0;if(0!==i(e.dateStart,e.dateEnd))return!0;var n=i(e.dateStart,t);return e.maxRange&&Math.abs(Math.ceil(n/864e5))+1<=e.maxRange||!e.maxRange},e.selectionTemplate={},function(){var r,i=0;if(null!=e.customTemplates)for(var s=0;s<e.customTemplates.length;s++)r=e.customTemplates[s],SELECTION_TEMPLATES_CUSTOM[r.name]=r;if(e.selectedTemplate){switch(e.selectedTemplate){case"TD":e.handleClickSelectToday();break;case"YD":e.handleClickSelectYesterday();break;case"TW":e.handleClickSelectThisWeek();break;case"LW":e.handleClickSelectLastWeek();break;case"TM":e.handleClickSelectThisMonth();break;case"LM":e.handleClickSelectLastMonth();break;case"TY":e.handleClickSelectThisYear();break;case"LY":e.handleClickSelectLastYear();break;default:SELECTION_TEMPLATES_CUSTOM&&SELECTION_TEMPLATES_CUSTOM[e.selectedTemplate]&&SELECTION_TEMPLATES_CUSTOM[e.selectedTemplate].dateStart&&SELECTION_TEMPLATES_CUSTOM[e.selectedTemplate].dateEnd&&(e.dateStart=SELECTION_TEMPLATES_CUSTOM[e.selectedTemplate].dateStart,e.dateEnd=SELECTION_TEMPLATES_CUSTOM[e.selectedTemplate].dateEnd),e.selectedTemplateName=e.selectedDateText()}e.updateActiveDate()}else e.selectedTemplate="",e.selectedTemplateName=e.selectedDateText(),e.updateActiveDate();e.$watch("selectedTemplate",(function(t,n){t===n||!e.dateStart||e.inCurrentMonth(e.dateStart)||e.inCurrentMonth(e.dateStart,!0)||e.focusToDate(e.dateStart)})),e.$watch("dateStart",(function(t,n){t===n||!e.dateStart||e.inCurrentMonth(e.dateStart)||e.inCurrentMonth(e.dateStart,!0)||e.focusToDate(e.dateStart)}));var l=new Date(2017,0,1);for(e.days=[],i=0;i<7;i++)l.setDate(i+1+o()),e.days.push({id:i,name:a(t("date")(l,"EEE"))});var c=null;for(e.months=[],i=0;i<12;i++)c=new Date(2017,i,1),e.months.push({id:i,name:a(t("date")(c,"MMMM"))});var u=e.activeYear,d=0;for(e.years=[],d=u-10;d<u+10;d++)e.years.push({id:d,name:a(d)});for(var f in n)n.hasOwnProperty(f)&&(null!=e.disableTemplates&&""!=e.disableTemplates?e.disableTemplates.indexOf(f)<0&&(e.selectionTemplate[f]=n[f]):e.selectionTemplate[f]=n[f])}()}function o(e){this.show=function(n){return e.show({locals:{mdDateRangePickerServiceModel:t.copy(n.model),mdDateRangePickerServiceConfig:t.copy(n)},controller:["$scope","mdDateRangePickerServiceModel","mdDateRangePickerServiceConfig",function(t,n,a){t.model=n||{},t.config=a||{},t.model.selectedTemplateName=t.model.selectedTemplateName||"",t.ok=function(){t.model.dateStart&&t.model.dateStart.setHours(0,0,0,0),t.model.dateEnd&&t.model.dateEnd.setHours(23,59,59,999),e.hide(t.model)},t.cancel=function(){e.cancel()},t.clear=function(){t.model.selectedTemplateName="",t.model.selectedTemplate=null,t.model.dateStart=null,t.model.dateEnd=null},t.handleOnSelect=function(e){"function"==typeof t.config.mdOnSelect&&t.config.mdOnSelect(e),t.config.autoConfirm&&t.ok()},t.getLocalizationVal=function(e){return t.model&&null!=t.model.localizationMap&&null!=t.model.localizationMap[e]?t.model.localizationMap[e]:e},t.model.customTemplates&&console.warn("model.customTemplates will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({customTemplates}) instead"),t.model.localizationMap&&console.warn("model.localizationMap will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({localizationMap}) instead"),t.model.firstDayOfWeek&&console.warn("model.firstDayOfWeek will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({firstDayOfWeek}) instead"),t.model.showTemplate&&console.warn("model.showTemplate will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({showTemplate}) instead"),t.model.maxRange&&console.warn("model.maxRange will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({maxRange}) instead"),t.model.onePanel&&console.warn("model.onePanel will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({onePanel}) instead"),t.model.isDisabledDate&&console.warn("model.isDisabledDate({ $date: $date }) will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({isDisabledDate:($date)=>{}}) instead")}],template:['<md-dialog aria-label="Date Range Picker">','<md-toolbar class="md-primary" layout="row" layout-align="start center">','<md-button aria-label="Date Range Picker" class="md-icon-button" aria-hidden="true" ng-disabled="true">','<md-icon md-svg-icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik05IDExSDd2Mmgydi0yem00IDBoLTJ2Mmgydi0yem00IDBoLTJ2Mmgydi0yem0yLTdoLTFWMmgtMnYySDhWMkg2djJINWMtMS4xMSAwLTEuOTkuOS0xLjk5IDJMMyAyMGMwIDEuMS44OSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlY2YzAtMS4xLS45LTItMi0yem0wIDE2SDVWOWgxNHYxMXoiLz4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4KPC9zdmc+"></md-icon>',"</md-button>",'<span md-truncate class="md-toolbar-tools">{{model.selectedTemplateName}}</span>',"</md-toolbar>","<md-dialog-content>","<md-date-range-picker ",'date-start="model.dateStart" ','date-end="model.dateEnd" ','show-template="config.showTemplate || model.showTemplate" ','selected-template="model.selectedTemplate" ','selected-template-name="model.selectedTemplateName" ','first-day-of-week="config.firstDayOfWeek || model.firstDayOfWeek" ','localization-map="config.localizationMap || model.localizationMap" ','custom-templates="config.customTemplates || model.customTemplates" ','format="config.format" ','disable-templates="{{model.disableTemplates}}" ','md-on-select="handleOnSelect($dates)" ','is-disabled-date="config.isDisabledDate ? config.isDisabledDate($date) : model.isDisabledDate({ $date: $date })" ','max-range="config.maxRange || model.maxRange" ','one-panel="config.onePanel || model.onePanel" ',">","</md-date-range-picker>","</md-dialog-content>",'<md-dialog-actions layout="row" layout-align="end center">','<md-button ng-click="cancel()">{{getLocalizationVal("Cancel")}}</md-button>','<md-button ng-if="!config.autoConfirm" class="md-raised" ng-click="clear()">{{getLocalizationVal("Clear")}}</md-button>','<md-button ng-if="!config.autoConfirm" class="md-raised md-primary" ng-click="ok()">{{getLocalizationVal("Ok")}}</md-button>',"</md-dialog-actions>","</md-dialog>"].join(""),parent:t.element(document.body),multiple:n.multiple,targetEvent:n.targetEvent||document.body,clickOutsideToClose:!0,fullscreen:n.model.fullscreen})},this.getSelectedDate=function(e,t,n,a){var o=[],r=t.getTime(),i=e,s=0,l=e.getFullYear(),c=e.getMonth(),u=e.getDate();for(;i.getTime()<=r&&(n&&!n({$date:i})&&o.push(i),s++,i=new Date(l,c,u+s),!(s>(a||1e4))););return o}}t.module("ngMaterialDateRangePicker",["ngMaterial"]).directive("mdDateRangePicker",n).directive("mdDateRange",(function(){return{scope:{ngModel:"=ngModel",autoConfirm:"=autoConfirm",ngDisabled:"=ngDisabled",showTemplate:"=",placeholder:"@",isDisabledDate:"&",localizationMap:"=?",customTemplates:"=?",disableTemplates:"@",mdOnSelect:"&",onePanel:"=?",format:"=?",maxRange:"=?",firstDayOfWeek:"=?"},template:['<md-menu ng-disabled="ngDisabled">','<span class="md-select-value" ng-click="!ngDisabled && (($mdMenu && $mdMenu.open) ? $mdMenu.open($event) : $mdOpenMenu($event))">',"  <span>{{ngModel.selectedTemplateName || placeholder}}</span>",'  <span class="md-select-icon" aria-hidden="true"></span>',"</span>",'<md-menu-content class="md-custom-menu-content" style="max-height: none!important; height: auto!important; padding: 0!important;">','    <span style="text-align: left; padding: 12px 20px 0 20px" disabled>{{ngModel.selectedTemplateName || placeholder}}</span>','    <md-date-range-picker first-day-of-week="firstDayOfWeek" ','     md-on-select="autoConfirm && ok($dates)" ','     date-start="ngModel.dateStart" ','     date-end="ngModel.dateEnd" ','     selected-template="ngModel.selectedTemplate" ','     show-template="showTemplate" ','     localization-map="localizationMap" ','     custom-templates="customTemplates" ','     disable-templates="{{disableTemplates}}" ','     is-disabled-date="isDisabledDate({ $date: $date })" ','     max-range="maxRange" ','     one-panel="onePanel" ','     format="format" ','     selected-template-name="ngModel.selectedTemplateName"></md-date-range-picker>','<p ng-if="!autoConfirm" layout="row" layout-align="end center">','<md-button ng-if="ngModel.showClear" class="md-raised" ng-click="clear()">{{getLocalizationVal("Clear")}}</md-button>','<md-button class="md-raised md-primary" ng-click="ok()">{{getLocalizationVal("Ok")}}</md-button>',"</p>","</md-menu-content>","</md-menu>"].join(""),controller:["$scope","$mdMenu",function(e,t){e.ok=function(n){e.mdOnSelect({$dates:n}),t.hide()},e.clear=function(){e.ngModel.selectedTemplateName="",e.ngModel.selectedTemplate=null,e.ngModel.dateStart=null,e.ngModel.dateEnd=null},e.getLocalizationVal=function(t){return e.ngModel&&null!=e.ngModel.localizationMap&&null!=e.ngModel.localizationMap[t]?e.ngModel.localizationMap[t]:t}}]}})).controller("mdDateRangePickerCtrl",a).service("$mdDateRangePicker",o),n.$inject=["$mdDateRangePicker"],a.$inject=["$scope","$filter"],o.$inject=["$mdDialog"]}(window,angular)},"./src/styles/index.scss":()=>{},"./src/styles/vendors.scss":()=>{},"./node_modules/mobile-detect/mobile-detect.js":(e,t,n)=>{!function(e,t){e((function(){"use strict";var e,n={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+|\\b(BBA100|BBB100|BBD100|BBE100|BBF100|STH100)\\b-[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)|LM-G710",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",OnePlus:"ONEPLUS",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-T830|SM-T837V|SM-T720|SM-T510|SM-T387V",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304X|TB-X304F|TB-X304L|TB-X505F|TB-X505L|TB-X505X|TB-X605F|TB-X605L|TB-8703F|TB-8703X|TB-8703N|TB-8704N|TB-8704F|TB-8704X|TB-8704V|TB-7304F|TB-7304I|TB-7304X|Tab2A7-10F|Tab2A7-20F|TB2-X30L|YT3-X50L|YT3-X50F|YT3-X50M|YT-X705F|YT-X703F|YT-X703L|YT-X705L|YT-X705X|TB2-X30F|TB2-X30L|TB2-X30M|A2107A-F|A2107A-H|TB3-730F|TB3-730M|TB3-730X|TB-7504F|TB-7504X",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*\\b(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))\\b|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-L09|CMR-AL19",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z930|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b(?!\\))",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497|VFD 1400",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",iPadOS:"CPU OS 13",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",WeChat:"\\bMicroMessenger\\b",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|Google-AMPHTML|s~amp-validator|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom|contentkingapp",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i}},a=Object.prototype.hasOwnProperty;function o(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function r(e,t){var n,a,o=e.length;if(!o||!t)return!1;for(n=t.toLowerCase(),a=0;a<o;++a)if(n===e[a].toLowerCase())return!0;return!1}function i(e){for(var t in e)a.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function s(e,t){this.ua=function(e){return(e||"").substr(0,500)}(e),this._cache={},this.maxPhoneWidth=t||600}return n.FALLBACK_PHONE="UnknownPhone",n.FALLBACK_TABLET="UnknownTablet",n.FALLBACK_MOBILE="UnknownMobile",e="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var t,o,r,s,l,c,u=n.mobileDetectRules;for(t in u.props)if(a.call(u.props,t)){for(o=u.props[t],e(o)||(o=[o]),l=o.length,s=0;s<l;++s)(c=(r=o[s]).indexOf("[VER]"))>=0&&(r=r.substring(0,c)+"([\\w._\\+]+)"+r.substring(c+5)),o[s]=new RegExp(r,"i");u.props[t]=o}i(u.oss),i(u.phones),i(u.tablets),i(u.uas),i(u.utils),u.oss0={WindowsPhoneOS:u.oss.WindowsPhoneOS,WindowsMobileOS:u.oss.WindowsMobileOS}}(),n.findMatch=function(e,t){for(var n in e)if(a.call(e,n)&&e[n].test(t))return n;return null},n.findMatches=function(e,t){var n=[];for(var o in e)a.call(e,o)&&e[o].test(t)&&n.push(o);return n},n.getVersionStr=function(e,t){var o,r,i,s,l=n.mobileDetectRules.props;if(a.call(l,e))for(i=(o=l[e]).length,r=0;r<i;++r)if(null!==(s=o[r].exec(t)))return s[1];return null},n.getVersion=function(e,t){var a=n.getVersionStr(e,t);return a?n.prepareVersionNo(a):NaN},n.prepareVersionNo=function(e){var t;return 1===(t=e.split(/[a-z._ \/\-]/i)).length&&(e=t[0]),t.length>1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},n.isMobileFallback=function(e){return n.detectMobileBrowsers.fullPattern.test(e)||n.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},n.isTabletFallback=function(e){return n.detectMobileBrowsers.tabletPattern.test(e)},n.prepareDetectionCache=function(e,a,o){if(e.mobile===t){var r,i,l;if(i=n.findMatch(n.mobileDetectRules.tablets,a))return e.mobile=e.tablet=i,void(e.phone=null);if(r=n.findMatch(n.mobileDetectRules.phones,a))return e.mobile=e.phone=r,void(e.tablet=null);n.isMobileFallback(a)?(l=s.isPhoneSized(o))===t?(e.mobile=n.FALLBACK_MOBILE,e.tablet=e.phone=null):l?(e.mobile=e.phone=n.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=n.FALLBACK_TABLET,e.phone=null):n.isTabletFallback(a)?(e.mobile=e.tablet=n.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null}},n.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile"),"C")},n.detectOS=function(e){return n.findMatch(n.mobileDetectRules.oss0,e)||n.findMatch(n.mobileDetectRules.oss,e)},n.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},s.prototype={constructor:s,mobile:function(){return n.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return n.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return n.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===t&&(this._cache.userAgent=n.findMatch(n.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===t&&(this._cache.userAgents=n.findMatches(n.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===t&&(this._cache.os=n.detectOS(this.ua)),this._cache.os},version:function(e){return n.getVersion(e,this.ua)},versionStr:function(e){return n.getVersionStr(e,this.ua)},is:function(e){return r(this.userAgents(),e)||o(e,this.os())||o(e,this.phone())||o(e,this.tablet())||r(n.findMatches(n.mobileDetectRules.utils,this.ua),e)},match:function(e){return e instanceof RegExp||(e=new RegExp(e,"i")),e.test(this.ua)},isPhoneSized:function(e){return s.isPhoneSized(e||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===t&&(this._cache.grade=n.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?s.isPhoneSized=function(e){return e<0?t:n.getDeviceSmallerSide()<=e}:s.isPhoneSized=function(){},s._impl=n,s.version="1.4.4 2019-09-21",s}))}(e.exports?function(t){e.exports=t()}:n.amdD)},"./node_modules/moment-duration-format/lib/moment-duration-format.js":function(e,t,n){var a,o,r,i,s;i=this,s=function(e){var t=!1,n=!1,a=!1,o=!1,r="escape years months weeks days hours minutes seconds milliseconds general".split(" "),i=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function s(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function l(e){for(var t="";e;)t+="0",e-=1;return t}function c(e,t){var n=e+"+"+b(T(t).sort(),(function(e){return e+":"+t[e]})).join(",");return c.cache[n]||(c.cache[n]=Intl.NumberFormat(e,t)),c.cache[n]}function u(e,t,r){var i,s,d,f=t.useToLocaleString,m=t.useGrouping,p=m&&t.grouping.slice(),g=t.maximumSignificantDigits,h=t.minimumIntegerDigits||1,_=t.fractionDigits||0,b=t.groupingSeparator,y=t.decimalSeparator;if(f&&r){var v,A={minimumIntegerDigits:h,useGrouping:m};return _&&(A.maximumFractionDigits=_,A.minimumFractionDigits=_),g&&e>0&&(A.maximumSignificantDigits=g),a?(o||((v=C({},t)).useGrouping=!1,v.decimalSeparator=".",e=parseFloat(u(e,v),10)),c(r,A).format(e)):(n||((v=C({},t)).useGrouping=!1,v.decimalSeparator=".",e=parseFloat(u(e,v),10)),e.toLocaleString(r,A))}var S=(g?e.toPrecision(g+1):e.toFixed(_+1)).split("e");d=S[1]||"",s=(S=S[0].split("."))[1]||"";var w=(i=S[0]||"").length,E=s.length,T=w+E,I=i+s;(g&&T===g+1||!g&&E===_+1)&&((I=function(e){for(var t=e.split("").reverse(),n=0,a=!0;a&&n<t.length;)n?"9"===t[n]?t[n]="0":(t[n]=(parseInt(t[n],10)+1).toString(),a=!1):(parseInt(t[n],10)<5&&(a=!1),t[n]="0"),n+=1;return a&&t.push("1"),t.reverse().join("")}(I)).length===T+1&&(w+=1),E&&(I=I.slice(0,-1)),i=I.slice(0,w),s=I.slice(w)),g&&(s=s.replace(/0*$/,""));var k=parseInt(d,10);k>0?s.length<=k?(i+=s+=l(k-s.length),s=""):(i+=s.slice(0,k),s=s.slice(k)):k<0&&(s=l(Math.abs(k)-i.length)+i+s,i="0"),g||((s=s.slice(0,_)).length<_&&(s+=l(_-s.length)),i.length<h&&(i=l(h-i.length)+i));var D,x="";if(m)for(S=i;S.length;)p.length&&(D=p.shift()),x&&(x=b+x),x=S.slice(-D)+x,S=S.slice(0,-D);else x=i;return s&&(x=x+y+s),x}function d(e,t){return e.label.length>t.label.length?-1:e.label.length<t.label.length?1:0}function f(e,t){var n=[];return _(T(t),(function(a){if("_durationLabels"===a.slice(0,15)){var o=a.slice(15).toLowerCase();_(T(t[a]),(function(r){r.slice(0,1)===e&&n.push({type:o,key:r,label:t[a][r]})}))}})),n}c.cache={};var m={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:function(e,t,n){return 1===t&&null===n?e:e+e}};function p(e){return"[object Array]"===Object.prototype.toString.call(e)}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function h(e,t){var n,a=0,o=e&&e.length||0;for("function"!=typeof t&&(n=t,t=function(e){return e===n});a<o;){if(t(e[a]))return e[a];a+=1}}function _(e,t){var n=0,a=e.length;if(e&&a)for(;n<a;){if(!1===t(e[n],n))return;n+=1}}function b(e,t){var n=0,a=e.length,o=[];if(!e||!a)return o;for(;n<a;)o[n]=t(e[n],n),n+=1;return o}function y(e,t){return b(e,(function(e){return e[t]}))}function v(e){var t=[];return _(e,(function(e){e&&t.push(e)})),t}function A(e){var t=[];return _(e,(function(e){h(t,e)||t.push(e)})),t}function S(e,t){var n=[];return _(e,(function(e){_(t,(function(t){e===t&&n.push(e)}))})),A(n)}function w(e,t){var n=[];return _(e,(function(a,o){if(!t(a))return n=e.slice(o),!1})),n}function E(e,t){return w(e.slice().reverse(),t).reverse()}function C(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function T(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function I(e,t){var n=0,a=e.length;if(!e||!a)return!1;for(;n<a;){if(!0===t(e[n],n))return!0;n+=1}return!1}function k(e){var t=[];return _(e,(function(e){t=t.concat(e)})),t}function D(e){return"3.6"===e(3.55,"en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})}function x(e){var t=!0;return!!((t=(t=(t=t&&"1"===e(1,"en",{minimumIntegerDigits:1}))&&"01"===e(1,"en",{minimumIntegerDigits:2}))&&"001"===e(1,"en",{minimumIntegerDigits:3}))&&(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===e(99.99,"en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===e(99.99,"en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===e(99.99,"en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(t=(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumSignificantDigits:1}))&&"100"===e(99.99,"en",{maximumSignificantDigits:2}))&&"100"===e(99.99,"en",{maximumSignificantDigits:3}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:4}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:5}))&&(t=(t=t&&"1,000"===e(1e3,"en",{useGrouping:!0}))&&"1000"===e(1e3,"en",{useGrouping:!1})))}function M(){var e,t=[].slice.call(arguments),n={};if(_(t,(function(t,a){if(!a){if(!p(t))throw"Expected array as the first argument to durationsFormat.";e=t}"string"!=typeof t&&"function"!=typeof t?"number"!=typeof t?g(t)&&C(n,t):n.precision=t:n.template=t})),!e||!e.length)return[];n.returnMomentTypes=!0;var a=b(e,(function(e){return e.format(n)})),o=S(r,A(y(k(a),"type"))),i=n.largest;return i&&(o=o.slice(0,i)),n.returnMomentTypes=!1,n.outputTypes=o,b(e,(function(e){return e.format(n)}))}function P(){var n=[].slice.call(arguments),o=C({},this.format.defaults),l=this.asMilliseconds(),c=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(l=0,c=0);var k=l<0,D=e.duration(Math.abs(l),"milliseconds"),x=e.duration(Math.abs(c),"months");_(n,(function(e){"string"!=typeof e&&"function"!=typeof e?"number"!=typeof e?g(e)&&C(o,e):o.precision=e:o.template=e}));var M={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},P={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};o.types=r;var O=function(e){return h(r,(function(t){return P[t].test(e)}))},R=new RegExp(b(r,(function(e){return P[e].source})).join("|"),"g");o.duration=this;var N="function"==typeof o.template?o.template.apply(o):o.template,L=o.outputTypes,$=o.returnMomentTypes,U=o.largest,j=[];L||(p(o.stopTrim)&&(o.stopTrim=o.stopTrim.join("")),o.stopTrim&&_(o.stopTrim.match(R),(function(e){var t=O(e);"escape"!==t&&"general"!==t&&j.push(t)})));var F=e.localeData();F||(F={}),_(T(m),(function(e){"function"!=typeof m[e]?F["_"+e]||(F["_"+e]=m[e]):F[e]||(F[e]=m[e])})),_(T(F._durationTimeTemplates),(function(e){N=N.replace("_"+e+"_",F._durationTimeTemplates[e])}));var q=o.userLocale||e.locale(),Y=o.useLeftUnits,H=o.usePlural,B=o.precision,G=o.forceLength,V=o.useGrouping,W=o.trunc,Q=o.useSignificantDigits&&B>0,z=Q?o.precision:0,K=z,J=o.minValue,X=!1,Z=o.maxValue,ee=!1,te=o.useToLocaleString,ne=o.groupingSeparator,ae=o.decimalSeparator,oe=o.grouping;te=te&&(t||a);var re=o.trim;p(re)&&(re=re.join(" ")),null===re&&(U||Z||Q)&&(re="all"),null!==re&&!0!==re&&"left"!==re&&"right"!==re||(re="large"),!1===re&&(re="");var ie=function(e){return e.test(re)},se=/large/,le=/small/,ce=/both/,ue=/mid/,de=/^all|[^sm]all/,fe=/final/,me=U>0||I([se,ce,de],ie),pe=I([le,ce,de],ie),ge=I([ue,de],ie),he=I([fe,de],ie),_e=b(N.match(R),(function(e,t){var n=O(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&j.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(P.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}})),be={index:0,length:0,token:"",text:"",type:null},ye=[];Y&&_e.reverse(),_(_e,(function(e){if(e.type)return(be.type||be.text)&&ye.push(be),void(be=e);Y?be.text=e.token+be.text:be.text+=e.token})),(be.type||be.text)&&ye.push(be),Y&&ye.reverse();var ve=S(r,A(v(y(ye,"type"))));if(!ve.length)return y(ye,"text").join("");ve=b(ve,(function(e,t){var n,a=t+1===ve.length,r=!t;n="years"===e||"months"===e?x.as(e):D.as(e);var i=Math.floor(n),s=n-i,l=h(ye,(function(t){return e===t.type}));return r&&Z&&n>Z&&(ee=!0),a&&J&&Math.abs(o.duration.as(e))<J&&(X=!0),r&&null===G&&l.length>1&&(G=!0),D.subtract(i,e),x.subtract(i,e),{rawValue:n,wholeValue:i,decimalValue:a?s:0,isSmallest:a,isLargest:r,type:e,tokenLength:l.length}}));var Ae=W?Math.floor:Math.round,Se=function(e,t){var n=Math.pow(10,t);return Ae(e*n)/n},we=!1,Ee=!1,Ce=function(e,t){var n={useGrouping:V,groupingSeparator:ne,decimalSeparator:ae,grouping:oe,useToLocaleString:te};return Q&&(z<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=z,e.significantDigits=z)),ee&&!Ee&&(e.isLargest?(e.wholeValue=Z,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),X&&!Ee&&(e.isSmallest?(e.wholeValue=J,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?B<0?e.value=Se(e.wholeValue,B):0===B?e.value=Ae(e.wholeValue+e.decimalValue):Q?(e.value=W?Se(e.rawValue,z-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(z-=e.wholeValue.toString().length)):(n.fractionDigits=B,e.value=W?e.wholeValue+Se(e.decimalValue,B):e.wholeValue+e.decimalValue):Q&&e.wholeValue?(e.value=Math.round(Se(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),z-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(G||we)&&(n.minimumIntegerDigits=e.tokenLength,Ee&&n.maximumSignificantDigits<e.tokenLength&&delete n.maximumSignificantDigits),!we&&(e.value>0||""===re||h(j,e.type)||h(L,e.type))&&(we=!0),e.formattedValue=u(e.value,n,q),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=u(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=u(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((ve=v(ve=b(ve,Ce))).length>1){var Te=function(e){return h(ve,(function(t){return t.type===e}))},Ie=function(e){var t=Te(e.type);t&&_(e.targets,(function(e){var n=Te(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),Ee=!0)}))};_(i,Ie)}return Ee&&(we=!1,z=K,ve=v(ve=b(ve,Ce))),!L||ee&&!o.trim?(me&&(ve=w(ve,(function(e){return!e.isSmallest&&!e.wholeValue&&!h(j,e.type)}))),U&&ve.length&&(ve=ve.slice(0,U)),pe&&ve.length>1&&(ve=E(ve,(function(e){return!e.wholeValue&&!h(j,e.type)&&!e.isLargest}))),ge&&(ve=v(ve=b(ve,(function(e,t){return t>0&&t<ve.length-1&&!e.wholeValue?null:e})))),!he||1!==ve.length||ve[0].wholeValue||!W&&ve[0].isSmallest&&ve[0].rawValue<J||(ve=[])):ve=v(ve=b(ve,(function(e){return h(L,(function(t){return e.type===t}))?e:null}))),$?ve:(_(ye,(function(e){var t=M[e.type],n=h(ve,(function(t){return t.type===e.type}));if(t&&n){var a=n.formattedValueEn.split(".");a[0]=parseInt(a[0],10),a[1]?a[1]=parseFloat("0."+a[1],10):a[1]=null;var o=F.durationPluralKey(t,a[0],a[1]),r=f(t,F),i=!1,l={};_(F._durationLabelTypes,(function(t){var n=h(r,(function(e){return e.type===t.type&&e.key===o}));n&&(l[n.type]=n.label,s(e.text,t.string)&&(e.text=e.text.replace(t.string,n.label),i=!0))})),H&&!i&&(r.sort(d),_(r,(function(t){return l[t.type]===t.label?!s(e.text,t.label)&&void 0:s(e.text,t.label)?(e.text=e.text.replace(t.label,l[t.type]),!1):void 0})))}})),(ye=b(ye,(function(e){if(!e.type)return e.text;var t=h(ve,(function(t){return t.type===e.type}));if(!t)return"";var n="";return Y&&(n+=e.text),(k&&ee||!k&&X)&&(n+="< ",ee=!1,X=!1),(k&&X||!k&&ee)&&(n+="> ",ee=!1,X=!1),k&&(t.value>0||""===re||h(j,t.type)||h(L,t.type))&&(n+="-",k=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,Y||(n+=e.text),n}))).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function O(){var e=this.duration,t=function(t){return e._data[t]},n=h(this.types,t),a=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===a)return"d __";case"weeks":return n===a?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===a)return"M __";case"years":return n===a?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function R(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=M,e.duration.fn.format=P,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:O,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",m)}var N=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&x(N),n=t&&D(N);var L=function(e,t,n){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return a=x(L),o=a&&D(L),R(e),R},o=[n("./node_modules/moment/moment.js")],void 0===(r="function"==typeof(a=s)?a.apply(t,o):a)||(e.exports=r),i&&(i.momentDurationFormatSetup=i.moment?s(i.moment):s)},"./node_modules/moment-range/dist/moment-range.js":function(e,t,n){var a;e.exports=(a=n("./node_modules/moment/moment.js"),function(e){function t(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,n){"use strict";var a=n(5)();e.exports=function(e){return e!==a&&null!==e}},function(e,t,n){"use strict";e.exports=n(18)()?Symbol:n(20)},function(e,t){e.exports=a},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return e.range=function(t,n){var a=this;return"string"==typeof t&&m.hasOwnProperty(t)?new p(e(a).startOf(t),e(a).endOf(t)):new p(t,n)},e.rangeFromInterval=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e();if(e.isMoment(a)||(a=e(a)),!a.isValid())throw new Error("Invalid date.");var o=a.clone().add(n,t),r=[];return r.push(e.min(a,o)),r.push(e.max(a,o)),new p(r)},e.rangeFromISOString=function(t){var n=s(t),a=e.parseZone(n[0]),o=e.parseZone(n[1]);return new p(a,o)},e.parseZoneRange=e.rangeFromISOString,e.fn.range=e.range,e.range.constructor=p,e.isRange=function(e){return e instanceof p},e.fn.within=function(e){return e.contains(this.toDate())},e}function s(e){return e.split("/")}Object.defineProperty(t,"__esModule",{value:!0}),t.DateRange=void 0;var l=function(){function e(e,t){var n=[],a=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){o=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(o)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c="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},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();t.extendMoment=i;var d=a(n(2)),f=a(n(1)),m={year:!0,quarter:!0,month:!0,week:!0,day:!0,hour:!0,minute:!0,second:!0},p=t.DateRange=function(){function e(t,n){r(this,e);var a=t,o=n;if(1===arguments.length||void 0===n)if("object"===(void 0===t?"undefined":c(t))&&2===t.length){var i=l(t,2);a=i[0],o=i[1]}else if("string"==typeof t){var u=s(t),f=l(u,2);a=f[0],o=f[1]}this.start=a||0===a?(0,d.default)(a):(0,d.default)(-864e13),this.end=o||0===o?(0,d.default)(o):(0,d.default)(864e13)}return u(e,[{key:"adjacent",value:function(e){var t=this.start.isSame(e.end),n=this.end.isSame(e.start);return t&&e.start.valueOf()<=this.start.valueOf()||n&&e.end.valueOf()>=this.end.valueOf()}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1};return this.overlaps(e,t)?new this.constructor(d.default.min(this.start,e.start),d.default.max(this.end,e.end)):null}},{key:"by",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeEnd:!1,step:1},n=this;return o({},f.default.iterator,(function(){var a=t.step||1,o=Math.abs(n.start.diff(n.end,e))/a,r=t.excludeEnd||!1,i=0;return t.hasOwnProperty("exclusive")&&(r=t.exclusive),{next:function(){var t=n.start.clone().add(i*a,e),s=r?!(i<o):!(i<=o);return i++,{done:s,value:s?void 0:t}}}}))}},{key:"byRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeEnd:!1,step:1},n=this,a=t.step||1,r=this.valueOf()/e.valueOf()/a,i=Math.floor(r),s=t.excludeEnd||!1,l=0;return t.hasOwnProperty("exclusive")&&(s=t.exclusive),o({},f.default.iterator,(function(){return i===1/0?{done:!0}:{next:function(){var t=(0,d.default)(n.start.valueOf()+e.valueOf()*l*a),o=i===r&&s?!(l<i):!(l<=i);return l++,{done:o,value:o?void 0:t}}}}))}},{key:"center",value:function(){var e=this.start.valueOf()+this.diff()/2;return(0,d.default)(e)}},{key:"clone",value:function(){return new this.constructor(this.start.clone(),this.end.clone())}},{key:"contains",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,excludeEnd:!1},a=this.start.valueOf(),o=this.end.valueOf(),r=t.valueOf(),i=t.valueOf(),s=n.excludeStart||!1,l=n.excludeEnd||!1;return n.hasOwnProperty("exclusive")&&(s=l=n.exclusive),t instanceof e&&(r=t.start.valueOf(),i=t.end.valueOf()),(a<r||a<=r&&!s)&&(o>i||o>=i&&!l)}},{key:"diff",value:function(e,t){return this.end.diff(this.start,e,t)}},{key:"duration",value:function(e,t){return this.diff(e,t)}},{key:"intersect",value:function(e){var t=this.start.valueOf(),n=this.end.valueOf(),a=e.start.valueOf(),o=e.end.valueOf(),r=a==o;if(t==n){if(t==a||t==o)return null;if(t>a&&t<o)return this.clone()}else if(r){var i=a;if(i==t||i==n)return null;if(i>t&&i<n)return new this.constructor(i,i)}return t<=a&&a<n&&n<o?new this.constructor(a,n):a<t&&t<o&&o<=n?new this.constructor(t,o):a<t&&t<=n&&n<o?this.clone():t<=a&&a<=o&&o<=n?new this.constructor(a,o):null}},{key:"isEqual",value:function(e){return this.start.isSame(e.start)&&this.end.isSame(e.end)}},{key:"isSame",value:function(e){return this.isEqual(e)}},{key:"overlaps",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1},n=null!==this.intersect(e);return t.adjacent&&!n?this.adjacent(e):n}},{key:"reverseBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,step:1},n=this;return o({},f.default.iterator,(function(){var a=t.step||1,o=Math.abs(n.start.diff(n.end,e))/a,r=t.excludeStart||!1,i=0;return t.hasOwnProperty("exclusive")&&(r=t.exclusive),{next:function(){var t=n.end.clone().subtract(i*a,e),s=r?!(i<o):!(i<=o);return i++,{done:s,value:s?void 0:t}}}}))}},{key:"reverseByRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,step:1},n=this,a=t.step||1,r=this.valueOf()/e.valueOf()/a,i=Math.floor(r),s=t.excludeStart||!1,l=0;return t.hasOwnProperty("exclusive")&&(s=t.exclusive),o({},f.default.iterator,(function(){return i===1/0?{done:!0}:{next:function(){var t=(0,d.default)(n.end.valueOf()-e.valueOf()*l*a),o=i===r&&s?!(l<i):!(l<=i);return l++,{done:o,value:o?void 0:t}}}}))}},{key:"snapTo",value:function(e){var t=this.clone();return t.start.isSame((0,d.default)(-864e13))||(t.start=t.start.startOf(e)),t.end.isSame((0,d.default)(864e13))||(t.end=t.end.endOf(e)),t}},{key:"subtract",value:function(e){var t=this.start.valueOf(),n=this.end.valueOf(),a=e.start.valueOf(),o=e.end.valueOf();return null===this.intersect(e)?[this]:a<=t&&t<n&&n<=o?[]:a<=t&&t<o&&o<n?[new this.constructor(o,n)]:t<a&&a<n&&n<=o?[new this.constructor(t,a)]:t<a&&a<o&&o<n?[new this.constructor(t,a),new this.constructor(o,n)]:t<a&&a<n&&o<n?[new this.constructor(t,a),new this.constructor(a,n)]:[]}},{key:"toDate",value:function(){return[this.start.toDate(),this.end.toDate()]}},{key:"toString",value:function(){return this.start.format()+"/"+this.end.format()}},{key:"valueOf",value:function(){return this.end.valueOf()-this.start.valueOf()}}]),e}()},function(e,t,n){"use strict";var a=n(6),o=n(13),r=n(9),i=n(15);(e.exports=function(e,t){var n,r,s,l,c;return arguments.length<2||"string"!=typeof e?(l=t,t=e,e=null):l=arguments[2],null==e?(n=s=!0,r=!1):(n=i.call(e,"c"),r=i.call(e,"e"),s=i.call(e,"w")),c={value:t,configurable:n,enumerable:r,writable:s},l?a(o(l),c):c}).gs=function(e,t,n){var s,l,c,u;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],null==t?t=void 0:r(t)?null==n?n=void 0:r(n)||(c=n,n=void 0):(c=t,t=n=void 0),null==e?(s=!0,l=!1):(s=i.call(e,"c"),l=i.call(e,"e")),u={get:t,set:n,configurable:s,enumerable:l},c?a(o(c),u):u}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";e.exports=n(7)()?Object.assign:n(8)},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var a=n(10),o=n(14),r=Math.max;e.exports=function(e,t){var n,i,s,l=r(arguments.length,2);for(e=Object(o(e)),s=function(a){try{e[a]=t[a]}catch(e){n||(n=e)}},i=1;i<l;++i)a(t=arguments[i]).forEach(s);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e}},function(e,t,n){"use strict";e.exports=n(11)()?Object.keys:n(12)},function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){"use strict";var a=n(0),o=Object.keys;e.exports=function(e){return o(a(e)?Object(e):e)}},function(e,t,n){"use strict";var a=n(0),o=Array.prototype.forEach,r=Object.create,i=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=r(null);return o.call(arguments,(function(e){a(e)&&i(Object(e),t)})),t}},function(e,t,n){"use strict";var a=n(0);e.exports=function(e){if(!a(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){"use strict";e.exports=n(16)()?String.prototype.contains:n(17)},function(e,t,n){"use strict";var a="razdwatrzy";e.exports=function(){return"function"==typeof a.contains&&!0===a.contains("dwa")&&!1===a.contains("foo")}},function(e,t,n){"use strict";var a=String.prototype.indexOf;e.exports=function(e){return a.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";var a={object:!0,symbol:!0};e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!a[typeof Symbol.iterator]&&!!a[typeof Symbol.toPrimitive]&&!!a[typeof Symbol.toStringTag]}},function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},function(e,t,n){"use strict";var a,o,r,i,s=n(4),l=n(21),c=Object.create,u=Object.defineProperties,d=Object.defineProperty,f=Object.prototype,m=c(null);if("function"==typeof Symbol){a=Symbol;try{String(a()),i=!0}catch(e){}}var p=function(){var e=c(null);return function(t){for(var n,a,o=0;e[t+(o||"")];)++o;return e[t+=o||""]=!0,d(f,n="@@"+t,s.gs(null,(function(e){a||(a=!0,d(this,n,s(e)),a=!1)}))),n}}();r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return o(e)},e.exports=o=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return i?a(t):(n=c(r.prototype),t=void 0===t?"":String(t),u(n,{__description__:s("",t),__name__:s("",p(t))}))},u(o,{for:s((function(e){return m[e]?m[e]:m[e]=o(String(e))})),keyFor:s((function(e){var t;for(t in l(e),m)if(m[t]===e)return t})),hasInstance:s("",a&&a.hasInstance||o("hasInstance")),isConcatSpreadable:s("",a&&a.isConcatSpreadable||o("isConcatSpreadable")),iterator:s("",a&&a.iterator||o("iterator")),match:s("",a&&a.match||o("match")),replace:s("",a&&a.replace||o("replace")),search:s("",a&&a.search||o("search")),species:s("",a&&a.species||o("species")),split:s("",a&&a.split||o("split")),toPrimitive:s("",a&&a.toPrimitive||o("toPrimitive")),toStringTag:s("",a&&a.toStringTag||o("toStringTag")),unscopables:s("",a&&a.unscopables||o("unscopables"))}),u(r.prototype,{constructor:s(o),toString:s("",(function(){return this.__name__}))}),u(o.prototype,{toString:s((function(){return"Symbol ("+l(this).__description__+")"})),valueOf:s((function(){return l(this)}))}),d(o.prototype,o.toPrimitive,s("",(function(){var e=l(this);return"symbol"==typeof e?e:e.toString()}))),d(o.prototype,o.toStringTag,s("c","Symbol")),d(r.prototype,o.toStringTag,s("c",o.prototype[o.toStringTag])),d(r.prototype,o.toPrimitive,s("c",o.prototype[o.toPrimitive]))},function(e,t,n){"use strict";var a=n(19);e.exports=function(e){if(!a(e))throw new TypeError(e+" is not a symbol");return e}}]))},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},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:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-dz.js":function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(a,o,r,i){var s=t(a),l=n[e][t(a)];return 2===s&&(l=l[o?0:1]),l.replace(/%d/i,a)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\200fM/\200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-kw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ly.js":function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,r,i){var s=n(t),l=a[e][n(t)];return 2===s&&(l=l[o?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\200fM/\200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ma.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-sa.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-tn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,n,r,i){var s=a(t),l=o[e][a(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\200fM/\200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/az.js":function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,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:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,a=e%100-n,o=e>=100?100:null;return e+(t[n]||t[a]||t[o])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/be.js":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[a],+e)}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".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:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bg.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bn-bd.js":function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bn.js":function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bo.js":function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/br.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+o({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(a(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function a(e){return e>9?a(e%10):e}function o(e,t){return 2===t?r(e):e}function r(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var i=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,c=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],f=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:f,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:f,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:l,monthsShortStrictRegex:c,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bs.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cs.js":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),a=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function r(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,a){var o=e+" ";switch(n){case"s":return t||a?"pár sekund":"pár sekundami";case"ss":return t||a?o+(r(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?o+(r(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?o+(r(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?o+(r(e)?"dny":"dní"):o+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?o+(r(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?o+(r(e)?"roky":"let"):o+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cy.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,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:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/da.js":function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".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.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-at.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-ch.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/dv.js":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/el.js":function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,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"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var a=this._calendarEl[e],o=n&&n.hours();return t(a)&&(a=a.apply(n)),a.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-au.js":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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ca.js":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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-gb.js":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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ie.js":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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-il.js":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",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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-in.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-nz.js":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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-sg.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{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;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-do.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-mx.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-us.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/et.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:a?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eu.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fa.js":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک\200cشنبه_دوشنبه_سه\200cشنبه_چهارشنبه_پنج\200cشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک\200cشنبه_دوشنبه_سه\200cشنبه_چهارشنبه_پنج\200cشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fi.js":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function a(e,t,n,a){var r="";switch(n){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":r=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":r=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":r=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":r=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":r=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":r=a?"vuoden":"vuotta"}return r=o(e,a)+" "+r}function o(e,a){return e<10?a?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fil.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".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:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ch.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr.js":function(e,t,n){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,a=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fy.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,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:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ga.js":function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],a=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],o=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],r=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:a,weekdaysShort:o,weekdaysMin:r,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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gd.js":function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],a=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],o=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],r=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:a,weekdaysShort:o,weekdaysMin:r,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:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gl.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gom-deva.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return a?o[n][0]:o[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gom-latn.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return a?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gu.js":function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/he.js":function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".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",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hi.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},a=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],o=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:a,longMonthsParse:a,shortMonthsParse:o,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hr.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hu.js":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,a){var o=e;switch(n){case"s":return a||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(a||t)?" másodperc":" másodperce";case"m":return"egy"+(a||t?" perc":" perce");case"mm":return o+(a||t?" perc":" perce");case"h":return"egy"+(a||t?" óra":" órája");case"hh":return o+(a||t?" óra":" órája");case"d":return"egy"+(a||t?" nap":" napja");case"dd":return o+(a||t?" nap":" napja");case"M":return"egy"+(a||t?" hónap":" hónapja");case"MM":return o+(a||t?" hónap":" hónapja");case"y":return"egy"+(a||t?" év":" éve");case"yy":return o+(a||t?" év":" éve")}return""}function a(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return a.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return a.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hy-am.js":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".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:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/id.js":function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/is.js":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,a,o){var r=e+" ";switch(a){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?r+(n||o?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||o?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||o?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(o?"daga":"dögum"):n?r+"dagur":r+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(o?"mánuði":"mánuðum"):n?r+"mánuður":r+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?r+(n||o?"ár":"árum"):r+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/it-ch.js":function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{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("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/it.js":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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ja.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/jv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ka.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".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:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kk.js":function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".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:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/km.js":function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kn.js":function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ko.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ku.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:a,monthsShort:a,weekdays:"یه\200cكشه\200cممه\200c_دووشه\200cممه\200c_سێشه\200cممه\200c_چوارشه\200cممه\200c_پێنجشه\200cممه\200c_هه\200cینی_شه\200cممه\200c".split("_"),weekdaysShort:"یه\200cكشه\200cم_دووشه\200cم_سێشه\200cم_چوارشه\200cم_پێنجشه\200cم_هه\200cینی_شه\200cممه\200c".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ئێواره\200c|به\200cیانی/,isPM:function(e){return/ئێواره\200c/.test(e)},meridiem:function(e,t,n){return e<12?"به\200cیانی":"ئێواره\200c"},calendar:{sameDay:"[ئه\200cمرۆ كاتژمێر] LT",nextDay:"[به\200cیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له\200c %s",past:"%s",s:"چه\200cند چركه\200cیه\200cك",ss:"چركه\200c %d",m:"یه\200cك خوله\200cك",mm:"%d خوله\200cك",h:"یه\200cك كاتژمێر",hh:"%d كاتژمێر",d:"یه\200cك ڕۆژ",dd:"%d ڕۆژ",M:"یه\200cك مانگ",MM:"%d مانگ",y:"یه\200cك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ky.js":function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".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:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lb.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){return o(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function a(e){return o(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function o(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return o(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return o(e)}return o(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:a,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lt.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,a){return t?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function a(e,t,n,a){return t?r(n)[0]:a?r(n)[1]:r(n)[2]}function o(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function i(e,t,n,i){var s=e+" ";return 1===e?s+a(e,t,n[0],i):t?s+(o(e)?r(n)[1]:r(n)[0]):i?s+r(n)[1]:s+(o(e)?r(n)[1]:r(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:i,m:a,mm:i,h:a,hh:i,d:a,dd:i,M:a,MM:i,y:a,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lv.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function a(e,a,o){return e+" "+n(t[o],e,a)}function o(e,a,o){return n(t[o],e,a)}function r(e,t){return t?"dažas sekundes":"dažām sekundēm"}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:r,ss:a,m:o,mm:a,h:o,hh:a,d:o,dd:a,M:o,MM:a,y:o,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/me.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var o=t.words[a];return 1===a.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ml.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mn.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mr.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function a(e,t,n,a){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms-my.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".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:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/my.js":function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".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:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ne.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl-be.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/oc-lnc.js":function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pa-in.js":function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pl.js":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),a=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var a=e+" ";switch(n){case"ss":return a+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return a+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return a+(o(e)?"godziny":"godzin");case"ww":return a+(o(e)?"tygodnie":"tygodni");case"MM":return a+(o(e)?"miesiące":"miesięcy");case"yy":return a+(o(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,a){return e?/D MMMM/.test(a)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".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:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:r,M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt-br.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ro.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=" ";return(e%100>=20||e>=100&&e%100==0)&&(a=" de "),e+a+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ru.js":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[a],+e)}var a=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sd.js":function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/se.js":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/si.js":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්\200dරේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්\200dරහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්\200dරහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්\200dර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sk.js":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function a(e){return e>1&&e<5}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?r+(a(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?r+(a(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(a(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?r+(a(e)?"dni":"dní"):r+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?r+(a(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?r+(a(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o=e+" ";switch(n){case"s":return t||a?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||a?"sekundi":"sekundah":e<5?t||a?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||a?"minuti":"minutama":e<5?t||a?"minute":"minutami":t||a?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||a?"uri":"urama":e<5?t||a?"ure":"urami":t||a?"ur":"urami";case"d":return t||a?"en dan":"enim dnem";case"dd":return o+=1===e?t||a?"dan":"dnem":2===e?t||a?"dni":"dnevoma":t||a?"dni":"dnevi";case"M":return t||a?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||a?"mesec":"mesecem":2===e?t||a?"meseca":"mesecema":e<5?t||a?"mesece":"meseci":t||a?"mesecev":"meseci";case"y":return t||a?"eno leto":"enim letom";case"yy":return o+=1===e?t||a?"leto":"letom":2===e?t||a?"leti":"letoma":e<5?t||a?"leta":"leti":t||a?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sq.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},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:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr-cyrl.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var o=t.words[a];return 1===a.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var o=t.words[a];return 1===a.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ss.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,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:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",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:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ta.js":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".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:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/te.js":function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tet.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_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:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tg.js":function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".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:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/th.js":function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tk.js":function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var a=e%10,o=e%100-a,r=e>=100?100:null;return e+(t[a]||t[o]||t[r])}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tl-ph.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tlh.js":function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function a(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function o(e,t,n,a){var o=r(e);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}function r(e){var n=Math.floor(e%1e3/100),a=Math.floor(e%100/10),o=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),a>0&&(r+=(""!==r?" ":"")+t[a]+"maH"),o>0&&(r+=(""!==r?" ":"")+t[o]),""===r?"pagh":r}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".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:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:a,s:"puS lup",ss:o,m:"wa’ tup",mm:o,h:"wa’ rep",hh:o,d:"wa’ jaj",dd:o,M:"wa’ jar",MM:o,y:"wa’ DIS",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tr.js":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},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:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var a=e%10,o=e%100-a,r=e>=100?100:null;return e+(t[a]||t[o]||t[r])}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return a||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".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:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".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:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ug-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var a=100*e+t;return a<600?"يېرىم كېچە":a<900?"سەھەر":a<1130?"چۈشتىن بۇرۇن":a<1230?"چۈش":a<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uk.js":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[a],+e)}function a(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function o(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:a,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".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:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ur.js":function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/vi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/x-pseudo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/yo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".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:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-hk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1200?"上午":1200===a?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-mo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-tw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":(e,t,n)=>{var a={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn-bd":"./node_modules/moment/locale/bn-bd.js","./bn-bd.js":"./node_modules/moment/locale/bn-bd.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-in":"./node_modules/moment/locale/en-in.js","./en-in.js":"./node_modules/moment/locale/en-in.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./en-sg":"./node_modules/moment/locale/en-sg.js","./en-sg.js":"./node_modules/moment/locale/en-sg.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-mx":"./node_modules/moment/locale/es-mx.js","./es-mx.js":"./node_modules/moment/locale/es-mx.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fil":"./node_modules/moment/locale/fil.js","./fil.js":"./node_modules/moment/locale/fil.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./ga":"./node_modules/moment/locale/ga.js","./ga.js":"./node_modules/moment/locale/ga.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-deva":"./node_modules/moment/locale/gom-deva.js","./gom-deva.js":"./node_modules/moment/locale/gom-deva.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it-ch":"./node_modules/moment/locale/it-ch.js","./it-ch.js":"./node_modules/moment/locale/it-ch.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ku":"./node_modules/moment/locale/ku.js","./ku.js":"./node_modules/moment/locale/ku.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mn":"./node_modules/moment/locale/mn.js","./mn.js":"./node_modules/moment/locale/mn.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./oc-lnc":"./node_modules/moment/locale/oc-lnc.js","./oc-lnc.js":"./node_modules/moment/locale/oc-lnc.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tk":"./node_modules/moment/locale/tk.js","./tk.js":"./node_modules/moment/locale/tk.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-mo":"./node_modules/moment/locale/zh-mo.js","./zh-mo.js":"./node_modules/moment/locale/zh-mo.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/moment.js":function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,a;function o(){return t.apply(null,arguments)}function r(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t,n,a){return Qn(e,t,n,a,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return null==e._pf&&(e._pf=h()),e._pf}function b(e){if(null==e._isValid){var t=_(e),n=a.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function y(e){var t=g(NaN);return null!=e?p(_(t),e):_(t).userInvalidated=!0,t}a=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),a=n.length>>>0;for(t=0;t<a;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=o.momentProperties=[],A=!1;function S(e,t){var n,a,o;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=_(t)),u(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)u(o=t[a=v[n]])||(e[a]=o);return e}function w(e){S(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===A&&(A=!0,o.updateOffset(this),A=!1)}function E(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function C(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return p((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var a,r,i,s=[];for(r=0;r<arguments.length;r++){if(a="","object"==typeof arguments[r]){for(i in a+="\n["+r+"] ",arguments[0])l(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[r];s.push(a)}C(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var I,k={};function D(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),k[e]||(C(t),k[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){var t,n;for(n in e)l(e,n)&&(x(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)}function P(e,t){var n,a=p({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(a[n]={},p(a[n],e[n]),p(a[n],t[n])):null!=t[n]?a[n]=t[n]:delete a[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(a[n]=p({},a[n]));return a}function O(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,I=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return x(a)?a.call(t,n):a}function L(e,t,n){var a=""+Math.abs(e),o=t-a.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+a}var $=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},F={};function q(e,t,n,a){var o=a;"string"==typeof a&&(o=function(){return this[a]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return L(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,a=e.match($);for(t=0,n=a.length;t<n;t++)F[a[t]]?a[t]=F[a[t]]:a[t]=Y(a[t]);return function(t){var o,r="";for(o=0;o<n;o++)r+=x(a[o])?a[o].call(t,e):a[o];return r}}function B(e,t){return e.isValid()?(t=G(t,e.localeData()),j[t]=j[t]||H(t),j[t](e)):e.localeData().invalidDate()}function G(e,t){var n=5;function a(e){return t.longDateFormat(e)||e}for(U.lastIndex=0;n>=0&&U.test(e);)e=e.replace(U,a),U.lastIndex=0,n-=1;return e}var V={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"};function W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match($).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Q="Invalid date";function z(){return this._invalidDate}var K="%d",J=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,a){var o=this._relativeTime[n];return x(o)?o(e,t,n,a):o.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}var ne={};function ae(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function oe(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function re(e){var t,n,a={};for(n in e)l(e,n)&&(t=oe(n))&&(a[t]=e[n]);return a}var ie={};function se(e,t){ie[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),o.updateOffset(this,t),this):me(this,e)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ge(e){return x(this[e=oe(e)])?this[e]():this}function he(e,t){if("object"==typeof e){var n,a=le(e=re(e));for(n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(x(this[e=oe(e)]))return this[e](t);return this}var _e,be=/\d/,ye=/\d\d/,ve=/\d{3}/,Ae=/\d{4}/,Se=/[+-]?\d{6}/,we=/\d\d?/,Ee=/\d\d\d\d?/,Ce=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,Ie=/\d{1,4}/,ke=/[+-]?\d{1,6}/,De=/\d+/,xe=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,Pe=/Z|[+-]\d\d(?::?\d\d)?/gi,Oe=/[+-]?\d+(\.\d{1,3})?/,Re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(e,t,n){_e[e]=x(t)?t:function(e,a){return e&&n?n:t}}function Le(e,t){return l(_e,e)?_e[e](t._strict,t._locale):new RegExp($e(e))}function $e(e){return Ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,o){return t||n||a||o})))}function Ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}_e={};var je={};function Fe(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),d(t)&&(a=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)je[e[n]]=a}function qe(e,t){Fe(e,(function(e,n,a,o){a._w=a._w||{},t(e,a._w,a,o)}))}function Ye(e,t,n){null!=t&&l(je,e)&&je[e](t,n._a,n,e)}var He,Be=0,Ge=1,Ve=2,We=3,Qe=4,ze=5,Ke=6,Je=7,Xe=8;function Ze(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Ze(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}He=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},q("M",["MM",2],"Mo",(function(){return this.month()+1})),q("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),q("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ae("month","M"),se("month",8),Ne("M",we),Ne("MM",we,ye),Ne("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ne("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[Ge]=de(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,a){var o=n._locale.monthsParse(e,a,n._strict);null!=o?t[Ge]=o:_(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Re,rt=Re;function it(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function st(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var a,o,r,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)r=g([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=He.call(this._shortMonthsParse,i))?o:null:-1!==(o=He.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=He.call(this._shortMonthsParse,i))||-1!==(o=He.call(this._longMonthsParse,i))?o:null:-1!==(o=He.call(this._longMonthsParse,i))||-1!==(o=He.call(this._shortMonthsParse,i))?o:null}function ct(e,t,n){var a,o,r;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(o=g([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}}function ut(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(ut(this,e),o.updateOffset(this,!0),this):me(this,"Month")}function ft(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=rt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function gt(){function e(e,t){return t.length-e.length}var t,n,a=[],o=[],r=[];for(t=0;t<12;t++)n=g([2e3,t]),a.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(a.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)a[t]=Ue(a[t]),o[t]=Ue(o[t]);for(t=0;t<24;t++)r[t]=Ue(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ht(e){return ce(e)?366:365}q("Y",0,0,(function(){var e=this.year();return e<=9999?L(e,4):"+"+e})),q(0,["YY",2],0,(function(){return this.year()%100})),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),ae("year","y"),se("year",1),Ne("Y",xe),Ne("YY",we,ye),Ne("YYYY",Ie,Ae),Ne("YYYYY",ke,Se),Ne("YYYYYY",ke,Se),Fe(["YYYYY","YYYYYY"],Be),Fe("YYYY",(function(e,t){t[Be]=2===e.length?o.parseTwoDigitYear(e):de(e)})),Fe("YY",(function(e,t){t[Be]=o.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[Be]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var _t=fe("FullYear",!0);function bt(){return ce(this.year())}function yt(e,t,n,a,o,r,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,a,o,r,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,a,o,r,i),s}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function At(e,t,n){var a=7+t-n;return-(7+vt(e,0,a).getUTCDay()-t)%7+a-1}function St(e,t,n,a,o){var r,i,s=1+7*(t-1)+(7+n-a)%7+At(e,a,o);return s<=0?i=ht(r=e-1)+s:s>ht(e)?(r=e+1,i=s-ht(e)):(r=e,i=s),{year:r,dayOfYear:i}}function wt(e,t,n){var a,o,r=At(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?a=i+Et(o=e.year()-1,t,n):i>Et(e.year(),t,n)?(a=i-Et(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function Et(e,t,n){var a=At(e,t,n),o=At(e+1,t,n);return(ht(e)-a+o)/7}function Ct(e){return wt(e,this._week.dow,this._week.doy).week}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),ae("week","w"),ae("isoWeek","W"),se("week",5),se("isoWeek",5),Ne("w",we),Ne("ww",we,ye),Ne("W",we),Ne("WW",we,ye),qe(["w","ww","W","WW"],(function(e,t,n,a){t[a.substr(0,1)]=de(e)}));var Tt={dow:0,doy:6};function It(){return this._week.dow}function kt(){return this._week.doy}function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xt(e){var t=wt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Mt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}q("d",0,"do","day"),q("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),q("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),q("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),ae("day","d"),ae("weekday","e"),ae("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ne("d",we),Ne("e",we),Ne("E",we),Ne("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ne("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ne("dddd",(function(e,t){return t.weekdaysRegex(e)})),qe(["dd","ddd","dddd"],(function(e,t,n,a){var o=n._locale.weekdaysParse(e,a,n._strict);null!=o?t.d=o:_(n).invalidWeekday=e})),qe(["d","e","E"],(function(e,t,n,a){t[a]=de(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$t=Re,Ut=Re,jt=Re;function Ft(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ot(n,this._week.dow):e?n[e.day()]:n}function qt(e){return!0===e?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Yt(e){return!0===e?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var a,o,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)r=g([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=He.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=He.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=He.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=He.call(this._weekdaysParse,i))||-1!==(o=He.call(this._shortWeekdaysParse,i))||-1!==(o=He.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=He.call(this._shortWeekdaysParse,i))||-1!==(o=He.call(this._weekdaysParse,i))||-1!==(o=He.call(this._minWeekdaysParse,i))?o:null:-1!==(o=He.call(this._minWeekdaysParse,i))||-1!==(o=He.call(this._weekdaysParse,i))||-1!==(o=He.call(this._shortWeekdaysParse,i))?o:null}function Bt(e,t,n){var a,o,r;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(o=g([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Mt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=$t),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ut),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,a,o,r,i=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=g([2e3,1]).day(t),a=Ue(this.weekdaysMin(n,"")),o=Ue(this.weekdaysShort(n,"")),r=Ue(this.weekdays(n,"")),i.push(a),s.push(o),l.push(r),c.push(a),c.push(o),c.push(r);i.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.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("^("+i.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function en(e,t){q(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Xt),q("k",["kk",2],0,Zt),q("hmm",0,0,(function(){return""+Xt.apply(this)+L(this.minutes(),2)})),q("hmmss",0,0,(function(){return""+Xt.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),q("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),q("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),en("a",!0),en("A",!1),ae("hour","h"),se("hour",13),Ne("a",tn),Ne("A",tn),Ne("H",we),Ne("h",we),Ne("k",we),Ne("HH",we,ye),Ne("hh",we,ye),Ne("kk",we,ye),Ne("hmm",Ee),Ne("hmmss",Ce),Ne("Hmm",Ee),Ne("Hmmss",Ce),Fe(["H","HH"],We),Fe(["k","kk"],(function(e,t,n){var a=de(e);t[We]=24===a?0:a})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[We]=de(e),_(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var a=e.length-2;t[We]=de(e.substr(0,a)),t[Qe]=de(e.substr(a)),_(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var a=e.length-4,o=e.length-2;t[We]=de(e.substr(0,a)),t[Qe]=de(e.substr(a,2)),t[ze]=de(e.substr(o)),_(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var a=e.length-2;t[We]=de(e.substr(0,a)),t[Qe]=de(e.substr(a))})),Fe("Hmmss",(function(e,t,n){var a=e.length-4,o=e.length-2;t[We]=de(e.substr(0,a)),t[Qe]=de(e.substr(a,2)),t[ze]=de(e.substr(o))}));var an=/[ap]\.?m?\.?/i,on=fe("Hours",!0);function rn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:R,longDateFormat:V,invalidDate:Q,ordinal:K,dayOfMonthOrdinalParse:J,relativeTime:Z,months:tt,monthsShort:nt,week:Tt,weekdays:Rt,weekdaysMin:Lt,weekdaysShort:Nt,meridiemParse:an},cn={},un={};function dn(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n<a;n+=1)if(e[n]!==t[n])return n;return a}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function mn(e){for(var t,n,a,o,r=0;r<e.length;){for(t=(o=fn(e[r]).split("-")).length,n=(n=fn(e[r+1]))?n.split("-"):null;t>0;){if(a=pn(o.slice(0,t).join("-")))return a;if(n&&n.length>=t&&dn(o,n)>=t-1)break;t--}r++}return sn}function pn(t){var a=null;if(void 0===cn[t]&&e&&e.exports)try{a=sn._abbr,n("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+t),gn(a)}catch(e){cn[t]=null}return cn[t]}function gn(e,t){var n;return e&&((n=u(t)?bn(e):hn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function hn(e,t){if(null!==t){var n,a=ln;if(t.abbr=e,null!=cn[e])D("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."),a=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])a=cn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;a=n._config}return cn[e]=new O(P(a,t)),un[e]&&un[e].forEach((function(e){hn(e.name,e.config)})),gn(e),cn[e]}return delete cn[e],null}function _n(e,t){if(null!=t){var n,a,o=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(P(cn[e]._config,t)):(null!=(a=pn(e))&&(o=a._config),t=P(o,t),null==a&&(t.abbr=e),(n=new O(t)).parentLocale=cn[e],cn[e]=n),gn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===gn()&&gn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!i(e)){if(t=pn(e))return t;e=[e]}return mn(e)}function yn(){return I(cn)}function vn(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[Ge]<0||n[Ge]>11?Ge:n[Ve]<1||n[Ve]>et(n[Be],n[Ge])?Ve:n[We]<0||n[We]>24||24===n[We]&&(0!==n[Qe]||0!==n[ze]||0!==n[Ke])?We:n[Qe]<0||n[Qe]>59?Qe:n[ze]<0||n[ze]>59?ze:n[Ke]<0||n[Ke]>999?Ke:-1,_(e)._overflowDayOfYear&&(t<Be||t>Ve)&&(t=Ve),_(e)._overflowWeeks&&-1===t&&(t=Je),_(e)._overflowWeekday&&-1===t&&(t=Xe),_(e).overflow=t),e}var An=/^\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)?)?$/,Sn=/^\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)?)?$/,wn=/Z|[+-]\d\d(?::?\d\d)?/,En=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Cn=[["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/]],Tn=/^\/?Date\((-?\d+)/i,In=/^(?:(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}))$/,kn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(e){var t,n,a,o,r,i,s=e._i,l=An.exec(s)||Sn.exec(s);if(l){for(_(e).iso=!0,t=0,n=En.length;t<n;t++)if(En[t][1].exec(l[1])){o=En[t][0],a=!1!==En[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=Cn.length;t<n;t++)if(Cn[t][1].exec(l[3])){r=(l[2]||" ")+Cn[t][0];break}if(null==r)return void(e._isValid=!1)}if(!a&&null!=r)return void(e._isValid=!1);if(l[4]){if(!wn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=o+(r||"")+(i||""),qn(e)}else e._isValid=!1}function xn(e,t,n,a,o,r){var i=[Mn(e),nt.indexOf(t),parseInt(n,10),parseInt(a,10),parseInt(o,10)];return r&&i.push(parseInt(r,10)),i}function Mn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function On(e,t,n){return!e||Nt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(_(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Rn(e,t,n){if(e)return kn[e];if(t)return 0;var a=parseInt(n,10),o=a%100;return(a-o)/100*60+o}function Nn(e){var t,n=In.exec(Pn(e._i));if(n){if(t=xn(n[4],n[3],n[2],n[5],n[6],n[7]),!On(n[1],t,e))return;e._a=t,e._tzm=Rn(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function Ln(e){var t=Tn.exec(e._i);null===t?(Dn(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}function $n(e,t,n){return null!=e?e:null!=t?t:n}function Un(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function jn(e){var t,n,a,o,r,i=[];if(!e._d){for(a=Un(e),e._w&&null==e._a[Ve]&&null==e._a[Ge]&&Fn(e),null!=e._dayOfYear&&(r=$n(e._a[Be],a[Be]),(e._dayOfYear>ht(r)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=vt(r,0,e._dayOfYear),e._a[Ge]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=a[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[We]&&0===e._a[Qe]&&0===e._a[ze]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[We]=0),e._d=(e._useUTC?vt:yt).apply(null,i),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&&(_(e).weekdayMismatch=!0)}}function Fn(e){var t,n,a,o,r,i,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,i=4,n=$n(t.GG,e._a[Be],wt(zn(),1,4).year),a=$n(t.W,1),((o=$n(t.E,1))<1||o>7)&&(l=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,c=wt(zn(),r,i),n=$n(t.gg,e._a[Be],c.year),a=$n(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(l=!0)):o=r),a<1||a>Et(n,r,i)?_(e)._overflowWeeks=!0:null!=l?_(e)._overflowWeekday=!0:(s=St(n,a,o,r,i),e._a[Be]=s.year,e._dayOfYear=s.dayOfYear)}function qn(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],_(e).empty=!0;var t,n,a,r,i,s,l=""+e._i,c=l.length,u=0;for(a=G(e._f,e._locale).match($)||[],t=0;t<a.length;t++)r=a[t],(n=(l.match(Le(r,e))||[])[0])&&((i=l.substr(0,l.indexOf(n))).length>0&&_(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),u+=n.length),F[r]?(n?_(e).empty=!1:_(e).unusedTokens.push(r),Ye(r,n,e)):e._strict&&!n&&_(e).unusedTokens.push(r);_(e).charsLeftOver=c-u,l.length>0&&_(e).unusedInput.push(l),e._a[We]<=12&&!0===_(e).bigHour&&e._a[We]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[We]=Yn(e._locale,e._a[We],e._meridiem),null!==(s=_(e).era)&&(e._a[Be]=e._locale.erasConvertYear(s,e._a[Be])),jn(e),vn(e)}else Nn(e);else Dn(e)}function Yn(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}function Hn(e){var t,n,a,o,r,i,s=!1;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)r=0,i=!1,t=S({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],qn(t),b(t)&&(i=!0),r+=_(t).charsLeftOver,r+=10*_(t).unusedTokens.length,_(t).score=r,s?r<a&&(a=r,n=t):(null==a||r<a||i)&&(a=r,n=t,i&&(s=!0));p(e,n||t)}function Bn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),jn(e)}}function Gn(e){var t=new w(vn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new w(vn(t)):(f(t)?e._d=t:i(n)?Hn(e):n?qn(e):Wn(e),b(e)||(e._d=null),e))}function Wn(e){var t=e._i;u(t)?e._d=new Date(o.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ln(e):i(t)?(e._a=m(t.slice(0),(function(e){return parseInt(e,10)})),jn(e)):s(t)?Bn(e):d(t)?e._d=new Date(t):o.createFromInputFallback(e)}function Qn(e,t,n,a,o){var r={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==n&&!1!==n||(a=n,n=void 0),(s(e)&&c(e)||i(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=n,r._i=e,r._f=t,r._strict=a,Gn(r)}function zn(e,t,n,a){return Qn(e,t,n,a,!1)}o.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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Kn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=zn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Jn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=zn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Xn(e,t){var n,a;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return zn();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function Zn(){return Xn("isBefore",[].slice.call(arguments,0))}function ea(){return Xn("isAfter",[].slice.call(arguments,0))}var ta=function(){return Date.now?Date.now():+new Date},na=["year","quarter","month","week","day","hour","minute","second","millisecond"];function aa(e){var t,n,a=!1;for(t in e)if(l(e,t)&&(-1===He.call(na,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<na.length;++n)if(e[na[n]]){if(a)return!1;parseFloat(e[na[n]])!==de(e[na[n]])&&(a=!0)}return!0}function oa(){return this._isValid}function ra(){return ka(NaN)}function ia(e){var t=re(e),n=t.year||0,a=t.quarter||0,o=t.month||0,r=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=aa(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+i+7*r,this._months=+o+3*a+12*n,this._data={},this._locale=bn(),this._bubble()}function sa(e){return e instanceof ia}function la(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ca(e,t,n){var a,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(a=0;a<o;a++)(n&&e[a]!==t[a]||!n&&de(e[a])!==de(t[a]))&&i++;return i+r}function ua(e,t){q(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+L(~~(e/60),2)+t+L(~~e%60,2)}))}ua("Z",":"),ua("ZZ",""),Ne("Z",Pe),Ne("ZZ",Pe),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fa(Pe,e)}));var da=/([\+\-]|\d\d)/gi;function fa(e,t){var n,a,o=(t||"").match(e);return null===o?null:0===(a=60*(n=((o[o.length-1]||[])+"").match(da)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?a:-a}function ma(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(E(e)||f(e)?e.valueOf():zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),o.updateOffset(n,!1),n):zn(e).local()}function pa(e){return-Math.round(e._d.getTimezoneOffset())}function ga(e,t,n){var a,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fa(Pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=pa(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Oa(this,ka(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:pa(this)}function ha(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function _a(e){return this.utcOffset(0,e)}function ba(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pa(this),"m")),this}function ya(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fa(Me,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function va(e){return!!this.isValid()&&(e=e?zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Aa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sa(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return S(t,this),(t=Vn(t))._a?(e=t._isUTC?g(t._a):zn(t._a),this._isDSTShifted=this.isValid()&&ca(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wa(){return!!this.isValid()&&!this._isUTC}function Ea(){return!!this.isValid()&&this._isUTC}function Ca(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ia=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ka(e,t){var n,a,o,r=e,i=null;return sa(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=Ta.exec(e))?(n="-"===i[1]?-1:1,r={y:0,d:de(i[Ve])*n,h:de(i[We])*n,m:de(i[Qe])*n,s:de(i[ze])*n,ms:de(la(1e3*i[Ke]))*n}):(i=Ia.exec(e))?(n="-"===i[1]?-1:1,r={y:Da(i[2],n),M:Da(i[3],n),w:Da(i[4],n),d:Da(i[5],n),h:Da(i[6],n),m:Da(i[7],n),s:Da(i[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Ma(zn(r.from),zn(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),a=new ia(r),sa(e)&&l(e,"_locale")&&(a._locale=e._locale),sa(e)&&l(e,"_isValid")&&(a._isValid=e._isValid),a}function Da(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function xa(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ma(e,t){var n;return e.isValid()&&t.isValid()?(t=ma(t,e),e.isBefore(t)?n=xa(e,t):((n=xa(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pa(e,t){return function(n,a){var o;return null===a||isNaN(+a)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=a,a=o),Oa(this,ka(n,a),e),this}}function Oa(e,t,n,a){var r=t._milliseconds,i=la(t._days),s=la(t._months);e.isValid()&&(a=null==a||a,s&&ut(e,me(e,"Month")+s*n),i&&pe(e,"Date",me(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),a&&o.updateOffset(e,i||s))}ka.fn=ia.prototype,ka.invalid=ra;var Ra=Pa(1,"add"),Na=Pa(-1,"subtract");function La(e){return"string"==typeof e||e instanceof String}function $a(e){return E(e)||f(e)||La(e)||d(e)||ja(e)||Ua(e)||null==e}function Ua(e){var t,n,a=s(e)&&!c(e),o=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<r.length;t+=1)n=r[t],o=o||l(e,n);return a&&o}function ja(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&La(e)})).length),t&&n}function Fa(e){var t,n,a=s(e)&&!c(e),o=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)n=r[t],o=o||l(e,n);return a&&o}function qa(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"}function Ya(e,t){1===arguments.length&&(arguments[0]?$a(arguments[0])?(e=arguments[0],t=void 0):Fa(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||zn(),a=ma(n,this).startOf("day"),r=o.calendarFormat(this,a)||"sameElse",i=t&&(x(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,zn(n)))}function Ha(){return new w(this)}function Ba(e,t){var n=E(e)?e:zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Ga(e,t){var n=E(e)?e:zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Va(e,t,n,a){var o=E(e)?e:zn(e),r=E(t)?t:zn(t);return!!(this.isValid()&&o.isValid()&&r.isValid())&&("("===(a=a||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===a[1]?this.isBefore(r,n):!this.isAfter(r,n))}function Wa(e,t){var n,a=E(e)?e:zn(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()===a.valueOf():(n=a.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Qa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function za(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ka(e,t,n){var a,o,r;if(!this.isValid())return NaN;if(!(a=ma(e,this)).isValid())return NaN;switch(o=6e4*(a.utcOffset()-this.utcOffset()),t=oe(t)){case"year":r=Ja(this,a)/12;break;case"month":r=Ja(this,a);break;case"quarter":r=Ja(this,a)/3;break;case"second":r=(this-a)/1e3;break;case"minute":r=(this-a)/6e4;break;case"hour":r=(this-a)/36e5;break;case"day":r=(this-a-o)/864e5;break;case"week":r=(this-a-o)/6048e5;break;default:r=this-a}return n?r:ue(r)}function Ja(e,t){if(e.date()<t.date())return-Ja(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a)))||0}function Xa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Za(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a,o="moment",r="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=r+'[")]',this.format(e+t+n+a)}function to(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(E(e)&&e.isValid()||zn(e).isValid())?ka({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.from(zn(),e)}function oo(e,t){return this.isValid()&&(E(e)&&e.isValid()||zn(e).isValid())?ka({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.to(zn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=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 lo(){return this._locale}var co=1e3,uo=60*co,fo=60*uo,mo=3506328*fo;function po(e,t){return(e%t+t)%t}function go(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mo:new Date(e,t,n).valueOf()}function ho(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mo:Date.UTC(e,t,n)}function _o(e){var t,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ho:go,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=po(t+(this._isUTC?0:this.utcOffset()*uo),fo);break;case"minute":t=this._d.valueOf(),t-=po(t,uo);break;case"second":t=this._d.valueOf(),t-=po(t,co)}return this._d.setTime(t),o.updateOffset(this,!0),this}function bo(e){var t,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ho:go,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-po(t+(this._isUTC?0:this.utcOffset()*uo),fo)-1;break;case"minute":t=this._d.valueOf(),t+=uo-po(t,uo)-1;break;case"second":t=this._d.valueOf(),t+=co-po(t,co)-1}return this._d.setTime(t),o.updateOffset(this,!0),this}function yo(){return this._d.valueOf()-6e4*(this._offset||0)}function vo(){return Math.floor(this.valueOf()/1e3)}function Ao(){return new Date(this.valueOf())}function So(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Eo(){return this.isValid()?this.toISOString():null}function Co(){return b(this)}function To(){return p({},_(this))}function Io(){return _(this).overflow}function ko(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Do(e,t){var n,a,r,i=this._eras||bn("en")._eras;for(n=0,a=i.length;n<a;++n){switch(typeof i[n].since){case"string":r=o(i[n].since).startOf("day"),i[n].since=r.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=o(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf()}}return i}function xo(e,t,n){var a,o,r,i,s,l=this.eras();for(e=e.toUpperCase(),a=0,o=l.length;a<o;++a)if(r=l[a].name.toUpperCase(),i=l[a].abbr.toUpperCase(),s=l[a].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[a];break;case"NNNN":if(r===e)return l[a];break;case"NNNNN":if(s===e)return l[a]}else if([r,i,s].indexOf(e)>=0)return l[a]}function Mo(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n}function Po(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].name;if(a[e].until<=n&&n<=a[e].since)return a[e].name}return""}function Oo(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].narrow;if(a[e].until<=n&&n<=a[e].since)return a[e].narrow}return""}function Ro(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].abbr;if(a[e].until<=n&&n<=a[e].since)return a[e].abbr}return""}function No(){var e,t,n,a,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,a=this.clone().startOf("day").valueOf(),r[e].since<=a&&a<=r[e].until||r[e].until<=a&&a<=r[e].since)return(this.year()-o(r[e].since).year())*n+r[e].offset;return this.year()}function Lo(e){return l(this,"_erasNameRegex")||Ho.call(this),e?this._erasNameRegex:this._erasRegex}function $o(e){return l(this,"_erasAbbrRegex")||Ho.call(this),e?this._erasAbbrRegex:this._erasRegex}function Uo(e){return l(this,"_erasNarrowRegex")||Ho.call(this),e?this._erasNarrowRegex:this._erasRegex}function jo(e,t){return t.erasAbbrRegex(e)}function Fo(e,t){return t.erasNameRegex(e)}function qo(e,t){return t.erasNarrowRegex(e)}function Yo(e,t){return t._eraYearOrdinalRegex||De}function Ho(){var e,t,n=[],a=[],o=[],r=[],i=this.eras();for(e=0,t=i.length;e<t;++e)a.push(Ue(i[e].name)),n.push(Ue(i[e].abbr)),o.push(Ue(i[e].narrow)),r.push(Ue(i[e].name)),r.push(Ue(i[e].abbr)),r.push(Ue(i[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Bo(e,t){q(0,[e,e.length],0,t)}function Go(e){return Jo.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vo(e){return Jo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wo(){return Et(this.year(),1,4)}function Qo(){return Et(this.isoWeekYear(),1,4)}function zo(){var e=this.localeData()._week;return Et(this.year(),e.dow,e.doy)}function Ko(){var e=this.localeData()._week;return Et(this.weekYear(),e.dow,e.doy)}function Jo(e,t,n,a,o){var r;return null==e?wt(this,a,o).year:(t>(r=Et(e,a,o))&&(t=r),Xo.call(this,e,t,n,a,o))}function Xo(e,t,n,a,o){var r=St(e,t,n,a,o),i=vt(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Zo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),Ne("N",jo),Ne("NN",jo),Ne("NNN",jo),Ne("NNNN",Fo),Ne("NNNNN",qo),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var o=n._locale.erasParse(e,a,n._strict);o?_(n).era=o:_(n).invalidEra=e})),Ne("y",De),Ne("yy",De),Ne("yyy",De),Ne("yyyy",De),Ne("yo",Yo),Fe(["y","yy","yyy","yyyy"],Be),Fe(["yo"],(function(e,t,n,a){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Be]=n._locale.eraYearOrdinalParse(e,o):t[Be]=parseInt(e,10)})),q(0,["gg",2],0,(function(){return this.weekYear()%100})),q(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Bo("gggg","weekYear"),Bo("ggggg","weekYear"),Bo("GGGG","isoWeekYear"),Bo("GGGGG","isoWeekYear"),ae("weekYear","gg"),ae("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Ne("G",xe),Ne("g",xe),Ne("GG",we,ye),Ne("gg",we,ye),Ne("GGGG",Ie,Ae),Ne("gggg",Ie,Ae),Ne("GGGGG",ke,Se),Ne("ggggg",ke,Se),qe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=de(e)})),qe(["gg","GG"],(function(e,t,n,a){t[a]=o.parseTwoDigitYear(e)})),q("Q",0,"Qo","quarter"),ae("quarter","Q"),se("quarter",7),Ne("Q",be),Fe("Q",(function(e,t){t[Ge]=3*(de(e)-1)})),q("D",["DD",2],"Do","date"),ae("date","D"),se("date",9),Ne("D",we),Ne("DD",we,ye),Ne("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],Ve),Fe("Do",(function(e,t){t[Ve]=de(e.match(we)[0])}));var er=fe("Date",!0);function tr(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}q("DDD",["DDDD",3],"DDDo","dayOfYear"),ae("dayOfYear","DDD"),se("dayOfYear",4),Ne("DDD",Te),Ne("DDDD",ve),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),q("m",["mm",2],0,"minute"),ae("minute","m"),se("minute",14),Ne("m",we),Ne("mm",we,ye),Fe(["m","mm"],Qe);var nr=fe("Minutes",!1);q("s",["ss",2],0,"second"),ae("second","s"),se("second",15),Ne("s",we),Ne("ss",we,ye),Fe(["s","ss"],ze);var ar,or,rr=fe("Seconds",!1);for(q("S",0,0,(function(){return~~(this.millisecond()/100)})),q(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),q(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),q(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),q(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),q(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),q(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ae("millisecond","ms"),se("millisecond",16),Ne("S",Te,be),Ne("SS",Te,ye),Ne("SSS",Te,ve),ar="SSSS";ar.length<=9;ar+="S")Ne(ar,De);function ir(e,t){t[Ke]=de(1e3*("0."+e))}for(ar="S";ar.length<=9;ar+="S")Fe(ar,ir);function sr(){return this._isUTC?"UTC":""}function lr(){return this._isUTC?"Coordinated Universal Time":""}or=fe("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var cr=w.prototype;function ur(e){return zn(1e3*e)}function dr(){return zn.apply(null,arguments).parseZone()}function fr(e){return e}cr.add=Ra,cr.calendar=Ya,cr.clone=Ha,cr.diff=Ka,cr.endOf=bo,cr.format=to,cr.from=no,cr.fromNow=ao,cr.to=oo,cr.toNow=ro,cr.get=ge,cr.invalidAt=Io,cr.isAfter=Ba,cr.isBefore=Ga,cr.isBetween=Va,cr.isSame=Wa,cr.isSameOrAfter=Qa,cr.isSameOrBefore=za,cr.isValid=Co,cr.lang=so,cr.locale=io,cr.localeData=lo,cr.max=Jn,cr.min=Kn,cr.parsingFlags=To,cr.set=he,cr.startOf=_o,cr.subtract=Na,cr.toArray=So,cr.toObject=wo,cr.toDate=Ao,cr.toISOString=Za,cr.inspect=eo,"undefined"!=typeof Symbol&&null!=Symbol.for&&(cr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),cr.toJSON=Eo,cr.toString=Xa,cr.unix=vo,cr.valueOf=yo,cr.creationData=ko,cr.eraName=Po,cr.eraNarrow=Oo,cr.eraAbbr=Ro,cr.eraYear=No,cr.year=_t,cr.isLeapYear=bt,cr.weekYear=Go,cr.isoWeekYear=Vo,cr.quarter=cr.quarters=Zo,cr.month=dt,cr.daysInMonth=ft,cr.week=cr.weeks=Dt,cr.isoWeek=cr.isoWeeks=xt,cr.weeksInYear=zo,cr.weeksInWeekYear=Ko,cr.isoWeeksInYear=Wo,cr.isoWeeksInISOWeekYear=Qo,cr.date=er,cr.day=cr.days=Gt,cr.weekday=Vt,cr.isoWeekday=Wt,cr.dayOfYear=tr,cr.hour=cr.hours=on,cr.minute=cr.minutes=nr,cr.second=cr.seconds=rr,cr.millisecond=cr.milliseconds=or,cr.utcOffset=ga,cr.utc=_a,cr.local=ba,cr.parseZone=ya,cr.hasAlignedHourOffset=va,cr.isDST=Aa,cr.isLocal=wa,cr.isUtcOffset=Ea,cr.isUtc=Ca,cr.isUTC=Ca,cr.zoneAbbr=sr,cr.zoneName=lr,cr.dates=T("dates accessor is deprecated. Use date instead.",er),cr.months=T("months accessor is deprecated. Use month instead",dt),cr.years=T("years accessor is deprecated. Use year instead",_t),cr.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ha),cr.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sa);var mr=O.prototype;function pr(e,t,n,a){var o=bn(),r=g().set(a,t);return o[n](r,e)}function gr(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return pr(e,t,n,"month");var a,o=[];for(a=0;a<12;a++)o[a]=pr(e,a,n,"month");return o}function hr(e,t,n,a){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var o,r=bn(),i=e?r._week.dow:0,s=[];if(null!=n)return pr(t,(n+i)%7,a,"day");for(o=0;o<7;o++)s[o]=pr(t,(o+i)%7,a,"day");return s}function _r(e,t){return gr(e,t,"months")}function br(e,t){return gr(e,t,"monthsShort")}function yr(e,t,n){return hr(e,t,n,"weekdays")}function vr(e,t,n){return hr(e,t,n,"weekdaysShort")}function Ar(e,t,n){return hr(e,t,n,"weekdaysMin")}mr.calendar=N,mr.longDateFormat=W,mr.invalidDate=z,mr.ordinal=X,mr.preparse=fr,mr.postformat=fr,mr.relativeTime=ee,mr.pastFuture=te,mr.set=M,mr.eras=Do,mr.erasParse=xo,mr.erasConvertYear=Mo,mr.erasAbbrRegex=$o,mr.erasNameRegex=Lo,mr.erasNarrowRegex=Uo,mr.months=it,mr.monthsShort=st,mr.monthsParse=ct,mr.monthsRegex=pt,mr.monthsShortRegex=mt,mr.week=Ct,mr.firstDayOfYear=kt,mr.firstDayOfWeek=It,mr.weekdays=Ft,mr.weekdaysMin=Yt,mr.weekdaysShort=qt,mr.weekdaysParse=Bt,mr.weekdaysRegex=Qt,mr.weekdaysShortRegex=zt,mr.weekdaysMinRegex=Kt,mr.isPM=nn,mr.meridiem=rn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",gn),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",bn);var Sr=Math.abs;function wr(){var e=this._data;return this._milliseconds=Sr(this._milliseconds),this._days=Sr(this._days),this._months=Sr(this._months),e.milliseconds=Sr(e.milliseconds),e.seconds=Sr(e.seconds),e.minutes=Sr(e.minutes),e.hours=Sr(e.hours),e.months=Sr(e.months),e.years=Sr(e.years),this}function Er(e,t,n,a){var o=ka(t,n);return e._milliseconds+=a*o._milliseconds,e._days+=a*o._days,e._months+=a*o._months,e._bubble()}function Cr(e,t){return Er(this,e,t,1)}function Tr(e,t){return Er(this,e,t,-1)}function Ir(e){return e<0?Math.floor(e):Math.ceil(e)}function kr(){var e,t,n,a,o,r=this._milliseconds,i=this._days,s=this._months,l=this._data;return r>=0&&i>=0&&s>=0||r<=0&&i<=0&&s<=0||(r+=864e5*Ir(xr(s)+i),i=0,s=0),l.milliseconds=r%1e3,e=ue(r/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,i+=ue(n/24),s+=o=ue(Dr(i)),i-=Ir(xr(o)),a=ue(s/12),s%=12,l.days=i,l.months=s,l.years=a,this}function Dr(e){return 4800*e/146097}function xr(e){return 146097*e/4800}function Mr(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=oe(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+Dr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xr(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}}function Pr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function Or(e){return function(){return this.as(e)}}var Rr=Or("ms"),Nr=Or("s"),Lr=Or("m"),$r=Or("h"),Ur=Or("d"),jr=Or("w"),Fr=Or("M"),qr=Or("Q"),Yr=Or("y");function Hr(){return ka(this)}function Br(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Gr(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vr=Gr("milliseconds"),Wr=Gr("seconds"),Qr=Gr("minutes"),zr=Gr("hours"),Kr=Gr("days"),Jr=Gr("months"),Xr=Gr("years");function Zr(){return ue(this.days()/7)}var ei=Math.round,ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,t,n,a,o){return o.relativeTime(t||1,!!n,e,a)}function ai(e,t,n,a){var o=ka(e).abs(),r=ei(o.as("s")),i=ei(o.as("m")),s=ei(o.as("h")),l=ei(o.as("d")),c=ei(o.as("M")),u=ei(o.as("w")),d=ei(o.as("y")),f=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=a,ni.apply(null,f)}function oi(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ri(e,t){return void 0!==ti[e]&&(void 0===t?ti[e]:(ti[e]=t,"s"===e&&(ti.ss=t-1),!0))}function ii(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,a,o=!1,r=ti;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(r=Object.assign({},ti,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),a=ai(this,!o,r,n=this.localeData()),o&&(a=n.pastFuture(+this,a)),n.postformat(a)}var si=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ci(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,o,r,i,s,l=si(this._milliseconds)/1e3,c=si(this._days),u=si(this._months),d=this.asSeconds();return d?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(u/12),u%=12,a=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",r=li(this._months)!==li(d)?"-":"",i=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",o+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(c?i+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+a+"S":"")):"P0D"}var ui=ia.prototype;return ui.isValid=oa,ui.abs=wr,ui.add=Cr,ui.subtract=Tr,ui.as=Mr,ui.asMilliseconds=Rr,ui.asSeconds=Nr,ui.asMinutes=Lr,ui.asHours=$r,ui.asDays=Ur,ui.asWeeks=jr,ui.asMonths=Fr,ui.asQuarters=qr,ui.asYears=Yr,ui.valueOf=Pr,ui._bubble=kr,ui.clone=Hr,ui.get=Br,ui.milliseconds=Vr,ui.seconds=Wr,ui.minutes=Qr,ui.hours=zr,ui.days=Kr,ui.weeks=Zr,ui.months=Jr,ui.years=Xr,ui.humanize=ii,ui.toISOString=ci,ui.toString=ci,ui.toJSON=ci,ui.locale=io,ui.localeData=lo,ui.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),ui.lang=so,q("X",0,0,"unix"),q("x",0,0,"valueOf"),Ne("x",xe),Ne("X",Oe),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(de(e))})),o.version="2.29.1",r(zn),o.fn=cr,o.min=Zn,o.max=ea,o.now=ta,o.utc=g,o.unix=ur,o.months=_r,o.isDate=f,o.locale=gn,o.invalid=y,o.duration=ka,o.isMoment=E,o.weekdays=yr,o.parseZone=dr,o.localeData=bn,o.isDuration=sa,o.monthsShort=br,o.weekdaysMin=Ar,o.defineLocale=hn,o.updateLocale=_n,o.locales=yn,o.weekdaysShort=vr,o.normalizeUnits=oe,o.relativeTimeRounding=oi,o.relativeTimeThreshold=ri,o.calendarFormat=qa,o.prototype=cr,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()},"./node_modules/ms/index.js":e=>{var t=1e3,n=60*t,a=60*n,o=24*a,r=7*o,i=365.25*o;function s(e,t,n,a){var o=t>=1.5*n;return Math.round(e/n)+" "+a+(o?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*i;case"weeks":case"week":case"w":return l*r;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*a;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var r=Math.abs(e);if(r>=o)return s(e,r,o,"day");if(r>=a)return s(e,r,a,"hour");if(r>=n)return s(e,r,n,"minute");if(r>=t)return s(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=o)return Math.round(e/o)+"d";if(r>=a)return Math.round(e/a)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"./node_modules/mustache/mustache.js":function(e){e.exports=function(){"use strict";var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function n(e){return"function"==typeof e}function a(e){return t(e)?"array":typeof e}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function r(e,t){return null!=e&&"object"==typeof e&&t in e}function i(e,t){return null!=e&&"object"!=typeof e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var s=RegExp.prototype.test;function l(e,t){return s.call(e,t)}var c=/\S/;function u(e){return!l(c,e)}var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function f(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return d[e]}))}var m=/\s*/,p=/\s+/,g=/\s*=/,h=/\s*\}/,_=/#|\^|\/|>|\{|&|=|!/;function b(e,n){if(!e)return[];var a,r,i,s=!1,l=[],c=[],d=[],f=!1,b=!1,S="",w=0;function C(){if(f&&!b)for(;d.length;)delete c[d.pop()];else d=[];f=!1,b=!1}function T(e){if("string"==typeof e&&(e=e.split(p,2)),!t(e)||2!==e.length)throw new Error("Invalid tags: "+e);a=new RegExp(o(e[0])+"\\s*"),r=new RegExp("\\s*"+o(e[1])),i=new RegExp("\\s*"+o("}"+e[1]))}T(n||E.tags);for(var I,k,D,x,M,P,O=new A(e);!O.eos();){if(I=O.pos,D=O.scanUntil(a))for(var R=0,N=D.length;R<N;++R)u(x=D.charAt(R))?(d.push(c.length),S+=x):(b=!0,s=!0,S+=" "),c.push(["text",x,I,I+1]),I+=1,"\n"===x&&(C(),S="",w=0,s=!1);if(!O.scan(a))break;if(f=!0,k=O.scan(_)||"name",O.scan(m),"="===k?(D=O.scanUntil(g),O.scan(g),O.scanUntil(r)):"{"===k?(D=O.scanUntil(i),O.scan(h),O.scanUntil(r),k="&"):D=O.scanUntil(r),!O.scan(r))throw new Error("Unclosed tag at "+O.pos);if(M=">"==k?[k,D,I,O.pos,S,w,s]:[k,D,I,O.pos],w++,c.push(M),"#"===k||"^"===k)l.push(M);else if("/"===k){if(!(P=l.pop()))throw new Error('Unopened section "'+D+'" at '+I);if(P[1]!==D)throw new Error('Unclosed section "'+P[1]+'" at '+I)}else"name"===k||"{"===k||"&"===k?b=!0:"="===k&&T(D)}if(C(),P=l.pop())throw new Error('Unclosed section "'+P[1]+'" at '+O.pos);return v(y(c))}function y(e){for(var t,n,a=[],o=0,r=e.length;o<r;++o)(t=e[o])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(a.push(t),n=t));return a}function v(e){for(var t,n=[],a=n,o=[],r=0,i=e.length;r<i;++r)switch((t=e[r])[0]){case"#":case"^":a.push(t),o.push(t),a=t[4]=[];break;case"/":o.pop()[5]=t[2],a=o.length>0?o[o.length-1][4]:n;break;default:a.push(t)}return n}function A(e){this.string=e,this.tail=e,this.pos=0}function S(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function w(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}A.prototype.eos=function(){return""===this.tail},A.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},A.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},S.prototype.push=function(e){return new S(e,this)},S.prototype.lookup=function(e){var t,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var o,s,l,c=this,u=!1;c;){if(e.indexOf(".")>0)for(o=c.view,s=e.split("."),l=0;null!=o&&l<s.length;)l===s.length-1&&(u=r(o,s[l])||i(o,s[l])),o=o[s[l++]];else o=c.view[e],u=r(c.view,e);if(u){t=o;break}c=c.parent}a[e]=t}return n(t)&&(t=t.call(this.view)),t},w.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},w.prototype.parse=function(e,t){var n=this.templateCache,a=e+":"+(t||E.tags).join(":"),o=void 0!==n,r=o?n.get(a):void 0;return null==r&&(r=b(e,t),o&&n.set(a,r)),r},w.prototype.render=function(e,t,n,a){var o=this.getConfigTags(a),r=this.parse(e,o),i=t instanceof S?t:new S(t,void 0);return this.renderTokens(r,i,n,e,a)},w.prototype.renderTokens=function(e,t,n,a,o){for(var r,i,s,l="",c=0,u=e.length;c<u;++c)s=void 0,"#"===(i=(r=e[c])[0])?s=this.renderSection(r,t,n,a,o):"^"===i?s=this.renderInverted(r,t,n,a,o):">"===i?s=this.renderPartial(r,t,n,o):"&"===i?s=this.unescapedValue(r,t):"name"===i?s=this.escapedValue(r,t,o):"text"===i&&(s=this.rawValue(r)),void 0!==s&&(l+=s);return l},w.prototype.renderSection=function(e,a,o,r,i){var s=this,l="",c=a.lookup(e[1]);function u(e){return s.render(e,a,o,i)}if(c){if(t(c))for(var d=0,f=c.length;d<f;++d)l+=this.renderTokens(e[4],a.push(c[d]),o,r,i);else if("object"==typeof c||"string"==typeof c||"number"==typeof c)l+=this.renderTokens(e[4],a.push(c),o,r,i);else if(n(c)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");null!=(c=c.call(a.view,r.slice(e[3],e[5]),u))&&(l+=c)}else l+=this.renderTokens(e[4],a,o,r,i);return l}},w.prototype.renderInverted=function(e,n,a,o,r){var i=n.lookup(e[1]);if(!i||t(i)&&0===i.length)return this.renderTokens(e[4],n,a,o,r)},w.prototype.indentPartial=function(e,t,n){for(var a=t.replace(/[^ \t]/g,""),o=e.split("\n"),r=0;r<o.length;r++)o[r].length&&(r>0||!n)&&(o[r]=a+o[r]);return o.join("\n")},w.prototype.renderPartial=function(e,t,a,o){if(a){var r=this.getConfigTags(o),i=n(a)?a(e[1]):a[e[1]];if(null!=i){var s=e[6],l=e[5],c=e[4],u=i;0==l&&c&&(u=this.indentPartial(i,c,s));var d=this.parse(u,r);return this.renderTokens(d,t,a,u,o)}}},w.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},w.prototype.escapedValue=function(e,t,n){var a=this.getConfigEscape(n)||E.escape,o=t.lookup(e[1]);if(null!=o)return"number"==typeof o&&a===E.escape?String(o):a(o)},w.prototype.rawValue=function(e){return e[1]},w.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},w.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var E={name:"mustache.js",version:"4.1.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){C.templateCache=e},get templateCache(){return C.templateCache}},C=new w;return E.clearCache=function(){return C.clearCache()},E.parse=function(e,t){return C.parse(e,t)},E.render=function(e,t,n,o){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+a(e)+'" was given as the first argument for mustache#render(template, view, partials)');return C.render(e,t,n,o)},E.escape=f,E.Scanner=A,E.Context=S,E.Writer=w,E}()},"./node_modules/ng-csv/build/ng-csv.min.js":(e,t)=>{var n;n=window,document,angular.module("ngCsv.config",[]).value("ngCsv.config",{debug:!0}).config(["$compileProvider",function(e){angular.isDefined(e.urlSanitizationWhitelist)?e.urlSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|data):/):e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|data):/)}]),angular.module("ngCsv.directives",["ngCsv.services"]),angular.module("ngCsv.services",[]),angular.module("ngCsv",["ngCsv.config","ngCsv.services","ngCsv.directives","ngSanitize"]),e.exports===t&&(e.exports="ngCsv"),angular.module("ngCsv.services").service("CSV",["$q",function(e){var t="\r\n",n={"\\t":"\t","\\b":"\b","\\v":"\v","\\f":"\f","\\r":"\r"};this.stringifyField=function(e,t){return"locale"===t.decimalSep&&this.isFloat(e)?e.toLocaleString():"."!==t.decimalSep&&this.isFloat(e)?e.toString().replace(".",t.decimalSep):"string"==typeof e?(e=e.replace(/"/g,'""'),(t.quoteStrings||e.indexOf(",")>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=t.txtDelim+e+t.txtDelim),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},this.isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},this.stringify=function(n,a){var o=e.defer(),r=this,i="",s="",l=e.when(n).then((function(e){var n,l;angular.isDefined(a.header)&&a.header&&(n=[],angular.forEach(a.header,(function(e){this.push(r.stringifyField(e,a))}),n),l=n.join(a.fieldSep?a.fieldSep:","),s+=l+t);var c,u,d=[];angular.isArray(e)?d=e:angular.isFunction(e)&&(d=e()),angular.isDefined(a.label)&&a.label&&"boolean"==typeof a.label&&(c=[],angular.forEach(d[0],(function(e,t){this.push(r.stringifyField(t,a))}),c),u=c.join(a.fieldSep?a.fieldSep:","),s+=u+t),angular.forEach(d,(function(e,n){var o,i,l=angular.copy(d[n]);i=[];var c=a.columnOrder?a.columnOrder:l;angular.forEach(c,(function(e){var t=a.columnOrder?l[e]:e;this.push(r.stringifyField(t,a))}),i),o=i.join(a.fieldSep?a.fieldSep:","),s+=n<d.length?o+t:o})),a.addByteOrderMarker&&(i+="\ufeff"),i+=s,o.resolve(i)}));return"function"==typeof l.catch&&l.catch((function(e){o.reject(e)})),o.promise},this.isSpecialChar=function(e){return void 0!==n[e]},this.getSpecialChar=function(e){return n[e]}}]),angular.module("ngCsv.directives").directive("ngCsv",["$parse","$q","CSV","$document","$timeout",function(e,t,a,o,r){return{restrict:"AC",scope:{data:"&ngCsv",filename:"@filename",header:"&csvHeader",columnOrder:"&csvColumnOrder",txtDelim:"@textDelimiter",decimalSep:"@decimalSeparator",quoteStrings:"@quoteStrings",fieldSep:"@fieldSeparator",lazyLoad:"@lazyLoad",addByteOrderMarker:"@addBom",ngClick:"&",charset:"@charset",label:"&csvLabel"},controller:["$scope","$element","$attrs","$transclude",function(e,n,o){e.csv="",angular.isDefined(e.lazyLoad)&&"true"==e.lazyLoad||angular.isArray(e.data)&&e.$watch("data",(function(){e.buildCSV()}),!0),e.getFilename=function(){return e.filename||"download.csv"},e.buildCSV=function(){var r=t.defer();return n.addClass(o.ngCsvLoadingClass||"ng-csv-loading"),a.stringify(e.data(),function(){var t={txtDelim:e.txtDelim?e.txtDelim:'"',decimalSep:e.decimalSep?e.decimalSep:".",quoteStrings:e.quoteStrings,addByteOrderMarker:e.addByteOrderMarker};return angular.isDefined(o.csvHeader)&&(t.header=e.$eval(e.header)),angular.isDefined(o.csvColumnOrder)&&(t.columnOrder=e.$eval(e.columnOrder)),angular.isDefined(o.csvLabel)&&(t.label=e.$eval(e.label)),t.fieldSep=e.fieldSep?e.fieldSep:",",t.fieldSep=a.isSpecialChar(t.fieldSep)?a.getSpecialChar(t.fieldSep):t.fieldSep,t}()).then((function(t){e.csv=t,n.removeClass(o.ngCsvLoadingClass||"ng-csv-loading"),r.resolve(t)})),e.$apply(),r.promise}}],link:function(e,t){t.bind("click",(function(){e.buildCSV().then((function(){!function(){var t=e.charset||"utf-8",a=new Blob([e.csv],{type:"text/csv;charset="+t+";"});if(n.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a,e.getFilename());else{var i=angular.element('<div data-tap-disabled="true"><a></a></div>'),s=angular.element(i.children()[0]);s.attr("href",n.URL.createObjectURL(a)),s.attr("download",e.getFilename()),s.attr("target","_blank"),o.find("body").append(i),r((function(){s[0].click(),s.remove()}),null)}}()})),e.$apply()}))}}}])},"./node_modules/ng-embed/src/ng-embed.js":()=>{!function(){"use strict";function e(e,t,i,s,l,c,u,d){return{restrict:"AE",scope:!0,templateUrl:function(e,t){return t.embedTemplateUrl||c},link:function(c,f,m){var p=e("embed"),g=r(),h=c.$eval(m.embedOptions),_={};angular.copy(d,_),o(_,h);var b={calcDimensions:function(e){var t={width:null,height:null};return t.width=e.video.width,t.height=e.video.height,e.video.height&&e.video.width?t:e.video.height?(t.width=e.video.height/390*640,t):e.video.width?(t.height=t.width/640*390,t):(t.width=640,t.height=390,t)},getRequestConfig:function(){return{headers:{Authorization:void 0}}},youtubeEmbed:function(e,n){var o,r;if(e.match(u.youtube)){var s=b.calcDimensions(n);r={id:RegExp.$1,host:"youtube",width:s.width,height:s.height},n.video.details?o=i.get("https://www.googleapis.com/youtube/v3/videos?id="+r.id+"&key="+n.gdevAuth+"&part=snippet,statistics",b.getRequestConfig()).then((function(e){var o=void 0===n.video.autoPlay||!0===n.video.autoPlay?"?autoplay=1":"?autoplay=0",i=e.data.items[0];return r.title=i.snippet.title,r.thumbnail=i.snippet.thumbnails.medium.url,r.description=a(i.snippet.description,250,!0).replace(/\n/g," ").replace(/&#10;/g," "),r.rawDescription=i.snippet.description,r.views=i.statistics.viewCount,r.likes=i.statistics.likeCount,r.uploader=i.snippet.channelTitle,r.uploaderPage="https://www.youtube.com/channel/"+i.snippet.channelId,r.uploadDate=i.snippet.publishedAt,r.url=t.trustAsResourceUrl("https://www.youtube.com/watch?v="+i.id),r.embedSrc=t.trustAsResourceUrl("https://www.youtube.com/embed/"+r.id+o),r})):(r.embedSrc=t.trustAsResourceUrl("https://www.youtube.com/embed/"+r.id+"?autoplay=0"),o=l.resolve(r))}else o=l.reject();return o},vimeoEmbed:function(e,n){var o,r;if(e.match(u.vimeo)){var s=b.calcDimensions(n);r={id:RegExp.$3,host:"vimeo",width:s.width,height:s.height},n.video.details?o=i.get("https://vimeo.com/api/v2/video/"+r.id+".json",b.getRequestConfig()).then((function(e){var o=e.data,i=void 0===n.video.autoPlay||!0===n.video.autoPlay?"&autoplay=1":"&autoplay=0";return r.title=o[0].title,r.rawDescription=o[0].description.replace(/\n/g,"<br/>").replace(/&#10;/g,"<br/>"),r.description=a(o[0].description.replace(/((<|&lt;)br\s*\/*(>|&gt;)\r\n)/g," "),250,!0),r.thumbnail=o[0].thumbnail_medium,r.views=o[0].stats_number_of_plays,r.likes=o[0].stats_number_of_likes,r.uploader=o[0].user_name,r.uploaderPage=o[0].user_url,r.uploadDate=o[0].uploadDate,r.url=o[0].url,r.embedSrc=t.trustAsResourceUrl("//player.vimeo.com/video/"+o[0].id+"?title=0&byline=0&portrait=0"+i),r})):(r.embedSrc=t.trustAsResourceUrl("//player.vimeo.com/video/"+r.id+"?title=0&byline=0&portrait=0&autoplay=0"),o=l.resolve(r))}else o=l.reject();return o},embed:function(e,t){return b.youtubeEmbed(e,t).catch((function(){return b.vimeoEmbed(e,t)}))},embedBasic:function(e){return e.match(u.basicVideo)&&(c.video.basic=t.trustAsResourceUrl(RegExp.$1)),e},twitchtvEmbed:function(e,a){var o=e.match(u.twitchtv);if(o){var r=n(o),i=b.calcDimensions(a);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe src="https://player.twitch.tv/?channel='+e.split("/")[1]+'&!autoplay" height="'+i.height+'" width="'+i.width+'" autoplay="false" frameborder="0" scrolling="no" allowfullscreen="true"></iframe>');c.videoServices.push(n)}))}return e},dailymotionEmbed:function(e,a){var o=e.match(u.dailymotion);if(o){var r=n(o),i=b.calcDimensions(a);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe src="'+g+"//www.dailymotion.com/embed/video/"+e.split("/")[2]+'" height="'+i.height+'" width="'+i.width+'"></iframe>');c.videoServices.push(n)}))}return e},tedEmbed:function(e,a){var o=e.match(u.ted);if(o){var r=n(o),i=b.calcDimensions(a);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe src="https://embed.ted.com/talks/'+e.split("/")[2]+'.html" height="'+i.height+'" width="'+i.width+'"></iframe>');c.videoServices.push(n)}))}return e},dotsubEmbed:function(e,a){var o=e.match(u.dotsub);if(o){var r=n(o),i=b.calcDimensions(a);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe src="https://dotsub.com/media/'+e.split("/")[2]+'/embed/" width="'+i.width+'" height="'+i.height+'"></iframe>');c.videoServices.push(n)}))}return e},liveleakEmbed:function(e,a){var o=e.match(u.liveleak);if(o){var r=n(o),i=b.calcDimensions(a);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe src="'+g+"//www.liveleak.com/e/"+e.split("=")[1]+'" height="'+i.height+'" width="'+i.width+'"></iframe>');c.videoServices.push(n)}))}return e},ustreamEmbed:function(e,a){var o=e.match(u.ustream);if(o){var r=n(o),i=b.calcDimensions(a);angular.forEach(r,(function(e){var n=e.split("/");n.indexOf("embed")<0&&n.splice(1,0,"embed");var a=t.trustAsHtml('<iframe src="'+g+"//www."+n.join("/")+'" height="'+i.height+'" width="'+i.width+'"></iframe>');c.videoServices.push(a)}))}return e}},y=function(e){return e.match(u.basicAudio)&&(c.audio.url=t.trustAsResourceUrl(RegExp.$1)),e},v=function(e,a){var o=e.match(u.soundCloud);if(o){var r=n(o);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe height="160" scrolling="no" src="https://w.soundcloud.com/player/?url=https://'+e+"&auto_play="+a.soundCloudOptions.autoPlay+"&hide_related="+a.soundCloudOptions.hideRelated+"&show_comments="+a.soundCloudOptions.showComments+"&show_user="+a.soundCloudOptions.showUser+"&show_reposts="+a.soundCloudOptions.showReposts+"&visual="+a.soundCloudOptions.visual+"&download="+a.soundCloudOptions.download+"&color="+a.soundCloudOptions.themeColor+"&theme_color="+a.soundCloudOptions.themeColor+'"></iframe>');c.videoServices.push(n)}))}return e},A=function(e){var a=e.match(u.spotify);if(a){var o=n(a);angular.forEach(o,(function(e){var n=t.trustAsHtml('<iframe src="https://embed.spotify.com/?uri=spotify:track:'+e.split("/")[2]+'" height="80"></iframe>');c.audioServices.push(n)}))}return e},S=function(e){return e.match(u.basicImage)&&(c.image.url=RegExp.$1),e},w={encode:function(e){var t,n=(t={"&amp;":"&","&gt;":">","&lt;":"<"},e.replace(/&(amp|gt|lt);/g,(function(e){return t[e]})));return n=n.replace(/&amp;/gm,"")},getCode:function(e){return(e+"").replace(u.highlightCode,(function(e,t,n,a){var o=a;o=o.replace(/^([ \t]*)/g,"").replace(/[ \t]*$/g,""),o=(o=w.encode(o)).replace(/:\/\//g,"~P");var r,i=n.split("\n")[0];return i?r=hljs.highlightAuto(o,[i]):i=(r=hljs.highlightAuto(o)).language,'<pre><code class="ne-code hljs '+i+'">'+r.value+"</code></pre>"}))}},E=function(e){return e.match(u.pdf)&&(c.pdf.url=t.trustAsResourceUrl(RegExp.$1)),e},C=function(e,a){if(!window.twttr)return console.error(new ReferenceError("twttr is not defined. Load http://platform.twitter.com/widgets.js")),data;c.tweets=[];var o=e.match(u.twitter);if(o){var r=n(o);angular.forEach(r,(function(e){var n="https://api.twitter.com/1/statuses/oembed.json?omit_script=true&&url="+e+"&maxwidth="+a.tweetOptions.maxWidth+"&hide_media="+a.tweetOptions.hideMedia+"&hide_thread="+a.tweetOptions.hideThread+"&align="+a.tweetOptions.align+"&lang="+a.tweetOptions.lang;(parseInt(angular.version.major)>=1&&parseInt(angular.version.minor)>=6?i.jsonp(t.trustAsResourceUrl(n),{callbackParam:"JSON_CALLBACK"}):i.jsonp(n+"&callback=JSON_CALLBACK")).then((function(e){c.tweets.push(e.data.html),c.tweets.length==r.length&&s((function(){twttr.widgets.load()}),10)})).catch((function(e){console.error(e)}))}))}return e},T=function(e,a){var o=e.match(u.codepen);if(o){var r=n(o);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe scrolling="no" height="'+a.codepenHeight+'" src="'+e.replace(/\/pen\//,"/embed/")+"/?height="+a.codepenHeight+'" frameborder="no" allowtransparency="true" allowfullscreen="true"></iframe>');c.codeServices.push(n)}))}return e},I=function(e,a){var o=e.match(u.jsfiddle);if(o){var r=n(o);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe height="'+a.jsfiddleHeight+'" src="'+g+"//"+e+'/embedded"></iframe>');c.codeServices.push(n)}))}return e},k=function(e,a){var o=e.match(u.jsbin);if(o){var r=n(o);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe height="'+a.jsbinHeight+'" class="jsbin-embed foo" src="'+g+"//"+e+'/embed?html,js,output">Simple Animation Tests</iframe>');c.codeServices.push(n)}))}return e},D=function(e,a){var o=e.match(u.plunker);if(o){var r=n(o);angular.forEach(r,(function(e){var n=e.split("/")[2],o=-1===e.indexOf("?")?n:n.split("?")[0],r=t.trustAsHtml('<iframe class="ne-plunker" src="'+g+"//embed.plnkr.co/"+o+'" height="'+a.jsbinHeight+'"></iframe>');c.codeServices.push(r)}))}return e},x=function(e){var t=e.match(u.gist);if(t){var a=[];angular.forEach(t,(function(e){a.push(e.split("/")[2])})),c.gist=n(a)}return e},M=function(e,a){var o=e.match(u.ideone);if(o){var r=n(o);angular.forEach(r,(function(e){var n=t.trustAsHtml('<iframe src="'+g+"//ideone.com/embed/"+e.split("/")[1]+'" height="'+a.ideoneHeight+'"></iframe>');c.codeServices.push(n)}))}return e},P=function(e,t){return window.hljs?(e=w.getCode(e),s((function(){if(t.code.lineNumbers){var e=f.find(".ne-code");e.length>0&&angular.forEach(e,(function(e){for(var t=angular.element(e).addClass("has-numbering"),n=t.text().split("\n").length,a=angular.element("<ul/>").addClass("pre-numbering"),o=1;o<=n;o++){var r=angular.element("<li/>").text(o);a.append(r)}t.parent().append(a)}))}}),20),e):(console.error(new ReferenceError("hlsj (Highlight JS is not defined.")),e)};function O(e){c.video={},c.image={},c.pdf={},c.audio={},c.videoServices=[],c.audioServices=[],c.codeServices=[],c.gist=[],angular.isString(e)&&0!==e.length||(e=" ");var n=p(e,_).$$unwrapTrustedValue();_.video.embed&&(_.gdevAuth?b.embed(n,_).then((function(e){c.video=e})):console.error("Youtube authentication key is required to get data from youtube.")),n=_.basicVideo?b.embedBasic(n):n,n=_.audio.embed?y(n):n,n=_.image.embed?S(n):n,n=_.pdf.embed?E(n):n,n=_.tweetEmbed?C(n,_):n,n=_.twitchtvEmbed?b.twitchtvEmbed(n,_):n,n=_.dailymotionEmbed?b.dailymotionEmbed(n,_):n,n=_.tedEmbed?b.tedEmbed(n,_):n,n=_.dotsubEmbed?b.dotsubEmbed(n,_):n,n=_.liveleakEmbed?b.liveleakEmbed(n,_):n,n=_.ustreamEmbed?b.ustreamEmbed(n,_):n,n=_.soundCloudEmbed?v(n,_):n,n=_.spotifyEmbed?A(n):n,n=_.code.highlight?P(n,_):n,n=_.codepenEmbed?T(n,_):n,n=_.jsfiddleEmbed?I(n,_):n,n=_.jsbinEmbed?k(n,_):n,n=_.plunkerEmbed?D(n,_):n,n=_.githubgistEmbed?x(n,_):n,n=_.ideoneEmbed?M(n,_):n,s((function(e){c.neText=t.trustAsHtml(e)}),0,!0,n)}_.watchEmbedData?c.$watch(m.embedData,O):O(c.$eval(m.embedData))}}}function t(e,t,n,a,i){var s=new RegExp(":("+n.join("|")+"):","gi");return function(n,l){var c,u={};if(angular.copy(i,u),o(u,l),null!=n)return"object"==typeof n?n:(angular.isNumber(n)||(n=n.toString()),u.sanitizeHtml&&(c={"&":"&amp;",">":"&gt;","<":"&lt;"},n=n.replace(/[&<>]/g,(function(e){return c[e]}))),u.fontSmiley&&(n=function(e,t){var n=e.split(" ");return angular.forEach(n,(function(e,a){var o=t[e];o&&(n[a]='<i class="ne-emoticon" title="'+o.text+'">&#x'+o.code+"</i>")})),n.join(" ")}(n,t)),u.emoji&&(n=function(e,t){return e.replace(t,(function(e,t){return"<i class='emoticon emoticon-"+t+"' title=':"+t+":'></i>"}))}(n,s)),u.link&&(n=function(e,t,n,a){return e.replace(n,(function(e){var n=e;return a.test(e)||(n=r()+"//"+e),"cordova"==t?'<a href="#" onclick="window.open(\''+n+"', '_system', 'location=yes')\" >"+e+"</a>":'<a href="'+n+'" target="'+t+'">'+e+"</a>"}))}(n,u.linkTarget,a.url,a.protocol)),e.trustAsHtml(n))}}function n(e){for(var t={},n=[],a=0;a<e.length;a++)t[e[a]]||(t[e[a]]=!0,n.push(e[a]));return n}function a(e,t,n){var a=e.length>t,o=a?e.substr(0,t-1):e;return o=n&&a?o.substr(0,o.lastIndexOf(" ")):o,a?o+"...":o}function o(e){return angular.forEach(arguments,(function(t){t!==e&&angular.forEach(t,(function(t,n){e[n]&&e[n].constructor&&e[n].constructor===Object?o(e[n],t):e[n]=t}))})),e}function r(){return window.location.protocol.match(/https/)?"https:":"http:"}angular.module("ngEmbed",["ngSanitize"]).constant("NG_EMBED_BASIC_EMOTICONS",{":)":{text:":)",class:"smiley",code:"e60a"},":D":{text:":D",class:"happy",code:"e608"},":d":{text:":d",class:"happy",code:"e608"},":(":{text:":(",class:"sad",code:"e60e"},":/":{text:":/",class:"wondering",code:"e620"},":P":{text:":P",class:"tongue",code:"e60c"},":p":{text:":p",class:"tongue",code:"e60c"},"3:)":{text:"3:)",class:"evil",code:"e618"},"(^)":{text:"(^)",class:"thumbsup2",code:"e607"},";)":{text:";)",class:"wink",code:"e610"},":o":{text:":o",class:"shocked",code:"e61a"},"-_-":{text:"-_-",class:"neutral",code:"e61e"},"(y)":{text:"(y)",class:"thumbs-up",code:"e606"},":*":{text:":*",class:"heart",code:"e604"},"&lt;3":{text:"&lt;3",class:"heart",code:"e604"},"<3":{text:"<3",class:"heart",code:"e604"},"&lt;/3":{text:"&lt;/3",class:"heart-broken",code:"e605"},"</3":{text:"</3",class:"heart-broken",code:"e605"},"^_^":{text:"^_^",class:"grin",code:"e612"},"8-)":{text:"8-)",class:"cool",code:"e614"},"8|":{text:"8|",class:"cool",code:"e614"},":S":{text:":S",class:"confused",code:"e61c"},":s":{text:":s",class:"confused",code:"e61c"}}).constant("NG_EMBED_EMOJI_LIST",["bowtie","smile","laughing","blush","smiley","relaxed","smirk","heart_eyes","kissing_heart","kissing_closed_eyes","flushed","relieved","satisfied","grin","wink","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","grinning","kissing","winky_face","kissing_smiling_eyes","stuck_out_tongue","sleeping","worried","frowning","anguished","open_mouth","grimacing","confused","hushed","expressionless","unamused","sweat_smile","sweat","wow","disappointed_relieved","weary","pensive","disappointed","confounded","fearful","cold_sweat","persevere","cry","sob","joy","astonished","scream","neckbeard","tired_face","angry","rage","triumph","sleepy","yum","mask","sunglasses","dizzy_face","imp","smiling_imp","neutral_face","no_mouth","innocent","alien","yellow_heart","blue_heart","purple_heart","heart","green_heart","broken_heart","heartbeat","heartpulse","two_hearts","revolving_hearts","cupid","sparkling_heart","sparkles","star","star2","dizzy","boom","collision","anger","exclamation","question","grey_exclamation","grey_question","zzz","dash","sweat_drops","notes","musical_note","fire","hankey","poop","shit","\\+1","thumbsup","-1","thumbsdown","ok_hand","punch","facepunch","fist","v","wave","hand","raised_hand","open_hands","point_up","point_down","point_left","point_right","raised_hands","pray","point_up_2","clap","muscle","metal","fu","walking","runner","running","couple","family","two_men_holding_hands","two_women_holding_hands","dancer","dancers","ok_woman","no_good","information_desk_person","raising_hand","bride_with_veil","person_with_pouting_face","person_frowning","bow","couplekiss","couple_with_heart","massage","haircut","nail_care","boy","girl","woman","man","baby","older_woman","older_man","person_with_blond_hair","man_with_gua_pi_mao","man_with_turban","construction_worker","cop","angel","princess","smiley_cat","smile_cat","heart_eyes_cat","kissing_cat","smirk_cat","scream_cat","crying_cat_face","joy_cat","pouting_cat","japanese_ogre","japanese_goblin","see_no_evil","hear_no_evil","speak_no_evil","guardsman","skull","feet","lips","kiss","droplet","ear","eyes","nose","tongue","love_letter","bust_in_silhouette","busts_in_silhouette","speech_balloon","thought_balloon","feelsgood","finnadie","goberserk","godmode","hurtrealbad","rage1","rage2","rage3","rage4","suspect","trollface","sunny","umbrella","cloud","snowflake","snowman","zap","cyclone","foggy","ocean","cat","dog","mouse","hamster","rabbit","wolf","frog","tiger","koala","bear","pig","pig_nose","cow","boar","monkey_face","monkey","horse","racehorse","camel","sheep","elephant","panda_face","snake","bird","baby_chick","hatched_chick","hatching_chick","chicken","penguin","turtle","bug","honeybee","ant","beetle","snail","octopus","tropical_fish","fish","whale","whale2","dolphin","cow2","ram","rat","water_buffalo","tiger2","rabbit2","dragon","goat","rooster","dog2","pig2","mouse2","ox","dragon_face","blowfish","crocodile","dromedary_camel","leopard","cat2","poodle","paw_prints","bouquet","cherry_blossom","tulip","four_leaf_clover","rose","sunflower","hibiscus","maple_leaf","leaves","fallen_leaf","herb","mushroom","cactus","palm_tree","evergreen_tree","deciduous_tree","chestnut","seedling","blossom","ear_of_rice","shell","globe_with_meridians","sun_with_face","full_moon_with_face","new_moon_with_face","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","last_quarter_moon_with_face","first_quarter_moon_with_face","moon","earth_africa","earth_americas","earth_asia","volcano","milky_way","partly_sunny","octocat","squirrel","bamboo","gift_heart","dolls","school_satchel","mortar_board","flags","fireworks","sparkler","wind_chime","rice_scene","jack_o_lantern","ghost","santa","christmas_tree","gift","bell","no_bell","tanabata_tree","tada","confetti_ball","balloon","crystal_ball","cd","dvd","floppy_disk","camera","video_camera","movie_camera","computer","tv","iphone","phone","telephone","telephone_receiver","pager","fax","minidisc","vhs","sound","speaker","mute","loudspeaker","mega","hourglass","hourglass_flowing_sand","alarm_clock","watch","radio","satellite","loop","mag","mag_right","unlock","lock","lock_with_ink_pen","closed_lock_with_key","key","bulb","flashlight","high_brightness","low_brightness","electric_plug","battery","calling","email","mailbox","postbox","bath","bathtub","shower","toilet","wrench","nut_and_bolt","hammer","seat","moneybag","yen","dollar","pound","euro","credit_card","money_with_wings","e-mail","inbox_tray","outbox_tray","envelope","incoming_envelope","postal_horn","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","door","smoking","bomb","gun","hocho","pill","syringe","page_facing_up","page_with_curl","bookmark_tabs","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","scroll","clipboard","calendar","date","card_index","file_folder","open_file_folder","scissors","pushpin","paperclip","black_nib","pencil2","straight_ruler","triangular_ruler","closed_book","green_book","blue_book","orange_book","notebook","notebook_with_decorative_cover","ledger","books","bookmark","name_badge","microscope","telescope","newspaper","football","basketball","soccer","baseball","tennis","8ball","rugby_football","bowling","golf","mountain_bicyclist","bicyclist","horse_racing","snowboarder","swimmer","surfer","ski","spades","hearts","clubs","diamonds","gem","ring","trophy","musical_score","musical_keyboard","violin","space_invader","video_game","black_joker","flower_playing_cards","game_die","dart","mahjong","clapper","memo","pencil","book","art","microphone","headphones","trumpet","saxophone","guitar","shoe","sandal","high_heel","lipstick","boot","shirt","tshirt","necktie","womans_clothes","dress","running_shirt_with_sash","jeans","kimono","bikini","ribbon","tophat","crown","womans_hat","mans_shoe","closed_umbrella","briefcase","handbag","pouch","purse","eyeglasses","fishing_pole_and_fish","coffee","tea","sake","baby_bottle","beer","beers","cocktail","tropical_drink","wine_glass","fork_and_knife","pizza","hamburger","fries","poultry_leg","meat_on_bone","spaghetti","curry","fried_shrimp","bento","sushi","fish_cake","rice_ball","rice_cracker","rice","ramen","stew","oden","dango","egg","bread","doughnut","custard","icecream","ice_cream","shaved_ice","birthday","cake","cookie","chocolate_bar","candy","lollipop","honey_pot","apple","green_apple","tangerine","lemon","cherries","grapes","watermelon","strawberry","peach","melon","banana","pear","pineapple","sweet_potato","eggplant","tomato","corn","house","house_with_garden","school","office","post_office","hospital","bank","convenience_store","love_hotel","hotel","wedding","church","department_store","european_post_office","city_sunrise","city_sunset","japanese_castle","european_castle","tent","factory","tokyo_tower","japan","mount_fuji","sunrise_over_mountains","sunrise","stars","themoreyouknow","tmyk","statue_of_liberty","bridge_at_night","carousel_horse","rainbow","ferris_wheel","fountain","roller_coaster","ship","speedboat","boat","sailboat","rowboat","anchor","rocket","airplane","helicopter","steam_locomotive","tram","mountain_railway","bike","aerial_tramway","suspension_railway","mountain_cableway","tractor","blue_car","oncoming_automobile","car","red_car","taxi","oncoming_taxi","articulated_lorry","bus","oncoming_bus","rotating_light","police_car","oncoming_police_car","fire_engine","ambulance","minibus","truck","train","station","train2","bullettrain_front","bullettrain_side","light_rail","monorail","railway_car","trolleybus","ticket","fuelpump","vertical_traffic_light","traffic_light","warning","construction","beginner","atm","slot_machine","busstop","barber","hotsprings","checkered_flag","crossed_flags","izakaya_lantern","moyai","circus_tent","performing_arts","round_pushpin","triangular_flag_on_post","jp","kr","cn","us","fr","es","it","ru","gb","uk","de","one","two","three","four","five","six","seven","eight","nine","keycap_ten","1234","zero","hash","symbols","arrow_backward","arrow_down","arrow_forward","arrow_left","capital_abcd","abcd","abc","arrow_lower_left","arrow_lower_right","arrow_right","arrow_up","arrow_upper_left","arrow_upper_right","arrow_double_down","arrow_double_up","arrow_down_small","arrow_heading_down","arrow_heading_up","leftwards_arrow_with_hook","arrow_right_hook","left_right_arrow","arrow_up_down","arrow_up_small","arrows_clockwise","arrows_counterclockwise","rewind","fast_forward","information_source","ok","twisted_rightwards_arrows","repeat","repeat_one","new","top","up","cool","free","ng","cinema","koko","signal_strength","u5272","u5408","u55b6","u6307","u6708","u6709","u6e80","u7121","u7533","u7a7a","u7981","sa","restroom","mens","womens","baby_symbol","no_smoking","parking","wheelchair","metro","baggage_claim","accept","wc","potable_water","put_litter_in_its_place","secret","congratulations","m","passport_control","left_luggage","customs","ideograph_advantage","cl","sos","id","no_entry_sign","underage","no_mobile_phones","do_not_litter","non-potable_water","no_bicycles","no_pedestrians","children_crossing","no_entry","eight_spoked_asterisk","eight_pointed_black_star","heart_decoration","vs","vibration_mode","mobile_phone_off","chart","currency_exchange","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","six_pointed_star","negative_squared_cross_mark","a","b","ab","o2","diamond_shape_with_a_dot_inside","recycle","end","on","soon","clock1","clock130","clock10","clock1030","clock11","clock1130","clock12","clock1230","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","heavy_dollar_sign","copyright","registered","tm","x","heavy_exclamation_mark","bangbang","interrobang","o","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","white_flower","100","heavy_check_mark","ballot_box_with_check","radio_button","link","curly_loop","wavy_dash","part_alternation_mark","trident","black_square","white_square","white_check_mark","black_square_button","white_square_button","black_circle","white_circle","red_circle","large_blue_circle","large_blue_diamond","large_orange_diamond","small_blue_diamond","small_orange_diamond","small_red_triangle","small_red_triangle_down","shipit"]).constant("NG_EMBED_REGEXP_PATTERNS",{protocol:/^[a-z]+:\/\//i,url:/\b(?:(https?|ftp|file):\/\/|www\.)[-A-Z0-9+()&@$#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]/gi,basicVideo:/((?:https?|ftp|file):\/\/\S*\.(?:ogv|webm|mp4)(\?([\w=&_%\-]*))?)/gi,basicAudio:/((?:https?|ftp|file):\/\/\S*\.(?:wav|mp3|ogg)(\?([\w=&_%\-]*))?)/gi,basicImage:/((?:https?|ftp|file):\/\/\S*\.(?:gif|jpg|jpeg|tiff|png|svg|webp)(\?([\w=&_%\-]*))?)/gi,pdf:/((?:https?|ftp|file):\/\/\S*\.(?:pdf)(\?([\w=&_%\-]*))?)/gi,soundCloud:/soundcloud.com\/[a-zA-Z0-9-_]+\/[a-zA-Z0-9-_]+/gi,spotify:/spotify.com\/track\/[a-zA-Z0-9_]+/gi,highlightCode:/(`{3})(\s|[a-z]+)\s*([\s\S]*?[^`])\s*\1(?!`)/gm,codepen:/http:\/\/codepen.io\/([A-Za-z0-9_]+)\/pen\/([A-Za-z0-9_]+)/gi,gist:/gist.github.com\/[a-zA-Z0-9_-]+\/([a-zA-Z0-9]+)/gi,ideone:/ideone.com\/[a-zA-Z0-9]{6}/gi,jsbin:/jsbin.com\/[a-zA-Z0-9_]+\/[0-9_]+/gi,jsfiddle:/jsfiddle.net\/[a-zA-Z0-9_]+\/[a-zA-Z0-9_]+/gi,plunker:/plnkr.co\/edit\/[a-zA-Z0-9?=]+/gi,dotsub:/dotsub.com\/view\/[a-zA-Z0-9-]+/gi,dailymotion:/dailymotion.com\/video\/[a-zA-Z0-9-_]+/gi,liveleak:/liveleak.com\/view\?i=[a-zA-Z0-9_]+/gi,ted:/ted.com\/talks\/[a-zA-Z0-9_]+/gi,vimeo:/vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)*/gi,youtube:/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[?=&+%\w-]*/gi,twitchtv:/twitch.tv\/[a-zA_Z0-9_]+/gi,ustream:/ustream.tv\/[a-z\/0-9]*/gi,twitter:/https:\/\/twitter\.com\/\w+\/\w+\/\d+/gi}).constant("NG_EMBED_FILTER_DEFAULT_OPTIONS",{sanitizeHtml:!0,fontSmiley:!0,emoji:!0,link:!0,linkTarget:"_self"}).constant("NG_EMBED_DEFAULT_OPTIONS",{watchEmbedData:!1,sanitizeHtml:!0,fontSmiley:!0,emoji:!0,link:!0,linkTarget:"_self",pdf:{embed:!0},image:{embed:!1},audio:{embed:!0},code:{highlight:!0,lineNumbers:!1},basicVideo:!1,gdevAuth:null,video:{embed:!1,width:null,height:null,ytTheme:"dark",details:!1,thumbnailQuality:"medium"},tweetEmbed:!0,tweetOptions:{maxWidth:550,hideMedia:!1,hideThread:!1,align:"none",lang:"en"},twitchtvEmbed:!0,dailymotionEmbed:!0,tedEmbed:!0,dotsubEmbed:!0,liveleakEmbed:!0,ustreamEmbed:!0,soundCloudEmbed:!0,soundCloudOptions:{height:160,themeColor:"f50000",autoPlay:!1,hideRelated:!1,showComments:!0,showUser:!0,showReposts:!1,visual:!1,download:!1},spotifyEmbed:!0,codepenEmbed:!0,codepenHeight:300,jsfiddleEmbed:!0,jsfiddleHeight:300,jsbinEmbed:!0,jsbinHeight:300,plunkerEmbed:!0,githubgistEmbed:!0,ideoneEmbed:!0,ideoneHeight:300}).filter("embed",t).constant("NG_DEFAULT_TEMPLATE_URL","ng-embed-default-template.html").run(["$templateCache","NG_DEFAULT_TEMPLATE_URL",function(e,t){e.put(t,'<div ng-bind-html="neText"></div> <div class="ne-video" ng-if="video.host" class="fade"> <div class="ne-video-preview" ng-hide="nePlayVideo || !options.video.details"> <div class="ne-video-thumb" ng-click="nePlayVideo=!nePlayVideo"> <img ng-src="{{video.thumbnail}}" alt=""/> <i class="fa fa-play-circle-o"></i> </div> <div class="ne-video-detail"> <div class="ne-video-title"> <a ng-href="{{video.url}}">{{video.title}}</a> </div> <div class="ne-video-desc"> {{video.description}} </div> <div class="ne-video-stats"> <span><i class="fa fa-eye"></i> {{video.views}}</span> <span><i class="fa fa-heart"></i> {{video.likes}}</span> </div> </div> </div> <div class="ne-video-player" ng-if="nePlayVideo || !(options.video.details)"> <iframe ng-src="{{video.embedSrc}}" frameBorder="0" width="{{video.width}}" height="{{video.height}}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="ne-video" ng-if="video.basic"> <div class="ne-video-player"> <div class="player"> <video ng-src="{{video.basic}}" controls></video> </div> </div> </div> <div ng-init="neImageLong=false" ng-class="{false:\'ne-image\', true:\'ne-image ne-image-long\'}[neImageLong]" ng-if="image.url"> <div class="ne-image-wrapper"> <img ng-src="{{image.url}}" ng-click="neImageLong=!neImageLong" alt=""/> </div> </div> <div class="ne-pdf" ng-if="pdf.url"> <div class="ne-pdf-preview" ng-hide="neShowPdf"> <div class="ne-pdf-icon"> <i class="fa fa-file-pdf-o"></i> </div> <div class="ne-pdf-detail" > <div class="ne-pdf-title"> <a href="">{{pdf.url}}</a> </div> <div class="ne-pdf-view"> <button><i class="fa fa-download"></i> <a ng-href="{{pdf.url}}" target="_blank">Download</a></button> <button ng-click="neShowPdf=!neShowPdf"><i class="fa fa-eye"></i> View PDF</button> </div> </div> </div> <div class="ne-pdf-viewer" ng-if="neShowPdf" ng-show="neShowPdf"> <iframe ng-src="{{pdf.url}}" frameBorder="0"></iframe> </div> </div> <div class="ne-audio" ng-if="audio.url"> <audio ng-src="{{audio.url}}" controls></audio> </div> <div ng-if="tweets" ng-repeat="tweet in tweets"> <div ng-bind-html="tweet"></div> </div> <div ng-if="videoServices" class="ne-video" ng-repeat="v in videoServices"> <div class="ne-video-player"> <div class="player"> <div ng-bind-html="v"></div> </div> </div> </div> <div ng-if="audioServices" class="ne-audio" ng-repeat="a in audioServices"> <div ng-bind-html="a"></div> </div> <div ng-if="codeServices" class="ne-embed" ng-repeat="c in codeServices"> <div ng-bind-html="c"></div> </div> <div ng-if="gist" class="ne-gist" ng-repeat="g in gist"> <ne-gist id="{{g}}"></ne-gist> </div>')}]).directive("ngEmbed",e).directive("neGist",(function(){return{restrict:"EA",replace:!0,template:"<div></div>",link:function(e,t,n){!function(e,t){var n=document.createElement("iframe");n.setAttribute("width","100%"),n.setAttribute("frameborder","0"),n.id="gist-"+t,e.appendChild(n);var a='<html><head><base target="_parent"><style>table{font-size:12px;}</style></head><body onload="parent.document.getElementById(\''+n.id+'\').style.height=document.body.scrollHeight + \'px\'" style="margin:10px 0;"><script type="text/javascript">!function(){"use strict";window.retargetLinks=function(){ var gists=document.getElementsByClassName("gist");for(var i=0,links;i<gists.length;i++){links=gists[i].getElementsByTagName("a");for(var j=0;j<links.length;j++){ links[j].setAttribute("target","_blank");}}}}();<\/script><script type="text/javascript" src="https://gist.github.com/'+t+'.js" onload="retargetLinks()"><\/script></body></html>',o=n.document;n.contentDocument?o=n.contentDocument:n.contentWindow&&(o=n.contentWindow.document);o.open(),o.writeln(a),o.close()}(t[0],n.id)}}})),e.$inject=["$filter","$sce","$http","$timeout","$q","NG_DEFAULT_TEMPLATE_URL","NG_EMBED_REGEXP_PATTERNS","NG_EMBED_DEFAULT_OPTIONS"],t.$inject=["$sce","NG_EMBED_BASIC_EMOTICONS","NG_EMBED_EMOJI_LIST","NG_EMBED_REGEXP_PATTERNS","NG_EMBED_FILTER_DEFAULT_OPTIONS"]}()},"./node_modules/ng-js-tree/dist/ngJsTree.min.js":(e,t,n)=>{var a=n("./node_modules/jquery/dist/jquery.js"),o=n("./node_modules/jquery/dist/jquery.js");!function(e,t){"use strict";e.jstree.defaults.alltrigger=null,e.jstree.plugins.alltrigger=function(t,n){this.init=function(a,o){if(t){this.trigger=function(e,a){n.trigger.call(this,e,a),t(e.replace(".jstree","")+".jstree",a)};var r=e.vakata.context._trigger;e.vakata.context._trigger=function(e){r(e),t("context_"+e+".vakata")};var i=e.vakata.dnd._trigger;e.vakata.dnd._trigger=function(e,n,a){i(e,n,a),t("dnd_"+e+".vakata",n,a)}}n.init.call(this,a,o)}}}(a),function(e){"use strict";var t=e.module("ngJsTree",[]);t.controller("jsTreeCtrl",(function(){var t=1;this.nodesFingerprint=function(e){return e.__uiNodeId||(e.__uiNodeId=t++),""+e.__uiNodeId+(e.id||"")+(e.text||"")+(e.type||"")},this.changeWatcher=function(t,n){var a,o=function(){var a,o,r=[];if(t)for(var s=e.isFunction(t)?t():t,l=0,c=s.length;c>l;l++)o=s[l],a=n(o),i[a]=o,r.push(a);return r},r=function(e,t){var n,a,o=[],r={};for(n=0,a=t.length;a>n;n++)r[t[n]]=!0;for(n=0,a=e.length;a>n;n++)r[e[n]]||o.push(e[n]);return o},i={},s=function(e,t){var o,s,l,c,u={},d=r(t,e);for(o=0,s=d.length;s>o;o++){var f=d[o];l=i[f],delete i[f];var m=n(l);m===f?a.onRemoved(l):(u[m]=f,a.onChanged(l))}var p=r(e,t);for(o=0,s=p.length;s>o;o++)c=p[o],l=i[c],u[c]||a.onAdded(l)};return a={subscribe:function(e,t){e.$watch(o,(function(e,n){t&&!1===t(e,n)||s(e,n)}),!0)},onAdded:e.noop,onChanged:e.noop,onRemoved:e.noop}}})),t.directive("jsTree",["$timeout",function(t){return{restrict:"A",scope:{treeData:"=ngModel",treeEventsObj:"=?treeEventsObj",shouldApply:"&"},controller:"jsTreeCtrl",link:function(n,a,r,i){function s(e,t){return function(){var n=arguments,a=e.$parent.$eval(t);e.$root.$$phase?a.apply(e.$parent,n):e.$parent.$apply((function(){a.apply(e.$parent,n)}))}}var l=null,c=i.changeWatcher(n.treeData,i.nodesFingerprint),u=[],d=!1;n.destroy=function(){if(u=[],r.tree)if(-1!==r.tree.indexOf(".")){for(var e=r.tree.split("."),t=e.pop(),o=n.$parent,i=0;i<e.length;i++)o=o[e[i]];n.tree=o[t]=a}else n.tree=n.$parent[r.tree]=a;else n.tree=a;n.tree.jstree("destroy")},n.init=function(){n.tree.jstree(l),t((function(){!function(t,n,a){if(a.treeEvents)for(var r=a.treeEvents.split(";"),i=0;i<r.length;i++)if(r[i].length>0){var l=r[i].split(":")[0],c=r[i].split(":")[1];-1===l.indexOf(".")&&(l+=".jstree"),u.push(l),-1===l.indexOf(".vakata")?t.tree.on(l,s(t,c)):o(document).on(l,s(t,c))}e.isObject(t.treeEventsObj)&&e.forEach(t.treeEventsObj,(function(e,n){-1===n.indexOf(".")&&(n+=".jstree"),u.push(n),-1===n.indexOf(".vakata")?t.tree.on(n,(function(){var n=arguments;t.$root.$$phase?e.apply(t.$parent,n):t.$parent.$apply((function(){e.apply(t.$parent,n)}))})):o(document).on(n,(function(){var n=arguments;t.$root.$$phase?e.apply(t.$parent,n):t.$parent.$apply((function(){e.apply(t.$parent,n)}))}))}))}(n,0,r)}))},c.onChanged=function(t){e.isDefined(n.tree.jstree(!0).set_type)&&n.tree.jstree(!0).set_type(t.id,t.type),n.tree.jstree(!0).rename_node(t.id,t.text)},c.onAdded=function(e){t((function(){for(;d;);d=!0;var t=n.tree.jstree(!0).get_node(e.parent);n.tree.jstree(!0).create_node(t,e,"inside",(function(){d=!1}))||(d=!1)}))},c.onRemoved=function(e){n.tree.jstree(!0).delete_node(e.id)},c.subscribe(n,(function(){return!n.shouldApply||n.shouldApply()})),n.$watch((function(){var t=r.jsTree?n.$parent.$eval(r.jsTree):{};l={},e.copy(t,l);var a=JSON.stringify(l);return l.core?l.core.data=n.treeData:l.core={data:n.treeData},l.plugins?l.plugins.push("alltrigger"):l.plugins=["alltrigger"],l.alltrigger=function(e){n.$root.$$phase||-1!==u.indexOf(e)||n.$apply()},a}),(function(){n.destroy(),n.init()}))}}}])}(angular)},"./node_modules/ngclipboard/dist/ngclipboard.js":(e,t,n)=>{!function(){"use strict";var t,a,o="ngclipboard";e.exports?(t=n("./node_modules/angular/index-exposed.js"),a=n("./node_modules/clipboard/dist/clipboard.js"),e.exports=o):(t=window.angular,a=window.ClipboardJS),t.module(o,[]).directive("ngclipboard",(function(){return{restrict:"A",scope:{ngclipboardSuccess:"&",ngclipboardError:"&"},link:function(e,t){var n=new a(t[0]);n.on("success",(function(t){e.$apply((function(){e.ngclipboardSuccess({e:t})}))})),n.on("error",(function(t){e.$apply((function(){e.ngclipboardError({e:t})}))})),t.on("$destroy",(function(){n.destroy()}))}}}))}()},"./node_modules/perfect-scrollbar/index.js":(e,t,n)=>{"use strict";e.exports=n("./node_modules/perfect-scrollbar/src/js/main.js")},"./node_modules/perfect-scrollbar/src/js/lib/dom.js":e=>{"use strict";var t={};t.create=function(e,t){var n=document.createElement(e);return n.className=t,n},t.appendTo=function(e,t){return t.appendChild(e),e},t.css=function(e,t,n){return"object"==typeof t?function(e,t){for(var n in t){var a=t[n];"number"==typeof a&&(a=a.toString()+"px"),e.style[n]=a}return e}(e,t):void 0===n?function(e,t){return window.getComputedStyle(e)[t]}(e,t):function(e,t,n){return"number"==typeof n&&(n=n.toString()+"px"),e.style[t]=n,e}(e,t,n)},t.matches=function(e,t){return void 0!==e.matches?e.matches(t):e.msMatchesSelector(t)},t.remove=function(e){void 0!==e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)},t.queryChildren=function(e,n){return Array.prototype.filter.call(e.childNodes,(function(e){return t.matches(e,n)}))},e.exports=t},"./node_modules/perfect-scrollbar/src/js/lib/event-manager.js":e=>{"use strict";var t=function(e){this.element=e,this.events={}};t.prototype.bind=function(e,t){void 0===this.events[e]&&(this.events[e]=[]),this.events[e].push(t),this.element.addEventListener(e,t,!1)},t.prototype.unbind=function(e,t){var n=void 0!==t;this.events[e]=this.events[e].filter((function(a){return!(!n||a===t)||(this.element.removeEventListener(e,a,!1),!1)}),this)},t.prototype.unbindAll=function(){for(var e in this.events)this.unbind(e)};var n=function(){this.eventElements=[]};n.prototype.eventElement=function(e){var n=this.eventElements.filter((function(t){return t.element===e}))[0];return void 0===n&&(n=new t(e),this.eventElements.push(n)),n},n.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},n.prototype.unbind=function(e,t,n){this.eventElement(e).unbind(t,n)},n.prototype.unbindAll=function(){for(var e=0;e<this.eventElements.length;e++)this.eventElements[e].unbindAll()},n.prototype.once=function(e,t,n){var a=this.eventElement(e),o=function(e){a.unbind(t,o),n(e)};a.bind(t,o)},e.exports=n},"./node_modules/perfect-scrollbar/src/js/lib/guid.js":e=>{"use strict";e.exports=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}()},"./node_modules/perfect-scrollbar/src/js/lib/helper.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/dom.js"),o=t.toInt=function(e){return parseInt(e,10)||0};function r(e){return["ps--in-scrolling"].concat(void 0===e?["ps--x","ps--y"]:["ps--"+e])}t.isEditable=function(e){return a.matches(e,"input,[contenteditable]")||a.matches(e,"select,[contenteditable]")||a.matches(e,"textarea,[contenteditable]")||a.matches(e,"button,[contenteditable]")},t.removePsClasses=function(e){for(var t=0;t<e.classList.length;t++){var n=e.classList[t];0===n.indexOf("ps-")&&e.classList.remove(n)}},t.outerWidth=function(e){return o(a.css(e,"width"))+o(a.css(e,"paddingLeft"))+o(a.css(e,"paddingRight"))+o(a.css(e,"borderLeftWidth"))+o(a.css(e,"borderRightWidth"))},t.startScrolling=function(e,t){for(var n=r(t),a=0;a<n.length;a++)e.classList.add(n[a])},t.stopScrolling=function(e,t){for(var n=r(t),a=0;a<n.length;a++)e.classList.remove(n[a])},t.env={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof window&&null!==window.navigator.msMaxTouchPoints}},"./node_modules/perfect-scrollbar/src/js/main.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/plugin/destroy.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/initialize.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/update.js");e.exports={initialize:o,update:r,destroy:a}},"./node_modules/perfect-scrollbar/src/js/plugin/default-setting.js":e=>{"use strict";e.exports=function(){return{handlers:["click-rail","drag-scrollbar","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1,theme:"default"}}},"./node_modules/perfect-scrollbar/src/js/plugin/destroy.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/lib/dom.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js");e.exports=function(e){var t=r.get(e);t&&(t.event.unbindAll(),o.remove(t.scrollbarX),o.remove(t.scrollbarY),o.remove(t.scrollbarXRail),o.remove(t.scrollbarYRail),a.removePsClasses(e),r.remove(e))}},"./node_modules/perfect-scrollbar/src/js/plugin/handler/click-rail.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");e.exports=function(e){!function(e,t){function n(e){return e.getBoundingClientRect()}var a=function(e){e.stopPropagation()};t.event.bind(t.scrollbarY,"click",a),t.event.bind(t.scrollbarYRail,"click",(function(a){var i=a.pageY-window.pageYOffset-n(t.scrollbarYRail).top>t.scrollbarYTop?1:-1;r(e,"top",e.scrollTop+i*t.containerHeight),o(e),a.stopPropagation()})),t.event.bind(t.scrollbarX,"click",a),t.event.bind(t.scrollbarXRail,"click",(function(a){var i=a.pageX-window.pageXOffset-n(t.scrollbarXRail).left>t.scrollbarXLeft?1:-1;r(e,"left",e.scrollLeft+i*t.containerWidth),o(e),a.stopPropagation()}))}(e,a.get(e))}},"./node_modules/perfect-scrollbar/src/js/plugin/handler/drag-scrollbar.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/lib/dom.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),i=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),s=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");function l(e,t){var n=null,r=null;var l=function(o){!function(o){var r=n+o*t.railXRatio,i=Math.max(0,t.scrollbarXRail.getBoundingClientRect().left)+t.railXRatio*(t.railXWidth-t.scrollbarXWidth);t.scrollbarXLeft=r<0?0:r>i?i:r;var l=a.toInt(t.scrollbarXLeft*(t.contentWidth-t.containerWidth)/(t.containerWidth-t.railXRatio*t.scrollbarXWidth))-t.negativeScrollAdjustment;s(e,"left",l)}(o.pageX-r),i(e),o.stopPropagation(),o.preventDefault()},c=function(){a.stopScrolling(e,"x"),t.event.unbind(t.ownerDocument,"mousemove",l)};t.event.bind(t.scrollbarX,"mousedown",(function(i){r=i.pageX,n=a.toInt(o.css(t.scrollbarX,"left"))*t.railXRatio,a.startScrolling(e,"x"),t.event.bind(t.ownerDocument,"mousemove",l),t.event.once(t.ownerDocument,"mouseup",c),i.stopPropagation(),i.preventDefault()}))}function c(e,t){var n=null,r=null;var l=function(o){!function(o){var r=n+o*t.railYRatio,i=Math.max(0,t.scrollbarYRail.getBoundingClientRect().top)+t.railYRatio*(t.railYHeight-t.scrollbarYHeight);t.scrollbarYTop=r<0?0:r>i?i:r;var l=a.toInt(t.scrollbarYTop*(t.contentHeight-t.containerHeight)/(t.containerHeight-t.railYRatio*t.scrollbarYHeight));s(e,"top",l)}(o.pageY-r),i(e),o.stopPropagation(),o.preventDefault()},c=function(){a.stopScrolling(e,"y"),t.event.unbind(t.ownerDocument,"mousemove",l)};t.event.bind(t.scrollbarY,"mousedown",(function(i){r=i.pageY,n=a.toInt(o.css(t.scrollbarY,"top"))*t.railYRatio,a.startScrolling(e,"y"),t.event.bind(t.ownerDocument,"mousemove",l),t.event.once(t.ownerDocument,"mouseup",c),i.stopPropagation(),i.preventDefault()}))}e.exports=function(e){var t=r.get(e);l(e,t),c(e,t)}},"./node_modules/perfect-scrollbar/src/js/plugin/handler/keyboard.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/lib/dom.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),i=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),s=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");function l(e,t){var n=!1;t.event.bind(e,"mouseenter",(function(){n=!0})),t.event.bind(e,"mouseleave",(function(){n=!1}));t.event.bind(t.ownerDocument,"keydown",(function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)){var l=o.matches(t.scrollbarX,":focus")||o.matches(t.scrollbarY,":focus");if(n||l){var c=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(c){if("IFRAME"===c.tagName)c=c.contentDocument.activeElement;else for(;c.shadowRoot;)c=c.shadowRoot.activeElement;if(a.isEditable(c))return}var u=0,d=0;switch(r.which){case 37:u=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:d=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:u=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:d=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 33:d=90;break;case 32:d=r.shiftKey?90:-90;break;case 34:d=-90;break;case 35:d=r.ctrlKey?-t.contentHeight:-t.containerHeight;break;case 36:d=r.ctrlKey?e.scrollTop:t.containerHeight;break;default:return}s(e,"top",e.scrollTop-d),s(e,"left",e.scrollLeft+u),i(e),function(n,a){var o=e.scrollTop;if(0===n){if(!t.scrollbarYActive)return!1;if(0===o&&a>0||o>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var r=e.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===r&&n<0||r>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(u,d)&&r.preventDefault()}}}))}e.exports=function(e){l(e,r.get(e))}},"./node_modules/perfect-scrollbar/src/js/plugin/handler/mouse-wheel.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");function i(e,t){var n=!1;function a(a){var i=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(a),s=i[0],l=i[1];(function(t,n){var a=e.querySelector("textarea:hover, select[multiple]:hover, .ps-child:hover");if(a){var o=window.getComputedStyle(a);if(![o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/))return!1;var r=a.scrollHeight-a.clientHeight;if(r>0&&!(0===a.scrollTop&&n>0||a.scrollTop===r&&n<0))return!0;var i=a.scrollLeft-a.clientWidth;if(i>0&&!(0===a.scrollLeft&&t<0||a.scrollLeft===i&&t>0))return!0}return!1})(s,l)||(n=!1,t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(r(e,"top",l?e.scrollTop-l*t.settings.wheelSpeed:e.scrollTop+s*t.settings.wheelSpeed),n=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r(e,"left",s?e.scrollLeft+s*t.settings.wheelSpeed:e.scrollLeft-l*t.settings.wheelSpeed),n=!0):(r(e,"top",e.scrollTop-l*t.settings.wheelSpeed),r(e,"left",e.scrollLeft+s*t.settings.wheelSpeed)),o(e),(n=n||function(n,a){var o=e.scrollTop;if(0===n){if(!t.scrollbarYActive)return!1;if(0===o&&a>0||o>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var r=e.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===r&&n<0||r>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(s,l))&&(a.stopPropagation(),a.preventDefault()))}void 0!==window.onwheel?t.event.bind(e,"wheel",a):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",a)}e.exports=function(e){i(e,a.get(e))}},"./node_modules/perfect-scrollbar/src/js/plugin/handler/native-scroll.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js");e.exports=function(e){!function(e,t){t.event.bind(e,"scroll",(function(){o(e)}))}(e,a.get(e))}},"./node_modules/perfect-scrollbar/src/js/plugin/handler/selection.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),i=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");function s(e,t){var n=null,s={top:0,left:0};function l(){n&&(clearInterval(n),n=null),a.stopScrolling(e)}var c=!1;t.event.bind(t.ownerDocument,"selectionchange",(function(){var t;e.contains(0===(t=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"").toString().length?null:t.getRangeAt(0).commonAncestorContainer)?c=!0:(c=!1,l())})),t.event.bind(window,"mouseup",(function(){c&&(c=!1,l())})),t.event.bind(window,"keyup",(function(){c&&(c=!1,l())})),t.event.bind(window,"mousemove",(function(t){if(c){var u={x:t.pageX,y:t.pageY},d={left:e.offsetLeft,right:e.offsetLeft+e.offsetWidth,top:e.offsetTop,bottom:e.offsetTop+e.offsetHeight};u.x<d.left+3?(s.left=-5,a.startScrolling(e,"x")):u.x>d.right-3?(s.left=5,a.startScrolling(e,"x")):s.left=0,u.y<d.top+3?(s.top=d.top+3-u.y<5?-5:-20,a.startScrolling(e,"y")):u.y>d.bottom-3?(s.top=u.y-d.bottom+3<5?5:20,a.startScrolling(e,"y")):s.top=0,0===s.top&&0===s.left?l():n||(n=setInterval((function(){o.get(e)?(i(e,"top",e.scrollTop+s.top),i(e,"left",e.scrollLeft+s.left),r(e)):clearInterval(n)}),50))}}))}e.exports=function(e){s(e,o.get(e))}},"./node_modules/perfect-scrollbar/src/js/plugin/handler/touch.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),i=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");function s(e,t,n,a){function s(t,n){i(e,"top",e.scrollTop-n),i(e,"left",e.scrollLeft-t),r(e)}var l={},c=0,u={},d=null,f=!1,m=!1;function p(){f=!0}function g(){f=!1}function h(e){return e.targetTouches?e.targetTouches[0]:e}function _(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(!(!e.targetTouches||1!==e.targetTouches.length)||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function b(e){if(_(e)){m=!0;var t=h(e);l.pageX=t.pageX,l.pageY=t.pageY,c=(new Date).getTime(),null!==d&&clearInterval(d),e.stopPropagation()}}function y(n){if(!m&&t.settings.swipePropagation&&b(n),!f&&m&&_(n)){var a=h(n),o={pageX:a.pageX,pageY:a.pageY},r=o.pageX-l.pageX,i=o.pageY-l.pageY;s(r,i),l=o;var d=(new Date).getTime(),p=d-c;p>0&&(u.x=r/p,u.y=i/p,c=d),function(n,a){var o=e.scrollTop,r=e.scrollLeft,i=Math.abs(n),s=Math.abs(a);if(s>i){if(a<0&&o===t.contentHeight-t.containerHeight||a>0&&0===o)return!t.settings.swipePropagation}else if(i>s&&(n<0&&r===t.contentWidth-t.containerWidth||n>0&&0===r))return!t.settings.swipePropagation;return!0}(r,i)&&(n.stopPropagation(),n.preventDefault())}}function v(){!f&&m&&(m=!1,t.settings.swipeEasing&&(clearInterval(d),d=setInterval((function(){o.get(e)&&(u.x||u.y)?Math.abs(u.x)<.01&&Math.abs(u.y)<.01?clearInterval(d):(s(30*u.x,30*u.y),u.x*=.8,u.y*=.8):clearInterval(d)}),10)))}n?(t.event.bind(window,"touchstart",p),t.event.bind(window,"touchend",g),t.event.bind(e,"touchstart",b),t.event.bind(e,"touchmove",y),t.event.bind(e,"touchend",v)):a&&(window.PointerEvent?(t.event.bind(window,"pointerdown",p),t.event.bind(window,"pointerup",g),t.event.bind(e,"pointerdown",b),t.event.bind(e,"pointermove",y),t.event.bind(e,"pointerup",v)):window.MSPointerEvent&&(t.event.bind(window,"MSPointerDown",p),t.event.bind(window,"MSPointerUp",g),t.event.bind(e,"MSPointerDown",b),t.event.bind(e,"MSPointerMove",y),t.event.bind(e,"MSPointerUp",v)))}e.exports=function(e){(a.env.supportsTouch||a.env.supportsIePointer)&&s(e,o.get(e),a.env.supportsTouch,a.env.supportsIePointer)}},"./node_modules/perfect-scrollbar/src/js/plugin/initialize.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),r={"click-rail":n("./node_modules/perfect-scrollbar/src/js/plugin/handler/click-rail.js"),"drag-scrollbar":n("./node_modules/perfect-scrollbar/src/js/plugin/handler/drag-scrollbar.js"),keyboard:n("./node_modules/perfect-scrollbar/src/js/plugin/handler/keyboard.js"),wheel:n("./node_modules/perfect-scrollbar/src/js/plugin/handler/mouse-wheel.js"),touch:n("./node_modules/perfect-scrollbar/src/js/plugin/handler/touch.js"),selection:n("./node_modules/perfect-scrollbar/src/js/plugin/handler/selection.js")},i=n("./node_modules/perfect-scrollbar/src/js/plugin/handler/native-scroll.js");e.exports=function(e,t){e.classList.add("ps");var n=a.add(e,"object"==typeof t?t:{});e.classList.add("ps--theme_"+n.settings.theme),n.settings.handlers.forEach((function(t){r[t](e)})),i(e),o(e)}},"./node_modules/perfect-scrollbar/src/js/plugin/instances.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/plugin/default-setting.js"),r=n("./node_modules/perfect-scrollbar/src/js/lib/dom.js"),i=n("./node_modules/perfect-scrollbar/src/js/lib/event-manager.js"),s=n("./node_modules/perfect-scrollbar/src/js/lib/guid.js"),l={};function c(e,t){var n,s,l=this;for(var c in l.settings=o(),t)l.settings[c]=t[c];function u(){e.classList.add("ps--focus")}function d(){e.classList.remove("ps--focus")}l.containerWidth=null,l.containerHeight=null,l.contentWidth=null,l.contentHeight=null,l.isRtl="rtl"===r.css(e,"direction"),l.isNegativeScroll=(s=e.scrollLeft,e.scrollLeft=-1,n=e.scrollLeft<0,e.scrollLeft=s,n),l.negativeScrollAdjustment=l.isNegativeScroll?e.scrollWidth-e.clientWidth:0,l.event=new i,l.ownerDocument=e.ownerDocument||document,l.scrollbarXRail=r.appendTo(r.create("div","ps__scrollbar-x-rail"),e),l.scrollbarX=r.appendTo(r.create("div","ps__scrollbar-x"),l.scrollbarXRail),l.scrollbarX.setAttribute("tabindex",0),l.event.bind(l.scrollbarX,"focus",u),l.event.bind(l.scrollbarX,"blur",d),l.scrollbarXActive=null,l.scrollbarXWidth=null,l.scrollbarXLeft=null,l.scrollbarXBottom=a.toInt(r.css(l.scrollbarXRail,"bottom")),l.isScrollbarXUsingBottom=l.scrollbarXBottom==l.scrollbarXBottom,l.scrollbarXTop=l.isScrollbarXUsingBottom?null:a.toInt(r.css(l.scrollbarXRail,"top")),l.railBorderXWidth=a.toInt(r.css(l.scrollbarXRail,"borderLeftWidth"))+a.toInt(r.css(l.scrollbarXRail,"borderRightWidth")),r.css(l.scrollbarXRail,"display","block"),l.railXMarginWidth=a.toInt(r.css(l.scrollbarXRail,"marginLeft"))+a.toInt(r.css(l.scrollbarXRail,"marginRight")),r.css(l.scrollbarXRail,"display",""),l.railXWidth=null,l.railXRatio=null,l.scrollbarYRail=r.appendTo(r.create("div","ps__scrollbar-y-rail"),e),l.scrollbarY=r.appendTo(r.create("div","ps__scrollbar-y"),l.scrollbarYRail),l.scrollbarY.setAttribute("tabindex",0),l.event.bind(l.scrollbarY,"focus",u),l.event.bind(l.scrollbarY,"blur",d),l.scrollbarYActive=null,l.scrollbarYHeight=null,l.scrollbarYTop=null,l.scrollbarYRight=a.toInt(r.css(l.scrollbarYRail,"right")),l.isScrollbarYUsingRight=l.scrollbarYRight==l.scrollbarYRight,l.scrollbarYLeft=l.isScrollbarYUsingRight?null:a.toInt(r.css(l.scrollbarYRail,"left")),l.scrollbarYOuterWidth=l.isRtl?a.outerWidth(l.scrollbarY):null,l.railBorderYWidth=a.toInt(r.css(l.scrollbarYRail,"borderTopWidth"))+a.toInt(r.css(l.scrollbarYRail,"borderBottomWidth")),r.css(l.scrollbarYRail,"display","block"),l.railYMarginHeight=a.toInt(r.css(l.scrollbarYRail,"marginTop"))+a.toInt(r.css(l.scrollbarYRail,"marginBottom")),r.css(l.scrollbarYRail,"display",""),l.railYHeight=null,l.railYRatio=null}function u(e){return e.getAttribute("data-ps-id")}t.add=function(e,t){var n=s();return function(e,t){e.setAttribute("data-ps-id",t)}(e,n),l[n]=new c(e,t),l[n]},t.remove=function(e){delete l[u(e)],function(e){e.removeAttribute("data-ps-id")}(e)},t.get=function(e){return l[u(e)]}},"./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/lib/dom.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),i=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");function s(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}e.exports=function(e){var t,n=r.get(e);n.containerWidth=e.clientWidth,n.containerHeight=e.clientHeight,n.contentWidth=e.scrollWidth,n.contentHeight=e.scrollHeight,e.contains(n.scrollbarXRail)||((t=o.queryChildren(e,".ps__scrollbar-x-rail")).length>0&&t.forEach((function(e){o.remove(e)})),o.appendTo(n.scrollbarXRail,e)),e.contains(n.scrollbarYRail)||((t=o.queryChildren(e,".ps__scrollbar-y-rail")).length>0&&t.forEach((function(e){o.remove(e)})),o.appendTo(n.scrollbarYRail,e)),!n.settings.suppressScrollX&&n.containerWidth+n.settings.scrollXMarginOffset<n.contentWidth?(n.scrollbarXActive=!0,n.railXWidth=n.containerWidth-n.railXMarginWidth,n.railXRatio=n.containerWidth/n.railXWidth,n.scrollbarXWidth=s(n,a.toInt(n.railXWidth*n.containerWidth/n.contentWidth)),n.scrollbarXLeft=a.toInt((n.negativeScrollAdjustment+e.scrollLeft)*(n.railXWidth-n.scrollbarXWidth)/(n.contentWidth-n.containerWidth))):n.scrollbarXActive=!1,!n.settings.suppressScrollY&&n.containerHeight+n.settings.scrollYMarginOffset<n.contentHeight?(n.scrollbarYActive=!0,n.railYHeight=n.containerHeight-n.railYMarginHeight,n.railYRatio=n.containerHeight/n.railYHeight,n.scrollbarYHeight=s(n,a.toInt(n.railYHeight*n.containerHeight/n.contentHeight)),n.scrollbarYTop=a.toInt(e.scrollTop*(n.railYHeight-n.scrollbarYHeight)/(n.contentHeight-n.containerHeight))):n.scrollbarYActive=!1,n.scrollbarXLeft>=n.railXWidth-n.scrollbarXWidth&&(n.scrollbarXLeft=n.railXWidth-n.scrollbarXWidth),n.scrollbarYTop>=n.railYHeight-n.scrollbarYHeight&&(n.scrollbarYTop=n.railYHeight-n.scrollbarYHeight),function(e,t){var n={width:t.railXWidth};t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-e.scrollTop:n.top=t.scrollbarXTop+e.scrollTop,o.css(t.scrollbarXRail,n);var a={top:e.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?a.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:a.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?a.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:a.left=t.scrollbarYLeft+e.scrollLeft,o.css(t.scrollbarYRail,a),o.css(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),o.css(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(e,n),n.scrollbarXActive?e.classList.add("ps--active-x"):(e.classList.remove("ps--active-x"),n.scrollbarXWidth=0,n.scrollbarXLeft=0,i(e,"left",0)),n.scrollbarYActive?e.classList.add("ps--active-y"):(e.classList.remove("ps--active-y"),n.scrollbarYHeight=0,n.scrollbarYTop=0,i(e,"top",0))}},"./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t};e.exports=function(e,t,n){if(void 0===e)throw"You must provide an element to the update-scroll function";if(void 0===t)throw"You must provide an axis to the update-scroll function";if(void 0===n)throw"You must provide a value to the update-scroll function";"top"===t&&n<=0&&(e.scrollTop=n=0,e.dispatchEvent(o("ps-y-reach-start"))),"left"===t&&n<=0&&(e.scrollLeft=n=0,e.dispatchEvent(o("ps-x-reach-start")));var r=a.get(e);"top"===t&&n>=r.contentHeight-r.containerHeight&&((n=r.contentHeight-r.containerHeight)-e.scrollTop<=2?n=e.scrollTop:e.scrollTop=n,e.dispatchEvent(o("ps-y-reach-end"))),"left"===t&&n>=r.contentWidth-r.containerWidth&&((n=r.contentWidth-r.containerWidth)-e.scrollLeft<=2?n=e.scrollLeft:e.scrollLeft=n,e.dispatchEvent(o("ps-x-reach-end"))),void 0===r.lastTop&&(r.lastTop=e.scrollTop),void 0===r.lastLeft&&(r.lastLeft=e.scrollLeft),"top"===t&&n<r.lastTop&&e.dispatchEvent(o("ps-scroll-up")),"top"===t&&n>r.lastTop&&e.dispatchEvent(o("ps-scroll-down")),"left"===t&&n<r.lastLeft&&e.dispatchEvent(o("ps-scroll-left")),"left"===t&&n>r.lastLeft&&e.dispatchEvent(o("ps-scroll-right")),"top"===t&&n!==r.lastTop&&(e.scrollTop=r.lastTop=n,e.dispatchEvent(o("ps-scroll-y"))),"left"===t&&n!==r.lastLeft&&(e.scrollLeft=r.lastLeft=n,e.dispatchEvent(o("ps-scroll-x")))}},"./node_modules/perfect-scrollbar/src/js/plugin/update.js":(e,t,n)=>{"use strict";var a=n("./node_modules/perfect-scrollbar/src/js/lib/helper.js"),o=n("./node_modules/perfect-scrollbar/src/js/lib/dom.js"),r=n("./node_modules/perfect-scrollbar/src/js/plugin/instances.js"),i=n("./node_modules/perfect-scrollbar/src/js/plugin/update-geometry.js"),s=n("./node_modules/perfect-scrollbar/src/js/plugin/update-scroll.js");e.exports=function(e){var t=r.get(e);t&&(t.negativeScrollAdjustment=t.isNegativeScroll?e.scrollWidth-e.clientWidth:0,o.css(t.scrollbarXRail,"display","block"),o.css(t.scrollbarYRail,"display","block"),t.railXMarginWidth=a.toInt(o.css(t.scrollbarXRail,"marginLeft"))+a.toInt(o.css(t.scrollbarXRail,"marginRight")),t.railYMarginHeight=a.toInt(o.css(t.scrollbarYRail,"marginTop"))+a.toInt(o.css(t.scrollbarYRail,"marginBottom")),o.css(t.scrollbarXRail,"display","none"),o.css(t.scrollbarYRail,"display","none"),i(e),s(e,"top",e.scrollTop),s(e,"left",e.scrollLeft),o.css(t.scrollbarXRail,"display",""),o.css(t.scrollbarYRail,"display",""))}},"./node_modules/sdp-transform/lib/grammar.js":e=>{var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},"./node_modules/sdp-transform/lib/index.js":(e,t,n)=>{var a=n("./node_modules/sdp-transform/lib/parser.js"),o=n("./node_modules/sdp-transform/lib/writer.js");t.write=o,t.parse=a.parse,t.parseParams=a.parseParams,t.parseFmtpConfig=a.parseFmtpConfig,t.parsePayloads=a.parsePayloads,t.parseRemoteCandidates=a.parseRemoteCandidates,t.parseImageAttributes=a.parseImageAttributes,t.parseSimulcastStreamList=a.parseSimulcastStreamList},"./node_modules/sdp-transform/lib/parser.js":(e,t,n)=>{var a=function(e){return String(Number(e))===e?Number(e):e},o=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var r=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=a(e[1]);else for(var r=0;r<n.length;r+=1)null!=e[r+1]&&(t[n[r]]=a(e[r+1]))}(n.match(e.reg),r,e.names,e.name),e.push&&t[e.push].push(r)},r=n("./node_modules/sdp-transform/lib/grammar.js"),i=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],a=t;return e.split(/(\r\n|\r|\n)/).filter(i).forEach((function(e){var t=e[0],i=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),a=n[n.length-1]);for(var s=0;s<(r[t]||[]).length;s+=1){var l=r[t][s];if(l.reg.test(i))return o(l,a,i)}})),t.media=n,t};var s=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=a(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(s,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(a),o=0;o<n.length;o+=3)t.push({component:n[o],ip:n[o+1],port:n[o+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(s,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,n=!1;return"~"!==e[0]?t=a(e):(t=a(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}},"./node_modules/sdp-transform/lib/writer.js":(e,t,n)=>{var a=n("./node_modules/sdp-transform/lib/grammar.js"),o=/%[sdv%]/g,r=function(e){var t=1,n=arguments,a=n.length;return e.replace(o,(function(e){if(t>=a)return e;var o=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},i=function(e,t,n){var a=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var i=t.names[o];t.name?a.push(n[t.name][i]):a.push(n[t.names[o]])}else a.push(n[t.name]);return r.apply(null,a)},s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],l=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||s,o=t.innerOrder||l,r=[];return n.forEach((function(t){a[t].forEach((function(n){n.name in e&&null!=e[n.name]?r.push(i(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){r.push(i(t,n,e))}))}))})),e.media.forEach((function(e){r.push(i("m",a.m[0],e)),o.forEach((function(t){a[t].forEach((function(n){n.name in e&&null!=e[n.name]?r.push(i(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){r.push(i(t,n,e))}))}))}))})),r.join("\r\n")+"\r\n"}},"./node_modules/socket.io-client/build/index.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.io=t.Manager=t.protocol=void 0;const a=n("./node_modules/socket.io-client/build/url.js"),o=n("./node_modules/socket.io-client/build/manager.js"),r=n("./node_modules/socket.io-client/build/socket.js");Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return r.Socket}});const i=n("./node_modules/socket.io-client/node_modules/debug/src/browser.js")("socket.io-client");e.exports=t=l;const s=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=a.url(e,t.path),r=n.source,l=n.id,c=n.path,u=s[l]&&c in s[l].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",r),d=new o.Manager(r,t)):(s[l]||(i("new io instance for %s",r),s[l]=new o.Manager(r,t)),d=s[l]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}t.io=l;var c=n("./node_modules/socket.io-client/node_modules/socket.io-parser/dist/index.js");Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),t.connect=l;var u=n("./node_modules/socket.io-client/build/manager.js");Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return u.Manager}})},"./node_modules/socket.io-client/build/manager.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const a=n("./node_modules/engine.io-client/lib/index.js"),o=n("./node_modules/socket.io-client/build/socket.js"),r=n("./node_modules/component-emitter/index.js"),i=n("./node_modules/socket.io-client/node_modules/socket.io-parser/dist/index.js"),s=n("./node_modules/socket.io-client/build/on.js"),l=n("./node_modules/backo2/index.js"),c=n("./node_modules/socket.io-client/node_modules/debug/src/browser.js")("socket.io-client:manager");t.Manager=class extends r{constructor(e,t){super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new l({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||i;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(c("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=a(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=s.on(t,"open",(function(){n.onopen(),e&&e()})),r=s.on(t,"error",(t=>{c("error"),n.cleanup(),n._readyState="closed",super.emit("error",t),e?e(t):n.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;c("connect attempt will timeout after %d",e),0===e&&o();const n=setTimeout((()=>{c("connect attempt timed out after %d",e),o(),t.close(),t.emit("error",new Error("timeout"))}),e);this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(o),this.subs.push(r),this}connect(e){return this.open(e)}onopen(){c("open"),this.cleanup(),this._readyState="open",super.emit("open");const e=this.engine;this.subs.push(s.on(e,"ping",this.onping.bind(this)),s.on(e,"data",this.ondata.bind(this)),s.on(e,"error",this.onerror.bind(this)),s.on(e,"close",this.onclose.bind(this)),s.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){super.emit("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){super.emit("packet",e)}onerror(e){c("error",e),super.emit("error",e)}socket(e,t){let n=this.nsps[e];return n||(n=new o.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return void c("socket %s is still active, skipping close",e)}this._close()}_packet(e){c("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){c("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){c("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,"opening"===this._readyState&&this.cleanup(),this.backoff.reset(),this._readyState="closed",this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){c("onclose"),this.cleanup(),this.backoff.reset(),this._readyState="closed",super.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),super.emit("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=setTimeout((()=>{e.skipReconnect||(c("attempting reconnect"),super.emit("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(c("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),super.emit("reconnect_error",t)):(c("reconnect success"),e.onreconnect())})))}),t);this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),super.emit("reconnect",e)}}},"./node_modules/socket.io-client/build/on.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},"./node_modules/socket.io-client/build/socket.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=n("./node_modules/socket.io-client/node_modules/socket.io-parser/dist/index.js"),o=n("./node_modules/component-emitter/index.js"),r=n("./node_modules/socket.io-client/build/on.js"),i=n("./node_modules/socket.io-client/node_modules/debug/src/browser.js")("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});t.Socket=class extends o{constructor(e,t,n){super(),this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.auth&&(this.auth=n.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[r.on(e,"open",this.onopen.bind(this)),r.on(e,"packet",this.onpacket.bind(this)),r.on(e,"error",this.onerror.bind(this)),r.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(s.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const n={type:a.PacketType.EVENT,data:t,options:{}};n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(i("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++);const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){i("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this.packet({type:a.PacketType.CONNECT,data:e})})):this.packet({type:a.PacketType.CONNECT,data:this.auth})}onerror(e){this.connected||super.emit("connect_error",e)}onclose(e){i("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,super.emit("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case a.PacketType.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else super.emit("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case a.PacketType.EVENT:case a.PacketType.BINARY_EVENT:this.onevent(e);break;case a.PacketType.ACK:case a.PacketType.BINARY_ACK:this.onack(e);break;case a.PacketType.DISCONNECT:this.ondisconnect();break;case a.PacketType.CONNECT_ERROR:const t=new Error(e.data.message);t.data=e.data.data,super.emit("connect_error",t)}}onevent(e){const t=e.data||[];i("emitting event %j",t),null!=e.id&&(i("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let n=!1;return function(...o){n||(n=!0,i("sending ack %j",o),t.packet({type:a.PacketType.ACK,id:e,data:o}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(i("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):i("bad ack %s",e.id)}onconnect(e){i("socket connected with id %s",e),this.id=e,this.connected=!0,this.disconnected=!1,super.emit("connect"),this.emitBuffered()}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>this.packet(e))),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:a.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}},"./node_modules/socket.io-client/build/url.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const a=n("./node_modules/socket.io-client/node_modules/parseuri/index.js"),o=n("./node_modules/socket.io-client/node_modules/debug/src/browser.js")("socket.io-client:url");t.url=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),o("parse %s",e),r=a(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}},"./node_modules/socket.io-client/node_modules/debug/src/browser.js":(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(o=a))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n("./node_modules/socket.io-client/node_modules/debug/src/common.js")(t);const{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"./node_modules/socket.io-client/node_modules/debug/src/common.js":(e,t,n)=>{e.exports=function(e){function t(e){let n,o=null;function r(...e){if(!r.enabled)return;const a=r,o=Number(new Date),i=o-(n||o);a.diff=i,a.prev=n,a.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";s++;const r=t.formatters[o];if("function"==typeof r){const t=e[s];n=r.call(a,t),e.splice(s,1),s--}return n})),t.formatArgs.call(a,e);(a.log||t.log).apply(a,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=a,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(r),r}function a(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const a=("string"==typeof e?e:"").split(/[\s,]+/),o=a.length;for(n=0;n<o;n++)a[n]&&("-"===(e=a[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,a;for(n=0,a=t.skips.length;n<a;n++)if(t.skips[n].test(e))return!1;for(n=0,a=t.names.length;n<a;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n("./node_modules/ms/index.js"),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},"./node_modules/socket.io-client/node_modules/parseuri/index.js":e=>{var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var a=e,o=e.indexOf("["),r=e.indexOf("]");-1!=o&&-1!=r&&(e=e.substring(0,o)+e.substring(o,r).replace(/:/g,";")+e.substring(r,e.length));for(var i=t.exec(e||""),s={},l=14;l--;)s[n[l]]=i[l]||"";return-1!=o&&-1!=r&&(s.source=a,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(e,t){var n=/\/{2,9}/g,a=t.replace(n,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||a.splice(0,1);"/"==t.substr(t.length-1,1)&&a.splice(a.length-1,1);return a}(0,s.path),s.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,a){t&&(n[t]=a)})),n}(0,s.query),s}},"./node_modules/socket.io-client/node_modules/socket.io-parser/dist/binary.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const a=n("./node_modules/socket.io-client/node_modules/socket.io-parser/dist/is-binary.js");function o(e,t){if(!e)return e;if(a.isBinary(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let a=0;a<e.length;a++)n[a]=o(e[a],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const a in e)e.hasOwnProperty(a)&&(n[a]=o(e[a],t));return n}return e}function r(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=r(e[n],t);else if("object"==typeof e)for(const n in e)e.hasOwnProperty(n)&&(e[n]=r(e[n],t));return e}t.deconstructPacket=function(e){const t=[],n=e.data,a=e;return a.data=o(n,t),a.attachments=t.length,{packet:a,buffers:t}},t.reconstructPacket=function(e,t){return e.data=r(e.data,t),e.attachments=void 0,e}},"./node_modules/socket.io-client/node_modules/socket.io-parser/dist/index.js":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const a=n("./node_modules/component-emitter/index.js"),o=n("./node_modules/socket.io-client/node_modules/socket.io-parser/dist/binary.js"),r=n("./node_modules/socket.io-client/node_modules/socket.io-parser/dist/is-binary.js"),i=n("./node_modules/socket.io-client/node_modules/debug/src/browser.js")("socket.io-parser");var s;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(s=t.PacketType||(t.PacketType={}));t.Encoder=class{encode(e){return i("encoding packet %j",e),e.type!==s.EVENT&&e.type!==s.ACK||!r.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==s.BINARY_EVENT&&e.type!==s.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data)),i("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=o.deconstructPacket(e),n=this.encodeAsString(t.packet),a=t.buffers;return a.unshift(n),a}};class l extends a{constructor(){super()}add(e){let t;if("string"==typeof e)t=this.decodeString(e),t.type===s.BINARY_EVENT||t.type===s.BINARY_ACK?(this.reconstructor=new c(t),0===t.attachments&&super.emit("decoded",t)):super.emit("decoded",t);else{if(!r.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emit("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===s[n.type])throw new Error("unknown packet type "+n.type);if(n.type===s.BINARY_EVENT||n.type===s.BINARY_ACK){const a=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(a,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const a=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(a,t)}else n.nsp="/";const a=e.charAt(t+1);if(""!==a&&Number(a)==a){const a=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(a,t+1))}if(e.charAt(++t)){const a=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(t));if(!l.isPayloadValid(n.type,a))throw new Error("invalid payload");n.data=a}return i("decoded %s as %j",e,n),n}static isPayloadValid(e,t){switch(e){case s.CONNECT:return"object"==typeof t;case s.DISCONNECT:return void 0===t;case s.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case s.EVENT:case s.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case s.ACK:case s.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=l;class c{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},"./node_modules/socket.io-client/node_modules/socket.io-parser/dist/is-binary.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const n="function"==typeof ArrayBuffer,a=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);function i(e){return n&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||o&&e instanceof Blob||r&&e instanceof File}t.isBinary=i,t.hasBinary=function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,a=t.length;n<a;n++)if(e(t[n]))return!0;return!1}if(i(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}},"./node_modules/sortablejs/Sortable.js":(e,t,n)=>{var a,o,r=n("./node_modules/jquery/dist/jquery.js");!function(r){"use strict";void 0===(o="function"==typeof(a=r)?a.call(t,n,t,e):a)||(e.exports=o)}((function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var e,t,n,a,o,i,s,l,c,u,d,f,m,p,g,h,_,b,y,v,A,S={},w=/\s+/g,E=/left|right|inline/,C="Sortable"+(new Date).getTime(),T=window,I=T.document,k=T.parseInt,D=r||T.Zepto,x=T.Polymer,M=!1,P=!!("draggable"in I.createElement("div")),O=!navigator.userAgent.match(/Trident.*rv[ :]?11\./)&&((A=I.createElement("x")).style.cssText="pointer-events:auto","auto"===A.style.pointerEvents),R=!1,N=Math.abs,L=Math.min,$=[],U=[],j=ae((function(e,t,n){if(n&&t.scroll){var a,o,r,i,s,d,f=n[C],m=t.scrollSensitivity,p=t.scrollSpeed,g=e.clientX,h=e.clientY,_=window.innerWidth,b=window.innerHeight;if(c!==n&&(l=t.scroll,c=n,u=t.scrollFn,!0===l)){l=n;do{if(l.offsetWidth<l.scrollWidth||l.offsetHeight<l.scrollHeight)break}while(l=l.parentNode)}l&&(a=l,o=l.getBoundingClientRect(),r=(N(o.right-g)<=m)-(N(o.left-g)<=m),i=(N(o.bottom-h)<=m)-(N(o.top-h)<=m)),r||i||(i=(b-h<=m)-(h<=m),((r=(_-g<=m)-(g<=m))||i)&&(a=T)),S.vx===r&&S.vy===i&&S.el===a||(S.el=a,S.vx=r,S.vy=i,clearInterval(S.pid),a&&(S.pid=setInterval((function(){if(d=i?i*p:0,s=r?r*p:0,"function"==typeof u)return u.call(f,s,d,e);a===T?T.scrollTo(T.pageXOffset+s,T.pageYOffset+d):(a.scrollTop+=d,a.scrollLeft+=s)}),24)))}}),30),F=function(e){function t(e,t){return void 0!==e&&!0!==e||(e=n.name),"function"==typeof e?e:function(n,a){var o=a.options.group.name;return t?e:e&&(e.join?e.indexOf(o)>-1:o==e)}}var n={},a=e.group;a&&"object"==typeof a||(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n};function q(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=oe({},t),e[C]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0}};for(var a in n)!(a in t)&&(t[a]=n[a]);for(var o in F(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&P,G(e,"mousedown",this._onTapStart),G(e,"touchstart",this._onTapStart),G(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(G(e,"dragover",this),G(e,"dragenter",this)),U.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function Y(t,n){"clone"!==t.lastPullMode&&(n=!0),a&&a.state!==n&&(Q(a,"display",n?"none":""),n||a.state&&(t.options.group.revertClone?(o.insertBefore(a,i),t._animate(e,a)):o.insertBefore(a,e)),a.state=n)}function H(e,t,n){if(e){n=n||I;do{if(">*"===t&&e.parentNode===n||ne(e,t))return e}while(e=B(e))}return null}function B(e){var t=e.host;return t&&t.nodeType?t:e.parentNode}function G(e,t,n){e.addEventListener(t,n,M)}function V(e,t,n){e.removeEventListener(t,n,M)}function W(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(w," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(w," ")}}function Q(e,t,n){var a=e&&e.style;if(a){if(void 0===n)return I.defaultView&&I.defaultView.getComputedStyle?n=I.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in a||(t="-webkit-"+t),a[t]=n+("string"==typeof n?"":"px")}}function z(e,t,n){if(e){var a=e.getElementsByTagName(t),o=0,r=a.length;if(n)for(;o<r;o++)n(a[o],o);return a}return[]}function K(e,t,n,o,r,i,s){e=e||t[C];var l=I.createEvent("Event"),c=e.options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);l.initEvent(n,!0,!0),l.to=t,l.from=r||t,l.item=o||t,l.clone=a,l.oldIndex=i,l.newIndex=s,t.dispatchEvent(l),c[u]&&c[u].call(e,l)}function J(e,t,n,a,o,r,i,s){var l,c,u=e[C],d=u.options.onMove;return(l=I.createEvent("Event")).initEvent("move",!0,!0),l.to=t,l.from=e,l.dragged=n,l.draggedRect=a,l.related=o||t,l.relatedRect=r||t.getBoundingClientRect(),l.willInsertAfter=s,e.dispatchEvent(l),d&&(c=d.call(u,l,i)),c}function X(e){e.draggable=!1}function Z(){R=!1}function ee(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,a=0;n--;)a+=t.charCodeAt(n);return a.toString(36)}function te(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||">*"!==t&&!ne(e,t)||n++;return n}function ne(e,t){if(e){var n=(t=t.split(".")).shift().toUpperCase(),a=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==n&&e.nodeName.toUpperCase()!=n||t.length&&((" "+e.className+" ").match(a)||[]).length!=t.length)}return!1}function ae(e,t){var n,a;return function(){void 0===n&&(n=arguments,a=this,setTimeout((function(){1===n.length?e.call(a,n[0]):e.apply(a,n),n=void 0}),t))}}function oe(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function re(e){return D?D(e).clone(!0)[0]:x&&x.dom?x.dom(e).cloneNode(!0):e.cloneNode(!0)}q.prototype={constructor:q,_onTapStart:function(t){var n,a=this,o=this.el,r=this.options,i=r.preventOnFilter,l=t.type,c=t.touches&&t.touches[0],u=(c||t).target,d=t.target.shadowRoot&&t.path[0]||u,f=r.filter;if(function(e){var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var a=t[n];a.checked&&$.push(a)}}(o),!e&&!("mousedown"===l&&0!==t.button||r.disabled)&&(u=H(u,r.draggable,o))&&s!==u){if(n=te(u,r.draggable),"function"==typeof f){if(f.call(this,t,u,this))return K(a,d,"filter",u,o,n),void(i&&t.preventDefault())}else if(f&&(f=f.split(",").some((function(e){if(e=H(d,e.trim(),o))return K(a,e,"filter",u,o,n),!0}))))return void(i&&t.preventDefault());r.handle&&!H(d,r.handle,o)||this._prepareDragStart(t,c,u,n)}},_prepareDragStart:function(n,a,r,l){var c,u=this,d=u.el,f=u.options,m=d.ownerDocument;r&&!e&&r.parentNode===d&&(b=n,o=d,t=(e=r).parentNode,i=e.nextSibling,s=r,h=f.group,p=l,this._lastX=(a||n).clientX,this._lastY=(a||n).clientY,e.style["will-change"]="transform",c=function(){u._disableDelayedDrag(),e.draggable=u.nativeDraggable,W(e,f.chosenClass,!0),u._triggerDragStart(n,a),K(u,o,"choose",e,o,p)},f.ignore.split(",").forEach((function(t){z(e,t.trim(),X)})),G(m,"mouseup",u._onDrop),G(m,"touchend",u._onDrop),G(m,"touchcancel",u._onDrop),G(m,"pointercancel",u._onDrop),G(m,"selectstart",u),f.delay?(G(m,"mouseup",u._disableDelayedDrag),G(m,"touchend",u._disableDelayedDrag),G(m,"touchcancel",u._disableDelayedDrag),G(m,"mousemove",u._disableDelayedDrag),G(m,"touchmove",u._disableDelayedDrag),G(m,"pointermove",u._disableDelayedDrag),u._dragStartTimer=setTimeout(c,f.delay)):c())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),V(e,"mouseup",this._disableDelayedDrag),V(e,"touchend",this._disableDelayedDrag),V(e,"touchcancel",this._disableDelayedDrag),V(e,"mousemove",this._disableDelayedDrag),V(e,"touchmove",this._disableDelayedDrag),V(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(t,n){(n=n||("touch"==t.pointerType?t:null))?(b={target:e,clientX:n.clientX,clientY:n.clientY},this._onDragStart(b,"touch")):this.nativeDraggable?(G(e,"dragend",this),G(o,"dragstart",this._onDragStart)):this._onDragStart(b,!0);try{I.selection?setTimeout((function(){I.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(o&&e){var t=this.options;W(e,t.ghostClass,!0),W(e,t.dragClass,!1),q.active=this,K(this,o,"start",e,o,p)}else this._nulling()},_emulateDragOver:function(){if(y){if(this._lastX===y.clientX&&this._lastY===y.clientY)return;this._lastX=y.clientX,this._lastY=y.clientY,O||Q(n,"display","none");var e=I.elementFromPoint(y.clientX,y.clientY),t=e,a=U.length;if(t)do{if(t[C]){for(;a--;)U[a]({clientX:y.clientX,clientY:y.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);O||Q(n,"display","")}},_onTouchMove:function(e){if(b){var t=this.options,a=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=r.clientX-b.clientX+o.x,s=r.clientY-b.clientY+o.y,l=e.touches?"translate3d("+i+"px,"+s+"px,0)":"translate("+i+"px,"+s+"px)";if(!q.active){if(a&&L(N(r.clientX-this._lastX),N(r.clientY-this._lastY))<a)return;this._dragStarted()}this._appendGhost(),v=!0,y=r,Q(n,"webkitTransform",l),Q(n,"mozTransform",l),Q(n,"msTransform",l),Q(n,"transform",l),e.preventDefault()}},_appendGhost:function(){if(!n){var t,a=e.getBoundingClientRect(),r=Q(e),i=this.options;W(n=e.cloneNode(!0),i.ghostClass,!1),W(n,i.fallbackClass,!0),W(n,i.dragClass,!0),Q(n,"top",a.top-k(r.marginTop,10)),Q(n,"left",a.left-k(r.marginLeft,10)),Q(n,"width",a.width),Q(n,"height",a.height),Q(n,"opacity","0.8"),Q(n,"position","fixed"),Q(n,"zIndex","100000"),Q(n,"pointerEvents","none"),i.fallbackOnBody&&I.body.appendChild(n)||o.appendChild(n),t=n.getBoundingClientRect(),Q(n,"width",2*a.width-t.width),Q(n,"height",2*a.height-t.height)}},_onDragStart:function(t,n){var r=t.dataTransfer,i=this.options;this._offUpEvents(),h.checkPull(this,this,e,t)&&((a=re(e)).draggable=!1,a.style["will-change"]="",Q(a,"display","none"),W(a,this.options.chosenClass,!1),o.insertBefore(a,e),K(this,o,"clone",e)),W(e,i.dragClass,!0),n?("touch"===n?(G(I,"touchmove",this._onTouchMove),G(I,"touchend",this._onDrop),G(I,"touchcancel",this._onDrop),G(I,"pointermove",this._onTouchMove),G(I,"pointerup",this._onDrop)):(G(I,"mousemove",this._onTouchMove),G(I,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(r&&(r.effectAllowed="move",i.setData&&i.setData.call(this,r,e)),G(I,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(r){var s,l,c,u,p=this.el,g=this.options,b=g.group,y=q.active,A=h===b,S=!1,w=g.sort;if(void 0!==r.preventDefault&&(r.preventDefault(),!g.dragoverBubble&&r.stopPropagation()),!e.animated&&(v=!0,y&&!g.disabled&&(A?w||(u=!o.contains(e)):_===this||(y.lastPullMode=h.checkPull(this,y,e,r))&&b.checkPut(this,y,e,r))&&(void 0===r.rootEl||r.rootEl===this.el))){if(j(r,g,this.el),R)return;if(s=H(r.target,g.draggable,p),l=e.getBoundingClientRect(),_!==this&&(_=this,S=!0),u)return Y(y,!0),t=o,void(a||i?o.insertBefore(e,a||i):w||o.appendChild(e));if(0===p.children.length||p.children[0]===n||p===r.target&&function(e,t){var n=e.lastElementChild.getBoundingClientRect();return t.clientY-(n.top+n.height)>5||t.clientX-(n.left+n.width)>5}(p,r)){if(0!==p.children.length&&p.children[0]!==n&&p===r.target&&(s=p.lastElementChild),s){if(s.animated)return;c=s.getBoundingClientRect()}Y(y,A),!1!==J(o,p,e,l,s,c,r)&&(e.contains(p)||(p.appendChild(e),t=p),this._animate(l,e),s&&this._animate(c,s))}else if(s&&!s.animated&&s!==e&&void 0!==s.parentNode[C]){d!==s&&(d=s,f=Q(s),m=Q(s.parentNode));var T=(c=s.getBoundingClientRect()).right-c.left,I=c.bottom-c.top,k=E.test(f.cssFloat+f.display)||"flex"==m.display&&0===m["flex-direction"].indexOf("row"),D=s.offsetWidth>e.offsetWidth,x=s.offsetHeight>e.offsetHeight,M=(k?(r.clientX-c.left)/T:(r.clientY-c.top)/I)>.5,P=s.nextElementSibling,O=!1;if(k){var N=e.offsetTop,L=s.offsetTop;O=N===L?s.previousElementSibling===e&&!D||M&&D:s.previousElementSibling===e||e.previousElementSibling===s?(r.clientY-c.top)/I>.5:L>N}else S||(O=P!==e&&!x||M&&x);var $=J(o,p,e,l,s,c,r,O);!1!==$&&(1!==$&&-1!==$||(O=1===$),R=!0,setTimeout(Z,30),Y(y,A),e.contains(p)||(O&&!P?p.appendChild(e):s.parentNode.insertBefore(e,O?P:s)),t=e.parentNode,this._animate(l,e),this._animate(c,s))}}},_animate:function(e,t){var n=this.options.animation;if(n){var a=t.getBoundingClientRect();1===e.nodeType&&(e=e.getBoundingClientRect()),Q(t,"transition","none"),Q(t,"transform","translate3d("+(e.left-a.left)+"px,"+(e.top-a.top)+"px,0)"),t.offsetWidth,Q(t,"transition","all "+n+"ms"),Q(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout((function(){Q(t,"transition",""),Q(t,"transform",""),t.animated=!1}),n)}},_offUpEvents:function(){var e=this.el.ownerDocument;V(I,"touchmove",this._onTouchMove),V(I,"pointermove",this._onTouchMove),V(e,"mouseup",this._onDrop),V(e,"touchend",this._onDrop),V(e,"pointerup",this._onDrop),V(e,"touchcancel",this._onDrop),V(e,"pointercancel",this._onDrop),V(e,"selectstart",this)},_onDrop:function(r){var s=this.el,l=this.options;clearInterval(this._loopId),clearInterval(S.pid),clearTimeout(this._dragStartTimer),V(I,"mousemove",this._onTouchMove),this.nativeDraggable&&(V(I,"drop",this),V(s,"dragstart",this._onDragStart)),this._offUpEvents(),r&&(v&&(r.preventDefault(),!l.dropBubble&&r.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),o!==t&&"clone"===q.active.lastPullMode||a&&a.parentNode&&a.parentNode.removeChild(a),e&&(this.nativeDraggable&&V(e,"dragend",this),X(e),e.style["will-change"]="",W(e,this.options.ghostClass,!1),W(e,this.options.chosenClass,!1),K(this,o,"unchoose",e,o,p),o!==t?(g=te(e,l.draggable))>=0&&(K(null,t,"add",e,o,p,g),K(this,o,"remove",e,o,p,g),K(null,t,"sort",e,o,p,g),K(this,o,"sort",e,o,p,g)):e.nextSibling!==i&&(g=te(e,l.draggable))>=0&&(K(this,o,"update",e,o,p,g),K(this,o,"sort",e,o,p,g)),q.active&&(null!=g&&-1!==g||(g=p),K(this,o,"end",e,o,p,g),this.save()))),this._nulling()},_nulling:function(){o=e=t=n=i=a=s=l=c=b=y=v=g=d=f=_=h=q.active=null,$.forEach((function(e){e.checked=!0})),$.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragover":case"dragenter":e&&(this._onDragOver(t),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,a=0,o=n.length,r=this.options;a<o;a++)H(e=n[a],r.draggable,this.el)&&t.push(e.getAttribute(r.dataIdAttr)||ee(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,a){var o=n.children[a];H(o,this.options.draggable,n)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return H(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];n[e]=t,"group"===e&&F(n)},destroy:function(){var e=this.el;e[C]=null,V(e,"mousedown",this._onTapStart),V(e,"touchstart",this._onTapStart),V(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(V(e,"dragover",this),V(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),U.splice(U.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},G(I,"touchmove",(function(e){q.active&&e.preventDefault()}));try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){M={capture:!1,passive:!1}}}))}catch(e){}return q.utils={on:G,off:V,css:Q,find:z,is:function(e,t){return!!H(e,t,e)},extend:oe,throttle:ae,closest:H,toggleClass:W,clone:re,index:te},q.create=function(e,t){return new q(e,t)},q.version="1.6.0",q}))},"./node_modules/tinycolor2/dist/tinycolor-min.js":(e,t,n)=>{var a;!function(o){function r(e,t){if(t=t||{},(e=e||"")instanceof r)return e;if(!(this instanceof r))return new r(e,t);var n=i(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=$(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=$(this._r)),this._g<1&&(this._g=$(this._g)),this._b<1&&(this._b=$(this._b)),this._ok=n.ok,this._tc_id=L++}function i(e){var t={r:0,g:0,b:0},n=1,a=null,o=null,r=null,i=!1,s=!1;return"string"==typeof e&&(e=function(e){e=e.replace(R,"").replace(N,"").toLowerCase();var t,n=!1;if(q[e])e=q[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=H.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=H.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=H.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=H.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=H.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=H.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=H.hex8.exec(e))?{r:k(t[1]),g:k(t[2]),b:k(t[3]),a:P(t[4]),format:n?"name":"hex8"}:(t=H.hex6.exec(e))?{r:k(t[1]),g:k(t[2]),b:k(t[3]),format:n?"name":"hex"}:(t=H.hex4.exec(e))?{r:k(t[1]+""+t[1]),g:k(t[2]+""+t[2]),b:k(t[3]+""+t[3]),a:P(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=H.hex3.exec(e))&&{r:k(t[1]+""+t[1]),g:k(t[2]+""+t[2]),b:k(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(O(e.r)&&O(e.g)&&O(e.b)?(t=function(e,t,n){return{r:255*T(e,255),g:255*T(t,255),b:255*T(n,255)}}(e.r,e.g,e.b),i=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):O(e.h)&&O(e.s)&&O(e.v)?(a=x(e.s),o=x(e.v),t=c(e.h,a,o),i=!0,s="hsv"):O(e.h)&&O(e.s)&&O(e.l)&&(a=x(e.s),r=x(e.l),t=function(e,t,n){function a(e,t,n){return 0>n&&(n+=1),n>1&&(n-=1),1/6>n?e+6*(t-e)*n:.5>n?t:2/3>n?e+(t-e)*(2/3-n)*6:e}var o,r,i;if(e=T(e,360),t=T(t,100),n=T(n,100),0===t)o=r=i=n;else{var s=.5>n?n*(1+t):n+t-n*t,l=2*n-s;o=a(l,s,e+1/3),r=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,r),i=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=C(n),{ok:i,format:e.format||s,r:U(255,j(t.r,0)),g:U(255,j(t.g,0)),b:U(255,j(t.b,0)),a:n}}function s(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var a,o,r=j(e,t,n),i=U(e,t,n),s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(n>t?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:o,l:s}}function l(e,t,n){e=T(e,255),t=T(t,255),n=T(n,255);var a,o,r=j(e,t,n),i=U(e,t,n),s=r,l=r-i;if(o=0===r?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(n>t?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:o,v:s}}function c(e,t,n){e=6*T(e,360),t=T(t,100),n=T(n,100);var a=o.floor(e),r=e-a,i=n*(1-t),s=n*(1-r*t),l=n*(1-(1-r)*t),c=a%6;return{r:255*[n,s,i,i,l,n][c],g:255*[l,n,n,s,i,i][c],b:255*[i,i,l,n,n,s][c]}}function u(e,t,n,a){var o=[D($(e).toString(16)),D($(t).toString(16)),D($(n).toString(16))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(e,t,n,a){return[D(M(a)),D($(e).toString(16)),D($(t).toString(16)),D($(n).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=I(n.s),r(n)}function m(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=I(n.s),r(n)}function p(e){return r(e).desaturate(100)}function g(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=I(n.l),r(n)}function h(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=j(0,U(255,n.r-$(-t/100*255))),n.g=j(0,U(255,n.g-$(-t/100*255))),n.b=j(0,U(255,n.b-$(-t/100*255))),r(n)}function _(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=I(n.l),r(n)}function b(e,t){var n=r(e).toHsl(),a=(n.h+t)%360;return n.h=0>a?360+a:a,r(n)}function y(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function v(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+120)%360,s:t.s,l:t.l}),r({h:(n+240)%360,s:t.s,l:t.l})]}function A(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+90)%360,s:t.s,l:t.l}),r({h:(n+180)%360,s:t.s,l:t.l}),r({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function w(e,t,n){t=t||6,n=n||30;var a=r(e).toHsl(),o=360/n,i=[r(e)];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,i.push(r(a));return i}function E(e,t){t=t||6;for(var n=r(e).toHsv(),a=n.h,o=n.s,i=n.v,s=[],l=1/t;t--;)s.push(r({h:a,s:o,v:i})),i=(i+l)%1;return s}function C(e){return e=parseFloat(e),(isNaN(e)||0>e||e>1)&&(e=1),e}function T(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=U(t,j(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return U(1,j(0,e))}function k(e){return parseInt(e,16)}function D(e){return 1==e.length?"0"+e:""+e}function x(e){return 1>=e&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function P(e){return k(e)/255}function O(e){return!!H.CSS_UNIT.exec(e)}var R=/^\s+/,N=/\s+$/,L=0,$=o.round,U=o.min,j=o.max,F=o.random;r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,a=this.toRgb();return e=a.r/255,t=a.g/255,n=a.b/255,.2126*(.03928>=e?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(.03928>=t?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(.03928>=n?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=$(100*this._a)/100,this},toHsv:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=l(this._r,this._g,this._b),t=$(360*e.h),n=$(100*e.s),a=$(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+a+"%)":"hsva("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=s(this._r,this._g,this._b),t=$(360*e.h),n=$(100*e.s),a=$(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+a+"%)":"hsla("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,a,o){var r=[D($(e).toString(16)),D($(t).toString(16)),D($(n).toString(16)),D(M(a))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:$(this._r),g:$(this._g),b:$(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+$(this._r)+", "+$(this._g)+", "+$(this._b)+")":"rgba("+$(this._r)+", "+$(this._g)+", "+$(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:$(100*T(this._r,255))+"%",g:$(100*T(this._g,255))+"%",b:$(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+$(100*T(this._r,255))+"%, "+$(100*T(this._g,255))+"%, "+$(100*T(this._b,255))+"%)":"rgba("+$(100*T(this._r,255))+"%, "+$(100*T(this._g,255))+"%, "+$(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Y[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+d(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(e){var o=r(e);n="#"+d(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,a=this._a<1&&this._a>=0;return!t&&a&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(p,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(v,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},r.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]="a"===a?e[a]:x(e[a]));e=n}return r(e,t)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:F(),g:F(),b:F()})},r.mix=function(e,t,n){n=0===n?0:n||50;var a=r(e).toRgb(),o=r(t).toRgb(),i=n/100;return r({r:(o.r-a.r)*i+a.r,g:(o.g-a.g)*i+a.g,b:(o.b-a.b)*i+a.b,a:(o.a-a.a)*i+a.a})},r.readability=function(e,t){var n=r(e),a=r(t);return(o.max(n.getLuminance(),a.getLuminance())+.05)/(o.min(n.getLuminance(),a.getLuminance())+.05)},r.isReadable=function(e,t,n){var a,o,i=r.readability(e,t);switch(o=!1,(a=function(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}(n)).level+a.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},r.mostReadable=function(e,t,n){var a,o,i,s,l=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,s=n.size;for(var u=0;u<t.length;u++)(a=r.readability(e,t[u]))>c&&(c=a,l=r(t[u]));return r.isReadable(e,l,{level:i,size:s})||!o?l:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var q=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(q),H=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();e.exports?e.exports=r:void 0===(a=function(){return r}.call(t,n,t,e))||(e.exports=a)}(Math)},"./node_modules/yeast/index.js":e=>{"use strict";var t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a={},o=0,r=0;function i(e){var t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function s(){var e=i(+new Date);return e!==t?(o=0,t=e):e+"."+i(o++)}for(;r<64;r++)a[n[r]]=r;s.encode=i,s.decode=function(e){var t=0;for(r=0;r<e.length;r++)t=64*t+a[e.charAt(r)];return t},e.exports=s}}]);
3 //# sourceMappingURL=vendors-ecf192bf7887d5b3781e.js.map