-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.min.js
More file actions
70 lines (70 loc) · 31.8 KB
/
plugin.min.js
File metadata and controls
70 lines (70 loc) · 31.8 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
!function(){"use strict";let faBrands=JSON.parse('["42-group","500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon","amazon-pay","amilia","android","angellist","angrycreative","angular","apper","apple","apple-pay","app-store","app-store-ios","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","bilibili","bimobject","bitbucket","bitcoin","bity","blackberry","black-tie","blogger","blogger-b","bluesky","bluetooth","bluetooth-b","bootstrap","bots","brave","brave-reverse","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","cmplid","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons","creative-commons-by","creative-commons-nc","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nd","creative-commons-pd","creative-commons-pd-alt","creative-commons-remix","creative-commons-sa","creative-commons-sampling","creative-commons-sampling-plus","creative-commons-share","creative-commons-zero","critical-role","css","css3","css3-alt","cuttlefish","dailymotion","d-and-d","d-and-d-beyond","dart-lang","dashcube","debian","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dropbox","drupal","dyalog","earlybirds","ebay","edge","edge-legacy","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook","facebook-f","facebook-messenger","fantasy-flight-games","fedex","fedora","figma","files-pinwheel","firefox","firefox-browser","firstdraft","first-order","first-order-alt","flickr","flipboard","flutter","fly","font-awesome","fonticons","fonticons-fi","fort-awesome","fort-awesome-alt","forumbee","foursquare","freebsd","free-code-camp","fulcrum","galactic-republic","galactic-senate","get-pocket","gg","gg-circle","git","git-alt","github","github-alt","gitkraken","gitlab","gitter","glide","glide-g","gofore","golang","goodreads","goodreads-g","google","google-drive","google-pay","google-play","google-plus","google-plus-g","google-scholar","google-wallet","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hackerrank","hashnode","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes","itunes-note","java","jedi-order","jenkins","jira","joget","joomla","js","jsfiddle","jxl","kaggle","keybase","keycdn","kickstarter","kickstarter-k","korvue","laravel","lastfm","leanpub","less","letterboxd","line","linkedin","linkedin-in","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medrt","meetup","megaport","mendeley","meta","microblog","microsoft","mintbit","mix","mixcloud","mixer","mizuni","modx","monero","napster","neos","nfc-directional","nfc-symbol","nimblr","node","node-js","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odysee","old-republic","opencart","openid","opensuse","opera","optin-monster","orcid","osi","padlet","page4","pagelines","palfed","patreon","paypal","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper","pied-piper-alt","pied-piper-hat","pied-piper-pp","pinterest","pinterest-p","pix","pixiv","playstation","product-hunt","pushed","python","qq","quinscape","quora","raspberry-pi","ravelry","react","reacteurope","readme","rebel","reddit","reddit-alien","redhat","red-river","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","r-project","rust","safari","salesforce","sass","schlix","screenpal","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shoelace","shopify","shopware","signal-messenger","simplybuilt","sistrix","sith","sitrox","sketch","skyatlas","skype","slack","slideshare","snapchat","soundcloud","sourcetree","space-awesome","speakap","speaker-deck","spotify","square-behance","square-bluesky","square-dribbble","square-facebook","square-font-awesome","square-font-awesome-stroke","square-git","square-github","square-gitlab","square-google-plus","square-hacker-news","square-instagram","square-js","square-lastfm","square-letterboxd","square-odnoklassniki","square-pied-piper","square-pinterest","square-reddit","square-snapchat","squarespace","square-steam","square-threads","square-tumblr","square-twitter","square-upwork","square-viadeo","square-vimeo","square-web-awesome","square-web-awesome-stroke","square-whatsapp","square-xing","square-x-twitter","square-youtube","stack-exchange","stack-overflow","stackpath","staylinked","steam","steam-symbol","sticker-mule","strava","stripe","stripe-s","stubber","studiovinari","stumbleupon","stumbleupon-circle","superpowers","supple","suse","swift","symfony","teamspeak","telegram","tencent-weibo","themeco","themeisle","the-red-yeti","think-peaks","threads","tiktok","trade-federation","trello","tumblr","twitch","twitter","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","upwork","usb","usps","ussunnah","vaadin","viacoin","viadeo","viber","vimeo","vimeo-v","vine","vk","vnv","vuejs","watchman-monitoring","waze","web-awesome","webflow","weebly","weibo","weixin","whatsapp","whmcs","wikipedia-w","windows","wirsindhandwerk","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress","wordpress-simple","wpbeginner","wpexplorer","wpforms","wpressr","xbox","xing","x-twitter","yahoo","yammer","yandex","yandex-international","yarn","y-combinator","yelp","yoast","youtube","zhihu"]');
let faRegular=JSON.parse('["address-book","address-card","bell","bell-slash","bookmark","building","calendar","calendar-check","calendar-days","calendar-minus","calendar-plus","calendar-xmark","chart-bar","chess-bishop","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","circle","circle-check","circle-dot","circle-down","circle-left","circle-pause","circle-play","circle-question","circle-right","circle-stop","circle-up","circle-user","circle-xmark","clipboard","clock","clone","closed-captioning","comment","comment-dots","comments","compass","copy","copyright","credit-card","envelope","envelope-open","eye","eye-slash","face-angry","face-dizzy","face-flushed","face-frown","face-frown-open","face-grimace","face-grin","face-grin-beam","face-grin-beam-sweat","face-grin-hearts","face-grin-squint","face-grin-squint-tears","face-grin-stars","face-grin-tears","face-grin-tongue","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-wide","face-grin-wink","face-kiss","face-kiss-beam","face-kiss-wink-heart","face-laugh","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-meh","face-meh-blank","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile","face-smile-beam","face-smile-wink","face-surprise","face-tired","file","file-audio","file-code","file-excel","file-image","file-lines","file-pdf","file-powerpoint","file-video","file-word","file-zipper","flag","floppy-disk","folder","folder-closed","folder-open","font-awesome","futbol","gem","hand","hand-back-fist","hand-lizard","hand-peace","hand-point-down","hand-pointer","hand-point-left","hand-point-right","hand-point-up","hand-scissors","handshake","hand-spock","hard-drive","heart","hospital","hourglass","hourglass-half","id-badge","id-card","image","images","keyboard","lemon","life-ring","lightbulb","map","message","money-bill-1","moon","newspaper","note-sticky","object-group","object-ungroup","paper-plane","paste","pen-to-square","rectangle-list","rectangle-xmark","registered","share-from-square","snowflake","square","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-full","square-minus","square-plus","star","star-half","star-half-stroke","sun","thumbs-down","thumbs-up","trash-can","user","window-maximize","window-minimize","window-restore"]');
let faSolid=JSON.parse('["0","1","2","3","4","5","6","7","8","9","a","address-book","address-card","align-center","align-justify","align-left","align-right","anchor","anchor-circle-check","anchor-circle-exclamation","anchor-circle-xmark","anchor-lock","angle-down","angle-left","angle-right","angles-down","angles-left","angles-right","angles-up","angle-up","ankh","apple-whole","archway","arrow-down","arrow-down-1-9","arrow-down-9-1","arrow-down-a-z","arrow-down-long","arrow-down-short-wide","arrow-down-up-across-line","arrow-down-up-lock","arrow-down-wide-short","arrow-down-z-a","arrow-left","arrow-left-long","arrow-pointer","arrow-right","arrow-right-arrow-left","arrow-right-from-bracket","arrow-right-long","arrow-right-to-bracket","arrow-right-to-city","arrow-rotate-left","arrow-rotate-right","arrows-down-to-line","arrows-down-to-people","arrows-left-right","arrows-left-right-to-line","arrows-rotate","arrows-spin","arrows-split-up-and-left","arrows-to-circle","arrows-to-dot","arrows-to-eye","arrows-turn-right","arrows-turn-to-dots","arrows-up-down","arrows-up-down-left-right","arrows-up-to-line","arrow-trend-down","arrow-trend-up","arrow-turn-down","arrow-turn-up","arrow-up","arrow-up-1-9","arrow-up-9-1","arrow-up-a-z","arrow-up-from-bracket","arrow-up-from-ground-water","arrow-up-from-water-pump","arrow-up-long","arrow-up-right-dots","arrow-up-right-from-square","arrow-up-short-wide","arrow-up-wide-short","arrow-up-z-a","asterisk","at","atom","audio-description","austral-sign","award","b","baby","baby-carriage","backward","backward-fast","backward-step","bacon","bacteria","bacterium","bag-shopping","bahai","baht-sign","ban","bandage","bangladeshi-taka-sign","ban-smoking","barcode","bars","bars-progress","bars-staggered","baseball","baseball-bat-ball","basketball","basket-shopping","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed","bed-pulse","beer-mug-empty","bell","bell-concierge","bell-slash","bezier-curve","bicycle","binoculars","biohazard","bitcoin-sign","blender","blender-phone","blog","bold","bolt","bolt-lightning","bomb","bone","bong","book","book-atlas","book-bible","book-bookmark","book-journal-whills","bookmark","book-medical","book-open","book-open-reader","book-quran","book-skull","book-tanakh","border-all","border-none","border-top-left","bore-hole","bottle-droplet","bottle-water","bowl-food","bowling-ball","bowl-rice","box","box-archive","boxes-packing","boxes-stacked","box-open","box-tissue","braille","brain","brazilian-real-sign","bread-slice","bridge","bridge-circle-check","bridge-circle-exclamation","bridge-circle-xmark","bridge-lock","bridge-water","briefcase","briefcase-medical","broom","broom-ball","brush","bucket","bug","bugs","bug-slash","building","building-circle-arrow-right","building-circle-check","building-circle-exclamation","building-circle-xmark","building-columns","building-flag","building-lock","building-ngo","building-shield","building-un","building-user","building-wheat","bullhorn","bullseye","burger","burst","bus","business-time","bus-simple","c","cable-car","cake-candles","calculator","calendar","calendar-check","calendar-day","calendar-days","calendar-minus","calendar-plus","calendar-week","calendar-xmark","camera","camera-retro","camera-rotate","campground","candy-cane","cannabis","capsules","car","caravan","car-battery","car-burst","caret-down","caret-left","caret-right","caret-up","car-on","car-rear","carrot","car-side","cart-arrow-down","cart-flatbed","cart-flatbed-suitcase","cart-plus","cart-shopping","car-tunnel","cash-register","cat","cedi-sign","cent-sign","certificate","chair","chalkboard","chalkboard-user","champagne-glasses","charging-station","chart-area","chart-bar","chart-column","chart-diagram","chart-gantt","chart-line","chart-pie","chart-simple","check","check-double","check-to-slot","cheese","chess","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chevron-down","chevron-left","chevron-right","chevron-up","child","child-combatant","child-dress","child-reaching","children","church","circle","circle-arrow-down","circle-arrow-left","circle-arrow-right","circle-arrow-up","circle-check","circle-chevron-down","circle-chevron-left","circle-chevron-right","circle-chevron-up","circle-dollar-to-slot","circle-dot","circle-down","circle-exclamation","circle-h","circle-half-stroke","circle-info","circle-left","circle-minus","circle-nodes","circle-notch","circle-pause","circle-play","circle-plus","circle-question","circle-radiation","circle-right","circle-stop","circle-up","circle-user","circle-xmark","city","clapperboard","clipboard","clipboard-check","clipboard-list","clipboard-question","clipboard-user","clock","clock-rotate-left","clone","closed-captioning","cloud","cloud-arrow-down","cloud-arrow-up","cloud-bolt","cloud-meatball","cloud-moon","cloud-moon-rain","cloud-rain","cloud-showers-heavy","cloud-showers-water","cloud-sun","cloud-sun-rain","clover","code","code-branch","code-commit","code-compare","code-fork","code-merge","code-pull-request","coins","colon-sign","comment","comment-dollar","comment-dots","comment-medical","comment-nodes","comments","comments-dollar","comment-slash","comment-sms","compact-disc","compass","compass-drafting","compress","computer","computer-mouse","cookie","cookie-bite","copy","copyright","couch","cow","credit-card","crop","crop-simple","cross","crosshairs","crow","crown","crutch","cruzeiro-sign","cube","cubes","cubes-stacked","d","database","delete-left","democrat","desktop","dharmachakra","diagram-next","diagram-predecessor","diagram-project","diagram-successor","diamond","diamond-turn-right","dice","dice-d20","dice-d6","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","disease","display","divide","dna","dog","dollar-sign","dolly","dong-sign","door-closed","door-open","dove","down-left-and-up-right-to-center","download","down-long","dragon","draw-polygon","droplet","droplet-slash","drum","drum-steelpan","drumstick-bite","dumbbell","dumpster","dumpster-fire","dungeon","e","ear-deaf","ear-listen","earth-africa","earth-americas","earth-asia","earth-europe","earth-oceania","egg","eject","elevator","ellipsis","ellipsis-vertical","envelope","envelope-circle-check","envelope-open","envelope-open-text","envelopes-bulk","equals","eraser","ethernet","euro-sign","exclamation","expand","explosion","eye","eye-dropper","eye-low-vision","eye-slash","f","face-angry","face-dizzy","face-flushed","face-frown","face-frown-open","face-grimace","face-grin","face-grin-beam","face-grin-beam-sweat","face-grin-hearts","face-grin-squint","face-grin-squint-tears","face-grin-stars","face-grin-tears","face-grin-tongue","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-wide","face-grin-wink","face-kiss","face-kiss-beam","face-kiss-wink-heart","face-laugh","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-meh","face-meh-blank","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile","face-smile-beam","face-smile-wink","face-surprise","face-tired","fan","faucet","faucet-drip","fax","feather","feather-pointed","ferry","file","file-arrow-down","file-arrow-up","file-audio","file-circle-check","file-circle-exclamation","file-circle-minus","file-circle-plus","file-circle-question","file-circle-xmark","file-code","file-contract","file-csv","file-excel","file-export","file-fragment","file-half-dashed","file-image","file-import","file-invoice","file-invoice-dollar","file-lines","file-medical","file-pdf","file-pen","file-powerpoint","file-prescription","file-shield","file-signature","file-video","file-waveform","file-word","file-zipper","fill","fill-drip","film","filter","filter-circle-dollar","filter-circle-xmark","fingerprint","fire","fire-burner","fire-extinguisher","fire-flame-curved","fire-flame-simple","fish","fish-fins","flag","flag-checkered","flag-usa","flask","flask-vial","floppy-disk","florin-sign","folder","folder-closed","folder-minus","folder-open","folder-plus","folder-tree","font","font-awesome","football","forward","forward-fast","forward-step","franc-sign","frog","futbol","g","gamepad","gas-pump","gauge","gauge-high","gauge-simple","gauge-simple-high","gavel","gear","gears","gem","genderless","ghost","gift","gifts","glasses","glass-water","glass-water-droplet","globe","golf-ball-tee","gopuram","graduation-cap","greater-than","greater-than-equal","grip","grip-lines","grip-lines-vertical","grip-vertical","group-arrows-rotate","guarani-sign","guitar","gun","h","hammer","hamsa","hand","hand-back-fist","handcuffs","hand-dots","hand-fist","hand-holding","hand-holding-dollar","hand-holding-droplet","hand-holding-hand","hand-holding-heart","hand-holding-medical","hand-lizard","hand-middle-finger","hand-peace","hand-point-down","hand-pointer","hand-point-left","hand-point-right","hand-point-up","hands","hands-asl-interpreting","hands-bound","hands-bubbles","hand-scissors","hands-clapping","handshake","handshake-angle","handshake-simple","handshake-simple-slash","handshake-slash","hands-holding","hands-holding-child","hands-holding-circle","hand-sparkles","hand-spock","hands-praying","hanukiah","hard-drive","hashtag","hat-cowboy","hat-cowboy-side","hat-wizard","heading","headphones","headphones-simple","headset","head-side-cough","head-side-cough-slash","head-side-mask","head-side-virus","heart","heart-circle-bolt","heart-circle-check","heart-circle-exclamation","heart-circle-minus","heart-circle-plus","heart-circle-xmark","heart-crack","heart-pulse","helicopter","helicopter-symbol","helmet-safety","helmet-un","hexagon-nodes","hexagon-nodes-bolt","highlighter","hill-avalanche","hill-rockslide","hippo","hockey-puck","holly-berry","horse","horse-head","hospital","hospital-user","hotdog","hotel","hot-tub-person","hourglass","hourglass-end","hourglass-half","hourglass-start","house","house-chimney","house-chimney-crack","house-chimney-medical","house-chimney-user","house-chimney-window","house-circle-check","house-circle-exclamation","house-circle-xmark","house-crack","house-fire","house-flag","house-flood-water","house-flood-water-circle-arrow-right","house-laptop","house-lock","house-medical","house-medical-circle-check","house-medical-circle-exclamation","house-medical-circle-xmark","house-medical-flag","house-signal","house-tsunami","house-user","hryvnia-sign","hurricane","i","ice-cream","icicles","icons","i-cursor","id-badge","id-card","id-card-clip","igloo","image","image-portrait","images","inbox","indent","indian-rupee-sign","industry","infinity","info","italic","j","jar","jar-wheat","jedi","jet-fighter","jet-fighter-up","joint","jug-detergent","k","kaaba","key","keyboard","khanda","kip-sign","kitchen-set","kit-medical","kiwi-bird","l","landmark","landmark-dome","landmark-flag","land-mine-on","language","laptop","laptop-code","laptop-file","laptop-medical","lari-sign","layer-group","leaf","left-long","left-right","lemon","less-than","less-than-equal","life-ring","lightbulb","lines-leaning","link","link-slash","lira-sign","list","list-check","list-ol","list-ul","litecoin-sign","location-arrow","location-crosshairs","location-dot","location-pin","location-pin-lock","lock","lock-open","locust","lungs","lungs-virus","m","magnet","magnifying-glass","magnifying-glass-arrow-right","magnifying-glass-chart","magnifying-glass-dollar","magnifying-glass-location","magnifying-glass-minus","magnifying-glass-plus","manat-sign","map","map-location","map-location-dot","map-pin","marker","mars","mars-and-venus","mars-and-venus-burst","mars-double","mars-stroke","mars-stroke-right","mars-stroke-up","martini-glass","martini-glass-citrus","martini-glass-empty","mask","mask-face","masks-theater","mask-ventilator","mattress-pillow","maximize","medal","memory","menorah","mercury","message","meteor","microchip","microphone","microphone-lines","microphone-lines-slash","microphone-slash","microscope","mill-sign","minimize","minus","mitten","mobile","mobile-button","mobile-retro","mobile-screen","mobile-screen-button","money-bill","money-bill-1","money-bill-1-wave","money-bills","money-bill-transfer","money-bill-trend-up","money-bill-wave","money-bill-wheat","money-check","money-check-dollar","monument","moon","mortar-pestle","mosque","mosquito","mosquito-net","motorcycle","mound","mountain","mountain-city","mountain-sun","mug-hot","mug-saucer","music","n","naira-sign","network-wired","neuter","newspaper","notdef","not-equal","notes-medical","note-sticky","o","object-group","object-ungroup","oil-can","oil-well","om","otter","outdent","p","pager","paintbrush","paint-roller","palette","pallet","panorama","paperclip","paper-plane","parachute-box","paragraph","passport","paste","pause","paw","peace","pen","pencil","pen-clip","pen-fancy","pen-nib","pen-ruler","pen-to-square","people-arrows","people-carry-box","people-group","people-line","people-pulling","people-robbery","people-roof","pepper-hot","percent","person","person-arrow-down-to-line","person-arrow-up-from-line","person-biking","person-booth","person-breastfeeding","person-burst","person-cane","person-chalkboard","person-circle-check","person-circle-exclamation","person-circle-minus","person-circle-plus","person-circle-question","person-circle-xmark","person-digging","person-dots-from-line","person-dress","person-dress-burst","person-drowning","person-falling","person-falling-burst","person-half-dress","person-harassing","person-hiking","person-military-pointing","person-military-rifle","person-military-to-person","person-praying","person-pregnant","person-rays","person-rifle","person-running","person-shelter","person-skating","person-skiing","person-skiing-nordic","person-snowboarding","person-swimming","person-through-window","person-walking","person-walking-arrow-loop-left","person-walking-arrow-right","person-walking-dashed-line-arrow-right","person-walking-luggage","person-walking-with-cane","peseta-sign","peso-sign","phone","phone-flip","phone-slash","phone-volume","photo-film","piggy-bank","pills","pizza-slice","place-of-worship","plane","plane-arrival","plane-circle-check","plane-circle-exclamation","plane-circle-xmark","plane-departure","plane-lock","plane-slash","plane-up","plant-wilt","plate-wheat","play","plug","plug-circle-bolt","plug-circle-check","plug-circle-exclamation","plug-circle-minus","plug-circle-plus","plug-circle-xmark","plus","plus-minus","podcast","poo","poop","poo-storm","power-off","prescription","prescription-bottle","prescription-bottle-medical","print","pump-medical","pump-soap","puzzle-piece","q","qrcode","question","quote-left","quote-right","r","radiation","radio","rainbow","ranking-star","receipt","record-vinyl","rectangle-ad","rectangle-list","rectangle-xmark","recycle","registered","repeat","reply","reply-all","republican","restroom","retweet","ribbon","right-from-bracket","right-left","right-long","right-to-bracket","ring","road","road-barrier","road-bridge","road-circle-check","road-circle-exclamation","road-circle-xmark","road-lock","road-spikes","robot","rocket","rotate","rotate-left","rotate-right","route","rss","ruble-sign","rug","ruler","ruler-combined","ruler-horizontal","ruler-vertical","rupee-sign","rupiah-sign","s","sack-dollar","sack-xmark","sailboat","satellite","satellite-dish","scale-balanced","scale-unbalanced","scale-unbalanced-flip","school","school-circle-check","school-circle-exclamation","school-circle-xmark","school-flag","school-lock","scissors","screwdriver","screwdriver-wrench","scroll","scroll-torah","sd-card","section","seedling","server","shapes","share","share-from-square","share-nodes","sheet-plastic","shekel-sign","shield","shield-cat","shield-dog","shield-halved","shield-heart","shield-virus","ship","shirt","shoe-prints","shop","shop-lock","shop-slash","shower","shrimp","shuffle","shuttle-space","signal","signature","sign-hanging","signs-post","sim-card","sink","sitemap","skull","skull-crossbones","slash","sleigh","sliders","smog","smoking","snowflake","snowman","snowplow","soap","socks","solar-panel","sort","sort-down","sort-up","spa","spaghetti-monster-flying","spell-check","spider","spinner","splotch","spoon","spray-can","spray-can-sparkles","square","square-arrow-up-right","square-binary","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-envelope","square-full","square-h","square-minus","square-nfi","square-parking","square-pen","square-person-confined","square-phone","square-phone-flip","square-plus","square-poll-horizontal","square-poll-vertical","square-root-variable","square-rss","square-share-nodes","square-up-right","square-virus","square-xmark","staff-snake","stairs","stamp","stapler","star","star-and-crescent","star-half","star-half-stroke","star-of-david","star-of-life","sterling-sign","stethoscope","stop","stopwatch","stopwatch-20","store","store-slash","street-view","strikethrough","stroopwafel","subscript","suitcase","suitcase-medical","suitcase-rolling","sun","sun-plant-wilt","superscript","swatchbook","synagogue","syringe","t","table","table-cells","table-cells-column-lock","table-cells-large","table-cells-row-lock","table-cells-row-unlock","table-columns","table-list","tablet","tablet-button","table-tennis-paddle-ball","tablets","tablet-screen-button","tachograph-digital","tag","tags","tape","tarp","tarp-droplet","taxi","teeth","teeth-open","temperature-arrow-down","temperature-arrow-up","temperature-empty","temperature-full","temperature-half","temperature-high","temperature-low","temperature-quarter","temperature-three-quarters","tenge-sign","tent","tent-arrow-down-to-line","tent-arrow-left-right","tent-arrows-down","tent-arrow-turn-left","tents","terminal","text-height","text-slash","text-width","thermometer","thumbs-down","thumbs-up","thumbtack","thumbtack-slash","ticket","ticket-simple","timeline","toggle-off","toggle-on","toilet","toilet-paper","toilet-paper-slash","toilet-portable","toilets-portable","toolbox","tooth","torii-gate","tornado","tower-broadcast","tower-cell","tower-observation","tractor","trademark","traffic-light","trailer","train","train-subway","train-tram","transgender","trash","trash-arrow-up","trash-can","trash-can-arrow-up","tree","tree-city","triangle-exclamation","trophy","trowel","trowel-bricks","truck","truck-arrow-right","truck-droplet","truck-fast","truck-field","truck-field-un","truck-front","truck-medical","truck-monster","truck-moving","truck-pickup","truck-plane","truck-ramp-box","tty","turkish-lira-sign","turn-down","turn-up","tv","u","umbrella","umbrella-beach","underline","universal-access","unlock","unlock-keyhole","up-down","up-down-left-right","upload","up-long","up-right-and-down-left-from-center","up-right-from-square","user","user-astronaut","user-check","user-clock","user-doctor","user-gear","user-graduate","user-group","user-injured","user-large","user-large-slash","user-lock","user-minus","user-ninja","user-nurse","user-pen","user-plus","users","users-between-lines","user-secret","users-gear","user-shield","user-slash","users-line","users-rays","users-rectangle","users-slash","users-viewfinder","user-tag","user-tie","user-xmark","utensils","v","van-shuttle","vault","vector-square","venus","venus-double","venus-mars","vest","vest-patches","vial","vial-circle-check","vials","vial-virus","video","video-slash","vihara","virus","virus-covid","virus-covid-slash","viruses","virus-slash","voicemail","volcano","volleyball","volume-high","volume-low","volume-off","volume-xmark","vr-cardboard","w","walkie-talkie","wallet","wand-magic","wand-magic-sparkles","wand-sparkles","warehouse","water","water-ladder","wave-square","web-awesome","weight-hanging","weight-scale","wheat-awn","wheat-awn-circle-exclamation","wheelchair","wheelchair-move","whiskey-glass","wifi","wind","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass","wine-glass-empty","won-sign","worm","wrench","x","xmark","xmarks-lines","x-ray","y","yen-sign","yin-yang","z"]');
function searchIcon(val){
let fas=document.getElementById('ckeditor-fa-icons'),a=fas.getElementsByTagName('a');
for(let i=0,len=a.length,el,atr;i<len;i++){
el=a[i];
atr=el.getAttribute('title');
if(atr && atr.indexOf(val) >= 0){
el.style.display='inline-block';
}else{
el.style.display='none';
}
}
}
window.klick=function(el){
let className=el.getAttribute('title');
document.querySelector("[data-mce-name=faselected]").value=className;
}
function faIcons(fas,ty){
let icons='';
for(let x in fas){
let ids=fas[x],id=ids.split('-').join('<br/>');
icons +='<a href="#" onclick="klick(this);return false;" title="'+ids+'"><span class="fa'+ty+' fa-'+ids+'"></span>'+id+'</a>';
}
return icons;
}
tinymce.PluginManager.add('tfa',(editor,url)=>{
tinymce.DOM.addStyle('.fab,.far,.fas{display:inline-block;font-size:14px;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:inherit;cursor:pointer}.far,.fas{font-family:"Font Awesome 6 Free" !important}.fab{font-family:"Font Awesome 6 Brands" !important}.far{font-weight:400 !important}.fas{font-weight:900 !important}.fab:before,.far:before,.fas:before{color:inherit}#ckeditor-fa-icons{text-align:center;white-space:normal;width:100%;height:340px;overflow:auto}#ckeditor-fa-icons a{display:inline-block;width:72px;padding:2px 0;text-align:center;vertical-align:top}#ckeditor-fa-icons a span{font-size:24px !important;display:block;text-align:center}.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{animation-duration:2s;animation-iteration-count:infinite}');
const openDialog=() => editor.windowManager.open({
title:'Font Awesome',
body:{type:'panel',items:[
{type:'bar',items:[
{type:'selectbox',name:'packs',label:'Packs',items:[{value:'b',text:'Brand'},{value:'r',text:'Regular'},{value:'s',text:'Solid'}]},
{type:'colorinput',name:'facolor',label:'Color'},{type:'input',name:'fasize',label:'Size'},{type:'input',name:'fasearch',label:'Search'}
]},
{type:'bar',items:[
{type:'selectbox',name:'fixwidth',label:'Fix width',items:[{value:'no',text:'No'},{value:'yes',text:'Yes'}]},
{type:'selectbox',name:'bordered',label:'Border',items:[{value:'no',text:'No'},{value:'yes',text:'Yes'}]},
{type:'selectbox',name:'rotating',label:'Rotate',items:[{value:'no',text:'No'},{value:'fa-rotate-90',text:'90°'},{value:'fa-rotate-180',text:'180°'},{value:'fa-rotate-270',text:'270°'},{value:'fa-flip-horizontal',text:'Hor'},{value:'fa-flip-vertical',text:'Ver'}]},
{type:'selectbox',name:'animate',label:'Animate',items:[{value:'no',text:'No'},{value:'fa-beat',text:'Beat'},{value:'fa-beat-fade',text:'BeatFade'},{value:'fa-bounce',text:'Bounce'},{value:'fa-fade',text:'Fade'},{value:'fa-flip',text:'Flip'},{value:'fa-shake',text:'Shake'},{value:'fa-spin',text:'Spin'},{value:'fa-spin fa-spin-reverse',text:'SpinReverse'},{value:'fa-spin-pulse',text:'SpinPulse'}]},
{type:'input',name:'faselected',label:'Selected',enabled:false}
]},
{type:'htmlpanel',name:'title',html:'<div id="ckeditor-fa-icons">'+faIcons(faBrands,'b')+'</div>'}
]},
buttons:[{type:'cancel',text:'Close'},{type:'submit',text:'Save',buttonType:'primary'}],
onChange:(api,det)=>{
if(det.name=='fasearch')searchIcon(api.getData().fasearch);
if(det.name=='packs'){let val=api.getData().packs,all;
if(val=='r'){all=faIcons(faRegular,'r')}else if(val=='s'){all=faIcons(faSolid,'s')}else{all=faIcons(faBrands,'b')}
document.getElementById("ckeditor-fa-icons").innerHTML=all}
},
onSubmit:(api)=>{
let data=api.getData(),cls='',stl='';
if(data.fixwidth=="yes")cls +=' fa-fw';
if(data.bordered=="yes")cls +=' fa-border';
if(data.animate && data.animate!="no")cls +=' '+data.animate;
if(data.rotating && data.rotating!="no")cls +=' '+data.rotating;
if(data.facolor && data.facolor!='none()')stl +='color:'+data.facolor+';';
if(data.fasize)stl +='font-size:'+data.fasize+'px;';
if(data.faselected)editor.insertContent('<span '+(stl?'style="'+stl+'" ':'')+'class="fa'+api.getData().packs+' fa-'+data.faselected+cls+'"></span>');
api.close();
}
});
editor.ui.registry.addButton('tfa',{text:'Icons',onAction:()=>{openDialog()}});
editor.ui.registry.addMenuItem('tfa',{text:'Icons',onAction:()=>{openDialog()}});
return {getMetadata:()=>({name:'Font Awesome',url:'https://github.com/ed3/tfa'})
};
});
}();