text: /**
   * Gulp-Patterns - Gulp Patterns
   * @authors John Papa
   * @version v0.2.0
   * @link https://github.com/johnpapa/gulp-patterns
   * @license MIT
   */
  !function(){"use strict";angular.module("app",["app.core","app.widgets","app.layout","app.features"])}(),function(){"use strict";angular.module("app.core",["ngAnimate","ngSanitize","ngMaterial","ngMessages","ngResource","ui.router","cloudinary","ngFileUpload","ngMdIcons"])}(),function(){"use strict";angular.module("app.features",[])}(),function(){"use strict";angular.module("app.layout",[])}(),function(){"use strict";angular.module("app.widgets",[])}(),function(){function t(t,e,o,a){t.defaultIconSet(o.CORE,a.CORE_SIZE),e.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("red").backgroundPalette("grey")}angular.module("app.core").config(t),t.$inject=["$mdIconProvider","$mdThemingProvider","globalIcons","globalSizes"]}(),function(){function t(){var t="images/svg/production/",e={CORE:t+"core-icons.svg",FACE:t+"ic_face_24px.svg",ID:t+"ic_account_box_24px.svg",SEARCH:t+"ic_search_24px.svg"};return e}function e(){var t={DATE_BIRTH:"Fecha de nacimiento",DRAG_DROP:"Arrastre las imágenes que desea agregar :)",HEADER:"Rescate Animal",ID:"Cédula",NAME:"Nombre",PRIMARY_LAST_NAME:"Primer apellido",SECOND_LAST_NAME:"Segundo apellido"};return t}function o(){var t={MAIN:{state:"main",url:"/main",templateUrl:"app/layout/main/main.html"}};return t}function a(){var t={CORE_SIZE:24};return t}function n(){var t="images/",e={MAIN:t+"main.jpg",GALLERY:"images/svg/production/ic_account_box_24px.svg"};return e}function l(){var t={};return t}function i(){var t={DEFAULT:"pets"};return t}angular.module("app.core").constant("globalIcons",t()).constant("globalLabels",e()).constant("globalStates",o()).constant("globalSizes",a()).constant("globalImages",n()).constant("globalKeys",l()).constant("globalAlbums",i())}(),function(){"use strict";function t(t,e){e.otherwise("/main"),t.state("404",{url:"/404",templateUrl:"app/core/404.html"})}angular.module("app").config(t),t.$inject=["$stateProvider","$urlRouterProvider"]}(),function(){function t(t,e,o,a){angular.forEach(o,function(o){t.get(o,{cache:e})}),angular.forEach(a,function(o){t.get(o,{cache:e})})}angular.module("app.core").run(t),t.$inject=["$http","$templateCache","globalIcons","globalImages"]}(),function(){"use strict";function t(t,e){function o(){return t.get(r).then(n)["catch"](l)}function a(e){var o=i(e);return t.get(o).then(n)["catch"](l)}function n(t){return t.data}function l(t){var o;return o={message:"Error retrieving pictures. (HTTP status: "+t.status+")",status:t.status},e.reject(o)}function i(t){var e=$.cloudinary.url(t,{format:"json",type:"list"});return e=e+"?"+Math.ceil((new Date).getTime()/1e3),console.log("URL: ",e),e}var r=$.cloudinary.url("myphotoalbum",{format:"json",type:"list"});r=r+"?"+Math.ceil((new Date).getTime()/1e3);var s;return s={getPictures:o,getPicturesByAlbum:a}}angular.module("app.features").factory("cloudinaryResource",t),t.$inject=["$http","$q"]}(),function(){"use strict";function t(t,e,o,a,n){function l(){return Math.floor(16777215*Math.random()).toString(16)}function i(){m(a.DEFAULT).then(function(){console.log("Activated SearchGallery View: getPicturesByAlbum")}),r()}function r(){t.getImages().then(function(t){b.imageList=angular.copy(t);for(var e=0,o=50;o>e;++e)s();console.log(b.imageList)})}function s(){var t=b.types[Math.floor(Math.random()*b.types.length)],o={name:Math.random().toString(36).substring(7),symbol:Math.random().toString(36).substring(16),number:"95",weight:(10*Math.random()).toFixed(4),css:t,category:"lanthanoid",image:e.GALLERY,height:(300*Math.random()).toFixed(4),width:(300*Math.random()).toFixed(4)};b.imageList.push(o),console.log("add")}function c(){b.imageList=[],console.log("clear")}function d(){r(),console.log("reset")}function u(){y=y===w.length-1?0:y+1,b.currentLayout=w[y],console.log(b.currentLayout)}function m(t){return o.getPicturesByAlbum(t).then(p,null,f)["catch"](v)["finally"](g)}function p(t){b.pictures=t.resources,console.log("Pictures from server: "),console.log(t)}function g(){console.log("Pictures from server complete")}function f(t){console.log("Promise notification: "+t)}function v(t){console.log("Error message: "+t.message),console.log("Error code: "+t.status),b.pictures=null,h()}function h(){n.show(n.simple().content("Sin resultados :(!").position("top right").hideDelay(3e3))}var b=this;b.activate=i,b.add=s,b.reset=d,b.clear=c,b.imageList=[],b.types=[],b.pictures={},b.swift=u,b.getColor=l;var y=0,w=["masonry","fitRows","vertical","packery","masonryHorizontal","fitColumns"];i()}angular.module("app.features").controller("SearchGalleryController",t),t.$inject=["searchGalleryModel","globalImages","cloudinaryResource","globalAlbums","$mdToast"]}(),function(){"use strict";function t(t,e){function o(){$.cloudinary.config({cloud_name:"rb7373",api_key:"913833548897647"})}function a(){return t.when(l)}function n(){return t.when(i)}var l=[{name:"Cadmium",symbol:"Cd",number:"48",weight:"112.411",css:"transition metal",category:"transition",image:e.GALLERY,height:"100",width:"200",color:"blue"},{name:"Calcium",symbol:"Ca",number:"20",weight:"40.078",css:"alkaline-earth metal",category:"alkaline-earth",image:e.GALLERY,height:"200",width:"200",color:"red"},{name:"Rhenium",symbol:"Re",number:"75",weight:"186.207",css:"transition metal",category:"transition",image:e.GALLERY,height:"70",width:"80",color:"yellow"}],i=["post-transition metal","transition metal","metalloid","alkali metal","alkaline-earth metal","lanthanoid metal inner-transition","noble-gas nonmetal"];o();var r={getImages:a,getTypes:n};return r}angular.module("app.layout").factory("searchGalleryModel",t),t.$inject=["$q","globalImages"]}(),function(){"use strict";function t(t){t.state("gallery",{url:"/gallery",templateUrl:"app/features/search-gallery/search-gallery.html",controller:"SearchGalleryController as searchGalleryController","abstract":!0}).state("gallery.root",{views:{rightInfo:{template:"right"},leftInfo:{template:"left"},"":{template:"<div ui-view></div>"}}}).state("gallery.root.mainInfo",{url:"/mainInfo",templateUrl:"app/features/search-gallery/main/main.html"})}angular.module("app.layout").config(t),t.$inject=["$stateProvider"]}(),function(){"use strict";function t(t,e,o,a,n,l){function i(n){n&&(s.fileList=n,n.forEach(function(n){n.before=n.after=0,s.iconUpload="cloud_upload",s.dragover="dragover",e.upload({url:"https://api.cloudinary.com/v1_1/rb7373/upload",data:{tags:l.DEFAULT,context:"photo="},file:n,fields:{upload_preset:"rgwg1xvw",tags:l.DEFAULT,context:"photo="}}).progress(function(e){n.before=n.after,n.after=Math.round(100*e.loaded/e.total),console.log("progress",n.after),n.status="Uploading... "+n.after+"%",t.$$phase||t.$apply()}).success(function(e,l,i,r){n.result=e,s.iconUpload="cloud_done",s.dragover="",t.$$phase||t.$apply(),n.uploadReady=!0,o.show(o.simple().content("Carga completa!").position("bottom right").hideDelay(3e3)),n.finished=!0,a(function(){s.iconUpload="cloud_upload"},2e3)})}))}function r(){$.cloudinary.config().cloud_name="rb7373",$.cloudinary.config().upload_preset="rgwg1xvw",$.cloudinary.config({cloud_name:"rb7373",api_key:"913833548897647"})}var s=this;s.upload=i,s.mode="buffer",s.fileList=[],s.iconUpload="cloud_upload",s.uploadReady=!1,s.labels=n,r(),t.$watch("uploadController.files",function(t,e){t&&(s.upload(t),console.log("great",t))})}angular.module("app.features").controller("UploadController",t),t.$inject=["$scope","Upload","$mdToast","$timeout","globalLabels","globalAlbums"]}(),function(){"use strict";function t(t){t.state("upload",{url:"/upload",templateUrl:"app/features/upload/upload.html",controller:"UploadController as uploadController"})}angular.module("app.features").config(t),t.$inject=["$stateProvider"]}(),function(){"use strict";function t(t,e,o){function a(t){e(t).toggle().then(function(){console.log("open "+t+" is done")})}function n(t){e(t).close().then(function(){console.log("close "+t+" is done")})}function l(){i()}function i(){t(function(){r.isEnable=!0},1e3)}var r=this;r.isEnable=!1,r.activate=l,r.toggleSidenav=a,r.closeSidenav=n,r.labels=o,l()}angular.module("app").controller("MainController",t),t.$inject=["$timeout","$mdSidenav","globalLabels"]}(),function(){"use strict";function t(t,e,o){e.otherwise(o.MAIN.url),t.state(o.MAIN.state,{url:o.MAIN.url,templateUrl:o.MAIN.templateUrl,controller:"MainController as mainController"})}angular.module("app.layout").config(t),t.$inject=["$stateProvider","$urlRouterProvider","globalStates"]}(),function(){"use strict";function t(t,e){function o(){}function a(){return!1}var n=this;n.activate=o,n.icons=t,n.labels=e,n.isCurrentFormCorrect=a,n.nextStage=".questions",o()}angular.module("app").controller("AdoptionController",t),t.$inject=["globalIcons","globalLabels"]}(),function(){"use strict";function t(t){t.state("adoption",{url:"/adoption",templateUrl:"app/layout/forms/adoption/adoption.html",controller:"AdoptionController as adoptionController","abstract":!0}).state("adoption.root",{views:{rightInfo:{templateUrl:"app/layout/forms/adoption/sideInfo/right.html",controller:"RightSideInfoController as rightSideInfoController"},leftInfo:{templateUrl:"app/layout/forms/adoption/sideInfo/left.html"},"":{template:"<div ui-view></div>"}}}).state("adoption.root.preferences",{url:"/preferences",template:"Preferences"}).state("adoption.root.mainInfo",{url:"/mainInfo",templateUrl:"app/layout/forms/adoption/steps/mainInfo.html"})}angular.module("app.layout").config(t),t.$inject=["$stateProvider"]}(),function(){"use strict";function t(t){var e=this;e.title="SidenavController",e.modelMenu={},e.lables=t}angular.module("app.layout").controller("SidenavController",t),t.$inject=["globalLabels"]}(),function(){"use strict";function t(t){function e(){}var o=this;o.labels=t,e()}angular.module("app.layout").controller("TopbarController",t),t.$inject=["globalLabels"]}(),function(){"use strict";function t(){function t(){}var e=this;e.activate=t,e.name="Left Controller",t()}angular.module("app").controller("LeftSideInfoController",t)}(),function(){"use strict";function t(t){function e(){o()}function o(){n.height=.8*window.document.body.offsetHeight,n.width=window.document.getElementById("adoption-right-wall").offsetWidth}function a(){o(),console.log("Resize"),console.log(n.width,n.height),t.$apply()}var n=this;n.activate=e,n.name="Right Controller",e(),window.addEventListener("resize",a,!1),window.addEventListener("orientationchange",a,!1)}angular.module("app").controller("RightSideInfoController",t),t.$inject=["$scope"]}(),angular.module("app.core").run(["$templateCache",function(t){t.put("app/core/404.html",'<section id=dashboard-view class=mainbar><section class=matter><div class=container><div class=row><div class=col-md-12><ul class=today-datas><li class=bred><div class=pull-left><i class="fa fa-warning"></i></div><div class="datas-text pull-right"><a><span class=bold>404</span></a>Page Not Found</div><div class=clearfix></div></li></ul></div></div><div class=row><div class="widget wblue"><div ht-widget-header title="Page Not Found" allow-collapse=true></div><div class="widget-content text-center text-info"><div class=container>No soup for you!</div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section></section>'),t.put("app/features/search-gallery/search-gallery.html","<div ui-view></div>"),t.put("app/features/upload/upload.html",'<div layout=column layout-align="center center" layout-margin layout-fill layout-padding><div ngf-drop ngf-select ng-model=uploadController.files ngf-drag-over-class=dragover ngf-multiple=true ngf-allow-dir=true accept=image/* hide-sm flex ng-class=uploadController.dragover class=drop-box>{{uploadController.labels.DRAG_DROP}}</div><div ngf-no-file-drop hide-sm>File Drag/Drop is not supported for this browser</div><div class=upload-page><md-button aria-label=Upload class=md-fab><ng-md-icon icon={{uploadController.iconUpload}} size=28 options="{duration: 2000}" style="fill: white" ngf-select ngf-change=uploadController.upload($files) ngf-multiple=multiple></ng-md-icon></md-button></div></div><div ng-repeat="file in uploadController.fileList" layout=column layout-margin style=padding:25px; ng-show=!file.finished class=progressLinear><md-progress-linear md-mode={{uploadController.mode}} value={{file.before}} md-buffer-value={{file.after}} class=md-accent></md-progress-linear></div><div layout=column layout-align="center center" layout-margin layout-fill layout-padding><div ng-repeat="file in uploadController.fileList" flex=50><img ngf-src=file ng-show="file.type.indexOf(\'image\') &gt; -1 &amp;&amp; file.uploadReady" ngf-accept="\'image/*\'" flex></div></div>'),t.put("app/layout/main/main.html",""),t.put("app/features/search-gallery/main/main.html",'<div><br><br><md-content><md-grid-list md-cols-sm=1 md-cols-md=2 md-cols-lg=4 md-cols-gt-lg=6 md-row-height-gt-md=1:1 md-row-height=2:2 md-gutter=12px md-gutter-gt-sm=8px><md-grid-tile ng-repeat="picture in searchGalleryController.pictures | orderBy:\'version\':true" md-colspan-sm=1 md-colspan-md=1 md-colspan-lg=1 md-colspan-gt-lg=1 ng-style={}><md-card class=gallery-container><a cl-href={{picture.public_id}} target=_blank><cl-image public-id={{picture.public_id}} quality=80 format={{picture.format}} class="thumbnail inline md-card-image"></cl-image></a></md-card></md-grid-tile></md-grid-list></md-content></div>'),t.put("app/layout/forms/adoption/adoption.html",'<div layout=column><br><div layout=column><div layout-padding flex class=adoption-form-container><div layout-sm=column layout-gt-sm=row><div flex=25 hide-sm><div ui-view=leftInfo></div></div><div flex=50><div ui-view></div><div><lx-date-picker label={{adoptionController.labels.DATE_BIRTH}} locale=es fixed-label=true icon=cake-variant></lx-date-picker></div><section layout=row layout-sm=column layout-align="end center"><md-button ng-disabled=vm.isCurrentFormCorrect() sref={{vm.nextStage}} class="md-raised md-primary">Siguiente</md-button></section></div><div flex=25 hide-sm><div ui-view=rightInfo></div></div></div></div></div></div>'),t.put("app/layout/main/sidenav/sidenav.html",'<div class=left-sidenav><md-sidenav layout=column md-component-id=left class="md-sidenav-left md-whiteframe-z2"><md-toolbar class="md-tall md-primary"></md-toolbar><md-button ui-sref=main ng-click="mainController.closeSidenav(\'left\')" class=md-accent>Inicio</md-button><md-button ui-sref=adoption.root.mainInfo ng-click="mainController.closeSidenav(\'left\')" class=md-accent>Registro</md-button><md-button ui-sref=gallery.root.mainInfo ng-click="mainController.closeSidenav(\'left\')" class=md-accent>Buscador</md-button><md-button ui-sref=upload ng-click="mainController.closeSidenav(\'left\')" class=md-accent>Imágenes</md-button></md-sidenav></div>'),t.put("app/layout/main/topbar/topbar.html",'<div ng-controller="TopbarController as topbarController"><md-toolbar id=main-toolbar layout=row layout-align="space-between start"><button ng-click="mainController.toggleSidenav(\'left\')" class=menu-btn><span><ng-md-icon icon=menu size=22 options="{duration: 375}" style="fill: white"></ng-md-icon></span></button><h1 class=md-toolbar-tools>{{topbarController.labels.HEADER}}</h1></md-toolbar></div>'),t.put("app/layout/forms/adoption/sideInfo/left.html",'<div class=material-block><svg width=65px height=65px viewbox="0 0 66 66" xmlns=http://www.w3.org/2000/svg class=spinner><circle fill=none stroke=#e51c23 stroke-width=6 stroke-linecap=round cx=33 cy=33 r=30 class=circle></circle></svg></div>'),t.put("app/layout/forms/adoption/sideInfo/right.html","<div id=adoption-right-wall layout-fill><canvas width={{rightSideInfoController.width}} height={{rightSideInfoController.height}}></canvas></div>"),t.put("app/layout/forms/adoption/steps/main-info.html",'<div layout=row layout-sm=column flex class=adoptionIcon><md-input-container class="md-icon-float adoptionInput"><label>{{vm.labels.NAME}}</label><md-icon md-svg-icon={{vm.icons.FACE}} class=name></md-icon><input type=text ng-model=user.name></md-input-container><md-input-container class="md-icon-float adoptionInput"><label>{{vm.labels.PRIMARY_LAST_NAME}}</label> <input type=text ng-model=user.primaryLastName></md-input-container><md-input-container class="md-icon-float adoptionInput"><label>{{vm.labels.SECOND_LAST_NAME}}</label> <input type=text ng-model=user.secondLastName></md-input-container></div><div layout=row class=adoptionIcon><md-input-container md-no-float flex-sm=66><md-icon md-svg-icon={{vm.icons.ID}}></md-icon><input type=text ng-model=user.id placeholder={{vm.labels.ID}}></md-input-container></div><div><lx-date-picker label={{vm.labels.DATE_BIRTH}} locale=es fixed-label=true icon=cake-variant></lx-date-picker></div>'),t.put("app/layout/forms/adoption/steps/mainInfo.html",'<div layout=row layout-sm=column flex class=adoptionIcon><md-input-container class="md-icon-float adoptionInput"><label>{{adoptionController.labels.NAME}}</label><md-icon md-svg-icon={{adoptionController.icons.FACE}} class=name></md-icon><input type=text ng-model=user.name></md-input-container><md-input-container class="md-icon-float adoptionInput"><label>{{adoptionController.labels.PRIMARY_LAST_NAME}}</label> <input type=text ng-model=user.primaryLastName></md-input-container><md-input-container class="md-icon-float adoptionInput"><label>{{adoptionController.labels.SECOND_LAST_NAME}}</label> <input type=text ng-model=user.secondLastName></md-input-container></div><div layout=row class=adoptionIcon><md-input-container md-no-float flex-sm=66><md-icon md-svg-icon={{adoptionController.icons.ID}}></md-icon><input type=text ng-model=user.id placeholder={{adoptionController.labels.ID}}></md-input-container></div>'),t.put("app/layout/forms/adoption/steps/preferences.html","")}]);