From fa597127cd7187be92be7ab5cdade9f64fb48c63 Mon Sep 17 00:00:00 2001 From: Hannes Diercks Date: Tue, 30 Sep 2014 14:43:49 +0200 Subject: [PATCH] Release v0.8.8 --- bower.json | 2 +- dist/angular-fontselect.css | 2 +- dist/angular-fontselect.js | 6 +++--- dist/angular-fontselect.min.css | 4 ++-- dist/angular-fontselect.min.js | 4 ++-- package.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index 8456a24..151be17 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-fontselect", - "version": "0.8.7", + "version": "0.8.8", "authors": [ "Hannes Diercks " ], diff --git a/dist/angular-fontselect.css b/dist/angular-fontselect.css index 67e2be3..8181c44 100644 --- a/dist/angular-fontselect.css +++ b/dist/angular-fontselect.css @@ -1,5 +1,5 @@ /*! - * angular-fontselect v0.8.7 + * angular-fontselect v0.8.8 * https://github.com/Jimdo/angular-fontselect * * A fontselect directive for AngularJS diff --git a/dist/angular-fontselect.js b/dist/angular-fontselect.js index 5c4ed07..b67427a 100644 --- a/dist/angular-fontselect.js +++ b/dist/angular-fontselect.js @@ -1,5 +1,5 @@ /*! - * angular-fontselect v0.8.7 + * angular-fontselect v0.8.8 * https://github.com/Jimdo/angular-fontselect * * A fontselect directive for AngularJS @@ -2780,7 +2780,7 @@ $templateCache.put('src/partials/font.html', - "
  • " + "
  • " ); @@ -2790,7 +2790,7 @@ $templateCache.put('src/partials/fontselect.html', - "
    " + "
    " ); diff --git a/dist/angular-fontselect.min.css b/dist/angular-fontselect.min.css index 518bde7..9d303d9 100644 --- a/dist/angular-fontselect.min.css +++ b/dist/angular-fontselect.min.css @@ -1,2 +1,2 @@ -/*! angular-fontselect v0.8.7 */ -.jdfs-highlight,.jdfs-highlight:hover{background:#360e6b;color:#fff}.jdfs-fontstyle-other{display:none}.jdfs-main{width:300px;height:50px;position:relative;display:-webkit-box;display:-moz-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;background:#fbfbfb}.jdfs-main *,.jdfs-main :after,.jdfs-main :before{box-sizing:border-box}.jdfs-search-indicator{height:100%;margin:0}.jdfs-toggle{margin:0}.jdfs-reset-search{color:#fbfbfb;margin:0;right:0;background:#bcbcbc}.jdfs-toggle-search{cursor:text;margin:0;background:0 0;border:none}.jdfs-toggle-search,.jdfs-search{-webkit-box-flex:2;-moz-box-flex:2;-webkit-flex:2 1;-ms-flex:2 1;flex:2 1}.jdfs-search{padding:0 .5em}.jdfs-window{background:#bcbcbc;width:300px;top:100%;left:0;z-index:3000;position:absolute;padding:.5em}.jdfs-fontlistcon{width:100%}.jdfs-fontlist{background:#fbfbfb;padding:0;margin:0;height:330px;position:relative;color:#3e3e3e}.jdfs-fontlist li{display:-webkit-box;display:-moz-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;padding:0;margin:0;list-style-type:none;height:10%;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}.jdfs-fontlist li:last-child{border-bottom:none}.jdfs-fontlist label{display:-webkit-box;display:-moz-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-moz-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding-left:1.3em;width:100%}.jdfs-fontlist input{display:none}.jdfs-fontlist-noresults{color:#bcbcbc;position:absolute;text-align:center;top:50%;width:100%;line-height:0}.jdfs-fontpagination{width:100%;display:block;padding:.2em 0;margin:0;bottom:0}.jdfs-fontstyle-sansserif{font-family:sans-serif}.jdfs-fontstyle-serif{font-family:serif}.jdfs-fontstyle-display{font-family:fantasy}.jdfs-fontstyle-handwriting{font-family:cursive}.jdfs-footer-con{padding:.5em}.jdfs-footer{padding:.5em}.jdfs-footer-tab-open,.jdfs-footer{background:#646464;color:#fbfbfb}.jdfs-footer-tab-toggle{vertical-align:bottom;display:inline-block;padding:.5em 1em}.jdfs-settings-headline{padding:0;margin:.2em 0} \ No newline at end of file +/*! angular-fontselect v0.8.8 */ +.jdfs-highlight,.jdfs-highlight:hover{background:#360e6b;color:#fff}.jdfs-fontstyle-other{display:none}.jdfs-main{width:300px;height:50px;position:relative;display:-webkit-box;display:-moz-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;background:#fbfbfb}.jdfs-main *,.jdfs-main :after,.jdfs-main :before{box-sizing:border-box}.jdfs-search-indicator{height:100%;margin:0}.jdfs-toggle{margin:0}.jdfs-reset-search{color:#fbfbfb;margin:0;right:0;background:#bcbcbc}.jdfs-toggle-search{cursor:text;margin:0;background:0 0;border:none}.jdfs-toggle-search,.jdfs-search{-webkit-box-flex:2;-moz-box-flex:2;-webkit-flex:2 1;-ms-flex:2 1;flex:2 1}.jdfs-search{padding:0 .5em}.jdfs-window{background:#bcbcbc;width:300px;top:100%;left:0;z-index:3000;position:absolute;padding:.5em}.jdfs-fontlistcon{width:100%}.jdfs-fontlist{background:#fbfbfb;padding:0;margin:0;height:330px;position:relative;color:#3e3e3e}.jdfs-fontlist li{display:-webkit-box;display:-moz-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;padding:0;margin:0;list-style-type:none;height:10%;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}.jdfs-fontlist li:last-child{border-bottom:none}.jdfs-fontlist label{display:-webkit-box;display:-moz-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-moz-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding-left:1.3em;width:100%}.jdfs-fontlist input{display:none}.jdfs-fontlist-noresults{color:#bcbcbc;position:absolute;text-align:center;top:50%;width:100%;line-height:0}.jdfs-fontpagination{width:100%;display:block;padding:.2em 0;margin:0;bottom:0}.jdfs-fontstyle-sansserif{font-family:sans-serif}.jdfs-fontstyle-serif{font-family:serif}.jdfs-fontstyle-display{font-family:fantasy}.jdfs-fontstyle-handwriting{font-family:cursive}.jdfs-footer-con{padding:.5em}.jdfs-footer{padding:.5em .5em .5em .5em}.jdfs-footer-tab-open,.jdfs-footer{background:#646464;color:#fbfbfb}.jdfs-footer-tab-toggle{vertical-align:bottom;display:inline-block;padding:.5em 1em}.jdfs-settings-headline{padding:0;margin:.2em 0} \ No newline at end of file diff --git a/dist/angular-fontselect.min.js b/dist/angular-fontselect.min.js index d3071cf..5fa8eba 100644 --- a/dist/angular-fontselect.min.js +++ b/dist/angular-fontselect.min.js @@ -1,3 +1,3 @@ -/*! angular-fontselect v0.8.7 */ -!function(a,b){"use strict";function c(a){return a.toLowerCase().replace(/[^a-z]+/g,"-")}function d(a){for(var b=a.replace("-"," ").split(" "),c=0,d=b.length;d>c;c++)b[c]=b[c].charAt(0).toUpperCase()+b[c].slice(1);return b.join(" ")}function e(a){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;return c}function f(a,b){for(var c=b;null!==c;){if(c===a)return!0;c=c.parentNode}return!1}function g(){for(var a=this,b=0,c=bb.length;c>b;b++)a[bb[b]]=arguments[b];return a._init(),a}var h=a.module("jdFontselect",[]),i="websafe",j="google",k={};k[i]=!0,k[j]=!0;var l="sansserif",m="serif",n="handwriting",o="display",p="other",q=10,r="src/partials/",s=".controller",t="jdFontselect.fonts",u=[{name:"Arial",key:"arial",category:l,stack:'Arial, "Helvetica Neue", Helvetica, sans-serif',popularity:3,lastModified:"2014-01-28"},{name:"Consolas",key:"consolas",category:l,stack:'Consolas, "Lucida Console", Monaco, monospace',popularity:1,lastModified:"2014-02-04"},{name:"Courier New",key:"couriernew",category:m,stack:'"Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace',popularity:1,lastModified:"2014-01-28"},{name:"Georgia",key:"georgia",category:m,stack:'Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif',popularity:2,lastModified:"2014-02-04"},{name:"Helvetica",key:"helvetica",category:l,stack:'Helvetica, "Helvetica Neue", Arial, sans-serif',popularity:3,lastModified:"2014-02-04"},{name:"Impact",key:"impact",category:o,stack:'Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif',popularity:3,lastModified:"2014-02-04"},{name:"Lucida Sans",key:"lucidasans",category:l,stack:'"Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif',popularity:3,lastModified:"2014-02-04"},{name:"Palatino",key:"palatino",category:m,stack:'Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif',popularity:2,lastModified:"2014-02-04"},{name:"Tahoma",key:"tahoma",category:l,stack:"Tahoma, Verdana, Geneva, sans-serif",popularity:6,lastModified:"2014-02-04"},{name:"Trebuchet",key:"trebuchet",category:l,stack:'"Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif',popularity:6,lastModified:"2014-02-04"},{name:"Verdana",key:"verdana",category:l,stack:"Verdana, Geneva, sans-serif",popularity:6,lastModified:"2014-01-28"},{name:"Times New Roman",key:"timesnewroman",category:m,stack:'TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif',popularity:2,lastModified:"2014-01-28"},{name:"Brush Script",key:"brushscript",category:n,stack:'"Brush Script MT", cursive',popularity:5,lastModified:"2014-01-29"}],v={};v[l]={key:l,fallback:"sans-serif"},v[m]={key:m,fallback:"serif"},v[n]={key:n,fallback:"cursive"},v[o]={key:o,fallback:"fantasy"},v[p]={key:p,fallback:"sans-serif"};var w=[v[l],v[m],v[n],v[o],v[p]],x="next",y="prev",z=["name","key","stack"],A="get",B="https://www.googleapis.com/webfonts/v1/webfonts",C="http://fonts.googleapis.com/css",D="cyrillic",E="cyrillic-ext",F="greek",G="greek-ext",H="latin",I="latin-ext",J="vietnamese",K=[H,I,F,G,D,E,J],L=!1,M=["regular","400","300","500"],N=["light","100","200"],O=["bold","600","700","800","900"],P=["italic","400italic","300italic","500italic"],Q=["lightitalic","100italic","200italic"],R=["bolditalic","600italic","700italic","800italic","900italic"],S=M.concat(N,O,P,Q,R),T=27,U=38,V=40,W=37,X=39,Y=30,Z=[{key:"name",dir:!1},{key:"popularity",dir:!0},{key:"lastModified",dir:!0}],$={sort:{attr:b,direction:!0},providers:k,category:b,font:b,search:"",subsets:{latin:!0}},_={toggleOpenLabel:"open",toggleCloseLabel:"close",searchToggleLabel:"Search",search:"Search by Fontname",toggleSearchLabel:"Choose Font",providerLabel:"Providers",subsetLabel:"Subsets",styleLabel:"Categories",settingsLabel:"Settings",noResultsLabel:"No Fonts found.",pageLabel:"Page: ",fontFabel:"Fonts: ",closeButton:"Close",page:{prev:"▲",next:"▼"},provider:{websafe:"Websafe Fonts",google:"Google Fonts"},category:{serif:"Serif",sansserif:"Sans Serif",display:"Display",handwriting:"Handwriting",other:"Other"},subset:{cyrillic:"Cyrillic","cyrillic-ext":"Cyrillic Extended",greek:"Greek","greek-ext":"Greek Extended",latin:"Latin","latin-ext":"Latin Extended",vietnamese:"Vietnamese",devanagari:"Devanagari",khmer:"Khmer"},sort:{popularity:"Popularity",name:"Alphabet",lastModified:"Latest"},sortdir:{desc:"▼",asc:"▲"}};h.constant("jdFontselectConfig",{googleApiKey:!1});var ab={};ab[n]=["Patrick Hand SC","Grand Hotel","Calligraffitti","Coming Soon","Crafty Girls","Homemade Apple","Just Another Hand","Montez","Permanent Marker","Rancho","Redressed","Rochester","Rock Salt","Satisfy","Schoolbell","Sunshiney","Walter Turncoat","Yellowtail","Aguafina Script","Aladin","Alex Brush","Allura","Amatic SC","Annie Use Your Telescope","Architects Daughter","Arizonia","Bad Script","Berkshire Swash","Bilbo","Bilbo Swash Caps","Bonbon","Butterfly Kids","Cedarville Cursive","Clicker Script","Condiment","Cookie","Courgette","Covered By Your Grace","Damion","Dancing Script","Dawning of a New Day","Delius","Delius Swash Caps","Delius Unicase","Devonshire","Dr Sugiyama","Eagle Lake","Engagement","Euphoria Script","Felipa","Fondamento","Give You Glory","Gloria Hallelujah","Gochi Hand","Great Vibes","Handlee","Herr Von Muellerhoff","Indie Flower","Italianno","Jim Nightshade","Julee","Just Me Again Down Here","Kaushan Script","Kristi","La Belle Aurore","League Script","Leckerli One","Loved by the King","Lovers Quarrel","Marck Script","Meddon","Meie Script","Merienda","Merienda One","Mervale Script","Miama","Miss Fajardose","Miss Saint Delafield","Molle","Monsieur La Doulaise","Mr Bedford","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Neucha","Niconne","Norican","Nothing You Could Do","Over the Rainbow","Pacifico","Parisienne","Patrick Hand","Pecita","Petit Formal Script","Pinyon Script","Princess Sofia","Quintessential","Qwigley","Reenie Beanie","Romanesco","Rouge Script","Ruge Boogie","Ruthie","Sacramento","Shadows Into Light","Shadows Into Light Two","Short Stack","Sofia","Stalemate","Sue Ellen Francisco","Swanky and Moo Moo","Tangerine","The Girl Next Door","Vibur","Waiting for the Sunrise","Yesteryear","Zeyada","Domine","Donegal One"],ab[l]=["Wendy One","Tauri","Sintony","Pathway Gothic One","Noto Sans","Monda","Merriweather Sans","Exo 2","Aclonica","Alef","Alegreya Sans","Alegreya Sans SC","Denk One","Droid Sans","Droid Sans Mono","Open Sans","Open Sans Condensed","Roboto","Roboto Condensed","Syncopate","ABeeZee","Abel","Acme","Actor","Advent Pro","Aldrich","Allerta","Allerta Stencil","Amaranth","Anaheim","Andika","Anonymous Pro","Antic","Anton","Archivo Black","Archivo Narrow","Arimo","Armata","Asap","Asul","Average Sans","Basic","Belleza","BenchNine","Bubbler One","Cabin","Cabin Condensed","Cagliostro","Candal","Cantarell","Cantora One","Capriola","Carme","Carrois Gothic","Carrois Gothic SC","Changa","Chau Philomene One","Chivo","Coda Caption","Convergence","Cousine","Cuprum","Days One","Didact Gothic","Doppio One","Dorsa","Dosis","Duru Sans","Economica","Electrolize","Englebert","Exo","Federo","Fjalla One","Francois One","Fresca","Gafata","Galdeano","Geo","Gudea","Hammersmith One","Hermeneus One","Homenaje","Imprima","Inconsolata","Inder","Istok Web","Jockey One","Josefin Sans","Josefin Sans Std Light","Julius Sans One","Jura","Karla","Kite One","Krona One","Lato","Lekton","Magra","Mako","Marmelad","Marvel","Maven Pro","Merge One","Metrophobic","Michroma","Molengo","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mouse Memoirs","Muli","News Cycle","Nobile","Numans","Nunito","Orbitron","Orienta","Oswald","Oxygen","Oxygen Mono","Paytone One","Philosopher","Play","Pontano Sans","Port Lligat Sans","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","Puritan","Quantico","Quattrocento Sans","Questrial","Quicksand","Raleway","Rambla","Rationale","Ropa Sans","Rosario","Ruda","Ruluko","Rum Raisin","Russo One","Sansation","Scada","Seymour One","Shanti","Share Tech","Share Tech Mono","Signika","Signika Negative","Six Caps","Snippet","Source Code Pro","Source Sans Pro","Spinnaker","Strait","Strong","Telex","Tenor Sans","Terminal Dosis","Terminal Dosis Light","Text Me One","Titillium Web","Tuffy","Varela","Varela Round","Viga","Voltaire","Wire One","Yanone Kaffeesatz","Ubuntu","Ubuntu Condensed","Ubuntu Mono"],ab[o]=["Rubik One","Rubik Mono One","Vampiro One","Snowburst One","Purple Purse","New Rocker","Milonga","Margarine","Lily Script One","Kavoon","Hanalei","Hanalei Fill","Fruktur","Freckle Face","Elsie","Elsie Swash Caps","Cherry Cream Soda","Chewy","Creepster Caps","Crushed","Fontdiner Swanky","Irish Grover","Irish Growler","Kranky","Luckiest Guy","Maiden Orange","Mountains of Christmas","Slackey","Smokum","Special Elite","Unkempt","Abril Fatface","Akronim","Alfa Slab One","Allan","Almendra Display","Amarante","Arbutus","Asset","Astloch","Atomic Age","Aubrey","Audiowide","Autour One","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bangers","Baumans","Bevan","Bigelow Rules","Bigshot One","Black Ops One","Boogaloo","Bowlby One","Bowlby One SC","Bubblegum Sans","Buda","Butcherman","Butcherman Caps","Cabin Sketch","Caesar Dressing","Carter One","Ceviche One","Changa One","Chango","Chela One","Chelsea Market","Cherry Swash","Chicle","Cinzel Decorative","Clara","Coda","Codystar","Combo","Comfortaa","Concert One","Contrail One","Corben","Creepster","Croissant One","Diplomata","Diplomata SC","Dynalight","Eater","Eater Caps","Emblema One","Emilys Candy","Erica One","Ewert","Expletus Sans","Fascinate","Fascinate Inline","Faster One","Federant","Finger Paint","Flamenco","Flavors","Forum","Fredericka the Great","Fredoka One","Frijole","Fugaz One","Galindo","Geostar","Geostar Fill","Germania One","Glass Antiqua","Goblin One","Gorditas","Graduate","Gravitas One","Griffy","Gruppo","Happy Monkey","Henny Penny","Iceberg","Iceland","Jacques Francois Shadow","Jolly Lodger","Joti One","Keania One","Kelly Slab","Kenia","Knewave","Lancelot","Lemon","Lemon One","Life Savers","Lilita One","Limelight","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Love Ya Like A Sister","Macondo","Macondo Swash Caps","McLaren","MedievalSharp","Medula One","Megrim","Metal Mania","Metamorphous","Miltonian","Miltonian Tattoo","Miniver","Modern Antiqua","Monofett","Monoton","Mystery Quest","Nixie One","Nosifer","Nosifer Caps","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Offside","Oldenburg","Oleo Script","Oleo Script Swash Caps","Oregano","Original Surfer","Overlock","Overlock SC","Paprika","Passero One","Passion One","Patua One","Peralta","Piedra","Pirata One","Plaster","Playball","Poetsen One","Poiret One","Poller One","Pompiere","Press Start 2P","Prosto One","Racing Sans One","Raleway Dots","Rammetto One","Ranchers","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Ruslan Display","Rye","Sail","Salsa","Sancreek","Sansita One","Sarina","Seaweed Script","Sevillana","Share","Shojumaru","Sigmar One","Simonetta","Sirin Stencil","Skranji","Smythe","Sniglet","Sofadi One","Sonsie One","Spicy Rice","Spirax","Squada One","Stalinist One","Stalin One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Supermercado One","Titan One","Trade Winds","Trochut","Tulpen One","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unlock","Vast Shadow","Voces","VT323","Wallpoet","Warnes","Wellfleet","Yeseva One"],ab[m]=["Roboto Slab","Noto Serif","Libre Baskerville","Gabriela","Fauna One","Droid Serif","jsMath cmbx10","jsMath cmex10","jsMath cmmi10","jsMath cmr10","jsMath cmsy10","jsMath cmti10","Ultra","Adamina","Alegreya","Alegreya SC","Alice","Alike","Alike Angular","Almendra","Almendra SC","Amethysta","Amiri","Andada","Andada SC","Antic Didone","Antic Slab","Arapey","Arbutus Slab","Artifika","Arvo","Average","Balthazar","Belgrano","Bentham","Bitter","Brawler","Bree Serif","Buenard","Cambo","Cantata One","Cardo","Caudex","Cinzel","Copse","Coustard","Crete Round","Crimson Text","Cutive","Cutive Mono","Della Respira","EB Garamond","Enriqueta","Esteban","Fanwood Text","Fenix","Fjord One","Gentium Basic","Gentium Book Basic","Gilda Display","Glegoo","Goudy Bookletter 1911","Habibi","Headland One","Holtwood One SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Inika","Italiana","Jacques Francois","Josefin Slab","Judson","Junge","Kameron","Kotta One","Kreon","Ledger","Linden Hill","Lora","Lusitana","Lustria","Marcellus","Marcellus SC","Marko One","Mate","Mate SC","Merriweather","Montaga","Neuton","Noticia Text","OFL Sorts Mill Goudy TT","Old Standard TT","Oranienbaum","Ovo","Petrona","Playfair Display","Playfair Display SC","Podkova","Poly","Port Lligat Slab","Prata","Prociono","PT Serif","PT Serif Caption","Quando","Quattrocento","Radley","Rokkitt","Rosarivo","Rufina","Sanchez","Sedan","Sedan SC","Sorts Mill Goudy","Stoke","Tienne","Tinos","Trocchi","Trykker","Unna","Vidaloka","Volkhov","Vollkorn"],ab[p]=["Angkor","Battambang","Bayon","Bokor","Chenla","Content","Dangrek","Fasthand","Freehand","GFS Didot","GFS Neohellenic","Hanuman","Kantumruy","Kdam Thmor","Khmer","Koulen","Metal","Moul","Moulpali","Nokora","Odor Mean Chey","Preahvihear","Siemreap","Suwannaphum","Taprom"],h.filter("startFrom",function(){return function(b,c){return a.isArray(b)?b.slice(c):b}}),h.filter("fuzzySearch",function(){var b={teAmount:0,tePercent:.3};return function(c,d,e){function f(a){return new RegExp(a.replace(/./g,function(a){return"([^"+a+"]*?(?:"+a+"))?"}),"i")}if(!a.isArray(c)||a.isUndefined(d))return c;var g=!0,h=[];e=a.extend(b,e);var i=function(a,b,c){var d=(a.match(b)||[]).filter(function(a,b){return 0!==b&&a}),f=d.length+e.teAmount>=c,g=d.length/c>=1-e.tePercent;return f||g};if(a.isString(d)){var j=f(d);g=!1,a.forEach(c[0],function(a,b){"$"!==b.substring(0,1)&&h.push({key:b,search:j,length:d.length})})}else if(a.isObject(d)){var k=!1;if(a.forEach(d,function(b,c){a.isUndefined(b)||(k=!0,h.push({key:c,search:f(b),length:b.length}))}),!k)return c}return c=c.filter(function(a){for(var b=0,c=h.length;c>b;b++){var d=h[b],e=a[d.key]||"",f=i(e,d.search,d.length);if(g&&!f)return!1;if(f)return!0}return!1})}}),h.filter("stackSearch",function(){function b(a){return""+a.length+a[0].key+a[a.length-1].key}function c(e,f){var g,h,i;if(!a.isArray(e)||!e.length)return e;f=f.toLowerCase(),i=c.normalizeStack(f),g=b(e),h=d[g]?d[g]:d[g]=c.createWeightedFontList(e);for(var j=0,k=i.length;k>j;j++)if(h[i[j]])return h[i[j]].fonts;return[]}var d={};return c.normalizeStack=function(b){var c=[];return a.forEach(b.split(","),function(a){c.push(a.replace(/^[ '"]*|[ '"]*$/g,""))}),c},c.createWeightedFontList=function(a){var b={};return a.forEach(function(a){var d=c.normalizeStack(a.stack.toLowerCase());d.forEach(function(c,d){!b[c]||b[c].pos>d?b[c]={fonts:[a],pos:d}:b[c].pos===d&&b[c].fonts.push(a)})}),b},c}),h.filter("hasAllSubsets",function(){return function(b,c){function d(b){var d=!0;return a.forEach(c,function(a,c){a&&d&&b.subsets.indexOf(c)<0&&(d=!1)}),d}return a.isArray(b)?b.filter(function(b){return a.isUndefined(b.subsets)?!0:a.isObject(b)&&d(b)}):b}});var bb=["$http","$q","jdFontselectConfig","$filter"],cb=!1;g.$inject=bb,g.prototype={_init:function(){var b=this;b._fonts=b._fonts||[],b._map={},b._subsets=a.copy($.subsets),b._providers=a.copy($.providers),b._imports={},b._usedProviders={},b._initPromises=[],b._asyncProviderQueue=[],b._fontInitiators={},b.registerProvider(j,a.bind(b,b._loadGoogleFont)),b.registerProvider(i,function(){}),b._addDefaultFonts()},getAllFonts:function(){return this._fonts},ready:function(b){var c=this.$q.all(this._initPromises);return a.isFunction(b)&&c.then(b),c},add:function(b,c){var d=this;if(a.isString(c)||(c=a.isString(b.provider)?b.provider:i),b.provider=c,b.stack+=', "'+c+'"',!d.isValidFontObject(b))throw"Invalid font object.";return a.isObject(d._map[c])||(d._map[c]={}),a.isArray(b.subsets)&&d.setSubsets(b.subsets),d._fonts.push(b),b},searchFonts:function(a){var b=this;return b.$filter("filter")(b._fonts,a)},searchFont:function(a){var b=this,c=b.searchFonts(a);return 1===c.length?c[0]:c.length>0?b._getBestFontForSearch(c,a):void 0},getFontByKey:function(a,b){var c=this;if(!b)throw"Provider is not set.";var d=c.searchFont({key:a,provider:b});if(!d)throw'Font "'+a+'" not found in "'+b+'".';return d},getFontByStack:function(a,b){b="boolean"==typeof b?b:!0;var c,d=this;if(b){var e=d.searchFont({stack:a});c=e?[e]:[]}else c=d.$filter("stackSearch")(d._fonts,a);if(!c.length)throw new Error('Font with stack "'+a+'" not found.');return c[0]},getFontByStackAsync:function(a,b){b="boolean"==typeof b?b:!0;var c=this,d=c.$q.defer(),e=null;return c.$q.all(c._asyncProviderQueue).then(function(){try{var f=c.getFontByStack(a,b);d.resolve(f)}catch(g){b?(d.reject(g),delete c._initPromises[e]):d.resolve()}},d.reject),e=c._initPromises.push(d.promise)-1,d.promise},getFontsByStacksAsync:function(b,c){c="boolean"==typeof c?c:!0;var d=this,e=[];a.forEach(b,function(a){e.push(d.getFontByStackAsync(a,c))});var f=d.$q.all(e);if(c)return f;var g=d.$q.defer();return f.then(function(b){var c=[];a.forEach(b,function(b){a.isObject(b)&&c.push(b)}),g.resolve(c)}),g.promise},removeFont:function(b,c){var d=this;if(a.isString(b)&&!c)throw"Provider is not set.";try{a.isString(b)&&(b=d.getFontByKey(b,c));var e=d._fonts.indexOf(b),f=0;return e>=0&&(f=d._fonts.splice(e,1).length),f}catch(g){return 0}},isValidFontObject:function(b){if(!a.isObject(b))return!1;var c=!0;return a.forEach(z,function(d){a.isUndefined(b[d])&&(c=!1)}),c},getCategories:function(){return w},getImports:function(){return this._imports},getImportsForStacks:function(b,c){var d=this,e=d.$q.defer();if(a.isArray(b)){var f=[];d.getFontsByStacksAsync(b,c).then(function(a){f=a})["finally"](function(){e.resolve(d.getUrlsFor(f))})}else e.reject(new Error("No stacks given"));return e.promise},getSubsets:function(){return this._subsets},getProviders:function(){return this._providers},getUsage:function(){return this._usedProviders},getUsageForStacks:function(b){var c=this,d=c.$filter("stackSearch").normalizeStack,e=c.getProviders(),f={};return a.isArray(b)?(a.forEach(b,function(b){if(b){var c=d(b),g=c[c.length-1];f[g]||a.isUndefined(e[g])||(f[g]=!0)}}),f):f},setSubsets:function(a,b){var c=this;return c._setSelects(c._subsets,a,c._setSelectOptions(b))},setProviders:function(a,b){var c=this;return c._setSelects(c._providers,a,c._setSelectOptions(b))},setImports:function(a,b){var c=this;return c._setSelects(c._imports,a,c._setSelectOptions(b,{update:!0}))},setUsage:function(a,b){var c=this;return c._setSelects(c._usedProviders,a,c._setSelectOptions(b,{update:!0}))},registerProvider:function(a,b){var c=this,d={};d[a]=!1,c.setProviders(d),c._usedProviders[a]=!1,c._fontInitiators[a]=b},_escapeRegExp:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},_getBestFontForSearch:function(b,c){var d=this;return b.sort(function(b,e){var f=0,g=0;return a.forEach(c,function(c,h){if(a.isString(c)){var i=new RegExp(d._escapeRegExp(c));if(i.test(b[h])&&i.test(e[h])){var j=b[h].replace(c,"").length,k=e[h].replace(c,"").length;return void(k>j?f++:j>k&&g++)}}b[h]===c&&f++,e[h]===c&&g++}),f>g?-1:g>f?1:0}),b[0]},_setSelectOptions:function(b,c){return"boolean"==typeof b&&(b={additive:b}),a.isObject(c)||(c={}),b=a.extend({additive:!0,update:!1},b,c)},_setSelects:function(b,c,d){if(a.isUndefined(c))return b;if(a.isObject(d)||(d=this._setSelectOptions(d)),a.isArray(c)){for(var e={},f=0,g=c.length;g>f;f++)e[c[f]]=!1;c=e}return d.additive||a.forEach(b,function(a,d){c[d]||delete b[d]}),a.forEach(c,function(c,e){(d.update||a.isUndefined(b[e]))&&(b[e]=c)}),b},updateImports:function(){this.setImports(this.getUrls())},load:function(a){a.loaded||(a.loaded=!0,this._fontInitiators[a.provider](a))},getUrls:function(){var a=this,b=a.getGoogleUrl(),c={};return b&&(c[j]=b),c},getUrlsFor:function(a){var b=this,c=b.$filter("filter")(a,{provider:j}),d=b.getGoogleUrlFor(c),e={};return d&&(e[j]=d),e},updateUsage:function(b,c){var d=this;(!a.isNumber(b.used)||b.used<0)&&(b.used=0),b.used+=c===!1?-1:1,d._updateProvicerUsage()},_updateProvicerUsage:function(){var b=this,c=b.$filter("filter"),d=b.getUsedFonts();a.forEach(b._providers,function(a,e){b._usedProviders[e]=!!c(d,{provider:e}).length})},getUsedFonts:function(){var a=this;return a.$filter("filter")(a._fonts,{used:!0},function(a){return!!a})},getGoogleUrl:function(){var a=this,b=a.$filter("filter")(a.getUsedFonts(),{provider:j});return a.getGoogleUrlFor(b)},getGoogleUrlFor:function(b){var c=this,d=[],e=C;if(b.length){for(var f,g=[],h=0,i=b.length;i>h;h++)f=b[h].variants?":"+c._getBestVariantOf(b[h].variants):"",g.push(b[h].name+f);return e+="?family="+window.escape(g.join("|")),a.forEach(c._subsets,function(a,b){a&&d.push(b)}),d.length&&(e+="&subset="+d.join(",")),e}return!1},_remap:function(b,c){var d=this,e=d._fonts[b];a.isNumber(c)||(c=0);for(var f=c,g=e.length;g>f;f++)d._map[b][e[f].key]=f},_getBestOf:function(a,b){for(var c=0,d=b.length;d>c;c++){var e=b[c];if(a.indexOf(e)>=0)return e}return a[0]},_getBestVariantOf:function(a){return this._getBestOf(a,S)},_getBestSubsetOf:function(a){return this._getBestOf(a,K)},_initGoogleFonts:function(b){var d=this;if(d.jdFontselectConfig.googleApiKey&&(b||!cb)){var e=d.jdFontselectConfig.googleApiUrl||B;cb=!0;var f=d.$q.defer();d._initPromises.push(f.promise),d._asyncProviderQueue.push(f.promise),d.$http({method:A,url:e,params:{sort:"popularity",key:d.jdFontselectConfig.googleApiKey}}).success(function(b){var e=b.items.length,g=e-1,h=[];a.forEach(b.items,function(a,b){var i=d._getGoogleFontCat(a.family);h.push(d.add({subsets:a.subsets,variants:a.variants,name:a.family,popularity:e-b,key:c(a.family),lastModified:a.lastModified,stack:'"'+a.family+'", '+i.fallback,category:i.key},j)),g===b&&f.resolve(h)})}).error(f.reject)}},_getGoogleFontCat:function(a){for(var b=this,c=b.getCategories(),d=0,e=c.length;e>d;d++){var f=c[d];if("undefined"!=typeof ab[f.key]&&ab[f.key].indexOf(a)>=0)return f}return v[p]},_addDefaultFonts:function(){var b=this;a.forEach(u,function(a){b.add(a)})},_loadGoogleFont:function(a){var b=this;try{WebFont.load({google:{families:[a.name+":"+b._getBestVariantOf(a.variants)],text:a.name,subsets:a.subsets,subset:b._getBestSubsetOf(a.subsets)}})}catch(c){b.removeFont(a,j)}}},h.factory(t,["$injector",function(a){return a.instantiate(g)}]);var db=1;h.directive("jdFontselect",[t,function(c){return{scope:{current:"=?state",stack:"=?",name:"=?",rawText:"@?text",text:"=?textObj",onInit:"&?"},restrict:"E",templateUrl:r+"fontselect.html",replace:!0,controller:["$scope","$element","$timeout",function(g,h,i){function j(b){var d,f;g.current=a.extend(a.copy($),b||{}),g.current.sort.attr||(g.current.sort.attr=Z[0]),a.isObject(g.current.font)&&(g.stack=g.current.font.stack,g.name=g.current.font.name),d=c.getSubsets(),g.current.subsets=e(d)?d:c.setSubsets(g.current.subsets),f=c.getProviders(),g.current.providers=e(f)?f:c.setProviders(g.current.providers)}function k(){g.toggle(),g.$digest()}if(g.fonts=c.getAllFonts(),g.id=db++,g.stylesActive=!0,g.settingsActive=!1,g.active=!1,g.searching=!1,g.categories=c.getCategories(),g.sortAttrs=Z,g.name="",g.meta={},a.isUndefined(g.stack)&&(g.stack=L),g.text=a.extend(a.copy(_),g.text||{}),g.rawText&&(g.text=a.extend(g.text,g.$eval(g.rawText)||{})),g.reverseSort=function(){var a=g.current.sort;a.direction=!a.direction},g.toggle=function(){g.active=!g.active,g.active||(g.searching=!1)},g.toggleSearch=function(){g.active=!0,g.searching=!g.searching,g.searching&&g.setFocus()},g.tryUnfocusSearch=function(){g.searching&&0===g.current.search.length&&(g.searching=!1)},g.resetSearch=function(){g.current.search="",g.searching&&g.setFocus()},g.toName=d,g.setFocus=function(){i(function(){h[0].querySelector(".jdfs-search").focus()})},document.addEventListener("click",function(a){g.active&&!f(h[0],a.target)&&k()}),document.addEventListener("keyup",function(a){g.active&&a.keyCode===T&&k()}),g.setCategoryFilter=function(a){var c=g.current;c.category=c.category===a?b:a},g.reset=function(){j()},g._setSelected=function(b){a.isObject(b)?(g.name=b.name,g.stack=b.stack):(g.name="",g.stack=L)},g.toggleSettings=function(){g.settingsActive=!0,g.stylesActive=!1},g.toggleStyles=function(){g.stylesActive=!0,g.settingsActive=!1},c._initGoogleFonts(),a.isObject(g.current)&&j(g.current),g.stack.length)try{var l=c.getFontByStack(g.stack);c.updateUsage(l),c.load(l),j({font:l})}catch(m){c.getFontByStackAsync(g.stack,!1).then(function(b){a.isObject(b)&&j({font:b})})}g.onInit({$scope:g})}],link:function(b){b.$watch("current.font",function(d,e){a.isObject(b.current)||b.reset(),e!==d&&(b.tryUnfocusSearch(),a.isObject(b.current.font)&&(d=b.current.font),a.isObject(e)&&e.used&&c.updateUsage(e,!1),a.isObject(d)&&(c.updateUsage(d),c.load(d)),b._setSelected(d),c.updateImports())}),b.$watch("current.subsets",function(a,b){a!==b&&c.updateImports()},!0),b.$watch("stack",function(a,d){var e;if(!(a===d||b.current.font&&a===b.current.font.stack))try{a&&a.length&&(e=c.getFontByStack(a,!1)),e?b.current.font=e:b.reset()}catch(f){b.reset()}})}}}]);var eb="jdFontlist",fb=eb+s;h.directive(eb,function(){return{scope:{id:"=fsid",fonts:"=",meta:"=",current:"=",text:"=",active:"="},restrict:"E",templateUrl:r+"fontlist.html",replace:!0,controller:fb}}),h.controller(fb,["$scope","$rootScope","$filter","jdFontselect.fonts","$element",function(c,d,e,g,h){function i(a){var b=F.current*F.size;return a>=b&&a1){var c=new RegExp("["+b+"]+");a.sort(function(a,d){var e=a.name.toLowerCase(),f=d.name.toLowerCase(),g=e[0],h=f[0];if(g!==h){if(g===b[0])return-1;if(h===b[0])return 1}return e.replace(c,"").length1&&Y>e){if(D+=d,Math.abs(D)0?-b:b)!==!1&&c.$digest()}};document.addEventListener("wheel",H),document.addEventListener("mousewheel",H),document.addEventListener("DOMMouseScroll",H),c.setCurrentPage=function(a){F.currentAbs=F.current=a},c.paginate=function(b){var d=b;if(a.isNumber(b)){if(0===b)return!1;d=0>b?y:x}else b=o(d);return c.paginationButtonActive(d)?(F.current+b<0?F.currentAbs=F.current=0:(F.current+=b,F.currentAbs=Math.floor(F.current)),F.current):!1},c.paginationButtonActive=function(a){return r(),s(),a===x&&(F.current+1)*F.size0},c.getPages=function(){r();var a=new Array(F.count);return s(),a.length<=1?[]:a},c.getFilteredFonts=function(){if(!a.isArray(c.fonts))return[];var b=c.fonts;E=C.fontAmount!==b.length,C.fontAmount=b.length;for(var d=[j,k,l,n,m],e=0,f=d.length;f>e;e++)b=d[e](b);return t=b,G.total=c.fonts.length,G.current=t.length,t}}]),h.directive("jdFont",["jdFontselect.fonts",function(a){return{templateUrl:r+"font.html",restrict:"E",replace:!0,controller:["$scope",function(b){if(b.active)a.load(b.font);else var c=b.$watch("active",function(d){d&&(a.load(b.font),c())})}]}}]),h.directive("jdFontselectCurrentHref",[t,function(a){return{templateUrl:r+"current-href.html",restrict:"A",replace:!0,controller:["$scope",function(b){b.urls=a.getImports()}]}}]);var gb="jdMeta";h.directive(gb,function(){return{restrict:"E",templateUrl:r+"meta.html",replace:!0}}),a.module("jdFontselect").run(["$templateCache",function(a){a.put("src/partials/current-href.html",''),a.put("src/partials/font.html",'
  • '),a.put("src/partials/fontlist.html",'
    • {{text.noResultsLabel}}
    '),a.put("src/partials/fontselect.html",'
    '),a.put("src/partials/meta.html",'
    {{text.fontFabel}} {{meta.fonts.total}} {{meta.fonts.current}}/{{meta.fonts.total}}
    {{text.pageLabel}} {{meta.page.currentAbs + 1}}/{{meta.page.count}}
    ') +/*! angular-fontselect v0.8.8 */ +!function(a,b){"use strict";function c(a){return a.toLowerCase().replace(/[^a-z]+/g,"-")}function d(a){for(var b=a.replace("-"," ").split(" "),c=0,d=b.length;d>c;c++)b[c]=b[c].charAt(0).toUpperCase()+b[c].slice(1);return b.join(" ")}function e(a){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;return c}function f(a,b){for(var c=b;null!==c;){if(c===a)return!0;c=c.parentNode}return!1}function g(){for(var a=this,b=0,c=bb.length;c>b;b++)a[bb[b]]=arguments[b];return a._init(),a}var h=a.module("jdFontselect",[]),i="websafe",j="google",k={};k[i]=!0,k[j]=!0;var l="sansserif",m="serif",n="handwriting",o="display",p="other",q=10,r="src/partials/",s=".controller",t="jdFontselect.fonts",u=[{name:"Arial",key:"arial",category:l,stack:'Arial, "Helvetica Neue", Helvetica, sans-serif',popularity:3,lastModified:"2014-01-28"},{name:"Consolas",key:"consolas",category:l,stack:'Consolas, "Lucida Console", Monaco, monospace',popularity:1,lastModified:"2014-02-04"},{name:"Courier New",key:"couriernew",category:m,stack:'"Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace',popularity:1,lastModified:"2014-01-28"},{name:"Georgia",key:"georgia",category:m,stack:'Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif',popularity:2,lastModified:"2014-02-04"},{name:"Helvetica",key:"helvetica",category:l,stack:'Helvetica, "Helvetica Neue", Arial, sans-serif',popularity:3,lastModified:"2014-02-04"},{name:"Impact",key:"impact",category:o,stack:'Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif',popularity:3,lastModified:"2014-02-04"},{name:"Lucida Sans",key:"lucidasans",category:l,stack:'"Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif',popularity:3,lastModified:"2014-02-04"},{name:"Palatino",key:"palatino",category:m,stack:'Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif',popularity:2,lastModified:"2014-02-04"},{name:"Tahoma",key:"tahoma",category:l,stack:"Tahoma, Verdana, Geneva, sans-serif",popularity:6,lastModified:"2014-02-04"},{name:"Trebuchet",key:"trebuchet",category:l,stack:'"Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif',popularity:6,lastModified:"2014-02-04"},{name:"Verdana",key:"verdana",category:l,stack:"Verdana, Geneva, sans-serif",popularity:6,lastModified:"2014-01-28"},{name:"Times New Roman",key:"timesnewroman",category:m,stack:'TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif',popularity:2,lastModified:"2014-01-28"},{name:"Brush Script",key:"brushscript",category:n,stack:'"Brush Script MT", cursive',popularity:5,lastModified:"2014-01-29"}],v={};v[l]={key:l,fallback:"sans-serif"},v[m]={key:m,fallback:"serif"},v[n]={key:n,fallback:"cursive"},v[o]={key:o,fallback:"fantasy"},v[p]={key:p,fallback:"sans-serif"};var w=[v[l],v[m],v[n],v[o],v[p]],x="next",y="prev",z=["name","key","stack"],A="get",B="https://www.googleapis.com/webfonts/v1/webfonts",C="http://fonts.googleapis.com/css",D="cyrillic",E="cyrillic-ext",F="greek",G="greek-ext",H="latin",I="latin-ext",J="vietnamese",K=[H,I,F,G,D,E,J],L=!1,M=["regular","400","300","500"],N=["light","100","200"],O=["bold","600","700","800","900"],P=["italic","400italic","300italic","500italic"],Q=["lightitalic","100italic","200italic"],R=["bolditalic","600italic","700italic","800italic","900italic"],S=M.concat(N,O,P,Q,R),T=27,U=38,V=40,W=37,X=39,Y=30,Z=[{key:"name",dir:!1},{key:"popularity",dir:!0},{key:"lastModified",dir:!0}],$={sort:{attr:b,direction:!0},providers:k,category:b,font:b,search:"",subsets:{latin:!0}},_={toggleOpenLabel:"open",toggleCloseLabel:"close",searchToggleLabel:"Search",search:"Search by Fontname",toggleSearchLabel:"Choose Font",providerLabel:"Providers",subsetLabel:"Subsets",styleLabel:"Categories",settingsLabel:"Settings",noResultsLabel:"No Fonts found.",pageLabel:"Page: ",fontFabel:"Fonts: ",closeButton:"Close",page:{prev:"▲",next:"▼"},provider:{websafe:"Websafe Fonts",google:"Google Fonts"},category:{serif:"Serif",sansserif:"Sans Serif",display:"Display",handwriting:"Handwriting",other:"Other"},subset:{cyrillic:"Cyrillic","cyrillic-ext":"Cyrillic Extended",greek:"Greek","greek-ext":"Greek Extended",latin:"Latin","latin-ext":"Latin Extended",vietnamese:"Vietnamese",devanagari:"Devanagari",khmer:"Khmer"},sort:{popularity:"Popularity",name:"Alphabet",lastModified:"Latest"},sortdir:{desc:"▼",asc:"▲"}};h.constant("jdFontselectConfig",{googleApiKey:!1});var ab={};ab[n]=["Patrick Hand SC","Grand Hotel","Calligraffitti","Coming Soon","Crafty Girls","Homemade Apple","Just Another Hand","Montez","Permanent Marker","Rancho","Redressed","Rochester","Rock Salt","Satisfy","Schoolbell","Sunshiney","Walter Turncoat","Yellowtail","Aguafina Script","Aladin","Alex Brush","Allura","Amatic SC","Annie Use Your Telescope","Architects Daughter","Arizonia","Bad Script","Berkshire Swash","Bilbo","Bilbo Swash Caps","Bonbon","Butterfly Kids","Cedarville Cursive","Clicker Script","Condiment","Cookie","Courgette","Covered By Your Grace","Damion","Dancing Script","Dawning of a New Day","Delius","Delius Swash Caps","Delius Unicase","Devonshire","Dr Sugiyama","Eagle Lake","Engagement","Euphoria Script","Felipa","Fondamento","Give You Glory","Gloria Hallelujah","Gochi Hand","Great Vibes","Handlee","Herr Von Muellerhoff","Indie Flower","Italianno","Jim Nightshade","Julee","Just Me Again Down Here","Kaushan Script","Kristi","La Belle Aurore","League Script","Leckerli One","Loved by the King","Lovers Quarrel","Marck Script","Meddon","Meie Script","Merienda","Merienda One","Mervale Script","Miama","Miss Fajardose","Miss Saint Delafield","Molle","Monsieur La Doulaise","Mr Bedford","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Neucha","Niconne","Norican","Nothing You Could Do","Over the Rainbow","Pacifico","Parisienne","Patrick Hand","Pecita","Petit Formal Script","Pinyon Script","Princess Sofia","Quintessential","Qwigley","Reenie Beanie","Romanesco","Rouge Script","Ruge Boogie","Ruthie","Sacramento","Shadows Into Light","Shadows Into Light Two","Short Stack","Sofia","Stalemate","Sue Ellen Francisco","Swanky and Moo Moo","Tangerine","The Girl Next Door","Vibur","Waiting for the Sunrise","Yesteryear","Zeyada","Domine","Donegal One"],ab[l]=["Wendy One","Tauri","Sintony","Pathway Gothic One","Noto Sans","Monda","Merriweather Sans","Exo 2","Aclonica","Alef","Alegreya Sans","Alegreya Sans SC","Denk One","Droid Sans","Droid Sans Mono","Open Sans","Open Sans Condensed","Roboto","Roboto Condensed","Syncopate","ABeeZee","Abel","Acme","Actor","Advent Pro","Aldrich","Allerta","Allerta Stencil","Amaranth","Anaheim","Andika","Anonymous Pro","Antic","Anton","Archivo Black","Archivo Narrow","Arimo","Armata","Asap","Asul","Average Sans","Basic","Belleza","BenchNine","Bubbler One","Cabin","Cabin Condensed","Cagliostro","Candal","Cantarell","Cantora One","Capriola","Carme","Carrois Gothic","Carrois Gothic SC","Changa","Chau Philomene One","Chivo","Coda Caption","Convergence","Cousine","Cuprum","Days One","Didact Gothic","Doppio One","Dorsa","Dosis","Duru Sans","Economica","Electrolize","Englebert","Exo","Federo","Fjalla One","Francois One","Fresca","Gafata","Galdeano","Geo","Gudea","Hammersmith One","Hermeneus One","Homenaje","Imprima","Inconsolata","Inder","Istok Web","Jockey One","Josefin Sans","Josefin Sans Std Light","Julius Sans One","Jura","Karla","Kite One","Krona One","Lato","Lekton","Magra","Mako","Marmelad","Marvel","Maven Pro","Merge One","Metrophobic","Michroma","Molengo","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mouse Memoirs","Muli","News Cycle","Nobile","Numans","Nunito","Orbitron","Orienta","Oswald","Oxygen","Oxygen Mono","Paytone One","Philosopher","Play","Pontano Sans","Port Lligat Sans","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","Puritan","Quantico","Quattrocento Sans","Questrial","Quicksand","Raleway","Rambla","Rationale","Ropa Sans","Rosario","Ruda","Ruluko","Rum Raisin","Russo One","Sansation","Scada","Seymour One","Shanti","Share Tech","Share Tech Mono","Signika","Signika Negative","Six Caps","Snippet","Source Code Pro","Source Sans Pro","Spinnaker","Strait","Strong","Telex","Tenor Sans","Terminal Dosis","Terminal Dosis Light","Text Me One","Titillium Web","Tuffy","Varela","Varela Round","Viga","Voltaire","Wire One","Yanone Kaffeesatz","Ubuntu","Ubuntu Condensed","Ubuntu Mono"],ab[o]=["Rubik One","Rubik Mono One","Vampiro One","Snowburst One","Purple Purse","New Rocker","Milonga","Margarine","Lily Script One","Kavoon","Hanalei","Hanalei Fill","Fruktur","Freckle Face","Elsie","Elsie Swash Caps","Cherry Cream Soda","Chewy","Creepster Caps","Crushed","Fontdiner Swanky","Irish Grover","Irish Growler","Kranky","Luckiest Guy","Maiden Orange","Mountains of Christmas","Slackey","Smokum","Special Elite","Unkempt","Abril Fatface","Akronim","Alfa Slab One","Allan","Almendra Display","Amarante","Arbutus","Asset","Astloch","Atomic Age","Aubrey","Audiowide","Autour One","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bangers","Baumans","Bevan","Bigelow Rules","Bigshot One","Black Ops One","Boogaloo","Bowlby One","Bowlby One SC","Bubblegum Sans","Buda","Butcherman","Butcherman Caps","Cabin Sketch","Caesar Dressing","Carter One","Ceviche One","Changa One","Chango","Chela One","Chelsea Market","Cherry Swash","Chicle","Cinzel Decorative","Clara","Coda","Codystar","Combo","Comfortaa","Concert One","Contrail One","Corben","Creepster","Croissant One","Diplomata","Diplomata SC","Dynalight","Eater","Eater Caps","Emblema One","Emilys Candy","Erica One","Ewert","Expletus Sans","Fascinate","Fascinate Inline","Faster One","Federant","Finger Paint","Flamenco","Flavors","Forum","Fredericka the Great","Fredoka One","Frijole","Fugaz One","Galindo","Geostar","Geostar Fill","Germania One","Glass Antiqua","Goblin One","Gorditas","Graduate","Gravitas One","Griffy","Gruppo","Happy Monkey","Henny Penny","Iceberg","Iceland","Jacques Francois Shadow","Jolly Lodger","Joti One","Keania One","Kelly Slab","Kenia","Knewave","Lancelot","Lemon","Lemon One","Life Savers","Lilita One","Limelight","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Love Ya Like A Sister","Macondo","Macondo Swash Caps","McLaren","MedievalSharp","Medula One","Megrim","Metal Mania","Metamorphous","Miltonian","Miltonian Tattoo","Miniver","Modern Antiqua","Monofett","Monoton","Mystery Quest","Nixie One","Nosifer","Nosifer Caps","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Offside","Oldenburg","Oleo Script","Oleo Script Swash Caps","Oregano","Original Surfer","Overlock","Overlock SC","Paprika","Passero One","Passion One","Patua One","Peralta","Piedra","Pirata One","Plaster","Playball","Poetsen One","Poiret One","Poller One","Pompiere","Press Start 2P","Prosto One","Racing Sans One","Raleway Dots","Rammetto One","Ranchers","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Ruslan Display","Rye","Sail","Salsa","Sancreek","Sansita One","Sarina","Seaweed Script","Sevillana","Share","Shojumaru","Sigmar One","Simonetta","Sirin Stencil","Skranji","Smythe","Sniglet","Sofadi One","Sonsie One","Spicy Rice","Spirax","Squada One","Stalinist One","Stalin One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Supermercado One","Titan One","Trade Winds","Trochut","Tulpen One","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unlock","Vast Shadow","Voces","VT323","Wallpoet","Warnes","Wellfleet","Yeseva One"],ab[m]=["Roboto Slab","Noto Serif","Libre Baskerville","Gabriela","Fauna One","Droid Serif","jsMath cmbx10","jsMath cmex10","jsMath cmmi10","jsMath cmr10","jsMath cmsy10","jsMath cmti10","Ultra","Adamina","Alegreya","Alegreya SC","Alice","Alike","Alike Angular","Almendra","Almendra SC","Amethysta","Amiri","Andada","Andada SC","Antic Didone","Antic Slab","Arapey","Arbutus Slab","Artifika","Arvo","Average","Balthazar","Belgrano","Bentham","Bitter","Brawler","Bree Serif","Buenard","Cambo","Cantata One","Cardo","Caudex","Cinzel","Copse","Coustard","Crete Round","Crimson Text","Cutive","Cutive Mono","Della Respira","EB Garamond","Enriqueta","Esteban","Fanwood Text","Fenix","Fjord One","Gentium Basic","Gentium Book Basic","Gilda Display","Glegoo","Goudy Bookletter 1911","Habibi","Headland One","Holtwood One SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Inika","Italiana","Jacques Francois","Josefin Slab","Judson","Junge","Kameron","Kotta One","Kreon","Ledger","Linden Hill","Lora","Lusitana","Lustria","Marcellus","Marcellus SC","Marko One","Mate","Mate SC","Merriweather","Montaga","Neuton","Noticia Text","OFL Sorts Mill Goudy TT","Old Standard TT","Oranienbaum","Ovo","Petrona","Playfair Display","Playfair Display SC","Podkova","Poly","Port Lligat Slab","Prata","Prociono","PT Serif","PT Serif Caption","Quando","Quattrocento","Radley","Rokkitt","Rosarivo","Rufina","Sanchez","Sedan","Sedan SC","Sorts Mill Goudy","Stoke","Tienne","Tinos","Trocchi","Trykker","Unna","Vidaloka","Volkhov","Vollkorn"],ab[p]=["Angkor","Battambang","Bayon","Bokor","Chenla","Content","Dangrek","Fasthand","Freehand","GFS Didot","GFS Neohellenic","Hanuman","Kantumruy","Kdam Thmor","Khmer","Koulen","Metal","Moul","Moulpali","Nokora","Odor Mean Chey","Preahvihear","Siemreap","Suwannaphum","Taprom"],h.filter("startFrom",function(){return function(b,c){return a.isArray(b)?b.slice(c):b}}),h.filter("fuzzySearch",function(){var b={teAmount:0,tePercent:.3};return function(c,d,e){function f(a){return new RegExp(a.replace(/./g,function(a){return"([^"+a+"]*?(?:"+a+"))?"}),"i")}if(!a.isArray(c)||a.isUndefined(d))return c;var g=!0,h=[];e=a.extend(b,e);var i=function(a,b,c){var d=(a.match(b)||[]).filter(function(a,b){return 0!==b&&a}),f=d.length+e.teAmount>=c,g=d.length/c>=1-e.tePercent;return f||g};if(a.isString(d)){var j=f(d);g=!1,a.forEach(c[0],function(a,b){"$"!==b.substring(0,1)&&h.push({key:b,search:j,length:d.length})})}else if(a.isObject(d)){var k=!1;if(a.forEach(d,function(b,c){a.isUndefined(b)||(k=!0,h.push({key:c,search:f(b),length:b.length}))}),!k)return c}return c=c.filter(function(a){for(var b=0,c=h.length;c>b;b++){var d=h[b],e=a[d.key]||"",f=i(e,d.search,d.length);if(g&&!f)return!1;if(f)return!0}return!1})}}),h.filter("stackSearch",function(){function b(a){return""+a.length+a[0].key+a[a.length-1].key}function c(e,f){var g,h,i;if(!a.isArray(e)||!e.length)return e;f=f.toLowerCase(),i=c.normalizeStack(f),g=b(e),h=d[g]?d[g]:d[g]=c.createWeightedFontList(e);for(var j=0,k=i.length;k>j;j++)if(h[i[j]])return h[i[j]].fonts;return[]}var d={};return c.normalizeStack=function(b){var c=[];return a.forEach(b.split(","),function(a){c.push(a.replace(/^[ '"]*|[ '"]*$/g,""))}),c},c.createWeightedFontList=function(a){var b={};return a.forEach(function(a){var d=c.normalizeStack(a.stack.toLowerCase());d.forEach(function(c,d){!b[c]||b[c].pos>d?b[c]={fonts:[a],pos:d}:b[c].pos===d&&b[c].fonts.push(a)})}),b},c}),h.filter("hasAllSubsets",function(){return function(b,c){function d(b){var d=!0;return a.forEach(c,function(a,c){a&&d&&b.subsets.indexOf(c)<0&&(d=!1)}),d}return a.isArray(b)?b.filter(function(b){return a.isUndefined(b.subsets)?!0:a.isObject(b)&&d(b)}):b}});var bb=["$http","$q","jdFontselectConfig","$filter"],cb=!1;g.$inject=bb,g.prototype={_init:function(){var b=this;b._fonts=b._fonts||[],b._map={},b._subsets=a.copy($.subsets),b._providers=a.copy($.providers),b._imports={},b._usedProviders={},b._initPromises=[],b._asyncProviderQueue=[],b._fontInitiators={},b.registerProvider(j,a.bind(b,b._loadGoogleFont)),b.registerProvider(i,function(){}),b._addDefaultFonts()},getAllFonts:function(){return this._fonts},ready:function(b){var c=this.$q.all(this._initPromises);return a.isFunction(b)&&c.then(b),c},add:function(b,c){var d=this;if(a.isString(c)||(c=a.isString(b.provider)?b.provider:i),b.provider=c,b.stack+=', "'+c+'"',!d.isValidFontObject(b))throw"Invalid font object.";return a.isObject(d._map[c])||(d._map[c]={}),a.isArray(b.subsets)&&d.setSubsets(b.subsets),d._fonts.push(b),b},searchFonts:function(a){var b=this;return b.$filter("filter")(b._fonts,a)},searchFont:function(a){var b=this,c=b.searchFonts(a);return 1===c.length?c[0]:c.length>0?b._getBestFontForSearch(c,a):void 0},getFontByKey:function(a,b){var c=this;if(!b)throw"Provider is not set.";var d=c.searchFont({key:a,provider:b});if(!d)throw'Font "'+a+'" not found in "'+b+'".';return d},getFontByStack:function(a,b){b="boolean"==typeof b?b:!0;var c,d=this;if(b){var e=d.searchFont({stack:a});c=e?[e]:[]}else c=d.$filter("stackSearch")(d._fonts,a);if(!c.length)throw new Error('Font with stack "'+a+'" not found.');return c[0]},getFontByStackAsync:function(a,b){b="boolean"==typeof b?b:!0;var c=this,d=c.$q.defer(),e=null;return c.$q.all(c._asyncProviderQueue).then(function(){try{var f=c.getFontByStack(a,b);d.resolve(f)}catch(g){b?(d.reject(g),delete c._initPromises[e]):d.resolve()}},d.reject),e=c._initPromises.push(d.promise)-1,d.promise},getFontsByStacksAsync:function(b,c){c="boolean"==typeof c?c:!0;var d=this,e=[];a.forEach(b,function(a){e.push(d.getFontByStackAsync(a,c))});var f=d.$q.all(e);if(c)return f;var g=d.$q.defer();return f.then(function(b){var c=[];a.forEach(b,function(b){a.isObject(b)&&c.push(b)}),g.resolve(c)}),g.promise},removeFont:function(b,c){var d=this;if(a.isString(b)&&!c)throw"Provider is not set.";try{a.isString(b)&&(b=d.getFontByKey(b,c));var e=d._fonts.indexOf(b),f=0;return e>=0&&(f=d._fonts.splice(e,1).length),f}catch(g){return 0}},isValidFontObject:function(b){if(!a.isObject(b))return!1;var c=!0;return a.forEach(z,function(d){a.isUndefined(b[d])&&(c=!1)}),c},getCategories:function(){return w},getImports:function(){return this._imports},getImportsForStacks:function(b,c){var d=this,e=d.$q.defer();if(a.isArray(b)){var f=[];d.getFontsByStacksAsync(b,c).then(function(a){f=a})["finally"](function(){e.resolve(d.getUrlsFor(f))})}else e.reject(new Error("No stacks given"));return e.promise},getSubsets:function(){return this._subsets},getProviders:function(){return this._providers},getUsage:function(){return this._usedProviders},getUsageForStacks:function(b){var c=this,d=c.$filter("stackSearch").normalizeStack,e=c.getProviders(),f={};return a.isArray(b)?(a.forEach(b,function(b){if(b){var c=d(b),g=c[c.length-1];f[g]||a.isUndefined(e[g])||(f[g]=!0)}}),f):f},setSubsets:function(a,b){var c=this;return c._setSelects(c._subsets,a,c._setSelectOptions(b))},setProviders:function(a,b){var c=this;return c._setSelects(c._providers,a,c._setSelectOptions(b))},setImports:function(a,b){var c=this;return c._setSelects(c._imports,a,c._setSelectOptions(b,{update:!0}))},setUsage:function(a,b){var c=this;return c._setSelects(c._usedProviders,a,c._setSelectOptions(b,{update:!0}))},registerProvider:function(a,b){var c=this,d={};d[a]=!1,c.setProviders(d),c._usedProviders[a]=!1,c._fontInitiators[a]=b},_escapeRegExp:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},_getBestFontForSearch:function(b,c){var d=this;return b.sort(function(b,e){var f=0,g=0;return a.forEach(c,function(c,h){if(a.isString(c)){var i=new RegExp(d._escapeRegExp(c));if(i.test(b[h])&&i.test(e[h])){var j=b[h].replace(c,"").length,k=e[h].replace(c,"").length;return void(k>j?f++:j>k&&g++)}}b[h]===c&&f++,e[h]===c&&g++}),f>g?-1:g>f?1:0}),b[0]},_setSelectOptions:function(b,c){return"boolean"==typeof b&&(b={additive:b}),a.isObject(c)||(c={}),b=a.extend({additive:!0,update:!1},b,c)},_setSelects:function(b,c,d){if(a.isUndefined(c))return b;if(a.isObject(d)||(d=this._setSelectOptions(d)),a.isArray(c)){for(var e={},f=0,g=c.length;g>f;f++)e[c[f]]=!1;c=e}return d.additive||a.forEach(b,function(a,d){c[d]||delete b[d]}),a.forEach(c,function(c,e){(d.update||a.isUndefined(b[e]))&&(b[e]=c)}),b},updateImports:function(){this.setImports(this.getUrls())},load:function(a){a.loaded||(a.loaded=!0,this._fontInitiators[a.provider](a))},getUrls:function(){var a=this,b=a.getGoogleUrl(),c={};return b&&(c[j]=b),c},getUrlsFor:function(a){var b=this,c=b.$filter("filter")(a,{provider:j}),d=b.getGoogleUrlFor(c),e={};return d&&(e[j]=d),e},updateUsage:function(b,c){var d=this;(!a.isNumber(b.used)||b.used<0)&&(b.used=0),b.used+=c===!1?-1:1,d._updateProvicerUsage()},_updateProvicerUsage:function(){var b=this,c=b.$filter("filter"),d=b.getUsedFonts();a.forEach(b._providers,function(a,e){b._usedProviders[e]=!!c(d,{provider:e}).length})},getUsedFonts:function(){var a=this;return a.$filter("filter")(a._fonts,{used:!0},function(a){return!!a})},getGoogleUrl:function(){var a=this,b=a.$filter("filter")(a.getUsedFonts(),{provider:j});return a.getGoogleUrlFor(b)},getGoogleUrlFor:function(b){var c=this,d=[],e=C;if(b.length){for(var f,g=[],h=0,i=b.length;i>h;h++)f=b[h].variants?":"+c._getBestVariantOf(b[h].variants):"",g.push(b[h].name+f);return e+="?family="+window.escape(g.join("|")),a.forEach(c._subsets,function(a,b){a&&d.push(b)}),d.length&&(e+="&subset="+d.join(",")),e}return!1},_remap:function(b,c){var d=this,e=d._fonts[b];a.isNumber(c)||(c=0);for(var f=c,g=e.length;g>f;f++)d._map[b][e[f].key]=f},_getBestOf:function(a,b){for(var c=0,d=b.length;d>c;c++){var e=b[c];if(a.indexOf(e)>=0)return e}return a[0]},_getBestVariantOf:function(a){return this._getBestOf(a,S)},_getBestSubsetOf:function(a){return this._getBestOf(a,K)},_initGoogleFonts:function(b){var d=this;if(d.jdFontselectConfig.googleApiKey&&(b||!cb)){var e=d.jdFontselectConfig.googleApiUrl||B;cb=!0;var f=d.$q.defer();d._initPromises.push(f.promise),d._asyncProviderQueue.push(f.promise),d.$http({method:A,url:e,params:{sort:"popularity",key:d.jdFontselectConfig.googleApiKey}}).success(function(b){var e=b.items.length,g=e-1,h=[];a.forEach(b.items,function(a,b){var i=d._getGoogleFontCat(a.family);h.push(d.add({subsets:a.subsets,variants:a.variants,name:a.family,popularity:e-b,key:c(a.family),lastModified:a.lastModified,stack:'"'+a.family+'", '+i.fallback,category:i.key},j)),g===b&&f.resolve(h)})}).error(f.reject)}},_getGoogleFontCat:function(a){for(var b=this,c=b.getCategories(),d=0,e=c.length;e>d;d++){var f=c[d];if("undefined"!=typeof ab[f.key]&&ab[f.key].indexOf(a)>=0)return f}return v[p]},_addDefaultFonts:function(){var b=this;a.forEach(u,function(a){b.add(a)})},_loadGoogleFont:function(a){var b=this;try{WebFont.load({google:{families:[a.name+":"+b._getBestVariantOf(a.variants)],text:a.name,subsets:a.subsets,subset:b._getBestSubsetOf(a.subsets)}})}catch(c){b.removeFont(a,j)}}},h.factory(t,["$injector",function(a){return a.instantiate(g)}]);var db=1;h.directive("jdFontselect",[t,function(c){return{scope:{current:"=?state",stack:"=?",name:"=?",rawText:"@?text",text:"=?textObj",onInit:"&?"},restrict:"E",templateUrl:r+"fontselect.html",replace:!0,controller:["$scope","$element","$timeout",function(g,h,i){function j(b){var d,f;g.current=a.extend(a.copy($),b||{}),g.current.sort.attr||(g.current.sort.attr=Z[0]),a.isObject(g.current.font)&&(g.stack=g.current.font.stack,g.name=g.current.font.name),d=c.getSubsets(),g.current.subsets=e(d)?d:c.setSubsets(g.current.subsets),f=c.getProviders(),g.current.providers=e(f)?f:c.setProviders(g.current.providers)}function k(){g.toggle(),g.$digest()}if(g.fonts=c.getAllFonts(),g.id=db++,g.stylesActive=!0,g.settingsActive=!1,g.active=!1,g.searching=!1,g.categories=c.getCategories(),g.sortAttrs=Z,g.name="",g.meta={},a.isUndefined(g.stack)&&(g.stack=L),g.text=a.extend(a.copy(_),g.text||{}),g.rawText&&(g.text=a.extend(g.text,g.$eval(g.rawText)||{})),g.reverseSort=function(){var a=g.current.sort;a.direction=!a.direction},g.toggle=function(){g.active=!g.active,g.active||(g.searching=!1)},g.toggleSearch=function(){g.active=!0,g.searching=!g.searching,g.searching&&g.setFocus()},g.tryUnfocusSearch=function(){g.searching&&0===g.current.search.length&&(g.searching=!1)},g.resetSearch=function(){g.current.search="",g.searching&&g.setFocus()},g.toName=d,g.setFocus=function(){i(function(){h[0].querySelector(".jdfs-search").focus()})},document.addEventListener("click",function(a){g.active&&!f(h[0],a.target)&&k()}),document.addEventListener("keyup",function(a){g.active&&a.keyCode===T&&k()}),g.setCategoryFilter=function(a){var c=g.current;c.category=c.category===a?b:a},g.reset=function(){j()},g._setSelected=function(b){a.isObject(b)?(g.name=b.name,g.stack=b.stack):(g.name="",g.stack=L)},g.toggleSettings=function(){g.settingsActive=!0,g.stylesActive=!1},g.toggleStyles=function(){g.stylesActive=!0,g.settingsActive=!1},c._initGoogleFonts(),a.isObject(g.current)&&j(g.current),g.stack.length)try{var l=c.getFontByStack(g.stack);c.updateUsage(l),c.load(l),j({font:l})}catch(m){c.getFontByStackAsync(g.stack,!1).then(function(b){a.isObject(b)&&j({font:b})})}g.onInit({$scope:g})}],link:function(b){b.$watch("current.font",function(d,e){a.isObject(b.current)||b.reset(),e!==d&&(b.tryUnfocusSearch(),a.isObject(b.current.font)&&(d=b.current.font),a.isObject(e)&&e.used&&c.updateUsage(e,!1),a.isObject(d)&&(c.updateUsage(d),c.load(d)),b._setSelected(d),c.updateImports())}),b.$watch("current.subsets",function(a,b){a!==b&&c.updateImports()},!0),b.$watch("stack",function(a,d){var e;if(!(a===d||b.current.font&&a===b.current.font.stack))try{a&&a.length&&(e=c.getFontByStack(a,!1)),e?b.current.font=e:b.reset()}catch(f){b.reset()}})}}}]);var eb="jdFontlist",fb=eb+s;h.directive(eb,function(){return{scope:{id:"=fsid",fonts:"=",meta:"=",current:"=",text:"=",active:"="},restrict:"E",templateUrl:r+"fontlist.html",replace:!0,controller:fb}}),h.controller(fb,["$scope","$rootScope","$filter","jdFontselect.fonts","$element",function(c,d,e,g,h){function i(a){var b=F.current*F.size;return a>=b&&a1){var c=new RegExp("["+b+"]+");a.sort(function(a,d){var e=a.name.toLowerCase(),f=d.name.toLowerCase(),g=e[0],h=f[0];if(g!==h){if(g===b[0])return-1;if(h===b[0])return 1}return e.replace(c,"").length1&&Y>e){if(D+=d,Math.abs(D)0?-b:b)!==!1&&c.$digest()}};document.addEventListener("wheel",H),document.addEventListener("mousewheel",H),document.addEventListener("DOMMouseScroll",H),c.setCurrentPage=function(a){F.currentAbs=F.current=a},c.paginate=function(b){var d=b;if(a.isNumber(b)){if(0===b)return!1;d=0>b?y:x}else b=o(d);return c.paginationButtonActive(d)?(F.current+b<0?F.currentAbs=F.current=0:(F.current+=b,F.currentAbs=Math.floor(F.current)),F.current):!1},c.paginationButtonActive=function(a){return r(),s(),a===x&&(F.current+1)*F.size0},c.getPages=function(){r();var a=new Array(F.count);return s(),a.length<=1?[]:a},c.getFilteredFonts=function(){if(!a.isArray(c.fonts))return[];var b=c.fonts;E=C.fontAmount!==b.length,C.fontAmount=b.length;for(var d=[j,k,l,n,m],e=0,f=d.length;f>e;e++)b=d[e](b);return t=b,G.total=c.fonts.length,G.current=t.length,t}}]),h.directive("jdFont",["jdFontselect.fonts",function(a){return{templateUrl:r+"font.html",restrict:"E",replace:!0,controller:["$scope",function(b){if(b.active)a.load(b.font);else var c=b.$watch("active",function(d){d&&(a.load(b.font),c())})}]}}]),h.directive("jdFontselectCurrentHref",[t,function(a){return{templateUrl:r+"current-href.html",restrict:"A",replace:!0,controller:["$scope",function(b){b.urls=a.getImports()}]}}]);var gb="jdMeta";h.directive(gb,function(){return{restrict:"E",templateUrl:r+"meta.html",replace:!0}}),a.module("jdFontselect").run(["$templateCache",function(a){a.put("src/partials/current-href.html",''),a.put("src/partials/font.html",'
  • '),a.put("src/partials/fontlist.html",'
    • {{text.noResultsLabel}}
    '),a.put("src/partials/fontselect.html",'
    '),a.put("src/partials/meta.html",'
    {{text.fontFabel}} {{meta.fonts.total}} {{meta.fonts.current}}/{{meta.fonts.total}}
    {{text.pageLabel}} {{meta.page.currentAbs + 1}}/{{meta.page.count}}
    ') }])}(angular); \ No newline at end of file diff --git a/package.json b/package.json index 6405e77..429e40f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-fontselect", - "version": "0.8.7", + "version": "0.8.8", "description": "A fontselect directive for AngularJS", "homepage": "https://github.com/Jimdo/angular-fontselect", "author": "Jimdo, Hannes Diercks ",