diff --git a/README.md b/README.md index ddc78c0..4e01a54 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,45 @@ # Description +**Buuf Nestort** icon set + This is a fairly complete set of icons for Gnome, KDE Plasma and XFCE (including actions, apps, categories, devices, emblems, emotes, mimetypes, places and status), based on the icons and artwork by Paul Davey (Mattahan) (http://www.mattahan.com/). Some of them come from OxayotlTheGreat and his great job with his own remix, Buuf https://www.gnome-look.org/p/1012512) One of the main points of this theme is to remove as many symbolic icons as possible (that means linking the symbolic icon to the original icon). This is not always possible, especially for certain Gnome icons, because Gnome applies some effects to some icons, which make them look really bad if they are not real symbolic icons. +Preview: + +![preview with caja](previews/preview-caja.png) +![actions](previews/actions.png) +![apps](previews/apps.png) +![places](previews/places.png) + +# Installation + +There are two options: + +To make this theme available for every user (including root, useful when you run apps with root privileges such as packet manager), copy this directory to `/usr/share/icons` (you'll need super-user rights). + +If you just need to make it available for your user, you may copy it to `~/.icons` (`~` stands for your home directory, in case you don't know the basics of GNU/Linux shell) + +# Customization + +This theme includes many distributor logos. By default, `places/distributor-logo.png` links to `start-here.png`, which also links to `start-here-agnostic.png`, which looks like a drawer with lots of stuff inside. You may change this symbolic link to whichever icon you fancy more, using these commands (supposing you are in the places directory): + +```sh +rm start-here.png +ln -s start-here.png +``` + +you need to do it before installing the theme (or, if you have already installed it, then operate on the directory where you installed it, bearing in mind that if you installed it in `/usr/share/icons`, you need root privileges). # Change log ## Version 2.0 2020-08-29 This is a massive update from the previous version, from 2011! -It is not yet complete, and it still has some svgs and pngs from other themes as "placeholders" for pending icons. +It is not yet complete, and it still has some svgs and pngs from other themes as "placeholders" for pending icons, plus some other missing ones. I don't know when I'll have time to finish this (or at least polish it more), so I publish it now since it is *very* usable already. + +Icon additions are too many to list. I have tried to include also the new style to name icons (such as org.gnome.Calculator or org.kde.kdenlive). This change has rendered many icon themes obsolete as far as these desktop core applications concern. ## Version 1.05 diff --git a/pending.md b/TODO.md similarity index 82% rename from pending.md rename to TODO.md index 528b5dd..ab91fda 100644 --- a/pending.md +++ b/TODO.md @@ -1,9 +1,8 @@ [https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html] -#Coses a mirar: +#Things to check: -icones d'acció de veure com a llista o com a icones pel Gnome (nautilus). I la bomba seria trobar el menú (simbòlic) -Al revés: un cop trobats, veure per a quins el gnome fa processat lleig i destrossa els colors (provar nautilus, gedit, etc. I mirar també quina era la icona del calaix d'apps (drawer) perquè alguns temes la trenquen també +Why and how Gnome processes some icons (such as app drawer, or list type), which make buuf's icons appear with wrong colours. # places @@ -11,13 +10,13 @@ Al revés: un cop trobats, veure per a quins el gnome fa processat lleig i destr poi: light-rail-station, railway-station, school -revisar icones de status del nextcloud: fer-les 3 cops més grans +redo status icons for nextcloud: make them 3 times bigger # actions # apps -Nextcloud_* (estats) +Nextcloud_* (statuses) nvidia-settings kpat ksmserver @@ -26,7 +25,7 @@ libreoffice3-printeradmin.png mate applets mdm * -mate (alguns ja hi són, falta ): +mate (some are already there). Check these: /usr/share/icons/Suru++-Dark/apps/64/mate-brightness-applet.svg /usr/share/icons/Suru++-Dark/apps/64/mate-color-manager.svg /usr/share/icons/Suru++-Dark/apps/64/mate-cpu-frequency-applet.svg @@ -76,14 +75,14 @@ org.gnome.font-viewer (-sym) org.gnome.gedit-symbolic org.gnome.Nautilus-symbolic org.gnome.PowerStats -symbolic -org.gnome.seahorse.Application -symbolic (clau, tagreta de crèdit) +org.gnome.seahorse.Application -symbolic (key, credit card) org.gnome.Settings-symbolic org.gnome.Shell.Extensions -symbolic org.gnome.Settings-symbolic org.gnome.SimpleScan -symbolic (scanner) org.gnome.Terminal-symbolic org.gnome.tweaks-symbolic -org.gnome.Yelp -symbolic (help, flotador) +org.gnome.Yelp -symbolic (help, float) org.gtk.Demo4 -symbolic org.gtk.IconBrowser4 -symbolic org.gtk.WidgetFactory4 @@ -99,12 +98,12 @@ org.kde: kbruch kdenlive kdiamond - kgeography (mapa poi) - kgoldrunner (diamant daurat) + kgeography (map poi) + kgoldrunner (golden diamond) khangman kigo (go) killbots - kiten (japonès?) + kiten (japanese?) klickety klines kmix @@ -117,14 +116,14 @@ org.kde: kstars ksudoku ktpcontactlist () - ktuberlink (cara d'os) - kubrick (cub de rubik) + ktuberlink (bear face) + kubrick (rubik cube) kweather kwordquiz - lokalize ("traducció") + lokalize ("translate") okular palapeli (puzzle, add-ons?) - skrooge (una moneda) + skrooge (a coin) org.midori_browser.Midori org.mypaint.MyPaint (-symbolic) @@ -135,18 +134,18 @@ ox oxygen, oxygen-settings package panorama -parole (que no sigui al Totem!) +parole (make it different than Totem!) partitionmanager -partner (cerce blanc amb anell blanc sobre fons violeta vermellós) -pinta (pinzell i pintura) -plank (dock amb àncora) +partner (white circle with white ring on reddish violet background) +pinta (paintbrush and paint) +plank (dock with anchor) xfce4-screenshooter digikam showfoto unetbootin conky -editor de mime de XFCE -gestor d'energia del XFCE xfce4-power-manager +XFCE mime editor +xfce4-power-manager @@ -212,19 +211,19 @@ preferences-web-browser ssl stylesheets -previewer (ull que mira) -ptbatcher (el de panoràmica amb l'os) +previewer (eye that looks) +ptbatcher (bear with panoramic view) q4wine qalculate (-applet) -quassel (bola del món dins d'un tub blau) -quickview (ull) +quassel (world inside blue tube) +quickview (eye) quiterss r radiotray (=radio) rage (enlightenment video player) rekonq remmina-panel (-inverted) -remote (antenna emetint) +remote (antenna emitting) ring, -kde rosegarden running @@ -240,10 +239,10 @@ softwarecenter-debian, -ubuntu spectacle spotify -linux-48x48 -512x512 squeeze -startupm (clau anglesa) +startupm (spanner) steam stellarium -step (pèndul) +step (pendulus) subversion superkaramba supertux @@ -286,7 +285,7 @@ xaos xconfig xemacs xfce-battery* -xfce4- alguns +xfce4- some xmag xonotic sauerbraten @@ -299,20 +298,20 @@ xterm _32x32 _48x48 -color_* zanshin # categories -slideshow-symbolic (i no) +slideshow-symbolic (and not symbolic) # devices -revisar òptics, molt millorable (CD-DVD-BR...) +check optic media, highly improvable (CD-DVD-BR...) drive-partition -network* enllaçar-los amb statuses -mòbils de marques...? +network* link with statuses +different makes of phones?? # emblems distributor-logo! -veure'n més +see more # mime-types -tots els d'oficina / productivitat +all related to office / productivity # status ac-adapter (-symbolic) @@ -371,9 +370,4 @@ weather-clouds - +tots els symbolic - - - -CONTINUAR DES D'AQUÍ. Fer-ho tot seleccionant una icona de carpeta per canviar-la i anar buscant les categories - + +all symbolic ones diff --git a/beetroot_static/README.rst b/beetroot_static/README.rst deleted file mode 100644 index e7daa87..0000000 --- a/beetroot_static/README.rst +++ /dev/null @@ -1,17 +0,0 @@ -install dependencies -~~~~~~~~~~~~~~~~~~~~ - -run this command in the directory ``searx/static/themes/oscar`` - -``npm install`` - -compile sources -~~~~~~~~~~~~~~~ - -run this command in the directory ``searx/static/themes/oscar`` - -``grunt`` - -or in the root directory: - -``make grunt`` diff --git a/beetroot_static/css/leaflet.min.css b/beetroot_static/css/leaflet.min.css deleted file mode 100644 index bca0c58..0000000 --- a/beetroot_static/css/leaflet.min.css +++ /dev/null @@ -1,93 +0,0 @@ -.leaflet-map-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-pane,.leaflet-tile-container,.leaflet-overlay-pane,.leaflet-shadow-pane,.leaflet-marker-pane,.leaflet-popup-pane,.leaflet-overlay-pane svg,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0} -.leaflet-container{overflow:hidden;-ms-touch-action:none} -.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none} -.leaflet-marker-icon,.leaflet-marker-shadow{display:block} -.leaflet-container img{max-width:none !important} -.leaflet-container img.leaflet-image-layer{max-width:15000px !important} -.leaflet-tile{filter:inherit;visibility:hidden} -.leaflet-tile-loaded{visibility:inherit} -.leaflet-zoom-box{width:0;height:0} -.leaflet-overlay-pane svg{-moz-user-select:none} -.leaflet-tile-pane{z-index:2} -.leaflet-objects-pane{z-index:3} -.leaflet-overlay-pane{z-index:4} -.leaflet-shadow-pane{z-index:5} -.leaflet-marker-pane{z-index:6} -.leaflet-popup-pane{z-index:7} -.leaflet-vml-shape{width:1px;height:1px} -.lvml{behavior:url(#default#VML);display:inline-block;position:absolute} -.leaflet-control{position:relative;z-index:7;pointer-events:auto} -.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none} -.leaflet-top{top:0} -.leaflet-right{right:0} -.leaflet-bottom{bottom:0} -.leaflet-left{left:0} -.leaflet-control{float:left;clear:both} -.leaflet-right .leaflet-control{float:right} -.leaflet-top .leaflet-control{margin-top:10px} -.leaflet-bottom .leaflet-control{margin-bottom:10px} -.leaflet-left .leaflet-control{margin-left:10px} -.leaflet-right .leaflet-control{margin-right:10px} -.leaflet-fade-anim .leaflet-tile,.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear} -.leaflet-fade-anim .leaflet-tile-loaded,.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1} -.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0, 0, .25, 1);-moz-transition:-moz-transform .25s cubic-bezier(0, 0, .25, 1);-o-transition:-o-transform .25s cubic-bezier(0, 0, .25, 1);transition:transform .25s cubic-bezier(0, 0, .25, 1)} -.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile,.leaflet-touching .leaflet-zoom-animated{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none} -.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden} -.leaflet-clickable{cursor:pointer} -.leaflet-container{cursor:-webkit-grab;cursor:-moz-grab} -.leaflet-popup-pane,.leaflet-control{cursor:auto} -.leaflet-dragging .leaflet-container,.leaflet-dragging .leaflet-clickable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing} -.leaflet-container{background:#ddd;outline:0} -.leaflet-container a{color:#0078a8} -.leaflet-container a.leaflet-active{outline:2px solid #ffa500} -.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,0.5)} -.leaflet-container{font:12px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif} -.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,0.65);border-radius:4px} -.leaflet-bar a,.leaflet-bar a:hover{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000} -.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block} -.leaflet-bar a:hover{background-color:#f4f4f4} -.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px} -.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none} -.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb} -.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px} -.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px 'Lucida Console',Monaco,monospace;text-indent:1px} -.leaflet-control-zoom-out{font-size:20px} -.leaflet-touch .leaflet-control-zoom-in{font-size:22px} -.leaflet-touch .leaflet-control-zoom-out{font-size:24px} -.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,0.4);background:#fff;border-radius:5px} -.leaflet-control-layers-toggle{background-image:url(../img/map/layers.png);width:36px;height:36px} -.leaflet-retina .leaflet-control-layers-toggle{background-image:url(../img/map/layers-2x.png);background-size:26px 26px} -.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px} -.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none} -.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative} -.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff} -.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px} -.leaflet-control-layers label{display:block} -.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px} -.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,0.7);margin:0} -.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333} -.leaflet-control-attribution a{text-decoration:none} -.leaflet-control-attribution a:hover{text-decoration:underline} -.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px} -.leaflet-left .leaflet-control-scale{margin-left:5px} -.leaflet-bottom .leaflet-control-scale{margin-bottom:5px} -.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;font-size:11px;white-space:nowrap;overflow:hidden;-moz-box-sizing:content-box;box-sizing:content-box;background:#fff;background:rgba(255,255,255,0.5)} -.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px} -.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777} -.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none} -.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,0.2);background-clip:padding-box} -.leaflet-popup{position:absolute;text-align:center} -.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px} -.leaflet-popup-content{margin:13px 19px;line-height:1.4} -.leaflet-popup-content p{margin:18px 0} -.leaflet-popup-tip-container{margin:0 auto;width:40px;height:20px;position:relative;overflow:hidden} -.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)} -.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,0.4)} -.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;padding:4px 4px 0 0;text-align:center;width:18px;height:14px;font:16px/14px Tahoma,Verdana,sans-serif;color:#c3c3c3;text-decoration:none;font-weight:bold;background:transparent} -.leaflet-container a.leaflet-popup-close-button:hover{color:#999} -.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd} -.leaflet-oldie .leaflet-popup-content-wrapper{zoom:1} -.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)} -.leaflet-oldie .leaflet-popup-tip-container{margin-top:-1px} -.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999} -.leaflet-div-icon{background:#fff;border:1px solid #666} diff --git a/beetroot_static/css/logicodev-dark.css b/beetroot_static/css/logicodev-dark.css deleted file mode 100644 index a87e469..0000000 --- a/beetroot_static/css/logicodev-dark.css +++ /dev/null @@ -1,967 +0,0 @@ -:root { - --navbar: #50162D; - --navbarlighter: #994D6B; - --navbarevenlighter: #C4668B; - --tab: #053539; - --tabdarker: #111f20; - --tabevendarker: #081011; - --tablighter: #2d7277; - --tabbottom: #053539; - --form: #727373; - --formdarker: #2b2929; - --formlighter: #777d7e; - --black: #130309; - --link: #771a3f; - --linklighter: #a2335d; - --btn: #105155; /* not used */ - --btndarker: #2b2929; - --btnlighter: #1c7277; - --panel: #041a1c; - --panellighter: #276266; - --paneldarker: #111f20; - --resultlink: #732141; - --resultlinkhover: #863957; - --supported: #0a4625; - --notsupported: #4b0903; - --notsupportedlighter: #60201a; - --notsupportedevenlighter: #ac8986; -} - -* { - border-radius: 0 !important; -} -html { - position: relative; - min-height: 100%; - color: #29314d; -} - -body a { - color: #08c; -} - -.alert-info { - background-color: var(--notsupported); - border-color: var(--notsupported); - color: var(--notsupportedevenlighter); -} - -.alert-danger { - background-color: var(--notsupported); - border-color: var(--notsupported); - color: var(--notsupportedevenlighter); -} - -hr { - border-top: 1px solid var(--btnlighter); -} - -input[type="checkbox"]:checked + .label_hide_if_checked, -input[type="checkbox"]:checked + .label_hide_if_not_checked + .label_hide_if_checked { - display: none; -} -input[type="checkbox"]:not(:checked) + .label_hide_if_not_checked, -input[type="checkbox"]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked { - display: none; -} -.onoff-checkbox { - width: 15%; -} -.onoffswitch { - position: relative; - width: 110px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; -} -.onoffswitch-checkbox { - opacity: 0; - position: absolute; -} -.onoffswitch-checkbox:before { - content: ""; - display: inline-block; - width: 16px; - height: 16px; - margin-right: 10px; - position: absolute; - left: 0; - bottom: 1px; - background-color: #fff; - border: 1px solid #ccc; - border-radius: 0px; -} -.onoffswitch-label { - display: block; - overflow: hidden; - cursor: pointer; - border: 2px solid #fff; - border-radius: 50px !important; -} -.onoffswitch-inner { - display: block; - transition: margin 0.3s ease-in 0s; -} -.onoffswitch-inner:before, -.onoffswitch-inner:after { - display: block; - float: left; - width: 50%; - height: 30px; - padding: 0; - line-height: 40px; - font-size: 20px; - box-sizing: border-box; - content: ""; - background-color: #eee; -} -.onoffswitch-switch { - display: block; - width: 37px; - background-color: var(--btn); - position: absolute; - top: 0; - bottom: 0; - right: 0; - border: 2px solid #fff !important; - border-radius: 50px !important; - transition: all 0.3s ease-in 0s; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { - margin-right: 0; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { - right: 71px; - background-color: #a1a1a1; -} -.onoffswitch-checkbox:focus + .onoffswitch-label .onoffswitch-switch { - border: 3px solid #444444; -} -.result_header { - margin-top: 0; - margin-bottom: 2px; - font-size: 16px; -} -.result_header .favicon { - margin-bottom: -3px; -} -.result_header a { - color: var(--link); - text-decoration: none; -} -.result_header a:hover { - color: var(--linklighter); -} -.result_header a:visited { - color: #684898; -} -.result_header a .highlight { - background-color: #f6f9fa; -} -.result-content, -.result-format, -.result-source { - margin-top: 2px; - margin-bottom: 0; - word-wrap: break-word; - color: #666; - font-size: 13px; -} -.result-content .highlight, -.result-format .highlight, -.result-source .highlight { - font-weight: 700; -} -.result-source { - font-size: 10px; - float: left; -} -.result-format { - font-size: 10px; - float: right; -} -.external-link { - color: #135c5e; - font-size: 12px; - margin-bottom: 15px; -} -.external-link a { - margin-right: 3px; -} -.result-default, -.result-code, -.result-torrent, -.result-videos, -.result-map { - clear: both; - padding: 0.5em 4px; -} -.result-default:hover, -.result-code:hover, -.result-torrent:hover, -.result-videos:hover, -.result-map:hover { - background-color: var(--tabdarker); -} -.result-images { - float: left !important; - width: 24%; - margin: 0.5%; -} -.result-images a { - display: block; - width: 100%; - background-size: cover; -} -.img-thumbnail { - margin: 5px; - max-height: 128px; - min-height: 128px; -} -.result-videos { - clear: both; -} -.result-videos hr { - margin: 5px 0 15px 0; -} -.result-videos .collapse { - width: 100%; -} -.result-videos .in { - margin-bottom: 8px; -} -.result-torrent { - clear: both; -} -.result-torrent b { - margin-right: 5px; - margin-left: 5px; -} -.result-torrent .seeders { - color: #2ecc71; -} -.result-torrent .leechers { - color: #f35e77; -} -.result-map { - clear: both; -} -.result-code { - clear: both; -} -.result-code .code-fork, -.result-code .code-fork a { - color: #666; -} -.suggestion_item { - margin: 2px 5px; - max-width: 100%; -} -.suggestion_item .btn { - max-width: 100%; - white-space: normal; - word-wrap: break-word; - text-align: left; -} -.result_download { - margin-right: 5px; -} -#pagination { - margin-top: 30px; - padding-bottom: 60px; -} -.label-default { - color: #666666; - background: 0 0; -} - -.label { - color: #bfb9b9; -} - -.result .text-muted small { - word-wrap: break-word; -} -.modal-wrapper { - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -} -.modal-wrapper { - background-clip: padding-box; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - outline: 0 none; - position: relative; -} -@media screen and (max-width: 75em) { - .img-thumbnail { - object-fit: cover; - } -} -.infobox .panel-heading { - background-color: #f6f9fa; -} -.infobox .panel-heading .panel-title { - font-weight: 700; -} -.infobox p { - font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important; - font-style: italic; -} -.infobox .btn { - background-color: #007ab8; - border: none; -} -.infobox .btn a { - color: #fff; - margin: 5px; -} -.infobox .infobox_part { - margin-bottom: 20px; - word-wrap: break-word; - table-layout: fixed; -} -.infobox .infobox_part:last-child { - margin-bottom: 0; -} -.search_categories, -#categories { - text-transform: capitalize; - margin-bottom: 0.5rem; - display: flex; - flex-wrap: wrap; - flex-flow: row wrap; - align-content: stretch; -} -.search_categories label, -#categories label, -.search_categories .input-group-addon, -#categories .input-group-addon { - flex-grow: 1; - flex-basis: auto; - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #ddd 1px solid; - border-right: none; - color: #666; - padding-bottom: 0.4rem; - padding-top: 0.4rem; - text-align: center; - min-width: 50px; -} -.search_categories label:last-child, -#categories label:last-child, -.search_categories .input-group-addon:last-child, -#categories .input-group-addon:last-child { - border-right: #ddd 1px solid; -} -.search_categories input[type="checkbox"]:checked + label, -#categories input[type="checkbox"]:checked + label { - color: #29314d; - font-weight: 700; - border-bottom: #01d7d4 5px solid; -} -#main-logo { - margin-top: 10vh; - margin-bottom: 25px; -} -#main-logo > img { - max-width: 350px; - width: 80%; -} -#q { - box-shadow: none; - border-right: none; - border-color: var(--black); -} -#search_form .input-group-btn .btn { - border-color: var(--black); -} -#search_form .input-group-btn .btn:hover { - background-color: var(--btnlighter); - color: #fff; -} -.custom-select { - appearance: none; - -webkit-appearance: none; - -moz-appearance: none; - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #888888 1px solid; - color: #666; - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAABFkAAARZAVnbJUkAAAAHdElNRQfgBxgLDwB20OFsAAAAbElEQVQY073OsQ3CMAAEwJMYwJGnsAehpoXJItltBkmcdZBYgIIiQoLglnz3ui+eP+bk5uneteTMZJa6OJuIqvYzSJoqwqBq8gdmTTW86/dghxAUq4xsVYT9laBYXCw93Aajh7GPEF23t4fkBYevGFTANkPRAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA3LTI0VDExOjU1OjU4KzAyOjAwRFqFOQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNy0yNFQxMToxNTowMCswMjowMP7RDgQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC) - 96% no-repeat; -} -.search-margin { - margin-bottom: 0.6em; -} -.visually-hidden { - position: absolute !important; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px 1px 1px 1px); - /* IE6, IE7 */ - clip: rect(1px, 1px, 1px, 1px); - white-space: nowrap; - /* added line */ -} -.label-danger, -.btn-danger { - background: #c9432f; -} -.label-success, -.btn-success { - background: #068922; -} -select.form-control { - border-color: #888888 !important; -} -#advanced-search-container { - display: none; - text-align: left; - margin-bottom: 1rem; - clear: both; -} -#advanced-search-container label, -#advanced-search-container .input-group-addon { - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #ddd 1px solid; - border-right: none; - color: #666; - padding-bottom: 0.4rem; - padding-right: 0.7rem; - padding-left: 0.7rem; -} -#advanced-search-container label:last-child, -#advanced-search-container .input-group-addon:last-child { - border-right: #ddd 1px solid; -} -#advanced-search-container input[type="radio"] { - display: none; -} -#advanced-search-container input[type="radio"]:checked + label { - color: #29314d; - font-weight: 700; - border-bottom: #01d7d4 5px solid; -} -#check-advanced:focus + label { - text-decoration: underline; -} -#check-advanced:checked ~ #advanced-search-container { - display: block; -} -.advanced { - padding: 0; - margin-top: 0.3rem; - text-align: right; -} -.advanced label, -.advanced select { - cursor: pointer; -} -.cursor-text { - cursor: text !important; -} -.cursor-pointer { - cursor: pointer !important; -} -pre, -code { - font-family: "Ubuntu Mono", "Courier New", "Lucida Console", monospace !important; -} -.lineno { - margin-right: 5px; -} -.highlight .hll { - background-color: #ffc; -} - -.highlight .c { - color: #556366; - font-style: italic; -} -.highlight .err { - border: 1px solid #ffa92f; -} -.highlight .k { - color: #be74d5; - font-weight: 700; -} -.highlight .o { - color: #d19a66; -} -.highlight .cm { - color: #556366; - font-style: italic; -} -.highlight .cp { - color: #bc7a00; -} -.highlight .c1 { - color: #556366; - font-style: italic; -} -.highlight .cs { - color: #556366; - font-style: italic; -} -.highlight .gd { - color: #a00000; -} -.highlight .ge { - font-style: italic; -} -.highlight .gr { - color: red; -} -.highlight .gh { - color: navy; - font-weight: 700; -} -.highlight .gi { - color: #00a000; -} -.highlight .go { - color: #888; -} -.highlight .gp { - color: navy; - font-weight: 700; -} -.highlight .gs { - font-weight: 700; -} -.highlight .gu { - color: purple; - font-weight: 700; -} -.highlight .gt { - color: #04d; -} -.highlight .kc { - color: #be74d5; - font-weight: 700; -} -.highlight .kd { - color: #be74d5; - font-weight: 700; -} -.highlight .kn { - color: #be74d5; - font-weight: 700; -} -.highlight .kp { - color: #be74d5; -} -.highlight .kr { - color: #be74d5; - font-weight: 700; -} -.highlight .kt { - color: #d46c72; -} -.highlight .m { - color: #d19a66; -} -.highlight .s { - color: #86c372; -} -.highlight .na { - color: #7d9029; -} -.highlight .nb { - color: #be74d5; -} -.highlight .nc { - color: #61afef; - font-weight: 700; -} -.highlight .no { - color: #d19a66; -} -.highlight .nd { - color: #a2f; -} -.highlight .ni { - color: #999; - font-weight: 700; -} -.highlight .ne { - color: #d2413a; - font-weight: 700; -} -.highlight .nf { - color: #61afef; -} -.highlight .nl { - color: #a0a000; -} -.highlight .nn { - color: #61afef; - font-weight: 700; -} -.highlight .nt { - color: #be74d5; - font-weight: 700; -} -.highlight .nv { - color: #dfc06f; -} -.highlight .ow { - color: #a2f; - font-weight: 700; -} -.highlight .w { - color: #d7dae0; -} -.highlight .mf { - color: #d19a66; -} -.highlight .mh { - color: #d19a66; -} -.highlight .mi { - color: #d19a66; -} -.highlight .mo { - color: #d19a66; -} -.highlight .sb { - color: #86c372; -} -.highlight .sc { - color: #86c372; -} -.highlight .sd { - color: #86c372; - font-style: italic; -} -.highlight .s2 { - color: #86c372; -} -.highlight .se { - color: #b62; - font-weight: 700; -} -.highlight .sh { - color: #86c372; -} -.highlight .si { - color: #b68; - font-weight: 700; -} -.highlight .sx { - color: #be74d5; -} -.highlight .sr { - color: #b68; -} -.highlight .s1 { - color: #86c372; -} -.highlight .ss { - color: #dfc06f; -} -.highlight .bp { - color: #be74d5; -} -.highlight .vc { - color: #dfc06f; -} -.highlight .vg { - color: #dfc06f; -} -.highlight .vi { - color: #dfc06f; -} -.highlight .il { - color: #d19a66; -} -.highlight .lineno { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - color: #556366; -} -.highlight .lineno::selection { - background: 0 0; -} -.highlight .lineno::-moz-selection { - background: 0 0; -} -.highlight pre { - background-color: #282c34; - color: #d7dae0; - border: none; - margin-bottom: 25px; - font-size: 15px; - padding: 20px 10px; -} - -.table > tbody > tr > td, -.table > tbody > tr > th { - vertical-align: middle !important; -} -.nav-tabs.nav-justified { - margin-bottom: 20px; -} -p { - margin: 10px 0; -} -input.cursor-text { - margin: 10px 0; -} -body { - background: var(--black) none !important; - color: var(--form) !important; -} - -a { - color: var(--link) !important; - text-decoration: none !important; -} -a:hover { - color: var(--linklighter) !important; -} - -.infobox_part > bdi > p > a { - color: var(--panellighter) !important; -} - -.infobox_part > bdi > p > a:hover { - color: var(--paneldarker) !important; -} - -.form-control { - background-color: var(--formdarker); - border: 1px solid var(--black); - color: var(--formlighter); -} - -.form-control[disabled], .form-control[readonly] { - cursor: not-allowed; - background-color: var(--formdarker); - opacity: 1; -} - -input:focus, -button:focus, -textarea:focus, -select:focus { - border: 1px solid var(--btnlighter) !important; - box-shadow: initial !important; -} -div#advanced-search-container div#categories label { - background: 0 0; - border: 1px solid #282a2e; -} -ul.nav li a { - border: 0 !important; - border-bottom: 1px solid var(--tabbottom) !important; - color: var(--tablighter) !important; -} -#categories *, -.modal-wrapper * { - background: var(--tab) none !important; - color: var(--tablighter) !important; -} -#categories * { - border: 1px solid var(--tabevendarker) !important; -} -#categories :checked + label { - border-bottom: 4px solid var(--tabbottom) !important; - background-color: var(--tabdarker) !important; -} -.result-content, -.result-source, -.result-format { - color: #a29ea2 !important; -} - -.table-striped tr td, -.table-striped tr th { - border-color: #13474A !important; -} -.highlight { - font-weight: 700; - background: #f8f8f8; - background-color: transparent !important; -} -.navbar { - background: #1d1f21 none; - border: none; -} -.navbar .active, -.menu { - background: none !important; -} -.label-default { - background: 0 0; - color: #777277; -} -.navbar-default .navbar-nav > .active > a, -.navbar-default .navbar-nav > .active > a:hover, -.navbar-default .navbar-nav > .active > a:focus, -.nav-tabs.nav-justified > .active > a { - background-color: var(--tabdarker) !important; -} - - -.btn, .btn[disabled] { - color: var(--btn); - background-color: var(--btndarker); - border: 1px solid var(--btndarker); -} - -.btn:hover { - color: var(--btnlighter) !important; - background-color: var(--btn) !important; - border-color: var(--black); -} - -.btn-primary.active { - color: #c5c8c6; - background-color: #5f89ac; - border-color: #5f89ac; -} -.panel { - border: 1px solid #111; - background: 0 0; -} -.panel-heading { - color: var(--panellighter) !important; - background: var(--paneldarker) !important; - border-bottom: none; -} -.panel-body { - color: var(--panellighter) !important; - background: #011213 !important; - border-color: #111 !important; -} -p.btn.btn-default { - background: 0 0; -} -.table-striped > tbody > tr:nth-child(odd) > td, -.table-striped > tbody > tr:nth-child(odd) > th, -.table-striped > thead > tr:nth-child(odd) > th { - background: var(--panel) none !important; - /*color: var(--panellighter) !important;*/ -} - -.label-success { - background: var(--supported) none !important; -} -.label-danger { - background: var(--notsupported) none !important; -} -.searx-navbar { - background: var(--navbar); - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: 700; - margin-bottom: 0.8rem; -} -.searx-navbar a { - margin-right: 2rem; - color: var(--navbarlighter) !important; - text-decoration: none; -} - -.searx-navbar a:hover { - margin-right: 2rem; - color: var(--navbarevenlighter) !important; - text-decoration: none; -} -.searx-navbar .instance a { - color: #01d7d4; - margin-left: 2rem; -} -#main-logo { - margin-top: 20vh; - margin-bottom: 25px; -} -#main-logo > img { - max-width: 350px; - width: 80%; -} -.onoffswitch-inner:before, -.onoffswitch-inner:after { - background: #1d1f21 none !important; -} -.onoffswitch-switch, -.onoffswitch-label { - border: 2px solid var(--btndarker) !important; -} -.nav > li > a:hover, -.nav > li > a:focus { - background-color: var(--tab) !important; -} -.img-thumbnail, -.thumbnail { - padding: 0; - line-height: 1.42857143; - background: 0 0; - border: none; -} -.modal-content { - background: #1d1f21 none !important; -} -.table > thead > tr > td.danger, -.table > tbody > tr > td.danger, -.table > tfoot > tr > td.danger, -.table > thead > tr > th.danger, -.table > tbody > tr > th.danger, -.table > tfoot > tr > th.danger, -.table > thead > tr.danger > td, -.table > tbody > tr.danger > td, -.table > tfoot > tr.danger > td, -.table > thead > tr.danger > th, -.table > tbody > tr.danger > th, -.table > tfoot > tr.danger > th { - background: var(--notsupported) !important; - color: #c5c8c6 !important; -} -.table-hover > tbody > tr > td.danger:hover, -.table-hover > tbody > tr > th.danger:hover, -.table-hover > tbody > tr.danger:hover > td, -.table-hover > tbody > tr:hover > .danger, -.table-hover > tbody > tr.danger:hover > th { - background: var(--notsupportedlighter) !important; - color: #c5c8c6 !important; -} -.table-hover > tbody > tr:hover > td, -.table-hover > tbody > tr:hover > th { - background: var(--formdarker) !important; -} -.btn-success { - color: #c5c8c6; - background: #449d44; -} -.btn-danger { - color: #c5c8c6; - background: #d9534f; -} -.well { - background: var(--tabdarker); - border-color: #2f0c1a; -} - -.result_header > a { - color: var(--resultlink) !important; -} - -.result_header > a:hover { - color: var(--resultlinkhover) !important; -} diff --git a/beetroot_static/css/logicodev-dark.min.css b/beetroot_static/css/logicodev-dark.min.css deleted file mode 100644 index 90613e5..0000000 --- a/beetroot_static/css/logicodev-dark.min.css +++ /dev/null @@ -1 +0,0 @@ -:root{--navbar:#50162d;--navbarlighter:#994d6b;--navbarevenlighter:#c4668b;--tab:#053539;--tabdarker:#111f20;--tabevendarker:#081011;--tablighter:#2d7277;--tabbottom:#053539;--form:#727373;--formdarker:#2b2929;--formlighter:#777d7e;--black:#130309;--link:#771a3f;--linklighter:#a2335d;--btn:#105155;--btndarker:#2b2929;--btnlighter:#1c7277;--panel:#041a1c;--panellighter:#276266;--paneldarker:#111f20;--resultlink:#732141;--resultlinkhover:#863957;--supported:#0a4625;--notsupported:#4b0903;--notsupportedlighter:#60201a;--notsupportedevenlighter:#ac8986}*{border-radius:0 !important}html{position:relative;min-height:100%;color:#29314d}body a{color:#08c}.alert-info{background-color:var(--notsupported);border-color:var(--notsupported);color:var(--notsupportedevenlighter)}.alert-danger{background-color:var(--notsupported);border-color:var(--notsupported);color:var(--notsupportedevenlighter)}hr{border-top:1px solid var(--btnlighter)}input[type="checkbox"]:checked+.label_hide_if_checked,input[type="checkbox"]:checked+.label_hide_if_not_checked+.label_hide_if_checked{display:none}input[type="checkbox"]:not(:checked)+.label_hide_if_not_checked,input[type="checkbox"]:not(:checked)+.label_hide_if_checked+.label_hide_if_not_checked{display:none}.onoff-checkbox{width:15%}.onoffswitch{position:relative;width:110px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.onoffswitch-checkbox{opacity:0;position:absolute}.onoffswitch-checkbox:before{content:"";display:inline-block;width:16px;height:16px;margin-right:10px;position:absolute;left:0;bottom:1px;background-color:#fff;border:1px solid #ccc;border-radius:0}.onoffswitch-label{display:block;overflow:hidden;cursor:pointer;border:2px solid #fff;border-radius:50px !important}.onoffswitch-inner{display:block;transition:margin .3s ease-in 0s}.onoffswitch-inner:before,.onoffswitch-inner:after{display:block;float:left;width:50%;height:30px;padding:0;line-height:40px;font-size:20px;box-sizing:border-box;content:"";background-color:#eee}.onoffswitch-switch{display:block;width:37px;background-color:var(--btn);position:absolute;top:0;bottom:0;right:0;border:2px solid #fff !important;border-radius:50px !important;transition:all .3s ease-in 0s}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner{margin-right:0}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch{right:71px;background-color:#a1a1a1}.onoffswitch-checkbox:focus+.onoffswitch-label .onoffswitch-switch{border:3px solid #444}.result_header{margin-top:0;margin-bottom:2px;font-size:16px}.result_header .favicon{margin-bottom:-3px}.result_header a{color:var(--link);text-decoration:none}.result_header a:hover{color:var(--linklighter)}.result_header a:visited{color:#684898}.result_header a .highlight{background-color:#f6f9fa}.result-content,.result-format,.result-source{margin-top:2px;margin-bottom:0;word-wrap:break-word;color:#666;font-size:13px}.result-content .highlight,.result-format .highlight,.result-source .highlight{font-weight:700}.result-source{font-size:10px;float:left}.result-format{font-size:10px;float:right}.external-link{color:#135c5e;font-size:12px;margin-bottom:15px}.external-link a{margin-right:3px}.result-default,.result-code,.result-torrent,.result-videos,.result-map{clear:both;padding:.5em 4px}.result-default:hover,.result-code:hover,.result-torrent:hover,.result-videos:hover,.result-map:hover{background-color:var(--tabdarker)}.result-images{float:left !important;width:24%;margin:.5%}.result-images a{display:block;width:100%;background-size:cover}.img-thumbnail{margin:5px;max-height:128px;min-height:128px}.result-videos{clear:both}.result-videos hr{margin:5px 0 15px 0}.result-videos .collapse{width:100%}.result-videos .in{margin-bottom:8px}.result-torrent{clear:both}.result-torrent b{margin-right:5px;margin-left:5px}.result-torrent .seeders{color:#2ecc71}.result-torrent .leechers{color:#f35e77}.result-map{clear:both}.result-code{clear:both}.result-code .code-fork,.result-code .code-fork a{color:#666}.suggestion_item{margin:2px 5px;max-width:100%}.suggestion_item .btn{max-width:100%;white-space:normal;word-wrap:break-word;text-align:left}.result_download{margin-right:5px}#pagination{margin-top:30px;padding-bottom:60px}.label-default{color:#666;background:0 0}.label{color:#bfb9b9}.result .text-muted small{word-wrap:break-word}.modal-wrapper{box-shadow:0 5px 15px rgba(0,0,0,0.5)}.modal-wrapper{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,0.2);border-radius:6px;box-shadow:0 3px 9px rgba(0,0,0,0.5);outline:0 none;position:relative}@media screen and (max-width:75em){.img-thumbnail{object-fit:cover}}.infobox .panel-heading{background-color:#f6f9fa}.infobox .panel-heading .panel-title{font-weight:700}.infobox p{font-family:"DejaVu Serif",Georgia,Cambria,"Times New Roman",Times,serif !important;font-style:italic}.infobox .btn{background-color:#007ab8;border:none}.infobox .btn a{color:#fff;margin:5px}.infobox .infobox_part{margin-bottom:20px;word-wrap:break-word;table-layout:fixed}.infobox .infobox_part:last-child{margin-bottom:0}.search_categories,#categories{text-transform:capitalize;margin-bottom:.5rem;display:flex;flex-wrap:wrap;flex-flow:row wrap;align-content:stretch}.search_categories label,#categories label,.search_categories .input-group-addon,#categories .input-group-addon{flex-grow:1;flex-basis:auto;font-size:1.2rem;font-weight:400;background-color:#fff;border:#ddd 1px solid;border-right:none;color:#666;padding-bottom:.4rem;padding-top:.4rem;text-align:center;min-width:50px}.search_categories label:last-child,#categories label:last-child,.search_categories .input-group-addon:last-child,#categories .input-group-addon:last-child{border-right:#ddd 1px solid}.search_categories input[type="checkbox"]:checked+label,#categories input[type="checkbox"]:checked+label{color:#29314d;font-weight:700;border-bottom:#01d7d4 5px solid}#main-logo{margin-top:10vh;margin-bottom:25px}#main-logo>img{max-width:350px;width:80%}#q{box-shadow:none;border-right:none;border-color:var(--black)}#search_form .input-group-btn .btn{border-color:var(--black)}#search_form .input-group-btn .btn:hover{background-color:var(--btnlighter);color:#fff}.custom-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;font-size:1.2rem;font-weight:400;background-color:#fff;border:#888 1px solid;color:#666;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAABFkAAARZAVnbJUkAAAAHdElNRQfgBxgLDwB20OFsAAAAbElEQVQY073OsQ3CMAAEwJMYwJGnsAehpoXJItltBkmcdZBYgIIiQoLglnz3ui+eP+bk5uneteTMZJa6OJuIqvYzSJoqwqBq8gdmTTW86/dghxAUq4xsVYT9laBYXCw93Aajh7GPEF23t4fkBYevGFTANkPRAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA3LTI0VDExOjU1OjU4KzAyOjAwRFqFOQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNy0yNFQxMToxNTowMCswMjowMP7RDgQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC) 96% no-repeat}.search-margin{margin-bottom:.6em}.visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}.label-danger,.btn-danger{background:#c9432f}.label-success,.btn-success{background:#068922}select.form-control{border-color:#888 !important}#advanced-search-container{display:none;text-align:left;margin-bottom:1rem;clear:both}#advanced-search-container label,#advanced-search-container .input-group-addon{font-size:1.2rem;font-weight:400;background-color:#fff;border:#ddd 1px solid;border-right:none;color:#666;padding-bottom:.4rem;padding-right:.7rem;padding-left:.7rem}#advanced-search-container label:last-child,#advanced-search-container .input-group-addon:last-child{border-right:#ddd 1px solid}#advanced-search-container input[type="radio"]{display:none}#advanced-search-container input[type="radio"]:checked+label{color:#29314d;font-weight:700;border-bottom:#01d7d4 5px solid}#check-advanced:focus+label{text-decoration:underline}#check-advanced:checked~#advanced-search-container{display:block}.advanced{padding:0;margin-top:.3rem;text-align:right}.advanced label,.advanced select{cursor:pointer}.cursor-text{cursor:text !important}.cursor-pointer{cursor:pointer !important}pre,code{font-family:"Ubuntu Mono","Courier New","Lucida Console",monospace !important}.lineno{margin-right:5px}.highlight .hll{background-color:#ffc}.highlight .c{color:#556366;font-style:italic}.highlight .err{border:1px solid #ffa92f}.highlight .k{color:#be74d5;font-weight:700}.highlight .o{color:#d19a66}.highlight .cm{color:#556366;font-style:italic}.highlight .cp{color:#bc7a00}.highlight .c1{color:#556366;font-style:italic}.highlight .cs{color:#556366;font-style:italic}.highlight .gd{color:#a00000}.highlight .ge{font-style:italic}.highlight .gr{color:#f00}.highlight .gh{color:#000080;font-weight:700}.highlight .gi{color:#00a000}.highlight .go{color:#888}.highlight .gp{color:#000080;font-weight:700}.highlight .gs{font-weight:700}.highlight .gu{color:#800080;font-weight:700}.highlight .gt{color:#04d}.highlight .kc{color:#be74d5;font-weight:700}.highlight .kd{color:#be74d5;font-weight:700}.highlight .kn{color:#be74d5;font-weight:700}.highlight .kp{color:#be74d5}.highlight .kr{color:#be74d5;font-weight:700}.highlight .kt{color:#d46c72}.highlight .m{color:#d19a66}.highlight .s{color:#86c372}.highlight .na{color:#7d9029}.highlight .nb{color:#be74d5}.highlight .nc{color:#61afef;font-weight:700}.highlight .no{color:#d19a66}.highlight .nd{color:#a2f}.highlight .ni{color:#999;font-weight:700}.highlight .ne{color:#d2413a;font-weight:700}.highlight .nf{color:#61afef}.highlight .nl{color:#a0a000}.highlight .nn{color:#61afef;font-weight:700}.highlight .nt{color:#be74d5;font-weight:700}.highlight .nv{color:#dfc06f}.highlight .ow{color:#a2f;font-weight:700}.highlight .w{color:#d7dae0}.highlight .mf{color:#d19a66}.highlight .mh{color:#d19a66}.highlight .mi{color:#d19a66}.highlight .mo{color:#d19a66}.highlight .sb{color:#86c372}.highlight .sc{color:#86c372}.highlight .sd{color:#86c372;font-style:italic}.highlight .s2{color:#86c372}.highlight .se{color:#b62;font-weight:700}.highlight .sh{color:#86c372}.highlight .si{color:#b68;font-weight:700}.highlight .sx{color:#be74d5}.highlight .sr{color:#b68}.highlight .s1{color:#86c372}.highlight .ss{color:#dfc06f}.highlight .bp{color:#be74d5}.highlight .vc{color:#dfc06f}.highlight .vg{color:#dfc06f}.highlight .vi{color:#dfc06f}.highlight .il{color:#d19a66}.highlight .lineno{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;color:#556366}.highlight .lineno::selection{background:0 0}.highlight .lineno::-moz-selection{background:0 0}.highlight pre{background-color:#282c34;color:#d7dae0;border:none;margin-bottom:25px;font-size:15px;padding:20px 10px}.table>tbody>tr>td,.table>tbody>tr>th{vertical-align:middle !important}.nav-tabs.nav-justified{margin-bottom:20px}p{margin:10px 0}input.cursor-text{margin:10px 0}body{background:var(--black) none !important;color:var(--form) !important}a{color:var(--link) !important;text-decoration:none !important}a:hover{color:var(--linklighter) !important}.infobox_part>bdi>p>a{color:var(--panellighter) !important}.infobox_part>bdi>p>a:hover{color:var(--paneldarker) !important}.form-control{background-color:var(--formdarker);border:1px solid var(--black);color:var(--formlighter)}.form-control[disabled],.form-control[readonly]{cursor:not-allowed;background-color:var(--formdarker);opacity:1}input:focus,button:focus,textarea:focus,select:focus{border:1px solid var(--btnlighter) !important;box-shadow:initial !important}div#advanced-search-container div#categories label{background:0 0;border:1px solid #282a2e}ul.nav li a{border:0 !important;border-bottom:1px solid var(--tabbottom) !important;color:var(--tablighter) !important}#categories *,.modal-wrapper *{background:var(--tab) none !important;color:var(--tablighter) !important}#categories *{border:1px solid var(--tabevendarker) !important}#categories :checked+label{border-bottom:4px solid var(--tabbottom) !important;background-color:var(--tabdarker) !important}.result-content,.result-source,.result-format{color:#a29ea2 !important}.table-striped tr td,.table-striped tr th{border-color:#13474a !important}.highlight{font-weight:700;background:#f8f8f8;background-color:transparent !important}.navbar{background:#1d1f21 none;border:none}.navbar .active,.menu{background:none !important}.label-default{background:0 0;color:#777277}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus,.nav-tabs.nav-justified>.active>a{background-color:var(--tabdarker) !important}.btn,.btn[disabled]{color:var(--btn);background-color:var(--btndarker);border:1px solid var(--btndarker)}.btn:hover{color:var(--btnlighter) !important;background-color:var(--btn) !important;border-color:var(--black)}.btn-primary.active{color:#c5c8c6;background-color:#5f89ac;border-color:#5f89ac}.panel{border:1px solid #111;background:0 0}.panel-heading{color:var(--panellighter) !important;background:var(--paneldarker) !important;border-bottom:none}.panel-body{color:var(--panellighter) !important;background:#011213 !important;border-color:#111 !important}p.btn.btn-default{background:0 0}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th,.table-striped>thead>tr:nth-child(odd)>th{background:var(--panel) none !important}.label-success{background:var(--supported) none !important}.label-danger{background:var(--notsupported) none !important}.searx-navbar{background:var(--navbar);height:2.3rem;font-size:1.3rem;line-height:1.3rem;padding:.5rem;font-weight:700;margin-bottom:.8rem}.searx-navbar a{margin-right:2rem;color:var(--navbarlighter) !important;text-decoration:none}.searx-navbar a:hover{margin-right:2rem;color:var(--navbarevenlighter) !important;text-decoration:none}.searx-navbar .instance a{color:#01d7d4;margin-left:2rem}#main-logo{margin-top:20vh;margin-bottom:25px}#main-logo>img{max-width:350px;width:80%}.onoffswitch-inner:before,.onoffswitch-inner:after{background:#1d1f21 none !important}.onoffswitch-switch,.onoffswitch-label{border:2px solid var(--btndarker) !important}.nav>li>a:hover,.nav>li>a:focus{background-color:var(--tab) !important}.img-thumbnail,.thumbnail{padding:0;line-height:1.42857143;background:0 0;border:none}.modal-content{background:#1d1f21 none !important}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background:var(--notsupported) !important;color:#c5c8c6 !important}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background:var(--notsupportedlighter) !important;color:#c5c8c6 !important}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background:var(--formdarker) !important}.btn-success{color:#c5c8c6;background:#449d44}.btn-danger{color:#c5c8c6;background:#d9534f}.well{background:var(--tabdarker);border-color:#2f0c1a}.result_header>a{color:var(--resultlink) !important}.result_header>a:hover{color:var(--resultlinkhover) !important} \ No newline at end of file diff --git a/beetroot_static/css/logicodev-dark_old.css b/beetroot_static/css/logicodev-dark_old.css deleted file mode 100644 index 8ce7da2..0000000 --- a/beetroot_static/css/logicodev-dark_old.css +++ /dev/null @@ -1,915 +0,0 @@ -:root { - --navbar: #50162D; - --navbarlighter: #994D6B; - --navbarevenlighter: #50162D; - --tab: #3C1122; - --tabdarker: #220813; - --tabevendarker: #310818; - --tablighter: #994D6B; - --tabbottom: #50162D; - --form: #727373; - --formdarker: #2b2929; - --formlighter: #777d7e; - --black: #130309; - --link: #771a3f; - --linklighter: #a2335d; - --btn: #105155; /* not used */ - --btndarker: #2b2929; - --btnlighter: #1c7277; - --panel: #041a1c; - --panellighter: #276266; - --paneldarker: #111f20; - --resultlink: #641d39; - --resultlinkhover: #994D6B; - --supported: #0a4625; - --notsupported: #4b0903; - --notsupportedlighter: #ac8986; -} - -* { - border-radius: 0 !important; -} -html { - position: relative; - min-height: 100%; - color: #29314d; -} - -body a { - color: #08c; -} - -.alert-info { - background-color: var(--notsupported); - border-color: var(--notsupported); - color: var(--notsupportedlighter); -} - -.alert-danger { - background-color: var(--notsupported); - border-color: var(--notsupported); - color: var(--notsupportedlighter); -} - -hr { - border-top: 1px solid var(--btnlighter); -} - -input[type="checkbox"]:checked + .label_hide_if_checked, -input[type="checkbox"]:checked + .label_hide_if_not_checked + .label_hide_if_checked { - display: none; -} -input[type="checkbox"]:not(:checked) + .label_hide_if_not_checked, -input[type="checkbox"]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked { - display: none; -} -.onoff-checkbox { - width: 15%; -} -.onoffswitch { - position: relative; - width: 110px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; -} -.onoffswitch-checkbox { - display: none; -} -.onoffswitch-label { - display: block; - overflow: hidden; - cursor: pointer; - border: 2px solid #fff !important; - border-radius: 50px !important; -} -.onoffswitch-inner { - display: block; - transition: margin 0.3s ease-in 0s; -} -.onoffswitch-inner:before, -.onoffswitch-inner:after { - display: block; - float: left; - width: 50%; - height: 30px; - padding: 0; - line-height: 40px; - font-size: 20px; - box-sizing: border-box; - content: ""; - background-color: #eee; -} -.onoffswitch-switch { - display: block; - width: 37px; - background-color: var(--btn); - position: absolute; - top: 0; - bottom: 0; - right: 0; - border: 2px solid #fff !important; - border-radius: 50px !important; - transition: all 0.3s ease-in 0s; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { - margin-right: 0; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { - right: 71px; - background-color: #a1a1a1; -} - - - -.result_header { - margin-top: 0; - margin-bottom: 2px; - font-size: 16px; -} -.result_header .favicon { - margin-bottom: -3px; -} -.result_header a { - color: var(--link); - text-decoration: none; -} -.result_header a:hover { - color: var(--linklighter); -} -.result_header a:visited { - color: #684898; -} -.result_header a .highlight { - background-color: #f6f9fa; -} -.result-content, -.result-format, -.result-source { - margin-top: 2px; - margin-bottom: 0; - word-wrap: break-word; - color: #666; - font-size: 13px; -} -.result-content .highlight, -.result-format .highlight, -.result-source .highlight { - font-weight: 700; -} -.result-source { - font-size: 10px; - float: left; -} -.result-format { - font-size: 10px; - float: right; -} -.external-link { - color: #135c5e; - font-size: 12px; - margin-bottom: 15px; -} -.external-link a { - margin-right: 3px; -} -.result-default, -.result-code, -.result-torrent, -.result-videos, -.result-map { - clear: both; - padding: 2px 4px; -} -.result-default:hover, -.result-code:hover, -.result-torrent:hover, -.result-videos:hover, -.result-map:hover { - background-color: var(--tabdarker); -} -.result-images { - float: left !important; - width: 24%; - margin: 0.5%; -} -.result-images a { - display: block; - width: 100%; - background-size: cover; -} -.img-thumbnail { - margin: 5px; - max-height: 128px; - min-height: 128px; -} -.result-videos { - clear: both; -} -.result-videos hr { - margin: 5px 0 15px 0; -} -.result-videos .collapse { - width: 100%; -} -.result-videos .in { - margin-bottom: 8px; -} -.result-torrent { - clear: both; -} -.result-torrent b { - margin-right: 5px; - margin-left: 5px; -} -.result-torrent .seeders { - color: #2ecc71; -} -.result-torrent .leechers { - color: #f35e77; -} -.result-map { - clear: both; -} -.result-code { - clear: both; -} -.result-code .code-fork, -.result-code .code-fork a { - color: #666; -} -.suggestion_item { - margin: 2px 5px; - max-width: 100%; -} -.suggestion_item .btn { - max-width: 100%; - white-space: normal; - word-wrap: break-word; - text-align: left; -} -.result_download { - margin-right: 5px; -} -#pagination { - margin-top: 30px; - padding-bottom: 60px; -} -.label-default { - color: #a4a4a4; - background: 0 0; -} - -.label { - color: #bfb9b9; -} - -.result .text-muted small { - word-wrap: break-word; -} -.modal-wrapper { - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -} -.modal-wrapper { - background-clip: padding-box; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - outline: 0 none; - position: relative; -} -.infobox .panel-heading { - background-color: #f6f9fa; -} -.infobox .panel-heading .panel-title { - font-weight: 700; -} -.infobox p { - font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important; - font-style: italic; -} -.infobox .btn { - background-color: #2ecc71; - border: none; -} -.infobox .btn a { - color: #fff; - margin: 5px; -} -.infobox .infobox_part { - margin-bottom: 20px; - word-wrap: break-word; - table-layout: fixed; -} -.infobox .infobox_part:last-child { - margin-bottom: 0; -} -.search_categories, -#categories { - text-transform: capitalize; - margin-bottom: 0.5rem; - display: flex; - flex-wrap: wrap; - flex-flow: row wrap; - align-content: stretch; -} -.search_categories label, -#categories label, -.search_categories .input-group-addon, -#categories .input-group-addon { - flex-grow: 1; - flex-basis: auto; - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #ddd 1px solid; - border-right: none; - color: #666; - padding-bottom: 0.4rem; - padding-top: 0.4rem; - text-align: center; - min-width: 50px; -} -.search_categories label:last-child, -#categories label:last-child, -.search_categories .input-group-addon:last-child, -#categories .input-group-addon:last-child { - border-right: #ddd 1px solid; -} -.search_categories input[type="checkbox"]:checked + label, -#categories input[type="checkbox"]:checked + label { - color: #29314d; - font-weight: 700; - border-bottom: #01d7d4 5px solid; -} -#main-logo { - margin-top: 10vh; - margin-bottom: 25px; -} -#main-logo > img { - max-width: 350px; - width: 80%; -} -#q { - box-shadow: none; - border-right: none; - border-color: var(--black); -} -#search_form .input-group-btn .btn { - border-color: var(--black); -} -#search_form .input-group-btn .btn:hover { - background-color: var(--btnlighter); - color: #fff; -} -.custom-select { - appearance: none; - -webkit-appearance: none; - -moz-appearance: none; - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #ddd 1px solid; - color: #666; - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAABFkAAARZAVnbJUkAAAAHdElNRQfgBxgLDwB20OFsAAAAbElEQVQY073OsQ3CMAAEwJMYwJGnsAehpoXJItltBkmcdZBYgIIiQoLglnz3ui+eP+bk5uneteTMZJa6OJuIqvYzSJoqwqBq8gdmTTW86/dghxAUq4xsVYT9laBYXCw93Aajh7GPEF23t4fkBYevGFTANkPRAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA3LTI0VDExOjU1OjU4KzAyOjAwRFqFOQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNy0yNFQxMToxNTowMCswMjowMP7RDgQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC) - 96% no-repeat; -} -.search-margin { - margin-bottom: 0.6em; -} -#advanced-search-container { - display: none; - text-align: left; - margin-bottom: 1rem; - clear: both; -} -#advanced-search-container label, -#advanced-search-container .input-group-addon { - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #ddd 1px solid; - border-right: none; - color: #666; - padding-bottom: 0.4rem; - padding-right: 0.7rem; - padding-left: 0.7rem; -} -#advanced-search-container label:last-child, -#advanced-search-container .input-group-addon:last-child { - border-right: #ddd 1px solid; -} -#advanced-search-container input[type="radio"] { - display: none; -} -#advanced-search-container input[type="radio"]:checked + label { - color: #29314d; - font-weight: 700; - border-bottom: #01d7d4 5px solid; -} -#check-advanced { - display: none; -} -#check-advanced:checked ~ #advanced-search-container { - display: block; -} -.advanced { - padding: 0; - margin-top: 0.3rem; - text-align: right; -} -.advanced label, -.advanced select { - cursor: pointer; -} -.cursor-text { - cursor: text !important; -} -.cursor-pointer { - cursor: pointer !important; -} -pre, -code { - font-family: "Ubuntu Mono", "Courier New", "Lucida Console", monospace !important; -} -.lineno { - margin-right: 5px; -} -.highlight .hll { - background-color: #ffc; -} - -.highlight .c { - color: #556366; - font-style: italic; -} -.highlight .err { - border: 1px solid #ffa92f; -} -.highlight .k { - color: #be74d5; - font-weight: 700; -} -.highlight .o { - color: #d19a66; -} -.highlight .cm { - color: #556366; - font-style: italic; -} -.highlight .cp { - color: #bc7a00; -} -.highlight .c1 { - color: #556366; - font-style: italic; -} -.highlight .cs { - color: #556366; - font-style: italic; -} -.highlight .gd { - color: #a00000; -} -.highlight .ge { - font-style: italic; -} -.highlight .gr { - color: red; -} -.highlight .gh { - color: navy; - font-weight: 700; -} -.highlight .gi { - color: #00a000; -} -.highlight .go { - color: #888; -} -.highlight .gp { - color: navy; - font-weight: 700; -} -.highlight .gs { - font-weight: 700; -} -.highlight .gu { - color: purple; - font-weight: 700; -} -.highlight .gt { - color: #04d; -} -.highlight .kc { - color: #be74d5; - font-weight: 700; -} -.highlight .kd { - color: #be74d5; - font-weight: 700; -} -.highlight .kn { - color: #be74d5; - font-weight: 700; -} -.highlight .kp { - color: #be74d5; -} -.highlight .kr { - color: #be74d5; - font-weight: 700; -} -.highlight .kt { - color: #d46c72; -} -.highlight .m { - color: #d19a66; -} -.highlight .s { - color: #86c372; -} -.highlight .na { - color: #7d9029; -} -.highlight .nb { - color: #be74d5; -} -.highlight .nc { - color: #61afef; - font-weight: 700; -} -.highlight .no { - color: #d19a66; -} -.highlight .nd { - color: #a2f; -} -.highlight .ni { - color: #999; - font-weight: 700; -} -.highlight .ne { - color: #d2413a; - font-weight: 700; -} -.highlight .nf { - color: #61afef; -} -.highlight .nl { - color: #a0a000; -} -.highlight .nn { - color: #61afef; - font-weight: 700; -} -.highlight .nt { - color: #be74d5; - font-weight: 700; -} -.highlight .nv { - color: #dfc06f; -} -.highlight .ow { - color: #a2f; - font-weight: 700; -} -.highlight .w { - color: #d7dae0; -} -.highlight .mf { - color: #d19a66; -} -.highlight .mh { - color: #d19a66; -} -.highlight .mi { - color: #d19a66; -} -.highlight .mo { - color: #d19a66; -} -.highlight .sb { - color: #86c372; -} -.highlight .sc { - color: #86c372; -} -.highlight .sd { - color: #86c372; - font-style: italic; -} -.highlight .s2 { - color: #86c372; -} -.highlight .se { - color: #b62; - font-weight: 700; -} -.highlight .sh { - color: #86c372; -} -.highlight .si { - color: #b68; - font-weight: 700; -} -.highlight .sx { - color: #be74d5; -} -.highlight .sr { - color: #b68; -} -.highlight .s1 { - color: #86c372; -} -.highlight .ss { - color: #dfc06f; -} -.highlight .bp { - color: #be74d5; -} -.highlight .vc { - color: #dfc06f; -} -.highlight .vg { - color: #dfc06f; -} -.highlight .vi { - color: #dfc06f; -} -.highlight .il { - color: #d19a66; -} -.highlight .lineno { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - color: #556366; -} -.highlight .lineno::selection { - background: 0 0; -} -.highlight .lineno::-moz-selection { - background: 0 0; -} -.highlight pre { - background-color: #282c34; - color: #d7dae0; - border: none; - margin-bottom: 25px; - font-size: 15px; - padding: 20px 10px; -} - -.table > tbody > tr > td, -.table > tbody > tr > th { - vertical-align: middle !important; -} -body { - background: var(--black) none !important; - color: var(--form) !important; -} - -a { - color: var(--link) !important; - text-decoration: none !important; -} -a:hover { - color: var(--linklighter) !important; -} - -.infobox_part > bdi > p > a { - color: var(--panellighter) !important; -} - -.infobox_part > bdi > p > a:hover { - color: var(--paneldarker) !important; -} - -.form-control { - background-color: var(--formdarker); - border: 1px solid var(--black); - color: var(--formlighter); -} - -.form-control[disabled], .form-control[readonly] { - cursor: not-allowed; - background-color: var(--formdarker); - opacity: 1; -} - -input:focus, -button:focus, -textarea:focus, -select:focus { - border: 1px solid var(--btnlighter) !important; - box-shadow: initial !important; -} -div#advanced-search-container div#categories label { - background: 0 0; - border: 1px solid #282a2e; -} -ul.nav li a { - border: 0 !important; - border-bottom: 1px solid var(--tabbottom) !important; -} -#categories *, -.modal-wrapper * { - background: var(--tab) none !important; - color: var(--tablighter) !important; -} -#categories * { - border: 1px solid var(--tabevendarker) !important; -} -#categories :checked + label { - border-bottom: 4px solid var(--tabbottom) !important; - background-color: var(--tabdarker) !important; -} -.result-content, -.result-source, -.result-format { - color: #a29ea2 !important; -} - -.table-striped tr td, -.table-striped tr th { - border-color: #13474A !important; -} -.highlight { - font-weight: 700; - background: #f8f8f8; - background-color: transparent !important; -} -.navbar { - background: #1d1f21 none; - border: none; -} -.navbar .active, -.menu { - background: none !important; -} -.label-default { - background: 0 0; - color: #777277; -} -.navbar-default .navbar-nav > .active > a, -.navbar-default .navbar-nav > .active > a:hover, -.navbar-default .navbar-nav > .active > a:focus, -.nav-tabs.nav-justified > .active > a { - background-color: #330a1a !important; -} - - -.btn, .btn[disabled] { - color: var(--btn); - background-color: var(--btndarker); - border: 1px solid var(--black); -} - -.btn:hover { - color: var(--btnlighter) !important; - background-color: var(--btn) !important; - border-color: var(--black); -} - -.btn-primary.active { - color: #c5c8c6; - background-color: #5f89ac; - border-color: #5f89ac; -} -.panel { - border: 1px solid #111; - background: 0 0; -} -.panel-heading { - color: var(--panellighter) !important; - background: var(--paneldarker) !important; - border-bottom: none; -} -.panel-body { - color: var(--panellighter) !important; - background: #011213 !important; - border-color: #111 !important; -} -p.btn.btn-default { - background: 0 0; -} -.table-striped > tbody > tr:nth-child(odd) > td, -.table-striped > tbody > tr:nth-child(odd) > th, -.table-striped > thead > tr:nth-child(odd) > th { - background: var(--panel) none !important; - /*color: var(--panellighter) !important;*/ -} - -.label-success { - background: var(--supported) none !important; -} -.label-danger { - background: var(--notsupported) none !important; -} -.searx-navbar { - background: var(--navbar); - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: 700; - margin-bottom: 0.8rem; -} -.searx-navbar a { - margin-right: 2rem; - color: var(--navbarlighter) !important; - text-decoration: none; -} - -.searx-navbar a:hover { - margin-right: 2rem; - color: var(--navbarevenlighter) !important; - text-decoration: none; -} -.searx-navbar .instance a { - color: #01d7d4; - margin-left: 2rem; -} -#main-logo { - margin-top: 20vh; - margin-bottom: 25px; -} -#main-logo > img { - max-width: 350px; - width: 80%; -} -.onoffswitch-inner:before, -.onoffswitch-inner:after { - background: #1d1f21 none !important; -} -.onoffswitch-switch, -.onoffswitch-label { - border: 2px solid var(--btndarker) !important; -} -.nav > li > a:hover, -.nav > li > a:focus { - background-color: var(--tabbottom) !important; -} -.img-thumbnail, -.thumbnail { - padding: 0; - line-height: 1.42857143; - background: 0 0; - border: none; -} -.modal-content { - background: #1d1f21 none !important; -} -.table > thead > tr > td.danger, -.table > tbody > tr > td.danger, -.table > tfoot > tr > td.danger, -.table > thead > tr > th.danger, -.table > tbody > tr > th.danger, -.table > tfoot > tr > th.danger, -.table > thead > tr.danger > td, -.table > tbody > tr.danger > td, -.table > tfoot > tr.danger > td, -.table > thead > tr.danger > th, -.table > tbody > tr.danger > th, -.table > tfoot > tr.danger > th { - background: var(--notsupported) !important; - color: #c5c8c6 !important; -} -.table-hover > tbody > tr > td.danger:hover, -.table-hover > tbody > tr > th.danger:hover, -.table-hover > tbody > tr.danger:hover > td, -.table-hover > tbody > tr:hover > .danger, -.table-hover > tbody > tr.danger:hover > th { - background: var(--black) !important; - color: #c5c8c6 !important; -} -.table-hover > tbody > tr:hover > td, -.table-hover > tbody > tr:hover > th { - background: var(--formdarker) !important; -} -.btn-success { - color: #c5c8c6; - background: #449d44; -} -.btn-danger { - color: #c5c8c6; - background: #d9534f; -} -.well { - background: var(--tabdarker); - border-color: #2f0c1a; -} - -.result_header > a { - color: var(--resultlink) !important; -} - -.result_header > a:hover { - color: var(--resultlinkhover) !important; -} diff --git a/beetroot_static/css/logicodev.css b/beetroot_static/css/logicodev.css deleted file mode 100644 index 0ac6686..0000000 --- a/beetroot_static/css/logicodev.css +++ /dev/null @@ -1,770 +0,0 @@ -.form-control::placeholder { - color: #A27A8A; -} - -.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover { - color: #50162D; - background-color: #fff; - border: 1px solid #ddd; - border-bottom-color: transparent; - cursor: default; -} - -a:focus, a:hover { - color: #476202; -} - -.alert-info { - background-color: #8EB726; - border-color: #57750A; - color: #2B3511; -} - -.form-control:focus { - border-color: #50162D; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(96, 11, 70, 0.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(96, 11, 70, 0.6); -} - -.btn-primary { - color: #fff; - background-color: #1f5c60; - border-color: #0a494d; -} - -.btn-primary.active, .btn-primary:active, .btn-primary:focus, .btn-primary:hover, .open > .dropdown-toggle.btn-primary { - color: #fff; - background-color: #429ea4; - border-color: #30898f; -} - -.btn-default.active, .btn-default:active, .btn-default:focus, .btn-default:hover, .open > .dropdown-toggle.btn-default { - color: #333; - background-color: #e3edee; - border-color: #b4c4c6; -} - -.nav > li > a:focus, .nav > li > a:hover { - text-decoration: none; - background-color: #F3F5ED; -} - -.searx-navbar { - background: #50162d; - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: 700; - margin-bottom: 0.8rem; -} -.searx-navbar a, -.searx-navbar a:hover { - margin-right: 2rem; - color: #fff; - text-decoration: none; -} -.searx-navbar .instance a { - color: #FFF4F8; - margin-left: 2rem; -} -#main-logo { - margin-top: 20vh; - margin-bottom: 25px; -} -#main-logo > img { - max-width: 350px; - width: 80%; -} -* { - border-radius: 0 !important; -} -html { - position: relative; - min-height: 100%; - color: #29314d; -} -body { - font-family: Roboto, Helvetica, Arial, sans-serif; - margin-bottom: 80px; - background-color: #fff; - color: #50162D; -} -body a { - color: #65880E; -} - -.footer { - position: absolute; - bottom: 0; - width: 100%; - height: 60px; - text-align: center; - color: #999; -} -input[type="checkbox"]:checked + .label_hide_if_checked, -input[type="checkbox"]:checked + .label_hide_if_not_checked + .label_hide_if_checked { - display: none; -} -input[type="checkbox"]:not(:checked) + .label_hide_if_not_checked, -input[type="checkbox"]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked { - display: none; -} -.onoff-checkbox { - width: 15%; -} -.onoffswitch { - position: relative; - width: 110px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; -} -.onoffswitch-checkbox { - opacity: 0; - position: absolute; -} -.onoffswitch-checkbox:before { - content: ""; - display: inline-block; - width: 16px; - height: 16px; - margin-right: 10px; - position: absolute; - left: 0; - bottom: 1px; - background-color: #fff; - border: 1px solid #ccc; - border-radius: 0px; -} -.onoffswitch-label { - display: block; - overflow: hidden; - cursor: pointer; - border: 2px solid #fff !important; - border-radius: 50px !important; -} -.onoffswitch-inner { - display: block; - transition: margin 0.3s ease-in 0s; -} -.onoffswitch-inner:before, -.onoffswitch-inner:after { - display: block; - float: left; - width: 50%; - height: 30px; - padding: 0; - line-height: 40px; - font-size: 20px; - box-sizing: border-box; - content: ""; - background-color: #eee; -} -.onoffswitch-switch { - display: block; - width: 37px; - background-color: #50162D; - position: absolute; - top: 0; - bottom: 0; - right: 0; - border: 2px solid #fff; - border-radius: 50px !important; - transition: all 0.3s ease-in 0s; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { - margin-right: 0; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { - right: 71px; - background-color: #a1a1a1; -} -.onoffswitch-checkbox:focus + .onoffswitch-label .onoffswitch-switch { - border: 3px solid #444444; -} -.result_header { - margin-top: 0; - margin-bottom: 2px; - font-size: 16px; -} -.result_header .favicon { - margin-bottom: -3px; -} -.result_header a { - color: #50162d; - text-decoration: none; -} -.result_header a:hover { - color: #C22865; -} -.result_header a:visited { - color: #684898; -} -.result_header a .highlight { - background-color: #fdeef4; -} -.result-content, -.result-format, -.result-source { - margin-top: 2px; - margin-bottom: 0; - word-wrap: break-word; - color: #3E2A32; - font-size: 13px; -} -.result-content .highlight, -.result-format .highlight, -.result-source .highlight { - font-weight: 700; -} -.result-source { - font-size: 10px; - float: left; -} -.result-format { - font-size: 10px; - float: right; -} -.external-link { - color: #8EB726; - font-size: 12px; - margin-bottom: 15px; -} -.external-link a { - margin-right: 3px; -} -.result-default, -.result-code, -.result-torrent, -.result-videos, -.result-map { - clear: both; - padding: 0.5em 4px; -} -.result-default:hover, -.result-code:hover, -.result-torrent:hover, -.result-videos:hover, -.result-map:hover { - background-color: #FBFFF1; -} -.result-images { - float: left !important; - width: 24%; - margin: 0.5%; -} -.result-images a { - display: block; - width: 100%; - background-size: cover; -} -.img-thumbnail { - margin: 5px; - max-height: 128px; - min-height: 128px; -} -.result-videos { - clear: both; -} -.result-videos hr { - margin: 5px 0 15px 0; -} -.result-videos .collapse { - width: 100%; -} -.result-videos .in { - margin-bottom: 8px; -} -.result-torrent { - clear: both; -} -.result-torrent b { - margin-right: 5px; - margin-left: 5px; -} -.result-torrent .seeders { - color: #2ecc71; -} -.result-torrent .leechers { - color: #f35e77; -} -.result-map { - clear: both; -} -.result-code { - clear: both; -} -.result-code .code-fork, -.result-code .code-fork a { - color: #666; -} -.suggestion_item { - margin: 2px 5px; - max-width: 100%; -} -.suggestion_item .btn { - max-width: 100%; - white-space: normal; - word-wrap: break-word; - text-align: left; -} -.result_download { - margin-right: 5px; -} -#pagination { - margin-top: 30px; - padding-bottom: 60px; -} -.label-default { - color: #666666; - background: 0 0; -} -.result .text-muted small { - word-wrap: break-word; -} -.modal-wrapper { - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -} -.modal-wrapper { - background-clip: padding-box; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - outline: 0 none; - position: relative; -} -@media screen and (max-width: 75em) { - .img-thumbnail { - object-fit: cover; - } -} -.infobox .panel-heading { - background-color: #1F5C60; - color: #fff; -} -.infobox .panel-heading .panel-title { - font-weight: 700; -} -.infobox p { - font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important; - font-style: italic; -} -.infobox .btn { - background-color: #1F5C60; - border: none; -} -.infobox .btn a { - color: #fff; - margin: 5px; -} -.infobox .infobox_part { - margin-bottom: 20px; - word-wrap: break-word; - table-layout: fixed; -} -.infobox .infobox_part:last-child { - margin-bottom: 0; -} -.search_categories, -#categories { - text-transform: capitalize; - margin-bottom: 0.5rem; - display: flex; - flex-wrap: wrap; - flex-flow: row wrap; - align-content: stretch; -} -.search_categories label, -#categories label, -.search_categories .input-group-addon, -#categories .input-group-addon { - flex-grow: 1; - flex-basis: auto; - font-size: 1.2rem; - font-weight: 400; - background-color: #50162D; - border: #50162D 1px solid; - border-right: none; - color: #FBB9D7; - padding-bottom: 0.4rem; - padding-top: 0.4rem; - text-align: center; - min-width: 50px; -} -.search_categories label:last-child, -#categories label:last-child, -.search_categories .input-group-addon:last-child, -#categories .input-group-addon:last-child { - border-right: #ddd 1px solid; -} -.search_categories input[type="checkbox"]:checked + label, -#categories input[type="checkbox"]:checked + label { - color: #FFF6FA; - font-weight: 700; - border-bottom: #7b2c4c 5px solid; - background-color: #260512; -} -#main-logo { - margin-top: 10vh; - margin-bottom: 25px; -} -#main-logo > img { - max-width: 350px; - width: 80%; -} -#q { - box-shadow: none; - border-right: none; - border-color: #A27A8A; -} -#search_form .input-group-btn .btn { - border-color: #A27A8A; -} -#search_form .input-group-btn .btn:hover { - background-color: #50162D; - color: #fff; -} -.custom-select { - appearance: none; - -webkit-appearance: none; - -moz-appearance: none; - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #888888 1px solid; - color: #A04D6E; - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAABFkAAARZAVnbJUkAAAAHdElNRQfgBxgLDwB20OFsAAAAbElEQVQY073OsQ3CMAAEwJMYwJGnsAehpoXJItltBkmcdZBYgIIiQoLglnz3ui+eP+bk5uneteTMZJa6OJuIqvYzSJoqwqBq8gdmTTW86/dghxAUq4xsVYT9laBYXCw93Aajh7GPEF23t4fkBYevGFTANkPRAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA3LTI0VDExOjU1OjU4KzAyOjAwRFqFOQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNy0yNFQxMToxNTowMCswMjowMP7RDgQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC) - 96% no-repeat; -} -.search-margin { - margin-bottom: 0.6em; -} -.visually-hidden { - position: absolute !important; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px 1px 1px 1px); - /* IE6, IE7 */ - clip: rect(1px, 1px, 1px, 1px); - white-space: nowrap; - /* added line */ -} -.label-danger, -.btn-danger { - background: #c9432f; -} -.label-success, -.btn-success { - background: #068922; -} -select.form-control { - border-color: #888888 !important; -} -#advanced-search-container { - display: none; - text-align: left; - margin-bottom: 1rem; - clear: both; -} -#advanced-search-container label, -#advanced-search-container .input-group-addon { - font-size: 1.2rem; - font-weight: 400; - background-color: #fff; - border: #e1c4cf 1px solid; - border-right: none; - color: #50162d; - padding-bottom: 0.4rem; - padding-right: 0.7rem; - padding-left: 0.7rem; -} -#advanced-search-container label:last-child, -#advanced-search-container .input-group-addon:last-child { - border-right: #ddd 1px solid; -} -#advanced-search-container input[type="radio"] { - display: none; -} -#advanced-search-container input[type="radio"]:checked + label { - color: #29314d; - font-weight: 700; - border-bottom: #01d7d4 5px solid; -} -#check-advanced:focus + label { - text-decoration: underline; -} -#check-advanced:checked ~ #advanced-search-container { - display: block; -} -.advanced { - padding: 0; - margin-top: 0.3rem; - text-align: right; -} -.advanced label, -.advanced select { - cursor: pointer; -} -.cursor-text { - cursor: text !important; -} -.cursor-pointer { - cursor: pointer !important; -} -pre, -code { - font-family: "Ubuntu Mono", "Courier New", "Lucida Console", monospace !important; -} -.lineno { - margin-right: 5px; -} -.highlight .hll { - background-color: #ffc; -} -.highlight { - background: #fff1f7; -} -.highlight .c { - color: #556366; - font-style: italic; -} -.highlight .err { - border: 1px solid #ffa92f; -} -.highlight .k { - color: #be74d5; - font-weight: 700; -} -.highlight .o { - color: #d19a66; -} -.highlight .cm { - color: #556366; - font-style: italic; -} -.highlight .cp { - color: #bc7a00; -} -.highlight .c1 { - color: #556366; - font-style: italic; -} -.highlight .cs { - color: #556366; - font-style: italic; -} -.highlight .gd { - color: #a00000; -} -.highlight .ge { - font-style: italic; -} -.highlight .gr { - color: red; -} -.highlight .gh { - color: navy; - font-weight: 700; -} -.highlight .gi { - color: #00a000; -} -.highlight .go { - color: #888; -} -.highlight .gp { - color: navy; - font-weight: 700; -} -.highlight .gs { - font-weight: 700; -} -.highlight .gu { - color: purple; - font-weight: 700; -} -.highlight .gt { - color: #04d; -} -.highlight .kc { - color: #be74d5; - font-weight: 700; -} -.highlight .kd { - color: #be74d5; - font-weight: 700; -} -.highlight .kn { - color: #be74d5; - font-weight: 700; -} -.highlight .kp { - color: #be74d5; -} -.highlight .kr { - color: #be74d5; - font-weight: 700; -} -.highlight .kt { - color: #d46c72; -} -.highlight .m { - color: #d19a66; -} -.highlight .s { - color: #86c372; -} -.highlight .na { - color: #7d9029; -} -.highlight .nb { - color: #be74d5; -} -.highlight .nc { - color: #61afef; - font-weight: 700; -} -.highlight .no { - color: #d19a66; -} -.highlight .nd { - color: #a2f; -} -.highlight .ni { - color: #999; - font-weight: 700; -} -.highlight .ne { - color: #d2413a; - font-weight: 700; -} -.highlight .nf { - color: #61afef; -} -.highlight .nl { - color: #a0a000; -} -.highlight .nn { - color: #61afef; - font-weight: 700; -} -.highlight .nt { - color: #be74d5; - font-weight: 700; -} -.highlight .nv { - color: #dfc06f; -} -.highlight .ow { - color: #a2f; - font-weight: 700; -} -.highlight .w { - color: #d7dae0; -} -.highlight .mf { - color: #d19a66; -} -.highlight .mh { - color: #d19a66; -} -.highlight .mi { - color: #d19a66; -} -.highlight .mo { - color: #d19a66; -} -.highlight .sb { - color: #86c372; -} -.highlight .sc { - color: #86c372; -} -.highlight .sd { - color: #86c372; - font-style: italic; -} -.highlight .s2 { - color: #86c372; -} -.highlight .se { - color: #b62; - font-weight: 700; -} -.highlight .sh { - color: #86c372; -} -.highlight .si { - color: #b68; - font-weight: 700; -} -.highlight .sx { - color: #be74d5; -} -.highlight .sr { - color: #b68; -} -.highlight .s1 { - color: #86c372; -} -.highlight .ss { - color: #dfc06f; -} -.highlight .bp { - color: #be74d5; -} -.highlight .vc { - color: #dfc06f; -} -.highlight .vg { - color: #dfc06f; -} -.highlight .vi { - color: #dfc06f; -} -.highlight .il { - color: #d19a66; -} -.highlight .lineno { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - color: #556366; -} -.highlight .lineno::selection { - background: 0 0; -} -.highlight .lineno::-moz-selection { - background: 0 0; -} -.highlight pre { - background-color: #282c34; - color: #d7dae0; - border: none; - margin-bottom: 25px; - font-size: 15px; - padding: 20px 10px; -} -.highlight { - font-weight: 700; -} -.table > tbody > tr > td, -.table > tbody > tr > th { - vertical-align: middle !important; -} -.nav-tabs.nav-justified { - margin-bottom: 20px; -} -p { - margin: 10px 0; -} -input.cursor-text { - margin: 10px 0; -} diff --git a/beetroot_static/css/logicodev.min.css b/beetroot_static/css/logicodev.min.css deleted file mode 100644 index fc5bd6e..0000000 --- a/beetroot_static/css/logicodev.min.css +++ /dev/null @@ -1 +0,0 @@ -.form-control::placeholder{color:#a27a8a}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#50162d;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}a:focus,a:hover{color:#476202}.alert-info{background-color:#8eb726;border-color:#57750a;color:#2b3511}.form-control:focus{border-color:#50162d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(96,11,70,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(96,11,70,0.6)}.btn-primary{color:#fff;background-color:#1f5c60;border-color:#0a494d}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#429ea4;border-color:#30898f}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e3edee;border-color:#b4c4c6}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#f3f5ed}.searx-navbar{background:#50162d;height:2.3rem;font-size:1.3rem;line-height:1.3rem;padding:.5rem;font-weight:700;margin-bottom:.8rem}.searx-navbar a,.searx-navbar a:hover{margin-right:2rem;color:#fff;text-decoration:none}.searx-navbar .instance a{color:#fff4f8;margin-left:2rem}#main-logo{margin-top:20vh;margin-bottom:25px}#main-logo>img{max-width:350px;width:80%}*{border-radius:0 !important}html{position:relative;min-height:100%;color:#29314d}body{font-family:Roboto,Helvetica,Arial,sans-serif;margin-bottom:80px;background-color:#fff;color:#50162d}body a{color:#65880e}.footer{position:absolute;bottom:0;width:100%;height:60px;text-align:center;color:#999}input[type="checkbox"]:checked+.label_hide_if_checked,input[type="checkbox"]:checked+.label_hide_if_not_checked+.label_hide_if_checked{display:none}input[type="checkbox"]:not(:checked)+.label_hide_if_not_checked,input[type="checkbox"]:not(:checked)+.label_hide_if_checked+.label_hide_if_not_checked{display:none}.onoff-checkbox{width:15%}.onoffswitch{position:relative;width:110px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.onoffswitch-checkbox{opacity:0;position:absolute}.onoffswitch-checkbox:before{content:"";display:inline-block;width:16px;height:16px;margin-right:10px;position:absolute;left:0;bottom:1px;background-color:#fff;border:1px solid #ccc;border-radius:0}.onoffswitch-label{display:block;overflow:hidden;cursor:pointer;border:2px solid #fff !important;border-radius:50px !important}.onoffswitch-inner{display:block;transition:margin .3s ease-in 0s}.onoffswitch-inner:before,.onoffswitch-inner:after{display:block;float:left;width:50%;height:30px;padding:0;line-height:40px;font-size:20px;box-sizing:border-box;content:"";background-color:#eee}.onoffswitch-switch{display:block;width:37px;background-color:#50162d;position:absolute;top:0;bottom:0;right:0;border:2px solid #fff;border-radius:50px !important;transition:all .3s ease-in 0s}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner{margin-right:0}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch{right:71px;background-color:#a1a1a1}.onoffswitch-checkbox:focus+.onoffswitch-label .onoffswitch-switch{border:3px solid #444}.result_header{margin-top:0;margin-bottom:2px;font-size:16px}.result_header .favicon{margin-bottom:-3px}.result_header a{color:#50162d;text-decoration:none}.result_header a:hover{color:#c22865}.result_header a:visited{color:#684898}.result_header a .highlight{background-color:#fdeef4}.result-content,.result-format,.result-source{margin-top:2px;margin-bottom:0;word-wrap:break-word;color:#3e2a32;font-size:13px}.result-content .highlight,.result-format .highlight,.result-source .highlight{font-weight:700}.result-source{font-size:10px;float:left}.result-format{font-size:10px;float:right}.external-link{color:#8eb726;font-size:12px;margin-bottom:15px}.external-link a{margin-right:3px}.result-default,.result-code,.result-torrent,.result-videos,.result-map{clear:both;padding:.5em 4px}.result-default:hover,.result-code:hover,.result-torrent:hover,.result-videos:hover,.result-map:hover{background-color:#fbfff1}.result-images{float:left !important;width:24%;margin:.5%}.result-images a{display:block;width:100%;background-size:cover}.img-thumbnail{margin:5px;max-height:128px;min-height:128px}.result-videos{clear:both}.result-videos hr{margin:5px 0 15px 0}.result-videos .collapse{width:100%}.result-videos .in{margin-bottom:8px}.result-torrent{clear:both}.result-torrent b{margin-right:5px;margin-left:5px}.result-torrent .seeders{color:#2ecc71}.result-torrent .leechers{color:#f35e77}.result-map{clear:both}.result-code{clear:both}.result-code .code-fork,.result-code .code-fork a{color:#666}.suggestion_item{margin:2px 5px;max-width:100%}.suggestion_item .btn{max-width:100%;white-space:normal;word-wrap:break-word;text-align:left}.result_download{margin-right:5px}#pagination{margin-top:30px;padding-bottom:60px}.label-default{color:#666;background:0 0}.result .text-muted small{word-wrap:break-word}.modal-wrapper{box-shadow:0 5px 15px rgba(0,0,0,0.5)}.modal-wrapper{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,0.2);border-radius:6px;box-shadow:0 3px 9px rgba(0,0,0,0.5);outline:0 none;position:relative}@media screen and (max-width:75em){.img-thumbnail{object-fit:cover}}.infobox .panel-heading{background-color:#1f5c60;color:#fff}.infobox .panel-heading .panel-title{font-weight:700}.infobox p{font-family:"DejaVu Serif",Georgia,Cambria,"Times New Roman",Times,serif !important;font-style:italic}.infobox .btn{background-color:#1f5c60;border:none}.infobox .btn a{color:#fff;margin:5px}.infobox .infobox_part{margin-bottom:20px;word-wrap:break-word;table-layout:fixed}.infobox .infobox_part:last-child{margin-bottom:0}.search_categories,#categories{text-transform:capitalize;margin-bottom:.5rem;display:flex;flex-wrap:wrap;flex-flow:row wrap;align-content:stretch}.search_categories label,#categories label,.search_categories .input-group-addon,#categories .input-group-addon{flex-grow:1;flex-basis:auto;font-size:1.2rem;font-weight:400;background-color:#50162d;border:#50162d 1px solid;border-right:none;color:#fbb9d7;padding-bottom:.4rem;padding-top:.4rem;text-align:center;min-width:50px}.search_categories label:last-child,#categories label:last-child,.search_categories .input-group-addon:last-child,#categories .input-group-addon:last-child{border-right:#ddd 1px solid}.search_categories input[type="checkbox"]:checked+label,#categories input[type="checkbox"]:checked+label{color:#fff6fa;font-weight:700;border-bottom:#7b2c4c 5px solid;background-color:#260512}#main-logo{margin-top:10vh;margin-bottom:25px}#main-logo>img{max-width:350px;width:80%}#q{box-shadow:none;border-right:none;border-color:#a27a8a}#search_form .input-group-btn .btn{border-color:#a27a8a}#search_form .input-group-btn .btn:hover{background-color:#50162d;color:#fff}.custom-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;font-size:1.2rem;font-weight:400;background-color:#fff;border:#888 1px solid;color:#a04d6e;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAABFkAAARZAVnbJUkAAAAHdElNRQfgBxgLDwB20OFsAAAAbElEQVQY073OsQ3CMAAEwJMYwJGnsAehpoXJItltBkmcdZBYgIIiQoLglnz3ui+eP+bk5uneteTMZJa6OJuIqvYzSJoqwqBq8gdmTTW86/dghxAUq4xsVYT9laBYXCw93Aajh7GPEF23t4fkBYevGFTANkPRAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA3LTI0VDExOjU1OjU4KzAyOjAwRFqFOQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNy0yNFQxMToxNTowMCswMjowMP7RDgQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC) 96% no-repeat}.search-margin{margin-bottom:.6em}.visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}.label-danger,.btn-danger{background:#c9432f}.label-success,.btn-success{background:#068922}select.form-control{border-color:#888 !important}#advanced-search-container{display:none;text-align:left;margin-bottom:1rem;clear:both}#advanced-search-container label,#advanced-search-container .input-group-addon{font-size:1.2rem;font-weight:400;background-color:#fff;border:#e1c4cf 1px solid;border-right:none;color:#50162d;padding-bottom:.4rem;padding-right:.7rem;padding-left:.7rem}#advanced-search-container label:last-child,#advanced-search-container .input-group-addon:last-child{border-right:#ddd 1px solid}#advanced-search-container input[type="radio"]{display:none}#advanced-search-container input[type="radio"]:checked+label{color:#29314d;font-weight:700;border-bottom:#01d7d4 5px solid}#check-advanced:focus+label{text-decoration:underline}#check-advanced:checked~#advanced-search-container{display:block}.advanced{padding:0;margin-top:.3rem;text-align:right}.advanced label,.advanced select{cursor:pointer}.cursor-text{cursor:text !important}.cursor-pointer{cursor:pointer !important}pre,code{font-family:"Ubuntu Mono","Courier New","Lucida Console",monospace !important}.lineno{margin-right:5px}.highlight .hll{background-color:#ffc}.highlight{background:#fff1f7}.highlight .c{color:#556366;font-style:italic}.highlight .err{border:1px solid #ffa92f}.highlight .k{color:#be74d5;font-weight:700}.highlight .o{color:#d19a66}.highlight .cm{color:#556366;font-style:italic}.highlight .cp{color:#bc7a00}.highlight .c1{color:#556366;font-style:italic}.highlight .cs{color:#556366;font-style:italic}.highlight .gd{color:#a00000}.highlight .ge{font-style:italic}.highlight .gr{color:#f00}.highlight .gh{color:#000080;font-weight:700}.highlight .gi{color:#00a000}.highlight .go{color:#888}.highlight .gp{color:#000080;font-weight:700}.highlight .gs{font-weight:700}.highlight .gu{color:#800080;font-weight:700}.highlight .gt{color:#04d}.highlight .kc{color:#be74d5;font-weight:700}.highlight .kd{color:#be74d5;font-weight:700}.highlight .kn{color:#be74d5;font-weight:700}.highlight .kp{color:#be74d5}.highlight .kr{color:#be74d5;font-weight:700}.highlight .kt{color:#d46c72}.highlight .m{color:#d19a66}.highlight .s{color:#86c372}.highlight .na{color:#7d9029}.highlight .nb{color:#be74d5}.highlight .nc{color:#61afef;font-weight:700}.highlight .no{color:#d19a66}.highlight .nd{color:#a2f}.highlight .ni{color:#999;font-weight:700}.highlight .ne{color:#d2413a;font-weight:700}.highlight .nf{color:#61afef}.highlight .nl{color:#a0a000}.highlight .nn{color:#61afef;font-weight:700}.highlight .nt{color:#be74d5;font-weight:700}.highlight .nv{color:#dfc06f}.highlight .ow{color:#a2f;font-weight:700}.highlight .w{color:#d7dae0}.highlight .mf{color:#d19a66}.highlight .mh{color:#d19a66}.highlight .mi{color:#d19a66}.highlight .mo{color:#d19a66}.highlight .sb{color:#86c372}.highlight .sc{color:#86c372}.highlight .sd{color:#86c372;font-style:italic}.highlight .s2{color:#86c372}.highlight .se{color:#b62;font-weight:700}.highlight .sh{color:#86c372}.highlight .si{color:#b68;font-weight:700}.highlight .sx{color:#be74d5}.highlight .sr{color:#b68}.highlight .s1{color:#86c372}.highlight .ss{color:#dfc06f}.highlight .bp{color:#be74d5}.highlight .vc{color:#dfc06f}.highlight .vg{color:#dfc06f}.highlight .vi{color:#dfc06f}.highlight .il{color:#d19a66}.highlight .lineno{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;color:#556366}.highlight .lineno::selection{background:0 0}.highlight .lineno::-moz-selection{background:0 0}.highlight pre{background-color:#282c34;color:#d7dae0;border:none;margin-bottom:25px;font-size:15px;padding:20px 10px}.highlight{font-weight:700}.table>tbody>tr>td,.table>tbody>tr>th{vertical-align:middle !important}.nav-tabs.nav-justified{margin-bottom:20px}p{margin:10px 0}input.cursor-text{margin:10px 0} \ No newline at end of file diff --git a/beetroot_static/css/pointhi.css b/beetroot_static/css/pointhi.css deleted file mode 100644 index e60c2ea..0000000 --- a/beetroot_static/css/pointhi.css +++ /dev/null @@ -1,657 +0,0 @@ -:root { - --navbar: #50162D; - --navbarlighter: #F0C8D8; - --navbarevenlighter: #fff; - --tab: #50162D; - --tabdarker: #260512; - --tabevendarker: #081011; - --tablighter: #FBB9D7; - --tabevenlighter: #FDF6F9; - --tabbottom: #053539; - --link: #50162D; - --linklighter: #C22865; - --btn: #fafdf3; - --btndarker: #92b73c; - --btnlighter: #b9e34c; - --resultlink: #8EB726; - --resultlinkhover: #863957; - --resultbackground: #FBFFF1; - --notsupported: #8EB726; - --notsupportedlighter: #60201a; - --notsupportedevenlighter: #fff; -} - -html { - position: relative; - min-height: 100%; -} -body { - /* Margin bottom by footer height */ - margin-bottom: 80px; -} - -a { - color: var(--link) -} - -a:hover { - color: var(--linklighter) -} - -.alert-info { - background-color: var(--notsupported); - border-color: var(--notsupported); - color: var(--notsupportedevenlighter); -} - -.alert-danger { - background-color: var(--notsupported); - border-color: var(--notsupported); - color: var(--notsupportedevenlighter); -} - -.nav > li > a:focus, .nav > li > a:hover { - text-decoration: none; - background-color: var(--tabevenlighter); -} - -.result-default:hover, .result-code:hover, .result-torrent:hover, .result-videos:hover, .result-map:hover { - background-color: var(--resultbackground); -} - -.form-control:focus { - border-color: var(--tab); - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(113, 11, 87, 0.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(113, 11, 87, 0.6); -} - - -.btn, .btn[disabled] { - color: var(--btndarker); - background-color: var(--btn); - border: 1px solid var(--btndarker); -} - -.btn:hover { - color: var(--btnlighter) !important; - background-color: var(--btndarker) !important; - border-color: var(--btndarker); -} -.external-link { - color: var(--resultlink); - font-size: 12px; - margin-bottom: 15px; -} - -.footer { - position: absolute; - bottom: 0; - width: 100%; - /* Set the fixed height of the footer here */ - height: 60px; -} -input[type=checkbox]:checked + .label_hide_if_checked, -input[type=checkbox]:checked + .label_hide_if_not_checked + .label_hide_if_checked { - display: none; -} -input[type=checkbox]:not(:checked) + .label_hide_if_not_checked, -input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked { - display: none; -} -.onoff-checkbox { - width: 15%; -} -.onoffswitch { - position: relative; - width: 110px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; -} -.onoffswitch-checkbox { - display: none; -} -.onoffswitch-label { - display: block; - overflow: hidden; - cursor: pointer; - border: 2px solid #FFFFFF !important; - border-radius: 50px !important; -} -.onoffswitch-inner { - display: block; - transition: margin 0.3s ease-in 0s; -} -.onoffswitch-inner:before, -.onoffswitch-inner:after { - display: block; - float: left; - width: 50%; - height: 30px; - padding: 0; - line-height: 40px; - font-size: 20px; - box-sizing: border-box; - content: ""; - background-color: #EEEEEE; -} -.onoffswitch-switch { - display: block; - width: 37px; - background-color: var(--tab); - position: absolute; - top: 0; - bottom: 0; - right: 0px; - border: 2px solid #FFFFFF !important; - border-radius: 50px !important; - transition: all 0.3s ease-in 0s; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { - margin-right: 0; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { - right: 71px; - background-color: #A1A1A1; -} -.result_header { - margin-bottom: 5px; - margin-top: 20px; -} -.result_header .favicon { - margin-bottom: -3px; -} -.result_header a { - vertical-align: bottom; -} -.result_header a .highlight { - font-weight: bold; -} -.result-content { - margin-top: 5px; - word-wrap: break-word; -} -.result-content .highlight { - font-weight: bold; -} -.result-default { - clear: both; -} -.result-images { - float: left !important; - height: 138px; -} -.img-thumbnail { - margin: 5px; - max-height: 128px; -} -.result-videos { - clear: both; -} -.result-torrents { - clear: both; -} -.result-map { - clear: both; -} -.result-code { - clear: both; -} -.suggestion_item { - margin: 2px 5px; - max-width: 100%; -} -.suggestion_item .btn { - max-width: 100%; - white-space: normal; - word-wrap: break-word; - text-align: left; -} -.result_download { - margin-right: 5px; -} -#pagination { - margin-top: 30px; - padding-bottom: 50px; -} -.label-default { - color: #AAA; - background: 0 0; -} - - - -.result .text-muted small { - word-wrap: break-word; -} -.modal-wrapper { - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -} -.modal-wrapper { - background-clip: padding-box; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - outline: 0 none; - position: relative; -} -.infobox .infobox_part { - margin-bottom: 20px; - word-wrap: break-word; - table-layout: fixed; -} -.infobox .infobox_part:last-child { - margin-bottom: 0; -} -.search_categories, -#categories { - text-transform: capitalize; - margin-bottom: 1.5rem; - margin-top: 1.5rem; - display: flex; - flex-wrap: wrap; - align-content: stretch; -} -.search_categories label, -#categories label, -.search_categories .input-group-addon, -#categories .input-group-addon { - flex-grow: 1; - flex-basis: auto; - font-size: 1.3rem; - font-weight: normal; - background-color: white; - border: #DDD 1px solid; - border-right: none; - color: #333; - padding-bottom: 0.8rem; - padding-top: 0.8rem; - text-align: center; - min-width: 50px; -} -.search_categories label:last-child, -#categories label:last-child, -.search_categories .input-group-addon:last-child, -#categories .input-group-addon:last-child { - border-right: #DDD 1px solid; -} -.search_categories input[type="checkbox"]:checked + label, -#categories input[type="checkbox"]:checked + label { - color: #eee; - font-weight: bold; - background-color: var(--tab); -} -#advanced-search-container { - display: none; - text-align: center; - margin-bottom: 1rem; - clear: both; -} -#advanced-search-container label, -#advanced-search-container .input-group-addon { - font-size: 1.3rem; - font-weight: normal; - background-color: white; - border: #DDD 1px solid; - border-right: none; - color: #333; - padding-bottom: 0.8rem; - padding-left: 1.2rem; - padding-right: 1.2rem; -} -#advanced-search-container label:last-child, -#advanced-search-container .input-group-addon:last-child { - border-right: #DDD 1px solid; -} -#advanced-search-container input[type="radio"] { - display: none; -} -#advanced-search-container input[type="radio"]:checked + label { - color: black; - font-weight: bold; - background-color: #EEE; -} -#check-advanced { - display: none; -} -#check-advanced:checked ~ #advanced-search-container { - display: block; -} -.advanced { - padding: 0; - margin-top: 0.3rem; - text-align: right; -} -.advanced label, -.advanced select { - cursor: pointer; -} -.cursor-text { - cursor: text !important; -} -.cursor-pointer { - cursor: pointer !important; -} -.highlight .hll { - background-color: #ffffcc; -} -.highlight { - background: #f8f8f8; -} -.highlight .c { - color: #408080; - font-style: italic; -} -/* Comment */ -.highlight .err { - border: 1px solid #ff0000; -} -/* Error */ -.highlight .k { - color: #008000; - font-weight: bold; -} -/* Keyword */ -.highlight .o { - color: #666666; -} -/* Operator */ -.highlight .cm { - color: #408080; - font-style: italic; -} -/* Comment.Multiline */ -.highlight .cp { - color: #bc7a00; -} -/* Comment.Preproc */ -.highlight .c1 { - color: #408080; - font-style: italic; -} -/* Comment.Single */ -.highlight .cs { - color: #408080; - font-style: italic; -} -/* Comment.Special */ -.highlight .gd { - color: #a00000; -} -/* Generic.Deleted */ -.highlight .ge { - font-style: italic; -} -/* Generic.Emph */ -.highlight .gr { - color: #ff0000; -} -/* Generic.Error */ -.highlight .gh { - color: #000080; - font-weight: bold; -} -/* Generic.Heading */ -.highlight .gi { - color: #00a000; -} -/* Generic.Inserted */ -.highlight .go { - color: #888888; -} -/* Generic.Output */ -.highlight .gp { - color: #000080; - font-weight: bold; -} -/* Generic.Prompt */ -.highlight .gs { - font-weight: bold; -} -/* Generic.Strong */ -.highlight .gu { - color: #800080; - font-weight: bold; -} -/* Generic.Subheading */ -.highlight .gt { - color: #0044dd; -} -/* Generic.Traceback */ -.highlight .kc { - color: #008000; - font-weight: bold; -} -/* Keyword.Constant */ -.highlight .kd { - color: #008000; - font-weight: bold; -} -/* Keyword.Declaration */ -.highlight .kn { - color: #008000; - font-weight: bold; -} -/* Keyword.Namespace */ -.highlight .kp { - color: #008000; -} -/* Keyword.Pseudo */ -.highlight .kr { - color: #008000; - font-weight: bold; -} -/* Keyword.Reserved */ -.highlight .kt { - color: #b00040; -} -/* Keyword.Type */ -.highlight .m { - color: #666666; -} -/* Literal.Number */ -.highlight .s { - color: #ba2121; -} -/* Literal.String */ -.highlight .na { - color: #7d9029; -} -/* Name.Attribute */ -.highlight .nb { - color: #008000; -} -/* Name.Builtin */ -.highlight .nc { - color: #0000FF; - font-weight: bold; -} -/* Name.Class */ -.highlight .no { - color: #880000; -} -/* Name.Constant */ -.highlight .nd { - color: #aa22ff; -} -/* Name.Decorator */ -.highlight .ni { - color: #999999; - font-weight: bold; -} -/* Name.Entity */ -.highlight .ne { - color: #D2413A; - font-weight: bold; -} -/* Name.Exception */ -.highlight .nf { - color: #0000ff; -} -/* Name.Function */ -.highlight .nl { - color: #a0a000; -} -/* Name.Label */ -.highlight .nn { - color: #0000FF; - font-weight: bold; -} -/* Name.Namespace */ -.highlight .nt { - color: #008000; - font-weight: bold; -} -/* Name.Tag */ -.highlight .nv { - color: #19177c; -} -/* Name.Variable */ -.highlight .ow { - color: #AA22FF; - font-weight: bold; -} -/* Operator.Word */ -.highlight .w { - color: #bbbbbb; -} -/* Text.Whitespace */ -.highlight .mf { - color: #666666; -} -/* Literal.Number.Float */ -.highlight .mh { - color: #666666; -} -/* Literal.Number.Hex */ -.highlight .mi { - color: #666666; -} -/* Literal.Number.Integer */ -.highlight .mo { - color: #666666; -} -/* Literal.Number.Oct */ -.highlight .sb { - color: #ba2121; -} -/* Literal.String.Backtick */ -.highlight .sc { - color: #ba2121; -} -/* Literal.String.Char */ -.highlight .sd { - color: #BA2121; - font-style: italic; -} -/* Literal.String.Doc */ -.highlight .s2 { - color: #ba2121; -} -/* Literal.String.Double */ -.highlight .se { - color: #BB6622; - font-weight: bold; -} -/* Literal.String.Escape */ -.highlight .sh { - color: #ba2121; -} -/* Literal.String.Heredoc */ -.highlight .si { - color: #BB6688; - font-weight: bold; -} -/* Literal.String.Interpol */ -.highlight .sx { - color: #008000; -} -/* Literal.String.Other */ -.highlight .sr { - color: #bb6688; -} -/* Literal.String.Regex */ -.highlight .s1 { - color: #ba2121; -} -/* Literal.String.Single */ -.highlight .ss { - color: #19177c; -} -/* Literal.String.Symbol */ -.highlight .bp { - color: #008000; -} -/* Name.Builtin.Pseudo */ -.highlight .vc { - color: #19177c; -} -/* Name.Variable.Class */ -.highlight .vg { - color: #19177c; -} -/* Name.Variable.Global */ -.highlight .vi { - color: #19177c; -} -/* Name.Variable.Instance */ -.highlight .il { - color: #666666; -} -/* Literal.Number.Integer.Long */ -.highlight .lineno { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; -} -.highlight .lineno::selection { - background: transparent; - /* WebKit/Blink Browsers */ -} -.highlight .lineno::-moz-selection { - background: transparent; - /* Gecko Browsers */ -} -.searx-navbar { - background: var(--navbar); - color: var(--navbarlighter); - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: bold; - margin-bottom: 1.3rem; -} -.searx-navbar a, -.searx-navbar a:hover { - margin-right: 2.0rem; - text-decoration: none; -} - -.searx-navbar a { - color: var(--navbarlighter); -} - -.searx-navbar a:hover { - color: var(--navbarevenlighter); -} - -.searx-navbar .instance a { - color: var(--navbarlighter); - margin-left: 2.0rem; -} - -.searx-navbar .instance a:hover { - color: var(--navbarevenlighter); - margin-left: 2.0rem; -} - -.table > tbody > tr > td, -.table > tbody > tr > th { - vertical-align: middle !important; -} diff --git a/beetroot_static/css/pointhi.min.css b/beetroot_static/css/pointhi.min.css deleted file mode 100644 index 8c35cb8..0000000 --- a/beetroot_static/css/pointhi.min.css +++ /dev/null @@ -1 +0,0 @@ -:root{--navbar:#50162D;--navbarlighter:#F0C8D8;--navbarevenlighter:#fff;--tab:#50162D;--tabdarker:#260512;--tabevendarker:#081011;--tablighter:#FBB9D7;--tabevenlighter:#FDF6F9;--tabbottom:#053539;--link:#50162D;--linklighter:#C22865;--btn:#fafdf3;--btndarker:#92b73c;--btnlighter:#b9e34c;--resultlink:#8EB726;--resultlinkhover:#863957;--resultbackground:#FBFFF1;--notsupported:#8EB726;--notsupportedlighter:#60201a;--notsupportedevenlighter:#fff}html{position:relative;min-height:100%}body{margin-bottom:80px}a{color:var(--link)}a:hover{color:var(--linklighter)}.alert-info{background-color:var(--notsupported);border-color:var(--notsupported);color:var(--notsupportedevenlighter)}.alert-danger{background-color:var(--notsupported);border-color:var(--notsupported);color:var(--notsupportedevenlighter)}.nav > li > a:focus,.nav > li > a:hover{text-decoration:none;background-color:var(--tabevenlighter)}.result-code:hover,.result-default:hover,.result-map:hover,.result-torrent:hover,.result-videos:hover{background-color:var(--resultbackground)}.form-control:focus{border-color:var(--tab);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(113, 11, 87, 0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(113, 11, 87, 0.6)}.btn,.btn[disabled]{color:var(--btndarker);background-color:var(--btn);border:1px solid var(--btndarker)}.btn:hover{color:var(--btnlighter) !important;background-color:var(--btndarker) !important;border-color:var(--btndarker)}.external-link{color:var(--resultlink);font-size:12px;margin-bottom:15px}.footer{position:absolute;bottom:0;width:100%;height:60px}input[type=checkbox]:checked + .label_hide_if_checked,input[type=checkbox]:checked + .label_hide_if_not_checked + .label_hide_if_checked{display:none}input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked,input[type=checkbox]:not(:checked) + .label_hide_if_not_checked{display:none}.onoff-checkbox{width:15%}.onoffswitch{position:relative;width:110px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.onoffswitch-checkbox{display:none}.onoffswitch-label{display:block;overflow:hidden;cursor:pointer;border:2px solid #FFFFFF !important;border-radius:50px !important}.onoffswitch-inner{display:block;transition:margin 0.3s ease-in 0s}.onoffswitch-inner:after,.onoffswitch-inner:before{display:block;float:left;width:50%;height:30px;padding:0;line-height:40px;font-size:20px;box-sizing:border-box;content:"";background-color:#EEEEEE}.onoffswitch-switch{display:block;width:37px;background-color:var(--tab);position:absolute;top:0;bottom:0;right:0;border:2px solid #FFFFFF !important;border-radius:50px !important;transition:all 0.3s ease-in 0s}.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner{margin-right:0}.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch{right:71px;background-color:#A1A1A1}.result_header{margin-bottom:5px;margin-top:20px}.result_header .favicon{margin-bottom:-3px}.result_header a{vertical-align:bottom}.result_header a .highlight{font-weight:bold}.result-content{margin-top:5px;word-wrap:break-word}.result-content .highlight{font-weight:bold}.result-default{clear:both}.result-images{float:left !important;height:138px}.img-thumbnail{margin:5px;max-height:128px}.result-videos{clear:both}.result-torrents{clear:both}.result-map{clear:both}.result-code{clear:both}.suggestion_item{margin:2px 5px;max-width:100%}.suggestion_item .btn{max-width:100%;white-space:normal;word-wrap:break-word;text-align:left}.result_download{margin-right:5px}#pagination{margin-top:30px;padding-bottom:50px}.label-default{color:#AAA;background:0 0}.result .text-muted small{word-wrap:break-word}.modal-wrapper{box-shadow:0 5px 15px rgba(0, 0, 0, 0.5)}.modal-wrapper{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.2);border-radius:6px;box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);outline:0 none;position:relative}.infobox .infobox_part{margin-bottom:20px;word-wrap:break-word;table-layout:fixed}.infobox .infobox_part:last-child{margin-bottom:0}#categories,.search_categories{text-transform:capitalize;margin-bottom:1.5rem;margin-top:1.5rem;display:flex;flex-wrap:wrap;align-content:stretch}#categories .input-group-addon,#categories label,.search_categories .input-group-addon,.search_categories label{flex-grow:1;flex-basis:auto;font-size:1.3rem;font-weight:normal;background-color:white;border:#DDD 1px solid;border-right:none;color:#333;padding-bottom:0.8rem;padding-top:0.8rem;text-align:center;min-width:50px}#categories .input-group-addon:last-child,#categories label:last-child,.search_categories .input-group-addon:last-child,.search_categories label:last-child{border-right:#DDD 1px solid}.search_categories input[type="checkbox"]:checked + label,#categories input[type="checkbox"]:checked + label{color:#eee;font-weight:bold;background-color:var(--tab)}#advanced-search-container{display:none;text-align:center;margin-bottom:1rem;clear:both}#advanced-search-container .input-group-addon,#advanced-search-container label{font-size:1.3rem;font-weight:normal;background-color:white;border:#DDD 1px solid;border-right:none;color:#333;padding-bottom:0.8rem;padding-left:1.2rem;padding-right:1.2rem}#advanced-search-container .input-group-addon:last-child,#advanced-search-container label:last-child{border-right:#DDD 1px solid}#advanced-search-container input[type="radio"]{display:none}#advanced-search-container input[type="radio"]:checked + label{color:black;font-weight:bold;background-color:#EEE}#check-advanced{display:none}#check-advanced:checked ~ #advanced-search-container{display:block}.advanced{padding:0;margin-top:0.3rem;text-align:right}.advanced label,.advanced select{cursor:pointer}.cursor-text{cursor:text !important}.cursor-pointer{cursor:pointer !important}.highlight .hll{background-color:#ffffcc}.highlight{background:#f8f8f8}.highlight .c{color:#408080;font-style:italic}.highlight .err{border:1px solid #ff0000}.highlight .k{color:#008000;font-weight:bold}.highlight .o{color:#666666}.highlight .cm{color:#408080;font-style:italic}.highlight .cp{color:#bc7a00}.highlight .c1{color:#408080;font-style:italic}.highlight .cs{color:#408080;font-style:italic}.highlight .gd{color:#a00000}.highlight .ge{font-style:italic}.highlight .gr{color:#ff0000}.highlight .gh{color:#000080;font-weight:bold}.highlight .gi{color:#00a000}.highlight .go{color:#888888}.highlight .gp{color:#000080;font-weight:bold}.highlight .gs{font-weight:bold}.highlight .gu{color:#800080;font-weight:bold}.highlight .gt{color:#0044dd}.highlight .kc{color:#008000;font-weight:bold}.highlight .kd{color:#008000;font-weight:bold}.highlight .kn{color:#008000;font-weight:bold}.highlight .kp{color:#008000}.highlight .kr{color:#008000;font-weight:bold}.highlight .kt{color:#b00040}.highlight .m{color:#666666}.highlight .s{color:#ba2121}.highlight .na{color:#7d9029}.highlight .nb{color:#008000}.highlight .nc{color:#0000FF;font-weight:bold}.highlight .no{color:#880000}.highlight .nd{color:#aa22ff}.highlight .ni{color:#999999;font-weight:bold}.highlight .ne{color:#D2413A;font-weight:bold}.highlight .nf{color:#0000ff}.highlight .nl{color:#a0a000}.highlight .nn{color:#0000FF;font-weight:bold}.highlight .nt{color:#008000;font-weight:bold}.highlight .nv{color:#19177c}.highlight .ow{color:#AA22FF;font-weight:bold}.highlight .w{color:#bbbbbb}.highlight .mf{color:#666666}.highlight .mh{color:#666666}.highlight .mi{color:#666666}.highlight .mo{color:#666666}.highlight .sb{color:#ba2121}.highlight .sc{color:#ba2121}.highlight .sd{color:#BA2121;font-style:italic}.highlight .s2{color:#ba2121}.highlight .se{color:#BB6622;font-weight:bold}.highlight .sh{color:#ba2121}.highlight .si{color:#BB6688;font-weight:bold}.highlight .sx{color:#008000}.highlight .sr{color:#bb6688}.highlight .s1{color:#ba2121}.highlight .ss{color:#19177c}.highlight .bp{color:#008000}.highlight .vc{color:#19177c}.highlight .vg{color:#19177c}.highlight .vi{color:#19177c}.highlight .il{color:#666666}.highlight .lineno{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.highlight .lineno::selection{background:transparent}.highlight .lineno::-moz-selection{background:transparent}.searx-navbar{background:var(--navbar);color:var(--navbarlighter);height:2.3rem;font-size:1.3rem;line-height:1.3rem;padding:0.5rem;font-weight:bold;margin-bottom:1.3rem}.searx-navbar a,.searx-navbar a:hover{margin-right:2.0rem;text-decoration:none}.searx-navbar a{color:var(--navbarlighter)}.searx-navbar a:hover{color:var(--navbarevenlighter)}.searx-navbar .instance a{color:var(--navbarlighter);margin-left:2.0rem}.searx-navbar .instance a:hover{color:var(--navbarevenlighter);margin-left:2.0rem}.table > tbody > tr > td,.table > tbody > tr > th{vertical-align:middle !important} diff --git a/beetroot_static/gruntfile.js b/beetroot_static/gruntfile.js deleted file mode 100644 index 606b6bc..0000000 --- a/beetroot_static/gruntfile.js +++ /dev/null @@ -1,94 +0,0 @@ -module.exports = function(grunt) { - - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - concat: { - options: { - separator: ';' - }, - dist: { - src: ['js/searx_src/*.js'], - dest: 'js/searx.js' - } - }, - uglify: { - options: { - banner: '/*! oscar/searx.min.js | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n' - }, - dist: { - files: { - 'js/searx.min.js': ['<%= concat.dist.dest %>'] - } - } - }, - jshint: { - files: ['gruntfile.js', 'js/searx_src/*.js'], - options: { - reporterOutput: "", - // options here to override JSHint defaults - globals: { - jQuery: true, - console: true, - module: true, - document: true - } - } - }, - less: { - development: { - options: { - paths: ["less/pointhi", "less/logicodev", "less/logicodev-dark"] - }, - files: {"css/pointhi.css": "less/pointhi/oscar.less", - "css/logicodev.css": "less/logicodev-dark/oscar.less", - "css/logicodev-dark.css": "less/logicodev/oscar.less"} - }, - production: { - options: { - paths: ["less/pointhi", "less/logicodev", "less/logicodev-dark"], - cleancss: true - }, - files: {"css/pointhi.min.css": "less/pointhi/oscar.less", - "css/logicodev.min.css": "less/logicodev/oscar.less", - "css/logicodev-dark.min.css": "less/logicodev-dark/oscar.less"} - }, - /* - // built with ./manage.sh styles - bootstrap: { - options: { - paths: ["less/bootstrap"], - cleancss: true - }, - files: {"css/bootstrap.min.css": "less/bootstrap/bootstrap.less"} - }, - */ - }, - watch: { - scripts: { - files: ['<%= jshint.files %>'], - tasks: ['jshint', 'concat', 'uglify'] - }, - oscar_styles: { - files: ['less/pointhi/**/*.less'], - tasks: ['less:development', 'less:production'] - }, - bootstrap_styles: { - files: ['less/bootstrap/**/*.less'], - tasks: ['less:bootstrap'] - } - } - }); - - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.loadNpmTasks('grunt-contrib-less'); - - grunt.registerTask('test', ['jshint']); - - grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less']); - - grunt.registerTask('styles', ['less']); - -}; diff --git a/beetroot_static/img/favicon.png b/beetroot_static/img/favicon.png deleted file mode 100644 index 15b4575..0000000 Binary files a/beetroot_static/img/favicon.png and /dev/null differ diff --git a/beetroot_static/img/icons/1337x.png b/beetroot_static/img/icons/1337x.png deleted file mode 100644 index a9164d4..0000000 Binary files a/beetroot_static/img/icons/1337x.png and /dev/null differ diff --git a/beetroot_static/img/icons/README.md b/beetroot_static/img/icons/README.md deleted file mode 100644 index 0e3ad1c..0000000 --- a/beetroot_static/img/icons/README.md +++ /dev/null @@ -1,2 +0,0 @@ -Source: http://www.iconspedia.com/pack/flat-gradient-social-icons-4384/ -License: Free for non commercial use. diff --git a/beetroot_static/img/icons/amazon.png b/beetroot_static/img/icons/amazon.png deleted file mode 100644 index b4abf7d..0000000 Binary files a/beetroot_static/img/icons/amazon.png and /dev/null differ diff --git a/beetroot_static/img/icons/dailymotion.png b/beetroot_static/img/icons/dailymotion.png deleted file mode 100644 index 88e4801..0000000 Binary files a/beetroot_static/img/icons/dailymotion.png and /dev/null differ diff --git a/beetroot_static/img/icons/deviantart.png b/beetroot_static/img/icons/deviantart.png deleted file mode 100644 index cec53bc..0000000 Binary files a/beetroot_static/img/icons/deviantart.png and /dev/null differ diff --git a/beetroot_static/img/icons/facebook.png b/beetroot_static/img/icons/facebook.png deleted file mode 100644 index ac5a594..0000000 Binary files a/beetroot_static/img/icons/facebook.png and /dev/null differ diff --git a/beetroot_static/img/icons/flickr.png b/beetroot_static/img/icons/flickr.png deleted file mode 100644 index 2496313..0000000 Binary files a/beetroot_static/img/icons/flickr.png and /dev/null differ diff --git a/beetroot_static/img/icons/github.png b/beetroot_static/img/icons/github.png deleted file mode 100644 index 9463a82..0000000 Binary files a/beetroot_static/img/icons/github.png and /dev/null differ diff --git a/beetroot_static/img/icons/invidious.png b/beetroot_static/img/icons/invidious.png deleted file mode 100644 index a94c969..0000000 Binary files a/beetroot_static/img/icons/invidious.png and /dev/null differ diff --git a/beetroot_static/img/icons/kickass.png b/beetroot_static/img/icons/kickass.png deleted file mode 100644 index 567d103..0000000 Binary files a/beetroot_static/img/icons/kickass.png and /dev/null differ diff --git a/beetroot_static/img/icons/openstreetmap.png b/beetroot_static/img/icons/openstreetmap.png deleted file mode 100644 index 4f88c96..0000000 Binary files a/beetroot_static/img/icons/openstreetmap.png and /dev/null differ diff --git a/beetroot_static/img/icons/photon.png b/beetroot_static/img/icons/photon.png deleted file mode 100644 index 0d07320..0000000 Binary files a/beetroot_static/img/icons/photon.png and /dev/null differ diff --git a/beetroot_static/img/icons/searchcode code.png b/beetroot_static/img/icons/searchcode code.png deleted file mode 100644 index 517434a..0000000 Binary files a/beetroot_static/img/icons/searchcode code.png and /dev/null differ diff --git a/beetroot_static/img/icons/searchcode doc.png b/beetroot_static/img/icons/searchcode doc.png deleted file mode 100644 index 517434a..0000000 Binary files a/beetroot_static/img/icons/searchcode doc.png and /dev/null differ diff --git a/beetroot_static/img/icons/soundcloud.png b/beetroot_static/img/icons/soundcloud.png deleted file mode 100644 index 851efdd..0000000 Binary files a/beetroot_static/img/icons/soundcloud.png and /dev/null differ diff --git a/beetroot_static/img/icons/stackoverflow.png b/beetroot_static/img/icons/stackoverflow.png deleted file mode 100644 index 812176a..0000000 Binary files a/beetroot_static/img/icons/stackoverflow.png and /dev/null differ diff --git a/beetroot_static/img/icons/twitter.png b/beetroot_static/img/icons/twitter.png deleted file mode 100644 index f71c197..0000000 Binary files a/beetroot_static/img/icons/twitter.png and /dev/null differ diff --git a/beetroot_static/img/icons/vimeo.png b/beetroot_static/img/icons/vimeo.png deleted file mode 100644 index 0238d24..0000000 Binary files a/beetroot_static/img/icons/vimeo.png and /dev/null differ diff --git a/beetroot_static/img/icons/wikipedia.png b/beetroot_static/img/icons/wikipedia.png deleted file mode 100644 index f771683..0000000 Binary files a/beetroot_static/img/icons/wikipedia.png and /dev/null differ diff --git a/beetroot_static/img/icons/youtube.png b/beetroot_static/img/icons/youtube.png deleted file mode 100644 index 4dc2ffb..0000000 Binary files a/beetroot_static/img/icons/youtube.png and /dev/null differ diff --git a/beetroot_static/img/loader.gif b/beetroot_static/img/loader.gif deleted file mode 100644 index 419cdee..0000000 Binary files a/beetroot_static/img/loader.gif and /dev/null differ diff --git a/beetroot_static/img/logo_searx_a (copie).png b/beetroot_static/img/logo_searx_a (copie).png deleted file mode 100644 index 9427900..0000000 Binary files a/beetroot_static/img/logo_searx_a (copie).png and /dev/null differ diff --git a/beetroot_static/img/logo_searx_a.png b/beetroot_static/img/logo_searx_a.png deleted file mode 100644 index cc94ca0..0000000 Binary files a/beetroot_static/img/logo_searx_a.png and /dev/null differ diff --git a/beetroot_static/img/logo_searx_a_n.png b/beetroot_static/img/logo_searx_a_n.png deleted file mode 100644 index 5b24aea..0000000 Binary files a/beetroot_static/img/logo_searx_a_n.png and /dev/null differ diff --git a/beetroot_static/img/map/layers-2x.png b/beetroot_static/img/map/layers-2x.png deleted file mode 100644 index 0b30da6..0000000 Binary files a/beetroot_static/img/map/layers-2x.png and /dev/null differ diff --git a/beetroot_static/img/map/layers.png b/beetroot_static/img/map/layers.png deleted file mode 100644 index 4297fd9..0000000 Binary files a/beetroot_static/img/map/layers.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon-2x-green.png b/beetroot_static/img/map/marker-icon-2x-green.png deleted file mode 100644 index 7446bb0..0000000 Binary files a/beetroot_static/img/map/marker-icon-2x-green.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon-2x-orange.png b/beetroot_static/img/map/marker-icon-2x-orange.png deleted file mode 100644 index ecd6773..0000000 Binary files a/beetroot_static/img/map/marker-icon-2x-orange.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon-2x-red.png b/beetroot_static/img/map/marker-icon-2x-red.png deleted file mode 100644 index 1d2e197..0000000 Binary files a/beetroot_static/img/map/marker-icon-2x-red.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon-2x.png b/beetroot_static/img/map/marker-icon-2x.png deleted file mode 100644 index 0015b64..0000000 Binary files a/beetroot_static/img/map/marker-icon-2x.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon-green.png b/beetroot_static/img/map/marker-icon-green.png deleted file mode 100644 index f48ef41..0000000 Binary files a/beetroot_static/img/map/marker-icon-green.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon-orange.png b/beetroot_static/img/map/marker-icon-orange.png deleted file mode 100644 index d0d2220..0000000 Binary files a/beetroot_static/img/map/marker-icon-orange.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon-red.png b/beetroot_static/img/map/marker-icon-red.png deleted file mode 100644 index 7a92b9e..0000000 Binary files a/beetroot_static/img/map/marker-icon-red.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-icon.png b/beetroot_static/img/map/marker-icon.png deleted file mode 100644 index e2e9f75..0000000 Binary files a/beetroot_static/img/map/marker-icon.png and /dev/null differ diff --git a/beetroot_static/img/map/marker-shadow.png b/beetroot_static/img/map/marker-shadow.png deleted file mode 100644 index d1e773c..0000000 Binary files a/beetroot_static/img/map/marker-shadow.png and /dev/null differ diff --git a/beetroot_static/img/searx_logo (copie).png b/beetroot_static/img/searx_logo (copie).png deleted file mode 100644 index 307b42f..0000000 Binary files a/beetroot_static/img/searx_logo (copie).png and /dev/null differ diff --git a/beetroot_static/img/searx_logo.png b/beetroot_static/img/searx_logo.png deleted file mode 100644 index 3b14a24..0000000 Binary files a/beetroot_static/img/searx_logo.png and /dev/null differ diff --git a/beetroot_static/js/leaflet-0.7.3.min.js b/beetroot_static/js/leaflet-0.7.3.min.js deleted file mode 100644 index 03434b7..0000000 --- a/beetroot_static/js/leaflet-0.7.3.min.js +++ /dev/null @@ -1,9 +0,0 @@ -/* - Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com - (c) 2010-2013, Vladimir Agafonkin - (c) 2010-2011, CloudMade -*/ -!function(t,e,i){var n=t.L,o={};o.version="0.7.3","object"==typeof module&&"object"==typeof module.exports?module.exports=o:"function"==typeof define&&define.amd&&define(o),o.noConflict=function(){return t.L=n,this},t.L=o,o.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;n>i;i++){o=s[i]||{};for(e in o)o.hasOwnProperty(e)&&(t[e]=o[e])}return t},bind:function(t,e){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:function(){var t=0,e="_leaflet_id";return function(i){return i[e]=i[e]||++t,i[e]}}(),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){o=Array.prototype.slice.call(arguments,3);for(n in t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(t,e,i){var n,o;return function s(){var a=arguments;return n?void(o=!0):(n=!0,setTimeout(function(){n=!1,o&&(s.apply(i,a),o=!1)},e),void t.apply(i,a))}},falseFn:function(){return!1},formatNum:function(t,e){var i=Math.pow(10,e||5);return Math.round(t*i)/i},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return o.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=o.extend({},t.options,e),t.options},getParamString:function(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")},template:function(t,e){return t.replace(/\{ *([\w_]+) *\}/g,function(t,n){var o=e[n];if(o===i)throw new Error("No value provided for variable "+t);return"function"==typeof o&&(o=o(e)),o})},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function e(e){var i,n,o=["webkit","moz","o","ms"];for(i=0;it;t++)n._initHooks[t].call(this)}},e},o.Class.include=function(t){o.extend(this.prototype,t)},o.Class.mergeOptions=function(t){o.extend(this.prototype.options,t)},o.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i)};var s="_leaflet_events";o.Mixin={},o.Mixin.Events={addEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,a,r,h,l,u,c,d=this[s]=this[s]||{},p=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)r={action:e,context:i||this},h=t[n],p?(l=h+"_idx",u=l+"_len",c=d[l]=d[l]||{},c[p]||(c[p]=[],d[u]=(d[u]||0)+1),c[p].push(r)):(d[h]=d[h]||[],d[h].push(r));return this},hasEventListeners:function(t){var e=this[s];return!!e&&(t in e&&e[t].length>0||t+"_idx"in e&&e[t+"_idx_len"]>0)},removeEventListener:function(t,e,i){if(!this[s])return this;if(!t)return this.clearAllEventListeners();if(o.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,a,r,h,l,u,c,d,p,_=this[s],m=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)if(r=t[n],u=r+"_idx",c=u+"_len",d=_[u],e){if(h=m&&d?d[m]:_[r]){for(l=h.length-1;l>=0;l--)h[l].action!==e||i&&h[l].context!==i||(p=h.splice(l,1),p[0].action=o.Util.falseFn);i&&d&&0===h.length&&(delete d[m],_[c]--)}}else delete _[r],delete _[u],delete _[c];return this},clearAllEventListeners:function(){return delete this[s],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var i,n,a,r,h,l=o.Util.extend({},e,{type:t,target:this}),u=this[s];if(u[t])for(i=u[t].slice(),n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,l);r=u[t+"_idx"];for(h in r)if(i=r[h].slice())for(n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,l);return this},addOneTimeEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=o.bind(function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i)},this);return this.addEventListener(t,e,i).addEventListener(t,n,i)}},o.Mixin.Events.on=o.Mixin.Events.addEventListener,o.Mixin.Events.off=o.Mixin.Events.removeEventListener,o.Mixin.Events.once=o.Mixin.Events.addOneTimeEventListener,o.Mixin.Events.fire=o.Mixin.Events.fireEvent,function(){var n="ActiveXObject"in t,s=n&&!e.addEventListener,a=navigator.userAgent.toLowerCase(),r=-1!==a.indexOf("webkit"),h=-1!==a.indexOf("chrome"),l=-1!==a.indexOf("phantom"),u=-1!==a.indexOf("android"),c=-1!==a.search("android [23]"),d=-1!==a.indexOf("gecko"),p=typeof orientation!=i+"",_=t.navigator&&t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints&&!t.PointerEvent,m=t.PointerEvent&&t.navigator.pointerEnabled&&t.navigator.maxTouchPoints||_,f="devicePixelRatio"in t&&t.devicePixelRatio>1||"matchMedia"in t&&t.matchMedia("(min-resolution:144dpi)")&&t.matchMedia("(min-resolution:144dpi)").matches,g=e.documentElement,v=n&&"transition"in g.style,y="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix&&!c,P="MozPerspective"in g.style,L="OTransition"in g.style,x=!t.L_DISABLE_3D&&(v||y||P||L)&&!l,w=!t.L_NO_TOUCH&&!l&&function(){var t="ontouchstart";if(m||t in g)return!0;var i=e.createElement("div"),n=!1;return i.setAttribute?(i.setAttribute(t,"return;"),"function"==typeof i[t]&&(n=!0),i.removeAttribute(t),i=null,n):!1}();o.Browser={ie:n,ielt9:s,webkit:r,gecko:d&&!r&&!t.opera&&!n,android:u,android23:c,chrome:h,ie3d:v,webkit3d:y,gecko3d:P,opera3d:L,any3d:x,mobile:p,mobileWebkit:p&&r,mobileWebkit3d:p&&y,mobileOpera:p&&t.opera,touch:w,msPointer:_,pointer:m,retina:f}}(),o.Point=function(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e},o.Point.prototype={clone:function(){return new o.Point(this.x,this.y)},add:function(t){return this.clone()._add(o.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(o.point(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(t){t=o.point(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=o.point(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=o.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+o.Util.formatNum(this.x)+", "+o.Util.formatNum(this.y)+")"}},o.point=function(t,e,n){return t instanceof o.Point?t:o.Util.isArray(t)?new o.Point(t[0],t[1]):t===i||null===t?t:new o.Point(t,e,n)},o.Bounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.Bounds.prototype={extend:function(t){return t=o.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new o.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new o.Point(this.min.x,this.max.y)},getTopRight:function(){return new o.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return t="number"==typeof t[0]||t instanceof o.Point?o.point(t):o.bounds(t),t instanceof o.Bounds?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=o.bounds(t);var e=this.min,i=this.max,n=t.min,s=t.max,a=s.x>=e.x&&n.x<=i.x,r=s.y>=e.y&&n.y<=i.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},o.bounds=function(t,e){return!t||t instanceof o.Bounds?t:new o.Bounds(t,e)},o.Transformation=function(t,e,i,n){this._a=t,this._b=e,this._c=i,this._d=n},o.Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new o.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},o.DomUtil={get:function(t){return"string"==typeof t?e.getElementById(t):t},getStyle:function(t,i){var n=t.style[i];if(!n&&t.currentStyle&&(n=t.currentStyle[i]),(!n||"auto"===n)&&e.defaultView){var o=e.defaultView.getComputedStyle(t,null);n=o?o[i]:null}return"auto"===n?null:n},getViewportOffset:function(t){var i,n=0,s=0,a=t,r=e.body,h=e.documentElement;do{if(n+=a.offsetTop||0,s+=a.offsetLeft||0,n+=parseInt(o.DomUtil.getStyle(a,"borderTopWidth"),10)||0,s+=parseInt(o.DomUtil.getStyle(a,"borderLeftWidth"),10)||0,i=o.DomUtil.getStyle(a,"position"),a.offsetParent===r&&"absolute"===i)break;if("fixed"===i){n+=r.scrollTop||h.scrollTop||0,s+=r.scrollLeft||h.scrollLeft||0;break}if("relative"===i&&!a.offsetLeft){var l=o.DomUtil.getStyle(a,"width"),u=o.DomUtil.getStyle(a,"max-width"),c=a.getBoundingClientRect();("none"!==l||"none"!==u)&&(s+=c.left+a.clientLeft),n+=c.top+(r.scrollTop||h.scrollTop||0);break}a=a.offsetParent}while(a);a=t;do{if(a===r)break;n-=a.scrollTop||0,s-=a.scrollLeft||0,a=a.parentNode}while(a);return new o.Point(s,n)},documentIsLtr:function(){return o.DomUtil._docIsLtrCached||(o.DomUtil._docIsLtrCached=!0,o.DomUtil._docIsLtr="ltr"===o.DomUtil.getStyle(e.body,"direction")),o.DomUtil._docIsLtr},create:function(t,i,n){var o=e.createElement(t);return o.className=i,n&&n.appendChild(o),o},hasClass:function(t,e){if(t.classList!==i)return t.classList.contains(e);var n=o.DomUtil._getClass(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)},addClass:function(t,e){if(t.classList!==i)for(var n=o.Util.splitWords(e),s=0,a=n.length;a>s;s++)t.classList.add(n[s]);else if(!o.DomUtil.hasClass(t,e)){var r=o.DomUtil._getClass(t);o.DomUtil._setClass(t,(r?r+" ":"")+e)}},removeClass:function(t,e){t.classList!==i?t.classList.remove(e):o.DomUtil._setClass(t,o.Util.trim((" "+o.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===i?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===i?t.className:t.className.baseVal},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}},testProp:function(t){for(var i=e.documentElement.style,n=0;ni||i===e?e:t),new o.LatLng(this.lat,i)}},o.latLng=function(t,e){return t instanceof o.LatLng?t:o.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new o.LatLng(t[0],t[1],t[2]):null:t===i||null===t?t:"object"==typeof t&&"lat"in t?new o.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===i?null:new o.LatLng(t,e)},o.LatLngBounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=o.latLng(t);return t=null!==e?e:o.latLngBounds(t),t instanceof o.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new o.LatLng(t.lat,t.lng),this._northEast=new o.LatLng(t.lat,t.lng)):t instanceof o.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new o.LatLngBounds(new o.LatLng(e.lat-n,e.lng-s),new o.LatLng(i.lat+n,i.lng+s))},getCenter:function(){return new o.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new o.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new o.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof o.LatLng?o.latLng(t):o.latLngBounds(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof o.LatLngBounds?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=o.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),a=s.lat>=e.lat&&n.lat<=i.lat,r=s.lng>=e.lng&&n.lng<=i.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return t?(t=o.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast())):!1},isValid:function(){return!(!this._southWest||!this._northEast)}},o.latLngBounds=function(t,e){return!t||t instanceof o.LatLngBounds?t:new o.LatLngBounds(t,e)},o.Projection={},o.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=t.lng*e,a=n*e;return a=Math.log(Math.tan(Math.PI/4+a/2)),new o.Point(s,a)},unproject:function(t){var e=o.LatLng.RAD_TO_DEG,i=t.x*e,n=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new o.LatLng(n,i)}},o.Projection.LonLat={project:function(t){return new o.Point(t.lng,t.lat)},unproject:function(t){return new o.LatLng(t.y,t.x)}},o.CRS={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},scale:function(t){return 256*Math.pow(2,t)},getSize:function(t){var e=this.scale(t);return o.point(e,e)}},o.CRS.Simple=o.extend({},o.CRS,{projection:o.Projection.LonLat,transformation:new o.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),o.CRS.EPSG3857=o.extend({},o.CRS,{code:"EPSG:3857",projection:o.Projection.SphericalMercator,transformation:new o.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){var e=this.projection.project(t),i=6378137;return e.multiplyBy(i)}}),o.CRS.EPSG900913=o.extend({},o.CRS.EPSG3857,{code:"EPSG:900913"}),o.CRS.EPSG4326=o.extend({},o.CRS,{code:"EPSG:4326",projection:o.Projection.LonLat,transformation:new o.Transformation(1/360,.5,-1/360,.5)}),o.Map=o.Class.extend({includes:o.Mixin.Events,options:{crs:o.CRS.EPSG3857,fadeAnimation:o.DomUtil.TRANSITION&&!o.Browser.android23,trackResize:!0,markerZoomAnimation:o.DomUtil.TRANSITION&&o.Browser.any3d},initialize:function(t,e){e=o.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=o.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==i&&this.setView(o.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===i?this.getZoom():e,this._resetView(o.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),a=t instanceof o.Point?t:this.latLngToContainerPoint(t),r=a.subtract(s).multiplyBy(1-1/n),h=this.containerPointToLatLng(s.add(r));return this.setView(h,e,{zoom:i})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():o.latLngBounds(t);var i=o.point(e.paddingTopLeft||e.padding||[0,0]),n=o.point(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n)),a=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),s),h=this.project(t.getNorthEast(),s),l=this.unproject(r.add(h).divideBy(2).add(a),s);return s=e&&e.maxZoom?Math.min(e.maxZoom,s):s,this.setView(l,s,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t){return this.fire("movestart"),this._rawPanBy(o.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=o.latLngBounds(t),this.options.maxBounds=t,t?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(t,e){var i=this.getCenter(),n=this._limitCenter(i,this._zoom,t);return i.equals(n)?this:this.panTo(n,e)},addLayer:function(t){var e=o.stamp(t);return this._layers[e]?this:(this._layers[e]=t,!t.options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&o.TileLayer&&t instanceof o.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t),this)},removeLayer:function(t){var e=o.stamp(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation&&o.TileLayer&&t instanceof o.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(t){return t?o.stamp(t)in this._layers:!1},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},invalidateSize:function(t){if(!this._loaded)return this;t=o.extend({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),s=i.divideBy(2).round(),a=n.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(t){this._container._leaflet=i}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new o.LatLngBounds(e,i)},getMinZoom:function(){return this.options.minZoom===i?this._layersMinZoom===i?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===i?this._layersMaxZoom===i?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=o.latLngBounds(t);var n,s=this.getMinZoom()-(e?1:0),a=this.getMaxZoom(),r=this.getSize(),h=t.getNorthWest(),l=t.getSouthEast(),u=!0;i=o.point(i||[0,0]);do s++,n=this.project(l,s).subtract(this.project(h,s)).add(i),u=e?n.x=s);return u&&e?null:e?s:s-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new o.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new o.Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t){var e=this.options.crs;return e.scale(t)/e.scale(this._zoom)},getScaleZoom:function(t){return this._zoom+Math.log(t)/Math.LN2},project:function(t,e){return e=e===i?this._zoom:e,this.options.crs.latLngToPoint(o.latLng(t),e)},unproject:function(t,e){return e=e===i?this._zoom:e,this.options.crs.pointToLatLng(o.point(t),e)},layerPointToLatLng:function(t){var e=o.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(o.latLng(t))._round();return e._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return o.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return o.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(o.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(o.latLng(t)))},mouseEventToContainerPoint:function(t){return o.DomEvent.getMousePosition(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=o.DomUtil.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet=!0},_initLayout:function(){var t=this._container;o.DomUtil.addClass(t,"leaflet-container"+(o.Browser.touch?" leaflet-touch":"")+(o.Browser.retina?" leaflet-retina":"")+(o.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var e=o.DomUtil.getStyle(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._mapPane=t.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=t.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane=this._createPane("leaflet-shadow-pane"),t.overlayPane=this._createPane("leaflet-overlay-pane"),t.markerPane=this._createPane("leaflet-marker-pane"),t.popupPane=this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation||(o.DomUtil.addClass(t.markerPane,e),o.DomUtil.addClass(t.shadowPane,e),o.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return o.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){t=t?o.Util.isArray(t)?t:[t]:[];for(var e=0,i=t.length;i>e;e++)this.addLayer(t[e])},_resetView:function(t,e,i,n){var s=this._zoom!==e;n||(this.fire("movestart"),s&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),i?this._initialTopLeftPoint._add(this._getMapPanePos()):o.DomUtil.setPosition(this._mapPane,new o.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var a=!this._loaded;this._loaded=!0,this.fire("viewreset",{hard:!i}),a&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(s||n)&&this.fire("zoomend"),this.fire("moveend",{hard:!i})},_rawPanBy:function(t){o.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,n=-1/0,o=this._getZoomSpan();for(t in this._zoomBoundLayers){var s=this._zoomBoundLayers[t];isNaN(s.options.minZoom)||(e=Math.min(e,s.options.minZoom)),isNaN(s.options.maxZoom)||(n=Math.max(n,s.options.maxZoom))}t===i?this._layersMaxZoom=this._layersMinZoom=i:(this._layersMaxZoom=n,this._layersMinZoom=e),o!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){if(o.DomEvent){e=e||"on",o.DomEvent[e](this._container,"click",this._onMouseClick,this);var i,n,s=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(i=0,n=s.length;n>i;i++)o.DomEvent[e](this._container,s[i],this._fireMouseEvent,this);this.options.trackResize&&o.DomEvent[e](t,"resize",this._onResize,this)}},_onResize:function(){o.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=o.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(t){!this._loaded||!t._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||o.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!o.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&o.DomEvent.preventDefault(t);var i=this.mouseEventToContainerPoint(t),n=this.containerPointToLayerPoint(i),s=this.layerPointToLatLng(n);this.fire(e,{latlng:s,layerPoint:n,containerPoint:i,originalEvent:t})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var t=0,e=this._handlers.length;e>t;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,this):this.on("load",t,e),this},_layerAdd:function(t){t.onAdd(this),this.fire("layeradd",{layer:t})},_getMapPanePos:function(){return o.DomUtil.getPosition(this._mapPane)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewTopLeftPoint(i,e).add(this._getMapPanePos());return this.project(t,e)._subtract(n)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),a=new o.Bounds(n.subtract(s),n.add(s)),r=this._getBoundsOffset(a,i,e);return this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new o.Bounds(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=this.project(e.getNorthWest(),i).subtract(t.min),s=this.project(e.getSouthEast(),i).subtract(t.max),a=this._rebound(n.x,-s.x),r=this._rebound(n.y,-s.y);return new o.Point(a,r)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom();return Math.max(e,Math.min(i,t))}}),o.map=function(t,e){return new o.Map(t,e)},o.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=this.R_MAJOR,a=this.R_MINOR,r=t.lng*e*s,h=n*e,l=a/s,u=Math.sqrt(1-l*l),c=u*Math.sin(h);c=Math.pow((1-c)/(1+c),.5*u);var d=Math.tan(.5*(.5*Math.PI-h))/c;return h=-s*Math.log(d),new o.Point(r,h)},unproject:function(t){for(var e,i=o.LatLng.RAD_TO_DEG,n=this.R_MAJOR,s=this.R_MINOR,a=t.x*i/n,r=s/n,h=Math.sqrt(1-r*r),l=Math.exp(-t.y/n),u=Math.PI/2-2*Math.atan(l),c=15,d=1e-7,p=c,_=.1;Math.abs(_)>d&&--p>0;)e=h*Math.sin(u),_=Math.PI/2-2*Math.atan(l*Math.pow((1-e)/(1+e),.5*h))-u,u+=_; -return new o.LatLng(u*i,a)}},o.CRS.EPSG3395=o.extend({},o.CRS,{code:"EPSG:3395",projection:o.Projection.Mercator,transformation:function(){var t=o.Projection.Mercator,e=t.R_MAJOR,i=.5/(Math.PI*e);return new o.Transformation(i,.5,-i,.5)}()}),o.TileLayer=o.Class.extend({includes:o.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:o.Browser.mobile,updateWhenIdle:o.Browser.mobile},initialize:function(t,e){e=o.setOptions(this,e),e.detectRetina&&o.Browser.retina&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,e.minZoom>0&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=o.latLngBounds(e.bounds)),this._url=t;var i=this.options.subdomains;"string"==typeof i&&(this.options.subdomains=i.split(""))},onAdd:function(t){this._map=t,this._animated=t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated&&t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=o.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated&&t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||t.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var t=this._map._panes.tilePane;return this._container&&(t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this},bringToBack:function(){var t=this._map._panes.tilePane;return this._container&&(t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==i&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var i,n,o,s=t.children,a=-e(1/0,-1/0);for(n=0,o=s.length;o>n;n++)s[n]!==this._container&&(i=parseInt(s[n].style.zIndex,10),isNaN(i)||(a=e(a,i)));this.options.zIndex=this._container.style.zIndex=(isFinite(a)?a:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(o.Browser.ielt9)for(t in e)o.DomUtil.setOpacity(e[t],this.options.opacity);else o.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=o.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=o.DomUtil.create("div",e,this._container),this._tileContainer=o.DomUtil.create("div",e,this._container)}else this._tileContainer=this._container;t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(t){for(var e in this._tiles)this.fire("tileunload",{tile:this._tiles[e]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&t&&t.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var t=this._map,e=t.getZoom()+this.options.zoomOffset,i=this.options.maxNativeZoom,n=this.options.tileSize;return i&&e>i&&(n=Math.round(t.getZoomScale(e)/t.getZoomScale(i)*n)),n},_update:function(){if(this._map){var t=this._map,e=t.getPixelBounds(),i=t.getZoom(),n=this._getTileSize();if(!(i>this.options.maxZoom||in;n++)this._addTile(a[n],l);this._tileContainer.appendChild(l)}},_tileShouldBeLoaded:function(t){if(t.x+":"+t.y in this._tiles)return!1;var e=this.options;if(!e.continuousWorld){var i=this._getWrapTileNum();if(e.noWrap&&(t.x<0||t.x>=i.x)||t.y<0||t.y>=i.y)return!1}if(e.bounds){var n=e.tileSize,o=t.multiplyBy(n),s=o.add([n,n]),a=this._map.unproject(o),r=this._map.unproject(s);if(e.continuousWorld||e.noWrap||(a=a.wrap(),r=r.wrap()),!e.bounds.intersects([a,r]))return!1}return!0},_removeOtherTiles:function(t){var e,i,n,o;for(o in this._tiles)e=o.split(":"),i=parseInt(e[0],10),n=parseInt(e[1],10),(it.max.x||nt.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(o.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),o.Browser.android||(e.onload=null,e.src=o.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var i=this._getTilePos(t),n=this._getTile();o.DomUtil.setPosition(n,i,o.Browser.chrome),this._tiles[t.x+":"+t.y]=n,this._loadTile(n,t),n.parentNode!==this._tileContainer&&e.appendChild(n)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),i=this._getTileSize();return t.multiplyBy(i).subtract(e)},getTileUrl:function(t){return o.Util.template(this._url,o.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){var t=this._map.options.crs,e=t.getSize(this._map.getZoom());return e.divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e.x+e.x)%e.x),this.options.tms&&(t.y=e.y-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=o.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=o.Util.falseFn,o.Browser.ielt9&&this.options.opacity!==i&&o.DomUtil.setOpacity(t,this.options.opacity),o.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden"),t},_loadTile:function(t,e){t._layer=this,t.onload=this._tileOnLoad,t.onerror=this._tileOnError,this._adjustTilePoint(e),t.src=this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&o.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(o.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==o.Util.emptyImageUrl&&(o.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded()},_tileOnError:function(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e&&(this.src=e),t._tileLoaded()}}),o.tileLayer=function(t,e){return new o.TileLayer(t,e)},o.TileLayer.WMS=o.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(t,e){this._url=t;var i=o.extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;i.width=i.height=e.detectRetina&&o.Browser.retina?2*n:n;for(var s in e)this.options.hasOwnProperty(s)||"crs"===s||(i[s]=e[s]);this.wmsParams=i,o.setOptions(this,e)},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,o.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,i=this.options.tileSize,n=t.multiplyBy(i),s=n.add([i,i]),a=this._crs.project(e.unproject(n,t.z)),r=this._crs.project(e.unproject(s,t.z)),h=this._wmsVersion>=1.3&&this._crs===o.CRS.EPSG4326?[r.y,a.x,a.y,r.x].join(","):[a.x,r.y,r.x,a.y].join(","),l=o.Util.template(this._url,{s:this._getSubdomain(t)});return l+o.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+h},setParams:function(t,e){return o.extend(this.wmsParams,t),e||this.redraw(),this}}),o.tileLayer.wms=function(t,e){return new o.TileLayer.WMS(t,e)},o.TileLayer.Canvas=o.TileLayer.extend({options:{async:!1},initialize:function(t){o.setOptions(this,t)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var t in this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=o.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=o.Util.falseFn,t},_loadTile:function(t,e){t._layer=this,t._tilePoint=e,this._redrawTile(t),this.options.async||this.tileDrawn(t)},drawTile:function(){},tileDrawn:function(t){this._tileOnLoad.call(t)}}),o.tileLayer.canvas=function(t){return new o.TileLayer.Canvas(t)},o.ImageOverlay=o.Class.extend({includes:o.Mixin.Events,options:{opacity:1},initialize:function(t,e,i){this._url=t,this._bounds=o.latLngBounds(e),o.setOptions(this,i)},onAdd:function(t){this._map=t,this._image||this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation&&o.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var t=this._map._panes.overlayPane;return this._image&&t.insertBefore(this._image,t.firstChild),this},setUrl:function(t){this._url=t,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=o.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&o.Browser.any3d?o.DomUtil.addClass(this._image,"leaflet-zoom-animated"):o.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),o.extend(this._image,{galleryimg:"no",onselectstart:o.Util.falseFn,onmousemove:o.Util.falseFn,onload:o.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,i=this._image,n=e.getZoomScale(t.zoom),s=this._bounds.getNorthWest(),a=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(s,t.zoom,t.center),h=e._latLngToNewLayerPoint(a,t.zoom,t.center)._subtract(r),l=r._add(h._multiplyBy(.5*(1-1/n)));i.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(l)+" scale("+n+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);o.DomUtil.setPosition(t,e),t.style.width=i.x+"px",t.style.height=i.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){o.DomUtil.setOpacity(this._image,this.options.opacity)}}),o.imageOverlay=function(t,e,i){return new o.ImageOverlay(t,e,i)},o.Icon=o.Class.extend({options:{className:""},initialize:function(t){o.setOptions(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n;return n=e&&"IMG"===e.tagName?this._createImg(i,e):this._createImg(i),this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i,n=this.options,s=o.point(n[e+"Size"]);i=o.point("shadow"===e?n.shadowAnchor||n.iconAnchor:n.iconAnchor),!i&&s&&(i=s.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+n.className,i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,i){return i=i||e.createElement("img"),i.src=t,i},_getIconUrl:function(t){return o.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),o.icon=function(t){return new o.Icon(t)},o.Icon.Default=o.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(t){var e=t+"Url";if(this.options[e])return this.options[e];o.Browser.retina&&"icon"===t&&(t+="-2x");var i=o.Icon.Default.imagePath;if(!i)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return i+"/marker-"+t+".png"}}),o.Icon.Default.imagePath=function(){var t,i,n,o,s,a=e.getElementsByTagName("script"),r=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,i=a.length;i>t;t++)if(n=a[t].src,o=n.match(r))return s=n.split(r)[0],(s?s+"/":"")+"images"}(),o.Marker=o.Class.extend({includes:o.Mixin.Events,options:{icon:new o.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){o.setOptions(this,e),this._latlng=o.latLng(t)},onAdd:function(t){this._map=t,t.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation&&t.options.markerZoomAnimation&&t.on("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=o.latLng(t),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update(),this},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e=this._map,i=e.options.zoomAnimation&&e.options.markerZoomAnimation,n=i?"leaflet-zoom-animated":"leaflet-zoom-hide",s=t.icon.createIcon(this._icon),a=!1;s!==this._icon&&(this._icon&&this._removeIcon(),a=!0,t.title&&(s.title=t.title),t.alt&&(s.alt=t.alt)),o.DomUtil.addClass(s,n),t.keyboard&&(s.tabIndex="0"),this._icon=s,this._initInteraction(),t.riseOnHover&&o.DomEvent.on(s,"mouseover",this._bringToFront,this).on(s,"mouseout",this._resetZIndex,this);var r=t.icon.createShadow(this._shadow),h=!1;r!==this._shadow&&(this._removeShadow(),h=!0),r&&o.DomUtil.addClass(r,n),this._shadow=r,t.opacity<1&&this._updateOpacity();var l=this._map._panes;a&&l.markerPane.appendChild(this._icon),r&&h&&l.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&o.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(t){o.DomUtil.setPosition(this._icon,t),this._shadow&&o.DomUtil.setPosition(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];o.DomUtil.addClass(t,"leaflet-clickable"),o.DomEvent.on(t,"click",this._onMouseClick,this),o.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;is?(e.height=s+"px",o.DomUtil.addClass(t,a)):o.DomUtil.removeClass(t,a),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,i=o.point(this.options.offset);e&&o.DomUtil.setPosition(this._container,t),this._containerBottom=-i.y-(e?0:t.y),this._containerLeft=-Math.round(this._containerWidth/2)+i.x+(e?0:t.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);o.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,i=this._containerWidth,n=new o.Point(this._containerLeft,-e-this._containerBottom);this._animated&&n._add(o.DomUtil.getPosition(this._container));var s=t.layerPointToContainerPoint(n),a=o.point(this.options.autoPanPadding),r=o.point(this.options.autoPanPaddingTopLeft||a),h=o.point(this.options.autoPanPaddingBottomRight||a),l=t.getSize(),u=0,c=0;s.x+i+h.x>l.x&&(u=s.x+i-l.x+h.x),s.x-u-r.x<0&&(u=s.x-r.x),s.y+e+h.y>l.y&&(c=s.y+e-l.y+h.y),s.y-c-r.y<0&&(c=s.y-r.y),(u||c)&&t.fire("autopanstart").panBy([u,c])}},_onCloseButtonClick:function(t){this._close(),o.DomEvent.stop(t)}}),o.popup=function(t,e){return new o.Popup(t,e)},o.Map.include({openPopup:function(t,e,i){if(this.closePopup(),!(t instanceof o.Popup)){var n=t;t=new o.Popup(i).setLatLng(e).setContent(n)}return t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),o.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var i=o.point(this.options.icon.options.popupAnchor||[0,0]);return i=i.add(o.Popup.prototype.options.offset),e&&e.offset&&(i=i.add(e.offset)),e=o.extend({offset:i},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof o.Popup?(o.setOptions(t,e),this._popup=t):this._popup=new o.Popup(e,this).setContent(t),this},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),o.LayerGroup=o.Class.extend({initialize:function(t){this._layers={};var e,i;if(t)for(e=0,i=t.length;i>e;e++)this.addLayer(t[e])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return t?t in this._layers||this.getLayerId(t)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)i=this._layers[e],i[t]&&i[t].apply(i,n);return this},onAdd:function(t){this._map=t,this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t),this._map=null},addTo:function(t){return t.addLayer(this),this},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o.stamp(t)}}),o.layerGroup=function(t){return new o.LayerGroup(t)},o.FeatureGroup=o.LayerGroup.extend({includes:o.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(t){return this.hasLayer(t)?this:("on"in t&&t.on(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.addLayer.call(this,t),this._popupContent&&t.bindPopup&&t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.off(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this},bindPopup:function(t,e){return this._popupContent=t,this._popupOptions=e,this.invoke("bindPopup",t,e)},openPopup:function(t){for(var e in this._layers){this._layers[e].openPopup(t);break}return this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new o.LatLngBounds;return this.eachLayer(function(e){t.extend(e instanceof o.Marker?e.getLatLng():e.getBounds())}),t},_propagateEvent:function(t){t=o.extend({layer:t.target,target:this},t),this.fire(t.type,t)}}),o.featureGroup=function(t){return new o.FeatureGroup(t)},o.Path=o.Class.extend({includes:[o.Mixin.Events],statics:{CLIP_PADDING:function(){var e=o.Browser.mobile?1280:2e3,i=(e/Math.max(t.outerWidth,t.outerHeight)-1)/2;return Math.max(0,Math.min(.5,i))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(t){o.setOptions(this,t)},onAdd:function(t){this._map=t,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,o.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(t){return o.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),o.Map.include({_updatePathViewport:function(){var t=o.Path.CLIP_PADDING,e=this.getSize(),i=o.DomUtil.getPosition(this._mapPane),n=i.multiplyBy(-1)._subtract(e.multiplyBy(t)._round()),s=n.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new o.Bounds(n,s)}}),o.Path.SVG_NS="http://www.w3.org/2000/svg",o.Browser.svg=!(!e.createElementNS||!e.createElementNS(o.Path.SVG_NS,"svg").createSVGRect),o.Path=o.Path.extend({statics:{SVG:o.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,e=this._container;return e&&t.lastChild!==e&&t.appendChild(e),this},bringToBack:function(){var t=this._map._pathRoot,e=this._container,i=t.firstChild;return e&&i!==e&&t.insertBefore(e,i),this},getPathString:function(){},_createElement:function(t){return e.createElementNS(o.Path.SVG_NS,t)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&o.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var t=this.getPathString();t||(t="M0 0"),this._path.setAttribute("d",t)},_initEvents:function(){if(this.options.clickable){(o.Browser.svg||!o.Browser.vml)&&o.DomUtil.addClass(this._path,"leaflet-clickable"),o.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(n){return!1}}(),o.Path=o.Browser.svg||!o.Browser.vml?o.Path:o.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return e.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return e.createElement("')}}catch(t){return function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");o.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&o.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,i=this.options,n=this._container;n.stroked=i.stroke,n.filled=i.fill,i.stroke?(t||(t=this._stroke=this._createElement("stroke"),t.endcap="round",n.appendChild(t)),t.weight=i.weight+"px",t.color=i.color,t.opacity=i.opacity,t.dashStyle=i.dashArray?o.Util.isArray(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):"",i.lineCap&&(t.endcap=i.lineCap.replace("butt","flat")),i.lineJoin&&(t.joinstyle=i.lineJoin)):t&&(n.removeChild(t),this._stroke=null),i.fill?(e||(e=this._fill=this._createElement("fill"),n.appendChild(e)),e.color=i.fillColor||i.color,e.opacity=i.fillOpacity):e&&(n.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),o.Map.include(o.Browser.svg||!o.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=e.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),o.Browser.canvas=function(){return!!e.createElement("canvas").getContext}(),o.Path=o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?o.Path:o.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return o.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!o.Path._updateRequest&&(o.Path._updateRequest=o.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){o.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color)},_drawPath:function(){var t,e,i,n,s,a;for(this._ctx.beginPath(),t=0,i=this._parts.length;i>t;t++){for(e=0,n=this._parts[t].length;n>e;e++)s=this._parts[t][e],a=(0===e?"move":"line")+"To",this._ctx[a](s.x,s.y);this instanceof o.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill&&(t.globalAlpha=e.fillOpacity,t.fill()),e.stroke&&(t.globalAlpha=e.opacity,t.stroke()),t.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onClick,this))},_onClick:function(t){this._containsPoint(t.layerPoint)&&this.fire("click",t)},_onMouseMove:function(t){this._map&&!this._map._animatingZoom&&(this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",t)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",t)))}}),o.Map.include(o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?{}:{_initPathRoot:function(){var t,i=this._pathRoot;i||(i=this._pathRoot=e.createElement("canvas"),i.style.position="absolute",t=this._canvasCtx=i.getContext("2d"),t.lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(i),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max.subtract(e),n=this._pathRoot;o.DomUtil.setPosition(n,e),n.width=i.x,n.height=i.y,n.getContext("2d").translate(-e.x,-e.y)}}}),o.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=this._reducePoints(t,i),t=this._simplifyDP(t,i)},pointToSegmentDistance:function(t,e,i){return Math.sqrt(this._sqClosestPointOnSegment(t,e,i,!0))},closestPointOnSegment:function(t,e,i){return this._sqClosestPointOnSegment(t,e,i)},_simplifyDP:function(t,e){var n=t.length,o=typeof Uint8Array!=i+""?Uint8Array:Array,s=new o(n);s[0]=s[n-1]=1,this._simplifyDPStep(t,s,e,0,n-1);var a,r=[];for(a=0;n>a;a++)s[a]&&r.push(t[a]);return r},_simplifyDPStep:function(t,e,i,n,o){var s,a,r,h=0;for(a=n+1;o-1>=a;a++)r=this._sqClosestPointOnSegment(t[a],t[n],t[o],!0),r>h&&(s=a,h=r);h>i&&(e[s]=1,this._simplifyDPStep(t,e,i,n,s),this._simplifyDPStep(t,e,i,s,o))},_reducePoints:function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;s>n;n++)this._sqDist(t[n],t[o])>e&&(i.push(t[n]),o=n);return s-1>o&&i.push(t[s-1]),i},clipSegment:function(t,e,i,n){var o,s,a,r=n?this._lastCode:this._getBitCode(t,i),h=this._getBitCode(e,i);for(this._lastCode=h;;){if(!(r|h))return[t,e];if(r&h)return!1;o=r||h,s=this._getEdgeIntersection(t,e,o,i),a=this._getBitCode(s,i),o===r?(t=s,r=a):(e=s,h=a)}},_getEdgeIntersection:function(t,e,i,n){var s=e.x-t.x,a=e.y-t.y,r=n.min,h=n.max;return 8&i?new o.Point(t.x+s*(h.y-t.y)/a,h.y):4&i?new o.Point(t.x+s*(r.y-t.y)/a,r.y):2&i?new o.Point(h.x,t.y+a*(h.x-t.x)/s):1&i?new o.Point(r.x,t.y+a*(r.x-t.x)/s):void 0},_getBitCode:function(t,e){var i=0;return t.xe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n},_sqClosestPointOnSegment:function(t,e,i,n){var s,a=e.x,r=e.y,h=i.x-a,l=i.y-r,u=h*h+l*l;return u>0&&(s=((t.x-a)*h+(t.y-r)*l)/u,s>1?(a=i.x,r=i.y):s>0&&(a+=h*s,r+=l*s)),h=t.x-a,l=t.y-r,n?h*h+l*l:new o.Point(a,r)}},o.Polyline=o.Path.extend({initialize:function(t,e){o.Path.prototype.initialize.call(this,e),this._latlngs=this._convertLatLngs(t)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var t=0,e=this._latlngs.length;e>t;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,i="";e>t;t++)i+=this._getPathPartStr(this._parts[t]);return i},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._latlngs=this._convertLatLngs(t),this.redraw()},addLatLng:function(t){return this._latlngs.push(o.latLng(t)),this.redraw()},spliceLatLngs:function(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t},closestLayerPoint:function(t){for(var e,i,n=1/0,s=this._parts,a=null,r=0,h=s.length;h>r;r++)for(var l=s[r],u=1,c=l.length;c>u;u++){e=l[u-1],i=l[u];var d=o.LineUtil._sqClosestPointOnSegment(t,e,i,!0);n>d&&(n=d,a=o.LineUtil._sqClosestPointOnSegment(t,e,i))}return a&&(a.distance=Math.sqrt(n)),a},getBounds:function(){return new o.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var i,n,s=e?t:[];for(i=0,n=t.length;n>i;i++){if(o.Util.isArray(t[i])&&"number"!=typeof t[i][0])return;s[i]=o.latLng(t[i])}return s},_initEvents:function(){o.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,i=o.Path.VML,n=0,s=t.length,a="";s>n;n++)e=t[n],i&&e._round(),a+=(n?"L":"M")+e.x+" "+e.y;return a},_clipPoints:function(){var t,e,i,n=this._originalPoints,s=n.length;if(this.options.noClip)return void(this._parts=[n]);this._parts=[];var a=this._parts,r=this._map._pathViewport,h=o.LineUtil;for(t=0,e=0;s-1>t;t++)i=h.clipSegment(n[t],n[t+1],r,t),i&&(a[e]=a[e]||[],a[e].push(i[0]),(i[1]!==n[t+1]||t===s-2)&&(a[e].push(i[1]),e++))},_simplifyPoints:function(){for(var t=this._parts,e=o.LineUtil,i=0,n=t.length;n>i;i++)t[i]=e.simplify(t[i],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),o.Path.prototype._updatePath.call(this))}}),o.polyline=function(t,e){return new o.Polyline(t,e)},o.PolyUtil={},o.PolyUtil.clipPolygon=function(t,e){var i,n,s,a,r,h,l,u,c,d=[1,4,2,8],p=o.LineUtil;for(n=0,l=t.length;l>n;n++)t[n]._code=p._getBitCode(t[n],e);for(a=0;4>a;a++){for(u=d[a],i=[],n=0,l=t.length,s=l-1;l>n;s=n++)r=t[n],h=t[s],r._code&u?h._code&u||(c=p._getEdgeIntersection(h,r,u,e),c._code=p._getBitCode(c,e),i.push(c)):(h._code&u&&(c=p._getEdgeIntersection(h,r,u,e),c._code=p._getBitCode(c,e),i.push(c)),i.push(r));t=i}return t},o.Polygon=o.Polyline.extend({options:{fill:!0},initialize:function(t,e){o.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,i,n;if(t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0])for(this._latlngs=this._convertLatLngs(t[0]),this._holes=t.slice(1),e=0,i=this._holes.length;i>e;e++)n=this._holes[e]=this._convertLatLngs(this._holes[e]),n[0].equals(n[n.length-1])&&n.pop();t=this._latlngs,t.length>=2&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){if(o.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes){var t,e,i,n;for(t=0,i=this._holes.length;i>t;t++)for(this._holePoints[t]=[],e=0,n=this._holes[t].length;n>e;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])}},setLatLngs:function(t){return t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):o.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var i=0,n=this._parts.length;n>i;i++){var s=o.PolyUtil.clipPolygon(this._parts[i],this._map._pathViewport);s.length&&e.push(s)}this._parts=e}},_getPathPartStr:function(t){var e=o.Polyline.prototype._getPathPartStr.call(this,t);return e+(o.Browser.svg?"z":"x")}}),o.polygon=function(t,e){return new o.Polygon(t,e)},function(){function t(t){return o.FeatureGroup.extend({initialize:function(t,e){this._layers={},this._options=e,this.setLatLngs(t)},setLatLngs:function(e){var i=0,n=e.length;for(this.eachLayer(function(t){n>i?t.setLatLngs(e[i++]):this.removeLayer(t)},this);n>i;)this.addLayer(new t(e[i++],this._options));return this},getLatLngs:function(){var t=[];return this.eachLayer(function(e){t.push(e.getLatLngs())}),t}})}o.MultiPolyline=t(o.Polyline),o.MultiPolygon=t(o.Polygon),o.multiPolyline=function(t,e){return new o.MultiPolyline(t,e)},o.multiPolygon=function(t,e){return new o.MultiPolygon(t,e)}}(),o.Rectangle=o.Polygon.extend({initialize:function(t,e){o.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=o.latLngBounds(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),o.rectangle=function(t,e){return new o.Rectangle(t,e)},o.Circle=o.Path.extend({initialize:function(t,e,i){o.Path.prototype.initialize.call(this,i),this._latlng=o.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=o.latLng(t),this.redraw()},setRadius:function(t){return this._mRadius=t,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),e=this._latlng,i=this._map.latLngToLayerPoint([e.lat,e.lng-t]);this._point=this._map.latLngToLayerPoint(e),this._radius=Math.max(this._point.x-i.x,1)},getBounds:function(){var t=this._getLngRadius(),e=this._mRadius/40075017*360,i=this._latlng;return new o.LatLngBounds([i.lat-e,i.lng-t],[i.lat+e,i.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":o.Browser.svg?"M"+t.x+","+(t.y-e)+"A"+e+","+e+",0,1,1,"+(t.x-.1)+","+(t.y-e)+" z":(t._round(),e=Math.round(e),"AL "+t.x+","+t.y+" "+e+","+e+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(o.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var t=this._map._pathViewport,e=this._radius,i=this._point;return i.x-e>t.max.x||i.y-e>t.max.y||i.x+ei;i++)for(l=this._parts[i],n=0,r=l.length,s=r-1;r>n;s=n++)if((e||0!==n)&&(h=o.LineUtil.pointToSegmentDistance(t,l[s],l[n]),u>=h))return!0;return!1}}:{}),o.Polygon.include(o.Path.CANVAS?{_containsPoint:function(t){var e,i,n,s,a,r,h,l,u=!1;if(o.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(s=0,h=this._parts.length;h>s;s++)for(e=this._parts[s],a=0,l=e.length,r=l-1;l>a;r=a++)i=e[a],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(u=!u);return u}}:{}),o.Circle.include(o.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,i=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+i}}:{}),o.CircleMarker.include(o.Path.CANVAS?{_updateStyle:function(){o.Path.prototype._updateStyle.call(this)}}:{}),o.GeoJSON=o.FeatureGroup.extend({initialize:function(t,e){o.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=o.Util.isArray(t)?t:t.features;if(s){for(e=0,i=s.length;i>e;e++)n=s[e],(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(s[e]);return this}var a=this.options;if(!a.filter||a.filter(t)){var r=o.GeoJSON.geometryToLayer(t,a.pointToLayer,a.coordsToLatLng,a);return r.feature=o.GeoJSON.asFeature(t),r.defaultOptions=r.options,this.resetStyle(r),a.onEachFeature&&a.onEachFeature(t,r),this.addLayer(r)}},resetStyle:function(t){var e=this.options.style;e&&(o.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(t){this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),o.extend(o.GeoJSON,{geometryToLayer:function(t,e,i,n){var s,a,r,h,l="Feature"===t.type?t.geometry:t,u=l.coordinates,c=[];switch(i=i||this.coordsToLatLng,l.type){case"Point":return s=i(u),e?e(t,s):new o.Marker(s);case"MultiPoint":for(r=0,h=u.length;h>r;r++)s=i(u[r]),c.push(e?e(t,s):new o.Marker(s));return new o.FeatureGroup(c);case"LineString":return a=this.coordsToLatLngs(u,0,i),new o.Polyline(a,n);case"Polygon":if(2===u.length&&!u[1].length)throw new Error("Invalid GeoJSON object.");return a=this.coordsToLatLngs(u,1,i),new o.Polygon(a,n);case"MultiLineString":return a=this.coordsToLatLngs(u,1,i),new o.MultiPolyline(a,n);case"MultiPolygon":return a=this.coordsToLatLngs(u,2,i),new o.MultiPolygon(a,n);case"GeometryCollection":for(r=0,h=l.geometries.length;h>r;r++)c.push(this.geometryToLayer({geometry:l.geometries[r],type:"Feature",properties:t.properties},e,i,n));return new o.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new o.LatLng(t[1],t[0],t[2])},coordsToLatLngs:function(t,e,i){var n,o,s,a=[];for(o=0,s=t.length;s>o;o++)n=e?this.coordsToLatLngs(t[o],e-1,i):(i||this.coordsToLatLng)(t[o]),a.push(n);return a},latLngToCoords:function(t){var e=[t.lng,t.lat];return t.alt!==i&&e.push(t.alt),e},latLngsToCoords:function(t){for(var e=[],i=0,n=t.length;n>i;i++)e.push(o.GeoJSON.latLngToCoords(t[i]));return e},getFeature:function(t,e){return t.feature?o.extend({},t.feature,{geometry:e}):o.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var a={toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"Point",coordinates:o.GeoJSON.latLngToCoords(this.getLatLng())})}};o.Marker.include(a),o.Circle.include(a),o.CircleMarker.include(a),o.Polyline.include({toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"LineString",coordinates:o.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),o.Polygon.include({toGeoJSON:function(){var t,e,i,n=[o.GeoJSON.latLngsToCoords(this.getLatLngs())];if(n[0].push(n[0][0]),this._holes)for(t=0,e=this._holes.length;e>t;t++)i=o.GeoJSON.latLngsToCoords(this._holes[t]),i.push(i[0]),n.push(i);return o.GeoJSON.getFeature(this,{type:"Polygon",coordinates:n})}}),function(){function t(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates)}),o.GeoJSON.getFeature(this,{type:t,coordinates:e})}}o.MultiPolyline.include({toGeoJSON:t("MultiLineString")}),o.MultiPolygon.include({toGeoJSON:t("MultiPolygon")}),o.LayerGroup.include({toGeoJSON:function(){var e,i=this.feature&&this.feature.geometry,n=[];if(i&&"MultiPoint"===i.type)return t("MultiPoint").call(this);var s=i&&"GeometryCollection"===i.type;return this.eachLayer(function(t){t.toGeoJSON&&(e=t.toGeoJSON(),n.push(s?e.geometry:o.GeoJSON.asFeature(e)))}),s?o.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}})}(),o.geoJson=function(t,e){return new o.GeoJSON(t,e)},o.DomEvent={addListener:function(t,e,i,n){var s,a,r,h=o.stamp(i),l="_leaflet_"+e+h;return t[l]?this:(s=function(e){return i.call(n||t,e||o.DomEvent._getEvent())},o.Browser.pointer&&0===e.indexOf("touch")?this.addPointerListener(t,e,s,h):(o.Browser.touch&&"dblclick"===e&&this.addDoubleTapListener&&this.addDoubleTapListener(t,s,h),"addEventListener"in t?"mousewheel"===e?(t.addEventListener("DOMMouseScroll",s,!1),t.addEventListener(e,s,!1)):"mouseenter"===e||"mouseleave"===e?(a=s,r="mouseenter"===e?"mouseover":"mouseout",s=function(e){return o.DomEvent._checkMouse(t,e)?a(e):void 0},t.addEventListener(r,s,!1)):"click"===e&&o.Browser.android?(a=s,s=function(t){return o.DomEvent._filterClick(t,a)},t.addEventListener(e,s,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,s),t[l]=s,this))},removeListener:function(t,e,i){var n=o.stamp(i),s="_leaflet_"+e+n,a=t[s];return a?(o.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,n):o.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,n):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",a,!1),t.removeEventListener(e,a,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1):t.removeEventListener(e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[s]=null,this):this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,o.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=o.DomEvent.stopPropagation;return o.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=o.DomEvent.stopPropagation,i=o.Draggable.START.length-1;i>=0;i--)o.DomEvent.on(t,o.Draggable.START[i],e);return o.DomEvent.on(t,"click",o.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return o.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,e){if(!e)return new o.Point(t.clientX,t.clientY);var i=e.getBoundingClientRect();return new o.Point(t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop)},getWheelDelta:function(t){var e=0;return t.wheelDelta&&(e=t.wheelDelta/120),t.detail&&(e=-t.detail/3),e},_skipEvents:{},_fakeStop:function(t){o.DomEvent._skipEvents[t.type]=!0},_skipped:function(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type]=!1,e},_checkMouse:function(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(n){return!1}return i!==t},_getEvent:function(){var e=t.event;if(!e)for(var i=arguments.callee.caller;i&&(e=i.arguments[0],!e||t.Event!==e.constructor);)i=i.caller;return e},_filterClick:function(t,e){var i=t.timeStamp||t.originalEvent.timeStamp,n=o.DomEvent._lastClick&&i-o.DomEvent._lastClick;return n&&n>100&&500>n||t.target._simulatedClick&&!t._simulated?void o.DomEvent.stop(t):(o.DomEvent._lastClick=i,e(t))}},o.DomEvent.on=o.DomEvent.addListener,o.DomEvent.off=o.DomEvent.removeListener,o.Draggable=o.Class.extend({includes:o.Mixin.Events,statics:{START:o.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(t,e){this._element=t,this._dragStartTarget=e||t},enable:function(){if(!this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.on(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.off(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(t){if(this._moved=!1,!(t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(o.DomEvent.stopPropagation(t),o.Draggable._disabled||(o.DomUtil.disableImageDrag(),o.DomUtil.disableTextSelection(),this._moving)))){var i=t.touches?t.touches[0]:t;this._startPoint=new o.Point(i.clientX,i.clientY),this._startPos=this._newPos=o.DomUtil.getPosition(this._element),o.DomEvent.on(e,o.Draggable.MOVE[t.type],this._onMove,this).on(e,o.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var i=t.touches&&1===t.touches.length?t.touches[0]:t,n=new o.Point(i.clientX,i.clientY),s=n.subtract(this._startPoint);(s.x||s.y)&&(o.Browser.touch&&Math.abs(s.x)+Math.abs(s.y)<3||(o.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=o.DomUtil.getPosition(this._element).subtract(s),o.DomUtil.addClass(e.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,o.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(s),this._moving=!0,o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))},_updatePosition:function(){this.fire("predrag"),o.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){o.DomUtil.removeClass(e.body,"leaflet-dragging"),this._lastTarget&&(o.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var t in o.Draggable.MOVE)o.DomEvent.off(e,o.Draggable.MOVE[t],this._onMove).off(e,o.Draggable.END[t],this._onUp);o.DomUtil.enableImageDrag(),o.DomUtil.enableTextSelection(),this._moved&&this._moving&&(o.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),o.Handler=o.Class.extend({initialize:function(t){this._map=t},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),o.Map.mergeOptions({dragging:!0,inertia:!o.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:o.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),o.Map.Drag=o.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new o.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var t=this._map;t._panAnim&&t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var t=this._lastTime=+new Date,e=this._lastPos=this._draggable._newPos;this._positions.push(e),this._times.push(t),t-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,a=Math.abs(o+i)i.inertiaThreshold||!this._positions[0];if(e.fire("dragend",t),s)e.fire("moveend");else{var a=this._lastPos.subtract(this._positions[0]),r=(this._lastTime+n-this._times[0])/1e3,h=i.easeLinearity,l=a.multiplyBy(h/r),u=l.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,u),d=l.multiplyBy(c/u),p=c/(i.inertiaDeceleration*h),_=d.multiplyBy(-p/2).round();_.x&&_.y?(_=e._limitOffset(_,e.options.maxBounds),o.Util.requestAnimFrame(function(){e.panBy(_,{duration:p,easeLinearity:h,noMoveStart:!0})})):e.fire("moveend")}}}),o.Map.addInitHook("addHandler","dragging",o.Map.Drag),o.Map.mergeOptions({doubleClickZoom:!0}),o.Map.DoubleClickZoom=o.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom()+(t.originalEvent.shiftKey?-1:1);"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}}),o.Map.addInitHook("addHandler","doubleClickZoom",o.Map.DoubleClickZoom),o.Map.mergeOptions({scrollWheelZoom:!0}),o.Map.ScrollWheelZoom=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),o.DomEvent.on(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault),this._delta=0},removeHooks:function(){o.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),o.DomEvent.off(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=o.DomEvent.getWheelDelta(t);this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o.bind(this._performZoom,this),i),o.DomEvent.preventDefault(t),o.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,i=t.getZoom();e=e>0?Math.ceil(e):Math.floor(e),e=Math.max(Math.min(e,4),-4),e=t._limitZoom(i+e)-i,this._delta=0,this._startTime=null,e&&("center"===t.options.scrollWheelZoom?t.setZoom(i+e):t.setZoomAround(this._lastMousePos,i+e))}}),o.Map.addInitHook("addHandler","scrollWheelZoom",o.Map.ScrollWheelZoom),o.extend(o.DomEvent,{_touchstart:o.Browser.msPointer?"MSPointerDown":o.Browser.pointer?"pointerdown":"touchstart",_touchend:o.Browser.msPointer?"MSPointerUp":o.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,i,n){function s(t){var e;if(o.Browser.pointer?(_.push(t.pointerId),e=_.length):e=t.touches.length,!(e>1)){var i=Date.now(),n=i-(r||i);h=t.touches?t.touches[0]:t,l=n>0&&u>=n,r=i}}function a(t){if(o.Browser.pointer){var e=_.indexOf(t.pointerId);if(-1===e)return;_.splice(e,1)}if(l){if(o.Browser.pointer){var n,s={};for(var a in h)n=h[a],s[a]="function"==typeof n?n.bind(h):n;h=s}h.type="dblclick",i(h),r=null}}var r,h,l=!1,u=250,c="_leaflet_",d=this._touchstart,p=this._touchend,_=[];t[c+d+n]=s,t[c+p+n]=a;var m=o.Browser.pointer?e.documentElement:t;return t.addEventListener(d,s,!1),m.addEventListener(p,a,!1),o.Browser.pointer&&m.addEventListener(o.DomEvent.POINTER_CANCEL,a,!1),this},removeDoubleTapListener:function(t,i){var n="_leaflet_";return t.removeEventListener(this._touchstart,t[n+this._touchstart+i],!1),(o.Browser.pointer?e.documentElement:t).removeEventListener(this._touchend,t[n+this._touchend+i],!1),o.Browser.pointer&&e.documentElement.removeEventListener(o.DomEvent.POINTER_CANCEL,t[n+this._touchend+i],!1),this}}),o.extend(o.DomEvent,{POINTER_DOWN:o.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:o.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:o.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:o.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(t,e,i,n){switch(e){case"touchstart":return this.addPointerListenerStart(t,e,i,n);case"touchend":return this.addPointerListenerEnd(t,e,i,n);case"touchmove":return this.addPointerListenerMove(t,e,i,n);default:throw"Unknown touch event type"}},addPointerListenerStart:function(t,i,n,s){var a="_leaflet_",r=this._pointers,h=function(t){o.DomEvent.preventDefault(t);for(var e=!1,i=0;i1))&&(this._moved||(o.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),o.DomEvent.preventDefault(t))}},_updateOnMove:function(){var t=this._map,e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getScaleZoom(this._scale);t._animateZoom(i,n,this._startCenter,this._scale,this._delta,!1,!0)},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void(this._zooming=!1);var t=this._map;this._zooming=!1,o.DomUtil.removeClass(t._mapPane,"leaflet-touching"),o.Util.cancelAnimFrame(this._animRequest),o.DomEvent.off(e,"touchmove",this._onTouchMove).off(e,"touchend",this._onTouchEnd);var i=this._getScaleOrigin(),n=t.layerPointToLatLng(i),s=t.getZoom(),a=t.getScaleZoom(this._scale)-s,r=a>0?Math.ceil(a):Math.floor(a),h=t._limitZoom(s+r),l=t.getZoomScale(h)/this._scale;t._animateZoom(n,h,i,l)},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),o.Map.addInitHook("addHandler","touchZoom",o.Map.TouchZoom),o.Map.mergeOptions({tap:!0,tapTolerance:15}),o.Map.Tap=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){o.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(o.DomEvent.preventDefault(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos=this._newPos=new o.Point(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout=setTimeout(o.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),o.DomEvent.on(e,"touchmove",this._onMove,this).on(e,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),o.DomEvent.off(e,"touchmove",this._onMove,this).off(e,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],n=i.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new o.Point(e.clientX,e.clientY)},_simulateEvent:function(i,n){var o=e.createEvent("MouseEvents");o._simulated=!0,n.target._simulatedClick=!0,o.initMouseEvent(i,!0,!0,t,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(o)}}),o.Browser.touch&&!o.Browser.pointer&&o.Map.addInitHook("addHandler","tap",o.Map.Tap),o.Map.mergeOptions({boxZoom:!0}),o.Map.BoxZoom=o.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){o.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){o.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(t){return this._moved=!1,!t.shiftKey||1!==t.which&&1!==t.button?!1:(o.DomUtil.disableTextSelection(),o.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),void o.DomEvent.on(e,"mousemove",this._onMouseMove,this).on(e,"mouseup",this._onMouseUp,this).on(e,"keydown",this._onKeyDown,this))},_onMouseMove:function(t){this._moved||(this._box=o.DomUtil.create("div","leaflet-zoom-box",this._pane),o.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var e=this._startLayerPoint,i=this._box,n=this._map.mouseEventToLayerPoint(t),s=n.subtract(e),a=new o.Point(Math.min(n.x,e.x),Math.min(n.y,e.y));o.DomUtil.setPosition(i,a),this._moved=!0,i.style.width=Math.max(0,Math.abs(s.x)-4)+"px",i.style.height=Math.max(0,Math.abs(s.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),o.DomUtil.enableTextSelection(),o.DomUtil.enableImageDrag(),o.DomEvent.off(e,"mousemove",this._onMouseMove).off(e,"mouseup",this._onMouseUp).off(e,"keydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,i=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(i)){var n=new o.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(i));e.fitBounds(n),e.fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),o.Map.addInitHook("addHandler","boxZoom",o.Map.BoxZoom),o.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),o.Map.Keyboard=o.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(t){this._map=t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset)},addHooks:function(){var t=this._map._container;-1===t.tabIndex&&(t.tabIndex="0"),o.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var t=this._map._container;o.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var i=e.body,n=e.documentElement,o=i.scrollTop||n.scrollTop,s=i.scrollLeft||n.scrollLeft;this._map._container.focus(),t.scrollTo(s,o)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;i>e;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;i>e;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;i>e;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;i>e;e++)n[o.up[e]]=[0,-1*t]},_setZoomOffset:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;i>e;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;i>e;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){o.DomEvent.on(e,"keydown",this._onKeyDown,this)},_removeHooks:function(){o.DomEvent.off(e,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){var e=t.keyCode,i=this._map;if(e in this._panKeys){if(i._panAnim&&i._panAnim._inProgress)return;i.panBy(this._panKeys[e]),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds)}else{if(!(e in this._zoomKeys))return;i.setZoom(i.getZoom()+this._zoomKeys[e])}o.DomEvent.stop(t)}}),o.Map.addInitHook("addHandler","keyboard",o.Map.Keyboard),o.Handler.MarkerDrag=o.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new o.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),o.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),o.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var t=this._marker,e=t._shadow,i=o.DomUtil.getPosition(t._icon),n=t._map.layerPointToLatLng(i);e&&o.DomUtil.setPosition(e,i),t._latlng=n,t.fire("move",{latlng:n}).fire("drag")},_onDragEnd:function(t){this._marker.fire("moveend").fire("dragend",t)}}),o.Control=o.Class.extend({options:{position:"topright"},initialize:function(t){o.setOptions(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return o.DomUtil.addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this},removeFrom:function(t){var e=this.getPosition(),i=t._controlCorners[e];return i.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),o.control=function(t){return new o.Control(t)},o.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){function t(t,s){var a=i+t+" "+i+s;e[t+s]=o.DomUtil.create("div",a,n)}var e=this._controlCorners={},i="leaflet-",n=this._controlContainer=o.DomUtil.create("div",i+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),o.Control.Zoom=o.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=o.DomUtil.create("div",e+" leaflet-bar");return this._map=t,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,e+"-in",i,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e+"-out",i,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(t){this._map.zoomIn(t.shiftKey?3:1)},_zoomOut:function(t){this._map.zoomOut(t.shiftKey?3:1)},_createButton:function(t,e,i,n,s,a){var r=o.DomUtil.create("a",i,n);r.innerHTML=t,r.href="#",r.title=e;var h=o.DomEvent.stopPropagation;return o.DomEvent.on(r,"click",h).on(r,"mousedown",h).on(r,"dblclick",h).on(r,"click",o.DomEvent.preventDefault).on(r,"click",s,a).on(r,"click",this._refocusOnMap,a),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";o.DomUtil.removeClass(this._zoomInButton,e),o.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&o.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&o.DomUtil.addClass(this._zoomInButton,e)}}),o.Map.mergeOptions({zoomControl:!0}),o.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new o.Control.Zoom,this.addControl(this.zoomControl))}),o.control.zoom=function(t){return new o.Control.Zoom(t)},o.Control.Attribution=o.Control.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){o.setOptions(this,t),this._attributions={}},onAdd:function(t){this._container=o.DomUtil.create("div","leaflet-control-attribution"),o.DomEvent.disableClickPropagation(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):void 0},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):void 0},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),o.Map.mergeOptions({attributionControl:!0}),o.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new o.Control.Attribution).addTo(this))}),o.control.attribution=function(t){return new o.Control.Attribution(t)},o.Control.Scale=o.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",i=o.DomUtil.create("div",e),n=this.options;return this._addScales(n,e,i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=o.DomUtil.create("div",e+"-line",i)),t.imperial&&(this._iScale=o.DomUtil.create("div",e+"-line",i))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,i=6378137*Math.PI*Math.cos(e*Math.PI/180),n=i*(t.getNorthEast().lng-t.getSouthWest().lng)/180,o=this._map.getSize(),s=this.options,a=0;o.x>0&&(a=n*(s.maxWidth/o.x)),this._updateScales(s,a)},_updateScales:function(t,e){t.metric&&e&&this._updateMetric(e),t.imperial&&e&&this._updateImperial(e)},_updateMetric:function(t){var e=this._getRoundNum(t);this._mScale.style.width=this._getScaleWidth(e/t)+"px",this._mScale.innerHTML=1e3>e?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,i,n,o=3.2808399*t,s=this._iScale;o>5280?(e=o/5280,i=this._getRoundNum(e),s.style.width=this._getScaleWidth(i/e)+"px",s.innerHTML=i+" mi"):(n=this._getRoundNum(o),s.style.width=this._getScaleWidth(n/o)+"px",s.innerHTML=n+" ft")},_getScaleWidth:function(t){return Math.round(this.options.maxWidth*t)-10},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),o.control.scale=function(t){return new o.Control.Scale(t)},o.Control.Layers=o.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,i){o.setOptions(this,i),this._layers={},this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(t){t.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._update(),this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._update(),this},removeLayer:function(t){var e=o.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=o.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),o.Browser.touch?o.DomEvent.on(e,"click",o.DomEvent.stopPropagation):o.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var i=this._form=o.DomUtil.create("form",t+"-list");if(this.options.collapsed){o.Browser.android||o.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var n=this._layersLink=o.DomUtil.create("a",t+"-toggle",e);n.href="#",n.title="Layers",o.Browser.touch?o.DomEvent.on(n,"click",o.DomEvent.stop).on(n,"click",this._expand,this):o.DomEvent.on(n,"focus",this._expand,this),o.DomEvent.on(i,"click",function(){setTimeout(o.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=o.DomUtil.create("div",t+"-base",i),this._separator=o.DomUtil.create("div",t+"-separator",i),this._overlaysList=o.DomUtil.create("div",t+"-overlays",i),e.appendChild(i)},_addLayer:function(t,e,i){var n=o.stamp(t);this._layers[n]={layer:t,name:e,overlay:i},this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var t,e,i=!1,n=!1;for(t in this._layers)e=this._layers[t],this._addItem(e),n=n||e.overlay,i=i||!e.overlay;this._separator.style.display=n&&i?"":"none"}},_onLayerChange:function(t){var e=this._layers[o.stamp(t.layer)];if(e){this._handlingClick||this._update();var i=e.overlay?"layeradd"===t.type?"overlayadd":"overlayremove":"layeradd"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)}},_createRadioElement:function(t,i){var n='t;t++)e=n[t],i=this._layers[e.layerId],e.checked&&!this._map.hasLayer(i.layer)?this._map.addLayer(i.layer):!e.checked&&this._map.hasLayer(i.layer)&&this._map.removeLayer(i.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){o.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),o.control.layers=function(t,e,i){return new o.Control.Layers(t,e,i)},o.PosAnimation=o.Class.extend({includes:o.Mixin.Events,run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[o.DomUtil.TRANSITION]="all "+(i||.25)+"s cubic-bezier(0,0,"+(n||.5)+",1)",o.DomEvent.on(t,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),o.DomUtil.setPosition(t,e),o.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(o.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(o.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),o.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var t=this._getPos();return t?(this._el._leaflet_pos=t,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var e,i,n,s=this._el,a=t.getComputedStyle(s);if(o.Browser.any3d){if(n=a[o.DomUtil.TRANSFORM].match(this._transformRe),!n)return;e=parseFloat(n[1]),i=parseFloat(n[2])}else e=parseFloat(a.left),i=parseFloat(a.top);return new o.Point(e,i,!0)},_onTransitionEnd:function(){o.DomEvent.off(this._el,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[o.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),o.Map.include({setView:function(t,e,n){if(e=e===i?this._zoom:this._limitZoom(e),t=this._limitCenter(o.latLng(t),e,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==i&&(n.zoom=o.extend({animate:n.animate},n.zoom),n.pan=o.extend({animate:n.animate},n.pan));var s=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(s)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},panBy:function(t,e){if(t=o.point(t).round(),e=e||{},!t.x&&!t.y)return this;if(this._panAnim||(this._panAnim=new o.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){o.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){o.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._floor();return(e&&e.animate)===!0||this.getSize().contains(i)?(this.panBy(i,e),!0):!1}}),o.PosAnimation=o.DomUtil.TRANSITION?o.PosAnimation:o.PosAnimation.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=o.DomUtil.getPosition(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=o.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=+new Date-this._startTime,e=1e3*this._duration;e>t?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));o.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){o.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),o.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),o.DomUtil.TRANSITION&&o.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&o.DomUtil.TRANSITION&&o.Browser.any3d&&!o.Browser.android23&&!o.Browser.mobileOpera,this._zoomAnimated&&o.DomEvent.on(this._mapPane,o.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),o.Map.include(o.DomUtil.TRANSITION?{_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n),s=this._getCenterLayerPoint()._add(o);return i.animate===!0||this.getSize().contains(o)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,s,n,null,!0),!0):!1},_animateZoom:function(t,e,i,n,s,a,r){r||(this._animatingZoom=!0),o.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,o.Draggable&&(o.Draggable._disabled=!0),o.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:t,zoom:e,origin:i,scale:n,delta:s,backwards:a})},this)},_onZoomTransitionEnd:function(){this._animatingZoom=!1,o.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),o.Draggable&&(o.Draggable._disabled=!1)}}:{}),o.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,i=o.DomUtil.TRANSFORM,n=t.delta?o.DomUtil.getTranslateString(t.delta):e.style[i],s=o.DomUtil.getScaleString(t.scale,t.origin);e.style[i]=t.backwards?s+" "+n:n+" "+s},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),o.Util.falseFn(e.offsetWidth),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[o.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,i=this._getLoadedTilesPercentage(e),n=this._getLoadedTilesPercentage(t);return e&&i>.5&&.5>n?(t.style.visibility="hidden",void this._stopLoadingImages(t)):(e.style.visibility="hidden",e.style[o.DomUtil.TRANSFORM]="",this._tileContainer=e,e=this._bgBuffer=t,this._stopLoadingImages(e),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(t){var e,i,n=t.getElementsByTagName("img"),o=0;for(e=0,i=n.length;i>e;e++)n[e].complete&&o++;return o/i},_stopLoadingImages:function(t){var e,i,n,s=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,i=s.length;i>e;e++)n=s[e],n.complete||(n.onload=o.Util.falseFn,n.onerror=o.Util.falseFn,n.src=o.Util.emptyImageUrl,n.parentNode.removeChild(n))}}),o.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=o.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o.bind(this._handleGeolocationResponse,this),i=o.bind(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new o.LatLng(e,i),s=180*t.coords.accuracy/40075017,a=s/Math.cos(o.LatLng.DEG_TO_RAD*e),r=o.latLngBounds([e-s,i-a],[e+s,i+a]),h=this._locateOptions;if(h.setView){var l=Math.min(this.getBoundsZoom(r),h.maxZoom);this.setView(n,l)}var u={latlng:n,bounds:r,timestamp:t.timestamp};for(var c in t.coords)"number"==typeof t.coords[c]&&(u[c]=t.coords[c]);this.fire("locationfound",u)}})}(window,document); \ No newline at end of file diff --git a/beetroot_static/js/searx.js b/beetroot_static/js/searx.js deleted file mode 100644 index 040d57b..0000000 --- a/beetroot_static/js/searx.js +++ /dev/null @@ -1,383 +0,0 @@ -/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -requirejs.config({ - baseUrl: './static/themes/oscar/js', - paths: { - app: '../app' - } -}); -;/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2019 by Alexandre Flament - */ -window.searx = (function(d) { - 'use strict'; - - // add data- properties - var script = d.currentScript || (function() { - var scripts = d.getElementsByTagName('script'); - return scripts[scripts.length - 1]; - })(); - - return { - autocompleter: script.getAttribute('data-autocompleter') === 'true', - method: script.getAttribute('data-method') - }; -})(document); -;/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -if(searx.autocompleter) { - searx.searchResults = new Bloodhound({ - datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'), - queryTokenizer: Bloodhound.tokenizers.whitespace, - remote: './autocompleter?q=%QUERY' - }); - searx.searchResults.initialize(); -} - -$(document).ready(function(){ - var original_search_value = ''; - if(searx.autocompleter) { - $("#q").on('keydown', function(e) { - if(e.which == 13) { - original_search_value = $('#q').val(); - } - }); - $('#q').typeahead(null, { - name: 'search-results', - displayKey: function(result) { - return result; - }, - source: searx.searchResults.ttAdapter() - }); - $('#q').bind('typeahead:selected', function(ev, suggestion) { - if(original_search_value) { - $('#q').val(original_search_value); - } - $("#search_form").submit(); - }); - } -}); -;/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -$(document).ready(function(){ - /** - * focus element if class="autofocus" and id="q" - */ - $('#q.autofocus').focus(); - - /** - * select full content on click if class="select-all-on-click" - */ - $(".select-all-on-click").click(function () { - $(this).select(); - }); - - /** - * change text during btn-collapse click if possible - */ - $('.btn-collapse').click(function() { - var btnTextCollapsed = $(this).data('btn-text-collapsed'); - var btnTextNotCollapsed = $(this).data('btn-text-not-collapsed'); - - if(btnTextCollapsed !== '' && btnTextNotCollapsed !== '') { - if($(this).hasClass('collapsed')) { - new_html = $(this).html().replace(btnTextCollapsed, btnTextNotCollapsed); - } else { - new_html = $(this).html().replace(btnTextNotCollapsed, btnTextCollapsed); - } - $(this).html(new_html); - } - }); - - /** - * change text during btn-toggle click if possible - */ - $('.btn-toggle .btn').click(function() { - var btnClass = 'btn-' + $(this).data('btn-class'); - var btnLabelDefault = $(this).data('btn-label-default'); - var btnLabelToggled = $(this).data('btn-label-toggled'); - if(btnLabelToggled !== '') { - if($(this).hasClass('btn-default')) { - new_html = $(this).html().replace(btnLabelDefault, btnLabelToggled); - } else { - new_html = $(this).html().replace(btnLabelToggled, btnLabelDefault); - } - $(this).html(new_html); - } - $(this).toggleClass(btnClass); - $(this).toggleClass('btn-default'); - }); - - /** - * change text during btn-toggle click if possible - */ - $('.media-loader').click(function() { - var target = $(this).data('target'); - var iframe_load = $(target + ' > iframe'); - var srctest = iframe_load.attr('src'); - if(srctest === undefined || srctest === false){ - iframe_load.attr('src', iframe_load.data('src')); - } - }); - - /** - * Select or deselect every categories on double clic - */ - $(".btn-sm").dblclick(function() { - var btnClass = 'btn-' + $(this).data('btn-class'); // primary - if($(this).hasClass('btn-default')) { - $(".btn-sm > input").attr('checked', 'checked'); - $(".btn-sm > input").prop("checked", true); - $(".btn-sm").addClass(btnClass); - $(".btn-sm").addClass('active'); - $(".btn-sm").removeClass('btn-default'); - } else { - $(".btn-sm > input").attr('checked', ''); - $(".btn-sm > input").removeAttr('checked'); - $(".btn-sm > input").checked = false; - $(".btn-sm").removeClass(btnClass); - $(".btn-sm").removeClass('active'); - $(".btn-sm").addClass('btn-default'); - } - }); - $(".nav-tabs").click(function(a) { - var tabs = $(a.target).parents("ul"); - tabs.children().attr("aria-selected", "false"); - $(a.target).parent().attr("aria-selected", "true"); - }); -}); -;/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -$(document).ready(function(){ - $(".searx_overpass_request").on( "click", function( event ) { - var overpass_url = "https://overpass-api.de/api/interpreter?data="; - var query_start = overpass_url + "[out:json][timeout:25];("; - var query_end = ");out meta;"; - - var osm_id = $(this).data('osm-id'); - var osm_type = $(this).data('osm-type'); - var result_table = $(this).data('result-table'); - var result_table_loadicon = "#" + $(this).data('result-table-loadicon'); - - // tags which can be ignored - var osm_ignore_tags = [ "addr:city", "addr:country", "addr:housenumber", "addr:postcode", "addr:street" ]; - - if(osm_id && osm_type && result_table) { - result_table = "#" + result_table; - var query = null; - switch(osm_type) { - case 'node': - query = query_start + "node(" + osm_id + ");" + query_end; - break; - case 'way': - query = query_start + "way(" + osm_id + ");" + query_end; - break; - case 'relation': - query = query_start + "relation(" + osm_id + ");" + query_end; - break; - default: - break; - } - if(query) { - //alert(query); - var ajaxRequest = $.ajax( query ) - .done(function( html) { - if(html && html.elements && html.elements[0]) { - var element = html.elements[0]; - var newHtml = $(result_table).html(); - for (var row in element.tags) { - if(element.tags.name === null || osm_ignore_tags.indexOf(row) == -1) { - newHtml += "" + row + ""; - switch(row) { - case "phone": - case "fax": - newHtml += "" + element.tags[row] + ""; - break; - case "email": - newHtml += "" + element.tags[row] + ""; - break; - case "website": - case "url": - newHtml += "" + element.tags[row] + ""; - break; - case "wikidata": - newHtml += "" + element.tags[row] + ""; - break; - case "wikipedia": - if(element.tags[row].indexOf(":") != -1) { - newHtml += "" + element.tags[row] + ""; - break; - } - /* jshint ignore:start */ - default: - /* jshint ignore:end */ - newHtml += element.tags[row]; - break; - } - newHtml += ""; - } - } - $(result_table).html(newHtml); - $(result_table).removeClass('hidden'); - $(result_table_loadicon).addClass('hidden'); - } - }) - .fail(function() { - $(result_table_loadicon).html($(result_table_loadicon).html() + "

"+could_not_load+"

"); - }); - } - } - - // this event occour only once per element - $( this ).off( event ); - }); - - $(".searx_init_map").on( "click", function( event ) { - var leaflet_target = $(this).data('leaflet-target'); - var map_lon = $(this).data('map-lon'); - var map_lat = $(this).data('map-lat'); - var map_zoom = $(this).data('map-zoom'); - var map_boundingbox = $(this).data('map-boundingbox'); - var map_geojson = $(this).data('map-geojson'); - - require(['leaflet-0.7.3.min'], function(leaflet) { - if(map_boundingbox) { - southWest = L.latLng(map_boundingbox[0], map_boundingbox[2]); - northEast = L.latLng(map_boundingbox[1], map_boundingbox[3]); - map_bounds = L.latLngBounds(southWest, northEast); - } - - // TODO hack - // change default imagePath - L.Icon.Default.imagePath = "./static/themes/oscar/img/map"; - - // init map - var map = L.map(leaflet_target); - - // create the tile layer with correct attribution - var osmMapnikUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; - var osmMapnikAttrib='Map data © OpenStreetMap contributors'; - var osmMapnik = new L.TileLayer(osmMapnikUrl, {minZoom: 1, maxZoom: 19, attribution: osmMapnikAttrib}); - - var osmWikimediaUrl='https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png'; - var osmWikimediaAttrib = 'Wikimedia maps beta | Maps data © OpenStreetMap contributors'; - var osmWikimedia = new L.TileLayer(osmWikimediaUrl, {minZoom: 1, maxZoom: 19, attribution: osmWikimediaAttrib}); - - // init map view - if(map_bounds) { - // TODO hack: https://github.com/Leaflet/Leaflet/issues/2021 - setTimeout(function () { - map.fitBounds(map_bounds, { - maxZoom:17 - }); - }, 0); - } else if (map_lon && map_lat) { - if(map_zoom) - map.setView(new L.LatLng(map_lat, map_lon),map_zoom); - else - map.setView(new L.LatLng(map_lat, map_lon),8); - } - - map.addLayer(osmMapnik); - - var baseLayers = { - "OSM Mapnik": osmMapnik/*, - "OSM Wikimedia": osmWikimedia*/ - }; - - L.control.layers(baseLayers).addTo(map); - - - if(map_geojson) - L.geoJson(map_geojson).addTo(map); - /*else if(map_bounds) - L.rectangle(map_bounds, {color: "#ff7800", weight: 3, fill:false}).addTo(map);*/ - }); - - // this event occour only once per element - $( this ).off( event ); - }); -}); -;$(document).ready(function(){ - $("#allow-all-engines").click(function() { - $(".onoffswitch-checkbox").each(function() { this.checked = false;}); - }); - - $("#disable-all-engines").click(function() { - $(".onoffswitch-checkbox").each(function() { this.checked = true;}); - }); -}); - diff --git a/beetroot_static/js/searx.min.js b/beetroot_static/js/searx.min.js deleted file mode 100644 index a6ba8b3..0000000 --- a/beetroot_static/js/searx.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! oscar/searx.min.js | 06-07-2020 | */ -requirejs.config({baseUrl:"./static/themes/oscar/js",paths:{app:"../app"}}),window.searx=function(a){"use strict";var b=a.currentScript||function(){var b=a.getElementsByTagName("script");return b[b.length-1]}();return{autocompleter:"true"===b.getAttribute("data-autocompleter"),method:b.getAttribute("data-method")}}(document),searx.autocompleter&&(searx.searchResults=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("value"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:"./autocompleter?q=%QUERY"}),searx.searchResults.initialize()),$(document).ready(function(){var a="";searx.autocompleter&&($("#q").on("keydown",function(b){13==b.which&&(a=$("#q").val())}),$("#q").typeahead(null,{name:"search-results",displayKey:function(a){return a},source:searx.searchResults.ttAdapter()}),$("#q").bind("typeahead:selected",function(b,c){a&&$("#q").val(a),$("#search_form").submit()}))}),$(document).ready(function(){$("#q.autofocus").focus(),$(".select-all-on-click").click(function(){$(this).select()}),$(".btn-collapse").click(function(){var a=$(this).data("btn-text-collapsed"),b=$(this).data("btn-text-not-collapsed");""!==a&&""!==b&&($(this).hasClass("collapsed")?new_html=$(this).html().replace(a,b):new_html=$(this).html().replace(b,a),$(this).html(new_html))}),$(".btn-toggle .btn").click(function(){var a="btn-"+$(this).data("btn-class"),b=$(this).data("btn-label-default"),c=$(this).data("btn-label-toggled");""!==c&&($(this).hasClass("btn-default")?new_html=$(this).html().replace(b,c):new_html=$(this).html().replace(c,b),$(this).html(new_html)),$(this).toggleClass(a),$(this).toggleClass("btn-default")}),$(".media-loader").click(function(){var a=$(this).data("target"),b=$(a+" > iframe"),c=b.attr("src");void 0!==c&&!1!==c||b.attr("src",b.data("src"))}),$(".btn-sm").dblclick(function(){var a="btn-"+$(this).data("btn-class");$(this).hasClass("btn-default")?($(".btn-sm > input").attr("checked","checked"),$(".btn-sm > input").prop("checked",!0),$(".btn-sm").addClass(a),$(".btn-sm").addClass("active"),$(".btn-sm").removeClass("btn-default")):($(".btn-sm > input").attr("checked",""),$(".btn-sm > input").removeAttr("checked"),$(".btn-sm > input").checked=!1,$(".btn-sm").removeClass(a),$(".btn-sm").removeClass("active"),$(".btn-sm").addClass("btn-default"))}),$(".nav-tabs").click(function(a){$(a.target).parents("ul").children().attr("aria-selected","false"),$(a.target).parent().attr("aria-selected","true")})}),$(document).ready(function(){$(".searx_overpass_request").on("click",function(a){var b="https://overpass-api.de/api/interpreter?data=",c=b+"[out:json][timeout:25];(",d=");out meta;",e=$(this).data("osm-id"),f=$(this).data("osm-type"),g=$(this).data("result-table"),h="#"+$(this).data("result-table-loadicon"),i=["addr:city","addr:country","addr:housenumber","addr:postcode","addr:street"];if(e&&f&&g){g="#"+g;var j=null;switch(f){case"node":j=c+"node("+e+");"+d;break;case"way":j=c+"way("+e+");"+d;break;case"relation":j=c+"relation("+e+");"+d}if(j){$.ajax(j).done(function(a){if(a&&a.elements&&a.elements[0]){var b=a.elements[0],c=$(g).html();for(var d in b.tags)if(null===b.tags.name||-1==i.indexOf(d)){switch(c+=""+d+"",d){case"phone":case"fax":c+=''+b.tags[d]+"";break;case"email":c+=''+b.tags[d]+"";break;case"website":case"url":c+=''+b.tags[d]+"";break;case"wikidata":c+=''+b.tags[d]+"";break;case"wikipedia":if(-1!=b.tags[d].indexOf(":")){c+=''+b.tags[d]+"";break}default:c+=b.tags[d]}c+=""}$(g).html(c),$(g).removeClass("hidden"),$(h).addClass("hidden")}}).fail(function(){$(h).html($(h).html()+'

'+could_not_load+"

")})}}$(this).off(a)}),$(".searx_init_map").on("click",function(a){var b=$(this).data("leaflet-target"),c=$(this).data("map-lon"),d=$(this).data("map-lat"),e=$(this).data("map-zoom"),f=$(this).data("map-boundingbox"),g=$(this).data("map-geojson");require(["leaflet-0.7.3.min"],function(a){f&&(southWest=L.latLng(f[0],f[2]),northEast=L.latLng(f[1],f[3]),map_bounds=L.latLngBounds(southWest,northEast)),L.Icon.Default.imagePath="./static/themes/oscar/img/map";var h=L.map(b),i="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",j='Map data © OpenStreetMap contributors',k=new L.TileLayer(i,{minZoom:1,maxZoom:19,attribution:j}),l="https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png",m='Wikimedia maps beta | Maps data © OpenStreetMap contributors';new L.TileLayer(l,{minZoom:1,maxZoom:19,attribution:m});map_bounds?setTimeout(function(){h.fitBounds(map_bounds,{maxZoom:17})},0):c&&d&&(e?h.setView(new L.LatLng(d,c),e):h.setView(new L.LatLng(d,c),8)),h.addLayer(k);var n={"OSM Mapnik":k};L.control.layers(n).addTo(h),g&&L.geoJson(g).addTo(h)}),$(this).off(a)})}),$(document).ready(function(){$("#allow-all-engines").click(function(){$(".onoffswitch-checkbox").each(function(){this.checked=!1})}),$("#disable-all-engines").click(function(){$(".onoffswitch-checkbox").each(function(){this.checked=!0})})}); \ No newline at end of file diff --git a/beetroot_static/js/searx_src/00_requirejs_config.js b/beetroot_static/js/searx_src/00_requirejs_config.js deleted file mode 100644 index e7c2abd..0000000 --- a/beetroot_static/js/searx_src/00_requirejs_config.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -requirejs.config({ - baseUrl: './static/themes/oscar/js', - paths: { - app: '../app' - } -}); diff --git a/beetroot_static/js/searx_src/01_init.js b/beetroot_static/js/searx_src/01_init.js deleted file mode 100644 index 690365c..0000000 --- a/beetroot_static/js/searx_src/01_init.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2019 by Alexandre Flament - */ -window.searx = (function(d) { - 'use strict'; - - // add data- properties - var script = d.currentScript || (function() { - var scripts = d.getElementsByTagName('script'); - return scripts[scripts.length - 1]; - })(); - - return { - autocompleter: script.getAttribute('data-autocompleter') === 'true', - method: script.getAttribute('data-method') - }; -})(document); diff --git a/beetroot_static/js/searx_src/autocompleter.js b/beetroot_static/js/searx_src/autocompleter.js deleted file mode 100644 index 26d5675..0000000 --- a/beetroot_static/js/searx_src/autocompleter.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -if(searx.autocompleter) { - searx.searchResults = new Bloodhound({ - datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'), - queryTokenizer: Bloodhound.tokenizers.whitespace, - remote: './autocompleter?q=%QUERY' - }); - searx.searchResults.initialize(); -} - -$(document).ready(function(){ - var original_search_value = ''; - if(searx.autocompleter) { - $("#q").on('keydown', function(e) { - if(e.which == 13) { - original_search_value = $('#q').val(); - } - }); - $('#q').typeahead(null, { - name: 'search-results', - displayKey: function(result) { - return result; - }, - source: searx.searchResults.ttAdapter() - }); - $('#q').bind('typeahead:selected', function(ev, suggestion) { - if(original_search_value) { - $('#q').val(original_search_value); - } - $("#search_form").submit(); - }); - } -}); diff --git a/beetroot_static/js/searx_src/element_modifiers.js b/beetroot_static/js/searx_src/element_modifiers.js deleted file mode 100644 index 31fe760..0000000 --- a/beetroot_static/js/searx_src/element_modifiers.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -$(document).ready(function(){ - /** - * focus element if class="autofocus" and id="q" - */ - $('#q.autofocus').focus(); - - /** - * select full content on click if class="select-all-on-click" - */ - $(".select-all-on-click").click(function () { - $(this).select(); - }); - - /** - * change text during btn-collapse click if possible - */ - $('.btn-collapse').click(function() { - var btnTextCollapsed = $(this).data('btn-text-collapsed'); - var btnTextNotCollapsed = $(this).data('btn-text-not-collapsed'); - - if(btnTextCollapsed !== '' && btnTextNotCollapsed !== '') { - if($(this).hasClass('collapsed')) { - new_html = $(this).html().replace(btnTextCollapsed, btnTextNotCollapsed); - } else { - new_html = $(this).html().replace(btnTextNotCollapsed, btnTextCollapsed); - } - $(this).html(new_html); - } - }); - - /** - * change text during btn-toggle click if possible - */ - $('.btn-toggle .btn').click(function() { - var btnClass = 'btn-' + $(this).data('btn-class'); - var btnLabelDefault = $(this).data('btn-label-default'); - var btnLabelToggled = $(this).data('btn-label-toggled'); - if(btnLabelToggled !== '') { - if($(this).hasClass('btn-default')) { - new_html = $(this).html().replace(btnLabelDefault, btnLabelToggled); - } else { - new_html = $(this).html().replace(btnLabelToggled, btnLabelDefault); - } - $(this).html(new_html); - } - $(this).toggleClass(btnClass); - $(this).toggleClass('btn-default'); - }); - - /** - * change text during btn-toggle click if possible - */ - $('.media-loader').click(function() { - var target = $(this).data('target'); - var iframe_load = $(target + ' > iframe'); - var srctest = iframe_load.attr('src'); - if(srctest === undefined || srctest === false){ - iframe_load.attr('src', iframe_load.data('src')); - } - }); - - /** - * Select or deselect every categories on double clic - */ - $(".btn-sm").dblclick(function() { - var btnClass = 'btn-' + $(this).data('btn-class'); // primary - if($(this).hasClass('btn-default')) { - $(".btn-sm > input").attr('checked', 'checked'); - $(".btn-sm > input").prop("checked", true); - $(".btn-sm").addClass(btnClass); - $(".btn-sm").addClass('active'); - $(".btn-sm").removeClass('btn-default'); - } else { - $(".btn-sm > input").attr('checked', ''); - $(".btn-sm > input").removeAttr('checked'); - $(".btn-sm > input").checked = false; - $(".btn-sm").removeClass(btnClass); - $(".btn-sm").removeClass('active'); - $(".btn-sm").addClass('btn-default'); - } - }); - $(".nav-tabs").click(function(a) { - var tabs = $(a.target).parents("ul"); - tabs.children().attr("aria-selected", "false"); - $(a.target).parent().attr("aria-selected", "true"); - }); -}); diff --git a/beetroot_static/js/searx_src/leaflet_map.js b/beetroot_static/js/searx_src/leaflet_map.js deleted file mode 100644 index 06931b4..0000000 --- a/beetroot_static/js/searx_src/leaflet_map.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * searx is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * searx is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with searx. If not, see < http://www.gnu.org/licenses/ >. - * - * (C) 2014 by Thomas Pointhuber, - */ - -$(document).ready(function(){ - $(".searx_overpass_request").on( "click", function( event ) { - var overpass_url = "https://overpass-api.de/api/interpreter?data="; - var query_start = overpass_url + "[out:json][timeout:25];("; - var query_end = ");out meta;"; - - var osm_id = $(this).data('osm-id'); - var osm_type = $(this).data('osm-type'); - var result_table = $(this).data('result-table'); - var result_table_loadicon = "#" + $(this).data('result-table-loadicon'); - - // tags which can be ignored - var osm_ignore_tags = [ "addr:city", "addr:country", "addr:housenumber", "addr:postcode", "addr:street" ]; - - if(osm_id && osm_type && result_table) { - result_table = "#" + result_table; - var query = null; - switch(osm_type) { - case 'node': - query = query_start + "node(" + osm_id + ");" + query_end; - break; - case 'way': - query = query_start + "way(" + osm_id + ");" + query_end; - break; - case 'relation': - query = query_start + "relation(" + osm_id + ");" + query_end; - break; - default: - break; - } - if(query) { - //alert(query); - var ajaxRequest = $.ajax( query ) - .done(function( html) { - if(html && html.elements && html.elements[0]) { - var element = html.elements[0]; - var newHtml = $(result_table).html(); - for (var row in element.tags) { - if(element.tags.name === null || osm_ignore_tags.indexOf(row) == -1) { - newHtml += "" + row + ""; - switch(row) { - case "phone": - case "fax": - newHtml += "" + element.tags[row] + ""; - break; - case "email": - newHtml += "" + element.tags[row] + ""; - break; - case "website": - case "url": - newHtml += "" + element.tags[row] + ""; - break; - case "wikidata": - newHtml += "" + element.tags[row] + ""; - break; - case "wikipedia": - if(element.tags[row].indexOf(":") != -1) { - newHtml += "" + element.tags[row] + ""; - break; - } - /* jshint ignore:start */ - default: - /* jshint ignore:end */ - newHtml += element.tags[row]; - break; - } - newHtml += ""; - } - } - $(result_table).html(newHtml); - $(result_table).removeClass('hidden'); - $(result_table_loadicon).addClass('hidden'); - } - }) - .fail(function() { - $(result_table_loadicon).html($(result_table_loadicon).html() + "

"+could_not_load+"

"); - }); - } - } - - // this event occour only once per element - $( this ).off( event ); - }); - - $(".searx_init_map").on( "click", function( event ) { - var leaflet_target = $(this).data('leaflet-target'); - var map_lon = $(this).data('map-lon'); - var map_lat = $(this).data('map-lat'); - var map_zoom = $(this).data('map-zoom'); - var map_boundingbox = $(this).data('map-boundingbox'); - var map_geojson = $(this).data('map-geojson'); - - require(['leaflet-0.7.3.min'], function(leaflet) { - if(map_boundingbox) { - southWest = L.latLng(map_boundingbox[0], map_boundingbox[2]); - northEast = L.latLng(map_boundingbox[1], map_boundingbox[3]); - map_bounds = L.latLngBounds(southWest, northEast); - } - - // TODO hack - // change default imagePath - L.Icon.Default.imagePath = "./static/themes/oscar/img/map"; - - // init map - var map = L.map(leaflet_target); - - // create the tile layer with correct attribution - var osmMapnikUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; - var osmMapnikAttrib='Map data © OpenStreetMap contributors'; - var osmMapnik = new L.TileLayer(osmMapnikUrl, {minZoom: 1, maxZoom: 19, attribution: osmMapnikAttrib}); - - var osmWikimediaUrl='https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png'; - var osmWikimediaAttrib = 'Wikimedia maps beta | Maps data © OpenStreetMap contributors'; - var osmWikimedia = new L.TileLayer(osmWikimediaUrl, {minZoom: 1, maxZoom: 19, attribution: osmWikimediaAttrib}); - - // init map view - if(map_bounds) { - // TODO hack: https://github.com/Leaflet/Leaflet/issues/2021 - setTimeout(function () { - map.fitBounds(map_bounds, { - maxZoom:17 - }); - }, 0); - } else if (map_lon && map_lat) { - if(map_zoom) - map.setView(new L.LatLng(map_lat, map_lon),map_zoom); - else - map.setView(new L.LatLng(map_lat, map_lon),8); - } - - map.addLayer(osmMapnik); - - var baseLayers = { - "OSM Mapnik": osmMapnik/*, - "OSM Wikimedia": osmWikimedia*/ - }; - - L.control.layers(baseLayers).addTo(map); - - - if(map_geojson) - L.geoJson(map_geojson).addTo(map); - /*else if(map_bounds) - L.rectangle(map_bounds, {color: "#ff7800", weight: 3, fill:false}).addTo(map);*/ - }); - - // this event occour only once per element - $( this ).off( event ); - }); -}); diff --git a/beetroot_static/js/searx_src/toggleall.js b/beetroot_static/js/searx_src/toggleall.js deleted file mode 100644 index b6c484e..0000000 --- a/beetroot_static/js/searx_src/toggleall.js +++ /dev/null @@ -1,10 +0,0 @@ -$(document).ready(function(){ - $("#allow-all-engines").click(function() { - $(".onoffswitch-checkbox").each(function() { this.checked = false;}); - }); - - $("#disable-all-engines").click(function() { - $(".onoffswitch-checkbox").each(function() { this.checked = true;}); - }); -}); - diff --git a/beetroot_static/less/logicodev-dark/beetroot.less b/beetroot_static/less/logicodev-dark/beetroot.less deleted file mode 100644 index e788b8c..0000000 --- a/beetroot_static/less/logicodev-dark/beetroot.less +++ /dev/null @@ -1,245 +0,0 @@ -@import "../logicodev/variables.less"; -@import "../logicodev/footer.less"; -@import "../logicodev/checkbox.less"; -@import "../logicodev/onoff.less"; -@import "../logicodev/results.less"; -@import "../logicodev/infobox.less"; -@import "../logicodev/search.less"; -@import "../logicodev/advanced.less"; -@import "../logicodev/cursor.less"; -@import "../logicodev/code.less"; -@import "../logicodev/preferences.less"; - -/*Global*/ -body { - background:#1d1f21 none !important; - color:#D5D8D7 !important; -} - -a { - color:#41a2ce !important; - text-decoration: none !important; -} - -a:hover { - color:#5F89AC !important; -} - -input, button, textarea, select { - border: 1px solid #282a2e !important; - background-color: #444 !important; - color: #BBB !important; -} - -input:focus, button:focus, textarea:focus, select:focus { - border: 1px solid #C5C8C6 !important; - box-shadow: initial !important; -} - -div#advanced-search-container div#categories label{ - background:none; - border: 1px solid #282a2e; -} - -ul.nav li a { - border: 0 !important; - border-bottom: 1px solid #4d3f43 !important; -} - -#categories *, .modal-wrapper * { - background:#1d1f21 none !important; - color:#D5D8D7 !important; -} - -#categories *, { - border: 1px solid #3d3f43 !important; -} - -#categories *:checked + label { - border-bottom: 4px solid #3d9f94 !important; -} - -.result-content, .result-source, .result-format { - color:#B5B8B7 !important; -} - -.external-link { - color:#35B887 !important; -} - -.table-striped tr td, .table-striped tr th { - border-color: #4d3f43 !important; -} - -.highlight { - background: #333333 !important; -} - -/*nav*/ -.navbar{ - background:#1d1f21 none; - border: none; -} - -.navbar .active, .menu { - background: none !important; -} - -.label-default { - background: none; - color: #BBB; -} - -.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus, .nav-tabs.nav-justified > .active > a{ - background-color: #282a2e !important; - -} - -/*Search Page*/ -.result-default:hover, .result-code:hover, .result-torrent:hover, .result-videos:hover, .result-map:hover { - background-color: #222426; -} - -/*buttons*/ -.btn { - color: #BBB; - background-color: #444 ; - border: 1px solid #282a2e; -} - -.btn:hover { - color:#444 !important; - background-color: #BBB !important; -} - -.btn-primary.active { - color: #C5C8C6; - background-color: #5F89AC; - border-color: #5F89AC; -} - -/*Right Pannels*/ -.panel { - border: 1px solid #111; - background: none; -} - -.panel-heading { - color: #C5C8C6 !important; - background: #282a2e !important; - border-bottom: none; -} - -.panel-body { - color: #C5C8C6 !important; - background: #1d1f21 !important; - border-color: #111 !important; -} - -p.btn.btn-default{ - background: none; -} - -.table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th, .table-striped>thead>tr:nth-child(odd)>th { - background:#2d2f32 none !important; - color:#D5D8D7 !important; -} - -.label-success { - background:#1d6f42 none !important; -} - -.label-danger { - background:#ad1f12 none !important; -} - -.searx-navbar { - background: #333334; - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: bold; - margin-bottom: 0.8rem; - - a, a:hover { - margin-right: 2.0rem; - color: white; - text-decoration: none; - } - - .instance a { - color: @light-green; - margin-left: 2.0rem; - } -} - -#main-logo { - margin-top: 20vh; - margin-bottom: 25px; - - & > img { - max-width: 350px; - width: 80%; - } -} - -.onoffswitch-inner:before, .onoffswitch-inner:after { - background:#1d1f21 none !important; -} - -.onoffswitch-switch, .onoffswitch-label { - border: 2px solid #3d3f43 !important; -} - -.nav>li>a:hover, .nav>li>a:focus { - background-color: #3d3f43 !important; -} - -/*Images search*/ -.img-thumbnail, .thumbnail { - padding: 0px; - line-height: 1.42857143; - background: none; - border: none; -} - -.modal-content { - background:#1d1f21 none !important; -} - -/*Preferences*/ - -.table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { - background: RGBA(240, 0, 0, 0.56) !important; - color: #C5C8C6 !important; -} - -.table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { - background: RGBA(237, 59, 59, 0.61) !important; - color: #C5C8C6 !important; -} - -.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { - background: rgb(102, 105, 110) !important; -} - -.btn-success { - color: #C5C8C6; - background: #449d44; -} - -.btn-danger { - color: #C5C8C6; - background: #d9534f; - -} - -.well { - background: #444; - border-color: #282a2e; -} - -.highlight { - background-color: transparent !important; -} diff --git a/beetroot_static/less/logicodev-dark/oscar.less b/beetroot_static/less/logicodev-dark/oscar.less deleted file mode 100644 index e788b8c..0000000 --- a/beetroot_static/less/logicodev-dark/oscar.less +++ /dev/null @@ -1,245 +0,0 @@ -@import "../logicodev/variables.less"; -@import "../logicodev/footer.less"; -@import "../logicodev/checkbox.less"; -@import "../logicodev/onoff.less"; -@import "../logicodev/results.less"; -@import "../logicodev/infobox.less"; -@import "../logicodev/search.less"; -@import "../logicodev/advanced.less"; -@import "../logicodev/cursor.less"; -@import "../logicodev/code.less"; -@import "../logicodev/preferences.less"; - -/*Global*/ -body { - background:#1d1f21 none !important; - color:#D5D8D7 !important; -} - -a { - color:#41a2ce !important; - text-decoration: none !important; -} - -a:hover { - color:#5F89AC !important; -} - -input, button, textarea, select { - border: 1px solid #282a2e !important; - background-color: #444 !important; - color: #BBB !important; -} - -input:focus, button:focus, textarea:focus, select:focus { - border: 1px solid #C5C8C6 !important; - box-shadow: initial !important; -} - -div#advanced-search-container div#categories label{ - background:none; - border: 1px solid #282a2e; -} - -ul.nav li a { - border: 0 !important; - border-bottom: 1px solid #4d3f43 !important; -} - -#categories *, .modal-wrapper * { - background:#1d1f21 none !important; - color:#D5D8D7 !important; -} - -#categories *, { - border: 1px solid #3d3f43 !important; -} - -#categories *:checked + label { - border-bottom: 4px solid #3d9f94 !important; -} - -.result-content, .result-source, .result-format { - color:#B5B8B7 !important; -} - -.external-link { - color:#35B887 !important; -} - -.table-striped tr td, .table-striped tr th { - border-color: #4d3f43 !important; -} - -.highlight { - background: #333333 !important; -} - -/*nav*/ -.navbar{ - background:#1d1f21 none; - border: none; -} - -.navbar .active, .menu { - background: none !important; -} - -.label-default { - background: none; - color: #BBB; -} - -.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus, .nav-tabs.nav-justified > .active > a{ - background-color: #282a2e !important; - -} - -/*Search Page*/ -.result-default:hover, .result-code:hover, .result-torrent:hover, .result-videos:hover, .result-map:hover { - background-color: #222426; -} - -/*buttons*/ -.btn { - color: #BBB; - background-color: #444 ; - border: 1px solid #282a2e; -} - -.btn:hover { - color:#444 !important; - background-color: #BBB !important; -} - -.btn-primary.active { - color: #C5C8C6; - background-color: #5F89AC; - border-color: #5F89AC; -} - -/*Right Pannels*/ -.panel { - border: 1px solid #111; - background: none; -} - -.panel-heading { - color: #C5C8C6 !important; - background: #282a2e !important; - border-bottom: none; -} - -.panel-body { - color: #C5C8C6 !important; - background: #1d1f21 !important; - border-color: #111 !important; -} - -p.btn.btn-default{ - background: none; -} - -.table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th, .table-striped>thead>tr:nth-child(odd)>th { - background:#2d2f32 none !important; - color:#D5D8D7 !important; -} - -.label-success { - background:#1d6f42 none !important; -} - -.label-danger { - background:#ad1f12 none !important; -} - -.searx-navbar { - background: #333334; - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: bold; - margin-bottom: 0.8rem; - - a, a:hover { - margin-right: 2.0rem; - color: white; - text-decoration: none; - } - - .instance a { - color: @light-green; - margin-left: 2.0rem; - } -} - -#main-logo { - margin-top: 20vh; - margin-bottom: 25px; - - & > img { - max-width: 350px; - width: 80%; - } -} - -.onoffswitch-inner:before, .onoffswitch-inner:after { - background:#1d1f21 none !important; -} - -.onoffswitch-switch, .onoffswitch-label { - border: 2px solid #3d3f43 !important; -} - -.nav>li>a:hover, .nav>li>a:focus { - background-color: #3d3f43 !important; -} - -/*Images search*/ -.img-thumbnail, .thumbnail { - padding: 0px; - line-height: 1.42857143; - background: none; - border: none; -} - -.modal-content { - background:#1d1f21 none !important; -} - -/*Preferences*/ - -.table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { - background: RGBA(240, 0, 0, 0.56) !important; - color: #C5C8C6 !important; -} - -.table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { - background: RGBA(237, 59, 59, 0.61) !important; - color: #C5C8C6 !important; -} - -.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { - background: rgb(102, 105, 110) !important; -} - -.btn-success { - color: #C5C8C6; - background: #449d44; -} - -.btn-danger { - color: #C5C8C6; - background: #d9534f; - -} - -.well { - background: #444; - border-color: #282a2e; -} - -.highlight { - background-color: transparent !important; -} diff --git a/beetroot_static/less/logicodev/advanced.less b/beetroot_static/less/logicodev/advanced.less deleted file mode 100644 index b8e10de..0000000 --- a/beetroot_static/less/logicodev/advanced.less +++ /dev/null @@ -1,49 +0,0 @@ -#advanced-search-container { - display: none; - text-align: left; - margin-bottom: 1rem; - clear: both; - - label, .input-group-addon { - font-size: 1.2rem; - font-weight:normal; - background-color: white; - border: @mild-gray 1px solid; - border-right: none; - color: @dark-gray; - padding-bottom: 0.4rem; - padding-right: 0.7rem; - padding-left: 0.7rem; - } - - label:last-child, .input-group-addon:last-child { - border-right: @mild-gray 1px solid; - } - - input[type="radio"] { - display: none; - } - - input[type="radio"]:checked + label{ - color: @black; - font-weight: bold; - border-bottom: @light-green 5px solid; - } -} - -#check-advanced:focus + label { - text-decoration: underline; -} - -#check-advanced:checked ~ #advanced-search-container { - display: block; -} - -.advanced { - padding: 0; - margin-top: 0.3rem; - text-align: right; - label, select { - cursor: pointer; - } -} diff --git a/beetroot_static/less/logicodev/beetroot.less b/beetroot_static/less/logicodev/beetroot.less deleted file mode 100644 index da80d1e..0000000 --- a/beetroot_static/less/logicodev/beetroot.less +++ /dev/null @@ -1,23 +0,0 @@ -@import "variables.less"; - -@import "navbar.less"; - -@import "footer.less"; - -@import "checkbox.less"; - -@import "onoff.less"; - -@import "results.less"; - -@import "infobox.less"; - -@import "search.less"; - -@import "advanced.less"; - -@import "cursor.less"; - -@import "code.less"; - -@import "preferences.less"; diff --git a/beetroot_static/less/logicodev/checkbox.less b/beetroot_static/less/logicodev/checkbox.less deleted file mode 100644 index 6428b36..0000000 --- a/beetroot_static/less/logicodev/checkbox.less +++ /dev/null @@ -1,9 +0,0 @@ -// Hide element if checkbox is checked -input[type=checkbox]:checked + .label_hide_if_checked, input[type=checkbox]:checked + .label_hide_if_not_checked + .label_hide_if_checked { - display:none; -} - -// Hide element if checkbox is not checked -input[type=checkbox]:not(:checked) + .label_hide_if_not_checked, input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked { - display:none; -} diff --git a/beetroot_static/less/logicodev/code.less b/beetroot_static/less/logicodev/code.less deleted file mode 100644 index 491b30e..0000000 --- a/beetroot_static/less/logicodev/code.less +++ /dev/null @@ -1,101 +0,0 @@ -pre, code{ - font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important; -} - -.lineno{ - margin-right: 5px; -} - -.highlight .hll { background-color: #ffffcc } -.highlight { background: #f8f8f8; } -.highlight .c { color: #556366; font-style: italic } /* Comment */ -.highlight .err { border: 1px solid @orange } /* Error */ -.highlight .k { color: #BE74D5; font-weight: bold } /* Keyword */ -.highlight .o { color: #D19A66 } /* Operator */ -.highlight .cm { color: #556366; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #BC7A00 } /* Comment.Preproc */ -.highlight .c1 { color: #556366; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #556366; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #A00000 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #FF0000 } /* Generic.Error */ -.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #00A000 } /* Generic.Inserted */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -.highlight .gt { color: #0044DD } /* Generic.Traceback */ -.highlight .kc { color: #BE74D5; font-weight: bold } /* Keyword.Constant */ -.highlight .kd { color: #BE74D5; font-weight: bold } /* Keyword.Declaration */ -.highlight .kn { color: #BE74D5; font-weight: bold } /* Keyword.Namespace */ -.highlight .kp { color: #BE74D5 } /* Keyword.Pseudo */ -.highlight .kr { color: #BE74D5; font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #D46C72 } /* Keyword.Type */ -.highlight .m { color: #D19A66 } /* Literal.Number */ -.highlight .s { color: #86C372 } /* Literal.String */ -.highlight .na { color: #7D9029 } /* Name.Attribute */ -.highlight .nb { color: #BE74D5 } /* Name.Builtin */ -.highlight .nc { color: #61AFEF; font-weight: bold } /* Name.Class */ -.highlight .no { color: #D19A66 } /* Name.Constant */ -.highlight .nd { color: #AA22FF } /* Name.Decorator */ -.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ -.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #61AFEF } /* Name.Function */ -.highlight .nl { color: #A0A000 } /* Name.Label */ -.highlight .nn { color: #61AFEF; font-weight: bold } /* Name.Namespace */ -.highlight .nt { color: #BE74D5; font-weight: bold } /* Name.Tag */ -.highlight .nv { color: #DFC06F } /* Name.Variable */ -.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ -.highlight .w { color: #D7DAE0 } /* Text.Whitespace */ -.highlight .mf { color: #D19A66 } /* Literal.Number.Float */ -.highlight .mh { color: #D19A66 } /* Literal.Number.Hex */ -.highlight .mi { color: #D19A66 } /* Literal.Number.Integer */ -.highlight .mo { color: #D19A66 } /* Literal.Number.Oct */ -.highlight .sb { color: #86C372 } /* Literal.String.Backtick */ -.highlight .sc { color: #86C372 } /* Literal.String.Char */ -.highlight .sd { color: #86C372; font-style: italic } /* Literal.String.Doc */ -.highlight .s2 { color: #86C372 } /* Literal.String.Double */ -.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ -.highlight .sh { color: #86C372 } /* Literal.String.Heredoc */ -.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ -.highlight .sx { color: #BE74D5 } /* Literal.String.Other */ -.highlight .sr { color: #BB6688 } /* Literal.String.Regex */ -.highlight .s1 { color: #86C372 } /* Literal.String.Single */ -.highlight .ss { color: #DFC06F } /* Literal.String.Symbol */ -.highlight .bp { color: #BE74D5 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #DFC06F } /* Name.Variable.Class */ -.highlight .vg { color: #DFC06F } /* Name.Variable.Global */ -.highlight .vi { color: #DFC06F } /* Name.Variable.Instance */ -.highlight .il { color: #D19A66 } /* Literal.Number.Integer.Long */ - -.highlight .lineno { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - color: #556366; - - &::selection { - background: transparent; /* WebKit/Blink Browsers */ - } - &::-moz-selection { - background: transparent; /* Gecko Browsers */ - } -} - -.highlight pre { - background-color: #282C34; - color: #D7DAE0; - border: none; - margin-bottom: 25px; - font-size: 15px; - padding: 20px 10px; -} - -.highlight { - font-weight: 700; -} diff --git a/beetroot_static/less/logicodev/cursor.less b/beetroot_static/less/logicodev/cursor.less deleted file mode 100644 index cbc1ea6..0000000 --- a/beetroot_static/less/logicodev/cursor.less +++ /dev/null @@ -1,8 +0,0 @@ -// display cursor -.cursor-text { - cursor: text !important; -} - -.cursor-pointer { - cursor: pointer !important; -} diff --git a/beetroot_static/less/logicodev/footer.less b/beetroot_static/less/logicodev/footer.less deleted file mode 100644 index d23a0cc..0000000 --- a/beetroot_static/less/logicodev/footer.less +++ /dev/null @@ -1,30 +0,0 @@ -// Sticky footer styles -*{ - border-radius: 0 !important; -} -html { - position: relative; - min-height: 100%; - color: @black; -} - -body { - /* Margin bottom by footer height */ - font-family: 'Roboto', Helvetica, Arial, sans-serif; - margin-bottom: 80px; - background-color: white; - - a{ - color: @blue; - } -} - -.footer { - position: absolute; - bottom: 0; - width: 100%; - /* Set the fixed height of the footer here */ - height: 60px; - text-align: center; - color: #999; -} diff --git a/beetroot_static/less/logicodev/infobox.less b/beetroot_static/less/logicodev/infobox.less deleted file mode 100644 index 86b8afb..0000000 --- a/beetroot_static/less/logicodev/infobox.less +++ /dev/null @@ -1,37 +0,0 @@ -.infobox { - - .panel-heading{ - background-color: @dim-gray; - - .panel-title{ - font-weight: 700; - } - } - - - p{ - font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important; - font-style: italic; - } - - .btn{ - background-color: @dark-blue; - border: none; - - a{ - color: white; - margin: 5px; - } - } - - .infobox_part { - margin-bottom: 20px; - word-wrap: break-word; - table-layout: fixed; - - } - - .infobox_part:last-child { - margin-bottom: 0; - } -} diff --git a/beetroot_static/less/logicodev/navbar.less b/beetroot_static/less/logicodev/navbar.less deleted file mode 100644 index 6e4f9ee..0000000 --- a/beetroot_static/less/logicodev/navbar.less +++ /dev/null @@ -1,30 +0,0 @@ -.searx-navbar { - background: @black; - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: bold; - margin-bottom: 0.8rem; - - a, a:hover { - margin-right: 2.0rem; - color: white; - text-decoration: none; - } - - .instance a { - color: @light-green; - margin-left: 2.0rem; - } -} - -#main-logo { - margin-top: 20vh; - margin-bottom: 25px; - - & > img { - max-width: 350px; - width: 80%; - } -} diff --git a/beetroot_static/less/logicodev/onoff.less b/beetroot_static/less/logicodev/onoff.less deleted file mode 100644 index a0ce919..0000000 --- a/beetroot_static/less/logicodev/onoff.less +++ /dev/null @@ -1,73 +0,0 @@ -.onoff-checkbox { - width:15%; -} -.onoffswitch { - position: relative; - width: 110px; - -webkit-user-select:none; - -moz-user-select:none; - -ms-user-select: none; -} -.onoffswitch-checkbox { - opacity: 0; - position: absolute; -} -.onoffswitch-checkbox:before { - content: ""; - display: inline-block; - width: 16px; - height: 16px; - margin-right: 10px; - position: absolute; - left: 0; - bottom: 1px; - background-color: #fff; - border: 1px solid #ccc; - border-radius: 0px;} -.onoffswitch-label { - display: block; - overflow: hidden; - cursor: pointer; - border: 2px solid #FFFFFF; - border-radius: 50px !important; -} -.onoffswitch-inner { - display: block; - transition: margin 0.3s ease-in 0s; -} - -.onoffswitch-inner:before, .onoffswitch-inner:after { - display: block; - float: left; - width: 50%; - height: 30px; - padding: 0; - line-height: 40px; - font-size: 20px; - box-sizing: border-box; - content: ""; - background-color: #EEEEEE; -} - -.onoffswitch-switch { - display: block; - width: 37px; - background-color: @light-green; - position: absolute; - top: 0; - bottom: 0; - right: 0px; - border: 2px solid #FFFFFF !important; - border-radius: 50px !important; - transition: all 0.3s ease-in 0s; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { - margin-right: 0; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { - right: 71px; - background-color: #A1A1A1; -} -.onoffswitch-checkbox:focus + .onoffswitch-label .onoffswitch-switch { - border: 3px solid #444444; -} diff --git a/beetroot_static/less/logicodev/oscar.less b/beetroot_static/less/logicodev/oscar.less deleted file mode 100644 index da80d1e..0000000 --- a/beetroot_static/less/logicodev/oscar.less +++ /dev/null @@ -1,23 +0,0 @@ -@import "variables.less"; - -@import "navbar.less"; - -@import "footer.less"; - -@import "checkbox.less"; - -@import "onoff.less"; - -@import "results.less"; - -@import "infobox.less"; - -@import "search.less"; - -@import "advanced.less"; - -@import "cursor.less"; - -@import "code.less"; - -@import "preferences.less"; diff --git a/beetroot_static/less/logicodev/preferences.less b/beetroot_static/less/logicodev/preferences.less deleted file mode 100644 index a0c6012..0000000 --- a/beetroot_static/less/logicodev/preferences.less +++ /dev/null @@ -1,14 +0,0 @@ -.table > tbody > tr > td, .table > tbody > tr > th { - vertical-align: middle !important; -} -.nav-tabs.nav-justified{ - margin-bottom: 20px; -} - -p { - margin: 10px 0; -} - -input.cursor-text { - margin: 10px 0; -} diff --git a/beetroot_static/less/logicodev/results.less b/beetroot_static/less/logicodev/results.less deleted file mode 100644 index 2047081..0000000 --- a/beetroot_static/less/logicodev/results.less +++ /dev/null @@ -1,192 +0,0 @@ -.result_header { - margin-top: 0px; - margin-bottom: 2px; - font-size: 16px; - - .favicon { - margin-bottom:-3px; - } - - a { - color: @black; - text-decoration: none; - - &:hover{ - color: @blue; - } - - &:visited{ - color: @violet; - } - - .highlight { - background-color: @dim-gray; - // Chrome hack: bold is different size than normal - // https://stackoverflow.com/questions/20713988/weird-text-alignment-issue-in-css-when-bolded-lucida-sans - } - } -} - -.result-content, .result-format, .result-source { - margin-top: 2px; - margin-bottom: 0; - word-wrap: break-word; - color: @dark-gray; - font-size: 13px; - - - .highlight { - font-weight:bold; - } - -} - -.result-source { - font-size: 10px; - float: left; -} - -.result-format { - font-size: 10px; - float: right; -} - -.external-link { - color: @dark-green; - font-size: 12px; - margin-bottom: 15px; - - a { - margin-right: 3px; - } -} - -// default formating of results -.result-default, .result-code, .result-torrent, .result-videos, .result-map { - clear: both; - padding: 0.5em 4px; - &:hover{ - background-color: @dim-gray; - } -} - - -// image formating of results -.result-images { - float: left !important; - width: 24%; - margin: .5%; - a { - display: block; - width: 100%; - background-size: cover; - } -} - -.img-thumbnail { - margin: 5px; - max-height: 128px; - min-height: 128px; -} - -// video formating of results -.result-videos { - clear: both; - - hr{ - margin: 5px 0 15px 0; - } - - .collapse{ - width: 100%; - } - - .in{ - margin-bottom: 8px; - } -} - -// torrent formating of results -.result-torrent { - clear: both; - - b{ - margin-right: 5px; - margin-left: 5px; - } - - .seeders{ - color: @green; - } - - .leechers{ - color: @red; - } -} - -// map formating of results -.result-map { - clear: both; -} - -// code formating of results -.result-code { - clear: both; - - .code-fork, .code-fork a{ - color: @dark-gray; - } - -} - -// suggestion -.suggestion_item { - margin: 2px 5px; - max-width: 100%; - - .btn { - max-width: 100%; - white-space: normal; - word-wrap: break-word; - text-align: left; - } -} - -// download result -.result_download { - margin-right: 5px; -} - -// page forward, backward -#pagination { - margin-top: 30px; - padding-bottom: 60px; -} - -.label-default { - color: @dark-gray; - background: transparent; -} - -.result .text-muted small { - word-wrap: break-word; -} - -.modal-wrapper { - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -} - -.modal-wrapper { - background-clip: padding-box; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - outline: 0 none; - position: relative; -} -@media screen and (max-width: 75em) { - .img-thumbnail { - object-fit: cover; - } -} diff --git a/beetroot_static/less/logicodev/search.less b/beetroot_static/less/logicodev/search.less deleted file mode 100644 index a939815..0000000 --- a/beetroot_static/less/logicodev/search.less +++ /dev/null @@ -1,99 +0,0 @@ -.search_categories, #categories { - text-transform: capitalize; - margin-bottom: 0.5rem; - display: flex; - flex-wrap: wrap; - flex-flow: row wrap; - align-content: stretch; - - label, .input-group-addon { - flex-grow: 1; - flex-basis: auto; - font-size: 1.2rem; - font-weight: normal; - background-color: white; - border: @mild-gray 1px solid; - border-right: none; - color: @dark-gray; - padding-bottom: 0.4rem; - padding-top: 0.4rem; - text-align: center; - min-width: 50px; - } - label:last-child, .input-group-addon:last-child { - border-right: @mild-gray 1px solid; - } - - input[type="checkbox"]:checked + label { - color: @black; - font-weight: bold; - border-bottom: @light-green 5px solid; - } -} - -#main-logo{ - margin-top: 10vh; - margin-bottom: 25px; -} - -#main-logo > img { - max-width: 350px; - width: 80%; -} - -#q{ - box-shadow: none; - border-right: none; - border-color: @semidark-gray; -} - - #search_form .input-group-btn .btn{ - border-color: @semidark-gray; - } - - #search_form .input-group-btn .btn:hover{ - background-color: @dark-green; - color: white; - } - -.custom-select { - appearance: none; - -webkit-appearance: none; - -moz-appearance: none; - font-size: 1.2rem; - font-weight:normal; - background-color: white; - border: @semidark-gray 1px solid; - color: @dark-gray; - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJN -AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZ -cwAABFkAAARZAVnbJUkAAAAHdElNRQfgBxgLDwB20OFsAAAAbElEQVQY073OsQ3CMAAEwJMYwJGn -sAehpoXJItltBkmcdZBYgIIiQoLglnz3ui+eP+bk5uneteTMZJa6OJuIqvYzSJoqwqBq8gdmTTW8 -6/dghxAUq4xsVYT9laBYXCw93Aajh7GPEF23t4fkBYevGFTANkPRAAAAJXRFWHRkYXRlOmNyZWF0 -ZQAyMDE2LTA3LTI0VDExOjU1OjU4KzAyOjAwRFqFOQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0w -Ny0yNFQxMToxNTowMCswMjowMP7RDgQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb -7jwaAAAAAElFTkSuQmCC) 96% no-repeat; -} - -.search-margin { - margin-bottom: 0.6em; - } - - .visually-hidden { - position: absolute !important; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ - clip: rect(1px, 1px, 1px, 1px); - white-space: nowrap; /* added line */ - } - .label-danger, .btn-danger { - background: @dark-red; - } - .label-success, .btn-success { - background: @dark-green; - } - select.form-control { - border-color: @semidark-gray !important; - } diff --git a/beetroot_static/less/logicodev/variables.less b/beetroot_static/less/logicodev/variables.less deleted file mode 100644 index 4ee8df8..0000000 --- a/beetroot_static/less/logicodev/variables.less +++ /dev/null @@ -1,16 +0,0 @@ -@black: #29314D; -@gray: #A4A4A4; -@dim-gray: #F6F9FA; -@dark-gray: #666; -@semidark-gray: #888; -@middle-gray: #F5F5F5; -@mild-gray: #DDD; -@dark-blue: #007AB8; -@blue: #0088CC; -@red: #F35E77; -@violet: #684898; -@dark-green: #068922; -@green: #2ecc71; -@light-green: #01D7D4; -@orange: #FFA92F; -@dark-red: #c9432f; diff --git a/beetroot_static/less/pointhi/advanced.less b/beetroot_static/less/pointhi/advanced.less deleted file mode 100644 index 23bfdb0..0000000 --- a/beetroot_static/less/pointhi/advanced.less +++ /dev/null @@ -1,49 +0,0 @@ -#advanced-search-container { - display: none; - text-align: center; - margin-bottom: 1rem; - clear: both; - - label, .input-group-addon { - font-size: 1.3rem; - font-weight:normal; - background-color: white; - border: #DDD 1px solid; - border-right: none; - color: #333; - padding-bottom: 0.8rem; - padding-left: 1.2rem; - padding-right: 1.2rem; - } - - label:last-child, .input-group-addon:last-child { - border-right: #DDD 1px solid; - } - - input[type="radio"] { - display: none; - } - - input[type="radio"]:checked + label { - color: black; - font-weight: bold; - background-color: #EEE; - } -} - -#check-advanced { - display: none; -} - -#check-advanced:checked ~ #advanced-search-container { - display: block; -} - -.advanced { - padding: 0; - margin-top: 0.3rem; - text-align: right; - label, select { - cursor: pointer; - } -} diff --git a/beetroot_static/less/pointhi/beetroot.less b/beetroot_static/less/pointhi/beetroot.less deleted file mode 100644 index fc1c525..0000000 --- a/beetroot_static/less/pointhi/beetroot.less +++ /dev/null @@ -1,21 +0,0 @@ -@import "footer.less"; - -@import "checkbox.less"; - -@import "onoff.less"; - -@import "results.less"; - -@import "infobox.less"; - -@import "search.less"; - -@import "advanced.less"; - -@import "cursor.less"; - -@import "code.less"; - -@import "navbar.less"; - -@import "preferences.less"; diff --git a/beetroot_static/less/pointhi/checkbox.less b/beetroot_static/less/pointhi/checkbox.less deleted file mode 100644 index 6428b36..0000000 --- a/beetroot_static/less/pointhi/checkbox.less +++ /dev/null @@ -1,9 +0,0 @@ -// Hide element if checkbox is checked -input[type=checkbox]:checked + .label_hide_if_checked, input[type=checkbox]:checked + .label_hide_if_not_checked + .label_hide_if_checked { - display:none; -} - -// Hide element if checkbox is not checked -input[type=checkbox]:not(:checked) + .label_hide_if_not_checked, input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked { - display:none; -} diff --git a/beetroot_static/less/pointhi/code.less b/beetroot_static/less/pointhi/code.less deleted file mode 100644 index 70a2a5d..0000000 --- a/beetroot_static/less/pointhi/code.less +++ /dev/null @@ -1,79 +0,0 @@ -.highlight .hll { background-color: #ffffcc } -.highlight { background: #f8f8f8; } -.highlight .c { color: #408080; font-style: italic } /* Comment */ -.highlight .err { border: 1px solid #FF0000 } /* Error */ -.highlight .k { color: #008000; font-weight: bold } /* Keyword */ -.highlight .o { color: #666666 } /* Operator */ -.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #BC7A00 } /* Comment.Preproc */ -.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #A00000 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #FF0000 } /* Generic.Error */ -.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #00A000 } /* Generic.Inserted */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -.highlight .gt { color: #0044DD } /* Generic.Traceback */ -.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ -.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ -.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ -.highlight .kp { color: #008000 } /* Keyword.Pseudo */ -.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #B00040 } /* Keyword.Type */ -.highlight .m { color: #666666 } /* Literal.Number */ -.highlight .s { color: #BA2121 } /* Literal.String */ -.highlight .na { color: #7D9029 } /* Name.Attribute */ -.highlight .nb { color: #008000 } /* Name.Builtin */ -.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ -.highlight .no { color: #880000 } /* Name.Constant */ -.highlight .nd { color: #AA22FF } /* Name.Decorator */ -.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ -.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #0000FF } /* Name.Function */ -.highlight .nl { color: #A0A000 } /* Name.Label */ -.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ -.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ -.highlight .nv { color: #19177C } /* Name.Variable */ -.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mf { color: #666666 } /* Literal.Number.Float */ -.highlight .mh { color: #666666 } /* Literal.Number.Hex */ -.highlight .mi { color: #666666 } /* Literal.Number.Integer */ -.highlight .mo { color: #666666 } /* Literal.Number.Oct */ -.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */ -.highlight .sc { color: #BA2121 } /* Literal.String.Char */ -.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ -.highlight .s2 { color: #BA2121 } /* Literal.String.Double */ -.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ -.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */ -.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ -.highlight .sx { color: #008000 } /* Literal.String.Other */ -.highlight .sr { color: #BB6688 } /* Literal.String.Regex */ -.highlight .s1 { color: #BA2121 } /* Literal.String.Single */ -.highlight .ss { color: #19177C } /* Literal.String.Symbol */ -.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #19177C } /* Name.Variable.Class */ -.highlight .vg { color: #19177C } /* Name.Variable.Global */ -.highlight .vi { color: #19177C } /* Name.Variable.Instance */ -.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ - -.highlight .lineno { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - - &::selection { - background: transparent; /* WebKit/Blink Browsers */ - } - &::-moz-selection { - background: transparent; /* Gecko Browsers */ - } -} diff --git a/beetroot_static/less/pointhi/cursor.less b/beetroot_static/less/pointhi/cursor.less deleted file mode 100644 index cbc1ea6..0000000 --- a/beetroot_static/less/pointhi/cursor.less +++ /dev/null @@ -1,8 +0,0 @@ -// display cursor -.cursor-text { - cursor: text !important; -} - -.cursor-pointer { - cursor: pointer !important; -} diff --git a/beetroot_static/less/pointhi/footer.less b/beetroot_static/less/pointhi/footer.less deleted file mode 100644 index 0b25e73..0000000 --- a/beetroot_static/less/pointhi/footer.less +++ /dev/null @@ -1,19 +0,0 @@ -// Sticky footer styles - -html { - position: relative; - min-height: 100%; -} - -body { - /* Margin bottom by footer height */ - margin-bottom: 80px; -} - -.footer { - position: absolute; - bottom: 0; - width: 100%; - /* Set the fixed height of the footer here */ - height: 60px; -} diff --git a/beetroot_static/less/pointhi/infobox.less b/beetroot_static/less/pointhi/infobox.less deleted file mode 100644 index df51b00..0000000 --- a/beetroot_static/less/pointhi/infobox.less +++ /dev/null @@ -1,11 +0,0 @@ -.infobox { - .infobox_part { - margin-bottom: 20px; - word-wrap: break-word; - table-layout: fixed; - } - - .infobox_part:last-child { - margin-bottom: 0; - } -} diff --git a/beetroot_static/less/pointhi/navbar.less b/beetroot_static/less/pointhi/navbar.less deleted file mode 100644 index a057f82..0000000 --- a/beetroot_static/less/pointhi/navbar.less +++ /dev/null @@ -1,20 +0,0 @@ -.searx-navbar { - background: #eee; - color: #aaa; - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: bold; - margin-bottom: 1.3rem; - - a, a:hover { - margin-right: 2.0rem; - text-decoration: none; - } - - .instance a { - color: #444; - margin-left: 2.0rem; - } -} diff --git a/beetroot_static/less/pointhi/onoff.less b/beetroot_static/less/pointhi/onoff.less deleted file mode 100644 index 72b289a..0000000 --- a/beetroot_static/less/pointhi/onoff.less +++ /dev/null @@ -1,57 +0,0 @@ -.onoff-checkbox { - width:15%; -} -.onoffswitch { - position: relative; - width: 110px; - -webkit-user-select:none; - -moz-user-select:none; - -ms-user-select: none; -} -.onoffswitch-checkbox { - display: none; -} -.onoffswitch-label { - display: block; - overflow: hidden; - cursor: pointer; - border: 2px solid #FFFFFF !important; - border-radius: 50px !important; -} -.onoffswitch-inner { - display: block; - transition: margin 0.3s ease-in 0s; -} - -.onoffswitch-inner:before, .onoffswitch-inner:after { - display: block; - float: left; - width: 50%; - height: 30px; - padding: 0; - line-height: 40px; - font-size: 20px; - box-sizing: border-box; - content: ""; - background-color: #EEEEEE; -} - -.onoffswitch-switch { - display: block; - width: 37px; - background-color: #00CC00; - position: absolute; - top: 0; - bottom: 0; - right: 0px; - border: 2px solid #FFFFFF !important; - border-radius: 50px !important; - transition: all 0.3s ease-in 0s; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { - margin-right: 0; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { - right: 71px; - background-color: #A1A1A1; -} diff --git a/beetroot_static/less/pointhi/oscar.less b/beetroot_static/less/pointhi/oscar.less deleted file mode 100644 index fc1c525..0000000 --- a/beetroot_static/less/pointhi/oscar.less +++ /dev/null @@ -1,21 +0,0 @@ -@import "footer.less"; - -@import "checkbox.less"; - -@import "onoff.less"; - -@import "results.less"; - -@import "infobox.less"; - -@import "search.less"; - -@import "advanced.less"; - -@import "cursor.less"; - -@import "code.less"; - -@import "navbar.less"; - -@import "preferences.less"; diff --git a/beetroot_static/less/pointhi/preferences.less b/beetroot_static/less/pointhi/preferences.less deleted file mode 100644 index 9672d50..0000000 --- a/beetroot_static/less/pointhi/preferences.less +++ /dev/null @@ -1,3 +0,0 @@ -.table > tbody > tr > td, .table > tbody > tr > th { - vertical-align: middle !important; -} diff --git a/beetroot_static/less/pointhi/results.less b/beetroot_static/less/pointhi/results.less deleted file mode 100644 index 13266c0..0000000 --- a/beetroot_static/less/pointhi/results.less +++ /dev/null @@ -1,109 +0,0 @@ - -.result_header { - margin-bottom:5px; - margin-top:20px; - - .favicon { - margin-bottom:-3px; - } - - a { - vertical-align: bottom; - - .highlight { - font-weight:bold; - } - } -} - -.result-content { - margin-top: 5px; - word-wrap: break-word; - - .highlight { - font-weight:bold; - } -} - -// default formating of results -.result-default { - clear: both; -} - -// image formating of results -.result-images { - float: left !important; - height: 138px; -} - -.img-thumbnail { - margin: 5px; - max-height: 128px; -} - -// video formating of results -.result-videos { - clear: both; -} - -// torrent formating of results -.result-torrents { - clear: both; -} - -// map formating of results -.result-map { - clear: both; -} - -// code formating of results -.result-code { - clear: both; -} - -// suggestion -.suggestion_item { - margin: 2px 5px; - max-width: 100%; - - .btn { - max-width: 100%; - white-space: normal; - word-wrap: break-word; - text-align: left; - } -} - -// download result -.result_download { - margin-right: 5px; -} - -// page forward, backward -#pagination { - margin-top: 30px; - padding-bottom: 50px; -} - -.label-default { - color: #AAA; - background: #FFF; -} - -.result .text-muted small { - word-wrap: break-word; -} - -.modal-wrapper { - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -} - -.modal-wrapper { - background-clip: padding-box; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - outline: 0 none; - position: relative; -} diff --git a/beetroot_static/less/pointhi/search.less b/beetroot_static/less/pointhi/search.less deleted file mode 100644 index 5ff7336..0000000 --- a/beetroot_static/less/pointhi/search.less +++ /dev/null @@ -1,33 +0,0 @@ -.search_categories, #categories { - text-transform: capitalize; - margin-bottom: 1.5rem; - margin-top: 1.5rem; - display: flex; - flex-wrap: wrap; - align-content: stretch; - - label, .input-group-addon { - flex-grow: 1; - flex-basis: auto; - font-size: 1.3rem; - font-weight: normal; - background-color: white; - border: #DDD 1px solid; - border-right: none; - color: #333; - padding-bottom: 0.8rem; - padding-top: 0.8rem; - text-align: center; - min-width: 50px; - } - - label:last-child, .input-group-addon:last-child { - border-right: #DDD 1px solid; - } - - input[type="checkbox"]:checked + label{ - color: black; - font-weight: bold; - background-color: #EEE; - } -} diff --git a/beetroot_static/package.json b/beetroot_static/package.json deleted file mode 100644 index 5c01ef9..0000000 --- a/beetroot_static/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "devDependencies": { - "grunt": "^0.4.5", - "grunt-contrib-concat": "~0.5.0", - "grunt-contrib-jshint": "~0.10.0", - "grunt-contrib-less": "~0.11.0", - "grunt-contrib-uglify": "~0.6.0", - "grunt-contrib-watch": "~0.6.1" - }, - "scripts": { - "build": "npm install && grunt", - "start": "grunt watch", - "test": "grunt" - }, - "dependencies": { - "grunt-cli": "^1.3.2" - } -} diff --git a/beetroot_template/404.html b/beetroot_template/404.html deleted file mode 100644 index 5a50880..0000000 --- a/beetroot_template/404.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "oscar/base.html" %} -{% block content %} -
-

{{ _('Page not found') }}

- {% autoescape false %} -

{{ _('Go to %(search_page)s.', search_page=unicode('{}').format(url_for('index'), _('search page'))) }}

- {% endautoescape %} -
-{% endblock %} diff --git a/beetroot_template/about.html b/beetroot_template/about.html deleted file mode 100644 index bc7fed8..0000000 --- a/beetroot_template/about.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "oscar/base.html" %} -{% block title %}{{ _('about') }} - {% endblock %} -{% block content %} -{% include '__common__/about.html' %} -{% endblock %} diff --git a/beetroot_template/advanced.html b/beetroot_template/advanced.html deleted file mode 100644 index 0b13d50..0000000 --- a/beetroot_template/advanced.html +++ /dev/null @@ -1,17 +0,0 @@ - - -
- {% include 'oscar/categories.html' %} - -
-
- {%- include 'oscar/time-range.html' -%} -
-
- {%- include 'oscar/languages.html' -%} -
-
-
diff --git a/beetroot_template/base.html b/beetroot_template/base.html deleted file mode 100644 index a3bfa52..0000000 --- a/beetroot_template/base.html +++ /dev/null @@ -1,113 +0,0 @@ -{% from 'oscar/macros.html' import icon %} - - - - - - - - - - - {% block meta %}{% endblock %} - - {% block title %}{% endblock %}{{ instance_name }} - - {% if preferences.get_value('oscar-style') -%} - {{' '}} - {%- else -%} - {{' '}} - {%- endif %} - - - {%- for css in styles %} - - {% endfor %} - - - - - - - {% block styles %} - {% endblock %} - {% block head %} - {% endblock %} - - - - - - {% include 'oscar/navbar.html' %} - -
- {% if errors %} - - {% endif %} - - {% block site_alert_error %} - {% endblock %} - {% block site_alert_warning %} - {% endblock %} - {% block site_alert_info %} - {% endblock %} - {% block site_alert_success %} - {% endblock %} - - {% block content %} - {% endblock %} - -
- - - - {% if autocomplete %} {% endif %} - - - - {% for script in scripts %} - {{""}} - {% endfor %} - - - diff --git a/beetroot_template/base_bkup.html b/beetroot_template/base_bkup.html deleted file mode 100644 index ad83ee7..0000000 --- a/beetroot_template/base_bkup.html +++ /dev/null @@ -1,113 +0,0 @@ -{% from 'beetroot/macros.html' import icon %} - - - - - - - - - - - {% block meta %}{% endblock %} - - {% block title %}{% endblock %}{{ instance_name }} - - {% if preferences.get_value('beetroot-style') -%} - {{' '}} - {%- else -%} - {{' '}} - {%- endif %} - - - {%- for css in styles %} - - {% endfor %} - - - - - - - {% block styles %} - {% endblock %} - {% block head %} - {% endblock %} - - - - - - {% include 'beetroot/navbar.html' %} - -
- {% if errors %} - - {% endif %} - - {% block site_alert_error %} - {% endblock %} - {% block site_alert_warning %} - {% endblock %} - {% block site_alert_info %} - {% endblock %} - {% block site_alert_success %} - {% endblock %} - - {% block content %} - {% endblock %} - -
- - - - {% if autocomplete %} {% endif %} - - - - {% for script in scripts %} - {{""}} - {% endfor %} - - - diff --git a/beetroot_template/categories.html b/beetroot_template/categories.html deleted file mode 100644 index a5c5f61..0000000 --- a/beetroot_template/categories.html +++ /dev/null @@ -1,13 +0,0 @@ -
-{%- if rtl -%} - {% for category in categories | reverse -%} - {{- '' -}} - - {%- endfor %} -{%- else -%} - {% for category in categories -%} - {{- '' -}} - - {%- endfor %} -{%- endif -%} -
diff --git a/beetroot_template/index.html b/beetroot_template/index.html deleted file mode 100644 index 48c49d6..0000000 --- a/beetroot_template/index.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "oscar/base.html" %} -{% block content %} -
-
-
- {% if cookies['oscar-style'] == 'pointhi' %} -

searx logosearx

- {% else %} - - {% endif %} -
-
-
-
- {% include 'oscar/search_full.html' %} -
-
-
-{% endblock %} diff --git a/beetroot_template/infobox.html b/beetroot_template/infobox.html deleted file mode 100644 index 6ae7965..0000000 --- a/beetroot_template/infobox.html +++ /dev/null @@ -1,41 +0,0 @@ -{% from 'oscar/macros.html' import result_link with context %} -
-
{{- "" -}} -

{{ infobox.infobox }}

{{- "" -}} - {% for u in infobox.urls %}{% if u.official %} {{ u.domain }}{% endif %}{% endfor %} -
-
- {% if infobox.img_src %}{% endif %} - - {% if infobox.content %}

{{ infobox.content | safe }}

{% endif %} - - {% if infobox.attributes -%} - - {% for attribute in infobox.attributes -%} - {{- "" -}} - - {%- if attribute.image -%} - - {%- else -%} - {% if attribute.label == 'Instance of' %} - - {% else %} - - {%- endif -%} - {%- endif -%} - - {% endfor -%} -
{{ attribute.label }}{{ attribute.image.alt }}{{ attribute.value.id }}{{ attribute.value }}
- {% endif %} - - {% if infobox.urls -%} -
{{- "\n" -}} - - {%- for url in infobox.urls -%} -

{{ result_link(url.url, url.title) }}

- {% endfor -%} -
{{- "" -}} -
- {% endif %} -
-
diff --git a/beetroot_template/languages.html b/beetroot_template/languages.html deleted file mode 100644 index 9c00c9c..0000000 --- a/beetroot_template/languages.html +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/beetroot_template/macros.html b/beetroot_template/macros.html deleted file mode 100644 index 58f9669..0000000 --- a/beetroot_template/macros.html +++ /dev/null @@ -1,108 +0,0 @@ - -{% macro icon(action) -%} - -{%- endmacro %} - - -{% macro draw_favicon(favicon) -%} - {{ favicon }} -{%- endmacro %} - -{%- macro result_link(url, title, classes='', id='') -%} -{{ title }} -{%- endmacro -%} - - -{% macro result_header(result, favicons, id) -%} -

{% if result.engine~".png" in favicons %}{{ draw_favicon(result.engine) }} {% endif %}{% if result.url %}{{ result_link(result.url, result.title|safe, id=id) }}{% else %}{{ result.title|safe}}{% endif %}

-{%- endmacro %} - - -{% macro result_sub_header(result, id) -%} - {% if result.publishedDate %}{% endif %} - {% if result.magnetlink %} • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink", id) }}{% endif %} - {% if result.torrentfile %} • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile", id) }}{% endif %} -{%- endmacro %} - - -{% macro result_footer(result, id) -%} -
{{- "" -}} -
- {%- for engine in result.engines -%} - {{ engine }} - {%- endfor -%} - {%- if result.url -%} - {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} - {%- endif -%} - {%- if proxify -%} - {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} - {%- endif -%} -
- {%- if result.pretty_url -%} - - {%- endif -%} -{%- endmacro %} - - -{% macro result_footer_rtl(result, id) -%} -
{{- "" -}} - {% for engine in result.engines -%} - {{ engine }} - {%- endfor %} - {%- if result.url -%} - {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} - {%- endif -%} - {% if proxify -%} - {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} - {%- endif %} - {%- if result.pretty_url -%} - - {%- endif %} -{%- endmacro %} - -{% macro preferences_item_header(info, label, rtl, id) -%} - {% if rtl %} -
- - {{ info }} -
- {% else %} -
- -
- {% endif %} -{%- endmacro %} - -{% macro preferences_item_footer(info, label, rtl) -%} - {% if rtl %} -
-
- {% else %} -
- {{ info }} -
- {% endif %} -{%- endmacro %} - -{% macro checkbox_toggle(id, blocked) -%} -
- - - -
-{%- endmacro %} - -{% macro support_toggle(supports) -%} - {% if supports %} - - {{ _("supported") }} - - {% else %} - - {{ _("not supported") }} - - {% endif %} -{%- endmacro %} diff --git a/beetroot_template/messages/first_time.html b/beetroot_template/messages/first_time.html deleted file mode 100644 index 38db62b..0000000 --- a/beetroot_template/messages/first_time.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/beetroot_template/messages/no_cookies.html b/beetroot_template/messages/no_cookies.html deleted file mode 100644 index 9bebc8a..0000000 --- a/beetroot_template/messages/no_cookies.html +++ /dev/null @@ -1,5 +0,0 @@ -{% from 'oscar/macros.html' import icon %} - diff --git a/beetroot_template/messages/no_data_available.html b/beetroot_template/messages/no_data_available.html deleted file mode 100644 index aee7917..0000000 --- a/beetroot_template/messages/no_data_available.html +++ /dev/null @@ -1,5 +0,0 @@ -{% from 'oscar/macros.html' import icon %} - diff --git a/beetroot_template/messages/no_results.html b/beetroot_template/messages/no_results.html deleted file mode 100644 index 16b5984..0000000 --- a/beetroot_template/messages/no_results.html +++ /dev/null @@ -1,17 +0,0 @@ -{% from 'oscar/macros.html' import icon %} -{% if unresponsive_engines %} - -{% else %} - -{% endif %} diff --git a/beetroot_template/messages/save_settings_successfull.html b/beetroot_template/messages/save_settings_successfull.html deleted file mode 100644 index 63e578c..0000000 --- a/beetroot_template/messages/save_settings_successfull.html +++ /dev/null @@ -1,9 +0,0 @@ -{% from 'oscar/macros.html' import icon %} - diff --git a/beetroot_template/messages/unknow_error.html b/beetroot_template/messages/unknow_error.html deleted file mode 100644 index 3c4c9c1..0000000 --- a/beetroot_template/messages/unknow_error.html +++ /dev/null @@ -1,9 +0,0 @@ -{% from 'oscar/macros.html' import icon %} - diff --git a/beetroot_template/navbar.html b/beetroot_template/navbar.html deleted file mode 100644 index 077fb9f..0000000 --- a/beetroot_template/navbar.html +++ /dev/null @@ -1,9 +0,0 @@ -
{{- "" -}} - {{- "" -}} - {{ instance_name }}{{- "" -}} - {{- "" -}} - {{- "" -}} - {{ _('about') }}{{- "" -}} - {{ _('preferences') }}{{- "" -}} - {{- "" -}} -
diff --git a/beetroot_template/preferences.html b/beetroot_template/preferences.html deleted file mode 100644 index ab71b06..0000000 --- a/beetroot_template/preferences.html +++ /dev/null @@ -1,331 +0,0 @@ -{% from 'oscar/macros.html' import preferences_item_header, preferences_item_header_rtl, preferences_item_footer, preferences_item_footer_rtl, checkbox_toggle, support_toggle %} -{% extends "oscar/base.html" %} -{% block title %}{{ _('preferences') }} - {% endblock %} -{% block content %} - -
- -

{{ _('Preferences') }}

-
- - - - - - -
-
-
-
-
- {% if rtl %} -
- {% include 'oscar/categories.html' %} -
- - {% else %} - -
- {% include 'oscar/categories.html' %} -
- {% endif %} -
- {% set language_label = _('Search language') %} - {% set language_info = _('What language do you prefer for search?') %} - {{ preferences_item_header(language_info, language_label, rtl, 'language') }} - {% include 'oscar/languages.html' %} - {{ preferences_item_footer(language_info, language_label, rtl) }} - - {% set locale_label = _('Interface language') %} - {% set locale_info = _('Change the language of the layout') %} - {{ preferences_item_header(locale_info, locale_label, rtl, 'locale') }} - - {{ preferences_item_footer(locale_info, locale_label, rtl) }} - - {% set autocomplete_label = _('Autocomplete') %} - {% set autocomplete_info = _('Find stuff as you type') %} - {{ preferences_item_header(autocomplete_info, autocomplete_label, rtl, 'autocomplete') }} - - {{ preferences_item_footer(autocomplete_info, autocomplete_label, rtl) }} - - {% set image_proxy_label = _('Image proxy') %} - {% set image_proxy_info = _('Proxying image results through searx') %} - {{ preferences_item_header(image_proxy_info, image_proxy_label, rtl, 'image_proxy') }} - - {{ preferences_item_footer(image_proxy_info, image_proxy_label, rtl) }} - - {% set method_label = _('Method') %} - {% set method_info = _('Change how forms are submited, learn more about request methods') %} - {{ preferences_item_header(method_info, method_label, rtl, 'method') }} - - {{ preferences_item_footer(method_info, method_label, rtl) }} - - {% set safesearch_label = _('SafeSearch') %} - {% set safesearch_info = _('Filter content') %} - {{ preferences_item_header(safesearch_info, safesearch_label, rtl, 'safesearch') }} - - {{ preferences_item_footer(safesearch_info, safesearch_label, rtl) }} - - {% set theme_label = _('Themes') %} - {% set theme_info = _('Change searx layout') %} - {{ preferences_item_header(theme_info, theme_label, rtl, 'theme') }} - - {{ preferences_item_footer(theme_info, theme_label, rtl) }} - - {{ preferences_item_header(_('Choose style for this theme'), _('Style'), rtl, 'oscar_style') }} - - {{ preferences_item_footer(_('Choose style for this theme'), _('Style'), rtl) }} - - {% set label = _('Results on new tabs') %} - {% set info = _('Open result links on new browser tabs') %} - {{ preferences_item_header(info, label, rtl, 'results_on_new_tab') }} - - {{ preferences_item_footer(info, label, rtl) }} - - {% set label = _('Open Access DOI resolver') %} - {% set info = _('Redirect to open-access versions of publications when available (plugin required)') %} - {{ preferences_item_header(info, label, rtl, 'doi_resolver') }} - - {{ preferences_item_footer(info, label, rtl) }} - - {% set label = _('Engine tokens') %} - {% set info = _('Access tokens for private engines') %} - {{ preferences_item_header(info, label, rtl, 'tokens') }} - - {{ preferences_item_footer(info, label, rtl) }} -
-
-
-
- - - - - - - -
- -
-

- - -

-
- - {% for categ in all_categories %} - -
-
-
-
- - - {% if not rtl %} - - - - - - - - - {% else %} - - - - - - - - - {% endif %} - - {% for search_engine in engines_by_category[categ] %} - {% if not search_engine.private %} - - {% if not rtl %} - - - - - - - - - {% else %} - - - - - - - - - {% endif %} - - {% endif %} - {% endfor %} -
{{ _("Allow") }}{{ _("Engine name") }}{{ _("Shortcut") }}{{ _("Selected language") }}{{ _("SafeSearch") }}{{ _("Time range") }}{{ _("Avg. time") }}{{ _("Max time") }}{{ _("Max time") }}{{ _("Avg. time") }}{{ _("Time range") }}{{ _("SafeSearch") }}{{ _("Selected language") }}{{ _("Shortcut") }}{{ _("Engine name") }}{{ _("Allow") }}
- {{ checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) }} - {{ search_engine.name }}{{ shortcuts[search_engine.name] }}{{ support_toggle(stats[search_engine.name].supports_selected_language) }}{{ support_toggle(search_engine.safesearch==True) }}{{ support_toggle(search_engine.time_range_support==True) }}{% if stats[search_engine.name]['warn_time'] %}{{ icon('exclamation-sign')}} {% endif %}{{ 'N/A' if stats[search_engine.name].time==None else stats[search_engine.name].time }}{% if stats[search_engine.name]['warn_timeout'] %}{{ icon('exclamation-sign') }} {% endif %}{{ search_engine.timeout }}{{ search_engine.timeout }}{% if stats[search_engine.name]['warn_time'] %} {{ icon('exclamation-sign')}}{% endif %}{{ 'N/A' if stats[search_engine.name].time==None else stats[search_engine.name].time }}{% if stats[search_engine.name]['warn_time'] %} {{ icon('exclamation-sign')}}{% endif %}{{ support_toggle(search_engine.time_range_support==True) }}{{ support_toggle(search_engine.safesearch==True) }}{{ support_toggle(stats[search_engine.name].supports_selected_language) }}{{ shortcuts[search_engine.name] }}{{ search_engine.name }} - {{ checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) }} -
-
-
-
-
- {% endfor %} -
-
-
- -
-
- {% for plugin in plugins %} -
-
-

{{ _(plugin.name) }}

-
-
-
-
-
- {{ checkbox_toggle('plugin_' + plugin.id, plugin.id not in allowed_plugins) }} -
-
-
-
- {% endfor %} -
-
-
- - {% if answerers %} -
- -

- {{ _('This is the list of searx\'s instant answering modules.') }} -

- - - {{ _('Name') }} - {{ _('Keywords') }} - {{ _('Description') }} - {{ _('Examples') }} - - - {% for answerer in answerers %} - - - - - - - {% endfor %} -
{{ answerer.info.name }}{{ answerer.keywords|join(', ') }}{{ answerer.info.description }}{{ answerer.info.examples|join(', ') }}
-
- {% endif %} - -
- -

- {{ _('This is the list of cookies and their values searx is storing on your computer.') }}
- {{ _('With that list, you can assess searx transparency.') }}
-

- {% if cookies %} - - - - - - - {% for cookie in cookies %} - - - - - {% endfor %} -
{{ _('Cookie name') }}{{ _('Value') }}
{{ cookie }}{{ cookies[cookie] }}
- {% else %} - {% include 'oscar/messages/no_cookies.html' %} - {% endif %} -
-
- -

- {{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }} - {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }} -

- -

- {{ _('Search URL of the currently saved preferences') }} - ({{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}): -

- - -
-
-{% endblock %} diff --git a/beetroot_template/result_templates/code.html b/beetroot_template/result_templates/code.html deleted file mode 100644 index c7d93e2..0000000 --- a/beetroot_template/result_templates/code.html +++ /dev/null @@ -1,18 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon with context%} - -{{ result_header(result, favicons) }} -{{ result_sub_header(result) }} - -{% if result.content %}

{{ result.content|safe }}

{% endif %} - -{% if result.repository %}

{{ icon('file') }} {{ result.repository }}

{% endif %} - -
-{{ result.codelines|code_highlighter(result.code_language)|safe }} -
- -{% if rtl %} -{{ result_footer_rtl(result) }} -{% else %} -{{ result_footer(result) }} -{% endif %} diff --git a/beetroot_template/result_templates/default.html b/beetroot_template/result_templates/default.html deleted file mode 100644 index bc71d19..0000000 --- a/beetroot_template/result_templates/default.html +++ /dev/null @@ -1,31 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon with context %} - -{{- result_header(result, favicons, loop.index) -}} -{{- result_sub_header(result, loop.index) -}} - -{%- if result.embedded -%} - -{%- endif -%} - -{%- if result.embedded -%} -
- {{ result.embedded|safe }} -
-{%- endif -%} - -{%- if result.img_src -%} -
-
- -{% if result.content %}

{{ result.content|safe }}

{% endif -%} -
-
-{%- else -%} -{%- if result.content %}

{{ result.content|safe }}

{% endif -%} -{%- endif -%} - -{%- if rtl -%} -{{ result_footer_rtl(result, loop.index) }} -{%- else -%} -{{ result_footer(result, loop.index) }} -{%- endif -%} diff --git a/beetroot_template/result_templates/images.html b/beetroot_template/result_templates/images.html deleted file mode 100644 index 96cdd53..0000000 --- a/beetroot_template/result_templates/images.html +++ /dev/null @@ -1,36 +0,0 @@ -{%- from 'oscar/macros.html' import draw_favicon with context -%} - -{{- "" -}} - {{ result.title|striptags }}{{- "" -}} - -{{- "" -}} diff --git a/beetroot_template/result_templates/key-value.html b/beetroot_template/result_templates/key-value.html deleted file mode 100644 index 67c748e..0000000 --- a/beetroot_template/result_templates/key-value.html +++ /dev/null @@ -1,19 +0,0 @@ -{% from 'oscar/macros.html' import result_footer, result_footer_rtl with context %} -
- - {% for key, value in result.items() %} - {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions'] %} - {% continue %} - {% endif %} - - - - {% endfor %} -
{{ key|upper }}: {{ value }}
- -{% if rtl %} -{{ result_footer_rtl(result) }} -{% else %} -{{ result_footer(result) }} -{% endif %} -
diff --git a/beetroot_template/result_templates/map.html b/beetroot_template/result_templates/map.html deleted file mode 100644 index be34d65..0000000 --- a/beetroot_template/result_templates/map.html +++ /dev/null @@ -1,72 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} - -{{ result_header(result, favicons, loop.index) }} -{{ result_sub_header(result, loop.index) }} - -{% if (result.latitude and result.longitude) or result.boundingbox %} - -{% endif %} - -{% if result.osm and (result.osm.type and result.osm.id) %} - -{% endif %} - -{# {% if (result.latitude and result.longitude) %} - -{% endif %} #} - -
- -{% if result.address %} -

- {% if result.address.name %} - {{ result.address.name }}
- {% endif %} - {% if result.address.road %} - - {% if result.address.house_number %}{{ result.address.house_number }}, {% endif %} - {{ result.address.road }} -
- {% endif %} - {% if result.address.locality %} - {{ result.address.locality }} - {% if result.address.postcode %}, {{ result.address.postcode }}{% endif %} -
- {% endif %} - {% if result.address.country %} - {{ result.address.country }} - {% endif %} -

-{% endif %} - -{% if result.osm and (result.osm.type and result.osm.id) %} -
-
Loading ...
- - - -
-{% endif %} - -{# {% if (result.latitude and result.longitude) %} -
- Longitude: {{ result.longitude }}
- Latitude: {{ result.latitude }} -
-{% endif %} #} - -{% if result.content %}

{{ result.content|safe }}

{% endif %} - -
- -{% if (result.latitude and result.longitude) or result.boundingbox %} -
-
-
-{% endif %} - -{% if rtl %} -{{ result_footer_rtl(result, loop.index) }} -{% else %} -{{ result_footer(result, loop.index) }} -{% endif %} diff --git a/beetroot_template/result_templates/torrent.html b/beetroot_template/result_templates/torrent.html deleted file mode 100644 index 0bba614..0000000 --- a/beetroot_template/result_templates/torrent.html +++ /dev/null @@ -1,25 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} - -{{ result_header(result, favicons, loop.index) }} -{{ result_sub_header(result, loop.index) }} - -{% if result.seed is defined %}

{{ icon('transfer') }} {{ _('Seeder') }} {{ result.seed }} • {{ _('Leecher') }} {{ result.leech }}{% endif %} -{% if result.filesize %}
{{ icon('floppy-disk') }} {{ _('Filesize') }} - - {% if result.filesize < 1024 %}{{ result.filesize }} {{ _('Bytes') }} - {% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} {{ _('kiB') }} - {% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} {{ _('MiB') }} - {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} {{ _('GiB') }} - {% else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif %} - {% endif %} -{% if result.files %}
{{ icon('file') }} {{ _('Number of Files') }} {{ result.files }}{% endif %} - -{% if result.content %}
{{ result.content|safe }}{% endif %} - -

- -{% if rtl %} -{{ result_footer_rtl(result, loop.index) }} -{% else %} -{{ result_footer(result, loop.index) }} -{% endif %} diff --git a/beetroot_template/result_templates/videos.html b/beetroot_template/result_templates/videos.html deleted file mode 100644 index bf02a55..0000000 --- a/beetroot_template/result_templates/videos.html +++ /dev/null @@ -1,29 +0,0 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} - -{{ result_header(result, favicons, loop.index) }} -{{ result_sub_header(result, loop.index) }} - -{% if result.embedded %} - -{% endif %} - -{% if result.embedded %} -
- {{ result.embedded|safe }} -
-{% endif %} - -
-
- - {% if result.author %}

{{ _('Author') }}: {{ result.author }}

{% endif %} - {% if result.length %}

{{ _('Length') }}: {{ result.length }}

{% endif %} - {% if result.content %}

{{ result.content|safe }}

{% endif %} -
-
- -{% if rtl %} -{{ result_footer_rtl(result, loop.index) }} -{% else %} -{{ result_footer(result, loop.index) }} -{% endif %} diff --git a/beetroot_template/results.html b/beetroot_template/results.html deleted file mode 100644 index 7a444d1..0000000 --- a/beetroot_template/results.html +++ /dev/null @@ -1,162 +0,0 @@ -{% extends "oscar/base.html" %} -{% macro search_form_attrs(pageno) -%} - {%- for category in selected_categories -%}{%- endfor -%} - {{- "" -}} - {{- "" -}} - {{- "" -}} - {{- "" -}} - {% if timeout_limit %}{% endif -%} -{%- endmacro %} -{%- macro search_url() %}{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%} - -{% block title %}{{ q|e }} - {% endblock %} -{% block meta %}{{" "}}{% endblock %} -{% block content %} - {% include 'oscar/search.html' %} - -
- - -
-

{{ _('Search results') }}

- - {% if corrections -%} -
- {{ _('Try searching for:') }} - {% for correction in corrections -%} - - {% endfor %} -
- {%- endif %} - - {% if answers -%} - {%- for answer in answers.values() %} -
- {% if answer.url %} - {{ answer.answer }} - {% else %} - {{ answer.answer }} - {% endif %} -
- {%- endfor %} - {%- endif %} - - {% for result in results -%} -
- {%- set index = loop.index -%} - {%- if result.template -%} - {% include get_result_template('oscar', result['template']) %} - {%- else -%} - {% include 'oscar/result_templates/default.html' %} - {%- endif -%} -
- {% endfor %} - - {% if not results and not answers -%} - {% include 'oscar/messages/no_results.html' %} - {% endif %} - -
- - {% if paging -%} - {% if rtl %} - -
- {% else %} - -
- {% endif %} - {% endif %} -
-
-{% endblock %} diff --git a/beetroot_template/search.html b/beetroot_template/search.html deleted file mode 100644 index 666a4df..0000000 --- a/beetroot_template/search.html +++ /dev/null @@ -1,25 +0,0 @@ -{% from 'oscar/macros.html' import icon %} - diff --git a/beetroot_template/search_full.html b/beetroot_template/search_full.html deleted file mode 100644 index 1f1c50e..0000000 --- a/beetroot_template/search_full.html +++ /dev/null @@ -1,19 +0,0 @@ -{% from 'oscar/macros.html' import icon %} - -