SEO SQUIRRLY™ - Version 12.1.11

Version Description

  • 08/12/2022 = Update - SLA compatibility with Zion Builder Update - SLA compatibility with WPBakery Page Builder Update - Style for the Sitemap News using sitemapnews.xsl Update - SEO Audits page to show the number of pages present in the audit Fix - load SEO metas late on AMP pages for compatibility with AMP plugins Fix - Don't load SEO Snippet on frontend when AMP is detected to avoid compatibility error with AMP plugin Fix - Make sure the keywords from briefcase are shown correctly in research, history and suggested page
Download this release

Release Info

Developer cifi
Plugin Icon 128x128 SEO SQUIRRLY™
Version 12.1.11
Comparing to
See all releases

Code changes from version 12.1.10 to 12.1.11

classes/ActionController.php CHANGED
@@ -112,7 +112,6 @@ class SQ_Classes_ActionController extends SQ_Classes_FrontController
112
  'description' => 'Post Page',
113
  'actions' => array(
114
  'action' => array(
115
- 'sq_ajax_save_ogimage',
116
  'sq_ajax_get_post',
117
  'sq_ajax_save_post',
118
  'sq_ajax_type_click',
112
  'description' => 'Post Page',
113
  'actions' => array(
114
  'action' => array(
 
115
  'sq_ajax_get_post',
116
  'sq_ajax_save_post',
117
  'sq_ajax_type_click',
classes/DisplayController.php CHANGED
@@ -24,10 +24,7 @@ class SQ_Classes_DisplayController
24
  }
25
 
26
  if (empty($params)) {
27
- $params = array(
28
- 'trigger' => false,
29
- 'media' => 'all'
30
- );
31
  }
32
 
33
  $css_uri = '';
@@ -71,7 +68,7 @@ class SQ_Classes_DisplayController
71
 
72
  if ($css_uri <> '') {
73
  if (!wp_style_is($name)) {
74
- wp_enqueue_style($name, $css_uri, null, SQ_VERSION, $params['media']);
75
 
76
  if (is_admin() || (isset($params['trigger']) && $params['trigger'] === true)) { //load CSS for admin or on triggered
77
  wp_print_styles(array($name));
24
  }
25
 
26
  if (empty($params)) {
27
+ $params = array('trigger' => false);
 
 
 
28
  }
29
 
30
  $css_uri = '';
68
 
69
  if ($css_uri <> '') {
70
  if (!wp_style_is($name)) {
71
+ wp_enqueue_style($name, $css_uri, null, SQ_VERSION, 'all');
72
 
73
  if (is_admin() || (isset($params['trigger']) && $params['trigger'] === true)) { //load CSS for admin or on triggered
74
  wp_print_styles(array($name));
classes/RemoteController.php CHANGED
@@ -54,7 +54,7 @@ class SQ_Classes_RemoteController
54
 
55
  //call it with http to prevent curl issues with ssls
56
  $url = self::cleanUrl(_SQ_APIV2_URL_ . $module . "?" . $parameters);
57
-
58
  if (!isset(self::$cache[md5($url)])) {
59
  if ($options['method'] == 'post') {
60
  $options['body'] = $args;
54
 
55
  //call it with http to prevent curl issues with ssls
56
  $url = self::cleanUrl(_SQ_APIV2_URL_ . $module . "?" . $parameters);
57
+
58
  if (!isset(self::$cache[md5($url)])) {
59
  if ($options['method'] == 'post') {
60
  $options['body'] = $args;
classes/helpers/Sanitize.php CHANGED
@@ -426,32 +426,6 @@ class SQ_Classes_Helpers_Sanitize
426
  return $code;
427
  }
428
 
429
- /**
430
- * Check the Alexa code saved at settings
431
- *
432
- * @return string
433
- */
434
- public static function checkAlexaCode($code)
435
- {
436
- if ($code <> '') {
437
- $code = stripslashes($code);
438
-
439
-
440
- if (strpos($code, 'content') !== false) {
441
- preg_match('/content\\s*=\\s*[\"]([^\"]+)[\"]/i', $code, $result);
442
- if (isset($result[1]) && !empty($result[1])) $code = $result[1];
443
- }
444
-
445
- if (strpos($code, '"') !== false) {
446
- preg_match('/[\"]([^\"]+)[\"]/i', $code, $result);
447
- if (isset($result[1]) && !empty($result[1])) $code = $result[1];
448
- }
449
-
450
- if ($code == '') SQ_Classes_Error::setError(esc_html__("The code for Alexa is incorrect.", 'squirrly-seo'));
451
- }
452
- return $code;
453
- }
454
-
455
  /**
456
  * Check the twitter account
457
  *
426
  return $code;
427
  }
428
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  /**
430
  * Check the twitter account
431
  *
classes/helpers/Tools.php CHANGED
@@ -100,7 +100,7 @@ class SQ_Classes_Helpers_Tools
100
  .ml-stars svg:hover ~ svg{fill:none}
101
  </style>';
102
 
103
- $meta[] = "<a href='https://howto12.squirrly.co/wordpress-seo/' target='_blank'>" . esc_html__("Documentation", 'squirrly-seo') . "</a>";
104
  $meta[] = "<a href='https://wordpress.org/support/plugin/squirrly-seo/reviews/#new-post' target='_blank' title='" . esc_html__("Leave a review", 'squirrly-seo') . "'><i class='ml-stars'><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg></i></a>";
105
  }
106
  return $meta;
@@ -416,7 +416,6 @@ class SQ_Classes_Helpers_Tools
416
  'baidu_wt' => "",
417
  'yandex_wt' => "",
418
  'pinterest_verify' => "",
419
- 'alexa_verify' => "",
420
  'norton_verify' => "",
421
  ),
422
 
@@ -460,6 +459,7 @@ class SQ_Classes_Helpers_Tools
460
  'do_analytics' => 1,
461
  'do_fpixel' => 1,
462
  'do_redirects' => 1,
 
463
  ),
464
  'page' => array(
465
  'protected' => 1,
@@ -479,6 +479,7 @@ class SQ_Classes_Helpers_Tools
479
  'do_analytics' => 1,
480
  'do_fpixel' => 1,
481
  'do_redirects' => 1,
 
482
  ),
483
  'product' => array(
484
  'protected' => 1,
@@ -498,6 +499,7 @@ class SQ_Classes_Helpers_Tools
498
  'do_analytics' => 1,
499
  'do_fpixel' => 1,
500
  'do_redirects' => 1,
 
501
  ),
502
  'category' => array(
503
  'protected' => 1,
@@ -782,6 +784,7 @@ class SQ_Classes_Helpers_Tools
782
  'do_analytics' => 1,
783
  'do_fpixel' => 1,
784
  'do_redirects' => 0,
 
785
  ),
786
  )
787
 
100
  .ml-stars svg:hover ~ svg{fill:none}
101
  </style>';
102
 
103
+ $meta[] = "<a href='https://howto12.squirrly.co/kb/install-squirrly-seo-plugin/' target='_blank'>" . esc_html__("Documentation", 'squirrly-seo') . "</a>";
104
  $meta[] = "<a href='https://wordpress.org/support/plugin/squirrly-seo/reviews/#new-post' target='_blank' title='" . esc_html__("Leave a review", 'squirrly-seo') . "'><i class='ml-stars'><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg><svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg></i></a>";
105
  }
106
  return $meta;
416
  'baidu_wt' => "",
417
  'yandex_wt' => "",
418
  'pinterest_verify' => "",
 
419
  'norton_verify' => "",
420
  ),
421
 
459
  'do_analytics' => 1,
460
  'do_fpixel' => 1,
461
  'do_redirects' => 1,
462
+ 'google_news' => 1,
463
  ),
464
  'page' => array(
465
  'protected' => 1,
479
  'do_analytics' => 1,
480
  'do_fpixel' => 1,
481
  'do_redirects' => 1,
482
+ 'google_news' => 0,
483
  ),
484
  'product' => array(
485
  'protected' => 1,
499
  'do_analytics' => 1,
500
  'do_fpixel' => 1,
501
  'do_redirects' => 1,
502
+ 'google_news' => 0,
503
  ),
504
  'category' => array(
505
  'protected' => 1,
784
  'do_analytics' => 1,
785
  'do_fpixel' => 1,
786
  'do_redirects' => 0,
787
+ 'google_news' => 0,
788
  ),
789
  )
790
 
controllers/Audits.php CHANGED
@@ -351,14 +351,12 @@ class SQ_Controllers_Audits extends SQ_Classes_FrontController
351
  return;
352
  }
353
 
354
- if ($auditpage = SQ_Classes_RemoteController::updateAudit()) {
355
- if (!is_wp_error($auditpage)) {
356
- SQ_Classes_Error::setError(esc_html__("Audit page sent for recheck. It may take a while so please be patient.", 'squirrly-seo') . " <br /> ", 'success');
357
- set_transient('sq_auditpage_all', time());
358
- } elseif ($auditpage->get_error_message() == 'too_many_attempts') {
359
- SQ_Classes_Error::setError(esc_html__("The audit for all pages can be made once an hour.", 'squirrly-seo') . " <br /> ");
360
- }
361
- } else {
362
  SQ_Classes_Error::setError(esc_html__("The audit for all pages can be made once an hour.", 'squirrly-seo') . " <br /> ");
363
  }
364
  break;
351
  return;
352
  }
353
 
354
+ $auditpage = SQ_Classes_RemoteController::updateAudit();
355
+
356
+ if (!is_wp_error($auditpage)) {
357
+ SQ_Classes_Error::setError(esc_html__("Audit page sent for recheck. It may take a while so please be patient.", 'squirrly-seo') . " <br /> ", 'success');
358
+ set_transient('sq_auditpage_all', time());
359
+ } elseif ($auditpage->get_error_message() == 'too_many_attempts') {
 
 
360
  SQ_Classes_Error::setError(esc_html__("The audit for all pages can be made once an hour.", 'squirrly-seo') . " <br /> ");
361
  }
362
  break;
controllers/Patterns.php CHANGED
@@ -5,21 +5,21 @@ class SQ_Controllers_Patterns extends SQ_Classes_FrontController
5
  {
6
 
7
  /**
8
- *
9
  *
10
- * @var SQ_Models_Domain_Patterns $patterns
11
  */
12
  public $patterns;
13
 
14
- public function init()
15
  {
16
  if (is_rtl()) {
17
- SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap.rtl', array('trigger' => true, 'media' => 'all'));
18
- SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('rtl', array('trigger' => true, 'media' => 'all'));
19
  } else {
20
- SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap', array('trigger' => true, 'media' => 'all'));
21
  }
22
- SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('patterns', array('trigger' => true, 'media' => 'all'));
23
 
24
  echo '
25
  <script>
@@ -35,7 +35,7 @@ class SQ_Controllers_Patterns extends SQ_Classes_FrontController
35
  * @param SQ_Models_Domain_Post $post
36
  * @return SQ_Models_Domain_Post | false
37
  */
38
- public function replacePatterns($post)
39
  {
40
  if ($post instanceof SQ_Models_Domain_Post) {
41
  //set the patterns based on the current post
@@ -64,7 +64,7 @@ class SQ_Controllers_Patterns extends SQ_Classes_FrontController
64
  * @param $object
65
  * @return mixed
66
  */
67
- public function processPatterns($values, $object)
68
  {
69
 
70
  //Foreach SQ, if has patterns, replace them
@@ -116,7 +116,7 @@ class SQ_Controllers_Patterns extends SQ_Classes_FrontController
116
  *
117
  * @return void
118
  */
119
- public function action()
120
  {
121
  parent::action();
122
 
5
  {
6
 
7
  /**
8
+ *
9
  *
10
+ * @var SQ_Models_Domain_Patterns $patterns
11
  */
12
  public $patterns;
13
 
14
+ public function init()
15
  {
16
  if (is_rtl()) {
17
+ SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap.rtl', array('trigger' => true));
18
+ SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('rtl', array('trigger' => true));
19
  } else {
20
+ SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap', array('trigger' => true));
21
  }
22
+ SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('patterns', array('trigger' => true));
23
 
24
  echo '
25
  <script>
35
  * @param SQ_Models_Domain_Post $post
36
  * @return SQ_Models_Domain_Post | false
37
  */
38
+ public function replacePatterns($post)
39
  {
40
  if ($post instanceof SQ_Models_Domain_Post) {
41
  //set the patterns based on the current post
64
  * @param $object
65
  * @return mixed
66
  */
67
+ public function processPatterns($values, $object)
68
  {
69
 
70
  //Foreach SQ, if has patterns, replace them
116
  *
117
  * @return void
118
  */
119
+ public function action()
120
  {
121
  parent::action();
122
 
controllers/Post.php CHANGED
@@ -326,37 +326,6 @@ class SQ_Controllers_Post extends SQ_Classes_FrontController
326
  parent::action();
327
  switch (SQ_Classes_Helpers_Tools::getValue('action')) {
328
  /** AJAX CALLS ***/
329
- case 'sq_ajax_save_ogimage':
330
- if (!SQ_Classes_Helpers_Tools::userCan('sq_manage_snippet')) {
331
- $response['error'] = SQ_Classes_Error::showNotices(esc_html__("You do not have permission to perform this action", 'squirrly-seo'), 'sq_error');
332
- SQ_Classes_Helpers_Tools::setHeader('json');
333
- echo wp_json_encode($response);
334
- exit();
335
- }
336
-
337
- if (!empty($_FILES['ogimage'])) {
338
- $return = $this->model->addImage($_FILES['ogimage']);
339
- }
340
- if (isset($return['file'])) {
341
- $return['filename'] = basename($return['file']);
342
- $local_file = str_replace($return['filename'], urlencode($return['filename']), $return['url']);
343
- $attach_id = wp_insert_attachment(
344
- array(
345
- 'post_mime_type' => $return['type'],
346
- 'post_title' => preg_replace('/\.[^.]+$/', '', $return['filename']),
347
- 'post_content' => '',
348
- 'post_status' => 'inherit',
349
- 'guid' => $local_file
350
- ), $return['file'], SQ_Classes_Helpers_Tools::getValue('post_id')
351
- );
352
-
353
- $attach_data = wp_generate_attachment_metadata($attach_id, $return['file']);
354
- wp_update_attachment_metadata($attach_id, $attach_data);
355
- }
356
- SQ_Classes_Helpers_Tools::setHeader('json');
357
-
358
- echo wp_json_encode($return);
359
- exit();
360
  case 'sq_ajax_save_post':
361
  SQ_Classes_Helpers_Tools::setHeader('json');
362
 
326
  parent::action();
327
  switch (SQ_Classes_Helpers_Tools::getValue('action')) {
328
  /** AJAX CALLS ***/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  case 'sq_ajax_save_post':
330
  SQ_Classes_Helpers_Tools::setHeader('json');
331
 
controllers/Sitemaps.php CHANGED
@@ -157,8 +157,6 @@ class SQ_Controllers_Sitemaps extends SQ_Classes_FrontController
157
  }
158
  }
159
 
160
-
161
-
162
  //show products
163
  if ($this->model->type == 'sitemap-product') {
164
  if (SQ_Classes_Helpers_Tools::isEcommerce() && $sq_sitemap[$this->model->type][1] == 2) {
@@ -171,6 +169,16 @@ class SQ_Controllers_Sitemaps extends SQ_Classes_FrontController
171
  //PREPARE CUSTOM QUERIES
172
  switch ($this->model->type) {
173
  case 'sitemap-news':
 
 
 
 
 
 
 
 
 
 
174
  case 'sitemap-post':
175
  $sq_query['posts_per_page'] = $this->posts_limit;
176
  break;
@@ -256,8 +264,9 @@ class SQ_Controllers_Sitemaps extends SQ_Classes_FrontController
256
 
257
  public function getSquirrlyHeader($header)
258
  {
 
259
  if ($this->model->type <> 'locations') {
260
- $header = '<?xml-stylesheet type="text/xsl" href="/' . _SQ_ASSETS_RELATIVE_URL_ . 'css/sitemap' . ($this->model->type == 'sitemap' ? 'index' : '') . '.xsl"?>' . "\n";
261
  $header .= '<!-- generated-on="' . date('Y-m-d\TH:i:s+00:00') . '" -->' . "\n";
262
  $header .= '<!-- generator="Squirrly SEO Sitemap" -->' . "\n";
263
  $header .= '<!-- generator-url="https://wordpress.org/plugins/squirrly-seo/" -->' . "\n";
@@ -544,6 +553,9 @@ class SQ_Controllers_Sitemaps extends SQ_Classes_FrontController
544
  */
545
  public function showPackXml($xml = array())
546
  {
 
 
 
547
  if (empty($xml)) {
548
  $xml['contains'] = '';
549
  }
157
  }
158
  }
159
 
 
 
160
  //show products
161
  if ($this->model->type == 'sitemap-product') {
162
  if (SQ_Classes_Helpers_Tools::isEcommerce() && $sq_sitemap[$this->model->type][1] == 2) {
169
  //PREPARE CUSTOM QUERIES
170
  switch ($this->model->type) {
171
  case 'sitemap-news':
172
+ //integration with webstory plguin for Google News
173
+ foreach (SQ_Classes_Helpers_Tools::getOption('patterns') as $pattern => $type) {
174
+ if(isset($type['google_news']) && $type['google_news'] == 1){
175
+ array_push($sq_query['post_type'],$pattern);
176
+ }
177
+ }
178
+ $sq_query['date_query'] = array(
179
+ 'after' => 'midnight 2 days ago',
180
+ 'inclusive' => true,
181
+ );
182
  case 'sitemap-post':
183
  $sq_query['posts_per_page'] = $this->posts_limit;
184
  break;
264
 
265
  public function getSquirrlyHeader($header)
266
  {
267
+
268
  if ($this->model->type <> 'locations') {
269
+ $header = '<?xml-stylesheet type="text/xsl" href="/' . _SQ_ASSETS_RELATIVE_URL_ . 'css/sitemap' . ($this->model->type == 'sitemap' ? 'index' : ($this->model->type == 'sitemap-news' ? 'news' : '')) . '.xsl"?>' . "\n";
270
  $header .= '<!-- generated-on="' . date('Y-m-d\TH:i:s+00:00') . '" -->' . "\n";
271
  $header .= '<!-- generator="Squirrly SEO Sitemap" -->' . "\n";
272
  $header .= '<!-- generator-url="https://wordpress.org/plugins/squirrly-seo/" -->' . "\n";
553
  */
554
  public function showPackXml($xml = array())
555
  {
556
+ //clear the empty lines
557
+ $xml = array_filter($xml);
558
+
559
  if (empty($xml)) {
560
  $xml['contains'] = '';
561
  }
core/BlockFeatures.php CHANGED
@@ -329,7 +329,7 @@ class SQ_Core_BlockFeatures extends SQ_Classes_BlockController
329
  'show' => SQ_Classes_Helpers_Tools::isPluginInstalled('thrive-visual-editor/thrive-visual-editor.php'),
330
  ),//Live Assistant Thrive Architect
331
  array(
332
- 'title' => "Bricks Website Builder (BETA)",
333
  'description' => "The SEO Live Assistant <strong>works on the front-end of Bricks Website Builder</strong>, just as you're creating or editing your Bricks page.",
334
  'category' => "Assistants",
335
  'mainfeature' => false,
@@ -342,6 +342,34 @@ class SQ_Core_BlockFeatures extends SQ_Classes_BlockController
342
  'details' => 'https://howto12.squirrly.co/kb/squirrly-live-assistant/#bricks',
343
  'show' => SQ_Classes_Helpers_Tools::isThemeActive('bricks'),
344
  ),//Live Assistant Bricks Website Builder
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  array(
346
  'title' => "Blogging Assistant",
347
  'description' => "Add relevant <strong>Copyright-Free images, Tweets, Wikis, Blog Excerpts</strong> in your posts.",
@@ -512,7 +540,7 @@ class SQ_Core_BlockFeatures extends SQ_Classes_BlockController
512
  ), //Google Search Console
513
  array(
514
  'title' => "Webmaster Tools",
515
- 'description' => "Connect your website with the popular webmasters like <strong>Google Search Console (GSC), Bing, Baidu, Yandex, Alexa</strong>.",
516
  'category' => "Integration Features",
517
  'mainfeature' => false,
518
  'option' => 'sq_auto_webmasters',
@@ -567,8 +595,8 @@ class SQ_Core_BlockFeatures extends SQ_Classes_BlockController
567
  'show' => SQ_Classes_Helpers_Tools::getMenuVisible('show_audit'),
568
  ), //SEO Focus Pages Majestic
569
  array(
570
- 'title' => "Alexa",
571
- 'description' => "Receive <strong>Alexa Score and Backlinks</strong> information directly in your SEO Audit report.",
572
  'category' => "Integration Features",
573
  'mainfeature' => false,
574
  'option' => false,
@@ -577,9 +605,9 @@ class SQ_Core_BlockFeatures extends SQ_Classes_BlockController
577
  'connection' => true,
578
  'logo' => 'fa-solid fa-puzzle-piece',
579
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_audits', 'audits'),
580
- 'details' => 'https://howto12.squirrly.co/kb/seo-audit/#alexa',
581
  'show' => SQ_Classes_Helpers_Tools::getMenuVisible('show_audit'),
582
- ), //SEO Audit Alexa
583
  array(
584
  'title' => "Polylang",
585
  'description' => "<strong>Multilingual Support</strong> with Polylang plugin for fast multilingual optimization. Load Squirrly Live Assistant, SEO Snippets and Sitemap XML based on Polylang language.",
329
  'show' => SQ_Classes_Helpers_Tools::isPluginInstalled('thrive-visual-editor/thrive-visual-editor.php'),
330
  ),//Live Assistant Thrive Architect
331
  array(
332
+ 'title' => "Bricks Website Builder",
333
  'description' => "The SEO Live Assistant <strong>works on the front-end of Bricks Website Builder</strong>, just as you're creating or editing your Bricks page.",
334
  'category' => "Assistants",
335
  'mainfeature' => false,
342
  'details' => 'https://howto12.squirrly.co/kb/squirrly-live-assistant/#bricks',
343
  'show' => SQ_Classes_Helpers_Tools::isThemeActive('bricks'),
344
  ),//Live Assistant Bricks Website Builder
345
+ array(
346
+ 'title' => "WPBakery Page Builder",
347
+ 'description' => "The SEO Live Assistant <strong>works on the front-end of WPBakery Page Builder</strong>, just as you're creating or editing your WPBakery page.",
348
+ 'category' => "Assistants",
349
+ 'mainfeature' => false,
350
+ 'option' => 'sq_sla_frontend',
351
+ 'active' => SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend'),
352
+ 'optional' => true,
353
+ 'connection' => false,
354
+ 'logo' => 'fa-solid fa-message',
355
+ 'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_assistant', 'settings'),
356
+ 'details' => 'https://howto12.squirrly.co/kb/squirrly-live-assistant/#wpbakery',
357
+ 'show' => SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php'),
358
+ ),//Live Assistant WPBakery Builder
359
+ array(
360
+ 'title' => "Zion Editor",
361
+ 'description' => "The SEO Live Assistant <strong>works on the front-end of Zion Editor</strong>, just as you're creating or editing your Zion page.",
362
+ 'category' => "Assistants",
363
+ 'mainfeature' => false,
364
+ 'option' => 'sq_sla_frontend',
365
+ 'active' => SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend'),
366
+ 'optional' => true,
367
+ 'connection' => false,
368
+ 'logo' => 'fa-solid fa-message',
369
+ 'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_assistant', 'settings'),
370
+ 'details' => 'https://howto12.squirrly.co/kb/squirrly-live-assistant/#zion',
371
+ 'show' => SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php'),
372
+ ),//Live Assistant Zion Editor
373
  array(
374
  'title' => "Blogging Assistant",
375
  'description' => "Add relevant <strong>Copyright-Free images, Tweets, Wikis, Blog Excerpts</strong> in your posts.",
540
  ), //Google Search Console
541
  array(
542
  'title' => "Webmaster Tools",
543
+ 'description' => "Connect your website with the popular webmasters like <strong>Google Search Console (GSC), Bing, Baidu, Yandex</strong>.",
544
  'category' => "Integration Features",
545
  'mainfeature' => false,
546
  'option' => 'sq_auto_webmasters',
595
  'show' => SQ_Classes_Helpers_Tools::getMenuVisible('show_audit'),
596
  ), //SEO Focus Pages Majestic
597
  array(
598
+ 'title' => "Semrush",
599
+ 'description' => "Receive <strong>Semrush Rank and Backlinks</strong> information directly in your Audit report.",
600
  'category' => "Integration Features",
601
  'mainfeature' => false,
602
  'option' => false,
605
  'connection' => true,
606
  'logo' => 'fa-solid fa-puzzle-piece',
607
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_audits', 'audits'),
608
+ 'details' => 'https://howto12.squirrly.co/kb/seo-audit/#semrush',
609
  'show' => SQ_Classes_Helpers_Tools::getMenuVisible('show_audit'),
610
+ ), //SEO Audit Semrush
611
  array(
612
  'title' => "Polylang",
613
  'description' => "<strong>Multilingual Support</strong> with Polylang plugin for fast multilingual optimization. Load Squirrly Live Assistant, SEO Snippets and Sitemap XML based on Polylang language.",
models/Assistant.php CHANGED
@@ -30,6 +30,7 @@ class SQ_Models_Assistant
30
  $content .= '<ul id="sq_assistant_tasks_' . $category_name . '" class="p-0 m-0" >';
31
  foreach ($tasks as $name => $task) {
32
 
 
33
  $content .= '<li class="sq_task row p-2 mx-0 my-3 ' . (isset($task['status']) ? $task['status'] : '') . '" data-category="' . $category_name . '" data-name="' . $name . '" data-active="' . $task['active'] . '" data-completed="' . $task['completed'] . '" data-dismiss="modal">
34
  <i class="fa-solid fa-check" title="' . $task['error_message'] . '"></i>
35
  <div class="col p-1 m-0">' . $task['title'] . '</div>
@@ -186,31 +187,37 @@ class SQ_Models_Assistant
186
  'title' => esc_html__("Activate METAs", 'squirrly-seo'),
187
  'description' => sprintf(esc_html__("Activate the %sMETA settings%s from the Squirrly SEO Plugin. %s You can import ALL META settings you've made with other plugins in WordPress into your Squirrly SEO Plugin. That way everything will be kept 100%% intact, without any head-aches. %s To complete this task you need to activate: %s - Optimize the Titles%s - Optimize Descriptions %s - Add Canonical META Link %s Make sure you click on %sSave settings%s after you switch anything on or off.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'metas') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />', '<br />', '<br />', '<br /><br />', '<strong>', '</strong>'),
188
  'function' => 'checkSettingsMetas',
 
189
  ),
190
  'setup_jsonld' => array(
191
  'title' => esc_html__("Activate JSON-LD", 'squirrly-seo'),
192
  'description' => sprintf(esc_html__("%sJSON-LD Structured Data%s needs to be activated. %s The Duplicate Removal feature of Squirrly SEO will make sure that if you have more than one JSON-LD definition inside the source code of any URL, the definition created by Squirrly SEO will be the only one that remains. %s Make sure you setup all the information about your Organization or your Personal Brand here. %s To finish all the JSON-LD related setup, also visit the %sSocial Media Accounts%s section of our Settings page and write in your social media profiles for this site. %s Then, at URL-level you will be able to add custom JSON-LD if you're an advanced user.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'jsonld') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />', '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'social', array('#tab=accounts')) . '">', '</a>', '<br /><br />'),
193
  'function' => 'checkSettingsJsonld',
 
194
  ),
195
  'setup_og' => array(
196
  'title' => esc_html__("Activate Open Graph", 'squirrly-seo'),
197
  'description' => sprintf(esc_html__("Go to the %sSocial Media section%s.%sActivate Open Graph. (switch the toggle to ON) %s The Open Graph will help you control the way your posts look when people share your URLs to social media sites like Facebook and LinkedIN. %s It will also make your social media posts look great and gain you clicks to your site.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'social') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />'),
198
  'function' => 'checkSettingsSocialOG',
 
199
  ),
200
  'setup_twc' => array(
201
  'title' => esc_html__("Activate Twitter Card", 'squirrly-seo'),
202
  'description' => sprintf(esc_html__("Go to the %sSocial Media section%s. %s - Activate Twitter Card. (from Twitter Card Settings: switch the toggle to ON) %s - Add your Twitter profile URL (go to the Social Media Accounts section to do this) %s The Twitter Card will help you control the way your posts look when people share your URLs on Twitter. %s It will also make your social media posts look great and gain you clicks to your site.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'social') . '">', '</a>', '<br /><br />', '<br />', '<br /><br />', '<br /><br />'),
203
  'function' => 'checkSettingsSocialTWC',
 
204
  ),
205
  'setup_sitemap' => array(
206
  'title' => esc_html__("Activate Sitemap XML", 'squirrly-seo'),
207
  'description' => sprintf(esc_html__("Activate your %sSitemap XML%s setting. Squirrly SEO will then generate your sitemap, according to different items you can set up. %s Use this to tell Google how often you bring new content to your site. %s Also, choose for which types of URLs you'll want to have sitemaps. It depends on your strategy. Leave the defaults if you're uncertain. Squirrly SEO chooses the best defaults for you. %s Make sure you include Images and Videos in the sitemap. It has been identified as a ranking factor, so it's good to have that.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'tweaks') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />'),
208
  'function' => 'checkSettingsSitemap',
 
209
  ),
210
  'setup_ganalytics' => array(
211
  'title' => esc_html__("Activate Google Analytics", 'squirrly-seo'),
212
  'description' => sprintf(esc_html__("Go to the %sTracking Tools section%s. %s Add your Google Analytics ID to complete this setting. (find it in the tracking code that Google Analytics tells you to place on your site) %s Squirrly SEO will then add (automatically) your Google Analytics tracking code (in the format you desire) to every page of your site (according to rules you can modify in the Automation section).", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'webmaster#tab=trackers') . '">', '</a>', '<br /><br />', '<br /><br />'),
213
  'function' => 'checkSettingsGoogleAnalytics',
 
214
  ),
215
  // 'setup_fpixel' => array(
216
  // 'title' => esc_html__("Activate Facebook Pixel", 'squirrly-seo'),
@@ -221,6 +228,7 @@ class SQ_Models_Assistant
221
  'title' => esc_html__("Connect the Webmasters", 'squirrly-seo'),
222
  'description' => sprintf(esc_html__("Go to the %sWebmasters section%s. %s This section makes it super easy to integrate different (important) 3rd party services with your WordPress. %s Some webmasters are optional, but Google Search Console is really important. %s Enter your Pinterest code, especially if you plan to expand your presence on Pinterest. It will %sactivate Rich Pins%s, which will completely boost your sales and visibility for any product or post that has great images.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'webmaster') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />', '<a href="https://developers.pinterest.com/tools/url-debugger/" target="_blank">', '</a>'),
223
  'function' => 'checkSettingsWebmasters',
 
224
  ),
225
 
226
  );
@@ -297,6 +305,12 @@ class SQ_Models_Assistant
297
  }
298
 
299
  foreach ($tasks as $name => &$task) {
 
 
 
 
 
 
300
  if (!isset($this->_dbtasks[$category_name][$name]['completed'])) {
301
  $this->_dbtasks[$category_name][$name]['completed'] = false;
302
  }
@@ -491,8 +505,7 @@ class SQ_Models_Assistant
491
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_webmasters')) {
492
  $codes = json_decode(wp_json_encode(SQ_Classes_Helpers_Tools::getOption('codes')));
493
  if (isset($codes->google_wt) && $codes->google_wt <> ''
494
- || isset($codes->bing_wt) && $codes->bing_wt <> ''
495
- || isset($codes->alexa_verify) && $codes->alexa_verify <> ''
496
  || isset($codes->baidu_wt) && $codes->baidu_wt <> ''
497
  || isset($codes->yandex_wt) && $codes->yandex_wt <> ''
498
  || isset($codes->norton_verify) && $codes->norton_verify <> ''
30
  $content .= '<ul id="sq_assistant_tasks_' . $category_name . '" class="p-0 m-0" >';
31
  foreach ($tasks as $name => $task) {
32
 
33
+
34
  $content .= '<li class="sq_task row p-2 mx-0 my-3 ' . (isset($task['status']) ? $task['status'] : '') . '" data-category="' . $category_name . '" data-name="' . $name . '" data-active="' . $task['active'] . '" data-completed="' . $task['completed'] . '" data-dismiss="modal">
35
  <i class="fa-solid fa-check" title="' . $task['error_message'] . '"></i>
36
  <div class="col p-1 m-0">' . $task['title'] . '</div>
187
  'title' => esc_html__("Activate METAs", 'squirrly-seo'),
188
  'description' => sprintf(esc_html__("Activate the %sMETA settings%s from the Squirrly SEO Plugin. %s You can import ALL META settings you've made with other plugins in WordPress into your Squirrly SEO Plugin. That way everything will be kept 100%% intact, without any head-aches. %s To complete this task you need to activate: %s - Optimize the Titles%s - Optimize Descriptions %s - Add Canonical META Link %s Make sure you click on %sSave settings%s after you switch anything on or off.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'metas') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />', '<br />', '<br />', '<br /><br />', '<strong>', '</strong>'),
189
  'function' => 'checkSettingsMetas',
190
+ 'show' => SQ_Classes_Helpers_Tools::getOption('sq_auto_metas')
191
  ),
192
  'setup_jsonld' => array(
193
  'title' => esc_html__("Activate JSON-LD", 'squirrly-seo'),
194
  'description' => sprintf(esc_html__("%sJSON-LD Structured Data%s needs to be activated. %s The Duplicate Removal feature of Squirrly SEO will make sure that if you have more than one JSON-LD definition inside the source code of any URL, the definition created by Squirrly SEO will be the only one that remains. %s Make sure you setup all the information about your Organization or your Personal Brand here. %s To finish all the JSON-LD related setup, also visit the %sSocial Media Accounts%s section of our Settings page and write in your social media profiles for this site. %s Then, at URL-level you will be able to add custom JSON-LD if you're an advanced user.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'jsonld') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />', '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'social', array('#tab=accounts')) . '">', '</a>', '<br /><br />'),
195
  'function' => 'checkSettingsJsonld',
196
+ 'show' => SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')
197
  ),
198
  'setup_og' => array(
199
  'title' => esc_html__("Activate Open Graph", 'squirrly-seo'),
200
  'description' => sprintf(esc_html__("Go to the %sSocial Media section%s.%sActivate Open Graph. (switch the toggle to ON) %s The Open Graph will help you control the way your posts look when people share your URLs to social media sites like Facebook and LinkedIN. %s It will also make your social media posts look great and gain you clicks to your site.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'social') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />'),
201
  'function' => 'checkSettingsSocialOG',
202
+ 'show' => SQ_Classes_Helpers_Tools::getOption('sq_auto_facebook')
203
  ),
204
  'setup_twc' => array(
205
  'title' => esc_html__("Activate Twitter Card", 'squirrly-seo'),
206
  'description' => sprintf(esc_html__("Go to the %sSocial Media section%s. %s - Activate Twitter Card. (from Twitter Card Settings: switch the toggle to ON) %s - Add your Twitter profile URL (go to the Social Media Accounts section to do this) %s The Twitter Card will help you control the way your posts look when people share your URLs on Twitter. %s It will also make your social media posts look great and gain you clicks to your site.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'social') . '">', '</a>', '<br /><br />', '<br />', '<br /><br />', '<br /><br />'),
207
  'function' => 'checkSettingsSocialTWC',
208
+ 'show' => SQ_Classes_Helpers_Tools::getOption('sq_auto_twitter')
209
  ),
210
  'setup_sitemap' => array(
211
  'title' => esc_html__("Activate Sitemap XML", 'squirrly-seo'),
212
  'description' => sprintf(esc_html__("Activate your %sSitemap XML%s setting. Squirrly SEO will then generate your sitemap, according to different items you can set up. %s Use this to tell Google how often you bring new content to your site. %s Also, choose for which types of URLs you'll want to have sitemaps. It depends on your strategy. Leave the defaults if you're uncertain. Squirrly SEO chooses the best defaults for you. %s Make sure you include Images and Videos in the sitemap. It has been identified as a ranking factor, so it's good to have that.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'tweaks') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />'),
213
  'function' => 'checkSettingsSitemap',
214
+ 'show' => SQ_Classes_Helpers_Tools::getOption('sq_auto_sitemap')
215
  ),
216
  'setup_ganalytics' => array(
217
  'title' => esc_html__("Activate Google Analytics", 'squirrly-seo'),
218
  'description' => sprintf(esc_html__("Go to the %sTracking Tools section%s. %s Add your Google Analytics ID to complete this setting. (find it in the tracking code that Google Analytics tells you to place on your site) %s Squirrly SEO will then add (automatically) your Google Analytics tracking code (in the format you desire) to every page of your site (according to rules you can modify in the Automation section).", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'webmaster#tab=trackers') . '">', '</a>', '<br /><br />', '<br /><br />'),
219
  'function' => 'checkSettingsGoogleAnalytics',
220
+ 'show' => SQ_Classes_Helpers_Tools::getOption('sq_auto_tracking')
221
  ),
222
  // 'setup_fpixel' => array(
223
  // 'title' => esc_html__("Activate Facebook Pixel", 'squirrly-seo'),
228
  'title' => esc_html__("Connect the Webmasters", 'squirrly-seo'),
229
  'description' => sprintf(esc_html__("Go to the %sWebmasters section%s. %s This section makes it super easy to integrate different (important) 3rd party services with your WordPress. %s Some webmasters are optional, but Google Search Console is really important. %s Enter your Pinterest code, especially if you plan to expand your presence on Pinterest. It will %sactivate Rich Pins%s, which will completely boost your sales and visibility for any product or post that has great images.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_seosettings', 'webmaster') . '">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />', '<a href="https://developers.pinterest.com/tools/url-debugger/" target="_blank">', '</a>'),
230
  'function' => 'checkSettingsWebmasters',
231
+ 'show' => SQ_Classes_Helpers_Tools::getOption('sq_auto_webmasters')
232
  ),
233
 
234
  );
305
  }
306
 
307
  foreach ($tasks as $name => &$task) {
308
+
309
+ if(isset($task['show']) && !$task['show']) {
310
+ unset($tasks[$name]);
311
+ continue;
312
+ }
313
+
314
  if (!isset($this->_dbtasks[$category_name][$name]['completed'])) {
315
  $this->_dbtasks[$category_name][$name]['completed'] = false;
316
  }
505
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_webmasters')) {
506
  $codes = json_decode(wp_json_encode(SQ_Classes_Helpers_Tools::getOption('codes')));
507
  if (isset($codes->google_wt) && $codes->google_wt <> ''
508
+ || isset($codes->bing_wt) && $codes->bing_wt <> ''
 
509
  || isset($codes->baidu_wt) && $codes->baidu_wt <> ''
510
  || isset($codes->yandex_wt) && $codes->yandex_wt <> ''
511
  || isset($codes->norton_verify) && $codes->norton_verify <> ''
models/Audits.php CHANGED
@@ -449,15 +449,15 @@ class SQ_Models_Audits
449
  'solution' => esc_html__("Get links to your page from domains with authority.", 'squirrly-seo'),
450
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_bulkseo', 'bulkseo'),
451
  ),
452
- 'AlexaRank' => array(
453
  'complete' => false,
454
- 'title' => esc_html__("Alexa Rank", 'squirrly-seo'),
455
  'success' => '%s ',
456
  'fail' => '%s ',
457
  'success_list' => '',
458
  'fail_list' => '',
459
- 'description' => sprintf(esc_html__("How can we fix the Alexa Rank of the website? %s Get more traffic to your website. (the visitors should have the Alexa toolbar installed for Alexa to be able to measure the traffic). %s You could encourage your visitors to install the Alexa toolbar (if it makes sense for your business or audience, of course). %s Increase your SEO rankings, get more shares on social media. You can use tools like Social Squirrly to make sure you constantly promote your pages, without doing any manual work. And without forgetting to keep posting them. [link]https://www.squirrly.co/social-media/tools-for-digital-marketing/[/link]%s", 'squirrly-seo'), '<ul><li>', '</li><li>', '</li><li>', '</li></ul>'),
460
- 'protip' => esc_html__("A certain and tested way of increasing Alexa rank is creating and promoting many pieces of fresh content. An agency like Squirrly's Content Agency can help you with this. [link]http://www.squirrly.co/agency[/link]", 'squirrly-seo'),
461
  'solution' => esc_html__("Try to gain organic traffic to your site.", 'squirrly-seo'),
462
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_bulkseo', 'bulkseo'),
463
  ),
@@ -527,6 +527,10 @@ class SQ_Models_Audits
527
  continue;
528
  }
529
 
 
 
 
 
530
  $replace = '';
531
  switch ($audittask->audit_task) {
532
  case 'TopTen':
449
  'solution' => esc_html__("Get links to your page from domains with authority.", 'squirrly-seo'),
450
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_bulkseo', 'bulkseo'),
451
  ),
452
+ 'SemrushRank' => array(
453
  'complete' => false,
454
+ 'title' => esc_html__("Semrush Rank", 'squirrly-seo'),
455
  'success' => '%s ',
456
  'fail' => '%s ',
457
  'success_list' => '',
458
  'fail_list' => '',
459
+ 'description' => sprintf(esc_html__("How can we fix the Semrush Rank of the website? %s Get more traffic to your website. %s Increase your SEO rankings, get more shares on social media. You can use tools like Social Squirrly to make sure you constantly promote your pages, without doing any manual work. And without forgetting to keep posting them. [link]https://www.squirrly.co/social-media/tools-for-digital-marketing/[/link]%s", 'squirrly-seo'), '<ul><li>', '</li><li>', '</li></ul>'),
460
+ 'protip' => esc_html__("A certain and tested way of increasing Semrush rank is creating and promoting many pieces of fresh content. An agency like Squirrly's Content Agency can help you with this. [link]http://www.squirrly.co/agency[/link]", 'squirrly-seo'),
461
  'solution' => esc_html__("Try to gain organic traffic to your site.", 'squirrly-seo'),
462
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_bulkseo', 'bulkseo'),
463
  ),
527
  continue;
528
  }
529
 
530
+ if ($audittask->audit_task == 'SemrushRank' && $audittask->value == 0) {
531
+ continue;
532
+ }
533
+
534
  $replace = '';
535
  switch ($audittask->audit_task) {
536
  case 'TopTen':
models/Compatibility.php CHANGED
@@ -156,15 +156,15 @@ class SQ_Models_Compatibility
156
  }
157
 
158
  //Load SLA in WPBakery Frontend
159
- // if (SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php')) {
160
- // if (SQ_Classes_Helpers_Tools::getValue('vc_action') == 'vc_inline') {
161
- // //activate frontend SLA
162
- // add_filter('sq_load_frontend_sla', '__return_true');
163
- //
164
- // //hook the WPBakery editor
165
- // add_action('vc_frontend_editor_render_template', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), 99);
166
- // }
167
- // }
168
 
169
  //Load SLA in Thrive Backend
170
  if (SQ_Classes_Helpers_Tools::isPluginInstalled('thrive-visual-editor/thrive-visual-editor.php')) {
@@ -179,20 +179,20 @@ class SQ_Models_Compatibility
179
  }
180
 
181
  //Load SLA in Zion Backend
182
- // if (SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php')) {
183
- // if (SQ_Classes_Helpers_Tools::getValue('action') == 'zion_builder_active') {
184
- // //activate frontend SLA
185
- // add_filter('sq_load_frontend_sla', '__return_true');
186
- //
187
- // wp_enqueue_script('jquery');
188
- // wp_enqueue_script('jquery-ui-core');
189
- // wp_enqueue_script('jquery-ui-draggable');
190
- // wp_print_scripts(array('jquery', 'jquery-ui-core', 'jquery-ui-draggable'));
191
- //
192
- // //activate SLA for Zion on frontend
193
- // add_action('zionbuilder/editor/after_scripts', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), 99);
194
- // }
195
- // }
196
 
197
  }
198
  }
@@ -236,23 +236,23 @@ class SQ_Models_Compatibility
236
  }
237
 
238
  //Load the SLA for JS Composer / WPBakery
239
- // if (SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php')) {
240
- // if (SQ_Classes_Helpers_Tools::getValue('vc_editable')) {
241
- //
242
- // //Load the style for builders
243
- // SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
244
- // }
245
- // }
246
 
247
- //Load the SLA for Elementor Editor
248
- // if (SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php')) {
249
- // if (SQ_Classes_Helpers_Tools::getValue('zionbuilder-preview')) {
250
- //
251
- // //Load the style for builders
252
- // SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
253
- //
254
- // }
255
- // }
 
 
 
 
 
256
 
257
  //Load the SLA for Elementor Editor
258
  if (SQ_Classes_Helpers_Tools::isPluginInstalled('thrive-visual-editor/thrive-visual-editor.php')) {
156
  }
157
 
158
  //Load SLA in WPBakery Frontend
159
+ if (SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php')) {
160
+ if (SQ_Classes_Helpers_Tools::getValue('vc_action') == 'vc_inline') {
161
+ //activate frontend SLA
162
+ add_filter('sq_load_frontend_sla', '__return_true');
163
+
164
+ //hook the WPBakery editor
165
+ add_action('vc_frontend_editor_render_template', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), 99);
166
+ }
167
+ }
168
 
169
  //Load SLA in Thrive Backend
170
  if (SQ_Classes_Helpers_Tools::isPluginInstalled('thrive-visual-editor/thrive-visual-editor.php')) {
179
  }
180
 
181
  //Load SLA in Zion Backend
182
+ if (SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php')) {
183
+ if (SQ_Classes_Helpers_Tools::getValue('action') == 'zion_builder_active') {
184
+ //activate frontend SLA
185
+ add_filter('sq_load_frontend_sla', '__return_true');
186
+
187
+ wp_enqueue_script('jquery');
188
+ wp_enqueue_script('jquery-ui-core');
189
+ wp_enqueue_script('jquery-ui-draggable');
190
+ wp_print_scripts(array('jquery', 'jquery-ui-core', 'jquery-ui-draggable'));
191
+
192
+ //activate SLA for Zion on frontend
193
+ add_action('zionbuilder/editor/after_scripts', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), 99);
194
+ }
195
+ }
196
 
197
  }
198
  }
236
  }
237
 
238
  //Load the SLA for JS Composer / WPBakery
239
+ if (SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php')) {
240
+ if (SQ_Classes_Helpers_Tools::getValue('vc_editable')) {
 
 
 
 
 
241
 
242
+ //Load the style for builders
243
+ SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
244
+ }
245
+ }
246
+
247
+ //Load the SLA for Zion Editor
248
+ if (SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php')) {
249
+ if (SQ_Classes_Helpers_Tools::getValue('zionbuilder-preview')) {
250
+
251
+ //Load the style for builders
252
+ SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
253
+
254
+ }
255
+ }
256
 
257
  //Load the SLA for Elementor Editor
258
  if (SQ_Classes_Helpers_Tools::isPluginInstalled('thrive-visual-editor/thrive-visual-editor.php')) {
models/Frontend.php CHANGED
@@ -4,7 +4,6 @@ class SQ_Models_Frontend
4
  {
5
 
6
  private $_post;
7
- private $_buffer = false;
8
 
9
  public function __construct()
10
  {
@@ -63,15 +62,15 @@ class SQ_Models_Frontend
63
  public function getBuffer($buffer)
64
  {
65
 
66
- if (!$this->_buffer) {
67
  if (!$buffer && ob_get_contents()) {
68
  $buffer = ob_get_contents();
69
  }
70
 
71
- $this->_buffer = apply_filters('sq_buffer', $buffer);
72
  }
73
 
74
- return $this->_buffer;
75
  }
76
 
77
 
@@ -84,9 +83,7 @@ class SQ_Models_Frontend
84
  public function setMetaInBuffer($buffer)
85
  {
86
  //if is enabled sq for this page
87
- if ($this->runSEOForThisPage()) {
88
-
89
- if ($header = $this->getHeader()) {
90
 
91
  try {
92
  //clear the existing tags to avoid duplicates
@@ -155,7 +152,6 @@ class SQ_Models_Frontend
155
  } catch (Exception $e) {
156
  }
157
  }
158
- }
159
 
160
  return $buffer;
161
  }
@@ -254,6 +250,7 @@ class SQ_Models_Frontend
254
  */
255
  public function loadSeoLibrary()
256
  {
 
257
  if ($this->_post && isset($this->_post->sq->doseo) && $this->_post->sq->doseo) {
258
 
259
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_redirects')) {
@@ -677,8 +674,6 @@ class SQ_Models_Frontend
677
  return $post;
678
  }
679
 
680
-
681
-
682
  return false;
683
  }
684
 
4
  {
5
 
6
  private $_post;
 
7
 
8
  public function __construct()
9
  {
62
  public function getBuffer($buffer)
63
  {
64
 
65
+ if ($this->runSEOForThisPage()) {
66
  if (!$buffer && ob_get_contents()) {
67
  $buffer = ob_get_contents();
68
  }
69
 
70
+ $buffer = apply_filters('sq_buffer', $buffer);
71
  }
72
 
73
+ return $buffer;
74
  }
75
 
76
 
83
  public function setMetaInBuffer($buffer)
84
  {
85
  //if is enabled sq for this page
86
+ if ($header = $this->getHeader()) {
 
 
87
 
88
  try {
89
  //clear the existing tags to avoid duplicates
152
  } catch (Exception $e) {
153
  }
154
  }
 
155
 
156
  return $buffer;
157
  }
250
  */
251
  public function loadSeoLibrary()
252
  {
253
+
254
  if ($this->_post && isset($this->_post->sq->doseo) && $this->_post->sq->doseo) {
255
 
256
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_redirects')) {
674
  return $post;
675
  }
676
 
 
 
677
  return false;
678
  }
679
 
models/ImportExport.php CHANGED
@@ -404,7 +404,6 @@ class SQ_Models_ImportExport
404
  if (isset($options['webmasterTools']['google']) && $options['webmasterTools']['google'] <> '') $codes['google_analytics'] = $options['webmasterTools']['google'];
405
  if (isset($options['webmasterTools']['yandex']) && $options['webmasterTools']['yandex'] <> '') $codes['yandex_wt'] = $options['webmasterTools']['yandex'];
406
  if (isset($options['webmasterTools']['baidu']) && $options['webmasterTools']['baidu'] <> '') $codes['baidu_wt'] = $options['webmasterTools']['baidu'];
407
- if (isset($options['webmasterTools']['alexa']) && $options['webmasterTools']['alexa'] <> '') $codes['alexa_verify'] = $options['webmasterTools']['alexa'];
408
  if (isset($options['webmasterTools']['norton']) && $options['webmasterTools']['norton'] <> '') $codes['norton_verify'] = $options['webmasterTools']['norton'];
409
 
410
  SQ_Classes_Helpers_Tools::saveOptions('socials', $socials);
@@ -443,7 +442,6 @@ class SQ_Models_ImportExport
443
  if (isset($options['google_verify']) && $options['google_verify'] <> '') $codes['google_wt'] = $options['google_verify'];
444
  if (isset($options['bing_verify']) && $options['bing_verify'] <> '') $codes['bing_wt'] = $options['bing_verify'];
445
  if (isset($options['pinterest_verify']) && $options['pinterest_verify'] <> '') $codes['pinterest_verify'] = $options['pinterest_verify'];
446
- if (isset($options['alexa_verify']) && $options['alexa_verify'] <> '') $codes['alexa_verify'] = $options['alexa_verify'];
447
  if (isset($options['yandex_verify']) && $options['yandex_verify'] <> '') $codes['yandex_wt'] = $options['yandex_verify'];
448
  if (isset($options['baidu_verify']) && $options['baidu_verify'] <> '') $codes['baidu_wt'] = $options['baidu_verify'];
449
  if (isset($options['norton_verify']) && $options['norton_verify'] <> '') $codes['norton_verify'] = $options['norton_verify'];
404
  if (isset($options['webmasterTools']['google']) && $options['webmasterTools']['google'] <> '') $codes['google_analytics'] = $options['webmasterTools']['google'];
405
  if (isset($options['webmasterTools']['yandex']) && $options['webmasterTools']['yandex'] <> '') $codes['yandex_wt'] = $options['webmasterTools']['yandex'];
406
  if (isset($options['webmasterTools']['baidu']) && $options['webmasterTools']['baidu'] <> '') $codes['baidu_wt'] = $options['webmasterTools']['baidu'];
 
407
  if (isset($options['webmasterTools']['norton']) && $options['webmasterTools']['norton'] <> '') $codes['norton_verify'] = $options['webmasterTools']['norton'];
408
 
409
  SQ_Classes_Helpers_Tools::saveOptions('socials', $socials);
442
  if (isset($options['google_verify']) && $options['google_verify'] <> '') $codes['google_wt'] = $options['google_verify'];
443
  if (isset($options['bing_verify']) && $options['bing_verify'] <> '') $codes['bing_wt'] = $options['bing_verify'];
444
  if (isset($options['pinterest_verify']) && $options['pinterest_verify'] <> '') $codes['pinterest_verify'] = $options['pinterest_verify'];
 
445
  if (isset($options['yandex_verify']) && $options['yandex_verify'] <> '') $codes['yandex_wt'] = $options['yandex_verify'];
446
  if (isset($options['baidu_verify']) && $options['baidu_verify'] <> '') $codes['baidu_wt'] = $options['baidu_verify'];
447
  if (isset($options['norton_verify']) && $options['norton_verify'] <> '') $codes['norton_verify'] = $options['norton_verify'];
models/Post.php CHANGED
@@ -12,178 +12,13 @@ class SQ_Models_Post
12
  * @param array $args
13
  * @return array|WP_Error
14
  */
15
- public function searchPost($args)
16
  {
17
  wp_reset_query();
18
  $wp_query = new WP_Query($args);
19
  return $wp_query->get_posts();
20
  }
21
 
22
- /**
23
- * Returns the attachment from the file URL
24
- *
25
- * @param $image_url
26
- * @return mixed
27
- */
28
- function findAttachmentByUrl($image_url)
29
- {
30
- global $wpdb;
31
- return $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE `post_type` = %s AND `guid` like '%%%s';", 'attachment', $image_url));
32
- }
33
-
34
- /**
35
- * Add the image for Open Graph
36
- *
37
- * @param string $file
38
- * @return array [name (the name of the file), image (the path of the image), message (the returned message)]
39
- */
40
- function addImage(&$file, $overrides = false, $time = null)
41
- {
42
- // The default error handler.
43
- if (!function_exists('wp_handle_upload_error')) {
44
-
45
- function wp_handle_upload_error(&$file, $message)
46
- {
47
- return array('error' => $message);
48
- }
49
-
50
- }
51
-
52
- /**
53
- * Filter data for the current file to upload.
54
- *
55
- * @since 2.9.0
56
- *
57
- * @param array $file An array of data for a single file.
58
- */
59
- $file = apply_filters('wp_handle_upload_prefilter', $file);
60
-
61
- // You may define your own function and pass the name in $overrides['upload_error_handler']
62
- $upload_error_handler = 'wp_handle_upload_error';
63
-
64
- // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully.
65
- if (isset($file['error']) && !is_numeric($file['error']) && $file['error'])
66
- return $upload_error_handler($file, $file['error']);
67
-
68
- // You may define your own function and pass the name in $overrides['unique_filename_callback']
69
- $unique_filename_callback = null;
70
-
71
- // $_POST['action'] must be set and its value must equal $overrides['action'] or this:
72
- $action = 'sq_ajax_save_ogimage';
73
-
74
- // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error'].
75
- $upload_error_strings = array(false,
76
- esc_html__("The uploaded file exceeds the upload_max_filesize directive in php.ini."),
77
- esc_html__("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form."),
78
- esc_html__("The uploaded file was only partially uploaded."),
79
- esc_html__("No file was uploaded."),
80
- '',
81
- esc_html__("Missing a temporary folder."),
82
- esc_html__("Failed to write file to disk."),
83
- esc_html__("File upload stopped by extension."));
84
-
85
- // All tests are on by default. Most can be turned off by $overrides[{test_name}] = false;
86
- $test_form = true;
87
- $test_size = true;
88
- $test_upload = true;
89
-
90
- // If you override this, you must provide $ext and $type!!!!
91
- $test_type = true;
92
- $mimes = false;
93
-
94
- // Install user overrides. Did we mention that this voids your warranty?
95
- if (is_array($overrides))
96
- extract($overrides, EXTR_OVERWRITE);
97
-
98
- // A correct form post will pass this test.
99
- if ($test_form && (!isset($_POST['action']) || ($_POST['action'] != $action)))
100
- return call_user_func($upload_error_handler, $file, esc_html__("Invalid form submission."));
101
-
102
- // A successful upload will pass this test. It makes no sense to override this one.
103
- if (isset($file['error']) && $file['error'] > 0) {
104
- return call_user_func($upload_error_handler, $file, $upload_error_strings[$file['error']]);
105
- }
106
-
107
- // A non-empty file will pass this test.
108
- if ($test_size && !($file['size'] > 0)) {
109
- if (is_multisite())
110
- $error_msg = esc_html__("File is empty. Please upload something more substantial.", 'squirrly-seo');
111
- else
112
- $error_msg = esc_html__("File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.", 'squirrly-seo');
113
- return call_user_func($upload_error_handler, $file, $error_msg);
114
- }
115
-
116
- // A properly uploaded file will pass this test. There should be no reason to override this one.
117
- if ($test_upload && !@ is_uploaded_file($file['tmp_name']))
118
- return call_user_func($upload_error_handler, $file, esc_html__("Specified file failed upload test.", 'squirrly-seo'));
119
-
120
- // A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter.
121
- if ($test_type) {
122
- $wp_filetype = wp_check_filetype_and_ext($file['tmp_name'], $file['name'], $mimes);
123
-
124
- extract($wp_filetype);
125
-
126
- // Check to see if wp_check_filetype_and_ext() determined the filename was incorrect
127
- if (isset($proper_filename) && $proper_filename <> '')
128
- $file['name'] = $proper_filename;
129
-
130
- if ((!isset($type) || !isset($ext)) && !SQ_Classes_Helpers_Tools::userCan('unfiltered_upload'))
131
- return call_user_func($upload_error_handler, $file, esc_html__("Sorry, this file type is not permitted for security reasons.", 'squirrly-seo'));
132
-
133
- if (!$ext)
134
- $ext = ltrim(strrchr($file['name'], '.'), '.');
135
-
136
- if (!$type)
137
- $type = $file['type'];
138
- } else {
139
- $type = '';
140
- }
141
-
142
- // A writable uploads dir will pass this test. Again, there's no point overriding this one.
143
- if (!(($uploads = wp_upload_dir($time)) && false === $uploads['error']))
144
- return call_user_func($upload_error_handler, $file, $uploads['error']);
145
-
146
- $filename = wp_unique_filename($uploads['path'], $file['name'], $unique_filename_callback);
147
-
148
- // Move the file to the uploads dir
149
- $new_file = $uploads['path'] . "/$filename";
150
- if (false === @ move_uploaded_file($file['tmp_name'], $new_file)) {
151
- if (0 === strpos($uploads['basedir'], ABSPATH))
152
- $error_path = str_replace(ABSPATH, '', $uploads['basedir']) . $uploads['subdir'];
153
- else
154
- $error_path = basename($uploads['basedir']) . $uploads['subdir'];
155
-
156
- return $upload_error_handler($file, sprintf(esc_html__("The uploaded file could not be moved to %s.", 'squirrly-seo'), $error_path));
157
- }
158
-
159
- // Set correct file permissions
160
- $stat = stat(dirname($new_file));
161
- $perms = $stat['mode'] & 0000666;
162
- @ chmod($new_file, $perms);
163
-
164
- // Compute the URL
165
- $url = $uploads['url'] . "/$filename";
166
-
167
- if (is_multisite())
168
- delete_transient('dirsize_cache');
169
-
170
- /**
171
- * Filter the data array for the uploaded file.
172
- *
173
- * @since 2.1.0
174
- *
175
- * @param array $upload {
176
- * Array of upload data.
177
- *
178
- * @type string $file Filename of the newly-uploaded file.
179
- * @type string $url URL of the uploaded file.
180
- * @type string $type File type.
181
- * }
182
- * @param string $context The type of upload action. Accepts 'upload' or 'sideload'.
183
- */
184
- return apply_filters('wp_handle_upload', array('file' => $new_file, 'url' => $url, 'type' => $type), 'upload');
185
- }
186
-
187
  /**
188
  * Upload the image on server from version 2.0.4
189
  *
@@ -191,7 +26,7 @@ class SQ_Models_Post
191
  * @param bool $basename
192
  * @return array|bool
193
  */
194
- public function upload_image($url, $basename)
195
  {
196
  if (strpos($url, 'http') === false && strpos($url, '//') !== false) {
197
  $url = 'http:' . $url;
@@ -233,7 +68,7 @@ class SQ_Models_Post
233
  return false;
234
  }
235
 
236
- public function getTasks()
237
  {
238
  $sla_tasks = array(
239
  "" => array(
12
  * @param array $args
13
  * @return array|WP_Error
14
  */
15
+ public function searchPost($args)
16
  {
17
  wp_reset_query();
18
  $wp_query = new WP_Query($args);
19
  return $wp_query->get_posts();
20
  }
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  /**
23
  * Upload the image on server from version 2.0.4
24
  *
26
  * @param bool $basename
27
  * @return array|bool
28
  */
29
+ public function upload_image($url, $basename)
30
  {
31
  if (strpos($url, 'http') === false && strpos($url, '//') !== false) {
32
  $url = 'http:' . $url;
68
  return false;
69
  }
70
 
71
+ public function getTasks()
72
  {
73
  $sla_tasks = array(
74
  "" => array(
models/Settings.php CHANGED
@@ -118,9 +118,6 @@ class SQ_Models_Settings
118
  case 'google_analytics':
119
  $subvalue = SQ_Classes_Helpers_Sanitize::checkGoogleAnalyticsCode($value[$subkey]);
120
  break;
121
- case 'alexa_verify':
122
- $subvalue = SQ_Classes_Helpers_Sanitize::checkAlexaCode($value[$subkey]);
123
- break;
124
  case 'facebook_pixel':
125
  $subvalue = SQ_Classes_Helpers_Sanitize::checkFacebookPixel($value[$subkey]);
126
  break;
118
  case 'google_analytics':
119
  $subvalue = SQ_Classes_Helpers_Sanitize::checkGoogleAnalyticsCode($value[$subkey]);
120
  break;
 
 
 
121
  case 'facebook_pixel':
122
  $subvalue = SQ_Classes_Helpers_Sanitize::checkFacebookPixel($value[$subkey]);
123
  break;
models/Sitemaps.php CHANGED
@@ -123,6 +123,7 @@ class SQ_Models_Sitemaps extends SQ_Models_Abstract_Seo
123
  if (post_password_required()) {
124
  continue;
125
  }
 
126
  if (function_exists('pll_get_post_translations')) {
127
  if (SQ_Classes_Helpers_Tools::getOption('sq_sitemap_combinelangs')) {
128
  $translates = pll_get_post_translations($currentpost->ID);
@@ -276,6 +277,7 @@ class SQ_Models_Sitemaps extends SQ_Models_Abstract_Seo
276
  $posts['contains'] = array();
277
 
278
  if (have_posts()) {
 
279
  while (have_posts()) {
280
  the_post();
281
 
@@ -286,6 +288,7 @@ class SQ_Models_Sitemaps extends SQ_Models_Abstract_Seo
286
  if(SQ_Classes_Helpers_Tools::getOption('sq_sitemap_exclude_noindex') && $post->sq->noindex) {
287
  continue;
288
  }
 
289
  $this->setPost($post); //set current sitemap post
290
 
291
  $xml = array();
@@ -519,7 +522,7 @@ class SQ_Models_Sitemaps extends SQ_Models_Abstract_Seo
519
  {
520
  $xml = array();
521
 
522
- if (!isset($post->url) || !$post->url) {
523
  return $xml;
524
  }
525
 
123
  if (post_password_required()) {
124
  continue;
125
  }
126
+
127
  if (function_exists('pll_get_post_translations')) {
128
  if (SQ_Classes_Helpers_Tools::getOption('sq_sitemap_combinelangs')) {
129
  $translates = pll_get_post_translations($currentpost->ID);
277
  $posts['contains'] = array();
278
 
279
  if (have_posts()) {
280
+
281
  while (have_posts()) {
282
  the_post();
283
 
288
  if(SQ_Classes_Helpers_Tools::getOption('sq_sitemap_exclude_noindex') && $post->sq->noindex) {
289
  continue;
290
  }
291
+
292
  $this->setPost($post); //set current sitemap post
293
 
294
  $xml = array();
522
  {
523
  $xml = array();
524
 
525
+ if (!isset($post->url) || !$post->url || strpos($post->url, home_url()) === false) {
526
  return $xml;
527
  }
528
 
models/abstract/Seo.php CHANGED
@@ -7,7 +7,7 @@ abstract class SQ_Models_Abstract_Seo
7
  protected $_patterns;
8
  protected $_sq_use;
9
 
10
- public function __construct()
11
  {
12
  $this->_post = SQ_Classes_ObjController::getClass('SQ_Models_Frontend')->getPost();
13
  $this->_sq_use = true;
@@ -18,14 +18,14 @@ abstract class SQ_Models_Abstract_Seo
18
  *
19
  * @param SQ_Models_Domain_Post $post
20
  */
21
- public function setPost($post)
22
  {
23
  $this->_post = $post;
24
  }
25
 
26
  /****************************
27
- *
28
- * CLEAR THE VALUES
29
  *************************************/
30
  /***********************************************************************************/
31
  /**
@@ -35,7 +35,7 @@ abstract class SQ_Models_Abstract_Seo
35
  * @param $title
36
  * @return string
37
  */
38
- public function clearTitle($title)
39
  {
40
  return SQ_Classes_Helpers_Sanitize::clearTitle($title);
41
  }
@@ -47,7 +47,7 @@ abstract class SQ_Models_Abstract_Seo
47
  * @param $description
48
  * @return mixed|string
49
  */
50
- public function clearDescription($description)
51
  {
52
  return SQ_Classes_Helpers_Sanitize::clearDescription($description);
53
  }
@@ -59,7 +59,7 @@ abstract class SQ_Models_Abstract_Seo
59
  * @param $keywords
60
  * @return mixed|null|string|string[]
61
  */
62
- public function clearKeywords($keywords)
63
  {
64
  if ($keywords <> '') {
65
  return SQ_Classes_Helpers_Sanitize::clearTitle($keywords);
@@ -73,7 +73,7 @@ abstract class SQ_Models_Abstract_Seo
73
  * @param string $what
74
  * @return bool|mixed|string
75
  */
76
- protected function getAuthor($what = 'user_nicename')
77
  {
78
 
79
  if (!isset($this->_author)) {
@@ -106,7 +106,7 @@ abstract class SQ_Models_Abstract_Seo
106
  * @param boolean $all take all the images or stop at the first one
107
  * @return array
108
  */
109
- public function getPostImages($all = false)
110
  {
111
  $images = array();
112
 
@@ -163,13 +163,13 @@ abstract class SQ_Models_Abstract_Seo
163
  }
164
 
165
 
166
- return $images;
167
  }
168
 
169
  /**
170
  * @return mixed
171
  */
172
- public function getImageType($url = '')
173
  {
174
 
175
  if ($url == '' || strpos($url, '.') === false) {
@@ -196,7 +196,7 @@ abstract class SQ_Models_Abstract_Seo
196
  * @param boolean $all take all the videos or stop at the first one
197
  * @return array|false
198
  */
199
- public function getPostVideos($all = false)
200
  {
201
  $videos = false;
202
  $thumbnail = '';
@@ -311,7 +311,7 @@ abstract class SQ_Models_Abstract_Seo
311
 
312
  }
313
 
314
- return $videos;
315
  }
316
 
317
  /**
@@ -319,7 +319,7 @@ abstract class SQ_Models_Abstract_Seo
319
  *
320
  * @return bool
321
  */
322
- public function isHomePage()
323
  {
324
  return SQ_Classes_ObjController::getClass('SQ_Models_Frontend')->isHomePage();
325
  }
@@ -329,17 +329,17 @@ abstract class SQ_Models_Abstract_Seo
329
  *
330
  * @return SQ_Models_Domain_Post
331
  */
332
- public function getPost()
333
  {
334
  return SQ_Classes_ObjController::getClass('SQ_Models_Frontend')->getPost();
335
  }
336
 
337
- public function returnFalse()
338
  {
339
  return false;
340
  }
341
 
342
- public function truncate($text, $min = 100, $max = 110)
343
  {
344
  return SQ_Classes_Helpers_Sanitize::truncate($text, $min, $max);
345
  }
7
  protected $_patterns;
8
  protected $_sq_use;
9
 
10
+ public function __construct()
11
  {
12
  $this->_post = SQ_Classes_ObjController::getClass('SQ_Models_Frontend')->getPost();
13
  $this->_sq_use = true;
18
  *
19
  * @param SQ_Models_Domain_Post $post
20
  */
21
+ public function setPost($post)
22
  {
23
  $this->_post = $post;
24
  }
25
 
26
  /****************************
27
+ *
28
+ * CLEAR THE VALUES
29
  *************************************/
30
  /***********************************************************************************/
31
  /**
35
  * @param $title
36
  * @return string
37
  */
38
+ public function clearTitle($title)
39
  {
40
  return SQ_Classes_Helpers_Sanitize::clearTitle($title);
41
  }
47
  * @param $description
48
  * @return mixed|string
49
  */
50
+ public function clearDescription($description)
51
  {
52
  return SQ_Classes_Helpers_Sanitize::clearDescription($description);
53
  }
59
  * @param $keywords
60
  * @return mixed|null|string|string[]
61
  */
62
+ public function clearKeywords($keywords)
63
  {
64
  if ($keywords <> '') {
65
  return SQ_Classes_Helpers_Sanitize::clearTitle($keywords);
73
  * @param string $what
74
  * @return bool|mixed|string
75
  */
76
+ protected function getAuthor($what = 'user_nicename')
77
  {
78
 
79
  if (!isset($this->_author)) {
106
  * @param boolean $all take all the images or stop at the first one
107
  * @return array
108
  */
109
+ public function getPostImages($all = false)
110
  {
111
  $images = array();
112
 
163
  }
164
 
165
 
166
+ return apply_filters('sq_post_images', $images);
167
  }
168
 
169
  /**
170
  * @return mixed
171
  */
172
+ public function getImageType($url = '')
173
  {
174
 
175
  if ($url == '' || strpos($url, '.') === false) {
196
  * @param boolean $all take all the videos or stop at the first one
197
  * @return array|false
198
  */
199
+ public function getPostVideos($all = false)
200
  {
201
  $videos = false;
202
  $thumbnail = '';
311
 
312
  }
313
 
314
+ return apply_filters('sq_post_videos', $videos);
315
  }
316
 
317
  /**
319
  *
320
  * @return bool
321
  */
322
+ public function isHomePage()
323
  {
324
  return SQ_Classes_ObjController::getClass('SQ_Models_Frontend')->isHomePage();
325
  }
329
  *
330
  * @return SQ_Models_Domain_Post
331
  */
332
+ public function getPost()
333
  {
334
  return SQ_Classes_ObjController::getClass('SQ_Models_Frontend')->getPost();
335
  }
336
 
337
+ public function returnFalse()
338
  {
339
  return false;
340
  }
341
 
342
+ public function truncate($text, $min = 100, $max = 110)
343
  {
344
  return SQ_Classes_Helpers_Sanitize::truncate($text, $min, $max);
345
  }
models/focuspages/Image.php CHANGED
@@ -157,14 +157,18 @@ class SQ_Models_Focuspages_Image extends SQ_Models_Abstract_Assistant
157
  $keyword = preg_replace('/\s{2,}/', ' ', $keyword);
158
  $words = explode(' ', $keyword);
159
  foreach ($this->_images as $image) {
 
 
 
 
 
 
160
  //Check if all words are present in the image URL
161
  $allwords = true;
162
  foreach ($words as $word) {
163
- if ($word <> '') {
164
- //Find the string with normalization
165
- if (SQ_Classes_Helpers_Tools::findStr($image, $word, true) === false) {
166
- $allwords = false;
167
- }
168
  }
169
  }
170
  //Complete task if all words are found
157
  $keyword = preg_replace('/\s{2,}/', ' ', $keyword);
158
  $words = explode(' ', $keyword);
159
  foreach ($this->_images as $image) {
160
+
161
+ //get only the image filename
162
+ if(basename($image) <> ''){
163
+ $image = basename($image);
164
+ }
165
+
166
  //Check if all words are present in the image URL
167
  $allwords = true;
168
  foreach ($words as $word) {
169
+ //Find the string with normalization
170
+ if ($word <> '' && SQ_Classes_Helpers_Tools::findStr($image, $word, true) === false) {
171
+ $allwords = false;
 
 
172
  }
173
  }
174
  //Complete task if all words are found
models/focuspages/Innerlinks.php CHANGED
@@ -24,19 +24,15 @@ class SQ_Models_Focuspages_Innerlinks extends SQ_Models_Abstract_Assistant
24
  if ($path == '') $path = $this->_permalink;
25
 
26
  if ($this->_permalink <> '') {
27
- global $wpdb;
28
 
29
  if (isset($this->_audit->data->sq_seo_innerlinks) && $this->_audit->data->sq_seo_innerlinks) {
30
 
31
- if (!isset($this->_audit->data->sq_seo_innerlinks->inner_links)) {
32
 
33
- if ($row = $wpdb->get_row($wpdb->prepare("SELECT COUNT(`ID`) as count FROM `$wpdb->posts` WHERE `post_content` LIKE '%%%s%' AND `post_status` = %s", $path, 'publish'))) {
34
- $this->_inner_links = $row->count;
35
- }
36
-
37
- } else {
38
  $this->_inner_links = (int)$this->_audit->data->sq_seo_innerlinks->inner_links;
39
  }
 
40
  } else {
41
  $this->_error = true;
42
  }
24
  if ($path == '') $path = $this->_permalink;
25
 
26
  if ($this->_permalink <> '') {
 
27
 
28
  if (isset($this->_audit->data->sq_seo_innerlinks) && $this->_audit->data->sq_seo_innerlinks) {
29
 
30
+ $this->_inner_links = 0;
31
 
32
+ if (isset($this->_audit->data->sq_seo_innerlinks->inner_links)) {
 
 
 
 
33
  $this->_inner_links = (int)$this->_audit->data->sq_seo_innerlinks->inner_links;
34
  }
35
+
36
  } else {
37
  $this->_error = true;
38
  }
models/services/JsonLD.php CHANGED
@@ -1285,11 +1285,15 @@ class SQ_Models_Services_JsonLD extends SQ_Models_Abstract_Seo
1285
  }
1286
 
1287
  $markup_offer['priceSpecification'] = array(
 
1288
  'price' => wc_format_decimal($price, wc_get_price_decimals()),
1289
  'minPrice' => wc_format_decimal($minprice, wc_get_price_decimals()),
1290
  'maxPrice' => wc_format_decimal($maxprice, wc_get_price_decimals()),
1291
  'priceCurrency' => $currency,
1292
  );
 
 
 
1293
  }
1294
  }
1295
 
@@ -1337,9 +1341,12 @@ class SQ_Models_Services_JsonLD extends SQ_Models_Abstract_Seo
1337
  }
1338
 
1339
  if (function_exists('wc_prices_include_tax')) {
 
1340
  $markup_offer['priceSpecification']['price'] = wc_format_decimal($product->get_price(), wc_get_price_decimals());
1341
  $markup_offer['priceSpecification']['priceCurrency'] = $currency;
1342
  $markup_offer['priceSpecification']['valueAddedTaxIncluded'] = wc_prices_include_tax() ? 'true' : 'false';
 
 
1343
  }
1344
 
1345
  //Set the offer
1285
  }
1286
 
1287
  $markup_offer['priceSpecification'] = array(
1288
+ '@type' => 'UnitPriceSpecification',
1289
  'price' => wc_format_decimal($price, wc_get_price_decimals()),
1290
  'minPrice' => wc_format_decimal($minprice, wc_get_price_decimals()),
1291
  'maxPrice' => wc_format_decimal($maxprice, wc_get_price_decimals()),
1292
  'priceCurrency' => $currency,
1293
  );
1294
+
1295
+ unset($markup_offer['price']);
1296
+ unset($markup_offer['priceCurrency']);
1297
  }
1298
  }
1299
 
1341
  }
1342
 
1343
  if (function_exists('wc_prices_include_tax')) {
1344
+ $markup_offer['priceSpecification']['@type'] = 'UnitPriceSpecification';
1345
  $markup_offer['priceSpecification']['price'] = wc_format_decimal($product->get_price(), wc_get_price_decimals());
1346
  $markup_offer['priceSpecification']['priceCurrency'] = $currency;
1347
  $markup_offer['priceSpecification']['valueAddedTaxIncluded'] = wc_prices_include_tax() ? 'true' : 'false';
1348
+ unset($markup_offer['price']);
1349
+ unset($markup_offer['priceCurrency']);
1350
  }
1351
 
1352
  //Set the offer
models/services/Redirects.php CHANGED
@@ -4,7 +4,7 @@ class SQ_Models_Services_Redirects extends SQ_Models_Abstract_Seo
4
  {
5
 
6
 
7
- public function __construct()
8
  {
9
  parent::__construct();
10
 
@@ -44,7 +44,7 @@ class SQ_Models_Services_Redirects extends SQ_Models_Abstract_Seo
44
  /**
45
  * Check for changed permalink in the Posts and redirect the article to the new URL
46
  */
47
- public function redirectPermalinks()
48
  {
49
  if (is_404() && isset($_SERVER['REQUEST_URI'])) {
50
  $query_string = false;
@@ -83,8 +83,10 @@ class SQ_Models_Services_Redirects extends SQ_Models_Abstract_Seo
83
  header('X-Redirect-By: Squirrly SEO');
84
 
85
  //check the default redirect URL and prevent loop redirects
86
- if (SQ_Classes_Helpers_Tools::getOption('404_url_redirect') && parse_url(SQ_Classes_Helpers_Tools::getOption('404_url_redirect'), PHP_URL_PATH) <> $_SERVER['REQUEST_URI']) {
87
- header('Location: ' . SQ_Classes_Helpers_Tools::getOption('404_url_redirect'), true, 301);
 
 
88
  } else {
89
  header('Location: ' . home_url(), true, 301);
90
  }
4
  {
5
 
6
 
7
+ public function __construct()
8
  {
9
  parent::__construct();
10
 
44
  /**
45
  * Check for changed permalink in the Posts and redirect the article to the new URL
46
  */
47
+ public function redirectPermalinks()
48
  {
49
  if (is_404() && isset($_SERVER['REQUEST_URI'])) {
50
  $query_string = false;
83
  header('X-Redirect-By: Squirrly SEO');
84
 
85
  //check the default redirect URL and prevent loop redirects
86
+ if(SQ_Classes_Helpers_Tools::getOption('404_url_redirect')) {
87
+ if (parse_url(SQ_Classes_Helpers_Tools::getOption('404_url_redirect'), PHP_URL_PATH) <> $_SERVER['REQUEST_URI']) {
88
+ header('Location: ' . SQ_Classes_Helpers_Tools::getOption('404_url_redirect'), true, 301);
89
+ }
90
  } else {
91
  header('Location: ' . home_url(), true, 301);
92
  }
models/services/Verify.php CHANGED
@@ -4,7 +4,7 @@ class SQ_Models_Services_Verify extends SQ_Models_Abstract_Seo
4
  {
5
 
6
 
7
- public function __construct()
8
  {
9
  parent::__construct();
10
 
@@ -16,7 +16,7 @@ class SQ_Models_Services_Verify extends SQ_Models_Abstract_Seo
16
  }
17
  }
18
 
19
- public function generateVerify($metas = array())
20
  {
21
  $codes = json_decode(wp_json_encode(SQ_Classes_Helpers_Tools::getOption('codes')));
22
 
@@ -41,14 +41,10 @@ class SQ_Models_Services_Verify extends SQ_Models_Abstract_Seo
41
  }
42
  }
43
 
44
- if (isset($codes->alexa_verify) && $codes->alexa_verify <> '') {
45
- $metas['alexaVerifyID'] = $codes->alexa_verify;
46
- }
47
-
48
  return $metas;
49
  }
50
 
51
- public function packVerify($metas = array())
52
  {
53
  if (!empty($metas)) {
54
  foreach ($metas as $key => &$value) {
4
  {
5
 
6
 
7
+ public function __construct()
8
  {
9
  parent::__construct();
10
 
16
  }
17
  }
18
 
19
+ public function generateVerify($metas = array())
20
  {
21
  $codes = json_decode(wp_json_encode(SQ_Classes_Helpers_Tools::getOption('codes')));
22
 
41
  }
42
  }
43
 
 
 
 
 
44
  return $metas;
45
  }
46
 
47
+ public function packVerify($metas = array())
48
  {
49
  if (!empty($metas)) {
50
  foreach ($metas as $key => &$value) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://plugin.squirrly.co/squirrly-seo-pricing/
4
  Tags: SEO, SEO Plugin, XML sitemap, WooCommerce SEO, Search Engine, Open Graph, Video Sitemap, Google News Sitemap, Rich Snippets, Robotx.txt, SEO Automation, Local SEO, SEO Content analysis, SEO Content, SEO Optimization, WordPress SEO, Yoast, Yoast Compatible, Yoast Import, SEO Redirection, Redirection, SEO Sitemap, SEO Caching, Meta Title, Meta Description, Performance, SEO Audit, SEO Keyword Research, SEO Rank Math import, Google Search Console, Schema
5
  Requires at least: 4.3
6
  Tested up to: 6.0
7
- Stable tag: 12.1.10
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
 
@@ -669,6 +669,16 @@ Type a keyword to the right of the screen and start using Squirrly Seo. Enjoy!
669
  7. Squirrly SEO - SEO Briefcase
670
 
671
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
672
  = 12.1.10 - 07/25/2022 =
673
  Update - SLA compatibility with Bricks Website Builder
674
  Update - SLA compatibility with Thrive Architect
@@ -1177,7 +1187,12 @@ Increased plugin security and update compatibilities
1177
  * Introducing Squirrly Private SEO Consultant and Squirrly Machine Learning system
1178
  * and more ...
1179
 
1180
-
 
 
 
 
 
1181
  yoast alternative
1182
  yoast seo alternative
1183
  all in one seo alternative
4
  Tags: SEO, SEO Plugin, XML sitemap, WooCommerce SEO, Search Engine, Open Graph, Video Sitemap, Google News Sitemap, Rich Snippets, Robotx.txt, SEO Automation, Local SEO, SEO Content analysis, SEO Content, SEO Optimization, WordPress SEO, Yoast, Yoast Compatible, Yoast Import, SEO Redirection, Redirection, SEO Sitemap, SEO Caching, Meta Title, Meta Description, Performance, SEO Audit, SEO Keyword Research, SEO Rank Math import, Google Search Console, Schema
5
  Requires at least: 4.3
6
  Tested up to: 6.0
7
+ Stable tag: 12.1.11
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
 
669
  7. Squirrly SEO - SEO Briefcase
670
 
671
  == Changelog ==
672
+ = 12.1.11 - 08/12/2022 =
673
+ Update - SLA compatibility with Zion Builder
674
+ Update - SLA compatibility with WPBakery Page Builder
675
+ Update - Style for the Sitemap News using sitemapnews.xsl
676
+ Update - SEO Audits page to show the number of pages present in the audit
677
+ Fix - load SEO metas late on AMP pages for compatibility with AMP plugins
678
+ Fix - Don't load SEO Snippet on frontend when AMP is detected to avoid compatibility error with AMP plugin
679
+ Fix - Make sure the keywords from briefcase are shown correctly in research, history and suggested page
680
+
681
+
682
  = 12.1.10 - 07/25/2022 =
683
  Update - SLA compatibility with Bricks Website Builder
684
  Update - SLA compatibility with Thrive Architect
1187
  * Introducing Squirrly Private SEO Consultant and Squirrly Machine Learning system
1188
  * and more ...
1189
 
1190
+ divi seo
1191
+ thrive seo
1192
+ oxygen seo
1193
+ elementor seo
1194
+ zion seo
1195
+ bricks seo
1196
  yoast alternative
1197
  yoast seo alternative
1198
  all in one seo alternative
squirrly.php CHANGED
@@ -8,7 +8,7 @@
8
  * Description: A.I.-based Private SEO Consultant. In a Plugin. Powered by Machine Learning and Cloud Services. Over 300 functionalities for SEO available when you need them.
9
  * Author: Squirrly
10
  * Author URI: https://plugin.squirrly.co
11
- * Version: 12.1.10
12
  * License: GPLv2 or later
13
  * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14
  * Text Domain: squirrly-seo
@@ -17,9 +17,9 @@
17
 
18
  if (!defined('SQ_VERSION')) {
19
  /* SET THE CURRENT VERSION ABOVE AND BELOW */
20
- define('SQ_VERSION', '12.1.10');
21
  //The last stable version
22
- define('SQ_STABLE_VERSION', '12.1.09');
23
  // Call config files
24
  try {
25
  include_once dirname(__FILE__) . '/config/config.php';
8
  * Description: A.I.-based Private SEO Consultant. In a Plugin. Powered by Machine Learning and Cloud Services. Over 300 functionalities for SEO available when you need them.
9
  * Author: Squirrly
10
  * Author URI: https://plugin.squirrly.co
11
+ * Version: 12.1.11
12
  * License: GPLv2 or later
13
  * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14
  * Text Domain: squirrly-seo
17
 
18
  if (!defined('SQ_VERSION')) {
19
  /* SET THE CURRENT VERSION ABOVE AND BELOW */
20
+ define('SQ_VERSION', '12.1.11');
21
  //The last stable version
22
+ define('SQ_STABLE_VERSION', '12.1.10');
23
  // Call config files
24
  try {
25
  include_once dirname(__FILE__) . '/config/config.php';
view/Assistant/Settings.php CHANGED
@@ -107,7 +107,9 @@
107
  <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Oxygen Builder %s plugin.", 'squirrly-seo'),'<a href="https://oxygenbuilder.com/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
108
  <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Divi Builder %s plugin.", 'squirrly-seo'),'<a href="https://www.elegantthemes.com/gallery/divi/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
109
  <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Thrive Architect %s plugin.", 'squirrly-seo'),'<a href="https://thrivethemes.com/architect/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
110
- <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Bricks Website Builder %s (BETA).", 'squirrly-seo'),'<a href="https://bricksbuilder.io/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
 
 
111
  </div>
112
  </div>
113
  </div>
107
  <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Oxygen Builder %s plugin.", 'squirrly-seo'),'<a href="https://oxygenbuilder.com/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
108
  <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Divi Builder %s plugin.", 'squirrly-seo'),'<a href="https://www.elegantthemes.com/gallery/divi/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
109
  <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Thrive Architect %s plugin.", 'squirrly-seo'),'<a href="https://thrivethemes.com/architect/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
110
+ <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Bricks Website Builder %s.", 'squirrly-seo'),'<a href="https://bricksbuilder.io/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
111
+ <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s WPBakery Page Builder %s plugin.", 'squirrly-seo'),'<a href="https://wpbakery.com/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
112
+ <div class="small text-black-50 ml-5 mt-1"><?php echo sprintf(esc_html__("Supports %s Zion Builder %s plugin.", 'squirrly-seo'),'<a href="https://zionbuilder.io/" target="_blank" class="font-weight-bold">','</a>'); ?></div>
113
  </div>
114
  </div>
115
  </div>
view/Audits/AuditPages.php CHANGED
@@ -3,7 +3,7 @@
3
  <?php
4
  if (!empty($view->auditpages)) { ?>
5
 
6
- <h4 class="card-title"><?php echo esc_html__("Audited pages", 'squirrly-seo') ?></h4>
7
  <div class="col-12 m-0 p-0 position-relative">
8
  <div class=" col-12 m-0 p-0 my-2 py-2 py-0">
9
  <table class="table table-striped table-hover">
3
  <?php
4
  if (!empty($view->auditpages)) { ?>
5
 
6
+ <h4 class="card-title"><?php echo esc_html__("Audited pages", 'squirrly-seo') ?> (<?php echo count((array)$view->auditpages) ?> <?php echo esc_html('pages', 'squirrly-seo') ?>)</h4>
7
  <div class="col-12 m-0 p-0 position-relative">
8
  <div class=" col-12 m-0 p-0 my-2 py-2 py-0">
9
  <table class="table table-striped table-hover">
view/Automation/Automation.php CHANGED
@@ -34,7 +34,11 @@
34
  <?php $view->show_view('Blocks/SubMenu'); ?>
35
 
36
  <div class="d-flex flex-column flex-grow-1 m-0 p-0">
37
- <?php foreach (SQ_Classes_Helpers_Tools::getOption('patterns') as $pattern => $type) {
 
 
 
 
38
  $itemname = ucwords(str_replace(array('-', '_'), ' ', esc_attr($pattern)));
39
  if ($pattern == 'tax-product_cat') {
40
  $itemname = "Product Category";
@@ -51,8 +55,18 @@
51
  <span class="text-black-50">(<?php echo esc_html($pattern) ?>)</span><?php } ?>
52
  </h4>
53
 
54
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_pattern')) { ?>
55
- <div class="col-12 row p-0 m-0 my-5">
 
 
 
 
 
 
 
 
 
 
56
  <div class="col-4 p-0 pr-3 font-weight-bold">
57
  <?php echo esc_html__("Title", 'squirrly-seo'); ?> :
58
  <a href="https://howto12.squirrly.co/kb/seo-automation/#title_automation" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
@@ -62,7 +76,7 @@
62
  <textarea rows="1" class="form-control bg-input" name="patterns[<?php echo esc_attr($pattern) ?>][title]"><?php echo (isset($type['title'])) ? esc_html($type['title']) : '' ?></textarea>
63
  </div>
64
  </div>
65
- <div class="col-12 row p-0 m-0 my-5">
66
  <div class="col-4 p-0 pr-3 font-weight-bold">
67
  <?php echo esc_html__("Description", 'squirrly-seo'); ?>:
68
  <a href="https://howto12.squirrly.co/kb/seo-automation/#description_automation" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
@@ -72,8 +86,7 @@
72
  <textarea class="form-control" name="patterns[<?php echo esc_attr($pattern) ?>][description]" rows="5"><?php echo (isset($type['description']) ? esc_html($type['description']) : '') ?></textarea>
73
  </div>
74
  </div>
75
-
76
- <div class="col-12 row p-0 m-0 my-5">
77
  <div class="col-4 p-1 font-weight-bold">
78
  <?php echo esc_html__("Separator", 'squirrly-seo'); ?>:
79
  <a href="https://howto12.squirrly.co/kb/seo-automation/#separator" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
@@ -90,59 +103,71 @@
90
  </select>
91
  </div>
92
  </div>
93
- <?php } ?>
94
 
95
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_metas')) { ?>
96
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) { ?>
97
- <div class="col-12 row p-0 m-0 my-5">
98
- <div class="col-12 p-0 sq-switch sq-switch-sm">
99
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][noindex]" value="1"/>
100
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_noindex" name="patterns[<?php echo esc_attr($pattern) ?>][noindex]" class="sq-switch" <?php echo((isset($type['noindex']) && $type['noindex'] == 0) ? 'checked="checked"' : '') ?> value="0"/>
101
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_noindex" class="ml-1"><?php echo esc_html__("Let Google Index it", 'squirrly-seo'); ?>
102
- <a href="https://howto12.squirrly.co/kb/seo-automation/#let_google_index" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
103
- </label>
104
- <div class="small text-black-50 ml-5"><?php echo esc_html__("If you switch off this option, Squirrly will add noindex meta for this post type.", 'squirrly-seo'); ?></div>
105
- </div>
106
- </div>
107
- <?php }?>
108
-
109
-
110
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) { ?>
111
- <div class="col-12 row m-0 p-0 my-5">
112
- <div class="checker col-12 row m-0 p-0">
113
- <div class="col-12 p-0 sq-switch sq-switch-sm <?php echo((!SQ_Classes_Helpers_Tools::getOption('sq_auto_metas') || !SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) ? 'sq_deactivated' : ''); ?>">
114
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][nofollow]" value="1"/>
115
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_nofollow" name="patterns[<?php echo esc_attr($pattern) ?>][nofollow]" class="sq-switch" <?php echo((isset($type['nofollow']) && $type['nofollow'] == 0) ? 'checked="checked"' : '') ?> value="0"/>
116
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_nofollow" class="ml-1"><?php echo esc_html__("Send Authority to it", 'squirrly-seo'); ?>
117
- <a href="https://howto12.squirrly.co/kb/seo-automation/#send_authority" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
118
- </label>
119
- <div class="small text-black-50 ml-5"><?php echo esc_html__("If you switch off this option, Squirrly will add 'nofollow' meta for this post type.", 'squirrly-seo'); ?></div>
120
- </div>
121
- </div>
122
  </div>
123
- <?php }?>
124
  <?php }?>
125
 
126
 
127
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_sitemap')) { ?>
128
  <div class="col-12 row m-0 p-0 my-5">
129
  <div class="checker col-12 row m-0 p-0">
130
- <div class="col-12 p-0 sq-switch sq-switch-sm <?php echo((!SQ_Classes_Helpers_Tools::getOption('sq_auto_sitemap')) ? 'sq_deactivated' : ''); ?>">
131
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_sitemap]" value="0"/>
132
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_sitemap" name="patterns[<?php echo esc_attr($pattern) ?>][do_sitemap]" class="sq-switch" <?php echo((isset($type['do_sitemap']) && $type['do_sitemap'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
133
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_sitemap" class="ml-1"><?php echo esc_html__("Include In Sitemap", 'squirrly-seo'); ?>
134
- <a href="https://howto12.squirrly.co/kb/seo-automation/#send_to_sitemap" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
135
  </label>
136
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO include this post type in Squirrly Sitemap XML.", 'squirrly-seo'); ?></div>
137
- <div class="small text-black-50 ml-5"><?php echo esc_html__("If you switch off this option, Squirrly will not load the Sitemap for this post type.", 'squirrly-seo'); ?></div>
138
  </div>
139
  </div>
140
  </div>
141
  <?php }?>
 
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
- <?php if (!isset($type['do_redirects'])) $type['do_redirects'] = 0; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
 
 
146
  <div class="col-12 row m-0 p-0 my-5">
147
  <div class="checker col-12 row m-0 p-0">
148
  <div class="col-12 m-0 p-0 sq-switch sq-switch-sm">
@@ -155,209 +180,210 @@
155
  </div>
156
  </div>
157
  </div>
 
158
 
159
- <?php if ($pattern == '404') { ?>
160
- <div class="col-12 row py-2 mx-0 my-3 ">
161
- <div class="col-4 p-0 pr-3 font-weight-bold">
162
- <?php echo esc_html__("Default Redirect URL", 'squirrly-seo'); ?>:
163
- <a href="https://howto12.squirrly.co/kb/seo-automation/#redirect_404_links" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
164
- <div class="small text-black-50 my-1"><?php echo esc_html__("Add the default URL for the Broken URLs when no permalink is found.", 'squirrly-seo'); ?></div>
165
- </div>
166
- <div class="col-8 p-0">
167
- <input type="text" class="form-control bg-input" name="404_url_redirect" value="<?php echo SQ_Classes_Helpers_Tools::getOption('404_url_redirect') ?>"/>
168
- </div>
169
  </div>
170
- <?php }?>
 
 
 
 
171
 
172
- <?php if ($pattern == 'attachment') { ?>
173
- <div class="col-12 row m-0 p-0 my-5">
174
- <div class="checker col-12 row m-0 p-0">
175
- <div class="col-12 m-0 p-0 sq-switch sq-switch-sm">
176
- <input type="hidden" name="sq_attachment_redirect" value="0"/>
177
- <input type="checkbox" id="sq_attachment_redirect" name="sq_attachment_redirect" class="sq-switch" <?php echo(SQ_Classes_Helpers_Tools::getOption('sq_attachment_redirect') ? 'checked="checked"' : '') ?> value="1"/>
178
- <label for="sq_attachment_redirect" class="ml-1"><?php echo esc_html__("Redirect Attachments Page", 'squirrly-seo'); ?></label>
179
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Redirect the attachment page to its image URL.", 'squirrly-seo'); ?></div>
180
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Recommended if your website is not a photography website.", 'squirrly-seo'); ?></div>
181
- </div>
182
  </div>
183
  </div>
184
- <?php } ?>
 
185
 
186
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_metas')) { ?>
187
- <div class="col-12 row m-0 p-0 my-5">
188
- <div class="checker col-12 row m-0 p-0">
189
- <div class="col-12 p-0 sq-switch sq-switch-sm">
190
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_metas]" value="0"/>
191
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_metas" name="patterns[<?php echo esc_attr($pattern) ?>][do_metas]" class="sq-switch" <?php echo((isset($type['do_metas']) && $type['do_metas'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
192
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_metas" class="ml-1"><?php echo esc_html__("Load Squirrly SEO METAs", 'squirrly-seo'); ?>
193
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_squirrly_metas" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
194
- </label>
195
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Title, Description, Keyword METAs for this post type.", 'squirrly-seo'); ?></div>
196
- </div>
197
  </div>
198
  </div>
199
- <?php }?>
 
200
 
201
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_pattern')) { ?>
202
- <div class="col-12 row m-0 p-0 my-5">
203
- <div class="checker col-12 row m-0 p-0">
204
- <div class="col-12 p-0 sq-switch sq-switch-sm">
205
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_pattern]" value="0"/>
206
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_pattern" name="patterns[<?php echo esc_attr($pattern) ?>][do_pattern]" class="sq-switch" <?php echo((isset($type['do_pattern']) && $type['do_pattern'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
207
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_pattern" class="ml-1"><?php echo esc_html__("Load Squirrly Patterns", 'squirrly-seo'); ?>
208
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_squirrly_patterns" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
209
- </label>
210
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Patterns for this post type.", 'squirrly-seo'); ?></div>
211
- </div>
212
  </div>
213
  </div>
214
- <?php }?>
 
215
 
216
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) { ?>
217
- <div class="col-12 row m-0 p-0 my-5">
218
- <div class="checker col-12 row m-0 p-0">
219
- <div class="col-12 p-0 sq-switch sq-switch-sm">
220
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_jsonld]" value="0"/>
221
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_jsonld" name="patterns[<?php echo esc_attr($pattern) ?>][do_jsonld]" class="sq-switch" <?php echo((isset($type['do_jsonld']) && $type['do_jsonld'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
222
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_jsonld" class="ml-1"><?php echo esc_html__("Load JSON-LD Structured Data", 'squirrly-seo'); ?>
223
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_jsonld_schema" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
224
- </label>
225
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the JSON-LD Schema for this post type.", 'squirrly-seo'); ?></div>
226
- </div>
227
 
228
- <div class="col-12 row m-0 mt-5 p-0 <?php echo((!SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) ? 'sq_deactivated' : ''); ?>">
229
- <div class="col-7 p-1 pr-2">
230
- <div class="font-weight-bold"><?php echo esc_html__("JSON-LD Type", 'squirrly-seo'); ?>:
231
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_jsonld_schema" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
232
- </div>
233
- <div class="small text-black-50"><?php echo esc_html__("JSON-LD will load the Schema for the selected types.", 'squirrly-seo'); ?></div>
234
- </div>
235
- <?php
236
- $post_types = json_decode(SQ_ALL_JSONLD_TYPES, true);
237
-
238
- if (in_array($pattern, array('search', 'category', 'tag', 'archive', 'attachment', '404', 'tax-post_tag', 'tax-post_cat', 'tax-product_tag', 'tax-product_cat'))) $post_types = array('website');
239
- if (in_array($pattern, array('home', 'shop'))) $post_types = array('website', 'local store', 'local restaurant');
240
- if ($pattern == 'profile') $post_types = array('profile');
241
- if ($pattern == 'product') $post_types = array('product');
242
- ?>
243
- <div class="col-5 p-0">
244
- <select <?php echo((count($post_types) > 1) ? 'multiple' : '') ?> name="patterns[<?php echo esc_attr($pattern) ?>][jsonld_types][]" class="selectpicker form-control bg-input mb-1 border" style="min-height: 100px;">
245
- <?php foreach ($post_types as $post_type => $jsonld_type) { ?>
246
- <option <?php echo((isset($type['jsonld_types']) && !empty($type['jsonld_types']) && in_array($jsonld_type, $type['jsonld_types'])) ? 'selected="selected"' : '') ?> value="<?php echo esc_attr($jsonld_type) ?>">
247
- <?php echo esc_html(ucfirst($jsonld_type)) ?>
248
- </option>
249
- <?php } ?>
250
-
251
- </select>
252
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  </div>
254
  </div>
255
  </div>
256
- <?php }?>
 
257
 
258
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) { ?>
259
- <div class="col-12 row m-0 p-0 my-5">
260
- <div class="checker col-12 row m-0 p-0">
261
- <div class="col-12 p-0 sq-switch sq-switch-sm">
262
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_og]" value="0"/>
263
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_og" name="patterns[<?php echo esc_attr($pattern) ?>][do_og]" class="sq-switch" <?php echo((isset($type['do_og']) && $type['do_og'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
264
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_og" class="ml-1"><?php echo esc_html__("Load Squirrly Open Graph", 'squirrly-seo'); ?>
265
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_open_graph" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
266
- </label>
267
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Open Graph for this post type.", 'squirrly-seo'); ?></div>
268
- </div>
269
 
270
- <div class="col-12 row m-0 mt-5 mb-3 p-0 <?php echo((!SQ_Classes_Helpers_Tools::getOption('sq_auto_facebook')) ? 'sq_deactivated' : ''); ?>">
271
- <div class="col-7 p-1 pr-2">
272
- <div class="font-weight-bold"><?php echo esc_html__("Open Graph Type", 'squirrly-seo'); ?>:
273
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_open_graph" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
274
- </div>
275
- <div class="small text-black-50"><?php echo esc_html__("Select which Open Graph type to load for this post type.", 'squirrly-seo'); ?></div>
276
- </div>
277
- <?php
278
- $post_types = json_decode(SQ_ALL_OG_TYPES, true);
279
-
280
- if (in_array($pattern, array('home', 'search', 'category', 'tag', 'archive', '404', 'attachment', 'tax-post_tag', 'tax-post_cat', 'tax-product_tag', 'tax-product_cat', 'shop'))) $post_types = array('website');
281
- if ($pattern == 'profile') $post_types = array('profile');
282
- if ($pattern == 'product') $post_types = array('product');
283
- ?>
284
- <div class="col-5 p-0">
285
- <select name="patterns[<?php echo esc_attr($pattern) ?>][og_type]" class="form-control bg-input mb-1 border">
286
- <?php foreach ($post_types as $post_type => $og_type) { ?>
287
- <option <?php echo((isset($type['og_type']) && $type['og_type'] == $og_type) ? 'selected="selected"' : '') ?> value="<?php echo esc_attr($og_type) ?>">
288
- <?php echo esc_html(ucfirst($og_type)) ?>
289
- </option>
290
- <?php } ?>
291
-
292
- </select>
293
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  </div>
295
  </div>
296
  </div>
297
- <?php }?>
 
298
 
299
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_twitter')) { ?>
300
- <div class="col-12 row m-0 p-0 my-5">
301
- <div class="checker col-12 row m-0 p-0">
302
- <div class="col-12 p-0 sq-switch sq-switch-sm">
303
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_twc]" value="0"/>
304
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_twc" name="patterns[<?php echo esc_attr($pattern) ?>][do_twc]" class="sq-switch" <?php echo((isset($type['do_twc']) && $type['do_twc'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
305
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_twc" class="ml-1"><?php echo esc_html__("Load Squirrly Twitter Card", 'squirrly-seo'); ?>
306
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_twitter_card" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
307
- </label>
308
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Twitter Card for this post type.", 'squirrly-seo'); ?></div>
309
- </div>
310
  </div>
311
  </div>
312
- <?php }?>
 
313
 
314
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_tracking')) { ?>
315
- <div class="col-12 row m-0 p-0 my-5">
316
- <div class="checker col-12 row m-0 p-0">
317
- <div class="col-12 p-0 sq-switch sq-switch-sm">
318
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_analytics]" value="0"/>
319
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_analytics" name="patterns[<?php echo esc_attr($pattern) ?>][do_analytics]" class="sq-switch" <?php echo((isset($type['do_analytics']) && $type['do_analytics'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
320
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_analytics" class="ml-1"><?php echo esc_html__("Load Google Analytics Tracking Script", 'squirrly-seo'); ?>
321
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_analytics_tracking" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
322
- </label>
323
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Google Analytics Tracking to load for this post type.", 'squirrly-seo'); ?></div>
324
- </div>
325
  </div>
326
  </div>
 
327
 
328
 
329
- <?php }?>
330
 
331
- <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_pixels')) { ?>
332
- <div class="col-12 row m-0 p-0 my-5">
333
- <div class="checker col-12 row m-0 p-0">
334
- <div class="col-12 p-0 sq-switch sq-switch-sm">
335
- <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_fpixel]" value="0"/>
336
- <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_fpixel" name="patterns[<?php echo esc_attr($pattern) ?>][do_fpixel]" class="sq-switch" <?php echo((isset($type['do_fpixel']) && $type['do_fpixel'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
337
- <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_fpixel" class="ml-1"><?php echo esc_html__("Load Facebook Pixel Tracking Script", 'squirrly-seo'); ?>
338
- <a href="https://howto12.squirrly.co/kb/seo-automation/#load_facebook_pixel" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
339
- </label>
340
- <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Facebook Pixel Tracking to load for this post type.", 'squirrly-seo'); ?></div>
341
- </div>
342
  </div>
343
  </div>
344
- <?php }?>
345
-
346
- <?php if ($pattern <> 'custom' && (!isset($type['protected']) || !$type['protected'])) { ?>
347
- <div class="col-12 row m-0 p-3 sq_save_ajax">
348
- <div class="col-12 p-0 text-right">
349
- <input type="hidden" id="sq_delete_post_types_<?php echo esc_attr($pattern) ?>" value="<?php echo esc_attr($pattern) ?>"/>
350
- <button type="button" data-confirm="<?php echo sprintf(esc_html__("Do you want to delete the automation for %s?", 'squirrly-seo'), ucwords(str_replace(array('-', '_'), array(' '), esc_attr($pattern)))); ?>" data-input="sq_delete_post_types_<?php echo esc_attr($pattern) ?>" data-action="sq_ajax_automation_deletepostype" data-name="post_type" class="btn btn-link btn-sm text-black-50 rounded-0"><?php echo sprintf(esc_html__("Remove automation for %s", 'squirrly-seo'), ucwords(str_replace(array('-', '_'), array(' '), esc_attr($pattern)))); ?></button>
351
- </div>
352
  </div>
353
- <?php } ?>
354
 
355
- <div class="col-12 m-0 p-0 mt-5">
356
- <button type="submit" class="btn btn-primary btn-lg m-0 p-0 py-2 px-4 rounded-0"><?php echo esc_html__("Save Settings", 'squirrly-seo'); ?></button>
 
 
 
357
  </div>
 
 
358
 
 
 
359
  </div>
360
 
 
 
361
  </div>
362
 
363
  <?php } ?>
34
  <?php $view->show_view('Blocks/SubMenu'); ?>
35
 
36
  <div class="d-flex flex-column flex-grow-1 m-0 p-0">
37
+ <?php
38
+ $filter = array('public' => true, '_builtin' => false);
39
+ $types = get_post_types($filter);
40
+
41
+ foreach (SQ_Classes_Helpers_Tools::getOption('patterns') as $pattern => $type) {
42
  $itemname = ucwords(str_replace(array('-', '_'), ' ', esc_attr($pattern)));
43
  if ($pattern == 'tax-product_cat') {
44
  $itemname = "Product Category";
55
  <span class="text-black-50">(<?php echo esc_html($pattern) ?>)</span><?php } ?>
56
  </h4>
57
 
58
+
59
+ <?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_pattern')) { ?>
60
+ <div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax" style="top: 105px">
61
+ <div class="sq-col-12 sq-p-0 sq-text-center sq-small">
62
+ <input type="hidden" id="activate_sq_auto_pattern" value="1"/>
63
+ <button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_pattern" data-action="sq_ajax_seosettings_save" data-name="sq_auto_pattern"><?php echo esc_html__("Activate Patterns", 'squirrly-seo'); ?></button>
64
+ </div>
65
+ </div>
66
+ <?php } ?>
67
+
68
+ <div class="p-0 m-0 <?php echo(SQ_Classes_Helpers_Tools::getOption('sq_auto_pattern') ? '' : 'sq_deactivated') ?>">
69
+ <div class="col-12 row p-0 mx-2 my-5">
70
  <div class="col-4 p-0 pr-3 font-weight-bold">
71
  <?php echo esc_html__("Title", 'squirrly-seo'); ?> :
72
  <a href="https://howto12.squirrly.co/kb/seo-automation/#title_automation" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
76
  <textarea rows="1" class="form-control bg-input" name="patterns[<?php echo esc_attr($pattern) ?>][title]"><?php echo (isset($type['title'])) ? esc_html($type['title']) : '' ?></textarea>
77
  </div>
78
  </div>
79
+ <div class="col-12 row p-0 mx-2 my-5">
80
  <div class="col-4 p-0 pr-3 font-weight-bold">
81
  <?php echo esc_html__("Description", 'squirrly-seo'); ?>:
82
  <a href="https://howto12.squirrly.co/kb/seo-automation/#description_automation" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
86
  <textarea class="form-control" name="patterns[<?php echo esc_attr($pattern) ?>][description]" rows="5"><?php echo (isset($type['description']) ? esc_html($type['description']) : '') ?></textarea>
87
  </div>
88
  </div>
89
+ <div class="col-12 row p-0 mx-2 my-5">
 
90
  <div class="col-4 p-1 font-weight-bold">
91
  <?php echo esc_html__("Separator", 'squirrly-seo'); ?>:
92
  <a href="https://howto12.squirrly.co/kb/seo-automation/#separator" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
103
  </select>
104
  </div>
105
  </div>
106
+ </div>
107
 
108
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_metas')) { ?>
109
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) { ?>
110
+ <div class="col-12 row p-0 m-0 my-5">
111
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
112
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][noindex]" value="1"/>
113
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_noindex" name="patterns[<?php echo esc_attr($pattern) ?>][noindex]" class="sq-switch" <?php echo((isset($type['noindex']) && $type['noindex'] == 0) ? 'checked="checked"' : '') ?> value="0"/>
114
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_noindex" class="ml-1"><?php echo esc_html__("Let Google Index it", 'squirrly-seo'); ?>
115
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#let_google_index" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
116
+ </label>
117
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("If you switch off this option, Squirrly will add noindex meta for this post type.", 'squirrly-seo'); ?></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  </div>
119
+ </div>
120
  <?php }?>
121
 
122
 
123
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) { ?>
124
  <div class="col-12 row m-0 p-0 my-5">
125
  <div class="checker col-12 row m-0 p-0">
126
+ <div class="col-12 p-0 sq-switch sq-switch-sm <?php echo((!SQ_Classes_Helpers_Tools::getOption('sq_auto_metas') || !SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) ? 'sq_deactivated' : ''); ?>">
127
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][nofollow]" value="1"/>
128
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_nofollow" name="patterns[<?php echo esc_attr($pattern) ?>][nofollow]" class="sq-switch" <?php echo((isset($type['nofollow']) && $type['nofollow'] == 0) ? 'checked="checked"' : '') ?> value="0"/>
129
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_nofollow" class="ml-1"><?php echo esc_html__("Send Authority to it", 'squirrly-seo'); ?>
130
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#send_authority" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
131
  </label>
132
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("If you switch off this option, Squirrly will add 'nofollow' meta for this post type.", 'squirrly-seo'); ?></div>
 
133
  </div>
134
  </div>
135
  </div>
136
  <?php }?>
137
+ <?php }?>
138
 
139
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_sitemap')) { ?>
140
+ <div class="col-12 row m-0 p-0 my-5">
141
+ <div class="checker col-12 row m-0 p-0">
142
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
143
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_sitemap]" value="0"/>
144
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_sitemap" name="patterns[<?php echo esc_attr($pattern) ?>][do_sitemap]" class="sq-switch" <?php echo((isset($type['do_sitemap']) && $type['do_sitemap'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
145
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_sitemap" class="ml-1"><?php echo esc_html__("Include In Sitemap", 'squirrly-seo'); ?>
146
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#send_to_sitemap" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
147
+ </label>
148
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO include this post type in Squirrly Sitemap XML.", 'squirrly-seo'); ?></div>
149
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("If you switch off this option, Squirrly will not load the Sitemap for this post type.", 'squirrly-seo'); ?></div>
150
+ </div>
151
+ </div>
152
+ </div>
153
 
154
+ <?php if(in_array($pattern,array_keys($types))) {?>
155
+ <div class="col-12 row m-0 p-0 my-5">
156
+ <div class="checker col-12 row m-0 p-0">
157
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
158
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][google_news]" value="0"/>
159
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_google_news" name="patterns[<?php echo esc_attr($pattern) ?>][google_news]" class="sq-switch" <?php echo((isset($type['google_news']) && $type['google_news'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
160
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_google_news" class="ml-1"><?php echo esc_html__("Include In Google News Sitemap", 'squirrly-seo'); ?></label>
161
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO include this post type in Google News Sitemap.", 'squirrly-seo'); ?></div>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ <?php }?>
166
+ <?php }?>
167
+
168
+ <?php if (!isset($type['do_redirects'])) $type['do_redirects'] = 0; ?>
169
 
170
+ <?php if(in_array($pattern,array_keys($types)) || in_array($pattern,array('post', 'page', '404'))) {?>
171
  <div class="col-12 row m-0 p-0 my-5">
172
  <div class="checker col-12 row m-0 p-0">
173
  <div class="col-12 m-0 p-0 sq-switch sq-switch-sm">
180
  </div>
181
  </div>
182
  </div>
183
+ <?php }?>
184
 
185
+ <?php if ($pattern == '404') { ?>
186
+ <div class="col-12 row py-2 mx-0 my-3 ">
187
+ <div class="col-4 p-0 pr-3 font-weight-bold">
188
+ <?php echo esc_html__("Default Redirect URL", 'squirrly-seo'); ?>:
189
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#redirect_404_links" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
190
+ <div class="small text-black-50 my-1"><?php echo esc_html__("Add the default URL for the Broken URLs when no permalink is found.", 'squirrly-seo'); ?></div>
 
 
 
 
191
  </div>
192
+ <div class="col-8 p-0">
193
+ <input type="text" class="form-control bg-input" name="404_url_redirect" value="<?php echo SQ_Classes_Helpers_Tools::getOption('404_url_redirect') ?>"/>
194
+ </div>
195
+ </div>
196
+ <?php }?>
197
 
198
+ <?php if ($pattern == 'attachment') { ?>
199
+ <div class="col-12 row m-0 p-0 my-5">
200
+ <div class="checker col-12 row m-0 p-0">
201
+ <div class="col-12 m-0 p-0 sq-switch sq-switch-sm">
202
+ <input type="hidden" name="sq_attachment_redirect" value="0"/>
203
+ <input type="checkbox" id="sq_attachment_redirect" name="sq_attachment_redirect" class="sq-switch" <?php echo(SQ_Classes_Helpers_Tools::getOption('sq_attachment_redirect') ? 'checked="checked"' : '') ?> value="1"/>
204
+ <label for="sq_attachment_redirect" class="ml-1"><?php echo esc_html__("Redirect Attachments Page", 'squirrly-seo'); ?></label>
205
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Redirect the attachment page to its image URL.", 'squirrly-seo'); ?></div>
206
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Recommended if your website is not a photography website.", 'squirrly-seo'); ?></div>
 
207
  </div>
208
  </div>
209
+ </div>
210
+ <?php } ?>
211
 
212
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_metas')) { ?>
213
+ <div class="col-12 row m-0 p-0 my-5">
214
+ <div class="checker col-12 row m-0 p-0">
215
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
216
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_metas]" value="0"/>
217
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_metas" name="patterns[<?php echo esc_attr($pattern) ?>][do_metas]" class="sq-switch" <?php echo((isset($type['do_metas']) && $type['do_metas'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
218
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_metas" class="ml-1"><?php echo esc_html__("Load Squirrly SEO METAs", 'squirrly-seo'); ?>
219
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_squirrly_metas" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
220
+ </label>
221
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Title, Description, Keyword METAs for this post type.", 'squirrly-seo'); ?></div>
 
222
  </div>
223
  </div>
224
+ </div>
225
+ <?php }?>
226
 
227
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_pattern')) { ?>
228
+ <div class="col-12 row m-0 p-0 my-5">
229
+ <div class="checker col-12 row m-0 p-0">
230
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
231
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_pattern]" value="0"/>
232
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_pattern" name="patterns[<?php echo esc_attr($pattern) ?>][do_pattern]" class="sq-switch" <?php echo((isset($type['do_pattern']) && $type['do_pattern'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
233
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_pattern" class="ml-1"><?php echo esc_html__("Load Squirrly Patterns", 'squirrly-seo'); ?>
234
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_squirrly_patterns" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
235
+ </label>
236
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Patterns for this post type.", 'squirrly-seo'); ?></div>
 
237
  </div>
238
  </div>
239
+ </div>
240
+ <?php }?>
241
 
242
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) { ?>
243
+ <div class="col-12 row m-0 p-0 my-5">
244
+ <div class="checker col-12 row m-0 p-0">
245
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
246
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_jsonld]" value="0"/>
247
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_jsonld" name="patterns[<?php echo esc_attr($pattern) ?>][do_jsonld]" class="sq-switch" <?php echo((isset($type['do_jsonld']) && $type['do_jsonld'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
248
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_jsonld" class="ml-1"><?php echo esc_html__("Load JSON-LD Structured Data", 'squirrly-seo'); ?>
249
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_jsonld_schema" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
250
+ </label>
251
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the JSON-LD Schema for this post type.", 'squirrly-seo'); ?></div>
252
+ </div>
253
 
254
+ <div class="col-12 row m-0 mt-5 p-0 <?php echo((!SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) ? 'sq_deactivated' : ''); ?>">
255
+ <div class="col-7 p-1 pr-2">
256
+ <div class="font-weight-bold"><?php echo esc_html__("JSON-LD Type", 'squirrly-seo'); ?>:
257
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_jsonld_schema" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  </div>
259
+ <div class="small text-black-50"><?php echo esc_html__("JSON-LD will load the Schema for the selected types.", 'squirrly-seo'); ?></div>
260
+ </div>
261
+ <?php
262
+ $post_types = json_decode(SQ_ALL_JSONLD_TYPES, true);
263
+
264
+ if (in_array($pattern, array('search', 'category', 'tag', 'archive', 'attachment', '404', 'tax-post_tag', 'tax-post_cat', 'tax-product_tag', 'tax-product_cat'))) $post_types = array('website');
265
+ if (in_array($pattern, array('home', 'shop'))) $post_types = array('website', 'local store', 'local restaurant');
266
+ if ($pattern == 'profile') $post_types = array('profile');
267
+ if ($pattern == 'product') $post_types = array('product');
268
+ ?>
269
+ <div class="col-5 p-0">
270
+ <select <?php echo((count($post_types) > 1) ? 'multiple' : '') ?> name="patterns[<?php echo esc_attr($pattern) ?>][jsonld_types][]" class="selectpicker form-control bg-input mb-1 border" style="min-height: 100px;">
271
+ <?php foreach ($post_types as $post_type => $jsonld_type) { ?>
272
+ <option <?php echo((isset($type['jsonld_types']) && !empty($type['jsonld_types']) && in_array($jsonld_type, $type['jsonld_types'])) ? 'selected="selected"' : '') ?> value="<?php echo esc_attr($jsonld_type) ?>">
273
+ <?php echo esc_html(ucfirst($jsonld_type)) ?>
274
+ </option>
275
+ <?php } ?>
276
+
277
+ </select>
278
  </div>
279
  </div>
280
  </div>
281
+ </div>
282
+ <?php }?>
283
 
284
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) { ?>
285
+ <div class="col-12 row m-0 p-0 my-5">
286
+ <div class="checker col-12 row m-0 p-0">
287
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
288
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_og]" value="0"/>
289
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_og" name="patterns[<?php echo esc_attr($pattern) ?>][do_og]" class="sq-switch" <?php echo((isset($type['do_og']) && $type['do_og'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
290
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_og" class="ml-1"><?php echo esc_html__("Load Squirrly Open Graph", 'squirrly-seo'); ?>
291
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_open_graph" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
292
+ </label>
293
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Open Graph for this post type.", 'squirrly-seo'); ?></div>
294
+ </div>
295
 
296
+ <div class="col-12 row m-0 mt-5 mb-3 p-0 <?php echo((!SQ_Classes_Helpers_Tools::getOption('sq_auto_facebook')) ? 'sq_deactivated' : ''); ?>">
297
+ <div class="col-7 p-1 pr-2">
298
+ <div class="font-weight-bold"><?php echo esc_html__("Open Graph Type", 'squirrly-seo'); ?>:
299
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_open_graph" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  </div>
301
+ <div class="small text-black-50"><?php echo esc_html__("Select which Open Graph type to load for this post type.", 'squirrly-seo'); ?></div>
302
+ </div>
303
+ <?php
304
+ $post_types = json_decode(SQ_ALL_OG_TYPES, true);
305
+
306
+ if (in_array($pattern, array('home', 'search', 'category', 'tag', 'archive', '404', 'attachment', 'tax-post_tag', 'tax-post_cat', 'tax-product_tag', 'tax-product_cat', 'shop'))) $post_types = array('website');
307
+ if ($pattern == 'profile') $post_types = array('profile');
308
+ if ($pattern == 'product') $post_types = array('product');
309
+ ?>
310
+ <div class="col-5 p-0">
311
+ <select name="patterns[<?php echo esc_attr($pattern) ?>][og_type]" class="form-control bg-input mb-1 border">
312
+ <?php foreach ($post_types as $post_type => $og_type) { ?>
313
+ <option <?php echo((isset($type['og_type']) && $type['og_type'] == $og_type) ? 'selected="selected"' : '') ?> value="<?php echo esc_attr($og_type) ?>">
314
+ <?php echo esc_html(ucfirst($og_type)) ?>
315
+ </option>
316
+ <?php } ?>
317
+
318
+ </select>
319
  </div>
320
  </div>
321
  </div>
322
+ </div>
323
+ <?php }?>
324
 
325
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_twitter')) { ?>
326
+ <div class="col-12 row m-0 p-0 my-5">
327
+ <div class="checker col-12 row m-0 p-0">
328
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
329
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_twc]" value="0"/>
330
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_twc" name="patterns[<?php echo esc_attr($pattern) ?>][do_twc]" class="sq-switch" <?php echo((isset($type['do_twc']) && $type['do_twc'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
331
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_twc" class="ml-1"><?php echo esc_html__("Load Squirrly Twitter Card", 'squirrly-seo'); ?>
332
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_twitter_card" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
333
+ </label>
334
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Squirrly SEO load the Twitter Card for this post type.", 'squirrly-seo'); ?></div>
 
335
  </div>
336
  </div>
337
+ </div>
338
+ <?php }?>
339
 
340
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_tracking')) { ?>
341
+ <div class="col-12 row m-0 p-0 my-5">
342
+ <div class="checker col-12 row m-0 p-0">
343
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
344
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_analytics]" value="0"/>
345
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_analytics" name="patterns[<?php echo esc_attr($pattern) ?>][do_analytics]" class="sq-switch" <?php echo((isset($type['do_analytics']) && $type['do_analytics'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
346
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_analytics" class="ml-1"><?php echo esc_html__("Load Google Analytics Tracking Script", 'squirrly-seo'); ?>
347
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_analytics_tracking" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
348
+ </label>
349
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Google Analytics Tracking to load for this post type.", 'squirrly-seo'); ?></div>
 
350
  </div>
351
  </div>
352
+ </div>
353
 
354
 
355
+ <?php }?>
356
 
357
+ <?php if (SQ_Classes_Helpers_Tools::getOption('sq_auto_pixels')) { ?>
358
+ <div class="col-12 row m-0 p-0 my-5">
359
+ <div class="checker col-12 row m-0 p-0">
360
+ <div class="col-12 p-0 sq-switch sq-switch-sm">
361
+ <input type="hidden" name="patterns[<?php echo esc_attr($pattern) ?>][do_fpixel]" value="0"/>
362
+ <input type="checkbox" id="sq_patterns_<?php echo esc_attr($pattern) ?>_do_fpixel" name="patterns[<?php echo esc_attr($pattern) ?>][do_fpixel]" class="sq-switch" <?php echo((isset($type['do_fpixel']) && $type['do_fpixel'] == 1) ? 'checked="checked"' : '') ?> value="1"/>
363
+ <label for="sq_patterns_<?php echo esc_attr($pattern) ?>_do_fpixel" class="ml-1"><?php echo esc_html__("Load Facebook Pixel Tracking Script", 'squirrly-seo'); ?>
364
+ <a href="https://howto12.squirrly.co/kb/seo-automation/#load_facebook_pixel" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
365
+ </label>
366
+ <div class="small text-black-50 ml-5"><?php echo esc_html__("Let Facebook Pixel Tracking to load for this post type.", 'squirrly-seo'); ?></div>
 
367
  </div>
368
  </div>
 
 
 
 
 
 
 
 
369
  </div>
370
+ <?php }?>
371
 
372
+ <?php if ($pattern <> 'custom' && (!isset($type['protected']) || !$type['protected'])) { ?>
373
+ <div class="col-12 row m-0 p-3 sq_save_ajax">
374
+ <div class="col-12 p-0 text-right">
375
+ <input type="hidden" id="sq_delete_post_types_<?php echo esc_attr($pattern) ?>" value="<?php echo esc_attr($pattern) ?>"/>
376
+ <button type="button" data-confirm="<?php echo sprintf(esc_html__("Do you want to delete the automation for %s?", 'squirrly-seo'), ucwords(str_replace(array('-', '_'), array(' '), esc_attr($pattern)))); ?>" data-input="sq_delete_post_types_<?php echo esc_attr($pattern) ?>" data-action="sq_ajax_automation_deletepostype" data-name="post_type" class="btn btn-link btn-sm text-black-50 rounded-0"><?php echo sprintf(esc_html__("Remove automation for %s", 'squirrly-seo'), ucwords(str_replace(array('-', '_'), array(' '), esc_attr($pattern)))); ?></button>
377
  </div>
378
+ </div>
379
+ <?php } ?>
380
 
381
+ <div class="col-12 m-0 p-0 mt-5">
382
+ <button type="submit" class="btn btn-primary btn-lg m-0 p-0 py-2 px-4 rounded-0"><?php echo esc_html__("Save Settings", 'squirrly-seo'); ?></button>
383
  </div>
384
 
385
+ </div>
386
+
387
  </div>
388
 
389
  <?php } ?>
view/Ranking/Rankings.php CHANGED
@@ -261,11 +261,8 @@ $view->loadScripts();
261
  </td>
262
  <?php } else { ?>
263
  <td>
264
- <?php
265
- $path = parse_url($row->permalink, PHP_URL_PATH);
266
- $path = ($path <> '') ? $path : '/';
267
- ?>
268
- <a href="<?php echo esc_url($row->permalink) ?>" target="_blank"><?php echo urldecode($path) ?></a>
269
  </td>
270
  <?php if ($view->checkin->subscription_serpcheck) { ?>
271
  <td>
261
  </td>
262
  <?php } else { ?>
263
  <td>
264
+ <?php $path = str_replace(parse_url($row->permalink, PHP_URL_SCHEME) . '://' . parse_url($row->permalink, PHP_URL_HOST),'',$row->permalink); ?>
265
+ <a href="<?php echo esc_url($row->permalink) ?>" target="_blank"><?php echo ($path <> '' ? urldecode($path) : urldecode($row->permalink)) ?></a>
 
 
 
266
  </td>
267
  <?php if ($view->checkin->subscription_serpcheck) { ?>
268
  <td>
view/SeoSettings/Webmaster.php CHANGED
@@ -369,17 +369,6 @@
369
  </div>
370
  </div>
371
 
372
- <div class="col-12 row m-0 p-0 my-5 sq_advanced">
373
- <div class="col-4 m-0 p-0 pr-2 font-weight-bold">
374
- <?php echo esc_html__("Alexa META Code", 'squirrly-seo'); ?>:
375
- <a href="https://howto12.squirrly.co/kb/webmaster-tools-settings/#alexa_code" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
376
- <div class="small text-black-50 my-1 pr-3"><?php echo sprintf(esc_html__("Add the Alexa META code to analyze your entire website. Visit the %sAlexa Marketing Tool%s", 'squirrly-seo'), '<a href="http://www.alexa.com/" target="_blank">', '</a>'); ?></div>
377
- </div>
378
- <div class="col-8 m-0 p-0 input-group input-group-lg">
379
- <input type="text" class="form-control bg-input" name="codes[alexa_verify]" value="<?php echo((isset($codes->alexa_verify)) ? esc_attr($codes->alexa_verify) : '') ?>" />
380
- </div>
381
- </div>
382
-
383
  <div class="col-12 row m-0 p-0 my-5">
384
  <div class="col-4 m-0 p-0 pr-2 font-weight-bold">
385
  <?php echo esc_html__("Pinterest Website Validator Code", 'squirrly-seo'); ?>:
369
  </div>
370
  </div>
371
 
 
 
 
 
 
 
 
 
 
 
 
372
  <div class="col-12 row m-0 p-0 my-5">
373
  <div class="col-4 m-0 p-0 pr-2 font-weight-bold">
374
  <?php echo esc_html__("Pinterest Website Validator Code", 'squirrly-seo'); ?>:
view/assets/css/sitemap.xsl CHANGED
@@ -5,17 +5,8 @@
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
  <head>
7
  <title>Squirrly SEO Sitemap</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
- <style>*{margin:0;padding:0}body{font-family:Helvetica,Arial,sans-serif;font-size:14px;color:#545353;color:#005A92;background:#B0BEC7;padding:20px}#content{margin:0 auto;max-width:1200px;background:#fff;padding:20px 30px;-webkit-box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);-webkit-border-radius:5px;border-radius:5px}h1{font-size:20px;line-height:24px;font-weight:700;color:#1556B2;color:#005A92;padding-left:31px;margin:0 0 20px;display:inline-block}h1 a{font:inherit;color:inherit;text-decoration:none}h1 .ss_link{visibility:hidden;font-size:9px;display:block;text-align:right;margin-top:-5px}h1:hover .ss_link{visibility:visible;text-decoration:underline}.expl{margin:10px 3px;line-height:1.3em}.expl a{color:#1556B2;font-weight:700;text-decoration:none}.expl a:hover{text-decoration:underline}table.tablesorter{background-color:#CDCDCD;margin:20px 0 15px;font-size:8pt;width:100%;text-align:left;border:none;border-collapse:collapse;border-bottom:1px solid #005A92}table.tablesorter thead tr th,table.tablesorter tfoot tr th{background-color:#F5FAFA;font-size:8pt;padding:4px 20px 4px 10px}table.tablesorter thead tr .headerSortDown,table.tablesorter thead tr .headerSortUp{background-color:#B0BEC7;background-color:#e6EEEE}table.tablesorter thead tr .header{background-image:url(../images/bg.gif);background-repeat:no-repeat;background-position:center right;cursor:pointer;border-bottom:1px solid #005A92}table.tablesorter thead tr .headerSortUp{background-image:url(../images/asc.gif)}table.tablesorter thead tr .headerSortDown{background-image:url(../images/desc.gif)}table.tablesorter tbody td{color:#005A92;padding: 7px 5px;;vertical-align:top}table.tablesorter tbody tr{background-color:#FFF}table.tablesorter tbody tr.odd{background-color:#EFF2F3}table.tablesorter tbody tr:hover{background-color:#D8E1E8}table.tablesorter tbody a{color:#444;color:#005A92;text-decoration:none}table.tablesorter tbody a:hover{text-decoration:underline}table.tablesorter tbody tr:hover td,table.tablesorter tbody tr:hover a{color:#000}#Footer{margin:50px 0 10px;text-align:right;font-size:.8em} td a{max-height: 40px;overflow: hidden;display: block;float: left;margin-right: 10px;vertical-align: middle;}</style>
10
- <script type="text/javascript" src="//code.jquery.com/jquery-latest.min.js"></script>
11
- <script type="text/javascript"><![CDATA[
12
- (function($){$.extend({tablesorter:new
13
- function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter);}else if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter);}if(!p){p=detectParserForColumn(table,rows,-1,i);}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n";}list.push(p);}}if(table.config.debug){log(parsersDebug);}return list;};function detectParserForColumn(table,rows,rowIndex,cellIndex){var l=parsers.length,node=false,nodeValue=false,keepLooking=true;while(nodeValue==''&&keepLooking){rowIndex++;if(rows[rowIndex]){node=getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex);nodeValue=trimAndGetNodeText(table.config,node);if(table.config.debug){log('Checking if value was empty on row:'+rowIndex);}}else{keepLooking=false;}}for(var i=1;i<l;i++){if(parsers[i].is(nodeValue,table,node)){return parsers[i];}}return parsers[0];}function getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex){return rows[rowIndex].cells[cellIndex];}function trimAndGetNodeText(config,node){return $.trim(getElementText(config,node));}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i];}}return false;}function buildCache(table){if(table.config.debug){var cacheTime=new Date();}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=$(table.tBodies[0].rows[i]),cols=[];if(c.hasClass(table.config.cssChildRow)){cache.row[cache.row.length-1]=cache.row[cache.row.length-1].add(c);continue;}cache.row.push(c);for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c[0].cells[j]),table,c[0].cells[j]));}cols.push(cache.normalized.length);cache.normalized.push(cols);cols=null;};if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}return cache;};function getElementText(config,node){var text="";if(!node)return"";if(!config.supportsTextContent)config.supportsTextContent=node.textContent||false;if(config.textExtraction=="simple"){if(config.supportsTextContent){text=node.textContent;}else{if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){text=node.childNodes[0].innerHTML;}else{text=node.innerHTML;}}}else{if(typeof(config.textExtraction)=="function"){text=config.textExtraction(node);}else{text=$(node).text();}}return text;}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){var pos=n[i][checkCell];rows.push(r[pos]);if(!table.config.appender){var l=r[pos].length;for(var j=0;j<l;j++){tableBody[0].appendChild(r[pos][j]);}}}if(table.config.appender){table.config.appender(table,rows);}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime);}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd");},0);};function buildHeaders(table){if(table.config.debug){var time=new Date();}var meta=($.metadata)?true:false;var header_index=computeTableHeaderCellIndexes(table);$tableHeaders=$(table.config.selectorHeaders,table).each(function(index){this.column=header_index[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(table.config.sortInitialOrder);this.count=this.order;if(checkHeaderMetadata(this)||checkHeaderOptions(table,index))this.sortDisabled=true;if(checkHeaderOptionsSortingLocked(table,index))this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(table,index);if(!this.sortDisabled){var $th=$(this).addClass(table.config.cssHeader);if(table.config.onRenderHeader)table.config.onRenderHeader.apply($th);}table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}return $tableHeaders;};function computeTableHeaderCellIndexes(t){var matrix=[];var lookup={};var thead=t.getElementsByTagName('THEAD')[0];var trs=thead.getElementsByTagName('TR');for(var i=0;i<trs.length;i++){var cells=trs[i].cells;for(var j=0;j<cells.length;j++){var c=cells[j];var rowIndex=c.parentNode.rowIndex;var cellId=rowIndex+"-"+c.cellIndex;var rowSpan=c.rowSpan||1;var colSpan=c.colSpan||1
14
- var firstAvailCol;if(typeof(matrix[rowIndex])=="undefined"){matrix[rowIndex]=[];}for(var k=0;k<matrix[rowIndex].length+1;k++){if(typeof(matrix[rowIndex][k])=="undefined"){firstAvailCol=k;break;}}lookup[cellId]=firstAvailCol;for(var k=rowIndex;k<rowIndex+rowSpan;k++){if(typeof(matrix[k])=="undefined"){matrix[k]=[];}var matrixrow=matrix[k];for(var l=firstAvailCol;l<firstAvailCol+colSpan;l++){matrixrow[l]="x";}}}}return lookup;}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table);}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i];}}};function formatSortingOrder(v){if(typeof(v)!="Number"){return(v.toLowerCase()=="desc")?1:0;}else{return(v==1)?1:0;}}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true;}}return false;}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this);}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]]);}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$('<colgroup>');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('<col>').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++;}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date();}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(table.config.parsers[c].type=="text")?((order==0)?makeSortFunction("text","asc",c):makeSortFunction("text","desc",c)):((order==0)?makeSortFunction("numeric","asc",c):makeSortFunction("numeric","desc",c));var e="e"+i;dynamicExp+="var "+e+" = "+s;dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { ";}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; ";}dynamicExp+="return 0; ";dynamicExp+="}; ";if(table.config.debug){benchmark("Evaling expression:"+dynamicExp,new Date());}eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}return cache;};function makeSortFunction(type,direction,index){var a="a["+index+"]",b="b["+index+"]";if(type=='text'&&direction=='asc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+a+" < "+b+") ? -1 : 1 )));";}else if(type=='text'&&direction=='desc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+b+" < "+a+") ? -1 : 1 )));";}else if(type=='numeric'&&direction=='asc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+a+" - "+b+"));";}else if(type=='numeric'&&direction=='desc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+b+" - "+a+"));";}};function makeSortText(i){return"((a["+i+"] < b["+i+"]) ? -1 : ((a["+i+"] > b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((a<b)?-1:((a>b)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((b<a)?-1:((b>a)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j]);}}}config.sortList.push([i,this.order]);}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2;}}}else{config.sortList.push([i,this.order]);}};setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache));},1);return false;}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false;}});$this.on("update",function(){var me=this;setTimeout(function(){me.config.parsers=buildParserCache(me,$headers);cache=buildCache(me);},1);}).on("updateCell",function(e,cell){var config=this.config;var pos=[(cell.parentNode.rowIndex-1),cell.cellIndex];cache.normalized[pos[0]][pos[1]]=config.parsers[pos[1]].format(getElementText(config,cell),cell);}).on("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache));}).on("appendCache",function(){appendToTable(this,cache);}).on("applyWidgetId",function(e,id){getWidgetById(id).format(this);}).on("applyWidgets",function(){applyWidget(this);});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist;}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false;}}if(a){parsers.push(parser);};};this.addWidget=function(widget){widgets.push(widget);};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i;};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i;};this.isDigit=function(s,config){return/^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g,'')));};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild)this.removeChild(this.firstChild);}empty.apply(table.tBodies[0]);}else{table.tBodies[0].innerHTML="";}};}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true;},format:function(s){return $.trim(s.toLocaleLowerCase());},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c);},format:function(s){return $.tablesorter.formatFloat(s);},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s);},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g),""));},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item;}else{r+=item;}}return $.tablesorter.formatFloat(r);},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s);},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''));},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0");},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s));},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");}else if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");}else if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");}return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime());},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false;},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?'sortValue':c.parserMetadataName;return $(cell).metadata()[p];},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date();}var $tr,row=-1,odd;$("tr:visible",table.tBodies[0]).each(function(i){$tr=$(this);if(!$tr.hasClass(table.config.cssChildRow))row++;odd=(row%2==0);$tr.removeClass(table.config.widgetZebra.css[odd?0:1]).addClass(table.config.widgetZebra.css[odd?1:0])});if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time);}}});})(jQuery);
15
- $(document).ready(function() {
16
- $("#sitemap").tablesorter( { sortList: [[1,0]],widgets: ['zebra'] } );
17
- });
18
- ]]></script>
19
  </head>
20
  <body>
21
  <div id="content">
@@ -26,7 +17,7 @@
26
  <p class="expl">
27
  This sitemap contains <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> URLs.
28
  </p>
29
- <table id="sitemap" cellpadding="3" class="tablesorter">
30
  <thead>
31
  <tr>
32
  <th width="1%"></th>
@@ -83,7 +74,7 @@
83
  </xsl:for-each>
84
  </tbody>
85
  </table>
86
- <p id="Footer" class="expl">Generated by
87
  <a href="https://wordpress.org/plugins/squirrly-seo/" target="_blank" title="SEO Plugin By Squirrly">Squirrly SEO Plugin</a>
88
  </p>
89
  </div>
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
  <head>
7
  <title>Squirrly SEO Sitemap</title>
8
+ <meta content="text/html; charset=utf-8" />
9
+ <style>body,h1{color:#005a92}body{font-family:Helvetica,Arial,sans-serif;font-size:14px;background:#b0bec7;padding:20px}#content{margin:0 auto;max-width:1200px;background:#fff;padding:20px 30px;-webkit-box-shadow:2px 2px 5px 1px rgba(0,0,0,.2);box-shadow:2px 2px 5px 1px rgba(0,0,0,.2);-webkit-border-radius:5px;border-radius:5px}h1{font-size:20px;line-height:24px;font-weight:700;padding-left:31px;margin:0 0 20px;display:inline-block}h1 a{font:inherit;color:inherit;text-decoration:none}#content table{background-color:#cdcdcd;margin:20px 0 15px;font-size:8pt;width:100%;text-align:left;border:none;border-collapse:collapse;border-bottom:1px solid #005a92}#content table th{white-space:nowrap!important;background:#1c3c50;color:#fff;text-shadow:none;padding:10px}#content table tr:nth-of-type(odd){background-color:#fff}#content table tr:nth-of-type(2n){background-color:#fbfbfb}#content table td{color:#005a92;padding:7px 5px;vertical-align:middle}#content table tr:hover td{background-color:rgb(252 251 255)!important}#content table td a{color:#2680b4!important}#footer{margin:50px 0 10px;text-align:right;font-size:.8em}</style>
 
 
 
 
 
 
 
 
 
10
  </head>
11
  <body>
12
  <div id="content">
17
  <p class="expl">
18
  This sitemap contains <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> URLs.
19
  </p>
20
+ <table id="sitemap">
21
  <thead>
22
  <tr>
23
  <th width="1%"></th>
74
  </xsl:for-each>
75
  </tbody>
76
  </table>
77
+ <p id="footer" class="expl">Generated by
78
  <a href="https://wordpress.org/plugins/squirrly-seo/" target="_blank" title="SEO Plugin By Squirrly">Squirrly SEO Plugin</a>
79
  </p>
80
  </div>
view/assets/css/sitemapindex.xsl CHANGED
@@ -1,61 +1,52 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xsl:stylesheet version="2.0" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
4
- <xsl:template match="/">
5
- <html xmlns="http://www.w3.org/1999/xhtml">
6
- <head>
7
- <title>Squirrly SEO Sitemap </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
- <style>*{margin:0;padding:0}body{font-family:Helvetica,Arial,sans-serif;font-size:14px;color:#545353;color:#005A92;background:#B0BEC7;padding:20px}#content{margin:0 auto;max-width:1200px;background:#fff;padding:20px 30px;-webkit-box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);-webkit-border-radius:5px;border-radius:5px}h1{font-size:20px;line-height:24px;font-weight:700;color:#1556B2;color:#005A92;padding-left:31px;margin:0 0 20px;display:inline-block}h1 a{font:inherit;color:inherit;text-decoration:none}h1 .ss_link{visibility:hidden;font-size:9px;display:block;text-align:right;margin-top:-5px}h1:hover .ss_link{visibility:visible;text-decoration:underline}.expl{margin:10px 3px;line-height:1.3em}.expl a{color:#1556B2;font-weight:700;text-decoration:none}.expl a:hover{text-decoration:underline}table.tablesorter{background-color:#CDCDCD;margin:20px 0 15px;font-size:8pt;width:100%;text-align:left;border:none;border-collapse:collapse;border-bottom:1px solid #005A92}table.tablesorter thead tr th,table.tablesorter tfoot tr th{background-color:#F5FAFA;font-size:8pt;padding:4px 20px 4px 10px}table.tablesorter thead tr .headerSortDown,table.tablesorter thead tr .headerSortUp{background-color:#B0BEC7;background-color:#e6EEEE}table.tablesorter thead tr .header{background-image:url(../images/bg.gif);background-repeat:no-repeat;background-position:center right;cursor:pointer;border-bottom:1px solid #005A92}table.tablesorter thead tr .headerSortUp{background-image:url(../images/asc.gif)}table.tablesorter thead tr .headerSortDown{background-image:url(../images/desc.gif)}table.tablesorter tbody td{color:#005A92;padding: 7px 5px;;vertical-align:top}table.tablesorter tbody tr{background-color:#FFF}table.tablesorter tbody tr.odd{background-color:#EFF2F3}table.tablesorter tbody tr:hover{background-color:#D8E1E8}table.tablesorter tbody a{color:#444;color:#005A92;text-decoration:none}table.tablesorter tbody a:hover{text-decoration:underline}table.tablesorter tbody tr:hover td,table.tablesorter tbody tr:hover a{color:#000}#Footer{margin:50px 0 10px;text-align:right;font-size:.8em}</style>
10
- <script type="text/javascript" src="//code.jquery.com/jquery-latest.min.js"></script>
11
- <script type="text/javascript"><![CDATA[
12
- (function($){$.extend({tablesorter:new
13
- function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter);}else if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter);}if(!p){p=detectParserForColumn(table,rows,-1,i);}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n";}list.push(p);}}if(table.config.debug){log(parsersDebug);}return list;};function detectParserForColumn(table,rows,rowIndex,cellIndex){var l=parsers.length,node=false,nodeValue=false,keepLooking=true;while(nodeValue==''&&keepLooking){rowIndex++;if(rows[rowIndex]){node=getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex);nodeValue=trimAndGetNodeText(table.config,node);if(table.config.debug){log('Checking if value was empty on row:'+rowIndex);}}else{keepLooking=false;}}for(var i=1;i<l;i++){if(parsers[i].is(nodeValue,table,node)){return parsers[i];}}return parsers[0];}function getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex){return rows[rowIndex].cells[cellIndex];}function trimAndGetNodeText(config,node){return $.trim(getElementText(config,node));}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i];}}return false;}function buildCache(table){if(table.config.debug){var cacheTime=new Date();}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=$(table.tBodies[0].rows[i]),cols=[];if(c.hasClass(table.config.cssChildRow)){cache.row[cache.row.length-1]=cache.row[cache.row.length-1].add(c);continue;}cache.row.push(c);for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c[0].cells[j]),table,c[0].cells[j]));}cols.push(cache.normalized.length);cache.normalized.push(cols);cols=null;};if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}return cache;};function getElementText(config,node){var text="";if(!node)return"";if(!config.supportsTextContent)config.supportsTextContent=node.textContent||false;if(config.textExtraction=="simple"){if(config.supportsTextContent){text=node.textContent;}else{if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){text=node.childNodes[0].innerHTML;}else{text=node.innerHTML;}}}else{if(typeof(config.textExtraction)=="function"){text=config.textExtraction(node);}else{text=$(node).text();}}return text;}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){var pos=n[i][checkCell];rows.push(r[pos]);if(!table.config.appender){var l=r[pos].length;for(var j=0;j<l;j++){tableBody[0].appendChild(r[pos][j]);}}}if(table.config.appender){table.config.appender(table,rows);}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime);}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd");},0);};function buildHeaders(table){if(table.config.debug){var time=new Date();}var meta=($.metadata)?true:false;var header_index=computeTableHeaderCellIndexes(table);$tableHeaders=$(table.config.selectorHeaders,table).each(function(index){this.column=header_index[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(table.config.sortInitialOrder);this.count=this.order;if(checkHeaderMetadata(this)||checkHeaderOptions(table,index))this.sortDisabled=true;if(checkHeaderOptionsSortingLocked(table,index))this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(table,index);if(!this.sortDisabled){var $th=$(this).addClass(table.config.cssHeader);if(table.config.onRenderHeader)table.config.onRenderHeader.apply($th);}table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}return $tableHeaders;};function computeTableHeaderCellIndexes(t){var matrix=[];var lookup={};var thead=t.getElementsByTagName('THEAD')[0];var trs=thead.getElementsByTagName('TR');for(var i=0;i<trs.length;i++){var cells=trs[i].cells;for(var j=0;j<cells.length;j++){var c=cells[j];var rowIndex=c.parentNode.rowIndex;var cellId=rowIndex+"-"+c.cellIndex;var rowSpan=c.rowSpan||1;var colSpan=c.colSpan||1
14
- var firstAvailCol;if(typeof(matrix[rowIndex])=="undefined"){matrix[rowIndex]=[];}for(var k=0;k<matrix[rowIndex].length+1;k++){if(typeof(matrix[rowIndex][k])=="undefined"){firstAvailCol=k;break;}}lookup[cellId]=firstAvailCol;for(var k=rowIndex;k<rowIndex+rowSpan;k++){if(typeof(matrix[k])=="undefined"){matrix[k]=[];}var matrixrow=matrix[k];for(var l=firstAvailCol;l<firstAvailCol+colSpan;l++){matrixrow[l]="x";}}}}return lookup;}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table);}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i];}}};function formatSortingOrder(v){if(typeof(v)!="Number"){return(v.toLowerCase()=="desc")?1:0;}else{return(v==1)?1:0;}}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true;}}return false;}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this);}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]]);}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$('<colgroup>');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('<col>').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++;}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date();}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(table.config.parsers[c].type=="text")?((order==0)?makeSortFunction("text","asc",c):makeSortFunction("text","desc",c)):((order==0)?makeSortFunction("numeric","asc",c):makeSortFunction("numeric","desc",c));var e="e"+i;dynamicExp+="var "+e+" = "+s;dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { ";}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; ";}dynamicExp+="return 0; ";dynamicExp+="}; ";if(table.config.debug){benchmark("Evaling expression:"+dynamicExp,new Date());}eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}return cache;};function makeSortFunction(type,direction,index){var a="a["+index+"]",b="b["+index+"]";if(type=='text'&&direction=='asc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+a+" < "+b+") ? -1 : 1 )));";}else if(type=='text'&&direction=='desc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+b+" < "+a+") ? -1 : 1 )));";}else if(type=='numeric'&&direction=='asc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+a+" - "+b+"));";}else if(type=='numeric'&&direction=='desc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+b+" - "+a+"));";}};function makeSortText(i){return"((a["+i+"] < b["+i+"]) ? -1 : ((a["+i+"] > b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((a<b)?-1:((a>b)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((b<a)?-1:((b>a)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j]);}}}config.sortList.push([i,this.order]);}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2;}}}else{config.sortList.push([i,this.order]);}};setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache));},1);return false;}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false;}});$this.on("update",function(){var me=this;setTimeout(function(){me.config.parsers=buildParserCache(me,$headers);cache=buildCache(me);},1);}).on("updateCell",function(e,cell){var config=this.config;var pos=[(cell.parentNode.rowIndex-1),cell.cellIndex];cache.normalized[pos[0]][pos[1]]=config.parsers[pos[1]].format(getElementText(config,cell),cell);}).on("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache));}).on("appendCache",function(){appendToTable(this,cache);}).on("applyWidgetId",function(e,id){getWidgetById(id).format(this);}).on("applyWidgets",function(){applyWidget(this);});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist;}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false;}}if(a){parsers.push(parser);};};this.addWidget=function(widget){widgets.push(widget);};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i;};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i;};this.isDigit=function(s,config){return/^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g,'')));};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild)this.removeChild(this.firstChild);}empty.apply(table.tBodies[0]);}else{table.tBodies[0].innerHTML="";}};}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true;},format:function(s){return $.trim(s.toLocaleLowerCase());},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c);},format:function(s){return $.tablesorter.formatFloat(s);},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s);},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g),""));},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item;}else{r+=item;}}return $.tablesorter.formatFloat(r);},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s);},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''));},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0");},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s));},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");}else if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");}else if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");}return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime());},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false;},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?'sortValue':c.parserMetadataName;return $(cell).metadata()[p];},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date();}var $tr,row=-1,odd;$("tr:visible",table.tBodies[0]).each(function(i){$tr=$(this);if(!$tr.hasClass(table.config.cssChildRow))row++;odd=(row%2==0);$tr.removeClass(table.config.widgetZebra.css[odd?0:1]).addClass(table.config.widgetZebra.css[odd?1:0])});if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time);}}});})(jQuery);
15
- $(document).ready(function() {
16
- $("#sitemap").tablesorter( { sortList: [[0,0]],widgets: ['zebra'] } );
17
- });
18
- ]]></script>
19
- </head>
20
- <body>
21
- <div id="content">
22
- <h1 style="padding-left:0;">Squirrly SEO Sitemap Index</h1>
23
-
24
- <p class="expl">
25
- This sitemap consists of <xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/> part(s).
26
- </p>
27
- <table id="sitemapindex" cellpadding="3" class="tablesorter">
28
- <thead>
29
- <tr>
30
- <th width="80%">URL</th>
31
- <th width="20%">Last Change</th>
32
- </tr>
33
- </thead>
34
- <tbody>
35
- <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
36
- <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
37
- <xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
38
- <tr>
39
- <td>
40
- <xsl:variable name="itemURL">
41
- <xsl:value-of select="sitemap:loc"/>
42
- </xsl:variable>
43
- <a href="{$itemURL}">
44
- <xsl:value-of select="sitemap:loc"/>
45
- </a>
46
- </td>
47
- <td>
48
- <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
49
- </td>
50
- </tr>
51
- </xsl:for-each>
52
- </tbody>
53
- </table>
54
- <p id="Footer" class="expl">Generated by
55
- <a href="https://wordpress.org/plugins/squirrly-seo/" target="_blank" title="SEO Plugin By Squirrly">Squirrly SEO Plugin</a>
56
- </p>
57
- </div>
58
- </body>
59
- </html>
60
- </xsl:template>
61
  </xsl:stylesheet>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsl:stylesheet version="2.0" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
+ <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
4
+ <xsl:template match="/">
5
+ <html xmlns="http://www.w3.org/1999/xhtml">
6
+ <head>
7
+ <title>Squirrly SEO Sitemap </title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
+ <style>body,h1{color:#005a92}body{font-family:Helvetica,Arial,sans-serif;font-size:14px;background:#b0bec7;padding:20px}#content{margin:0 auto;max-width:1200px;background:#fff;padding:20px 30px;-webkit-box-shadow:2px 2px 5px 1px rgba(0,0,0,.2);box-shadow:2px 2px 5px 1px rgba(0,0,0,.2);-webkit-border-radius:5px;border-radius:5px}h1{font-size:20px;line-height:24px;font-weight:700;padding-left:31px;margin:0 0 20px;display:inline-block}h1 a{font:inherit;color:inherit;text-decoration:none}#content table{background-color:#cdcdcd;margin:20px 0 15px;font-size:8pt;width:100%;text-align:left;border:none;border-collapse:collapse;border-bottom:1px solid #005a92}#content table th{white-space:nowrap!important;background:#1c3c50;color:#fff;text-shadow:none;padding:10px}#content table tr:nth-of-type(odd){background-color:#fff}#content table tr:nth-of-type(2n){background-color:#fbfbfb}#content table td{color:#005a92;padding:7px 5px;vertical-align:middle}#content table tr:hover td{background-color:rgb(252 251 255)!important}#content table td a{color:#2680b4!important}#footer{margin:50px 0 10px;text-align:right;font-size:.8em}</style>
10
+ </head>
11
+ <body>
12
+ <div id="content">
13
+ <h1 style="padding-left:0;">Squirrly SEO Sitemap Index</h1>
14
+
15
+ <p class="expl">
16
+ This sitemap consists of <xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/> part(s).
17
+ </p>
18
+ <table id="sitemapindex">
19
+ <thead>
20
+ <tr>
21
+ <th width="80%">URL</th>
22
+ <th width="20%">Last Change</th>
23
+ </tr>
24
+ </thead>
25
+ <tbody>
26
+ <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
27
+ <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
28
+ <xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
29
+ <tr>
30
+ <td>
31
+ <xsl:variable name="itemURL">
32
+ <xsl:value-of select="sitemap:loc"/>
33
+ </xsl:variable>
34
+ <a href="{$itemURL}">
35
+ <xsl:value-of select="sitemap:loc"/>
36
+ </a>
37
+ </td>
38
+ <td>
39
+ <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
40
+ </td>
41
+ </tr>
42
+ </xsl:for-each>
43
+ </tbody>
44
+ </table>
45
+ <p id="Footer" class="expl">Generated by
46
+ <a href="https://wordpress.org/plugins/squirrly-seo/" target="_blank" title="SEO Plugin By Squirrly">Squirrly SEO Plugin</a>
47
+ </p>
48
+ </div>
49
+ </body>
50
+ </html>
51
+ </xsl:template>
 
 
 
 
 
 
 
 
 
52
  </xsl:stylesheet>
view/assets/css/sitemapnews.xsl ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:s="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" exclude-result-prefixes="s">
3
+ <xsl:template match="/">
4
+ <html lang="en">
5
+ <head>
6
+ <title>Squirrly SEO Sitemap</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <style>body,h1{color:#005a92}body{font-family:Helvetica,Arial,sans-serif;font-size:14px;background:#b0bec7;padding:20px}#content{margin:0 auto;max-width:1200px;background:#fff;padding:20px 30px;-webkit-box-shadow:2px 2px 5px 1px rgba(0,0,0,.2);box-shadow:2px 2px 5px 1px rgba(0,0,0,.2);-webkit-border-radius:5px;border-radius:5px}h1{font-size:20px;line-height:24px;font-weight:700;padding-left:31px;margin:0 0 20px;display:inline-block}h1 a{font:inherit;color:inherit;text-decoration:none}#content table{background-color:#cdcdcd;margin:20px 0 15px;font-size:8pt;width:100%;text-align:left;border:none;border-collapse:collapse;border-bottom:1px solid #005a92}#content table th{white-space:nowrap!important;background:#1c3c50;color:#fff;text-shadow:none;padding:10px}#content table tr:nth-of-type(odd){background-color:#fff}#content table tr:nth-of-type(2n){background-color:#fbfbfb}#content table td{color:#005a92;padding:7px 5px;vertical-align:middle}#content table tr:hover td{background-color:rgb(252 251 255)!important}#content table td a{color:#2680b4!important}#footer{margin:50px 0 10px;text-align:right;font-size:.8em}</style>
9
+ </head>
10
+ <body>
11
+ <div id="content">
12
+ <h1 style="padding-left:0;">
13
+ <a href="?sq_feed=sitemap">Squirrly SEO Sitemap - Go to Index</a>
14
+ </h1>
15
+
16
+ <table id="sitemap">
17
+ <thead>
18
+ <tr bgcolor="#9acd32">
19
+ <th width="1%"></th>
20
+ <th style="text-align:left" width="40%">URL</th>
21
+ <th style="text-align:left" width="40%">Title</th>
22
+ <th style="text-align:left" width="10%">Publisher</th>
23
+ <th style="text-align:left" width="10%">Updated at</th>
24
+ </tr>
25
+ </thead>
26
+ <tbody>
27
+ <xsl:for-each select="s:urlset/s:url">
28
+ <tr>
29
+ <td>
30
+ <xsl:if test="count(image:image/image:loc) > 0">
31
+
32
+ <xsl:variable name="loc">
33
+ <xsl:value-of select="image:image/image:loc"/>
34
+ </xsl:variable>
35
+ <a href="{$loc}">
36
+ <img src="{$loc}" width="50" valign="middle"/>
37
+ </a>
38
+
39
+ </xsl:if>
40
+ </td>
41
+ <td class="url"><a href="{s:loc}"><xsl:value-of select="s:loc"/></a></td>
42
+ <td><xsl:value-of select="news:news/news:title"/></td>
43
+ <td><xsl:value-of select="news:news/news:publication/news:name"/></td>
44
+ <td><xsl:value-of select="concat(substring(news:news/news:publication_date,0,11),concat(' ', substring(news:news/news:publication_date,12,5)))"/></td>
45
+ </tr>
46
+ </xsl:for-each>
47
+ </tbody>
48
+ </table>
49
+ <p id="Footer" class="expl">Generated by
50
+ <a href="https://wordpress.org/plugins/squirrly-seo/" target="_blank" title="SEO Plugin By Squirrly">Squirrly SEO Plugin</a>
51
+ </p>
52
+ </div>
53
+ </body>
54
+ </html>
55
+ </xsl:template>
56
+
57
+ </xsl:stylesheet>
view/assets/css/sqbootstrap.min.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes sq-progress-bar-stripes{0%{background-position:1em 0}to{background-position:0 0}}@keyframes sq-progress-bar-stripes{0%{background-position:1em 0}to{background-position:0 0}}.sq-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;margin-right:-15px!important;margin-left:-15px!important}.sq-small,.sq-small *{font-size:.83rem!important;line-height:20px!important;font-weight:400!important}.sq-mark{padding:.2em!important;background-color:#fcf8e3!important}.sq-table{width:100%!important;max-width:100%!important;margin-bottom:1em!important;background-color:transparent!important}.sq-table td,.sq-table th{padding:.75em!important;vertical-align:top!important;border-top:1px solid #dee2e6!important}.sq-table thead th{vertical-align:bottom!important;border-bottom:2px solid #dee2e6!important}.sq-table tbody+tbody{border-top:2px solid #dee2e6!important}.sq-table .sq-table{background-color:#fff!important}.sq-table-sm td,.sq-table-sm th{padding:.3em!important}.sq-table-bordered,.sq-table-bordered td,.sq-table-bordered th{border:1px solid #dee2e6!important}.sq-table-bordered thead td,.sq-table-bordered thead th{border-bottom-width:2px!important}.sq-table-borderless tbody+tbody,.sq-table-borderless td,.sq-table-borderless th,.sq-table-borderless thead th,.sq-table-dark.sq-table-bordered{border:0!important}.sq-table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)!important}.sq-table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)!important}.sq-table-primary,.sq-table-primary>td,.sq-table-primary>th{background-color:#b8daff!important}.sq-table-hover .sq-table-primary:hover,.sq-table-hover .sq-table-primary:hover>td,.sq-table-hover .sq-table-primary:hover>th{background-color:#9fcdff!important}.sq-table-secondary,.sq-table-secondary>td,.sq-table-secondary>th{background-color:#d6d8db!important}.sq-table-hover .sq-table-secondary:hover,.sq-table-hover .sq-table-secondary:hover>td,.sq-table-hover .sq-table-secondary:hover>th{background-color:#c8cbcf!important}.sq-table-success,.sq-table-success>td,.sq-table-success>th{background-color:#c3e6cb!important}.sq-table-hover .sq-table-success:hover,.sq-table-hover .sq-table-success:hover>td,.sq-table-hover .sq-table-success:hover>th{background-color:#b1dfbb!important}.sq-table-info,.sq-table-info>td,.sq-table-info>th{background-color:#bee5eb!important}.sq-table-hover .sq-table-info:hover,.sq-table-hover .sq-table-info:hover>td,.sq-table-hover .sq-table-info:hover>th{background-color:#abdde5!important}.sq-table-warning,.sq-table-warning>td,.sq-table-warning>th{background-color:#ffeeba!important}.sq-table-hover .sq-table-warning:hover,.sq-table-hover .sq-table-warning:hover>td,.sq-table-hover .sq-table-warning:hover>th{background-color:#ffe8a1!important}.sq-table-danger,.sq-table-danger>td,.sq-table-danger>th{background-color:#f5c6cb!important}.sq-table-hover .sq-table-danger:hover,.sq-table-hover .sq-table-danger:hover>td,.sq-table-hover .sq-table-danger:hover>th{background-color:#f1b0b7!important}.sq-table-light,.sq-table-light>td,.sq-table-light>th{background-color:#fdfdfe!important}.sq-table-hover .sq-table-light:hover,.sq-table-hover .sq-table-light:hover>td,.sq-table-hover .sq-table-light:hover>th{background-color:#ececf6!important}.sq-table-dark>td,.sq-table-dark>th{background-color:#c6c8ca!important}.sq-table-hover .sq-table-dark:hover,.sq-table-hover .sq-table-dark:hover>td,.sq-table-hover .sq-table-dark:hover>th{background-color:#b9bbbe!important}.sq-table-active,.sq-table-active>td,.sq-table-active>th,.sq-table-hover .sq-table-active:hover,.sq-table-hover .sq-table-active:hover>td,.sq-table-hover .sq-table-active:hover>th{background-color:rgba(0,0,0,.075)!important}.sq-table .thead-dark th{color:#fff!important;background-color:#212529!important;border-color:#32383e!important}.sq-table .thead-light th{color:#495057!important;background-color:#e9ecef!important;border-color:#dee2e6!important}.sq-table-dark{color:#fff!important;background-color:#212529!important}.sq-table-dark td,.sq-table-dark th,.sq-table-dark thead th{border-color:#32383e!important}.sq-table-dark.sq-table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)!important}.sq-table-dark.sq-table-hover tbody tr:hover{background-color:rgba(255,255,255,.075)!important}@media (max-width:575.98px){.sq-table-responsive-sm{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-sm>.sq-table-bordered{border:0!important}}@media (max-width:767.98px){.sq-table-responsive-md{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-md>.sq-table-bordered{border:0!important}}@media (max-width:991.98px){.sq-table-responsive-lg{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-lg>.sq-table-bordered{border:0!important}}@media (max-width:1199.98px){.sq-table-responsive-xl{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-xl>.sq-table-bordered{border:0!important}}.sq-table-responsive{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive>.sq-table-bordered{border:0!important}.sq-form-control{display:block;width:100%!important;padding:.375em .75em!important;font-size:1em!important;line-height:1.5!important;color:#495057;background-color:#fff;background-clip:padding-box!important;border:1px solid #ced4da!important;border-radius:.25em!important;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out!important}.sq-form-control::-ms-expand{background-color:transparent!important;border:0}.sq-form-control:focus{color:#495057;background-color:#fff;border-color:#e5e0ea;outline:0!important;box-shadow:0 0 0 .2em rgb(98 10 239/8%)!important}.sq-form-control::-webkit-input-placeholder{color:#6c757d!important;opacity:1!important}.sq-form-control::-moz-placeholder{color:#6c757d!important;opacity:1!important}.sq-form-control:-ms-input-placeholder,.sq-form-control::-ms-input-placeholder{color:#919aa2!important;opacity:1!important}.sq-form-control::placeholder{color:#919aa2!important;opacity:1!important}.sq-form-control:disabled,.sq-form-control[readonly]{background-color:#e9ecef!important;opacity:1!important}select.sq-form-control:not([size]):not([multiple]){height:calc(2.25em + 2px)!important}select.sq-form-control:focus::-ms-value{color:#495057!important;background-color:#fff!important}.sq-form-control-file,.sq-form-control-plaintext,.sq-form-control-range{display:block!important;width:100%!important}.sq-form-control-plaintext{padding-top:.375em!important;padding-bottom:.375em!important;margin-bottom:0!important;line-height:1.5!important;color:#212529!important;background-color:transparent!important;border:solid transparent!important;border-width:1px 0!important}.sq-form-control-plaintext.sq-form-control-lg,.sq-form-control-plaintext.sq-form-control-sm,.sq-input-group-lg .sq-form-control-plaintext.sq-form-control,.sq-input-group-lg>.sq-input-group-append>.sq-form-control-plaintext.sq-btn,.sq-input-group-lg>.sq-input-group-append>.sq-form-control-plaintext.sq-input-group-text,.sq-input-group-lg>.sq-input-group-prepend>.sq-form-control-plaintext.sq-btn,.sq-input-group-lg>.sq-input-group-prepend>.sq-form-control-plaintext.sq-input-group-text,.sq-input-group-sm>.sq-form-control-plaintext.sq-form-control,.sq-input-group-sm>.sq-input-group-append>.sq-form-control-plaintext.sq-btn,.sq-input-group-sm>.sq-input-group-append>.sq-form-control-plaintext.sq-input-group-text,.sq-input-group-sm>.sq-input-group-prepend>.sq-form-control-plaintext.sq-btn,.sq-input-group-sm>.sq-input-group-prepend>.sq-form-control-plaintext.sq-input-group-text{padding-right:0!important;padding-left:0!important}.sq-form-control-sm,.sq-input-group-sm>.sq-form-control,.sq-input-group-sm>.sq-input-group-append>.sq-btn,.sq-input-group-sm>.sq-input-group-append>.sq-input-group-text,.sq-input-group-sm>.sq-input-group-prepend>.sq-btn,.sq-input-group-sm>.sq-input-group-prepend>.sq-input-group-text{padding:.25em .5em!important;font-size:.875em!important;line-height:1.5!important;border-radius:.2em!important}.sq-input-group-sm>.sq-input-group-append>select.sq-btn:not([size]):not([multiple]),.sq-input-group-sm>.sq-input-group-append>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-sm>.sq-input-group-prepend>select.sq-btn:not([size]):not([multiple]),.sq-input-group-sm>.sq-input-group-prepend>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-sm>select.sq-form-control:not([size]):not([multiple]),select.sq-form-control-sm:not([size]):not([multiple]){height:calc(1.8125em + 2px)!important}.sq-form-control-lg,.sq-input-group-lg .sq-form-control,.sq-input-group-lg>.sq-input-group-append>.sq-btn,.sq-input-group-lg>.sq-input-group-append>.sq-input-group-text,.sq-input-group-lg>.sq-input-group-prepend>.sq-btn,.sq-input-group-lg>.sq-input-group-prepend>.sq-input-group-text{padding:.5em!important;font-size:1.05em!important;line-height:1.5!important;border-radius:0!important}.sq-input-group-lg>.sq-input-group-append>select.sq-btn:not([size]):not([multiple]),.sq-input-group-lg>.sq-input-group-append>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-lg>.sq-input-group-prepend>select.sq-btn:not([size]):not([multiple]),.sq-input-group-lg>.sq-input-group-prepend>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-lg>select.sq-form-control:not([size]):not([multiple]),select.sq-form-control-lg:not([size]):not([multiple]){height:calc(2.875em + 2px)!important}.sq-input-group>select{max-height:48px!important}.sq-input-group select option:checked,.sq-input-group select option:checked:hover{background-color:#6200ee;color:#fff}.sq-form-group{margin-bottom:1em!important}.sq-form-text{display:block!important;margin-top:.25em!important}.sq-form-row{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;margin-right:-5px!important;margin-left:-5px!important}.sq-form-row>.col,.sq-form-row>[class*=col-]{padding-right:5px!important;padding-left:5px!important}.sq-form-check{position:relative!important;display:block!important;padding-left:1.25em!important}.sq-form-check-input{position:absolute!important;margin-top:.3em!important;margin-left:-1.25em!important}.sq-form-check-input:disabled~.sq-form-check-label{color:#6c757d!important}.sq-form-check-label{margin-bottom:0!important}.sq-form-check-inline,.sq-form-inline{-ms-flex-align:center!important;align-items:center!important}.sq-form-check-inline{display:-ms-inline-flexbox!important;display:inline-flex!important;padding-left:0!important;margin-right:.75em!important}.sq-form-check-inline .sq-form-check-input{position:static!important;margin-top:0!important;margin-right:.3125em!important;margin-left:0!important}.sq-form-inline{display:-ms-flexbox!important;display:flex!important;-ms-flex-flow:row wrap!important;flex-flow:row wrap!important}.sq-form-inline .sq-form-check{width:100%!important}@media (min-width:576px){.sq-form-inline .sq-form-group,.sq-form-inline label{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;margin-bottom:0!important}.sq-form-inline label{-ms-flex-pack:center!important;justify-content:center!important}.sq-form-inline .sq-form-group{-ms-flex:0 0 auto!important;flex:0 0 auto!important;-ms-flex-flow:row wrap!important;flex-flow:row wrap!important}.sq-form-inline .sq-form-control{display:inline-block!important;width:auto!important;vertical-align:middle!important}.sq-form-inline .sq-form-control-plaintext{display:inline-block!important}.sq-form-inline .custom-select,.sq-form-inline .sq-input-group{width:auto!important}.sq-form-inline .sq-form-check{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important;width:auto!important;padding-left:0!important}.sq-form-inline .sq-form-check-input{position:relative!important;margin-top:0!important;margin-right:.25em!important;margin-left:0!important}.sq-offset-sm-0{margin-left:0!important}.sq-offset-sm-1{margin-left:8.333333%!important}.sq-offset-sm-2{margin-left:16.666667%!important}.sq-offset-sm-3{margin-left:25%!important}.sq-offset-sm-4{margin-left:33.333333%!important}.sq-offset-sm-5{margin-left:41.666667%!important}.sq-offset-sm-6{margin-left:50%!important}.sq-offset-sm-7{margin-left:58.333333%!important}.sq-offset-sm-8{margin-left:66.666667%!important}.sq-offset-sm-9{margin-left:75%!important}.sq-offset-sm-10{margin-left:83.333333%!important}.sq-offset-sm-11{margin-left:91.666667%!important}}.sq-input-group{position:relative!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;-ms-flex-align:stretch!important;align-items:stretch!important;width:100%!important}.sq-input-group>.sq-form-control{position:relative!important;-ms-flex:1 1 auto!important;flex:1 1 auto!important;width:100%!important;margin-bottom:0!important}.sq-input-group>.sq-form-control:focus{z-index:3!important}.sq-input-group>.sq-form-control+.sq-form-control{margin-left:-1px!important}.sq-input-group>.sq-form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.sq-input-group>.sq-form-control:not(:first-child){border-top-left-radius:0!important;border-bottom-left-radius:0!important}.sq-input-group-append,.sq-input-group-prepend{display:-ms-flexbox!important;display:flex!important}.sq-input-group-append .sq-btn,.sq-input-group-prepend .sq-btn{position:relative!important;z-index:2!important}.sq-input-group-prepend{margin-right:-1px!important}.sq-input-group-append,.sq-input-group-append .sq-btn+.sq-btn,.sq-input-group-append .sq-btn+.sq-input-group-text,.sq-input-group-append .sq-input-group-text+.sq-btn,.sq-input-group-append .sq-input-group-text+.sq-input-group-text,.sq-input-group-prepend .sq-btn+.sq-btn,.sq-input-group-prepend .sq-btn+.sq-input-group-text,.sq-input-group-prepend .sq-input-group-text+.sq-btn,.sq-input-group-prepend .sq-input-group-text+.sq-input-group-text{margin-left:-1px!important}.sq-input-group-text{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;padding:.375em .75em!important;margin-bottom:0!important;font-size:1em!important;font-weight:400!important;line-height:1.5!important;color:#495057!important;text-align:center!important;white-space:nowrap!important;background-color:#e9ecef!important;border:1px solid #ced4da!important;border-radius:.25em!important}.sq-input-group-text input[type=checkbox],.sq-input-group-text input[type=radio]{margin-top:0!important}.sq-input-group>.sq-input-group-append:last-child>.sq-btn:not(:last-child):not(.dropdown-toggle),.sq-input-group>.sq-input-group-append:last-child>.sq-input-group-text:not(:last-child),.sq-input-group>.sq-input-group-append:not(:last-child)>.sq-btn,.sq-input-group>.sq-input-group-append:not(:last-child)>.sq-input-group-text,.sq-input-group>.sq-input-group-prepend>.sq-btn,.sq-input-group>.sq-input-group-prepend>.sq-input-group-text{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.sq-input-group>.sq-input-group-append>.sq-btn,.sq-input-group>.sq-input-group-append>.sq-input-group-text,.sq-input-group>.sq-input-group-prepend:first-child>.sq-btn:not(:first-child),.sq-input-group>.sq-input-group-prepend:first-child>.sq-input-group-text:not(:first-child),.sq-input-group>.sq-input-group-prepend:not(:first-child)>.sq-btn,.sq-input-group>.sq-input-group-prepend:not(:first-child)>.sq-input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.sq-nav{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;padding-left:0!important;margin-bottom:0!important;list-style:none!important}.sq-nav-link{display:block!important;padding:.5em 1em!important}.sq-nav-link:focus,.sq-nav-link:hover{text-decoration:none!important}.sq-nav-link.disabled{color:#6c757d!important}.sq-nav-tabs{border-bottom:1px solid #dee2e6}.sq-nav-tabs .sq-nav-item{margin-bottom:-1px!important}.sq-nav-tabs .sq-nav-item a{height:auto!important;line-height:10px!important}.sq-nav-tabs .sq-nav-link{border:1px solid transparent!important;border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-nav-tabs .sq-nav-link:focus,.sq-nav-tabs .sq-nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6!important}.sq-nav-tabs .sq-nav-link.disabled{color:#6c757d!important;background-color:transparent!important;border-color:transparent!important}.sq-nav-tabs .sq-nav-item.show .sq-nav-link,.sq-nav-tabs .sq-nav-link.active{color:#495057!important;background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff!important}.sq-nav-tabs .dropdown-menu{margin-top:-1px!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.sq-nav-pills .sq-nav-link{border-radius:.25em!important}.sq-nav-pills .show>.sq-nav-link,.sq-nav-pills .sq-nav-link.active{color:#fff!important;background-color:#007bff!important}.sq-nav-fill .sq-nav-item{-ms-flex:1 1 auto!important;flex:1 1 auto!important;text-align:center!important}.sq-nav-justified .sq-nav-item{-ms-flex-preferred-size:0!important;flex-basis:0!important;-ms-flex-positive:1!important;flex-grow:1!important;text-align:center!important}.sq-tab-content>.sq-tab-panel{display:none!important}.sq-tab-content>.active{display:block!important}.sq-nav-tabs--vertical{border-bottom:none!important;display:flex!important;flex-flow:column nowrap!important}.sq-nav-tabs--left{margin:0!important}.sq-nav-tabs--left .sq-nav-item+.sq-nav-item{margin-top:.25em!important}.sq-nav-tabs--left .sq-nav-link{transition:border-color .125s ease-in!important;white-space:nowrap!important}.sq-nav-tabs--left .sq-nav-link:hover{background-color:#f7f7f7!important;border-color:transparent!important}.sq-nav-tabs--left .sq-nav-link.active{border-bottom-color:#ddd!important;border-right-color:#fff!important;border-bottom-left-radius:.25em!important;border-top-right-radius:0!important;margin-right:-1px!important}.sq-nav-tabs--left .sq-nav-link.active:hover{background-color:#fff!important;border-color:#0275d8 #fff #0275d8 #0275d8!important}.sq-navbar{position:relative!important;padding:.5em 1em!important}.sq-navbar,.sq-navbar>.container,.sq-navbar>.container-fluid{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:justify!important;justify-content:space-between!important}.sq-navbar-brand{display:inline-block!important;padding-top:.3125em!important;padding-bottom:.3125em!important;margin-right:1em!important;font-size:1.25em!important;line-height:inherit!important;white-space:nowrap!important}.sq-navbar-brand:focus,.sq-navbar-brand:hover{text-decoration:none}.sq-navbar-nav{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;padding-left:0!important;margin-bottom:0!important;list-style:none!important}.sq-navbar-nav .nav-link{padding-right:0!important;padding-left:0!important}.sq-navbar-nav .dropdown-menu{position:static!important;float:none!important}.sq-navbar-text{display:inline-block!important;padding-top:.5em!important;padding-bottom:.5em!important}.sq-navbar-collapse{-ms-flex-preferred-size:100%!important;flex-basis:100%!important;-ms-flex-positive:1!important;flex-grow:1!important;-ms-flex-align:center!important;align-items:center!important}.sq-navbar-toggler{padding:.25em .75em!important;font-size:1.25em!important;line-height:1!important;background-color:transparent!important;border:1px solid transparent!important;border-radius:.25em!important}.sq-navbar-toggler:focus,.sq-navbar-toggler:hover{text-decoration:none!important}.sq-navbar-toggler:not(:disabled):not(.disabled){cursor:pointer!important}.sq-navbar-toggler-icon{display:inline-block!important;width:1.5em!important;height:1.5em!important;vertical-align:middle!important;content:""!important;background:no-repeat center center!important;background-size:100% 100%!important}@media (max-width:575.98px){.sq-navbar-expand-sm>.container,.sq-navbar-expand-sm>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:576px){.sq-navbar-expand-sm{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-sm .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-sm .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-sm .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-sm>.container,.sq-navbar-expand-sm>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-sm .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-sm .sq-navbar-toggler{display:none!important}}@media (max-width:767.98px){.sq-navbar-expand-md>.container,.sq-navbar-expand-md>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:768px){.sq-navbar-expand-md{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-md .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-md .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-md .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-md>.container,.sq-navbar-expand-md>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-md .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-md .sq-navbar-toggler{display:none!important}}@media (max-width:991.98px){.sq-navbar-expand-lg>.container,.sq-navbar-expand-lg>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:992px){.sq-navbar-expand-lg{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-lg .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-lg .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-lg .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-lg>.container,.sq-navbar-expand-lg>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-lg .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-lg .sq-navbar-toggler{display:none!important}}@media (max-width:1199.98px){.sq-navbar-expand-xl>.container,.sq-navbar-expand-xl>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:1200px){.sq-navbar-expand-xl{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-xl .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-xl .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-xl .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-xl>.container,.sq-navbar-expand-xl>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-xl .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-xl .sq-navbar-toggler{display:none!important}}.sq-navbar-expand{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand>.container,.sq-navbar-expand>.container-fluid{padding-right:0!important;padding-left:0!important}.sq-navbar-expand .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand>.container,.sq-navbar-expand>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand .sq-navbar-toggler{display:none!important}.sq-navbar-light .sq-navbar-brand{color:rgba(0,0,0,.9)!important}.sq-navbar-light .sq-navbar-brand:focus,.sq-navbar-light .sq-navbar-brand:hover,.sq-navbar-light .sq-navbar-text a:focus,.sq-navbar-light .sq-navbar-text a:hover{color:rgba(0,0,0,.9)!important}.sq-navbar-light .sq-navbar-nav .nav-link{color:rgba(0,0,0,.5)!important}.sq-navbar-light .sq-navbar-nav .nav-link:focus,.sq-navbar-light .sq-navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)!important}.sq-navbar-light .sq-navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)!important}.sq-navbar-light .sq-navbar-nav .active>.nav-link,.sq-navbar-light .sq-navbar-nav .nav-link.active,.sq-navbar-light .sq-navbar-nav .nav-link.show,.sq-navbar-light .sq-navbar-nav .show>.nav-link,.sq-navbar-light .sq-navbar-text a{color:rgba(0,0,0,.9)!important}.sq-navbar-light .sq-navbar-toggler{color:rgba(0,0,0,.5)!important;border-color:rgba(0,0,0,.1)!important}.sq-navbar-light .sq-navbar-toggler-icon{background-image:url("data:image/svg+xmlcharset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.sq-navbar-light .sq-navbar-text{color:rgba(0,0,0,.5)!important}.sq-navbar-dark .sq-navbar-brand{color:#fff!important}.sq-navbar-dark .sq-navbar-brand:focus,.sq-navbar-dark .sq-navbar-brand:hover,.sq-navbar-dark .sq-navbar-text a:focus,.sq-navbar-dark .sq-navbar-text a:hover{color:#fff!important}.sq-navbar-dark .sq-navbar-nav .nav-link{color:rgba(255,255,255,.5)!important}.sq-navbar-dark .sq-navbar-nav .nav-link:focus,.sq-navbar-dark .sq-navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)!important}.sq-navbar-dark .sq-navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)!important}.sq-navbar-dark .sq-navbar-nav .active>.nav-link,.sq-navbar-dark .sq-navbar-nav .nav-link.active,.sq-navbar-dark .sq-navbar-nav .nav-link.show,.sq-navbar-dark .sq-navbar-nav .show>.nav-link,.sq-navbar-dark .sq-navbar-text a{color:#fff!important}.sq-navbar-dark .sq-navbar-toggler{color:rgba(255,255,255,.5)!important;border-color:rgba(255,255,255,.1)!important}.sq-navbar-dark .sq-navbar-toggler-icon{background-image:url("data:image/svg+xmlcharset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.sq-navbar-dark .sq-navbar-text{color:rgba(255,255,255,.5)!important}.sq-card{position:relative!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;min-width:0!important;word-wrap:break-word!important;background-color:#fff!important;background-clip:border-box!important;border:1px solid rgba(0,0,0,.125)!important;border-radius:.25em!important}.sq-card>hr{margin-right:0!important;margin-left:0!important}.sq-card>.sq-list-group:first-child .sq-list-group-item:first-child{border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-card>.sq-list-group:last-child .sq-list-group-item:last-child{border-bottom-right-radius:.25em!important;border-bottom-left-radius:.25em!important}.sq-card-body{-ms-flex:1 1 auto!important;flex:1 1 auto!important;padding:1.25em!important}.sq-card-title{margin-bottom:.75em!important}.sq-card-subtitle{margin-top:-.375em!important;margin-bottom:0!important}.sq-card-text:last-child{margin-bottom:0!important}.sq-card-link:hover{text-decoration:none!important}.sq-card-link+.sq-card-link{margin-left:1.25em!important}.sq-card-header{padding:.75em 1.25em!important;margin-bottom:0!important;background-color:rgba(0,0,0,.03)!important;border-bottom:1px solid rgba(0,0,0,.125)!important}.sq-card-header:first-child{border-radius:calc(.25em - 1px) calc(.25em - 1px) 0 0!important}.sq-card-header+.sq-list-group .sq-list-group-item:first-child{border-top:0!important}.sq-card-footer{padding:.55em 1.25em!important;background-color:#fff!important;border-top:1px solid rgba(0,0,0,.125)!important}.sq-card-footer:last-child{border-radius:0 0 calc(.25em - 1px) calc(.25em - 1px)!important}.sq-card-footer .sq-switch label{font-size:14px!important}.sq-card-header-tabs{margin-bottom:-.75em!important;border-bottom:0!important}.sq-card-header-pills,.sq-card-header-tabs{margin-right:-.625em!important;margin-left:-.625em!important}.sq-card-img-overlay{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;padding:1.25em!important}.sq-card-img{width:100%!important;border-radius:calc(.25em - 1px)!important}.sq-card-img-top{width:100%!important;border-top-left-radius:calc(.25em - 1px)!important;border-top-right-radius:calc(.25em - 1px)!important}.sq-card-img-bottom{width:100%!important;border-bottom-right-radius:calc(.25em - 1px)!important;border-bottom-left-radius:calc(.25em - 1px)!important}.sq-card-deck{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important}.sq-card-deck .sq-card{margin-bottom:15px!important}@media (min-width:576px){.sq-card-deck{-ms-flex-flow:row wrap!important;flex-flow:row wrap!important;margin-right:-15px!important;margin-left:-15px!important}.sq-card-deck .sq-card{display:-ms-flexbox!important;display:flex!important;-ms-flex:1 0 0!important;flex:1 0 0!important;-ms-flex-direction:column!important;flex-direction:column!important;margin-right:15px!important;margin-bottom:0!important;margin-left:15px!important}}.sq-card-group{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important}.sq-card-group>.sq-card{margin-bottom:15px!important}@media (min-width:576px){.sq-card-group{-ms-flex-flow:row wrap!important;flex-flow:row wrap!important}.sq-card-group>.sq-card{-ms-flex:1 0 0!important;flex:1 0 0!important;margin-bottom:0!important}.sq-card-group>.sq-card+.sq-card{margin-left:0!important;border-left:0!important}.sq-card-group>.sq-card:first-child,.sq-card-group>.sq-card:first-child .sq-card-header,.sq-card-group>.sq-card:first-child .sq-card-img-top{border-top-right-radius:0!important}.sq-card-group>.sq-card:first-child,.sq-card-group>.sq-card:first-child .sq-card-footer,.sq-card-group>.sq-card:first-child .sq-card-img-bottom{border-bottom-right-radius:0!important}.sq-card-group>.sq-card:last-child,.sq-card-group>.sq-card:last-child .sq-card-header,.sq-card-group>.sq-card:last-child .sq-card-img-top{border-top-left-radius:0!important}.sq-card-group>.sq-card:last-child,.sq-card-group>.sq-card:last-child .sq-card-footer,.sq-card-group>.sq-card:last-child .sq-card-img-bottom{border-bottom-left-radius:0!important}.sq-card-group>.sq-card:only-child{border-radius:.25em!important}.sq-card-group>.sq-card:only-child .sq-card-header,.sq-card-group>.sq-card:only-child .sq-card-img-top{border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-card-group>.sq-card:only-child .sq-card-footer,.sq-card-group>.sq-card:only-child .sq-card-img-bottom{border-bottom-right-radius:.25em!important;border-bottom-left-radius:.25em!important}.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child),.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-footer,.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-header,.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-img-bottom,.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-img-top{border-radius:0!important}}.sq-card-columns .sq-card{margin-bottom:.75em!important}@media (min-width:576px){.sq-card-columns{-webkit-column-count:3!important;-moz-column-count:3!important;column-count:3!important;-webkit-column-gap:1.25em!important;-moz-column-gap:1.25em!important;column-gap:1.25em!important;orphans:1!important;widows:1!important}.sq-card-columns .sq-card{display:inline-block!important;width:100%!important}}.sq-breadcrumb,.sq-btn{border-radius:.25em!important}.sq-breadcrumb{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;padding:.75em 1em!important;margin-bottom:1em!important;list-style:none!important;background-color:#e9ecef!important}.sq-breadcrumb-item+.sq-breadcrumb-item{padding-left:.5em!important}.sq-breadcrumb-item+.sq-breadcrumb-item::before{display:inline-block!important;padding-right:.5em!important;color:#6c757d!important;content:"/"!important}.sq-breadcrumb-item+.sq-breadcrumb-item:hover::before{text-decoration:none!important}.sq-breadcrumb-item.active{color:#6c757d!important}.sq-btn{display:inline-block!important;font-weight:400!important;text-align:center!important;white-space:nowrap!important;vertical-align:middle!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;border:1px solid transparent!important;padding:.375em .75em!important;font-size:1em!important;line-height:1.5!important;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out!important}.sq-btn:focus,.sq-btn:hover{text-decoration:none!important}.sq-btn.focus,.sq-btn:focus{outline:0!important;box-shadow:0 0 0 .2em rgba(0,123,255,.25)!important}.sq-btn.disabled,.sq-btn:disabled{opacity:.65!important}.sq-btn:not(:disabled):not(.disabled){cursor:pointer!important}.sq-btn:not(:disabled):not(.disabled).active,.sq-btn:not(:disabled):not(.disabled):active{background-image:none!important}a.sq-btn.disabled,fieldset:disabled a.sq-btn{pointer-events:none!important}.sq-btn-primary{background-color:#6200ee!important;border-color:#6200ee!important}.sq-btn-primary,.sq-btn-primary:hover{color:#fff!important}.sq-btn-primary.focus,.sq-btn-primary:focus{box-shadow:0 0 0 .2em #5900d7!important}.sq-btn-primary.disabled,.sq-btn-primary:disabled{color:#fff!important;background-color:#5900d7!important;border-color:#5900d7!important}.show>.sq-btn-primary.dropdown-toggle,.sq-btn-primary:not(:disabled):not(.disabled).active,.sq-btn-primary:not(:disabled):not(.disabled):active{color:#fff!important;border-color:#5900d7!important}.show>.sq-btn-primary.dropdown-toggle:focus,.sq-btn-primary:not(:disabled):not(.disabled).active:focus,.sq-btn-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em #5900d7!important}.sq-btn-secondary{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.sq-btn-secondary:hover{color:#fff!important;background-color:#5a6268!important;border-color:#545b62!important}.sq-btn-secondary.focus,.sq-btn-secondary:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-secondary.disabled,.sq-btn-secondary:disabled{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.show>.sq-btn-secondary.dropdown-toggle,.sq-btn-secondary:not(:disabled):not(.disabled).active,.sq-btn-secondary:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#545b62!important;border-color:#4e555b!important}.show>.sq-btn-secondary.dropdown-toggle:focus,.sq-btn-secondary:not(:disabled):not(.disabled).active:focus,.sq-btn-secondary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-success{color:#fff!important;background-color:#28a745!important}.sq-btn-success:hover{color:#fff!important;border-color:#1e7e34!important}.sq-btn-success.focus,.sq-btn-success:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-success.disabled,.sq-btn-success:disabled{color:#fff!important;background-color:#28a745!important;border-color:#28a745!important}.show>.sq-btn-success.dropdown-toggle,.sq-btn-success:not(:disabled):not(.disabled).active,.sq-btn-success:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#1e7e34!important;border-color:#1c7430!important}.show>.sq-btn-success.dropdown-toggle:focus,.sq-btn-success:not(:disabled):not(.disabled).active:focus,.sq-btn-success:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-info,.sq-btn-info:hover{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.sq-btn-info:hover{background-color:#138496!important;border-color:#117a8b!important}.sq-btn-info.focus,.sq-btn-info:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-info.disabled,.sq-btn-info:disabled{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.show>.sq-btn-info.dropdown-toggle,.sq-btn-info:not(:disabled):not(.disabled).active,.sq-btn-info:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#117a8b!important;border-color:#10707f!important}.show>.sq-btn-info.dropdown-toggle:focus,.sq-btn-info:not(:disabled):not(.disabled).active:focus,.sq-btn-info:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-warning,.sq-btn-warning:hover{color:#212529!important}.sq-btn-warning.focus,.sq-btn-warning:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-warning.disabled,.sq-btn-warning:disabled{color:#212529!important;background-color:#ffc107!important;border-color:#ffc107!important}.show>.sq-btn-warning.dropdown-toggle,.sq-btn-warning:not(:disabled):not(.disabled).active,.sq-btn-warning:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#d39e00!important;border-color:#c69500!important}.show>.sq-btn-warning.dropdown-toggle:focus,.sq-btn-warning:not(:disabled):not(.disabled).active:focus,.sq-btn-warning:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-danger{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.sq-btn-danger:hover{color:#fff!important;background-color:#c82333!important;border-color:#bd2130!important}.sq-btn-danger.focus,.sq-btn-danger:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-danger.disabled,.sq-btn-danger:disabled{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.show>.sq-btn-danger.dropdown-toggle,.sq-btn-danger:not(:disabled):not(.disabled).active,.sq-btn-danger:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#bd2130!important;border-color:#b21f2d!important}.show>.sq-btn-danger.dropdown-toggle:focus,.sq-btn-danger:not(:disabled):not(.disabled).active:focus,.sq-btn-danger:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-light,.sq-btn-light:hover{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.sq-btn-light:hover{background-color:#e2e6ea!important;border-color:#dae0e5!important}.sq-btn-light.focus,.sq-btn-light:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-light.disabled,.sq-btn-light:disabled{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.show>.sq-btn-light.dropdown-toggle,.sq-btn-light:not(:disabled):not(.disabled).active,.sq-btn-light:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#dae0e5!important;border-color:#d3d9df!important}.show>.sq-btn-light.dropdown-toggle:focus,.sq-btn-light:not(:disabled):not(.disabled).active:focus,.sq-btn-light:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-dark,.sq-btn-dark:hover{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.sq-btn-dark:hover{background-color:#23272b!important;border-color:#1d2124!important}.sq-btn-dark.focus,.sq-btn-dark:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-dark.disabled,.sq-btn-dark:disabled{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.show>.sq-btn-dark.dropdown-toggle,.sq-btn-dark:not(:disabled):not(.disabled).active,.sq-btn-dark:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#1d2124!important;border-color:#171a1d!important}.show>.sq-btn-dark.dropdown-toggle:focus,.sq-btn-dark:not(:disabled):not(.disabled).active:focus,.sq-btn-dark:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-outline-primary{color:#007bff!important;background-color:transparent!important;background-image:none!important;border-color:#007bff!important}.sq-btn-outline-primary:hover{color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.sq-btn-outline-primary.focus,.sq-btn-outline-primary:focus{box-shadow:0 0 0 .2em rgba(0,123,255,.5)!important}.sq-btn-outline-primary.disabled,.sq-btn-outline-primary:disabled{color:#007bff!important;background-color:transparent!important}.show>.sq-btn-outline-primary.dropdown-toggle,.sq-btn-outline-primary:not(:disabled):not(.disabled).active,.sq-btn-outline-primary:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.show>.sq-btn-outline-primary.dropdown-toggle:focus,.sq-btn-outline-primary:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(0,123,255,.5)!important}.sq-btn-outline-secondary{color:#6c757d!important;background-color:transparent!important;background-image:none!important;border-color:#6c757d!important}.sq-btn-outline-secondary:hover{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.sq-btn-outline-secondary.focus,.sq-btn-outline-secondary:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-outline-secondary.disabled,.sq-btn-outline-secondary:disabled{color:#6c757d!important;background-color:transparent!important}.show>.sq-btn-outline-secondary.dropdown-toggle,.sq-btn-outline-secondary:not(:disabled):not(.disabled).active,.sq-btn-outline-secondary:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.show>.sq-btn-outline-secondary.dropdown-toggle:focus,.sq-btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-secondary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-outline-success{color:#28a745!important;background-color:transparent!important;background-image:none!important;border-color:#28a745!important}.sq-btn-outline-success:hover{color:#fff!important;background-color:#28a745!important;border-color:#28a745!important}.sq-btn-outline-success.focus,.sq-btn-outline-success:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-outline-success.disabled,.sq-btn-outline-success:disabled{color:#28a745!important;background-color:transparent!important}.show>.sq-btn-outline-success.dropdown-toggle,.sq-btn-outline-success:not(:disabled):not(.disabled).active,.sq-btn-outline-success:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#28a745!important;border-color:#28a745!important}.show>.sq-btn-outline-success.dropdown-toggle:focus,.sq-btn-outline-success:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-success:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-outline-info{color:#17a2b8!important;background-color:transparent!important;background-image:none!important;border-color:#17a2b8!important}.sq-btn-outline-info:hover{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.sq-btn-outline-info.focus,.sq-btn-outline-info:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-outline-info.disabled,.sq-btn-outline-info:disabled{color:#17a2b8!important;background-color:transparent!important}.show>.sq-btn-outline-info.dropdown-toggle,.sq-btn-outline-info:not(:disabled):not(.disabled).active,.sq-btn-outline-info:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.show>.sq-btn-outline-info.dropdown-toggle:focus,.sq-btn-outline-info:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-info:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-outline-warning{color:#ffc107!important;background-color:transparent!important;background-image:none!important;border-color:#ffc107!important}.sq-btn-outline-warning:hover{color:#212529!important;background-color:#ffc107!important;border-color:#ffc107!important}.sq-btn-outline-warning.focus,.sq-btn-outline-warning:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-outline-warning.disabled,.sq-btn-outline-warning:disabled{color:#ffc107!important;background-color:transparent!important}.show>.sq-btn-outline-warning.dropdown-toggle,.sq-btn-outline-warning:not(:disabled):not(.disabled).active,.sq-btn-outline-warning:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#ffc107!important;border-color:#ffc107!important}.show>.sq-btn-outline-warning.dropdown-toggle:focus,.sq-btn-outline-warning:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-warning:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-outline-danger{color:#dc3545!important;background-color:transparent!important;background-image:none!important;border-color:#dc3545!important}.sq-btn-outline-danger:hover{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.sq-btn-outline-danger.focus,.sq-btn-outline-danger:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-outline-danger.disabled,.sq-btn-outline-danger:disabled{color:#dc3545!important;background-color:transparent!important}.show>.sq-btn-outline-danger.dropdown-toggle,.sq-btn-outline-danger:not(:disabled):not(.disabled).active,.sq-btn-outline-danger:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.show>.sq-btn-outline-danger.dropdown-toggle:focus,.sq-btn-outline-danger:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-danger:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-outline-light{color:#f8f9fa!important;background-color:transparent!important;background-image:none!important;border-color:#f8f9fa!important}.sq-btn-outline-light:hover{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.sq-btn-outline-light.focus,.sq-btn-outline-light:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-outline-light.disabled,.sq-btn-outline-light:disabled{color:#f8f9fa!important;background-color:transparent!important}.show>.sq-btn-outline-light.dropdown-toggle,.sq-btn-outline-light:not(:disabled):not(.disabled).active,.sq-btn-outline-light:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.show>.sq-btn-outline-light.dropdown-toggle:focus,.sq-btn-outline-light:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-light:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-outline-dark{color:#343a40!important;background-color:transparent!important;background-image:none!important;border-color:#343a40!important}.sq-btn-outline-dark:hover{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.sq-btn-outline-dark.focus,.sq-btn-outline-dark:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-outline-dark.disabled,.sq-btn-outline-dark:disabled{color:#343a40!important;background-color:transparent!important}.show>.sq-btn-outline-dark.dropdown-toggle,.sq-btn-outline-dark:not(:disabled):not(.disabled).active,.sq-btn-outline-dark:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.show>.sq-btn-outline-dark.dropdown-toggle:focus,.sq-btn-outline-dark:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-dark:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-link,.sq-btn-link:hover{background-color:transparent!important}.sq-btn-link{font-weight:400!important;color:#6200ee!important}.sq-btn-link:hover{color:#5e03e1!important;text-decoration:underline!important;border-color:transparent!important}.sq-btn-link.focus,.sq-btn-link:focus{text-decoration:underline!important;border-color:transparent!important;box-shadow:none!important}.sq-btn-link.disabled,.sq-btn-link:disabled{color:#6c757d!important;pointer-events:none!important}.sq-btn-group-lg>.sq-btn,.sq-btn-lg{padding:.5em 1em!important;font-size:1.25em!important;line-height:1.5!important;border-radius:.3em!important}.sq-btn-group-sm>.sq-btn,.sq-btn-sm{padding:.25em .5em!important;font-size:.83rem!important;line-height:1.5!important;border-radius:.2em!important}.sq-btn-block{display:block!important;width:100%!important}.sq-btn-block+.sq-btn-block{margin-top:.5em!important}.sq-btn-success{border-color:transparent!important}.sq-btn-success:hover{background-color:#6200ee!important}.show>.sq-btn-primary.dropdown-toggle,.sq-btn-primary:not(:disabled):not(.disabled).active,.sq-btn-primary:not(:disabled):not(.disabled):active{background-color:#6200ee!important}.sq-btn-primary:hover{background-color:#6200ee!important;border-color:transparent!important}.sq-btn-warning,.sq-btn-warning:hover{background-color:#f2ca4c!important;border-color:transparent!important}.sq-btn-warning:hover{background-color:#e6be4b!important}.sq-align-baseline{vertical-align:baseline!important}.sq-align-top{vertical-align:top!important}.sq-align-middle{vertical-align:middle!important}.sq-align-bottom{vertical-align:bottom!important}.sq-align-text-bottom{vertical-align:text-bottom!important}.sq-align-text-top{vertical-align:text-top!important}.sq-bg-primary{background-color:#6200ee!important}a.sq-bg-primary:focus,a.sq-bg-primary:hover,button.sq-bg-primary:focus,button.sq-bg-primary:hover{background-color:#5f04e1!important}.sq-bg-secondary{background-color:#6c757d!important}a.sq-bg-secondary:focus,a.sq-bg-secondary:hover,button.sq-bg-secondary:focus,button.sq-bg-secondary:hover{background-color:#545b62!important}.sq-bg-success{background-color:#28a745!important}a.sq-bg-success:focus,a.sq-bg-success:hover,button.sq-bg-success:focus,button.sq-bg-success:hover{background-color:#1e7e34!important}.sq-bg-info{background-color:#17a2b8!important}a.sq-bg-info:focus,a.sq-bg-info:hover,button.sq-bg-info:focus,button.sq-bg-info:hover{background-color:#117a8b!important}.sq-bg-warning{background-color:#ffc107!important}a.sq-bg-warning:focus,a.sq-bg-warning:hover,button.sq-bg-warning:focus,button.sq-bg-warning:hover{background-color:#d39e00!important}.sq-bg-danger{background-color:#dc3545!important}a.sq-bg-danger:focus,a.sq-bg-danger:hover,button.sq-bg-danger:focus,button.sq-bg-danger:hover{background-color:#bd2130!important}.sq-bg-light{background-color:#f8f9fa!important}a.sq-bg-light:focus,a.sq-bg-light:hover,button.sq-bg-light:focus,button.sq-bg-light:hover{background-color:#dae0e5!important}.sq-bg-dark{background-color:#343a40!important}a.sq-bg-dark:focus,a.sq-bg-dark:hover,button.sq-bg-dark:focus,button.sq-bg-dark:hover{background-color:#1d2124!important}.sq-bg-white{background-color:#fff!important}.sq-bg-transparent{background-color:transparent!important}.sq-border{border:1px solid #dee2e6!important}.sq-border-top{border-top:1px solid #dee2e6!important}.sq-border-right{border-right:1px solid #dee2e6!important}.sq-border-bottom{border-bottom:1px solid #dee2e6!important}.sq-border-left{border-left:1px solid #dee2e6!important}.sq-border-0{border:0!important}.sq-border-top-0{border-top:0!important}.sq-border-right-0{border-right:0!important}.sq-border-bottom-0{border-bottom:0!important}.sq-border-left-0{border-left:0!important}.sq-border-primary{border-color:#007bff!important}.sq-border-secondary{border-color:#6c757d!important}.sq-border-success{border-color:#28a745!important}.sq-border-info{border-color:#17a2b8!important}.sq-border-warning{border-color:#ffc107!important}.sq-border-danger{border-color:#dc3545!important}.sq-border-light{border-color:#f8f9fa!important}.sq-border-dark{border-color:#343a40!important}.sq-border-white{border-color:#fff!important}.sq-rounded{border-radius:.25em!important}.sq-rounded-right,.sq-rounded-top{border-top-right-radius:.25em!important}.sq-rounded-top{border-top-left-radius:.25em!important}.sq-rounded-right{border-bottom-right-radius:.25em!important}.sq-rounded-bottom,.sq-rounded-left{border-bottom-left-radius:.25em!important}.sq-rounded-bottom{border-bottom-right-radius:.25em!important}.sq-rounded-left{border-top-left-radius:.25em!important}.sq-rounded-circle{border-radius:50%!important}.sq-rounded-0{border-radius:0!important}.sq-clearfix::after{display:block!important;clear:both!important;content:""}.sq-d-none{display:none!important}.sq-d-inline{display:inline!important}.sq-d-inline-block{display:inline-block!important}.sq-d-block{display:block!important}.sq-d-table{display:table!important}.sq-d-table-row{display:table-row!important}.sq-d-table-cell{display:table-cell!important}.sq-flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.sq-flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.sq-flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.sq-flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.sq-flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.sq-flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.sq-flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.sq-flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.sq-flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.sq-flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.sq-flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.sq-d-flex{display:-ms-flexbox!important;display:flex!important}.sq-d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}.sq-float-left{float:left!important}.sq-float-right{float:right!important}.sq-float-none{float:none!important}.sq-position-static{position:static!important}.sq-position-relative{position:relative!important}.sq-position-absolute{position:absolute!important}.sq-position-fixed{position:fixed!important}.sq-position-sticky{position:-webkit-sticky!important;position:sticky!important}.sq-fixed-bottom,.sq-fixed-top{position:fixed!important;right:0!important;left:0!important;z-index:1030}.sq-fixed-top{top:0}.sq-fixed-bottom{bottom:0!important}.sq-text-justify{text-align:justify!important}.sq-text-nowrap{white-space:nowrap!important}.sq-text-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.sq-text-left{text-align:left!important}.sq-text-right{text-align:right!important}.sq-text-center{text-align:center!important}.sq-text-lowercase{text-transform:lowercase!important}.sq-text-uppercase{text-transform:uppercase!important}.sq-text-capitalize{text-transform:capitalize!important}.sq-font-weight-light{font-weight:300!important}.sq-font-weight-normal{font-weight:400!important}.sq-font-weight-bold{font-weight:700!important}.sq-font-italic{font-style:italic!important}.sq-text-white{color:#fff!important}.sq-text-primary{color:#6200ee!important}a.sq-text-primary:focus,a.sq-text-primary:hover{color:#5a03d9!important}.sq-text-secondary{color:#6c757d!important}a.sq-text-secondary:focus,a.sq-text-secondary:hover{color:#545b62!important}.sq-text-success{color:#28a745!important}a.sq-text-success:focus,a.sq-text-success:hover{color:#1e7e34!important}.sq-text-info{color:#17a2b8!important}a.sq-text-info:focus,a.sq-text-info:hover{color:#117a8b!important}.sq-text-warning{color:#ffc107!important}a.sq-text-warning:focus,a.sq-text-warning:hover{color:#d39e00!important}.sq-text-danger{color:#dc3545!important}a.sq-text-danger:focus,a.sq-text-danger:hover{color:#bd2130!important}.sq-text-light{color:#f8f9fa!important}a.sq-text-light:focus,a.sq-text-light:hover{color:#dae0e5!important}.sq-text-dark{color:#343a40!important}a.sq-text-dark:focus,a.sq-text-dark:hover{color:#1d2124!important}.sq-text-body{color:#212529!important}.sq-text-muted{color:#6c757d!important}.sq-text-black-50{color:rgba(0,0,0,.5)!important}.sq-text-white-50{color:rgba(255,255,255,.5)!important}.sq-text-hide{font:0/0 a!important;color:transparent!important;text-shadow:none!important;background-color:transparent!important;border:0!important}.sq-visible{visibility:visible!important}.sq-invisible{visibility:hidden!important}.sq-pagination{display:-ms-flexbox!important;display:flex!important;padding-left:0!important;list-style:none!important;border-radius:.25em!important}.page-link{position:relative!important;display:block!important;padding:.5em .75em!important;margin-left:-1px!important;line-height:1.25!important;color:#007bff!important;background-color:#fff!important;border:1px solid #dee2e6!important}.page-link:hover{z-index:2!important;color:#0056b3!important;text-decoration:none!important;background-color:#e9ecef!important;border-color:#dee2e6!important}.page-link:focus{z-index:2!important;outline:0!important;box-shadow:0 0 0 .2em rgba(0,123,255,.25)!important}.page-link:not(:disabled):not(.disabled){cursor:pointer!important}.page-item:first-child .page-link{margin-left:0!important;border-top-left-radius:.25em!important;border-bottom-left-radius:.25em!important}.page-item:last-child .page-link{border-top-right-radius:.25em!important;border-bottom-right-radius:.25em!important}.page-item.active .page-link{z-index:1!important;color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.page-item.disabled .page-link{color:#6c757d!important;pointer-events:none!important;cursor:auto!important;background-color:#fff!important;border-color:#dee2e6!important}.sq-pagination-lg .page-link{padding:.75em 1.5em!important;font-size:1.25em!important;line-height:1.5!important}.sq-pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3em!important;border-bottom-left-radius:.3em!important}.sq-pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3em!important;border-bottom-right-radius:.3em!important}.sq-pagination-sm .page-link{padding:.25em .5em!important;font-size:.875em!important;line-height:1.5!important}.sq-pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2em!important;border-bottom-left-radius:.2em!important}.sq-pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2em!important;border-bottom-right-radius:.2em!important}.sq-alert{position:relative!important;padding:.75em 1.25em!important;margin-bottom:1em!important;border:1px solid transparent!important;border-radius:.25em!important}.sq-alert-absolute{position:absolute!important;top:0!important;left:0!important;width:100%!important;border-radius:0!important;z-index:101!important}.sq-alert-heading{color:inherit!important}.sq-alert-link{font-weight:700!important}.sq-alert-dismissible{padding-right:4em!important}.sq-alert-dismissible .close{position:absolute!important;top:0!important;right:0!important;padding:.75em 1.25em!important;color:inherit!important}.sq-alert-primary{color:#004085!important;background-color:#cce5ff!important;border-color:#b8daff!important}.sq-alert-primary hr{border-top-color:#9fcdff!important}.sq-alert-primary .sq-alert-link{color:#002752!important}.sq-alert-secondary{color:#383d41!important;background-color:#e2e3e5!important;border-color:#d6d8db!important}.sq-alert-secondary hr{border-top-color:#c8cbcf!important}.sq-alert-secondary .sq-alert-link{color:#202326!important}.sq-alert-success{color:#155724!important;background-color:#d4edda!important;border-color:#c3e6cb!important}.sq-alert-success hr{border-top-color:#b1dfbb!important}.sq-alert-success .sq-alert-link{color:#0b2e13!important}.sq-alert-info{color:#0c5460!important;background-color:#d1ecf1!important;border-color:#bee5eb!important}.sq-alert-info hr{border-top-color:#abdde5!important}.sq-alert-info .sq-alert-link{color:#062c33!important}.sq-alert-warning{color:#856404!important;background-color:#fff3cd!important;border-color:#ffeeba!important}.sq-alert-warning hr{border-top-color:#ffe8a1!important}.sq-alert-warning .sq-alert-link{color:#533f03!important}.sq-alert-danger{color:#721c24!important;background-color:#f8d7da!important;border-color:#f5c6cb!important}.sq-alert-danger hr{border-top-color:#f1b0b7!important}.sq-alert-danger .sq-alert-link{color:#491217!important}.sq-alert-light{color:#818182!important;background-color:#fefefe!important;border-color:#fdfdfe!important}.sq-alert-light hr{border-top-color:#ececf6!important}.sq-alert-light .sq-alert-link{color:#686868!important}.sq-alert-dark{color:#1b1e21!important;background-color:#d6d8d9!important;border-color:#c6c8ca!important}.sq-alert-dark hr{border-top-color:#b9bbbe!important}.sq-alert-dark .sq-alert-link{color:#040505!important}.sq-tooltip,.sq-tooltip .sq-tooltip-arrow{position:absolute!important;display:block!important}.sq-tooltip{z-index:1070!important;margin:0!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"!important;font-style:normal!important;font-weight:400!important;line-height:1.5!important;text-align:left!important;text-align:start!important;text-decoration:none!important;text-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;word-break:normal!important;word-spacing:normal!important;white-space:normal!important;line-break:auto!important;font-size:.875em!important;word-wrap:break-word!important;opacity:0!important}.sq-tooltip.show{opacity:.9!important}.sq-tooltip .sq-tooltip-arrow{width:.8em!important;height:.4em!important}.sq-tooltip .sq-tooltip-arrow::before{position:absolute!important;content:""!important;border-color:transparent!important;border-style:solid!important}.sq-bs-tooltip-auto[x-placement^=top],.sq-bs-tooltip-top{padding:.4em 0!important}.sq-bs-tooltip-auto[x-placement^=top] .sq-tooltip-arrow,.sq-bs-tooltip-top .sq-tooltip-arrow{bottom:0!important}.sq-bs-tooltip-auto[x-placement^=top] .sq-tooltip-arrow::before,.sq-bs-tooltip-top .sq-tooltip-arrow::before{top:0!important;border-width:.4em .4em 0!important;border-top-color:#000!important}.sq-bs-tooltip-auto[x-placement^=right],.sq-bs-tooltip-right{padding:0 .4em!important}.sq-bs-tooltip-auto[x-placement^=right] .sq-tooltip-arrow,.sq-bs-tooltip-right .sq-tooltip-arrow{left:0!important;width:.4em!important;height:.8em!important}.sq-bs-tooltip-auto[x-placement^=right] .sq-tooltip-arrow::before,.sq-bs-tooltip-right .sq-tooltip-arrow::before{right:0!important;border-width:.4em .4em .4em 0!important;border-right-color:#000!important}.sq-bs-tooltip-auto[x-placement^=bottom],.sq-bs-tooltip-bottom{padding:.4em 0!important}.sq-bs-tooltip-auto[x-placement^=bottom] .sq-tooltip-arrow,.sq-bs-tooltip-bottom .sq-tooltip-arrow{top:0!important}.sq-bs-tooltip-auto[x-placement^=bottom] .sq-tooltip-arrow::before,.sq-bs-tooltip-bottom .sq-tooltip-arrow::before{bottom:0!important;border-width:0 .4em .4em!important;border-bottom-color:#000!important}.sq-bs-tooltip-auto[x-placement^=left],.sq-bs-tooltip-left{padding:0 .4em!important}.sq-bs-tooltip-auto[x-placement^=left] .sq-tooltip-arrow,.sq-bs-tooltip-left .sq-tooltip-arrow{right:0!important;width:.4em!important;height:.8em!important}.sq-bs-tooltip-auto[x-placement^=left] .sq-tooltip-arrow::before,.sq-bs-tooltip-left .sq-tooltip-arrow::before{left:0!important;border-width:.4em 0 .4em .4em!important;border-left-color:#000!important}.sq-tooltip-inner{max-width:200px!important;padding:.25em .5em!important;color:#fff!important;text-align:center!important;background-color:#000!important;border-radius:.25em!important}.sq-progress,.sq-progress-bar{display:-ms-flexbox!important;display:flex!important}.sq-progress{height:1em!important;overflow:hidden!important;font-size:.75em!important;background-color:#e9ecef!important;border-radius:.25em!important}.sq-progress-bar{-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-pack:center!important;justify-content:center!important;color:#fff!important;text-align:center!important;white-space:nowrap!important;background-color:#007bff!important;transition:width .6s ease!important}.sq-progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)!important;background-size:1em 1em!important}.sq-progress-bar-animated{-webkit-animation:sq-progress-bar-stripes 1s linear infinite!important;animation:sq-progress-bar-stripes 1s linear infinite!important}.sq-list-group{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;padding-left:0!important;margin-bottom:0!important}.sq-list-group-item-action{width:100%!important;color:#495057!important;text-align:inherit!important}.sq-list-group-item-action:focus,.sq-list-group-item-action:hover{color:#495057!important;text-decoration:none!important;background-color:#f8f9fa!important}.sq-list-group-item-action:active{color:#212529!important;background-color:#e9ecef!important}.sq-list-group-item{position:relative!important;display:block!important;padding:.75em 1.25em!important;margin-bottom:-1px!important;background-color:#fff!important;border:1px solid rgba(0,0,0,.125)!important}.sq-list-group-item:first-child{border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-list-group-item:last-child{margin-bottom:0!important;border-bottom-right-radius:.25em!important;border-bottom-left-radius:.25em!important}.sq-list-group-item:focus,.sq-list-group-item:hover{z-index:1!important;text-decoration:none!important}.sq-list-group-item.disabled,.sq-list-group-item:disabled{color:#6c757d!important;background-color:#fff!important}.sq-list-group-item.active{z-index:2!important;color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.sq-list-group-flush .sq-list-group-item{border-right:0!important;border-left:0!important;border-radius:0!important}.sq-list-group-flush:first-child .sq-list-group-item:first-child{border-top:0!important}.sq-list-group-flush:last-child .sq-list-group-item:last-child{border-bottom:0!important}.sq-list-group-item-primary{color:#004085!important;background-color:#b8daff!important}.sq-list-group-item-primary.sq-list-group-item-action:focus,.sq-list-group-item-primary.sq-list-group-item-action:hover{color:#004085!important;background-color:#9fcdff!important}.sq-list-group-item-primary.sq-list-group-item-action.active{color:#fff!important;background-color:#004085!important;border-color:#004085!important}.sq-list-group-item-secondary{color:#383d41!important;background-color:#d6d8db!important}.sq-list-group-item-secondary.sq-list-group-item-action:focus,.sq-list-group-item-secondary.sq-list-group-item-action:hover{color:#383d41!important;background-color:#c8cbcf!important}.sq-list-group-item-secondary.sq-list-group-item-action.active{color:#fff!important;background-color:#383d41!important;border-color:#383d41!important}.sq-list-group-item-success{color:#155724!important;background-color:#c3e6cb!important}.sq-list-group-item-success.sq-list-group-item-action:focus,.sq-list-group-item-success.sq-list-group-item-action:hover{color:#155724!important;background-color:#b1dfbb!important}.sq-list-group-item-success.sq-list-group-item-action.active{color:#fff!important;background-color:#155724!important;border-color:#155724!important}.sq-list-group-item-info{color:#0c5460!important;background-color:#bee5eb!important}.sq-list-group-item-info.sq-list-group-item-action:focus,.sq-list-group-item-info.sq-list-group-item-action:hover{color:#0c5460!important;background-color:#abdde5!important}.sq-list-group-item-info.sq-list-group-item-action.active{color:#fff!important;background-color:#0c5460!important;border-color:#0c5460!important}.sq-list-group-item-warning{color:#856404!important;background-color:#ffeeba!important}.sq-list-group-item-warning.sq-list-group-item-action:focus,.sq-list-group-item-warning.sq-list-group-item-action:hover{color:#856404!important;background-color:#ffe8a1!important}.sq-list-group-item-warning.sq-list-group-item-action.active{color:#fff!important;background-color:#856404!important;border-color:#856404!important}.sq-list-group-item-danger{color:#721c24!important;background-color:#f5c6cb!important}.sq-list-group-item-danger.sq-list-group-item-action:focus,.sq-list-group-item-danger.sq-list-group-item-action:hover{color:#721c24!important;background-color:#f1b0b7!important}.sq-list-group-item-danger.sq-list-group-item-action.active{color:#fff!important;background-color:#721c24!important;border-color:#721c24!important}.sq-list-group-item-light{color:#818182!important;background-color:#fdfdfe!important}.sq-list-group-item-light.sq-list-group-item-action:focus,.sq-list-group-item-light.sq-list-group-item-action:hover{color:#818182!important;background-color:#ececf6!important}.sq-list-group-item-light.sq-list-group-item-action.active{color:#fff!important;background-color:#818182!important;border-color:#818182!important}.sq-list-group-item-dark{color:#1b1e21!important;background-color:#c6c8ca!important}.sq-list-group-item-dark.sq-list-group-item-action:focus,.sq-list-group-item-dark.sq-list-group-item-action:hover{color:#1b1e21!important;background-color:#b9bbbe!important}.sq-list-group-item-dark.sq-list-group-item-action.active{color:#fff!important;background-color:#1b1e21!important;border-color:#1b1e21!important}.sq-close{float:right!important;font-size:1.5em!important;font-weight:700!important;line-height:1!important;color:#000!important;text-shadow:0 1px 0 #fff!important;opacity:.5!important}.sq-close-absolute{position:absolute!important;right:5px!important;top:5px!important;z-index:1!important}.sq-close:focus,.sq-close:hover{color:#000!important;text-decoration:none!important;opacity:.75!important}.sq-close:not(:disabled):not(.disabled){cursor:pointer!important}.sq-input-group>button.sq-btn,.sq-input-group>input{max-height:47px!important}.sq-shadow-sm{box-shadow:0 .125em .25em rgba(0,0,0,.075)!important}.sq-shadow{box-shadow:0 .5em 1em rgba(0,0,0,.15)!important}.sq-shadow-lg{box-shadow:0 1em 3em rgba(0,0,0,.175)!important}.sq-shadow-none{box-shadow:none!important}.sq-modal,.sq-modal-open{overflow:hidden!important}.sq-modal{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:1050!important;display:none;outline:0!important}.sq-modal-open .sq-modal{overflow-x:hidden!important;overflow-y:auto!important}.sq-modal-dialog{position:relative!important;width:auto!important;margin:.5em!important;pointer-events:none!important}.sq-modal.fade .sq-modal-dialog{transition:transform .3s ease-out!important;transition:transform .3s ease-out,-webkit-transform .3s ease-out!important;-webkit-transform:translate(0,-25%)!important;transform:translate(0,-25%)!important}.sq-modal.show .sq-modal-dialog{-webkit-transform:translate(0,0)!important;transform:translate(0,0)!important}.sq-modal-content,.sq-modal-dialog-centered{display:-ms-flexbox!important;display:flex!important}.sq-modal-dialog-centered{-ms-flex-align:center!important;align-items:center!important;min-height:calc(100% - (.5em*2))!important}.sq-modal-content{position:relative!important;-ms-flex-direction:column!important;flex-direction:column!important;width:100%!important;pointer-events:auto!important;background-color:#fff!important;background-clip:padding-box!important;border:1px solid rgba(0,0,0,.2)!important;border-radius:.3em!important;outline:0!important}.sq-modal-backdrop{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:1040!important;background-color:#000!important}.sq-modal-backdrop.fade{opacity:0!important}.sq-modal-backdrop.show{opacity:.5!important}.sq-modal-header{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:start!important;align-items:flex-start!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding:1em!important;border-bottom:1px solid #e9ecef!important;border-top-left-radius:.3em!important;border-top-right-radius:.3em!important}.sq-modal-header .close{padding:1em!important;margin:-1em -1em -1em auto!important}.sq-modal-title{margin-bottom:0!important;line-height:1.5!important}.sq-modal-body{position:relative!important;-ms-flex:1 1 auto!important;flex:1 1 auto!important;padding:1em!important}.sq-modal-footer{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:end!important;justify-content:flex-end!important;padding:1em!important;border-top:1px solid #e9ecef!important}.sq-modal-footer>:not(:first-child){margin-left:.25em!important}.sq-modal-footer>:not(:last-child){margin-right:.25em!important}.sq-modal-scrollbar-measure{position:absolute!important;top:-9999px!important;width:50px!important;height:50px!important;overflow:scroll!important}@media (min-width:576px){.sq-modal-dialog{max-width:500px!important;margin:1.75em auto!important}.sq-modal-dialog-centered{min-height:calc(100% - (1.75em*2))!important}.sq-modal-sm{max-width:300px!important}}@media (min-width:992px){.sq-modal-lg{max-width:800px!important}}.sq-col-1,.sq-col-10,.sq-col-11,.sq-col-12,.sq-col-2,.sq-col-3,.sq-col-4,.sq-col-5,.sq-col-6,.sq-col-7,.sq-col-8,.sq-col-9{position:relative!important;width:100%!important;min-height:1px!important;padding-right:15px!important;padding-left:15px}.sq-col-auto{position:relative!important;min-height:1px!important;padding-right:15px!important;padding-left:15px}.sq-col,.sq-col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.sq-col-sm{-ms-flex-preferred-size:0!important;flex-basis:0!important;-ms-flex-positive:1!important;flex-grow:1!important}.sq-col-auto{-ms-flex:0 0 auto!important;flex:0 0 auto!important;width:auto!important;max-width:none}.sq-col-1{-ms-flex:0 0 8.333333%!important;flex:0 0 8.333333%!important;max-width:8.333333%}.sq-col-2{-ms-flex:0 0 16.666667%!important;flex:0 0 16.666667%!important;max-width:16.666667%}.sq-col-3{-ms-flex:0 0 25%!important;flex:0 0 25%!important;max-width:25%}.sq-col-4{-ms-flex:0 0 33.333333%!important;flex:0 0 33.333333%!important;max-width:33.333333%}.sq-col-5{-ms-flex:0 0 41.666667%!important;flex:0 0 41.666667%!important;max-width:41.666667%}.sq-col-6{-ms-flex:0 0 50%!important;flex:0 0 50%!important;max-width:50%}.sq-col-7{-ms-flex:0 0 58.333333%!important;flex:0 0 58.333333%!important;max-width:58.333333%}.sq-col-8{-ms-flex:0 0 66.666667%!important;flex:0 0 66.666667%!important;max-width:66.666667%}.sq-col-9{-ms-flex:0 0 75%!important;flex:0 0 75%!important;max-width:75%}.sq-col-10{-ms-flex:0 0 83.333333%!important;flex:0 0 83.333333%!important;max-width:83.333333%}.sq-col-11{-ms-flex:0 0 91.666667%!important;flex:0 0 91.666667%!important;max-width:91.666667%}.sq-col-12{-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%}.sq-m-0{margin:0!important}.sq-ml-0,.sq-mx-0{margin-left:0!important}.sq-mr-0,.sq-mx-0{margin-right:0!important}.sq-mt-0,.sq-my-0{margin-top:0!important}.sq-mb-0,.sq-my-0{margin-bottom:0!important}.sq-m-1{margin:.25em!important}.sq-ml-1,.sq-mx-1{margin-left:.25em!important}.sq-mr-1,.sq-mx-1{margin-right:.25em!important}.sq-mt-1,.sq-my-1{margin-top:.25em!important}.sq-mb-1,.sq-my-1{margin-bottom:.25em!important}.sq-m-2{margin:.5em!important}.sq-ml-2,.sq-mx-2{margin-left:.5em!important}.sq-mr-2,.sq-mx-2{margin-right:.5em!important}.sq-mt-2,.sq-my-2{margin-top:.5em!important}.sq-mb-2,.sq-my-2{margin-bottom:.5em!important}.sq-m-3{margin:1em!important}.sq-ml-3,.sq-mx-3{margin-left:1em!important}.sq-mr-3,.sq-mx-3{margin-right:1em!important}.sq-mt-3,.sq-my-3{margin-top:1em!important}.sq-mb-3,.sq-my-3{margin-bottom:1em!important}.sq-m-4{margin:1.5em!important}.sq-ml-4,.sq-mx-4{margin-left:1.5em!important}.sq-mr-4,.sq-mx-4{margin-right:1.5em!important}.sq-mt-4,.sq-my-4{margin-top:1.5em!important}.sq-mb-4,.sq-my-4{margin-bottom:1.5em!important}.sq-m-5{margin:3em!important}.sq-ml-5,.sq-mx-5{margin-left:3em!important}.sq-mr-5,.sq-mx-5{margin-right:3em!important}.sq-mt-5,.sq-my-5{margin-top:3em!important}.sq-mb-5,.sq-my-5{margin-bottom:3em!important}.sq-m-auto{margin:auto!important}.sq-mt-auto,.sq-my-auto{margin-top:auto!important}.sq-mr-auto,.sq-mx-auto{margin-right:auto!important}.sq-mb-auto,.sq-my-auto{margin-bottom:auto!important}.sq-ml-auto,.sq-mx-auto{margin-left:auto!important}.sq-p-0,.sq-switch input{padding:0!important}.sq-pl-0,.sq-px-0{padding-left:0!important}.sq-pr-0,.sq-px-0{padding-right:0!important}.sq-pt-0,.sq-py-0{padding-top:0!important}.sq-pb-0,.sq-py-0{padding-bottom:0!important}.sq-p-1{padding:.25em!important}.sq-pl-1,.sq-px-1{padding-left:.25em!important}.sq-pr-1,.sq-px-1{padding-right:.25em!important}.sq-pt-1,.sq-py-1{padding-top:.25em!important}.sq-pb-1,.sq-py-1{padding-bottom:.25em!important}.sq-p-2{padding:.5em!important}.sq-pl-2,.sq-px-2{padding-left:.5em!important}.sq-pr-2,.sq-px-2{padding-right:.5em!important}.sq-pt-2,.sq-py-2{padding-top:.5em!important}.sq-pb-2,.sq-py-2{padding-bottom:.5em!important}.sq-p-3{padding:1em!important}.sq-pl-3,.sq-px-3{padding-left:1em!important}.sq-pr-3,.sq-px-3{padding-right:1em!important}.sq-pt-3,.sq-py-3{padding-top:1em!important}.sq-pb-3,.sq-py-3{padding-bottom:1em!important}.sq-p-4{padding:1.5em!important}.sq-pl-4,.sq-px-4{padding-left:1.5em!important}.sq-pr-4,.sq-px-4{padding-right:1.5em!important}.sq-pt-4,.sq-py-4{padding-top:1.5em!important}.sq-pb-4,.sq-py-4{padding-bottom:1.5em!important}.sq-p-5{padding:3em!important}.sq-pl-5,.sq-px-5{padding-left:3em!important}.sq-pr-5,.sq-px-5{padding-right:3em!important}.sq-pt-5,.sq-py-5{padding-top:3em!important}.sq-pb-5,.sq-py-5{margin-bottom:3em!important}.sq-switch{font-size:1em!important;position:relative!important;box-shadow:none!important;height:auto!important;background:inherit!important}.sq-switch input{position:absolute!important;height:1px!important;width:1px!important;background:0 0!important;border:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important}.sq-switch input+label{position:relative!important;min-width:calc(calc(2.375em*.8)*2)!important;border-radius:calc(2.375em*.8)!important;height:calc(2.375em*.8)!important;line-height:calc(2.375em*.8)!important;font-size:16px!important;font-weight:700!important;display:inline-block!important;cursor:pointer!important;outline:0!important;user-select:none!important;vertical-align:middle!important;text-indent:calc(calc(calc(2.375em*.8)*2) + .5em)!important}.sq-switch input+label::after,.sq-switch input+label::before{content:''!important;position:absolute!important;bottom:0!important;display:block}.sq-switch input+label::before{top:0!important;left:0!important;width:calc(calc(2.375em*.8)*2)!important;right:0!important;background-color:#dee2e6!important;border-radius:calc(2.375em*.8)!important;transition:.2s all!important}.sq-switch.redblue input+label::before,.sq-switch.redgreen input+label::before{background-color:#9c2032!important}.sq-switch input+label::after{top:2px!important;left:2px!important;width:calc(calc(2.375em*.8) - calc(2px*2))!important;height:calc(calc(2.375em*.8) - calc(2px*2))!important;border-radius:50%!important;background-color:#fff!important;transition:.2s all!important}.sq-switch input:checked+label::before,.sq-switch.redblue input:checked+label::before{background-color:#6200ee!important}.sq-switch.redgreen input:checked+label::before{background-color:#4caf50!important}.sq-switch input:checked+label::after{margin-left:calc(2.375em*.8)!important}.sq-switch input:focus+label::before{outline:0!important;box-shadow:0 0 0 .2em rgba(0,136,221,.25)!important}.sq-switch input:disabled+label{color:#868e96!important;cursor:not-allowed!important}.sq-switch input:disabled+label::before{background-color:#e9ecef!important}.sq-switch.sq-switch-sm{font-size:.875em!important}.sq-switch.sq-switch-sm input+label{min-width:calc(calc(1.9375em*.6)*2)!important;height:calc(1.9375em*.6)!important;line-height:calc(1.9375em*.6)!important;text-indent:calc(calc(calc(2.1375em*.6)*2) + .5em)!important}.sq-switch.sq-switch-sm input+label::before{width:calc(calc(1.9375em*.6)*2)!important}.sq-switch.sq-switch-sm input+label::after{width:calc(calc(1.9375em*.6) - calc(2px*2))!important;height:calc(calc(1.9375em*.6) - calc(2px*2))!important}.sq-switch.sq-switch-sm input:checked+label::after{margin-left:calc(1.9375em*.6)!important}.sq-switch.sq-switch-xxs{font-size:.7em!important}.sq-switch.sq-switch-xxs input+label{min-width:calc(calc(.9375em*.8)*2)!important;height:calc(.9375em*.8)!important;line-height:calc(.9375em*.8)!important;text-indent:calc(calc(calc(1.1375em*.8)*2) + .5em)!important}.sq-switch.sq-switch-xxs input+label::before{width:calc(calc(.9375em*.8)*2)!important}.sq-switch.sq-switch-xxs input+label::after{width:calc(calc(.9375em*.8) - calc(2px*2))!important;height:calc(calc(.9375em*.8) - calc(2px*2))!important}.sq-switch.sq-switch-xxs input:checked+label::after{margin-left:calc(.9375em*.8)!important}.sq-switch.sq-switch-lg{font-size:1.25em!important}.sq-switch.sq-switch-lg input+label{min-width:calc(calc(3em*.8)*2)!important;height:calc(3em*.8)!important;line-height:calc(3em*.8)!important;text-indent:calc(calc(calc(3em*.8)*2) + .5em)!important}.sq-switch.sq-switch-lg input+label::before{width:calc(calc(3em*.8)*2)!important}.sq-switch.sq-switch-lg input+label::after{width:calc(calc(3em*.8) - calc(2px*2))!important;height:calc(calc(3em*.8) - calc(2px*2))!important}.sq-switch.sq-switch-lg input:checked+label::after{margin-left:calc(3em*.8)!important}.sq-switch+.sq-switch{margin-left:1em!important}.dropdown-menu{margin-top:.75em!important}
1
+ @-webkit-keyframes sq-progress-bar-stripes{0%{background-position:1em 0}to{background-position:0 0}}@keyframes sq-progress-bar-stripes{0%{background-position:1em 0}to{background-position:0 0}}.sq-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;margin-right:-15px!important;margin-left:-15px!important}.sq-small,.sq-small *{font-size:.83rem!important;line-height:20px!important;font-weight:400!important}.sq-mark{padding:.2em!important;background-color:#fcf8e3!important}.sq-table{width:100%!important;max-width:100%!important;margin-bottom:1em!important;background-color:transparent!important}.sq-table td,.sq-table th{padding:.75em!important;vertical-align:top!important;border-top:1px solid #dee2e6!important}.sq-table thead th{vertical-align:bottom!important;border-bottom:2px solid #dee2e6!important}.sq-table tbody+tbody{border-top:2px solid #dee2e6!important}.sq-table .sq-table{background-color:#fff!important}.sq-table-sm td,.sq-table-sm th{padding:.3em!important}.sq-table-bordered,.sq-table-bordered td,.sq-table-bordered th{border:1px solid #dee2e6!important}.sq-table-bordered thead td,.sq-table-bordered thead th{border-bottom-width:2px!important}.sq-table-borderless tbody+tbody,.sq-table-borderless td,.sq-table-borderless th,.sq-table-borderless thead th,.sq-table-dark.sq-table-bordered{border:0!important}.sq-table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)!important}.sq-table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)!important}.sq-table-primary,.sq-table-primary>td,.sq-table-primary>th{background-color:#b8daff!important}.sq-table-hover .sq-table-primary:hover,.sq-table-hover .sq-table-primary:hover>td,.sq-table-hover .sq-table-primary:hover>th{background-color:#9fcdff!important}.sq-table-secondary,.sq-table-secondary>td,.sq-table-secondary>th{background-color:#d6d8db!important}.sq-table-hover .sq-table-secondary:hover,.sq-table-hover .sq-table-secondary:hover>td,.sq-table-hover .sq-table-secondary:hover>th{background-color:#c8cbcf!important}.sq-table-success,.sq-table-success>td,.sq-table-success>th{background-color:#c3e6cb!important}.sq-table-hover .sq-table-success:hover,.sq-table-hover .sq-table-success:hover>td,.sq-table-hover .sq-table-success:hover>th{background-color:#b1dfbb!important}.sq-table-info,.sq-table-info>td,.sq-table-info>th{background-color:#bee5eb!important}.sq-table-hover .sq-table-info:hover,.sq-table-hover .sq-table-info:hover>td,.sq-table-hover .sq-table-info:hover>th{background-color:#abdde5!important}.sq-table-warning,.sq-table-warning>td,.sq-table-warning>th{background-color:#ffeeba!important}.sq-table-hover .sq-table-warning:hover,.sq-table-hover .sq-table-warning:hover>td,.sq-table-hover .sq-table-warning:hover>th{background-color:#ffe8a1!important}.sq-table-danger,.sq-table-danger>td,.sq-table-danger>th{background-color:#f5c6cb!important}.sq-table-hover .sq-table-danger:hover,.sq-table-hover .sq-table-danger:hover>td,.sq-table-hover .sq-table-danger:hover>th{background-color:#f1b0b7!important}.sq-table-light,.sq-table-light>td,.sq-table-light>th{background-color:#fdfdfe!important}.sq-table-hover .sq-table-light:hover,.sq-table-hover .sq-table-light:hover>td,.sq-table-hover .sq-table-light:hover>th{background-color:#ececf6!important}.sq-table-dark>td,.sq-table-dark>th{background-color:#c6c8ca!important}.sq-table-hover .sq-table-dark:hover,.sq-table-hover .sq-table-dark:hover>td,.sq-table-hover .sq-table-dark:hover>th{background-color:#b9bbbe!important}.sq-table-active,.sq-table-active>td,.sq-table-active>th,.sq-table-hover .sq-table-active:hover,.sq-table-hover .sq-table-active:hover>td,.sq-table-hover .sq-table-active:hover>th{background-color:rgba(0,0,0,.075)!important}.sq-table .thead-dark th{color:#fff!important;background-color:#212529!important;border-color:#32383e!important}.sq-table .thead-light th{color:#495057!important;background-color:#e9ecef!important;border-color:#dee2e6!important}.sq-table-dark{color:#fff!important;background-color:#212529!important}.sq-table-dark td,.sq-table-dark th,.sq-table-dark thead th{border-color:#32383e!important}.sq-table-dark.sq-table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)!important}.sq-table-dark.sq-table-hover tbody tr:hover{background-color:rgba(255,255,255,.075)!important}@media (max-width:575.98px){.sq-table-responsive-sm{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-sm>.sq-table-bordered{border:0!important}}@media (max-width:767.98px){.sq-table-responsive-md{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-md>.sq-table-bordered{border:0!important}}@media (max-width:991.98px){.sq-table-responsive-lg{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-lg>.sq-table-bordered{border:0!important}}@media (max-width:1199.98px){.sq-table-responsive-xl{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive-xl>.sq-table-bordered{border:0!important}}.sq-table-responsive{display:block;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;-ms-overflow-style:-ms-autohiding-scrollbar!important}.sq-table-responsive>.sq-table-bordered{border:0!important}.sq-form-control{display:block;width:100%!important;padding:.375em .75em!important;font-size:1em!important;line-height:1.5!important;color:#495057;background-color:#fff;background-clip:padding-box!important;border:1px solid #ced4da!important;border-radius:.25em!important;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out!important}.sq-form-control::-ms-expand{background-color:transparent!important;border:0}.sq-form-control:focus{color:#495057;background-color:#fff;border-color:#e5e0ea;outline:0!important;box-shadow:0 0 0 .2em rgb(98 10 239/8%)!important}.sq-form-control::-webkit-input-placeholder{color:#6c757d!important;opacity:1!important}.sq-form-control::-moz-placeholder{color:#6c757d!important;opacity:1!important}.sq-form-control:-ms-input-placeholder{color:#919aa2!important;opacity:1!important}.sq-form-control::-ms-input-placeholder{color:#919aa2!important;opacity:1!important}.sq-form-control::placeholder{color:#919aa2!important;opacity:1!important}.sq-form-control:disabled,.sq-form-control[readonly]{background-color:#e9ecef!important;opacity:1!important}select.sq-form-control:not([size]):not([multiple]){height:calc(2.25em + 2px)!important}select.sq-form-control:focus::-ms-value{color:#495057!important;background-color:#fff!important}.sq-form-control-file,.sq-form-control-plaintext,.sq-form-control-range{display:block!important;width:100%!important}.sq-form-control-plaintext{padding-top:.375em!important;padding-bottom:.375em!important;margin-bottom:0!important;line-height:1.5!important;color:#212529!important;background-color:transparent!important;border:solid transparent!important;border-width:1px 0!important}.sq-form-control-plaintext.sq-form-control-lg,.sq-form-control-plaintext.sq-form-control-sm,.sq-input-group-lg .sq-form-control-plaintext.sq-form-control,.sq-input-group-lg>.sq-input-group-append>.sq-form-control-plaintext.sq-btn,.sq-input-group-lg>.sq-input-group-append>.sq-form-control-plaintext.sq-input-group-text,.sq-input-group-lg>.sq-input-group-prepend>.sq-form-control-plaintext.sq-btn,.sq-input-group-lg>.sq-input-group-prepend>.sq-form-control-plaintext.sq-input-group-text,.sq-input-group-sm>.sq-form-control-plaintext.sq-form-control,.sq-input-group-sm>.sq-input-group-append>.sq-form-control-plaintext.sq-btn,.sq-input-group-sm>.sq-input-group-append>.sq-form-control-plaintext.sq-input-group-text,.sq-input-group-sm>.sq-input-group-prepend>.sq-form-control-plaintext.sq-btn,.sq-input-group-sm>.sq-input-group-prepend>.sq-form-control-plaintext.sq-input-group-text{padding-right:0!important;padding-left:0!important}.sq-form-control-sm,.sq-input-group-sm>.sq-form-control,.sq-input-group-sm>.sq-input-group-append>.sq-btn,.sq-input-group-sm>.sq-input-group-append>.sq-input-group-text,.sq-input-group-sm>.sq-input-group-prepend>.sq-btn,.sq-input-group-sm>.sq-input-group-prepend>.sq-input-group-text{padding:.25em .5em!important;font-size:.875em!important;line-height:1.5!important;border-radius:.2em!important}.sq-input-group-sm>.sq-input-group-append>select.sq-btn:not([size]):not([multiple]),.sq-input-group-sm>.sq-input-group-append>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-sm>.sq-input-group-prepend>select.sq-btn:not([size]):not([multiple]),.sq-input-group-sm>.sq-input-group-prepend>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-sm>select.sq-form-control:not([size]):not([multiple]),select.sq-form-control-sm:not([size]):not([multiple]){height:calc(1.8125em + 2px)!important}.sq-form-control-lg,.sq-input-group-lg .sq-form-control,.sq-input-group-lg>.sq-input-group-append>.sq-btn,.sq-input-group-lg>.sq-input-group-append>.sq-input-group-text,.sq-input-group-lg>.sq-input-group-prepend>.sq-btn,.sq-input-group-lg>.sq-input-group-prepend>.sq-input-group-text{padding:.5em!important;font-size:1.05em!important;line-height:1.5!important;border-radius:0!important}.sq-input-group-lg>.sq-input-group-append>select.sq-btn:not([size]):not([multiple]),.sq-input-group-lg>.sq-input-group-append>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-lg>.sq-input-group-prepend>select.sq-btn:not([size]):not([multiple]),.sq-input-group-lg>.sq-input-group-prepend>select.sq-input-group-text:not([size]):not([multiple]),.sq-input-group-lg>select.sq-form-control:not([size]):not([multiple]),select.sq-form-control-lg:not([size]):not([multiple]){height:calc(2.875em + 2px)!important}.sq-input-group>select{max-height:48px!important}.sq-input-group select option:checked,.sq-input-group select option:checked:hover{background-color:#6200ee;color:#fff}.sq-form-group{margin-bottom:1em!important}.sq-form-text{display:block!important;margin-top:.25em!important}.sq-form-row{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;margin-right:-5px!important;margin-left:-5px!important}.sq-form-row>.col,.sq-form-row>[class*=col-]{padding-right:5px!important;padding-left:5px!important}.sq-form-check{position:relative!important;display:block!important;padding-left:1.25em!important}.sq-form-check-input{position:absolute!important;margin-top:.3em!important;margin-left:-1.25em!important}.sq-form-check-input:disabled~.sq-form-check-label{color:#6c757d!important}.sq-form-check-label{margin-bottom:0!important}.sq-form-check-inline,.sq-form-inline{-ms-flex-align:center!important;align-items:center!important}.sq-form-check-inline{display:-ms-inline-flexbox!important;display:inline-flex!important;padding-left:0!important;margin-right:.75em!important}.sq-form-check-inline .sq-form-check-input{position:static!important;margin-top:0!important;margin-right:.3125em!important;margin-left:0!important}.sq-form-inline{display:-ms-flexbox!important;display:flex!important;-ms-flex-flow:row wrap!important;flex-flow:row wrap!important}.sq-form-inline .sq-form-check{width:100%!important}@media (min-width:576px){.sq-form-inline .sq-form-group,.sq-form-inline label{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;margin-bottom:0!important}.sq-form-inline label{-ms-flex-pack:center!important;justify-content:center!important}.sq-form-inline .sq-form-group{-ms-flex:0 0 auto!important;flex:0 0 auto!important;-ms-flex-flow:row wrap!important;flex-flow:row wrap!important}.sq-form-inline .sq-form-control{display:inline-block!important;width:auto!important;vertical-align:middle!important}.sq-form-inline .sq-form-control-plaintext{display:inline-block!important}.sq-form-inline .custom-select,.sq-form-inline .sq-input-group{width:auto!important}.sq-form-inline .sq-form-check{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important;width:auto!important;padding-left:0!important}.sq-form-inline .sq-form-check-input{position:relative!important;margin-top:0!important;margin-right:.25em!important;margin-left:0!important}.sq-offset-sm-0{margin-left:0!important}.sq-offset-sm-1{margin-left:8.333333%!important}.sq-offset-sm-2{margin-left:16.666667%!important}.sq-offset-sm-3{margin-left:25%!important}.sq-offset-sm-4{margin-left:33.333333%!important}.sq-offset-sm-5{margin-left:41.666667%!important}.sq-offset-sm-6{margin-left:50%!important}.sq-offset-sm-7{margin-left:58.333333%!important}.sq-offset-sm-8{margin-left:66.666667%!important}.sq-offset-sm-9{margin-left:75%!important}.sq-offset-sm-10{margin-left:83.333333%!important}.sq-offset-sm-11{margin-left:91.666667%!important}}.sq-input-group{position:relative!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;-ms-flex-align:stretch!important;align-items:stretch!important;width:100%!important}.sq-input-group>.sq-form-control{position:relative!important;-ms-flex:1 1 auto!important;flex:1 1 auto!important;width:100%!important;margin-bottom:0!important}.sq-input-group>.sq-form-control:focus{z-index:3!important}.sq-input-group>.sq-form-control+.sq-form-control{margin-left:-1px!important}.sq-input-group>.sq-form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.sq-input-group>.sq-form-control:not(:first-child){border-top-left-radius:0!important;border-bottom-left-radius:0!important}.sq-input-group-append,.sq-input-group-prepend{display:-ms-flexbox!important;display:flex!important}.sq-input-group-append .sq-btn,.sq-input-group-prepend .sq-btn{position:relative!important;z-index:2!important}.sq-input-group-prepend{margin-right:-1px!important}.sq-input-group-append,.sq-input-group-append .sq-btn+.sq-btn,.sq-input-group-append .sq-btn+.sq-input-group-text,.sq-input-group-append .sq-input-group-text+.sq-btn,.sq-input-group-append .sq-input-group-text+.sq-input-group-text,.sq-input-group-prepend .sq-btn+.sq-btn,.sq-input-group-prepend .sq-btn+.sq-input-group-text,.sq-input-group-prepend .sq-input-group-text+.sq-btn,.sq-input-group-prepend .sq-input-group-text+.sq-input-group-text{margin-left:-1px!important}.sq-input-group-text{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;padding:.375em .75em!important;margin-bottom:0!important;font-size:1em!important;font-weight:400!important;line-height:1.5!important;color:#495057!important;text-align:center!important;white-space:nowrap!important;background-color:#e9ecef!important;border:1px solid #ced4da!important;border-radius:.25em!important}.sq-input-group-text input[type=checkbox],.sq-input-group-text input[type=radio]{margin-top:0!important}.sq-input-group>.sq-input-group-append:last-child>.sq-btn:not(:last-child):not(.dropdown-toggle),.sq-input-group>.sq-input-group-append:last-child>.sq-input-group-text:not(:last-child),.sq-input-group>.sq-input-group-append:not(:last-child)>.sq-btn,.sq-input-group>.sq-input-group-append:not(:last-child)>.sq-input-group-text,.sq-input-group>.sq-input-group-prepend>.sq-btn,.sq-input-group>.sq-input-group-prepend>.sq-input-group-text{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.sq-input-group>.sq-input-group-append>.sq-btn,.sq-input-group>.sq-input-group-append>.sq-input-group-text,.sq-input-group>.sq-input-group-prepend:first-child>.sq-btn:not(:first-child),.sq-input-group>.sq-input-group-prepend:first-child>.sq-input-group-text:not(:first-child),.sq-input-group>.sq-input-group-prepend:not(:first-child)>.sq-btn,.sq-input-group>.sq-input-group-prepend:not(:first-child)>.sq-input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.sq-nav{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;padding-left:0!important;margin-bottom:0!important;list-style:none!important}.sq-nav-link{display:block!important;padding:.5em 1em!important}.sq-nav-link:focus,.sq-nav-link:hover{text-decoration:none!important}.sq-nav-link.disabled{color:#6c757d!important}.sq-nav-tabs{border-bottom:1px solid #dee2e6}.sq-nav-tabs .sq-nav-item{margin-bottom:-1px!important}.sq-nav-tabs .sq-nav-item a{height:auto!important;line-height:10px!important}.sq-nav-tabs .sq-nav-link{border:1px solid transparent!important;border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-nav-tabs .sq-nav-link:focus,.sq-nav-tabs .sq-nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6!important}.sq-nav-tabs .sq-nav-link.disabled{color:#6c757d!important;background-color:transparent!important;border-color:transparent!important}.sq-nav-tabs .sq-nav-item.show .sq-nav-link,.sq-nav-tabs .sq-nav-link.active{color:#495057!important;background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff!important}.sq-nav-tabs .dropdown-menu{margin-top:-1px!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.sq-nav-pills .sq-nav-link{border-radius:.25em!important}.sq-nav-pills .show>.sq-nav-link,.sq-nav-pills .sq-nav-link.active{color:#fff!important;background-color:#007bff!important}.sq-nav-fill .sq-nav-item{-ms-flex:1 1 auto!important;flex:1 1 auto!important;text-align:center!important}.sq-nav-justified .sq-nav-item{-ms-flex-preferred-size:0!important;flex-basis:0!important;-ms-flex-positive:1!important;flex-grow:1!important;text-align:center!important}.sq-tab-content>.sq-tab-panel{display:none!important}.sq-tab-content>.active{display:block!important}.sq-nav-tabs--vertical{border-bottom:none!important;display:flex!important;flex-flow:column nowrap!important}.sq-nav-tabs--left{margin:0!important}.sq-nav-tabs--left .sq-nav-item+.sq-nav-item{margin-top:.25em!important}.sq-nav-tabs--left .sq-nav-link{transition:border-color .125s ease-in!important;white-space:nowrap!important}.sq-nav-tabs--left .sq-nav-link:hover{background-color:#f7f7f7!important;border-color:transparent!important}.sq-nav-tabs--left .sq-nav-link.active{border-bottom-color:#ddd!important;border-right-color:#fff!important;border-bottom-left-radius:.25em!important;border-top-right-radius:0!important;margin-right:-1px!important}.sq-nav-tabs--left .sq-nav-link.active:hover{background-color:#fff!important;border-color:#0275d8 #fff #0275d8 #0275d8!important}.sq-navbar{position:relative!important;padding:.5em 1em!important}.sq-navbar,.sq-navbar>.container,.sq-navbar>.container-fluid{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:justify!important;justify-content:space-between!important}.sq-navbar-brand{display:inline-block!important;padding-top:.3125em!important;padding-bottom:.3125em!important;margin-right:1em!important;font-size:1.25em!important;line-height:inherit!important;white-space:nowrap!important}.sq-navbar-brand:focus,.sq-navbar-brand:hover{text-decoration:none}.sq-navbar-nav{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;padding-left:0!important;margin-bottom:0!important;list-style:none!important}.sq-navbar-nav .nav-link{padding-right:0!important;padding-left:0!important}.sq-navbar-nav .dropdown-menu{position:static!important;float:none!important}.sq-navbar-text{display:inline-block!important;padding-top:.5em!important;padding-bottom:.5em!important}.sq-navbar-collapse{-ms-flex-preferred-size:100%!important;flex-basis:100%!important;-ms-flex-positive:1!important;flex-grow:1!important;-ms-flex-align:center!important;align-items:center!important}.sq-navbar-toggler{padding:.25em .75em!important;font-size:1.25em!important;line-height:1!important;background-color:transparent!important;border:1px solid transparent!important;border-radius:.25em!important}.sq-navbar-toggler:focus,.sq-navbar-toggler:hover{text-decoration:none!important}.sq-navbar-toggler:not(:disabled):not(.disabled){cursor:pointer!important}.sq-navbar-toggler-icon{display:inline-block!important;width:1.5em!important;height:1.5em!important;vertical-align:middle!important;content:""!important;background:no-repeat center center!important;background-size:100% 100%!important}@media (max-width:575.98px){.sq-navbar-expand-sm>.container,.sq-navbar-expand-sm>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:576px){.sq-navbar-expand-sm{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-sm .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-sm .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-sm .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-sm>.container,.sq-navbar-expand-sm>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-sm .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-sm .sq-navbar-toggler{display:none!important}}@media (max-width:767.98px){.sq-navbar-expand-md>.container,.sq-navbar-expand-md>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:768px){.sq-navbar-expand-md{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-md .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-md .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-md .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-md>.container,.sq-navbar-expand-md>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-md .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-md .sq-navbar-toggler{display:none!important}}@media (max-width:991.98px){.sq-navbar-expand-lg>.container,.sq-navbar-expand-lg>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:992px){.sq-navbar-expand-lg{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-lg .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-lg .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-lg .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-lg>.container,.sq-navbar-expand-lg>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-lg .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-lg .sq-navbar-toggler{display:none!important}}@media (max-width:1199.98px){.sq-navbar-expand-xl>.container,.sq-navbar-expand-xl>.container-fluid{padding-right:0!important;padding-left:0!important}}@media (min-width:1200px){.sq-navbar-expand-xl{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand-xl .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand-xl .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand-xl .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand-xl>.container,.sq-navbar-expand-xl>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand-xl .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand-xl .sq-navbar-toggler{display:none!important}}.sq-navbar-expand{-ms-flex-flow:row nowrap!important;flex-flow:row nowrap!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.sq-navbar-expand>.container,.sq-navbar-expand>.container-fluid{padding-right:0!important;padding-left:0!important}.sq-navbar-expand .sq-navbar-nav{-ms-flex-direction:row!important;flex-direction:row!important}.sq-navbar-expand .sq-navbar-nav .dropdown-menu{position:absolute!important}.sq-navbar-expand .sq-navbar-nav .nav-link{padding-right:.5em!important;padding-left:.5em!important}.sq-navbar-expand>.container,.sq-navbar-expand>.container-fluid{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-navbar-expand .sq-navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto!important;flex-basis:auto!important}.sq-navbar-expand .sq-navbar-toggler{display:none!important}.sq-navbar-light .sq-navbar-brand{color:rgba(0,0,0,.9)!important}.sq-navbar-light .sq-navbar-brand:focus,.sq-navbar-light .sq-navbar-brand:hover,.sq-navbar-light .sq-navbar-text a:focus,.sq-navbar-light .sq-navbar-text a:hover{color:rgba(0,0,0,.9)!important}.sq-navbar-light .sq-navbar-nav .nav-link{color:rgba(0,0,0,.5)!important}.sq-navbar-light .sq-navbar-nav .nav-link:focus,.sq-navbar-light .sq-navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)!important}.sq-navbar-light .sq-navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)!important}.sq-navbar-light .sq-navbar-nav .active>.nav-link,.sq-navbar-light .sq-navbar-nav .nav-link.active,.sq-navbar-light .sq-navbar-nav .nav-link.show,.sq-navbar-light .sq-navbar-nav .show>.nav-link,.sq-navbar-light .sq-navbar-text a{color:rgba(0,0,0,.9)!important}.sq-navbar-light .sq-navbar-toggler{color:rgba(0,0,0,.5)!important;border-color:rgba(0,0,0,.1)!important}.sq-navbar-light .sq-navbar-toggler-icon{background-image:url("data:image/svg+xmlcharset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.sq-navbar-light .sq-navbar-text{color:rgba(0,0,0,.5)!important}.sq-navbar-dark .sq-navbar-brand{color:#fff!important}.sq-navbar-dark .sq-navbar-brand:focus,.sq-navbar-dark .sq-navbar-brand:hover,.sq-navbar-dark .sq-navbar-text a:focus,.sq-navbar-dark .sq-navbar-text a:hover{color:#fff!important}.sq-navbar-dark .sq-navbar-nav .nav-link{color:rgba(255,255,255,.5)!important}.sq-navbar-dark .sq-navbar-nav .nav-link:focus,.sq-navbar-dark .sq-navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)!important}.sq-navbar-dark .sq-navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)!important}.sq-navbar-dark .sq-navbar-nav .active>.nav-link,.sq-navbar-dark .sq-navbar-nav .nav-link.active,.sq-navbar-dark .sq-navbar-nav .nav-link.show,.sq-navbar-dark .sq-navbar-nav .show>.nav-link,.sq-navbar-dark .sq-navbar-text a{color:#fff!important}.sq-navbar-dark .sq-navbar-toggler{color:rgba(255,255,255,.5)!important;border-color:rgba(255,255,255,.1)!important}.sq-navbar-dark .sq-navbar-toggler-icon{background-image:url("data:image/svg+xmlcharset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.sq-navbar-dark .sq-navbar-text{color:rgba(255,255,255,.5)!important}.sq-card{position:relative!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;min-width:0!important;word-wrap:break-word!important;background-color:#fff!important;background-clip:border-box!important;border:1px solid rgba(0,0,0,.125)!important;border-radius:.25em!important}.sq-card>hr{margin-right:0!important;margin-left:0!important}.sq-card>.sq-list-group:first-child .sq-list-group-item:first-child{border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-card>.sq-list-group:last-child .sq-list-group-item:last-child{border-bottom-right-radius:.25em!important;border-bottom-left-radius:.25em!important}.sq-card-body{-ms-flex:1 1 auto!important;flex:1 1 auto!important;padding:1.25em!important}.sq-card-title{margin-bottom:.75em!important}.sq-card-subtitle{margin-top:-.375em!important;margin-bottom:0!important}.sq-card-text:last-child{margin-bottom:0!important}.sq-card-link:hover{text-decoration:none!important}.sq-card-link+.sq-card-link{margin-left:1.25em!important}.sq-card-header{padding:.75em 1.25em!important;margin-bottom:0!important;background-color:rgba(0,0,0,.03)!important;border-bottom:1px solid rgba(0,0,0,.125)!important}.sq-card-header:first-child{border-radius:calc(.25em - 1px) calc(.25em - 1px) 0 0!important}.sq-card-header+.sq-list-group .sq-list-group-item:first-child{border-top:0!important}.sq-card-footer{padding:.55em 1.25em!important;background-color:#fff!important;border-top:1px solid rgba(0,0,0,.125)!important}.sq-card-footer:last-child{border-radius:0 0 calc(.25em - 1px) calc(.25em - 1px)!important}.sq-card-footer .sq-switch label{font-size:14px!important}.sq-card-header-tabs{margin-bottom:-.75em!important;border-bottom:0!important}.sq-card-header-pills,.sq-card-header-tabs{margin-right:-.625em!important;margin-left:-.625em!important}.sq-card-img-overlay{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;padding:1.25em!important}.sq-card-img{width:100%!important;border-radius:calc(.25em - 1px)!important}.sq-card-img-top{width:100%!important;border-top-left-radius:calc(.25em - 1px)!important;border-top-right-radius:calc(.25em - 1px)!important}.sq-card-img-bottom{width:100%!important;border-bottom-right-radius:calc(.25em - 1px)!important;border-bottom-left-radius:calc(.25em - 1px)!important}.sq-card-deck{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important}.sq-card-deck .sq-card{margin-bottom:15px!important}@media (min-width:576px){.sq-card-deck{-ms-flex-flow:row wrap!important;flex-flow:row wrap!important;margin-right:-15px!important;margin-left:-15px!important}.sq-card-deck .sq-card{display:-ms-flexbox!important;display:flex!important;-ms-flex:1 0 0%!important;flex:1 0 0%!important;-ms-flex-direction:column!important;flex-direction:column!important;margin-right:15px!important;margin-bottom:0!important;margin-left:15px!important}}.sq-card-group{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important}.sq-card-group>.sq-card{margin-bottom:15px!important}@media (min-width:576px){.sq-card-group{-ms-flex-flow:row wrap!important;flex-flow:row wrap!important}.sq-card-group>.sq-card{-ms-flex:1 0 0%!important;flex:1 0 0%!important;margin-bottom:0!important}.sq-card-group>.sq-card+.sq-card{margin-left:0!important;border-left:0!important}.sq-card-group>.sq-card:first-child,.sq-card-group>.sq-card:first-child .sq-card-header,.sq-card-group>.sq-card:first-child .sq-card-img-top{border-top-right-radius:0!important}.sq-card-group>.sq-card:first-child,.sq-card-group>.sq-card:first-child .sq-card-footer,.sq-card-group>.sq-card:first-child .sq-card-img-bottom{border-bottom-right-radius:0!important}.sq-card-group>.sq-card:last-child,.sq-card-group>.sq-card:last-child .sq-card-header,.sq-card-group>.sq-card:last-child .sq-card-img-top{border-top-left-radius:0!important}.sq-card-group>.sq-card:last-child,.sq-card-group>.sq-card:last-child .sq-card-footer,.sq-card-group>.sq-card:last-child .sq-card-img-bottom{border-bottom-left-radius:0!important}.sq-card-group>.sq-card:only-child{border-radius:.25em!important}.sq-card-group>.sq-card:only-child .sq-card-header,.sq-card-group>.sq-card:only-child .sq-card-img-top{border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-card-group>.sq-card:only-child .sq-card-footer,.sq-card-group>.sq-card:only-child .sq-card-img-bottom{border-bottom-right-radius:.25em!important;border-bottom-left-radius:.25em!important}.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child),.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-footer,.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-header,.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-img-bottom,.sq-card-group>.sq-card:not(:first-child):not(:last-child):not(:only-child) .sq-card-img-top{border-radius:0!important}}.sq-card-columns .sq-card{margin-bottom:.75em!important}@media (min-width:576px){.sq-card-columns{-webkit-column-count:3!important;-moz-column-count:3!important;column-count:3!important;-webkit-column-gap:1.25em!important;-moz-column-gap:1.25em!important;column-gap:1.25em!important;orphans:1!important;widows:1!important}.sq-card-columns .sq-card{display:inline-block!important;width:100%!important}}.sq-breadcrumb,.sq-btn{border-radius:.25em!important}.sq-breadcrumb{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;padding:.75em 1em!important;margin-bottom:1em!important;list-style:none!important;background-color:#e9ecef!important}.sq-breadcrumb-item+.sq-breadcrumb-item{padding-left:.5em!important}.sq-breadcrumb-item+.sq-breadcrumb-item::before{display:inline-block!important;padding-right:.5em!important;color:#6c757d!important;content:"/"!important}.sq-breadcrumb-item+.sq-breadcrumb-item:hover::before{text-decoration:none!important}.sq-breadcrumb-item.active{color:#6c757d!important}.sq-btn{display:inline-block!important;font-weight:400!important;text-align:center!important;white-space:nowrap!important;vertical-align:middle!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;border:1px solid transparent!important;padding:.375em .75em!important;font-size:1em!important;line-height:1.5!important;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out!important}.sq-btn:focus,.sq-btn:hover{text-decoration:none!important}.sq-btn.focus,.sq-btn:focus{outline:0!important;box-shadow:0 0 0 .2em rgba(0,123,255,.25)!important}.sq-btn.disabled,.sq-btn:disabled{opacity:.65!important}.sq-btn:not(:disabled):not(.disabled){cursor:pointer!important}.sq-btn:not(:disabled):not(.disabled).active,.sq-btn:not(:disabled):not(.disabled):active{background-image:none!important}a.sq-btn.disabled,fieldset:disabled a.sq-btn{pointer-events:none!important}.sq-btn-primary{background-color:#6200ee!important;border-color:#6200ee!important}.sq-btn-primary,.sq-btn-primary:hover{color:#fff!important}.sq-btn-primary.focus,.sq-btn-primary:focus{box-shadow:0 0 0 .2em #5900d7!important}.sq-btn-primary.disabled,.sq-btn-primary:disabled{color:#fff!important;background-color:#5900d7!important;border-color:#5900d7!important}.show>.sq-btn-primary.dropdown-toggle,.sq-btn-primary:not(:disabled):not(.disabled).active,.sq-btn-primary:not(:disabled):not(.disabled):active{color:#fff!important;border-color:#5900d7!important}.show>.sq-btn-primary.dropdown-toggle:focus,.sq-btn-primary:not(:disabled):not(.disabled).active:focus,.sq-btn-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em #5900d7!important}.sq-btn-secondary{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.sq-btn-secondary:hover{color:#fff!important;background-color:#5a6268!important;border-color:#545b62!important}.sq-btn-secondary.focus,.sq-btn-secondary:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-secondary.disabled,.sq-btn-secondary:disabled{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.show>.sq-btn-secondary.dropdown-toggle,.sq-btn-secondary:not(:disabled):not(.disabled).active,.sq-btn-secondary:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#545b62!important;border-color:#4e555b!important}.show>.sq-btn-secondary.dropdown-toggle:focus,.sq-btn-secondary:not(:disabled):not(.disabled).active:focus,.sq-btn-secondary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-success{color:#fff!important;background-color:#28a745!important}.sq-btn-success:hover{color:#fff!important;border-color:#1e7e34!important}.sq-btn-success.focus,.sq-btn-success:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-success.disabled,.sq-btn-success:disabled{color:#fff!important;background-color:#28a745!important;border-color:#28a745!important}.show>.sq-btn-success.dropdown-toggle,.sq-btn-success:not(:disabled):not(.disabled).active,.sq-btn-success:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#1e7e34!important;border-color:#1c7430!important}.show>.sq-btn-success.dropdown-toggle:focus,.sq-btn-success:not(:disabled):not(.disabled).active:focus,.sq-btn-success:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-info,.sq-btn-info:hover{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.sq-btn-info:hover{background-color:#138496!important;border-color:#117a8b!important}.sq-btn-info.focus,.sq-btn-info:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-info.disabled,.sq-btn-info:disabled{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.show>.sq-btn-info.dropdown-toggle,.sq-btn-info:not(:disabled):not(.disabled).active,.sq-btn-info:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#117a8b!important;border-color:#10707f!important}.show>.sq-btn-info.dropdown-toggle:focus,.sq-btn-info:not(:disabled):not(.disabled).active:focus,.sq-btn-info:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-warning,.sq-btn-warning:hover{color:#212529!important}.sq-btn-warning.focus,.sq-btn-warning:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-warning.disabled,.sq-btn-warning:disabled{color:#212529!important;background-color:#ffc107!important;border-color:#ffc107!important}.show>.sq-btn-warning.dropdown-toggle,.sq-btn-warning:not(:disabled):not(.disabled).active,.sq-btn-warning:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#d39e00!important;border-color:#c69500!important}.show>.sq-btn-warning.dropdown-toggle:focus,.sq-btn-warning:not(:disabled):not(.disabled).active:focus,.sq-btn-warning:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-danger{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.sq-btn-danger:hover{color:#fff!important;background-color:#c82333!important;border-color:#bd2130!important}.sq-btn-danger.focus,.sq-btn-danger:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-danger.disabled,.sq-btn-danger:disabled{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.show>.sq-btn-danger.dropdown-toggle,.sq-btn-danger:not(:disabled):not(.disabled).active,.sq-btn-danger:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#bd2130!important;border-color:#b21f2d!important}.show>.sq-btn-danger.dropdown-toggle:focus,.sq-btn-danger:not(:disabled):not(.disabled).active:focus,.sq-btn-danger:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-light,.sq-btn-light:hover{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.sq-btn-light:hover{background-color:#e2e6ea!important;border-color:#dae0e5!important}.sq-btn-light.focus,.sq-btn-light:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-light.disabled,.sq-btn-light:disabled{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.show>.sq-btn-light.dropdown-toggle,.sq-btn-light:not(:disabled):not(.disabled).active,.sq-btn-light:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#dae0e5!important;border-color:#d3d9df!important}.show>.sq-btn-light.dropdown-toggle:focus,.sq-btn-light:not(:disabled):not(.disabled).active:focus,.sq-btn-light:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-dark,.sq-btn-dark:hover{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.sq-btn-dark:hover{background-color:#23272b!important;border-color:#1d2124!important}.sq-btn-dark.focus,.sq-btn-dark:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-dark.disabled,.sq-btn-dark:disabled{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.show>.sq-btn-dark.dropdown-toggle,.sq-btn-dark:not(:disabled):not(.disabled).active,.sq-btn-dark:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#1d2124!important;border-color:#171a1d!important}.show>.sq-btn-dark.dropdown-toggle:focus,.sq-btn-dark:not(:disabled):not(.disabled).active:focus,.sq-btn-dark:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-outline-primary{color:#007bff!important;background-color:transparent!important;background-image:none!important;border-color:#007bff!important}.sq-btn-outline-primary:hover{color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.sq-btn-outline-primary.focus,.sq-btn-outline-primary:focus{box-shadow:0 0 0 .2em rgba(0,123,255,.5)!important}.sq-btn-outline-primary.disabled,.sq-btn-outline-primary:disabled{color:#007bff!important;background-color:transparent!important}.show>.sq-btn-outline-primary.dropdown-toggle,.sq-btn-outline-primary:not(:disabled):not(.disabled).active,.sq-btn-outline-primary:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.show>.sq-btn-outline-primary.dropdown-toggle:focus,.sq-btn-outline-primary:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(0,123,255,.5)!important}.sq-btn-outline-secondary{color:#6c757d!important;background-color:transparent!important;background-image:none!important;border-color:#6c757d!important}.sq-btn-outline-secondary:hover{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.sq-btn-outline-secondary.focus,.sq-btn-outline-secondary:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-outline-secondary.disabled,.sq-btn-outline-secondary:disabled{color:#6c757d!important;background-color:transparent!important}.show>.sq-btn-outline-secondary.dropdown-toggle,.sq-btn-outline-secondary:not(:disabled):not(.disabled).active,.sq-btn-outline-secondary:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#6c757d!important;border-color:#6c757d!important}.show>.sq-btn-outline-secondary.dropdown-toggle:focus,.sq-btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-secondary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(108,117,125,.5)!important}.sq-btn-outline-success{color:#28a745!important;background-color:transparent!important;background-image:none!important;border-color:#28a745!important}.sq-btn-outline-success:hover{color:#fff!important;background-color:#28a745!important;border-color:#28a745!important}.sq-btn-outline-success.focus,.sq-btn-outline-success:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-outline-success.disabled,.sq-btn-outline-success:disabled{color:#28a745!important;background-color:transparent!important}.show>.sq-btn-outline-success.dropdown-toggle,.sq-btn-outline-success:not(:disabled):not(.disabled).active,.sq-btn-outline-success:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#28a745!important;border-color:#28a745!important}.show>.sq-btn-outline-success.dropdown-toggle:focus,.sq-btn-outline-success:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-success:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(40,167,69,.5)!important}.sq-btn-outline-info{color:#17a2b8!important;background-color:transparent!important;background-image:none!important;border-color:#17a2b8!important}.sq-btn-outline-info:hover{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.sq-btn-outline-info.focus,.sq-btn-outline-info:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-outline-info.disabled,.sq-btn-outline-info:disabled{color:#17a2b8!important;background-color:transparent!important}.show>.sq-btn-outline-info.dropdown-toggle,.sq-btn-outline-info:not(:disabled):not(.disabled).active,.sq-btn-outline-info:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#17a2b8!important;border-color:#17a2b8!important}.show>.sq-btn-outline-info.dropdown-toggle:focus,.sq-btn-outline-info:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-info:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(23,162,184,.5)!important}.sq-btn-outline-warning{color:#ffc107!important;background-color:transparent!important;background-image:none!important;border-color:#ffc107!important}.sq-btn-outline-warning:hover{color:#212529!important;background-color:#ffc107!important;border-color:#ffc107!important}.sq-btn-outline-warning.focus,.sq-btn-outline-warning:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-outline-warning.disabled,.sq-btn-outline-warning:disabled{color:#ffc107!important;background-color:transparent!important}.show>.sq-btn-outline-warning.dropdown-toggle,.sq-btn-outline-warning:not(:disabled):not(.disabled).active,.sq-btn-outline-warning:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#ffc107!important;border-color:#ffc107!important}.show>.sq-btn-outline-warning.dropdown-toggle:focus,.sq-btn-outline-warning:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-warning:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(255,193,7,.5)!important}.sq-btn-outline-danger{color:#dc3545!important;background-color:transparent!important;background-image:none!important;border-color:#dc3545!important}.sq-btn-outline-danger:hover{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.sq-btn-outline-danger.focus,.sq-btn-outline-danger:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-outline-danger.disabled,.sq-btn-outline-danger:disabled{color:#dc3545!important;background-color:transparent!important}.show>.sq-btn-outline-danger.dropdown-toggle,.sq-btn-outline-danger:not(:disabled):not(.disabled).active,.sq-btn-outline-danger:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#dc3545!important;border-color:#dc3545!important}.show>.sq-btn-outline-danger.dropdown-toggle:focus,.sq-btn-outline-danger:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-danger:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(220,53,69,.5)!important}.sq-btn-outline-light{color:#f8f9fa!important;background-color:transparent!important;background-image:none!important;border-color:#f8f9fa!important}.sq-btn-outline-light:hover{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.sq-btn-outline-light.focus,.sq-btn-outline-light:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-outline-light.disabled,.sq-btn-outline-light:disabled{color:#f8f9fa!important;background-color:transparent!important}.show>.sq-btn-outline-light.dropdown-toggle,.sq-btn-outline-light:not(:disabled):not(.disabled).active,.sq-btn-outline-light:not(:disabled):not(.disabled):active{color:#212529!important;background-color:#f8f9fa!important;border-color:#f8f9fa!important}.show>.sq-btn-outline-light.dropdown-toggle:focus,.sq-btn-outline-light:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-light:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(248,249,250,.5)!important}.sq-btn-outline-dark{color:#343a40!important;background-color:transparent!important;background-image:none!important;border-color:#343a40!important}.sq-btn-outline-dark:hover{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.sq-btn-outline-dark.focus,.sq-btn-outline-dark:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-outline-dark.disabled,.sq-btn-outline-dark:disabled{color:#343a40!important;background-color:transparent!important}.show>.sq-btn-outline-dark.dropdown-toggle,.sq-btn-outline-dark:not(:disabled):not(.disabled).active,.sq-btn-outline-dark:not(:disabled):not(.disabled):active{color:#fff!important;background-color:#343a40!important;border-color:#343a40!important}.show>.sq-btn-outline-dark.dropdown-toggle:focus,.sq-btn-outline-dark:not(:disabled):not(.disabled).active:focus,.sq-btn-outline-dark:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2em rgba(52,58,64,.5)!important}.sq-btn-link,.sq-btn-link:hover{background-color:transparent!important}.sq-btn-link{font-weight:400!important;color:#6200ee!important}.sq-btn-link:hover{color:#5e03e1!important;text-decoration:underline!important;border-color:transparent!important}.sq-btn-link.focus,.sq-btn-link:focus{text-decoration:underline!important;border-color:transparent!important;box-shadow:none!important}.sq-btn-link.disabled,.sq-btn-link:disabled{color:#6c757d!important;pointer-events:none!important}.sq-btn-group-lg>.sq-btn,.sq-btn-lg{padding:.5em 1em!important;font-size:1.25em!important;line-height:1.5!important;border-radius:.3em!important}.sq-btn-group-sm>.sq-btn,.sq-btn-sm{padding:.25em .5em!important;font-size:.83rem!important;line-height:1.5!important;border-radius:.2em!important}.sq-btn-block{display:block!important;width:100%!important}.sq-btn-block+.sq-btn-block{margin-top:.5em!important}.sq-btn-success{border-color:transparent!important}.sq-btn-success:hover{background-color:#6200ee!important}.show>.sq-btn-primary.dropdown-toggle,.sq-btn-primary:not(:disabled):not(.disabled).active,.sq-btn-primary:not(:disabled):not(.disabled):active{background-color:#6200ee!important}.sq-btn-primary:hover{background-color:#6200ee!important;border-color:transparent!important}.sq-btn-warning,.sq-btn-warning:hover{background-color:#f2ca4c!important;border-color:transparent!important}.sq-btn-warning:hover{background-color:#e6be4b!important}.sq-align-baseline{vertical-align:baseline!important}.sq-align-top{vertical-align:top!important}.sq-align-middle{vertical-align:middle!important}.sq-align-bottom{vertical-align:bottom!important}.sq-align-text-bottom{vertical-align:text-bottom!important}.sq-align-text-top{vertical-align:text-top!important}.sq-bg-primary{background-color:#6200ee!important}a.sq-bg-primary:focus,a.sq-bg-primary:hover,button.sq-bg-primary:focus,button.sq-bg-primary:hover{background-color:#5f04e1!important}.sq-bg-secondary{background-color:#6c757d!important}a.sq-bg-secondary:focus,a.sq-bg-secondary:hover,button.sq-bg-secondary:focus,button.sq-bg-secondary:hover{background-color:#545b62!important}.sq-bg-success{background-color:#28a745!important}a.sq-bg-success:focus,a.sq-bg-success:hover,button.sq-bg-success:focus,button.sq-bg-success:hover{background-color:#1e7e34!important}.sq-bg-info{background-color:#17a2b8!important}a.sq-bg-info:focus,a.sq-bg-info:hover,button.sq-bg-info:focus,button.sq-bg-info:hover{background-color:#117a8b!important}.sq-bg-warning{background-color:#ffc107!important}a.sq-bg-warning:focus,a.sq-bg-warning:hover,button.sq-bg-warning:focus,button.sq-bg-warning:hover{background-color:#d39e00!important}.sq-bg-danger{background-color:#dc3545!important}a.sq-bg-danger:focus,a.sq-bg-danger:hover,button.sq-bg-danger:focus,button.sq-bg-danger:hover{background-color:#bd2130!important}.sq-bg-light{background-color:#f8f9fa!important}a.sq-bg-light:focus,a.sq-bg-light:hover,button.sq-bg-light:focus,button.sq-bg-light:hover{background-color:#dae0e5!important}.sq-bg-dark{background-color:#343a40!important}a.sq-bg-dark:focus,a.sq-bg-dark:hover,button.sq-bg-dark:focus,button.sq-bg-dark:hover{background-color:#1d2124!important}.sq-bg-white{background-color:#fff!important}.sq-bg-transparent{background-color:transparent!important}.sq-border{border:1px solid #dee2e6!important}.sq-border-top{border-top:1px solid #dee2e6!important}.sq-border-right{border-right:1px solid #dee2e6!important}.sq-border-bottom{border-bottom:1px solid #dee2e6!important}.sq-border-left{border-left:1px solid #dee2e6!important}.sq-border-0{border:0!important}.sq-border-top-0{border-top:0!important}.sq-border-right-0{border-right:0!important}.sq-border-bottom-0{border-bottom:0!important}.sq-border-left-0{border-left:0!important}.sq-border-primary{border-color:#007bff!important}.sq-border-secondary{border-color:#6c757d!important}.sq-border-success{border-color:#28a745!important}.sq-border-info{border-color:#17a2b8!important}.sq-border-warning{border-color:#ffc107!important}.sq-border-danger{border-color:#dc3545!important}.sq-border-light{border-color:#f8f9fa!important}.sq-border-dark{border-color:#343a40!important}.sq-border-white{border-color:#fff!important}.sq-rounded{border-radius:.25em!important}.sq-rounded-right,.sq-rounded-top{border-top-right-radius:.25em!important}.sq-rounded-top{border-top-left-radius:.25em!important}.sq-rounded-right{border-bottom-right-radius:.25em!important}.sq-rounded-bottom,.sq-rounded-left{border-bottom-left-radius:.25em!important}.sq-rounded-bottom{border-bottom-right-radius:.25em!important}.sq-rounded-left{border-top-left-radius:.25em!important}.sq-rounded-circle{border-radius:50%!important}.sq-rounded-0{border-radius:0!important}.sq-clearfix::after{display:block!important;clear:both!important;content:""}.sq-d-none{display:none!important}.sq-d-inline{display:inline!important}.sq-d-inline-block{display:inline-block!important}.sq-d-block{display:block!important}.sq-d-table{display:table!important}.sq-d-table-row{display:table-row!important}.sq-d-table-cell{display:table-cell!important}.sq-flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.sq-flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.sq-flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.sq-flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.sq-flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.sq-flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.sq-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.sq-flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.sq-flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.sq-flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.sq-flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.sq-flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.sq-d-flex{display:-ms-flexbox!important;display:flex!important}.sq-d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}.sq-float-left{float:left!important}.sq-float-right{float:right!important}.sq-float-none{float:none!important}.sq-position-static{position:static!important}.sq-position-relative{position:relative!important}.sq-position-absolute{position:absolute!important}.sq-position-fixed{position:fixed!important}.sq-position-sticky{position:-webkit-sticky!important;position:sticky!important}.sq-fixed-bottom,.sq-fixed-top{position:fixed!important;right:0!important;left:0!important;z-index:1030}.sq-fixed-top{top:0}.sq-fixed-bottom{bottom:0!important}.sq-text-justify{text-align:justify!important}.sq-text-nowrap{white-space:nowrap!important}.sq-text-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.sq-text-left{text-align:left!important}.sq-text-right{text-align:right!important}.sq-text-center{text-align:center!important}.sq-text-lowercase{text-transform:lowercase!important}.sq-text-uppercase{text-transform:uppercase!important}.sq-text-capitalize{text-transform:capitalize!important}.sq-font-weight-light{font-weight:300!important}.sq-font-weight-normal{font-weight:400!important}.sq-font-weight-bold{font-weight:700!important}.sq-font-italic{font-style:italic!important}.sq-text-white{color:#fff!important}.sq-text-primary{color:#6200ee!important}a.sq-text-primary:focus,a.sq-text-primary:hover{color:#5a03d9!important}.sq-text-secondary{color:#6c757d!important}a.sq-text-secondary:focus,a.sq-text-secondary:hover{color:#545b62!important}.sq-text-success{color:#28a745!important}a.sq-text-success:focus,a.sq-text-success:hover{color:#1e7e34!important}.sq-text-info{color:#17a2b8!important}a.sq-text-info:focus,a.sq-text-info:hover{color:#117a8b!important}.sq-text-warning{color:#ffc107!important}a.sq-text-warning:focus,a.sq-text-warning:hover{color:#d39e00!important}.sq-text-danger{color:#dc3545!important}a.sq-text-danger:focus,a.sq-text-danger:hover{color:#bd2130!important}.sq-text-light{color:#f8f9fa!important}a.sq-text-light:focus,a.sq-text-light:hover{color:#dae0e5!important}.sq-text-dark{color:#343a40!important}a.sq-text-dark:focus,a.sq-text-dark:hover{color:#1d2124!important}.sq-text-body{color:#212529!important}.sq-text-muted{color:#6c757d!important}.sq-text-black-50{color:rgba(0,0,0,.5)!important}.sq-text-white-50{color:rgba(255,255,255,.5)!important}.sq-text-hide{font:0/0 a!important;color:transparent!important;text-shadow:none!important;background-color:transparent!important;border:0!important}.sq-visible{visibility:visible!important}.sq-invisible{visibility:hidden!important}.sq-pagination{display:-ms-flexbox!important;display:flex!important;padding-left:0!important;list-style:none!important;border-radius:.25em!important}.page-link{position:relative!important;display:block!important;padding:.5em .75em!important;margin-left:-1px!important;line-height:1.25!important;color:#007bff!important;background-color:#fff!important;border:1px solid #dee2e6!important}.page-link:hover{z-index:2!important;color:#0056b3!important;text-decoration:none!important;background-color:#e9ecef!important;border-color:#dee2e6!important}.page-link:focus{z-index:2!important;outline:0!important;box-shadow:0 0 0 .2em rgba(0,123,255,.25)!important}.page-link:not(:disabled):not(.disabled){cursor:pointer!important}.page-item:first-child .page-link{margin-left:0!important;border-top-left-radius:.25em!important;border-bottom-left-radius:.25em!important}.page-item:last-child .page-link{border-top-right-radius:.25em!important;border-bottom-right-radius:.25em!important}.page-item.active .page-link{z-index:1!important;color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.page-item.disabled .page-link{color:#6c757d!important;pointer-events:none!important;cursor:auto!important;background-color:#fff!important;border-color:#dee2e6!important}.sq-pagination-lg .page-link{padding:.75em 1.5em!important;font-size:1.25em!important;line-height:1.5!important}.sq-pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3em!important;border-bottom-left-radius:.3em!important}.sq-pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3em!important;border-bottom-right-radius:.3em!important}.sq-pagination-sm .page-link{padding:.25em .5em!important;font-size:.875em!important;line-height:1.5!important}.sq-pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2em!important;border-bottom-left-radius:.2em!important}.sq-pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2em!important;border-bottom-right-radius:.2em!important}.sq-alert{position:relative!important;padding:.75em 1.25em!important;margin-bottom:1em!important;border:1px solid transparent!important;border-radius:.25em!important}.sq-alert-absolute{position:absolute!important;top:0!important;left:0!important;width:100%!important;border-radius:0!important;z-index:101!important}.sq-alert-heading{color:inherit!important}.sq-alert-link{font-weight:700!important}.sq-alert-dismissible{padding-right:4em!important}.sq-alert-dismissible .close{position:absolute!important;top:0!important;right:0!important;padding:.75em 1.25em!important;color:inherit!important}.sq-alert-primary{color:#004085!important;background-color:#cce5ff!important;border-color:#b8daff!important}.sq-alert-primary hr{border-top-color:#9fcdff!important}.sq-alert-primary .sq-alert-link{color:#002752!important}.sq-alert-secondary{color:#383d41!important;background-color:#e2e3e5!important;border-color:#d6d8db!important}.sq-alert-secondary hr{border-top-color:#c8cbcf!important}.sq-alert-secondary .sq-alert-link{color:#202326!important}.sq-alert-success{color:#155724!important;background-color:#d4edda!important;border-color:#c3e6cb!important}.sq-alert-success hr{border-top-color:#b1dfbb!important}.sq-alert-success .sq-alert-link{color:#0b2e13!important}.sq-alert-info{color:#0c5460!important;background-color:#d1ecf1!important;border-color:#bee5eb!important}.sq-alert-info hr{border-top-color:#abdde5!important}.sq-alert-info .sq-alert-link{color:#062c33!important}.sq-alert-warning{color:#856404!important;background-color:#fff3cd!important;border-color:#ffeeba!important}.sq-alert-warning hr{border-top-color:#ffe8a1!important}.sq-alert-warning .sq-alert-link{color:#533f03!important}.sq-alert-danger{color:#721c24!important;background-color:#f8d7da!important;border-color:#f5c6cb!important}.sq-alert-danger hr{border-top-color:#f1b0b7!important}.sq-alert-danger .sq-alert-link{color:#491217!important}.sq-alert-light{color:#818182!important;background-color:#fefefe!important;border-color:#fdfdfe!important}.sq-alert-light hr{border-top-color:#ececf6!important}.sq-alert-light .sq-alert-link{color:#686868!important}.sq-alert-dark{color:#1b1e21!important;background-color:#d6d8d9!important;border-color:#c6c8ca!important}.sq-alert-dark hr{border-top-color:#b9bbbe!important}.sq-alert-dark .sq-alert-link{color:#040505!important}.sq-tooltip{z-index:1070!important;margin:0!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"!important;font-style:normal!important;font-weight:400!important;line-height:1.5!important;text-align:left!important;text-align:start!important;text-decoration:none!important;text-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;word-break:normal!important;word-spacing:normal!important;white-space:normal!important;line-break:auto!important;font-size:.875em!important;word-wrap:break-word!important;opacity:0!important}.sq-tooltip.show{opacity:.9!important}.sq-tooltip,.sq-tooltip .sq-tooltip-arrow{position:absolute!important;display:block!important}.sq-tooltip .sq-tooltip-arrow{width:.8em!important;height:.4em!important}.sq-tooltip .sq-tooltip-arrow::before{position:absolute!important;content:""!important;border-color:transparent!important;border-style:solid!important}.sq-bs-tooltip-auto[x-placement^=top],.sq-bs-tooltip-top{padding:.4em 0!important}.sq-bs-tooltip-auto[x-placement^=top] .sq-tooltip-arrow,.sq-bs-tooltip-top .sq-tooltip-arrow{bottom:0!important}.sq-bs-tooltip-auto[x-placement^=top] .sq-tooltip-arrow::before,.sq-bs-tooltip-top .sq-tooltip-arrow::before{top:0!important;border-width:.4em .4em 0!important;border-top-color:#000!important}.sq-bs-tooltip-auto[x-placement^=right],.sq-bs-tooltip-right{padding:0 .4em!important}.sq-bs-tooltip-auto[x-placement^=right] .sq-tooltip-arrow,.sq-bs-tooltip-right .sq-tooltip-arrow{left:0!important;width:.4em!important;height:.8em!important}.sq-bs-tooltip-auto[x-placement^=right] .sq-tooltip-arrow::before,.sq-bs-tooltip-right .sq-tooltip-arrow::before{right:0!important;border-width:.4em .4em .4em 0!important;border-right-color:#000!important}.sq-bs-tooltip-auto[x-placement^=bottom],.sq-bs-tooltip-bottom{padding:.4em 0!important}.sq-bs-tooltip-auto[x-placement^=bottom] .sq-tooltip-arrow,.sq-bs-tooltip-bottom .sq-tooltip-arrow{top:0!important}.sq-bs-tooltip-auto[x-placement^=bottom] .sq-tooltip-arrow::before,.sq-bs-tooltip-bottom .sq-tooltip-arrow::before{bottom:0!important;border-width:0 .4em .4em!important;border-bottom-color:#000!important}.sq-bs-tooltip-auto[x-placement^=left],.sq-bs-tooltip-left{padding:0 .4em!important}.sq-bs-tooltip-auto[x-placement^=left] .sq-tooltip-arrow,.sq-bs-tooltip-left .sq-tooltip-arrow{right:0!important;width:.4em!important;height:.8em!important}.sq-bs-tooltip-auto[x-placement^=left] .sq-tooltip-arrow::before,.sq-bs-tooltip-left .sq-tooltip-arrow::before{left:0!important;border-width:.4em 0 .4em .4em!important;border-left-color:#000!important}.sq-tooltip-inner{max-width:200px!important;padding:.25em .5em!important;color:#fff!important;text-align:center!important;background-color:#000!important;border-radius:.25em!important}.sq-progress,.sq-progress-bar{display:-ms-flexbox!important;display:flex!important}.sq-progress{height:1em!important;overflow:hidden!important;font-size:.75em!important;background-color:#e9ecef!important;border-radius:.25em!important}.sq-progress-bar{-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-pack:center!important;justify-content:center!important;color:#fff!important;text-align:center!important;white-space:nowrap!important;background-color:#007bff!important;transition:width .6s ease!important}.sq-progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)!important;background-size:1em 1em!important}.sq-progress-bar-animated{-webkit-animation:sq-progress-bar-stripes 1s linear infinite!important;animation:sq-progress-bar-stripes 1s linear infinite!important}.sq-list-group{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;padding-left:0!important;margin-bottom:0!important}.sq-list-group-item-action{width:100%!important;color:#495057!important;text-align:inherit!important}.sq-list-group-item-action:focus,.sq-list-group-item-action:hover{color:#495057!important;text-decoration:none!important;background-color:#f8f9fa!important}.sq-list-group-item-action:active{color:#212529!important;background-color:#e9ecef!important}.sq-list-group-item{position:relative!important;display:block!important;padding:.75em 1.25em!important;margin-bottom:-1px!important;background-color:#fff!important;border:1px solid rgba(0,0,0,.125)!important}.sq-list-group-item:first-child{border-top-left-radius:.25em!important;border-top-right-radius:.25em!important}.sq-list-group-item:last-child{margin-bottom:0!important;border-bottom-right-radius:.25em!important;border-bottom-left-radius:.25em!important}.sq-list-group-item:focus,.sq-list-group-item:hover{z-index:1!important;text-decoration:none!important}.sq-list-group-item.disabled,.sq-list-group-item:disabled{color:#6c757d!important;background-color:#fff!important}.sq-list-group-item.active{z-index:2!important;color:#fff!important;background-color:#007bff!important;border-color:#007bff!important}.sq-list-group-flush .sq-list-group-item{border-right:0!important;border-left:0!important;border-radius:0!important}.sq-list-group-flush:first-child .sq-list-group-item:first-child{border-top:0!important}.sq-list-group-flush:last-child .sq-list-group-item:last-child{border-bottom:0!important}.sq-list-group-item-primary{color:#004085!important;background-color:#b8daff!important}.sq-list-group-item-primary.sq-list-group-item-action:focus,.sq-list-group-item-primary.sq-list-group-item-action:hover{color:#004085!important;background-color:#9fcdff!important}.sq-list-group-item-primary.sq-list-group-item-action.active{color:#fff!important;background-color:#004085!important;border-color:#004085!important}.sq-list-group-item-secondary{color:#383d41!important;background-color:#d6d8db!important}.sq-list-group-item-secondary.sq-list-group-item-action:focus,.sq-list-group-item-secondary.sq-list-group-item-action:hover{color:#383d41!important;background-color:#c8cbcf!important}.sq-list-group-item-secondary.sq-list-group-item-action.active{color:#fff!important;background-color:#383d41!important;border-color:#383d41!important}.sq-list-group-item-success{color:#155724!important;background-color:#c3e6cb!important}.sq-list-group-item-success.sq-list-group-item-action:focus,.sq-list-group-item-success.sq-list-group-item-action:hover{color:#155724!important;background-color:#b1dfbb!important}.sq-list-group-item-success.sq-list-group-item-action.active{color:#fff!important;background-color:#155724!important;border-color:#155724!important}.sq-list-group-item-info{color:#0c5460!important;background-color:#bee5eb!important}.sq-list-group-item-info.sq-list-group-item-action:focus,.sq-list-group-item-info.sq-list-group-item-action:hover{color:#0c5460!important;background-color:#abdde5!important}.sq-list-group-item-info.sq-list-group-item-action.active{color:#fff!important;background-color:#0c5460!important;border-color:#0c5460!important}.sq-list-group-item-warning{color:#856404!important;background-color:#ffeeba!important}.sq-list-group-item-warning.sq-list-group-item-action:focus,.sq-list-group-item-warning.sq-list-group-item-action:hover{color:#856404!important;background-color:#ffe8a1!important}.sq-list-group-item-warning.sq-list-group-item-action.active{color:#fff!important;background-color:#856404!important;border-color:#856404!important}.sq-list-group-item-danger{color:#721c24!important;background-color:#f5c6cb!important}.sq-list-group-item-danger.sq-list-group-item-action:focus,.sq-list-group-item-danger.sq-list-group-item-action:hover{color:#721c24!important;background-color:#f1b0b7!important}.sq-list-group-item-danger.sq-list-group-item-action.active{color:#fff!important;background-color:#721c24!important;border-color:#721c24!important}.sq-list-group-item-light{color:#818182!important;background-color:#fdfdfe!important}.sq-list-group-item-light.sq-list-group-item-action:focus,.sq-list-group-item-light.sq-list-group-item-action:hover{color:#818182!important;background-color:#ececf6!important}.sq-list-group-item-light.sq-list-group-item-action.active{color:#fff!important;background-color:#818182!important;border-color:#818182!important}.sq-list-group-item-dark{color:#1b1e21!important;background-color:#c6c8ca!important}.sq-list-group-item-dark.sq-list-group-item-action:focus,.sq-list-group-item-dark.sq-list-group-item-action:hover{color:#1b1e21!important;background-color:#b9bbbe!important}.sq-list-group-item-dark.sq-list-group-item-action.active{color:#fff!important;background-color:#1b1e21!important;border-color:#1b1e21!important}.sq-close{float:right!important;font-size:1.5em!important;font-weight:700!important;line-height:1!important;color:#000!important;text-shadow:0 1px 0 #fff!important;opacity:.5!important}.sq-close-absolute{position:absolute!important;right:5px!important;top:5px!important;z-index:10000!important}.sq-close:focus,.sq-close:hover{color:#000!important;text-decoration:none!important;opacity:.75!important}.sq-close:not(:disabled):not(.disabled){cursor:pointer!important}.sq-input-group>button.sq-btn,.sq-input-group>input{max-height:47px!important}.sq-shadow-sm{box-shadow:0 .125em .25em rgba(0,0,0,.075)!important}.sq-shadow{box-shadow:0 .5em 1em rgba(0,0,0,.15)!important}.sq-shadow-lg{box-shadow:0 1em 3em rgba(0,0,0,.175)!important}.sq-shadow-none{box-shadow:none!important}.sq-modal,.sq-modal-open{overflow:hidden!important}.sq-modal{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:1050!important;display:none;outline:0!important}.sq-modal-open .sq-modal{overflow-x:hidden!important;overflow-y:auto!important}.sq-modal-dialog{position:relative!important;width:auto!important;margin:.5em!important;pointer-events:none!important}.sq-modal.fade .sq-modal-dialog{transition:transform .3s ease-out!important;transition:transform .3s ease-out,-webkit-transform .3s ease-out!important;-webkit-transform:translate(0,-25%)!important;transform:translate(0,-25%)!important}.sq-modal.show .sq-modal-dialog{-webkit-transform:translate(0,0)!important;transform:translate(0,0)!important}.sq-modal-content,.sq-modal-dialog-centered{display:-ms-flexbox!important;display:flex!important}.sq-modal-dialog-centered{-ms-flex-align:center!important;align-items:center!important;min-height:calc(100% - (.5em*2))!important}.sq-modal-content{position:relative!important;-ms-flex-direction:column!important;flex-direction:column!important;width:100%!important;pointer-events:auto!important;background-color:#fff!important;background-clip:padding-box!important;border:1px solid rgba(0,0,0,.2)!important;border-radius:.3em!important;outline:0!important}.sq-modal-backdrop{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:1040!important;background-color:#000!important}.sq-modal-backdrop.fade{opacity:0!important}.sq-modal-backdrop.show{opacity:.5!important}.sq-modal-header{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:start!important;align-items:flex-start!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding:1em!important;border-bottom:1px solid #e9ecef!important;border-top-left-radius:.3em!important;border-top-right-radius:.3em!important}.sq-modal-header .close{padding:1em!important;margin:-1em -1em -1em auto!important}.sq-modal-title{margin-bottom:0!important;line-height:1.5!important}.sq-modal-body{position:relative!important;-ms-flex:1 1 auto!important;flex:1 1 auto!important;padding:1em!important}.sq-modal-footer{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:end!important;justify-content:flex-end!important;padding:1em!important;border-top:1px solid #e9ecef!important}.sq-modal-footer>:not(:first-child){margin-left:.25em!important}.sq-modal-footer>:not(:last-child){margin-right:.25em!important}.sq-modal-scrollbar-measure{position:absolute!important;top:-9999px!important;width:50px!important;height:50px!important;overflow:scroll!important}@media (min-width:576px){.sq-modal-dialog{max-width:500px!important;margin:1.75em auto!important}.sq-modal-dialog-centered{min-height:calc(100% - (1.75em*2))!important}.sq-modal-sm{max-width:300px!important}}@media (min-width:992px){.sq-modal-lg{max-width:800px!important}}.sq-col-1,.sq-col-10,.sq-col-11,.sq-col-12,.sq-col-2,.sq-col-3,.sq-col-4,.sq-col-5,.sq-col-6,.sq-col-7,.sq-col-8,.sq-col-9{position:relative!important;width:100%!important;min-height:1px!important;padding-right:15px!important;padding-left:15px}.sq-col-auto{position:relative!important;min-height:1px!important;padding-right:15px!important;padding-left:15px}.sq-col,.sq-col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.sq-col-sm{-ms-flex-preferred-size:0!important;flex-basis:0!important;-ms-flex-positive:1!important;flex-grow:1!important}.sq-col-auto{-ms-flex:0 0 auto!important;flex:0 0 auto!important;width:auto!important;max-width:none}.sq-col-1{-ms-flex:0 0 8.333333%!important;flex:0 0 8.333333%!important;max-width:8.333333%}.sq-col-2{-ms-flex:0 0 16.666667%!important;flex:0 0 16.666667%!important;max-width:16.666667%}.sq-col-3{-ms-flex:0 0 25%!important;flex:0 0 25%!important;max-width:25%}.sq-col-4{-ms-flex:0 0 33.333333%!important;flex:0 0 33.333333%!important;max-width:33.333333%}.sq-col-5{-ms-flex:0 0 41.666667%!important;flex:0 0 41.666667%!important;max-width:41.666667%}.sq-col-6{-ms-flex:0 0 50%!important;flex:0 0 50%!important;max-width:50%}.sq-col-7{-ms-flex:0 0 58.333333%!important;flex:0 0 58.333333%!important;max-width:58.333333%}.sq-col-8{-ms-flex:0 0 66.666667%!important;flex:0 0 66.666667%!important;max-width:66.666667%}.sq-col-9{-ms-flex:0 0 75%!important;flex:0 0 75%!important;max-width:75%}.sq-col-10{-ms-flex:0 0 83.333333%!important;flex:0 0 83.333333%!important;max-width:83.333333%}.sq-col-11{-ms-flex:0 0 91.666667%!important;flex:0 0 91.666667%!important;max-width:91.666667%}.sq-col-12{-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%}.sq-m-0{margin:0!important}.sq-ml-0,.sq-mx-0{margin-left:0!important}.sq-mr-0,.sq-mx-0{margin-right:0!important}.sq-mt-0,.sq-my-0{margin-top:0!important}.sq-mb-0,.sq-my-0{margin-bottom:0!important}.sq-m-1{margin:.25em!important}.sq-ml-1,.sq-mx-1{margin-left:.25em!important}.sq-mr-1,.sq-mx-1{margin-right:.25em!important}.sq-mt-1,.sq-my-1{margin-top:.25em!important}.sq-mb-1,.sq-my-1{margin-bottom:.25em!important}.sq-m-2{margin:.5em!important}.sq-ml-2,.sq-mx-2{margin-left:.5em!important}.sq-mr-2,.sq-mx-2{margin-right:.5em!important}.sq-mt-2,.sq-my-2{margin-top:.5em!important}.sq-mb-2,.sq-my-2{margin-bottom:.5em!important}.sq-m-3{margin:1em!important}.sq-ml-3,.sq-mx-3{margin-left:1em!important}.sq-mr-3,.sq-mx-3{margin-right:1em!important}.sq-mt-3,.sq-my-3{margin-top:1em!important}.sq-mb-3,.sq-my-3{margin-bottom:1em!important}.sq-m-4{margin:1.5em!important}.sq-ml-4,.sq-mx-4{margin-left:1.5em!important}.sq-mr-4,.sq-mx-4{margin-right:1.5em!important}.sq-mt-4,.sq-my-4{margin-top:1.5em!important}.sq-mb-4,.sq-my-4{margin-bottom:1.5em!important}.sq-m-5{margin:3em!important}.sq-ml-5,.sq-mx-5{margin-left:3em!important}.sq-mr-5,.sq-mx-5{margin-right:3em!important}.sq-mt-5,.sq-my-5{margin-top:3em!important}.sq-mb-5,.sq-my-5{margin-bottom:3em!important}.sq-m-auto{margin:auto!important}.sq-mt-auto,.sq-my-auto{margin-top:auto!important}.sq-mr-auto,.sq-mx-auto{margin-right:auto!important}.sq-mb-auto,.sq-my-auto{margin-bottom:auto!important}.sq-ml-auto,.sq-mx-auto{margin-left:auto!important}.sq-p-0,.sq-switch input{padding:0!important}.sq-pl-0,.sq-px-0{padding-left:0!important}.sq-pr-0,.sq-px-0{padding-right:0!important}.sq-pt-0,.sq-py-0{padding-top:0!important}.sq-pb-0,.sq-py-0{padding-bottom:0!important}.sq-p-1{padding:.25em!important}.sq-pl-1,.sq-px-1{padding-left:.25em!important}.sq-pr-1,.sq-px-1{padding-right:.25em!important}.sq-pt-1,.sq-py-1{padding-top:.25em!important}.sq-pb-1,.sq-py-1{padding-bottom:.25em!important}.sq-p-2{padding:.5em!important}.sq-pl-2,.sq-px-2{padding-left:.5em!important}.sq-pr-2,.sq-px-2{padding-right:.5em!important}.sq-pt-2,.sq-py-2{padding-top:.5em!important}.sq-pb-2,.sq-py-2{padding-bottom:.5em!important}.sq-p-3{padding:1em!important}.sq-pl-3,.sq-px-3{padding-left:1em!important}.sq-pr-3,.sq-px-3{padding-right:1em!important}.sq-pt-3,.sq-py-3{padding-top:1em!important}.sq-pb-3,.sq-py-3{padding-bottom:1em!important}.sq-p-4{padding:1.5em!important}.sq-pl-4,.sq-px-4{padding-left:1.5em!important}.sq-pr-4,.sq-px-4{padding-right:1.5em!important}.sq-pt-4,.sq-py-4{padding-top:1.5em!important}.sq-pb-4,.sq-py-4{padding-bottom:1.5em!important}.sq-p-5{padding:3em!important}.sq-pl-5,.sq-px-5{padding-left:3em!important}.sq-pr-5,.sq-px-5{padding-right:3em!important}.sq-pt-5,.sq-py-5{padding-top:3em!important}.sq-pb-5,.sq-py-5{margin-bottom:3em!important}.sq-switch{font-size:1em!important;position:relative!important;box-shadow:none!important;height:auto!important;background:inherit!important}.sq-switch input{position:absolute!important;height:1px!important;width:1px!important;background:0 0!important;border:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important}.sq-switch input+label{position:relative!important;min-width:calc(calc(2.375em*.8)*2)!important;border-radius:calc(2.375em*.8)!important;height:calc(2.375em*.8)!important;line-height:calc(2.375em*.8)!important;font-size:16px!important;font-weight:700!important;display:inline-block!important;cursor:pointer!important;outline:0!important;user-select:none!important;vertical-align:middle!important;text-indent:calc(calc(calc(2.375em*.8)*2) + .5em)!important}.sq-switch input+label::after,.sq-switch input+label::before{content:''!important;position:absolute!important;bottom:0!important;display:block}.sq-switch input+label::before{top:0!important;left:0!important;width:calc(calc(2.375em*.8)*2)!important;right:0!important;background-color:#dee2e6!important;border-radius:calc(2.375em*.8)!important;transition:.2s all!important}.sq-switch.redblue input+label::before,.sq-switch.redgreen input+label::before{background-color:#9c2032!important}.sq-switch input+label::after{top:2px!important;left:2px!important;width:calc(calc(2.375em*.8) - calc(2px*2))!important;height:calc(calc(2.375em*.8) - calc(2px*2))!important;border-radius:50%!important;background-color:#fff!important;transition:.2s all!important}.sq-switch input:checked+label::before,.sq-switch.redblue input:checked+label::before{background-color:#6200ee!important}.sq-switch.redgreen input:checked+label::before{background-color:#4caf50!important}.sq-switch input:checked+label::after{margin-left:calc(2.375em*.8)!important}.sq-switch input:focus+label::before{outline:0!important;box-shadow:0 0 0 .2em rgba(0,136,221,.25)!important}.sq-switch input:disabled+label{color:#868e96!important;cursor:not-allowed!important}.sq-switch input:disabled+label::before{background-color:#e9ecef!important}.sq-switch.sq-switch-sm{font-size:.875em!important}.sq-switch.sq-switch-sm input+label{min-width:calc(calc(1.9375em*.6)*2)!important;height:calc(1.9375em*.6)!important;line-height:calc(1.9375em*.6)!important;text-indent:calc(calc(calc(2.1375em*.6)*2) + .5em)!important}.sq-switch.sq-switch-sm input+label::before{width:calc(calc(1.9375em*.6)*2)!important}.sq-switch.sq-switch-sm input+label::after{width:calc(calc(1.9375em*.6) - calc(2px*2))!important;height:calc(calc(1.9375em*.6) - calc(2px*2))!important}.sq-switch.sq-switch-sm input:checked+label::after{margin-left:calc(1.9375em*.6)!important}.sq-switch.sq-switch-xxs{font-size:.7em!important}.sq-switch.sq-switch-xxs input+label{min-width:calc(calc(.9375em*.8)*2)!important;height:calc(.9375em*.8)!important;line-height:calc(.9375em*.8)!important;text-indent:calc(calc(calc(1.1375em*.8)*2) + .5em)!important}.sq-switch.sq-switch-xxs input+label::before{width:calc(calc(.9375em*.8)*2)!important}.sq-switch.sq-switch-xxs input+label::after{width:calc(calc(.9375em*.8) - calc(2px*2))!important;height:calc(calc(.9375em*.8) - calc(2px*2))!important}.sq-switch.sq-switch-xxs input:checked+label::after{margin-left:calc(.9375em*.8)!important}.sq-switch.sq-switch-lg{font-size:1.25em!important}.sq-switch.sq-switch-lg input+label{min-width:calc(calc(3em*.8)*2)!important;height:calc(3em*.8)!important;line-height:calc(3em*.8)!important;text-indent:calc(calc(calc(3em*.8)*2) + .5em)!important}.sq-switch.sq-switch-lg input+label::before{width:calc(calc(3em*.8)*2)!important}.sq-switch.sq-switch-lg input+label::after{width:calc(calc(3em*.8) - calc(2px*2))!important;height:calc(calc(3em*.8) - calc(2px*2))!important}.sq-switch.sq-switch-lg input:checked+label::after{margin-left:calc(3em*.8)!important}.sq-switch+.sq-switch{margin-left:1em!important}.dropdown-menu{margin-top:.75em!important}
view/assets/js/assistant/sq_blockseo.min.js CHANGED
@@ -1 +1 @@
1
- (function($){"use strict";if($.isFunction($.fn.sq_blockseo)){return}$.fn.sq_blockseo=function(options){var $this=this;var settings=$.extend({check:[],single_tag:[],double_tag:[],custom_tag:[],custom_tag_id:[],clicked:[]},options);$.sq_fields=$.extend({sq_wp_title_info:$('<span id="sq_wp_title_info" style="display: block; float: right;" />')},$.sq_fields);var seo={title:"",content:""};$this.setContent=function(content){seo.content=content};$this.load=function(){$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").removeClass("checked");if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.callback()},100)};$this.callback=function(){$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;if($.sq_config.editor_type==="tinymce"){if($.sq_isGutenberg()){ed=$.sq_editor.getBlockEditor("select");if(ed)seo.content=ed.getEditedPostContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.html=="function"){seo.content=$.sq_config.active_editor.html()}else{ed=$.sq_editor.getIframeEditor();seo.content=ed.html()}}else{if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed)seo.content=ed.getEditedPostContent()}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed)seo.content=ed.getPageContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.val=="function"){seo.content=$.sq_fields.wp_content.val()}else if($.sq_fields.wp_content.length){seo.content=$.sq_fields.wp_content.val()}}if(!$.sq_fields.wp_input_title.length){if($(".editor-post-title").find("textarea").length>0){$.sq_fields.wp_input_title=$(".editor-post-title").find("textarea")}else if($("h1.wp-block-post-title").length>0){$.sq_fields.wp_input_title=$('<textarea id="title" style="display: none">'+$("h1.wp-block-post-title").html()+"</textarea>");$("h1.wp-block-post-title").after($.sq_fields.wp_input_title);$("h1.wp-block-post-title").on("DOMSubtreeModified",function(){$.sq_fields.wp_input_title.val($("h1.wp-block-post-title").html())})}}$this.trigger("seo.content");$this.checkSEO();$this.trigger("seo.callback")};$this.checkSEO=function(){if(typeof seo.content!=="undefined"&&$.sq_clearText(seo.content)!==""){SQ_DEBUG&&console.log("check keywords in body and tags");$this.checkTitle();$this.checkBody();$this.checkSingleTags();$this.checkCustomTags();$this.checkKPinguinUrl();$this.checkKeyword();if($.sq_fields.wp_thumbnail.length>0){$this.sq_eventsseo.listenMediaLibrary()}else if($("#postimagediv").length>0){$this.checkImage($("#postimagediv"))}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed)$.sq_blockseo.checkImage($("<div>"+ed.getPageImages()+"</div>"))}if($(".editor-post-featured-image").length>0){$this.checkImage($(".editor-post-featured-image"))}if($("#visual_composer_content").length>0){$this.sq_eventsseo.listenVComposer()}if($("#fusion_builder_container").length>0){$this.sq_eventsseo.listenFusion()}}};$this.close=function(){$.sq_fields.div_blockseo.hide()};$this.checkKPinguinUrl=function(){if($.sq_config.keyword!==""){if($("#custom_permalinks_home_url").length>0&&$("#custom_permalink").length>0){var slug=$("#custom_permalinks_home_url").val()+" "+$("#custom_permalink").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($("#editable-post-name-full").length>0){var root="";if($("#sample-permalink").length>0){var sample_permalink=$("#sample-permalink").find("a").clone();sample_permalink.find("span").remove();root=sample_permalink.text()}var slug=root+" "+$("#editable-post-name-full").html();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($("#new-post-slug").length>0){var slug=$("#new-post-slug").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($("#sample-permalink").length>0){var slug=$("#sample-permalink").html().replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed){var slug=decodeURIComponent(ed.getPermalink()).replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}}};$this.checkKeyword=function(){$this.setChecked($this.checkWordsLength($.sq_config.keyword,2,0),"longtail_keyword")};$this.checkPinguin=function(){var domain=$.sq_getDomain(document.domain,[8])!==""?$.sq_getDomain(document.domain,[8]):document.domain;$this.setChecked(!$this.keywordMatch($.sq_fields.wp_input_title.val(),domain,true),"pinguin_title")};$this.checkTitle=function(){SQ_DEBUG&&console.log("check keywords in title: "+$.sq_fields.wp_input_title.val());if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;if($.sq_fields.wp_input_title.length&&$.sq_clearText($.sq_fields.wp_input_title.val()).length>1){$this.setChecked($this.checkLength($.sq_fields.wp_input_title.val(),$.sq_params.min_length_title,$.sq_params.max_length_title),"title_length");$this.setChecked($this.keywordMatch($.sq_fields.wp_input_title.val(),$.sq_config.keyword),"title");$this.checkPinguin();var id="density_title";if($this.checkWordsLength($.sq_config.keyword,1,100)){if($.sq_strEqual($.sq_fields.wp_input_title.val(),$.sq_config.keyword)){$this.setChecked(true,id)}else{$this.keywordDensity($.sq_fields.wp_input_title.val(),$.sq_params.low_density_title,$.sq_params.high_density_title,"density_title")}}else{$("#sq_"+id+"_val").html($("#sq_"+id+"_longtail").html());$this.setChecked(false,id)}}};$this.checkImage=function(_this){$.sq_config.silent=true;var pattern=null;pattern=new RegExp("<img([^>]*)>","gi");if(_this.html()!==""&&$this.checkPattern(pattern)){$this.setChecked(true,"img",true)}else if(_this.html()!==""){SQ_DEBUG&&console.log("Check image in object");if($this.checkPattern(pattern,_this.html())){$this.setChecked($this.checkPattern(pattern,_this.html()).length>0,"img",true)}else{pattern=new RegExp("\\[gallery[^\\]]*ids=[^\\]]*\\]","gi");if($this.checkPattern(pattern)){$this.setChecked($this.checkPattern(pattern).length>0,"img")}else{$this.setChecked(0,"img")}}}pattern=new RegExp('alt="([^"]+)"',"gi");if(!$this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword)){SQ_DEBUG&&console.log("There is no alt image in content");$this.setChecked($this.keywordMatch($this.checkPattern(pattern,_this.html()),$.sq_config.keyword),"alt")}};$this.hideOptions=function(){$("#sq_wp_title_suggestion").remove();$this.checkTitle()};$this.checkBody=function(){var $str=$("<div></div>").html(seo.content);$str.find("form").remove();$.sq_highlight($str,$.sq_config.keyword,{counter:0,done:function(count,positions){SQ_DEBUG&&console.log($str.text(),$.sq_config.keyword,count,positions);$this.processBody($str.text(),count,positions)}})};$this.processBody=function(cleanContent,count,positions){var checked=false,id=false,words=[],density,i=0;if($.sq_config.editor_type==="tinymce"){var iframe_tinymce=$.sq_editor.getIframeEditor()}$this.setChecked(count>0,"body");if($.sq_fields.wp_input_title.length&&$.sq_fields.wp_input_title.val()!==""){$this.keywordDensity($.sq_fields.wp_input_title.val()+" "+cleanContent,$.sq_params.low_density,$.sq_params.high_density,"density")}else{$this.keywordDensity(cleanContent,$.sq_params.low_density,$.sq_params.high_density,"density")}checked=true;id="over_density";if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__addminimumwords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").removeClass("sq_"+id+"_high")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());words=$.sq_clearText($.sq_config.keyword).split(" ");density=$this.getDensity(cleanContent,$.sq_config.keyword);if(density.val>0){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var wordslen=words.length;for(i=0;i<wordslen;i++){if(words[i].length>2&&ignore.indexOf(words[i])===-1){var word=words[i];density=$this.getDensity(cleanContent,word);if(density.val>=$.sq_params.max_word_density){var need=density.keywords-$.sq_params.max_word_density*density.words/100+1;need=Math.round(need)<=0?1:need.toFixed();$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+'<span id="sq_request_'+id+'_highlight" style="color:yellow; text-decoration:underline; cursor: pointer;">'+word+"</span> "+$.sq_config.__toomanytimes.replace(/%s/g,need)+' <span id="sq_request_synonyms_oo"></span></span>');$this.getSynonyms(word,"sq_request_synonyms_oo");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight").parents("li#sq_"+id+":last").on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),word)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())});$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");checked=false;break}}}}else{checked=false}$this.setChecked(checked,id)}checked=true;id="human_friendly";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__writemorewords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();if(count>=2){for(i=2;i<=count;i++){SQ_DEBUG&&console.log(positions[i]-positions[i-1],$.sq_params.begin_last_max_chars);if(positions[i]-positions[i-1]<$.sq_params.begin_last_max_chars){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();var ndt=i===2?"st":i===3?"nd":i===4?"rd":"th";$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__morewordsafter.replace(/%s/g,'<span id="sq_request_'+id+'_highlight_key" style="color:lightcoral; text-decoration:underline; cursor: pointer;">'+(i-1)+ndt+"</span>")+' <span id="sq_request_synonyms"></span>)</span>');$this.getSynonyms($.sq_config.keyword,"sq_request_synonyms");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight_key").parents("li#sq_"+id+":last").off().on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),$.sq_config.keyword)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())});checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");break}}}}$this.setChecked(checked,id)};$this.getSynonyms=function(word,span){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var words=$.sq_stripChars(word).split(" ");$this.find("#"+span).html(" "+$.sq_config.__orusesynonyms);var wordslen=words.length;for(var w=0;w<wordslen;w++)if(words[w].length>2&&ignore.indexOf(words[w])===-1){$this.find("#"+span).append(" "+(w===0?"for":"or for")+' <span class="'+span+"_"+words[w]+" "+span+'" style="text-decoration:underline; cursor: pointer;" title="">'+words[w]+"</span>");var synonyms_all=$.sq_getCache("synonyms_"+words[w]);if(synonyms_all!==""){if(synonyms_all.length>0)$this.find("."+span+"_"+words[w]).attr("title",synonyms_all.join("\n"))}else{$.post($.sq_config.ajaxurl,{action:"sla_customcall",sq_nonce:$.sq_config.sq_nonce,url:"https://thesaurus.altervista.org/thesaurus/v1",word:words[w],language:$.sq_config.language.replace("-","_"),key:"TDm3SO7N3XEfRWuXYFb9",output:"json"}).done(function(word){return function(data){var response=data.response;var synonyms=[];var synonyms_all=[];if(typeof response!=="undefined"&&response.length>0){var responselen=response.length;for(var j=0;j<responselen;j++){if(typeof response[j].list.synonyms!=="undefined"){synonyms=response[j].list.synonyms.split("|");var synonymslen=synonyms.length;for(var k=0;k<synonymslen;k++){if(typeof synonyms[k]!=="undefined"&&synonyms[k]!==""&&synonyms[k].indexOf("antonym")===-1){synonyms_all.push(synonyms[k]);if(synonyms_all.length>10)break}}}}if(synonyms_all.length>0){$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"))}}$.sq_setCache("synonyms_"+word,synonyms_all)}}(words[w])).error(function(word){var synonyms_all=[];synonyms_all.push("no synonyms found");$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"));$.sq_setCache("synonyms_"+word,synonyms_all)}(words[w]))}}};$this.checkTags=function(){var id;var striptag="[\\],\\[]";striptag=new RegExp(striptag,"g");for(var i in settings.double_tag){id="";try{if(typeof settings.double_tag[i]==="string"||settings.double_tag[i]instanceof String){id=settings.double_tag[i];id=id.replace(striptag,"");if(id!=="")$this.setChecked($this.keywordMatch($this.checkTag(["<"+settings.double_tag[i]+">","</"+settings.double_tag[i]+">"])),id)}}catch(e){}}};$this.checkCustomTags=function(){var pattern;for(var i in settings.custom_tag){pattern="";try{if(typeof settings.custom_tag[i]==="string"||settings.custom_tag[i]instanceof String){pattern=new RegExp(settings.custom_tag[i],"gi");if(pattern!==""){$this.setChecked($this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword),settings.custom_tag_id[i])}}}catch(e){}}return false};$this.checkSingleTags=function(){var id;var striptag="[\\],\\[]";striptag=$.sq_regex(striptag);for(var i in settings.single_tag){id="";try{if(typeof settings.single_tag[i]==="string"||settings.single_tag[i]instanceof String){id=settings.single_tag[i].replace(striptag,"");if(id!==""){$this.setChecked($this.checkTag(["<"+settings.single_tag[i],">"]).length>0,id)}}}catch(e){}}};$this.checkTag=function(tag,content){var pattern="";if($.sq_isArray(tag)){if(tag[0]!==""&&tag[1]!==""){pattern=tag[0].replace("/","\\/")+"([^>]*)"+tag[1].replace("/","\\/");pattern=$.sq_regex(pattern)}}else{return false}SQ_DEBUG&&console.log("checkTag pattern: "+pattern);return $this.checkPattern(pattern,content)};$this.checkPattern=function(pattern,content){if(typeof content==="undefined")var content=seo.content;content=content.replace(/<img([^>]*)(mceItemMedia|mce-object)([^>]*)>/gi," ");var matches="";if(pattern!==""){matches=content.toLowerCase().match(pattern);SQ_DEBUG&&console.log((matches!==null)+" for "+pattern+" in content");if(matches!==null&&$.sq_isArray(matches)){return matches.join(", ")}}return false};$this.getPercentCompleted=function(){var all=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").length;var checked=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li.checked").not(".sq_tasks_category").length;return checked*100/all};$this.checkCompleted=function(){if($.sq_config.silent){return}var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");var timeout=3e3;if(!$.sq_config.manual){timeout=1e3}cached=$.sq_getCache("complete_"+ky);if(cached!=="1"){if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").length>10){if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").not(".checked").length==0){$("body").prepend($("<ul/>").html("<li>"+$.sq_config.__fulloptimized+"</li>").addClass("sq_complete"));if($("#wpadminbar").css("display")=="none"){$(".sq_complete").css("top","0")}else{$(".sq_complete").css("top","28px")}setTimeout(function(){$("ul.sq_complete").remove()},timeout);$.sq_setCache("complete_"+ky,"1")}}}$(".sq_blockseo_progress").val(parseInt($this.getPercentCompleted()));$.sq_fields.sq_keyword_score.html(parseInt($this.getPercentCompleted())+"%")};$this.setChecked=function(cond,id,hidden){var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if($.sq_getCookie("sq_sla")==="off"){hidden=true}if(cond){$.sq_fields.div_blockseo.find("#sq_"+id).attr("class","checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").hide();$this.sq_eventsseo.listenHighlight(false)}cached=$.sq_getCache("task_"+ky+id);if(cached!=="1"){if($.sq_config.manual){if(typeof hidden==="undefined"){$this.addTopNotification(id)}}}SQ_DEBUG&&console.log("sq_setCache true: ",id);$.sq_setCache("task_"+ky+id,"1");$.sq_fields.div_blockseo.find("#sq_input_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id).append('<input id="sq_input_'+id+'" type="hidden" name="sq_seo[]" value="'+id+'" />')}else{$.sq_setCache("task_"+ky+id,"0");if(id!=="img"&&id!=="alt"){SQ_DEBUG&&console.log("sq_setCache false: ",id);$.sq_setCache("complete_"+ky,"0")}$.sq_fields.div_blockseo.find("#sq_"+id).removeClass("checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").show();$this.sq_eventsseo.listenHighlight(true)}$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}$this.checkCompleted();if(!$.sq_config.briefcase){$this.trigger("seo.after_checked",[id])}return Boolean(cond)};$this.addTopNotification=function(id){if($.sq_config.silent){return}var task=$.sq_fields.div_blockseo.find("#sq_"+id).clone();task=task.find(".sq_help").remove();task=task.end().html();$("ul.sq_notification").remove();$("body").append($("<ul/>").attr("id","sqt_"+id).html("<li>"+task+"</li>").addClass("sq_notification").css("zIndex","100000001"));if($("#wpadminbar").css("display")=="none"){$(".sq_notification").css("top","0")}else{$(".sq_notification").css("top","28px")}if($("#sq_"+id).find(".sq_seo_priority_essential").length>0){$("#sqt_"+id).addClass("sq_notification_front")}if($this.timeout)clearTimeout($this.timeout);$this.timeout=setTimeout(function(){$("ul.sq_notification").fadeOut("slow");$("ul.sq_notification").remove()},3e3)};$this.checkLength=function(str,min,max){str=$.sq_clearText(str);if(min>0&&str.length>=min&&(max===0||str.length<=max)){return true}return false};$this.checkWordsLength=function(str,min,max){if(min>0&&$this.wordCount(str)>=min&&(max===0||$this.wordCount(str)<=max)){return true}return false};$this.getWords2Min=function(str,min){if(min>0&&$this.wordCount(str)<min){return(min-$this.wordCount(str)+1).toFixed()}return 0};$this.urlMatch=function(str,keyword){if(str===false)return;if(typeof keyword==="undefined")return;var original=keyword;str=$.sq_clearText(str);str=$.sq_stripChars(str);keyword=$.sq_umlautsText(keyword);keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);SQ_DEBUG&&console.log("keywordMatch: "+keyword+"=>"+str);if(str!==""&&keyword!==""){var matches=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}});if(!matches){keyword=keyword.replace(/\s/g,"");$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}if(!matches&&original.indexOf("ü")){keyword=original.replace("ü","ue");keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}SQ_DEBUG&&console.log("matches="+matches);return matches>0}};$this.keywordMatch=function(str,keyword,exact_match){var matches=0;if(str===false)return matches;if(typeof keyword==="undefined")return matches;if(typeof exact_match==="undefined")exact_match=false;str=$.sq_clearText(str);keyword=$.sq_clearText(keyword);keyword=keyword.replace(/[\"]/g,"");keyword=keyword.trim();if(typeof str!=="undefined"&&str!==""&&keyword!==""){matches=$.sq_strEqual(str,keyword);if(!exact_match){if(!matches){$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:0,done:function(count){matches=count}});SQ_DEBUG&&console.log("matches="+matches)}}}return matches};$this.keywordDensity=function(str,low,high,id){var density=$this.getDensity(str,$.sq_config.keyword);var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if(density.words<$this.checkWordsLength($.sq_config.keyword)){SQ_DEBUG&&console.log("keywordDensity: TOO FEW WORDS ",density.words);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");$this.setChecked(false,id);return}if(density.val<=low&&density.keywords<$.sq_params.max_keywords){SQ_DEBUG&&console.log("keywordDensity: TOO LOW ",density.val,low,density.keywords,$.sq_params.max_keywords);var need=density.words-100*density.keywords/low;need=Math.round(need)<=0?1:Math.round(need);var kr_need=Math.min(low*density.words/100-density.keywords+.5,$.sq_params.max_keywords-density.keywords);kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_low");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_low")}}$.sq_setCache("task_"+ky+id,"2");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html()+" ("+$.sq_config.__addmorekeywords.replace(/%s/g,kr_need)+(need<density.words?" "+$.sq_config.__removewords.replace(/%s/g,Math.min(need,density.words)):"")+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{if(density.val>=high){SQ_DEBUG&&console.log("keywordDensity: TOO HIGH ",density.val);var need=100*density.keywords/high-density.words+.5;need=Math.round(need)<=0?1:Math.round(need);var kr_need=density.keywords-high*density.words/100+.5;kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_high")}}$.sq_setCache("task_"+ky+id,"3");if($this.checkWordsLength(str,$.sq_params.min_length_body,$.sq_params.max_length_body)!==false)kr_need="remove "+kr_need+" keyword(s) or ";else kr_need="";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html()+" ("+kr_need+$.sq_config.__addmorewords.replace(/%s/g,need)+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{SQ_DEBUG&&console.log("keywordDensity: "+((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high),density.val,low,density.keywords,$.sq_params.max_keywords);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());$this.setChecked((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high,id)}}};$this.getDensity=function(str,keyword){var density={};keyword=$.sq_clearText(keyword);str=$.sq_clearText(str);density.keywords=$this.phraseCount(str,keyword);density.words=$this.wordCount(str);density.words=density.words-density.keywords*($this.keywordWords(keyword)-1);if(density.words>0){density.val=density.keywords*100/density.words}else if(density.keywords>=1){density.val=100}else{density.val=0}return density};$this.keywordWords=function(keyword){var pattern=new RegExp("[㐀-龿 -〿぀-ゟ゠-ヿ＀-゚一-龯㐀-䶿]|\\S+","gi");var words=keyword.match(pattern);if(words&&words.length>0)return words.length+1;else return 1};$this.phraseCount=function(str,keyword){var words=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){words=count}});return words};$this.wordCount=function(str){str=$.sq_clearText(str);var matches=str.match(/[\u3400-\u9FBF\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]|\S+/g);if(matches)return matches.length;return 0};$this.sq_eventsseo={listen:function(){$.post($.sq_config.ajaxurl,{action:"sla_tasks",sq_nonce:$.sq_config.sq_nonce,output:"json"}).done(function(response){$this.sq_doneloading("sq_minloading").removeClass("sq_error");if(typeof response.data!=="undefined"&&typeof response.data.tasks!=="undefined"&&$this.find(".sq_tasks").length>0){settings.custom_tag.push("<(strong|b)[^>]*>(.*?)</(strong|b)>");settings.custom_tag_id.push("strong");settings.custom_tag.push("<h[1-6][^>]*>(.*?)</h[1-6]>");settings.custom_tag_id.push("h2_6");settings.single_tag.push("img");settings.custom_tag.push('alt=["]([^"]+)["]');settings.custom_tag_id.push("alt");$this.find(".sq_tasks").append(response.data.tasks);$this.find(".sq_tasks").find("li").show();$this.sq_eventsseo.listenHighlight(true);$this.on("seo.refresh",function(){$.sq_config.div.find(".sq_seo_refresh").addClass("sq_minloading");setTimeout(function(){$.sq_config.div.find(".sq_seo_refresh").removeClass("sq_minloading");$this.load()},1e3)});$.sq_config.div.find(".sq_seo_refresh").on("lateclick",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_lateclick")});$.sq_config.div.find(".sq_seo_refresh").on("click",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_click")});$this.trigger("seo.refresh");$this.trigger("seo.task_loaded")}else{$this.sq_doneloading("sq_minloading").removeClass("sq_error");$this.find(".sq_tasks").html('<div class="sq_message" style="width: 100% !important;">'+$.sq_config.__ajaxerror+"</div>")}});$this.sq_eventsseo.listenTitle();$this.sq_eventsseo.listenSlug();$.sq_fields.content_tmce.on("click",function(){$.sq_config.editor_type="tinymce"});$.sq_fields.content_html.on("click",function(){$.sq_config.editor_type="html"});$("#save-post,#publish,#post-preview").click(function(){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.sq_removeHighlight($.sq_getBuilderEditorContainer());if($.sq_config.keyword!==""){$.sq_blocksearch.addTag();$.sq_fields.wp_publish.focus()}});$.sq_fields.wp_input_title.off("click").on("click",function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}});if(typeof ET_PageBuilder!=="undefined"&&typeof ET_PageBuilder.Events!=="undefined"){ET_PageBuilder.Events.on("et-pb-loading:ended",function(){$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})});ET_PageBuilder.Events.on("et-modal-settings:save",function(){ET_PageBuilder.Events.on("et-modal-view-removed",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick");$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})})})}if($("#visual_composer_content").length>0){if($("div#vc_ui-panel-edit-element").length>0){$("div#vc_ui-panel-edit-element").find("span[data-vc-ui-element=button-save]").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Save");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick");if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})}})}if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})}}},listenTinymce:function(){SQ_DEBUG&&console.log("listenTinymce");$.sq_config.editor_type="tinymce";if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}$.sq_config.interval_seo=setInterval(function(){var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false){$.sq_editor.insertHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeInserted ",e);$.sq_editor.listen(e);$this.callback()}};$(iframe_tinymce).off("DOMNodeInserted",$.sq_editor.insertHandler).on("DOMNodeInserted",$.sq_editor.insertHandler);$.sq_editor.removeHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeRemoved "+e.target.nodeName);$.sq_editor.lastimage="";$this.callback()}};$(iframe_tinymce).off("DOMNodeRemoved",$.sq_editor.removeHandler).on("DOMNodeRemoved",$.sq_editor.removeHandler);$.sq_editor.changeHandler=function(e){$.sq_config.active_editor=$(this);SQ_DEBUG&&console.log(" keyup mouseup ",e.type);if(e.type==="mouseup"){$.sq_removeHighlight($.sq_getBuilderEditorContainer())}if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}$this.callback()},$.sq_config.delay_seo)};$(iframe_tinymce).off("keyup mouseup",$.sq_editor.changeHandler).on("keyup mouseup",$.sq_editor.changeHandler);$this.callback();clearInterval($.sq_config.interval_seo);$.sq_removeHighlight($.sq_getBuilderEditorContainer())}if(typeof $.sq_config.frontend_css!=="undefined"){if($.sq_editor.getIframeEditor("head link[href='"+$.sq_config.frontend_css+"']")===false){var iframe_head=$.sq_editor.getIframeEditor("head");if(iframe_head!==false){iframe_head.append($("<link/>",{rel:"stylesheet",href:$.sq_config.frontend_css,type:"text/css"}))}}}$this.sq_eventsseo.listenFeatureImage()},3e4)},stopListenTinymce:function(){SQ_DEBUG&&console.log("stop listen Tinymce");if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false)$(iframe_tinymce).off("keyup mouseup")},listenHtml:function(){$.sq_config.editor_type="html";$.sq_fields.wp_content.on("click keyup",function(){$.sq_config.active_editor=$(this);if($.sq_config.editor_type==="html"){if($this.timeout_html){clearTimeout($this.timeout_html)}$this.timeout_html=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}});$.sq_fields.wp_content.on("dragover",false).on("dragenter",false).on("drop",function(e){if($.sq_config.editor_type==="html"){e.preventDefault();$.sq_editor.listenHtml(e)}});$this.sq_eventsseo.listenFeatureImage();$this.sq_eventsseo.listenMediaLibrary()},listenFeatureImage:function(){$("#postimagediv").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))});$(".editor-post-featured-image").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))})},listenMediaLibrary:function(){if($.sq_fields.wp_thumbnail_alt.length>0){$.sq_fields.wp_thumbnail_alt.on("keyup",function(){$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")});$this.checkImage($.sq_fields.wp_thumbnail);$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")}},listenVComposer:function(){if($("#visual_composer_content").length>0){var composer=$("#visual_composer_content");if(composer.find("img.attachment-thumbnail").length>0){SQ_DEBUG&&console.log("Visual Composer Image");$this.checkImage($("#visual_composer_content").find("img.attachment-thumbnail").parents(".wpb_content_element:last"))}if(composer.find("ul.attachment-thumbnails").length>0){SQ_DEBUG&&console.log("Visual Composer Galerry");$this.checkImage($("#visual_composer_content").find("ul.attachment-thumbnails"))}if(composer.find(".wpb_vc_custom_heading .admin_label_text").length>0){composer.find(".wpb_vc_custom_heading .admin_label_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Visual Composer Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}}},listenFusion:function(){if($(".fusion_module_block_preview").find("img").length>0){SQ_DEBUG&&console.log("Fusion Image Preview");$this.checkImage($(".fusion_module_block_preview").find("img").parents("div:last"))}else if($("img.fusion-child-element-image").length>0){SQ_DEBUG&&console.log("Fusion Image Element");$this.checkImage($("img.fusion-child-element-image").parents("div:last"))}if($(".fusion_module_block_preview").find(".title_text").length>0){$(".fusion_module_block_preview").find(".title_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Fusion Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}},stopListenHtml:function(){SQ_DEBUG&&console.log("stop listen HTML");$.sq_fields.wp_content.off("keyup");$.sq_fields.wp_content.off("drop")},listenTitle:function(){SQ_DEBUG&&console.log("listen title");$.sq_fields.wp_input_title.off("keyup change").on("keyup change",function(){$(this).trackLength("wp_title");$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;$this.checkTitle()});if($("#sq_wp_title_info").length==0){$.sq_fields.wp_input_title.after($.sq_fields.sq_wp_title_info)}},listenSlug:function(){var timeout_post_slug=setInterval(function(){if($("#new-post-slug").length>0){clearInterval(timeout_post_slug);$("#new-post-slug").off("keyup").on("keyup",function(){$this.checkKPinguinUrl()});$("#edit-slug-buttons").find("a").on("click",function(){$this.sq_eventsseo.listenSlug()})}},3e4);var timeout_sample_permalink=setInterval(function(){if($("#sample-permalink").length>0){clearInterval(timeout_sample_permalink);if(typeof $.sq_loadFrontMenu!=="undefined"){SQ_DEBUG&&console.log("Reload the Squirrly Snippet");$.sq_loadFrontMenu()}}},3e4)},listenHighlight:function(on){if(on){settings.clicked["highlight"]=false;$this.find(".sq_request_highlight_key").parents("li:last").on("click",function(e){e.stopPropagation();settings.clicked["highlight"]=true}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),$.sq_config.keyword)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}else{$this.find(".sq_request_highlight_key").parents("li:last").off()}}};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_blockseo seo.loaded");if(!$.sq_config.subscription_active){return}if(!$.sq_isGutenberg()&&!$.sq_isFrontend()){if($.sq_fields.wp_content_wrap.length>0&&$.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")!==-1){SQ_DEBUG&&console.log("seo.loaded listenHTML");$this.sq_eventsseo.listenHtml();$.sq_config.active_editor=$.sq_fields.wp_content}else{SQ_DEBUG&&console.log("seo.loaded listenTinymce");$this.sq_eventsseo.listenTinymce();$.sq_config.active_editor=$.sq_editor.getIframeEditor()}}else if($.sq_isGutenberg()){wp.data.subscribe(function(){var ed=$.sq_editor.getBlockEditor("select");if(ed&&ed.isTyping){if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}if(ed&&ed.isSavingPost()&&!ed.isAutosavingPost()){if($.sq_floating){if($.sq_config.timeout_save){clearTimeout($.sq_config.timeout_save)}$.sq_config.timeout_save=setTimeout(function(){$.sq_floating.trigger("seo.floating.page_saved")},$.sq_config.delay_seo)}}})}$this.sq_loading();$this.one("seo.keyword_loaded",function(){$this.sq_eventsseo.listen()})});return $this};$.fn.trackLength=function(type){var $this=this;var min=0;var max=0;var color="green";if(typeof $this==="undefined")return;if(type==="title"||type==="wp_title"){min=$.sq_params.min_length_title;max=$.sq_params.max_length_title}else if(type==="description"){min=$.sq_params.min_length_description;max=$.sq_params.max_length_description}if(min>0&&min>$this.val().length){color="red"}else if(max>0&&max<$this.val().length){color="red"}else{color="green"}if(max>0){$("#sq_"+type+"_info").html($this.val().length+"/"+max);$("#sq_"+type+"_info").css("color",color)}}})(jQuery);
1
+ (function($){"use strict";if($.isFunction($.fn.sq_blockseo)){return}$.fn.sq_blockseo=function(options){var $this=this;var settings=$.extend({check:[],single_tag:[],double_tag:[],custom_tag:[],custom_tag_id:[],clicked:[]},options);$.sq_fields=$.extend({sq_wp_title_info:$('<span id="sq_wp_title_info" style="display: block; float: right;" />')},$.sq_fields);var seo={title:"",content:""};$this.setContent=function(content){seo.content=content};$this.load=function(){$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").removeClass("checked");if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.callback()},100)};$this.callback=function(){$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;if($.sq_config.editor_type==="tinymce"){if($.sq_isGutenberg()){ed=$.sq_editor.getBlockEditor("select");if(ed)seo.content=ed.getEditedPostContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.html=="function"){seo.content=$.sq_config.active_editor.html()}else{ed=$.sq_editor.getIframeEditor();seo.content=ed.html()}}else{if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed){seo.content=ed.getEditedPostContent();if($.sq_clearText(seo.content)===""){ed=$.sq_editor.getIframeEditor();seo.content=ed.html()}}}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed)seo.content=ed.getPageContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.val=="function"){seo.content=$.sq_fields.wp_content.val()}else if($.sq_fields.wp_content.length){seo.content=$.sq_fields.wp_content.val()}}if(!$.sq_fields.wp_input_title.length){if($(".editor-post-title").find("textarea").length>0){$.sq_fields.wp_input_title=$(".editor-post-title").find("textarea")}else if($("h1.wp-block-post-title").length>0){$.sq_fields.wp_input_title=$('<textarea id="title" style="display: none">'+$("h1.wp-block-post-title").html()+"</textarea>");$("h1.wp-block-post-title").after($.sq_fields.wp_input_title);$("h1.wp-block-post-title").on("DOMSubtreeModified",function(){$.sq_fields.wp_input_title.val($("h1.wp-block-post-title").html())})}}$this.trigger("seo.content");$this.checkSEO();$this.trigger("seo.callback")};$this.checkSEO=function(){if(typeof seo.content!=="undefined"&&$.sq_clearText(seo.content)!==""){SQ_DEBUG&&console.log("check keywords in body and tags");$this.checkTitle();$this.checkBody();$this.checkSingleTags();$this.checkCustomTags();$this.checkKPinguinUrl();$this.checkKeyword();if($.sq_fields.wp_thumbnail.length>0){$this.sq_eventsseo.listenMediaLibrary()}else if($("#postimagediv").length>0){$this.checkImage($("#postimagediv"))}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed)$.sq_blockseo.checkImage($("<div>"+ed.getPageImages()+"</div>"))}if($(".editor-post-featured-image").length>0){$this.checkImage($(".editor-post-featured-image"))}if($("#visual_composer_content").length>0){$this.sq_eventsseo.listenVComposer()}if($("#fusion_builder_container").length>0){$this.sq_eventsseo.listenFusion()}}};$this.close=function(){$.sq_fields.div_blockseo.hide()};$this.checkKPinguinUrl=function(){if($.sq_config.keyword!==""){if($("#custom_permalinks_home_url").length>0&&$("#custom_permalink").length>0){var slug=$("#custom_permalinks_home_url").val()+" "+$("#custom_permalink").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($("#editable-post-name-full").length>0){var root="";if($("#sample-permalink").length>0){var sample_permalink=$("#sample-permalink").find("a").clone();sample_permalink.find("span").remove();root=sample_permalink.text()}var slug=root+" "+$("#editable-post-name-full").html();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($("#new-post-slug").length>0){var slug=$("#new-post-slug").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($("#sample-permalink").length>0){var slug=$("#sample-permalink").html().replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}else if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed){var slug=decodeURIComponent(ed.getPermalink()).replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}}};$this.checkKeyword=function(){$this.setChecked($this.checkWordsLength($.sq_config.keyword,2,0),"longtail_keyword")};$this.checkPinguin=function(){var domain=$.sq_getDomain(document.domain,[8])!==""?$.sq_getDomain(document.domain,[8]):document.domain;$this.setChecked(!$this.keywordMatch($.sq_fields.wp_input_title.val(),domain,true),"pinguin_title")};$this.checkTitle=function(){SQ_DEBUG&&console.log("check keywords in title: "+$.sq_fields.wp_input_title.val());if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;if($.sq_fields.wp_input_title.length&&$.sq_clearText($.sq_fields.wp_input_title.val()).length>1){$this.setChecked($this.checkLength($.sq_fields.wp_input_title.val(),$.sq_params.min_length_title,$.sq_params.max_length_title),"title_length");$this.setChecked($this.keywordMatch($.sq_fields.wp_input_title.val(),$.sq_config.keyword),"title");$this.checkPinguin();var id="density_title";if($this.checkWordsLength($.sq_config.keyword,1,100)){if($.sq_strEqual($.sq_fields.wp_input_title.val(),$.sq_config.keyword)){$this.setChecked(true,id)}else{$this.keywordDensity($.sq_fields.wp_input_title.val(),$.sq_params.low_density_title,$.sq_params.high_density_title,"density_title")}}else{$("#sq_"+id+"_val").html($("#sq_"+id+"_longtail").html());$this.setChecked(false,id)}}};$this.checkImage=function(_this){$.sq_config.silent=true;var pattern=null;pattern=new RegExp("<img([^>]*)>","gi");if(_this.html()!==""&&$this.checkPattern(pattern)){$this.setChecked(true,"img",true)}else if(_this.html()!==""){SQ_DEBUG&&console.log("Check image in object");if($this.checkPattern(pattern,_this.html())){$this.setChecked($this.checkPattern(pattern,_this.html()).length>0,"img",true)}else{pattern=new RegExp("\\[gallery[^\\]]*ids=[^\\]]*\\]","gi");if($this.checkPattern(pattern)){$this.setChecked($this.checkPattern(pattern).length>0,"img")}else{$this.setChecked(0,"img")}}}pattern=new RegExp('alt="([^"]+)"',"gi");if(!$this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword)){SQ_DEBUG&&console.log("There is no alt image in content");$this.setChecked($this.keywordMatch($this.checkPattern(pattern,_this.html()),$.sq_config.keyword),"alt")}};$this.hideOptions=function(){$("#sq_wp_title_suggestion").remove();$this.checkTitle()};$this.checkBody=function(){var $str=$("<div></div>").html(seo.content);$str.find("form").remove();$.sq_highlight($str,$.sq_config.keyword,{counter:0,done:function(count,positions){SQ_DEBUG&&console.log($str.text(),$.sq_config.keyword,count,positions);$this.processBody($str.text(),count,positions)}})};$this.processBody=function(cleanContent,count,positions){var checked=false,id=false,words=[],density,i=0;if($.sq_config.editor_type==="tinymce"){var iframe_tinymce=$.sq_editor.getIframeEditor()}$this.setChecked(count>0,"body");if($.sq_fields.wp_input_title.length&&$.sq_fields.wp_input_title.val()!==""){$this.keywordDensity($.sq_fields.wp_input_title.val()+" "+cleanContent,$.sq_params.low_density,$.sq_params.high_density,"density")}else{$this.keywordDensity(cleanContent,$.sq_params.low_density,$.sq_params.high_density,"density")}checked=true;id="over_density";if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__addminimumwords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").removeClass("sq_"+id+"_high")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());words=$.sq_clearText($.sq_config.keyword).split(" ");density=$this.getDensity(cleanContent,$.sq_config.keyword);if(density.val>0){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var wordslen=words.length;for(i=0;i<wordslen;i++){if(words[i].length>2&&ignore.indexOf(words[i])===-1){var word=words[i];density=$this.getDensity(cleanContent,word);if(density.val>=$.sq_params.max_word_density){var need=density.keywords-$.sq_params.max_word_density*density.words/100+1;need=Math.round(need)<=0?1:need.toFixed();$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+'<span id="sq_request_'+id+'_highlight" style="color:yellow; text-decoration:underline; cursor: pointer;">'+word+"</span> "+$.sq_config.__toomanytimes.replace(/%s/g,need)+' <span id="sq_request_synonyms_oo"></span></span>');$this.getSynonyms(word,"sq_request_synonyms_oo");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight").parents("li#sq_"+id+":last").on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),word)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())});$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");checked=false;break}}}}else{checked=false}$this.setChecked(checked,id)}checked=true;id="human_friendly";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__writemorewords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();if(count>=2){for(i=2;i<=count;i++){SQ_DEBUG&&console.log(positions[i]-positions[i-1],$.sq_params.begin_last_max_chars);if(positions[i]-positions[i-1]<$.sq_params.begin_last_max_chars){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();var ndt=i===2?"st":i===3?"nd":i===4?"rd":"th";$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__morewordsafter.replace(/%s/g,'<span id="sq_request_'+id+'_highlight_key" style="color:lightcoral; text-decoration:underline; cursor: pointer;">'+(i-1)+ndt+"</span>")+' <span id="sq_request_synonyms"></span>)</span>');$this.getSynonyms($.sq_config.keyword,"sq_request_synonyms");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight_key").parents("li#sq_"+id+":last").off().on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),$.sq_config.keyword)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())});checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");break}}}}$this.setChecked(checked,id)};$this.getSynonyms=function(word,span){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var words=$.sq_stripChars(word).split(" ");$this.find("#"+span).html(" "+$.sq_config.__orusesynonyms);var wordslen=words.length;for(var w=0;w<wordslen;w++)if(words[w].length>2&&ignore.indexOf(words[w])===-1){$this.find("#"+span).append(" "+(w===0?"for":"or for")+' <span class="'+span+"_"+words[w]+" "+span+'" style="text-decoration:underline; cursor: pointer;" title="">'+words[w]+"</span>");var synonyms_all=$.sq_getCache("synonyms_"+words[w]);if(synonyms_all!==""){if(synonyms_all.length>0)$this.find("."+span+"_"+words[w]).attr("title",synonyms_all.join("\n"))}else{$.post($.sq_config.ajaxurl,{action:"sla_customcall",sq_nonce:$.sq_config.sq_nonce,url:"https://thesaurus.altervista.org/thesaurus/v1",word:words[w],language:$.sq_config.language.replace("-","_"),key:"TDm3SO7N3XEfRWuXYFb9",output:"json"}).done(function(word){return function(data){var response=data.response;var synonyms=[];var synonyms_all=[];if(typeof response!=="undefined"&&response.length>0){var responselen=response.length;for(var j=0;j<responselen;j++){if(typeof response[j].list.synonyms!=="undefined"){synonyms=response[j].list.synonyms.split("|");var synonymslen=synonyms.length;for(var k=0;k<synonymslen;k++){if(typeof synonyms[k]!=="undefined"&&synonyms[k]!==""&&synonyms[k].indexOf("antonym")===-1){synonyms_all.push(synonyms[k]);if(synonyms_all.length>10)break}}}}if(synonyms_all.length>0){$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"))}}$.sq_setCache("synonyms_"+word,synonyms_all)}}(words[w])).error(function(word){var synonyms_all=[];synonyms_all.push("no synonyms found");$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"));$.sq_setCache("synonyms_"+word,synonyms_all)}(words[w]))}}};$this.checkTags=function(){var id;var striptag="[\\],\\[]";striptag=new RegExp(striptag,"g");for(var i in settings.double_tag){id="";try{if(typeof settings.double_tag[i]==="string"||settings.double_tag[i]instanceof String){id=settings.double_tag[i];id=id.replace(striptag,"");if(id!=="")$this.setChecked($this.keywordMatch($this.checkTag(["<"+settings.double_tag[i]+">","</"+settings.double_tag[i]+">"])),id)}}catch(e){}}};$this.checkCustomTags=function(){var pattern;for(var i in settings.custom_tag){pattern="";try{if(typeof settings.custom_tag[i]==="string"||settings.custom_tag[i]instanceof String){pattern=new RegExp(settings.custom_tag[i],"gi");if(pattern!==""){$this.setChecked($this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword),settings.custom_tag_id[i])}}}catch(e){}}return false};$this.checkSingleTags=function(){var id;var striptag="[\\],\\[]";striptag=$.sq_regex(striptag);for(var i in settings.single_tag){id="";try{if(typeof settings.single_tag[i]==="string"||settings.single_tag[i]instanceof String){id=settings.single_tag[i].replace(striptag,"");if(id!==""){$this.setChecked($this.checkTag(["<"+settings.single_tag[i],">"]).length>0,id)}}}catch(e){}}};$this.checkTag=function(tag,content){var pattern="";if($.sq_isArray(tag)){if(tag[0]!==""&&tag[1]!==""){pattern=tag[0].replace("/","\\/")+"([^>]*)"+tag[1].replace("/","\\/");pattern=$.sq_regex(pattern)}}else{return false}SQ_DEBUG&&console.log("checkTag pattern: "+pattern);return $this.checkPattern(pattern,content)};$this.checkPattern=function(pattern,content){if(typeof content==="undefined")var content=seo.content;content=content.replace(/<img([^>]*)(mceItemMedia|mce-object)([^>]*)>/gi," ");var matches="";if(pattern!==""){matches=content.toLowerCase().match(pattern);SQ_DEBUG&&console.log((matches!==null)+" for "+pattern+" in content");if(matches!==null&&$.sq_isArray(matches)){return matches.join(", ")}}return false};$this.getPercentCompleted=function(){var all=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").length;var checked=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li.checked").not(".sq_tasks_category").length;return checked*100/all};$this.checkCompleted=function(){if($.sq_config.silent){return}var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");var timeout=3e3;if(!$.sq_config.manual){timeout=1e3}cached=$.sq_getCache("complete_"+ky);if(cached!=="1"){if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").length>10){if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").not(".checked").length==0){$("body").prepend($("<ul/>").html("<li>"+$.sq_config.__fulloptimized+"</li>").addClass("sq_complete"));if($("#wpadminbar").css("display")=="none"){$(".sq_complete").css("top","0")}else{$(".sq_complete").css("top","28px")}setTimeout(function(){$("ul.sq_complete").remove()},timeout);$.sq_setCache("complete_"+ky,"1")}}}$(".sq_blockseo_progress").val(parseInt($this.getPercentCompleted()));$.sq_fields.sq_keyword_score.html(parseInt($this.getPercentCompleted())+"%")};$this.setChecked=function(cond,id,hidden){var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if($.sq_getCookie("sq_sla")==="off"){hidden=true}if(cond){$.sq_fields.div_blockseo.find("#sq_"+id).attr("class","checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").hide();$this.sq_eventsseo.listenHighlight(false)}cached=$.sq_getCache("task_"+ky+id);if(cached!=="1"){if($.sq_config.manual){if(typeof hidden==="undefined"){$this.addTopNotification(id)}}}SQ_DEBUG&&console.log("sq_setCache true: ",id);$.sq_setCache("task_"+ky+id,"1");$.sq_fields.div_blockseo.find("#sq_input_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id).append('<input id="sq_input_'+id+'" type="hidden" name="sq_seo[]" value="'+id+'" />')}else{$.sq_setCache("task_"+ky+id,"0");if(id!=="img"&&id!=="alt"){SQ_DEBUG&&console.log("sq_setCache false: ",id);$.sq_setCache("complete_"+ky,"0")}$.sq_fields.div_blockseo.find("#sq_"+id).removeClass("checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").show();$this.sq_eventsseo.listenHighlight(true)}$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}$this.checkCompleted();if(!$.sq_config.briefcase){$this.trigger("seo.after_checked",[id])}return Boolean(cond)};$this.addTopNotification=function(id){if($.sq_config.silent){return}var task=$.sq_fields.div_blockseo.find("#sq_"+id).clone();task=task.find(".sq_help").remove();task=task.end().html();$("ul.sq_notification").remove();$("body").append($("<ul/>").attr("id","sqt_"+id).html("<li>"+task+"</li>").addClass("sq_notification").css("zIndex","100000001"));if($("#wpadminbar").css("display")=="none"){$(".sq_notification").css("top","0")}else{$(".sq_notification").css("top","28px")}if($("#sq_"+id).find(".sq_seo_priority_essential").length>0){$("#sqt_"+id).addClass("sq_notification_front")}if($this.timeout)clearTimeout($this.timeout);$this.timeout=setTimeout(function(){$("ul.sq_notification").fadeOut("slow");$("ul.sq_notification").remove()},3e3)};$this.checkLength=function(str,min,max){str=$.sq_clearText(str);if(min>0&&str.length>=min&&(max===0||str.length<=max)){return true}return false};$this.checkWordsLength=function(str,min,max){if(min>0&&$this.wordCount(str)>=min&&(max===0||$this.wordCount(str)<=max)){return true}return false};$this.getWords2Min=function(str,min){if(min>0&&$this.wordCount(str)<min){return(min-$this.wordCount(str)+1).toFixed()}return 0};$this.urlMatch=function(str,keyword){if(str===false)return;if(typeof keyword==="undefined")return;var original=keyword;str=$.sq_clearText(str);str=$.sq_stripChars(str);keyword=$.sq_umlautsText(keyword);keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);SQ_DEBUG&&console.log("keywordMatch: "+keyword+"=>"+str);if(str!==""&&keyword!==""){var matches=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}});if(!matches){keyword=keyword.replace(/\s/g,"");$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}if(!matches&&original.indexOf("ü")){keyword=original.replace("ü","ue");keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}SQ_DEBUG&&console.log("matches="+matches);return matches>0}};$this.keywordMatch=function(str,keyword,exact_match){var matches=0;if(str===false)return matches;if(typeof keyword==="undefined")return matches;if(typeof exact_match==="undefined")exact_match=false;str=$.sq_clearText(str);keyword=$.sq_clearText(keyword);keyword=keyword.replace(/[\"]/g,"");keyword=keyword.trim();if(typeof str!=="undefined"&&str!==""&&keyword!==""){matches=$.sq_strEqual(str,keyword);if(!exact_match){if(!matches){$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:0,done:function(count){matches=count}});SQ_DEBUG&&console.log("matches="+matches)}}}return matches};$this.keywordDensity=function(str,low,high,id){var density=$this.getDensity(str,$.sq_config.keyword);var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if(density.words<$this.checkWordsLength($.sq_config.keyword)){SQ_DEBUG&&console.log("keywordDensity: TOO FEW WORDS ",density.words);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");$this.setChecked(false,id);return}if(density.val<=low&&density.keywords<$.sq_params.max_keywords){SQ_DEBUG&&console.log("keywordDensity: TOO LOW ",density.val,low,density.keywords,$.sq_params.max_keywords);var need=density.words-100*density.keywords/low;need=Math.round(need)<=0?1:Math.round(need);var kr_need=Math.min(low*density.words/100-density.keywords+.5,$.sq_params.max_keywords-density.keywords);kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_low");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_low")}}$.sq_setCache("task_"+ky+id,"2");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html()+" ("+$.sq_config.__addmorekeywords.replace(/%s/g,kr_need)+(need<density.words?" "+$.sq_config.__removewords.replace(/%s/g,Math.min(need,density.words)):"")+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{if(density.val>=high){SQ_DEBUG&&console.log("keywordDensity: TOO HIGH ",density.val);var need=100*density.keywords/high-density.words+.5;need=Math.round(need)<=0?1:Math.round(need);var kr_need=density.keywords-high*density.words/100+.5;kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_high")}}$.sq_setCache("task_"+ky+id,"3");if($this.checkWordsLength(str,$.sq_params.min_length_body,$.sq_params.max_length_body)!==false)kr_need="remove "+kr_need+" keyword(s) or ";else kr_need="";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html()+" ("+kr_need+$.sq_config.__addmorewords.replace(/%s/g,need)+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{SQ_DEBUG&&console.log("keywordDensity: "+((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high),density.val,low,density.keywords,$.sq_params.max_keywords);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());$this.setChecked((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high,id)}}};$this.getDensity=function(str,keyword){var density={};keyword=$.sq_clearText(keyword);str=$.sq_clearText(str);density.keywords=$this.phraseCount(str,keyword);density.words=$this.wordCount(str);density.words=density.words-density.keywords*($this.keywordWords(keyword)-1);if(density.words>0){density.val=density.keywords*100/density.words}else if(density.keywords>=1){density.val=100}else{density.val=0}return density};$this.keywordWords=function(keyword){var pattern=new RegExp("[㐀-龿 -〿぀-ゟ゠-ヿ＀-゚一-龯㐀-䶿]|\\S+","gi");var words=keyword.match(pattern);if(words&&words.length>0)return words.length+1;else return 1};$this.phraseCount=function(str,keyword){var words=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){words=count}});return words};$this.wordCount=function(str){str=$.sq_clearText(str);var matches=str.match(/[\u3400-\u9FBF\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]|\S+/g);if(matches)return matches.length;return 0};$this.sq_eventsseo={listen:function(){$.post($.sq_config.ajaxurl,{action:"sla_tasks",sq_nonce:$.sq_config.sq_nonce,output:"json"}).done(function(response){$this.sq_doneloading("sq_minloading").removeClass("sq_error");if(typeof response.data!=="undefined"&&typeof response.data.tasks!=="undefined"&&$this.find(".sq_tasks").length>0){settings.custom_tag.push("<(strong|b)[^>]*>(.*?)</(strong|b)>");settings.custom_tag_id.push("strong");settings.custom_tag.push("<h[1-6][^>]*>(.*?)</h[1-6]>");settings.custom_tag_id.push("h2_6");settings.single_tag.push("img");settings.custom_tag.push('alt=["]([^"]+)["]');settings.custom_tag_id.push("alt");$this.find(".sq_tasks").append(response.data.tasks);$this.find(".sq_tasks").find("li").show();$this.sq_eventsseo.listenHighlight(true);$this.on("seo.refresh",function(){$.sq_config.div.find(".sq_seo_refresh").addClass("sq_minloading");setTimeout(function(){$.sq_config.div.find(".sq_seo_refresh").removeClass("sq_minloading");$this.load()},1e3)});$.sq_config.div.find(".sq_seo_refresh").on("lateclick",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_lateclick")});$.sq_config.div.find(".sq_seo_refresh").on("click",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_click")});$this.trigger("seo.refresh");$this.trigger("seo.task_loaded")}else{$this.sq_doneloading("sq_minloading").removeClass("sq_error");$this.find(".sq_tasks").html('<div class="sq_message" style="width: 100% !important;">'+$.sq_config.__ajaxerror+"</div>")}});$this.sq_eventsseo.listenTitle();$this.sq_eventsseo.listenSlug();$.sq_fields.content_tmce.on("click",function(){$.sq_config.editor_type="tinymce"});$.sq_fields.content_html.on("click",function(){$.sq_config.editor_type="html"});$("#save-post,#publish,#post-preview").click(function(){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.sq_removeHighlight($.sq_getBuilderEditorContainer());if($.sq_config.keyword!==""){$.sq_blocksearch.addTag();$.sq_fields.wp_publish.focus()}});$.sq_fields.wp_input_title.off("click").on("click",function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}});if(typeof ET_PageBuilder!=="undefined"&&typeof ET_PageBuilder.Events!=="undefined"){ET_PageBuilder.Events.on("et-pb-loading:ended",function(){$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})});ET_PageBuilder.Events.on("et-modal-settings:save",function(){ET_PageBuilder.Events.on("et-modal-view-removed",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick");$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})})})}if($("#visual_composer_content").length>0){if($("div#vc_ui-panel-edit-element").length>0){$("div#vc_ui-panel-edit-element").find("span[data-vc-ui-element=button-save]").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Save");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick");if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})}})}if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_config.div.find(".sq_seo_refresh").trigger("lateclick")})}}},listenTinymce:function(){SQ_DEBUG&&console.log("listenTinymce");$.sq_config.editor_type="tinymce";if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}$.sq_config.interval_seo=setInterval(function(){var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false){$.sq_editor.insertHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeInserted ",e);$.sq_editor.listen(e);$this.callback()}};$(iframe_tinymce).off("DOMNodeInserted",$.sq_editor.insertHandler).on("DOMNodeInserted",$.sq_editor.insertHandler);$.sq_editor.removeHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeRemoved "+e.target.nodeName);$.sq_editor.lastimage="";$this.callback()}};$(iframe_tinymce).off("DOMNodeRemoved",$.sq_editor.removeHandler).on("DOMNodeRemoved",$.sq_editor.removeHandler);$.sq_editor.changeHandler=function(e){$.sq_config.active_editor=$(this);SQ_DEBUG&&console.log(" keyup mouseup ",e.type);if(e.type==="mouseup"){$.sq_removeHighlight($.sq_getBuilderEditorContainer())}if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}$this.callback()},$.sq_config.delay_seo)};$(iframe_tinymce).off("keyup mouseup",$.sq_editor.changeHandler).on("keyup mouseup",$.sq_editor.changeHandler);$this.callback();clearInterval($.sq_config.interval_seo);$.sq_removeHighlight($.sq_getBuilderEditorContainer())}if(typeof $.sq_config.frontend_css!=="undefined"){if($.sq_editor.getIframeEditor("head link[href='"+$.sq_config.frontend_css+"']")===false){var iframe_head=$.sq_editor.getIframeEditor("head");if(iframe_head!==false){iframe_head.append($("<link/>",{rel:"stylesheet",href:$.sq_config.frontend_css,type:"text/css"}))}}}$this.sq_eventsseo.listenFeatureImage()},3e4)},stopListenTinymce:function(){SQ_DEBUG&&console.log("stop listen Tinymce");if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false)$(iframe_tinymce).off("keyup mouseup")},listenHtml:function(){$.sq_config.editor_type="html";$.sq_fields.wp_content.on("click keyup",function(){$.sq_config.active_editor=$(this);if($.sq_config.editor_type==="html"){if($this.timeout_html){clearTimeout($this.timeout_html)}$this.timeout_html=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}});$.sq_fields.wp_content.on("dragover",false).on("dragenter",false).on("drop",function(e){if($.sq_config.editor_type==="html"){e.preventDefault();$.sq_editor.listenHtml(e)}});$this.sq_eventsseo.listenFeatureImage();$this.sq_eventsseo.listenMediaLibrary()},listenFeatureImage:function(){$("#postimagediv").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))});$(".editor-post-featured-image").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))})},listenMediaLibrary:function(){if($.sq_fields.wp_thumbnail_alt.length>0){$.sq_fields.wp_thumbnail_alt.on("keyup",function(){$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")});$this.checkImage($.sq_fields.wp_thumbnail);$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")}},listenVComposer:function(){if($("#visual_composer_content").length>0){var composer=$("#visual_composer_content");if(composer.find("img.attachment-thumbnail").length>0){SQ_DEBUG&&console.log("Visual Composer Image");$this.checkImage($("#visual_composer_content").find("img.attachment-thumbnail").parents(".wpb_content_element:last"))}if(composer.find("ul.attachment-thumbnails").length>0){SQ_DEBUG&&console.log("Visual Composer Galerry");$this.checkImage($("#visual_composer_content").find("ul.attachment-thumbnails"))}if(composer.find(".wpb_vc_custom_heading .admin_label_text").length>0){composer.find(".wpb_vc_custom_heading .admin_label_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Visual Composer Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}}},listenFusion:function(){if($(".fusion_module_block_preview").find("img").length>0){SQ_DEBUG&&console.log("Fusion Image Preview");$this.checkImage($(".fusion_module_block_preview").find("img").parents("div:last"))}else if($("img.fusion-child-element-image").length>0){SQ_DEBUG&&console.log("Fusion Image Element");$this.checkImage($("img.fusion-child-element-image").parents("div:last"))}if($(".fusion_module_block_preview").find(".title_text").length>0){$(".fusion_module_block_preview").find(".title_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Fusion Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}},stopListenHtml:function(){SQ_DEBUG&&console.log("stop listen HTML");$.sq_fields.wp_content.off("keyup");$.sq_fields.wp_content.off("drop")},listenTitle:function(){SQ_DEBUG&&console.log("listen title");$.sq_fields.wp_input_title.off("keyup change").on("keyup change",function(){$(this).trackLength("wp_title");$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;$this.checkTitle()});if($("#sq_wp_title_info").length==0){$.sq_fields.wp_input_title.after($.sq_fields.sq_wp_title_info)}},listenSlug:function(){var timeout_post_slug=setInterval(function(){if($("#new-post-slug").length>0){clearInterval(timeout_post_slug);$("#new-post-slug").off("keyup").on("keyup",function(){$this.checkKPinguinUrl()});$("#edit-slug-buttons").find("a").on("click",function(){$this.sq_eventsseo.listenSlug()})}},3e4);var timeout_sample_permalink=setInterval(function(){if($("#sample-permalink").length>0){clearInterval(timeout_sample_permalink);if(typeof $.sq_loadFrontMenu!=="undefined"){SQ_DEBUG&&console.log("Reload the Squirrly Snippet");$.sq_loadFrontMenu()}}},3e4)},listenHighlight:function(on){if(on){settings.clicked["highlight"]=false;$this.find(".sq_request_highlight_key").parents("li:last").on("click",function(e){e.stopPropagation();settings.clicked["highlight"]=true}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),$.sq_config.keyword)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}else{$this.find(".sq_request_highlight_key").parents("li:last").off()}}};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_blockseo seo.loaded");if(!$.sq_config.subscription_active){return}if(!$.sq_isGutenberg()&&!$.sq_isFrontend()){if($.sq_fields.wp_content_wrap.length>0&&$.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")!==-1){SQ_DEBUG&&console.log("seo.loaded listenHTML");$this.sq_eventsseo.listenHtml();$.sq_config.active_editor=$.sq_fields.wp_content}else{SQ_DEBUG&&console.log("seo.loaded listenTinymce");$this.sq_eventsseo.listenTinymce();$.sq_config.active_editor=$.sq_editor.getIframeEditor()}}else if($.sq_isGutenberg()){wp.data.subscribe(function(){var ed=$.sq_editor.getBlockEditor("select");if(ed&&ed.isTyping){if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}if(ed&&ed.isSavingPost()&&!ed.isAutosavingPost()){if($.sq_floating){if($.sq_config.timeout_save){clearTimeout($.sq_config.timeout_save)}$.sq_config.timeout_save=setTimeout(function(){$.sq_floating.trigger("seo.floating.page_saved")},$.sq_config.delay_seo)}}})}$this.sq_loading();$this.one("seo.keyword_loaded",function(){$this.sq_eventsseo.listen()})});return $this};$.fn.trackLength=function(type){var $this=this;var min=0;var max=0;var color="green";if(typeof $this==="undefined")return;if(type==="title"||type==="wp_title"){min=$.sq_params.min_length_title;max=$.sq_params.max_length_title}else if(type==="description"){min=$.sq_params.min_length_description;max=$.sq_params.max_length_description}if(min>0&&min>$this.val().length){color="red"}else if(max>0&&max<$this.val().length){color="red"}else{color="green"}if(max>0){$("#sq_"+type+"_info").html($this.val().length+"/"+max);$("#sq_"+type+"_info").css("color",color)}}})(jQuery);
view/assets/js/assistant/sq_frontend.min.js CHANGED
@@ -1 +1 @@
1
- (function($){"use strict";if($.isFunction($.fn.sq_frontend)){return}$.fn.sq_frontend=function(options){var $this=this;var settings=$.extend({positions:[],minimize_height:134,maximize_height:100,top:25,bottom:0},options);$.sq_fields=$.extend({wp_form:$(".metabox-location-normal").length>0?$(".metabox-location-normal"):$("#side-sortables"),sq_box_close:$.sq_config.div.find(".sq_box_close"),sq_box_minimize:$.sq_config.div.find(".sq_box_minimize"),sq_box_maximize:$.sq_config.div.find(".sq_box_maximize"),sq_button_squirrly:$(".edit__PinnedPluginIcon-hNdeXr")},$.sq_fields);$.expr.filters.slaoffscreen=function(el){var rect=el.getBoundingClientRect();return rect.x+rect.width<0||rect.y+rect.height<0||(rect.x>window.innerWidth||rect.y>window.innerHeight)};$this.init=function(){var dragposition="";$.sq_config.div.addClass("sq_sticky");$.sq_config.div.addClass("minimized");$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_close.show();$.sq_fields.sq_box_maximize.show();var positions=JSON.parse(localStorage.positions||"{}");$(function(){$.each(positions,function(id,pos){$.sq_config.div.css(pos)});$.sq_config.div.css("height",settings.minimize_height);$.sq_config.div.css("top","auto");if($.fn.draggable){$.sq_config.div.draggable({containment:"body",handle:".sq_header",scroll:true,axis:"x",stop:function(event,ui){positions[this.id]=ui.position;localStorage.positions=JSON.stringify(positions)}})}});$.sq_fields.sq_box_minimize.on("click",function(e){e.stopPropagation();$.sq_config.div.css("height",settings.minimize_height+"px");$.sq_config.div.css("bottom",settings.bottom+"px");$.sq_config.div.css("top","auto");$.sq_config.div.addClass("minimized");$.sq_config.div.scrollTop(0);$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_maximize.show()});$.sq_fields.sq_box_close.on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});if($.sq_getCookie("sq_sla")==="off"){$.sq_fields.sq_box_close.trigger("click")}$.sq_fields.sq_box_maximize.on("click",function(){$.sq_config.div.show();if($.sq_config.div.hasClass("minimized")){$.sq_config.div.css("top",settings.top+"px");$.sq_config.div.css("height","auto");$.sq_config.div.css("bottom",0);$.sq_config.div.scrollTop(0);$.sq_config.div.removeClass("minimized");$.sq_fields.sq_box_minimize.show();$.sq_fields.sq_box_maximize.hide()}});$(".editor-writing-flow").css("height","auto");$(window).resize(function(){if(typeof $.sq_config.div!=="undefined"&&$.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}})};$this.one("seo.loaded",function(){$this.sq_VisualBuilder()});$this.one("seo.frontend.content_loaded",function(){SQ_DEBUG&&console.log("sq_frontend seo.loaded");if(!$(".components-squirrly-icon").length){$.sq_editor.createEditorButton("components-squirrly-icon")}$(".components-squirrly-icon").on("click",function(){$.sq_fields.sq_box_maximize.trigger("click");$.sq_setCookie("sq_sla","on");$(".components-squirrly-icon").hide()});$.sq_fields.sq_box_close.on("click",function(){$(".components-squirrly-icon").show()});if($.sq_getCookie("sq_sla")==="off"){$(".components-squirrly-icon").show()}else{$.sq_config.div.show()}$this.sq_listenBuilderChange();$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.new_changes")});if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}return $this};$.fn.sq_listenBuilderChange=function(){var $this=this;if(!$.sq_blockseo){return}$this.on("seo.frontend.editor_loaded seo.frontend.new_changes",function(){SQ_DEBUG&&console.log("seo.frontend.new_changes");var ed=$.sq_editor.getFrontendEditor();if(ed){if(ed.getPageTitle()!==""){$.sq_fields.wp_input_title.val(ed.getPageTitle())}$.sq_blockseo.trigger("seo.refresh")}SQ_DEBUG&&console.log("seo.frontend.new_changes DONE")});$.sq_blockseo.on("seo.refresh_click",function(){$this.checkPostAjax()});$this.on("seo.frontend.page_saved",function(){SQ_DEBUG&&console.log("seo.frontend.page_saved");var ed=$.sq_editor.getFrontendEditor();if(ed){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}var $sq_seo=[];$this.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});$.post($.sq_config.ajaxurl,{action:"sq_ajax_save_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"frontend",sq_seo:$sq_seo}).done(function(){$this.trigger("seo.frontend.new_changes")})}SQ_DEBUG&&console.log("seo.frontend.page_saved DONE")});$this.checkPostAjax=function(){return $.post($.sq_config.ajaxurl,{action:"sq_ajax_get_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID}).done(function(data){if(typeof data.url!=="undefined"){if(!$.sq_config.div.find("#new-post-slug").length){$.sq_config.div.append('<input type="hidden" id="new-post-slug" />')}$("#new-post-slug").val(data.url)}if(typeof data.post_title!=="undefined"){$.sq_fields.wp_input_title.val(data.post_title)}$this.trigger("seo.frontend.new_changes")})};if(!$.sq_config.div.find("#sq_post_title").length){$.sq_config.div.append('<input type="hidden" id="sq_post_title" />');$.sq_fields.wp_input_title=$("#sq_post_title");$this.checkPostAjax()}};$.fn.sq_VisualBuilder=function(){var $this=this;if(typeof window.sq_editor!=="undefined"){return window.sq_editor}var builderExists=false;var builderInUse="";var $builderContents=null;var $lastNumberOfNodes=0;var $currentNumberOfNodes=0;var $elementLoadingTime=null;var buildersInfo={elementor:{enabled:true,name:"elementor",hasIframe:true,iframeSelector:"#elementor-preview-iframe",parrentDiv:".elementor-editor-active"},WPBakery:{enabled:true,name:"wpbakery",hasIframe:true,iframeSelector:"#vc_inline-frame",parrentDiv:"#vc_editor"},bricks:{enabled:true,name:"bricks",hasIframe:true,iframeSelector:"#bricks-builder-iframe",parrentDiv:"#bricks-builder-iframe-wrapper"},thrive:{enabled:true,name:"thrive",hasIframe:true,iframeSelector:"#tve-editor-frame",parrentDiv:".tcb-editor-main"},divi:{enabled:true,name:"divi",hasIframe:true,iframeSelector:"#et-fb-app-frame",parrentDiv:".et_divi_builder"},oxygen:{enabled:true,name:"oxygen",hasIframe:true,iframeSelector:"#ct-artificial-viewport",parrentDiv:"#oxygen-ui"},zion:{enabled:true,name:"zion",hasIframe:true,iframeSelector:"#znpb-editor-iframe",parrentDiv:".znpb"}};var pageData={url:"",title:"",content:"",h1:"",headline:"",hasMultipleH1:false,images:""};var builderSelectorsSettings={preview:"",h1:"",container:"",containerWidget:"",containerWidgetImages:"",saveButton:"",saveAction:""};var currentNumberOfNodes=null;$this.init=function(){SQ_DEBUG&&console.log("checkBuilderExists");$this.checkBuilderExists()};$this.parseBuilders=function(){SQ_DEBUG&&console.log("Check parseBuilders "+$this.getBuilderName());switch($this.getBuilderName()){case"elementor":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseElementor();break;case"oxygen":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseOxygen();break;case"divi":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");if(typeof $.sq_config.div==="undefined"||typeof $.sq_params.low_density==="undefined"||typeof $.sq_fields.wp_title==="undefined"){$.sq_setConfig();$.sq_setParams();$.sq_setfields()}$this.parseDivi();break;case"wpbakery":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseWPBakery();break;case"zion":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseZion();break;case"thrive":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseThrive();break;case"bricks":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseBricks();break}};$this.checkBuilderExists=function(){SQ_DEBUG&&console.log("Looking for builders");$.each(Object.values(buildersInfo),function(index,builder){SQ_DEBUG&&console.log("Checking for: "+builder.name+" builder");if(builder.enabled===false){return}if(builder.hasIframe){if($this.elementExists(builder.iframeSelector)){SQ_DEBUG&&console.log("Found: "+builder.iframeSelector+" iframe");$(builder.iframeSelector).ready(function(){SQ_DEBUG&&console.log("Ready iframeSelector: "+builder.iframeSelector+" from builder "+builder.name);$this.setBuilderExists(builder.name);$builderContents=$(builder.iframeSelector).contents()[0];$this.parseBuilders()});return false}}else if($this.elementExists(builder.parrentDiv)){$builderContents=$(builder.parrentDiv).contents();$this.setBuilderExists(builder.name);return false}})};$this.elementExists=function(element,where){var $whereToLook;if(typeof where==="undefined"){$whereToLook=$(document)}else{$whereToLook=$(where)}var $element=$whereToLook.find(element);if(typeof $element!=="undefined"&&$element.length>0){return $element}return false};$this.getBuilderInfo=function(builderName){return buildersInfo[builderName]};$this.waitForElementToDisplay=function(selector,where,time,callback){if($elementLoadingTime){clearTimeout($elementLoadingTime)}var $element=$this.elementExists(selector,where);if($element){callback()}else{$elementLoadingTime=setTimeout(function(){console.log("Waiting for: "+selector);$this.waitForElementToDisplay(selector,where,time,callback)},time)}};$this.parseElementor=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#elementor-preview-iframe"],title:["h1.elementor-heading-title","h1.entry-title"],header:["h2","h3","h4","h5","h6"],container:[".elementor-section-wrap",".elementor-inner"],containerWidget:".elementor-widget-container",containerWidgetImages:["img"],saveAction:"save_builder"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();if($element.find(builderSelectorsSettings.containerWidget).length){$element=$element.find(builderSelectorsSettings.containerWidget)}$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$("#elementor-loading").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded")}},1e3)})})};$this.parseOxygen=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#ct-artificial-viewport"],title:["h1.ct-headline"],header:["div.bnb-subheading"],container:["#ct-builder"],containerWidget:".ct-inner-wrap",containerWidgetImages:[".ct-image"],saveAction:"oxygen-save-button",draftButton:"oxygen-save-button"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".ct-page-overlay").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($(".oxygen-left-button-wrap").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".oxygen-left-button-wrap").after($icon);$icon.css("position","initial");$icon.css("margin-left","2px")}}},1e3)})})};$this.parseDivi=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#et-fb-app-frame"],title:["h1.entry-title","h1.et_pb_module_header"],header:["h2","h3","h4","h5","h6"],container:["#et-boc"],containerWidget:".et_pb_section",containerWidgetImages:[".et_pb_image_wrap"],saveButton:"et_fb_ajax_save",draftButton:"et-fb-button--save-draft"};$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".et-fb-page-preloading").length){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($(".et-fb-button--help").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".et-fb-button--help").after($icon);$icon.css("position","initial");$icon.css("margin-right","5px")}}},1e3)})})};$this.parseWPBakery=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#vc_inline-frame"],title:["h1.entry-title","h1.wp-block-post-title",".vc_container-block h1"],header:[".vc_container-block h2,.vc_container-block h3,.vc_container-block h4,.vc_container-block h5,.vc_container-block h6"],container:[".vc-main-sortable-container"],containerWidget:".wpb_wrapper",containerWidgetImages:[".vc_single_image-img",".wpb_gallery_slides"],saveAction:"vc_save"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$("#vc_preloader").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if(!$("body > #postsquirrly").length){$("#postsquirrly").appendTo("body")}if($(".vc_navbar-header").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".vc_navbar-header").append($icon);$icon.css("position","initial");$icon.css("margin-top","10px")}}},1e3)})})};$this.parseThrive=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#tve-editor-frame"],title:["h1"],header:["h2","h3","h4","h5","h6"],container:["#tve_editor"],containerWidget:".thrv_wrapper",containerWidgetImages:["img"],saveAction:"tcb_editor_ajax"};$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.children(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$("#tve-page-loader").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($("#sidebar-bottom").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$("#sidebar-bottom").prepend($icon);$icon.css("position","initial");$icon.css("margin-right","2px")}}},1e3)})})};$this.parseZion=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#znpb-editor-iframe"],title:["h1.entry-title","h1.zb-el-zionHeading"],header:["h2.zb-el-zionHeading","h3.zb-el-zionHeading","h4.zb-el-zionHeading","h5.zb-el-zionHeading","h6.zb-el-zionHeading"],container:[".znpb-preview-page-wrapper"],containerWidget:".zb-section__innerWrapper",containerWidgetImages:[".znpb-element__wrapper img"],saveButton:".znpb-editor-header__page-save-wrapper--save",draftButton:".znpb-editor-header__page-save-wrapper"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".znpb-loading-wrapper-gif").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($(".znpb-editor-header__first").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".znpb-editor-header__first").append($icon);$icon.css("position","initial");$icon.css("margin-top","5px")}}},1e3)})})};$this.parseBricks=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#bricks-builder-iframe"],title:["h1.entry-title","h1.brxe-post-title"],header:["h2","h3","h4","h5","h6"],container:[".brx-body"],containerWidget:".brx-container.root",containerWidgetImages:[".brxe-image"],saveAction:"bricks_save_post"};$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".et-fb-page-preloading").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($("#bricks-toolbar").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$("#bricks-toolbar .group-wrapper.left").append($icon);$icon.css("position","initial");$icon.css("margin-left","2px")}}},1e3)})})};$this.setBuilderExists=function(builderName){builderExists=true;builderInUse=builderName};$this.getBuilderExists=function(){return builderExists};$this.getBuilderName=function(){return builderInUse};$this.getBuilderContainer=function(){if($(builderSelectorsSettings.preview[0]).contents().find(builderSelectorsSettings.container[0]).length>0){return $(builderSelectorsSettings.preview[0]).contents().find(builderSelectorsSettings.container[0]).first()}if(builderSelectorsSettings.preview.length>0){return $(builderSelectorsSettings.preview[0]).contents().find("body")}return false};$this.getPageData=function(){return pageData};$this.getPageURL=function(){return pageData.url};$this.getPageTitle=function(){return pageData.title};$this.getMultipleH1=function(){return pageData.hasMultipleH1};$this.getH1=function(){return pageData.h1};$this.getPageContent=function(){return pageData.content};$this.getPageImages=function(){return pageData.images};$this.getPageHeadline=function(){return pageData.headline};$this.setPageURL=function(url){pageData.url=url};$this.setPageTitle=function(title){pageData.title=title};$this.setH1=function(h1Text){pageData.h1=h1Text};$this.setPageHeadline=function(headline){pageData.headline=headline};$this.setMultipleH1=function(flag){pageData.hasMultipleH1=flag};$this.setPageContent=function(content){pageData.content=content};$this.setPageImages=function(images){pageData.images=images};$this.triggerPageHasChanges=function(){SQ_DEBUG&&console.log("triggerPageHasChanges");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.new_changes")};$this.triggerButtonSaveClicked=function(){SQ_DEBUG&&console.log("triggerButtonSaveClicked");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.page_saved")};$this.on("seo.frontend.refresh",function(){$this.parseBuilders()});$(document).on("click","button",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.saveButton){$this.triggerButtonSaveClicked()}if(typeof builderSelectorsSettings.saveButton!="undefined"){if(builderSelectorsSettings.saveButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.saveButton)){$this.triggerButtonSaveClicked()}}}});$(document).on("click","div",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.draftButton){$this.triggerButtonSaveClicked()}if(typeof builderSelectorsSettings.saveButton!="undefined"){if(builderSelectorsSettings.saveButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.saveButton)){$this.triggerButtonSaveClicked()}}}if(typeof builderSelectorsSettings.draftButton!="undefined"){if(builderSelectorsSettings.draftButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.draftButton)){$this.triggerButtonSaveClicked()}}}});$(document).ajaxSend(function(event,jqxhr,settings){if(typeof settings.data!=="undefined"){if(typeof builderSelectorsSettings.saveAction!="undefined"&&$.isFunction(settings.data.indexOf)){if(settings.data.indexOf(builderSelectorsSettings.saveAction)!==-1){$this.triggerButtonSaveClicked()}}}});setInterval(function(){$this.trigger("seo.frontend.refresh");SQ_DEBUG&&console.log("Check Blocks number: "+$lastNumberOfNodes+" = "+$currentNumberOfNodes);if($lastNumberOfNodes!==$currentNumberOfNodes){$lastNumberOfNodes=$currentNumberOfNodes;$this.triggerPageHasChanges()}},3e4);$.sq_blockseo.on("seo.task_loaded",function(){$(".sq_tasks").find("#sq_alt").remove()});$this.init();window.sq_editor=$this;$this.trigger("seo.frontend.editor_loaded");return $this}})(jQuery);
1
+ (function($){"use strict";if($.isFunction($.fn.sq_frontend)){return}$.fn.sq_frontend=function(options){var $this=this;var settings=$.extend({positions:[],minimize_height:134,maximize_height:100,top:25,bottom:0},options);$.sq_fields=$.extend({wp_form:$(".metabox-location-normal").length>0?$(".metabox-location-normal"):$("#side-sortables"),sq_box_close:$.sq_config.div.find(".sq_box_close"),sq_box_minimize:$.sq_config.div.find(".sq_box_minimize"),sq_box_maximize:$.sq_config.div.find(".sq_box_maximize"),sq_button_squirrly:$(".edit__PinnedPluginIcon-hNdeXr")},$.sq_fields);$.expr.filters.slaoffscreen=function(el){var rect=el.getBoundingClientRect();return rect.x+rect.width<0||rect.y+rect.height<0||(rect.x>window.innerWidth||rect.y>window.innerHeight)};$this.init=function(){var dragposition="";$.sq_config.div.addClass("sq_sticky");$.sq_config.div.addClass("minimized");$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_close.show();$.sq_fields.sq_box_maximize.show();var positions=JSON.parse(localStorage.positions||"{}");$(function(){$.each(positions,function(id,pos){$.sq_config.div.css(pos)});$.sq_config.div.css("height",settings.minimize_height);$.sq_config.div.css("top","auto");if($.fn.draggable){$.sq_config.div.draggable({containment:"body",handle:".sq_header",scroll:true,axis:"x",stop:function(event,ui){positions[this.id]=ui.position;localStorage.positions=JSON.stringify(positions)}})}});$.sq_fields.sq_box_minimize.on("click",function(e){e.stopPropagation();$.sq_config.div.css("height",settings.minimize_height+"px");$.sq_config.div.css("bottom",settings.bottom+"px");$.sq_config.div.css("top","auto");$.sq_config.div.addClass("minimized");$.sq_config.div.scrollTop(0);$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_maximize.show()});$.sq_fields.sq_box_close.on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});if($.sq_getCookie("sq_sla")==="off"){$.sq_fields.sq_box_close.trigger("click")}$.sq_fields.sq_box_maximize.on("click",function(){$.sq_config.div.show();if($.sq_config.div.hasClass("minimized")){$.sq_config.div.css("top",settings.top+"px");$.sq_config.div.css("height","auto");$.sq_config.div.css("bottom",0);$.sq_config.div.scrollTop(0);$.sq_config.div.removeClass("minimized");$.sq_fields.sq_box_minimize.show();$.sq_fields.sq_box_maximize.hide()}});$(".editor-writing-flow").css("height","auto");$(window).resize(function(){if(typeof $.sq_config.div!=="undefined"&&$.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}})};$this.one("seo.loaded",function(){$this.sq_VisualBuilder()});$this.one("seo.frontend.content_loaded",function(){SQ_DEBUG&&console.log("sq_frontend seo.loaded");if(!$(".components-squirrly-icon").length){$.sq_editor.createEditorButton("components-squirrly-icon")}$(".components-squirrly-icon").on("click",function(){$.sq_fields.sq_box_maximize.trigger("click");$.sq_setCookie("sq_sla","on");$(".components-squirrly-icon").hide()});$.sq_fields.sq_box_close.on("click",function(){$(".components-squirrly-icon").show()});if($.sq_getCookie("sq_sla")==="off"){$(".components-squirrly-icon").show()}else{$.sq_config.div.show()}$this.sq_listenBuilderChange();$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.new_changes")});if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}return $this};$.fn.sq_listenBuilderChange=function(){var $this=this;if(!$.sq_blockseo){return}$this.on("seo.frontend.editor_loaded seo.frontend.new_changes",function(){SQ_DEBUG&&console.log("seo.frontend.new_changes");var ed=$.sq_editor.getFrontendEditor();if(ed){if(ed.getPageTitle()!==""){$.sq_fields.wp_input_title.val(ed.getPageTitle())}$.sq_blockseo.trigger("seo.refresh")}SQ_DEBUG&&console.log("seo.frontend.new_changes DONE")});$.sq_blockseo.on("seo.refresh_click",function(){$this.checkPostAjax()});$this.on("seo.frontend.page_saved",function(){SQ_DEBUG&&console.log("seo.frontend.page_saved");var ed=$.sq_editor.getFrontendEditor();if(ed){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}var $sq_seo=[];$this.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});$.post($.sq_config.ajaxurl,{action:"sq_ajax_save_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"frontend",sq_seo:$sq_seo}).done(function(){$this.trigger("seo.frontend.new_changes")})}SQ_DEBUG&&console.log("seo.frontend.page_saved DONE")});$this.checkPostAjax=function(){return $.post($.sq_config.ajaxurl,{action:"sq_ajax_get_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID}).done(function(data){if(typeof data.url!=="undefined"){if(!$.sq_config.div.find("#new-post-slug").length){$.sq_config.div.append('<input type="hidden" id="new-post-slug" />')}$("#new-post-slug").val(data.url)}if(typeof data.post_title!=="undefined"){$.sq_fields.wp_input_title.val(data.post_title)}$this.trigger("seo.frontend.new_changes")})};if(!$.sq_config.div.find("#sq_post_title").length){$.sq_config.div.append('<input type="hidden" id="sq_post_title" />');$.sq_fields.wp_input_title=$("#sq_post_title");$this.checkPostAjax()}};$.fn.sq_VisualBuilder=function(){var $this=this;if(typeof window.sq_editor!=="undefined"){return window.sq_editor}var builderExists=false;var builderInUse="";var $builderContents=null;var $lastNumberOfNodes=0;var $currentNumberOfNodes=0;var $elementLoadingTime=null;var buildersInfo={elementor:{enabled:true,name:"elementor",hasIframe:true,iframeSelector:"#elementor-preview-iframe",parrentDiv:".elementor-editor-active"},WPBakery:{enabled:true,name:"wpbakery",hasIframe:true,iframeSelector:"#vc_inline-frame",parrentDiv:"#vc_editor"},bricks:{enabled:true,name:"bricks",hasIframe:true,iframeSelector:"#bricks-builder-iframe",parrentDiv:"#bricks-builder-iframe-wrapper"},thrive:{enabled:true,name:"thrive",hasIframe:true,iframeSelector:"#tve-editor-frame",parrentDiv:".tcb-editor-main"},divi:{enabled:true,name:"divi",hasIframe:true,iframeSelector:"#et-fb-app-frame",parrentDiv:".et_divi_builder"},oxygen:{enabled:true,name:"oxygen",hasIframe:true,iframeSelector:"#ct-artificial-viewport",parrentDiv:"#oxygen-ui"},zion:{enabled:true,name:"zion",hasIframe:true,iframeSelector:"#znpb-editor-iframe",parrentDiv:".znpb"}};var pageData={url:"",title:"",content:"",h1:"",headline:"",hasMultipleH1:false,images:""};var builderSelectorsSettings={preview:"",h1:"",container:"",containerWidget:"",containerWidgetImages:"",saveButton:"",saveAction:""};var currentNumberOfNodes=null;$this.init=function(){SQ_DEBUG&&console.log("checkBuilderExists");$this.checkBuilderExists()};$this.parseBuilders=function(){SQ_DEBUG&&console.log("Check parseBuilders "+$this.getBuilderName());switch($this.getBuilderName()){case"elementor":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseElementor();break;case"oxygen":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseOxygen();break;case"divi":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");if(typeof $.sq_config.div==="undefined"||typeof $.sq_params.low_density==="undefined"||typeof $.sq_fields.wp_title==="undefined"){$.sq_setConfig();$.sq_setParams();$.sq_setfields()}$this.parseDivi();break;case"wpbakery":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseWPBakery();break;case"zion":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseZion();break;case"thrive":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseThrive();break;case"bricks":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseBricks();break}};$this.checkBuilderExists=function(){SQ_DEBUG&&console.log("Looking for builders");$.each(Object.values(buildersInfo),function(index,builder){SQ_DEBUG&&console.log("Checking for: "+builder.name+" builder");if(builder.enabled===false){return}if(builder.hasIframe){if($this.elementExists(builder.iframeSelector)){SQ_DEBUG&&console.log("Found: "+builder.iframeSelector+" iframe");$(builder.iframeSelector).ready(function(){SQ_DEBUG&&console.log("Ready iframeSelector: "+builder.iframeSelector+" from builder "+builder.name);$this.setBuilderExists(builder.name);$builderContents=$(builder.iframeSelector).contents()[0];$this.parseBuilders()});return false}}else if($this.elementExists(builder.parrentDiv)){$builderContents=$(builder.parrentDiv).contents();$this.setBuilderExists(builder.name);return false}})};$this.elementExists=function(element,where){var $whereToLook;if(typeof where==="undefined"){$whereToLook=$(document)}else{$whereToLook=$(where)}var $element=$whereToLook.find(element);if(typeof $element!=="undefined"&&$element.length>0){return $element}return false};$this.getBuilderInfo=function(builderName){return buildersInfo[builderName]};$this.waitForElementToDisplay=function(selector,where,time,callback){if($elementLoadingTime){clearTimeout($elementLoadingTime)}var $element=$this.elementExists(selector,where);if($element){callback()}else{$elementLoadingTime=setTimeout(function(){console.log("Waiting for: "+selector);$this.waitForElementToDisplay(selector,where,time,callback)},time)}};$this.parseElementor=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#elementor-preview-iframe"],title:["h1.elementor-heading-title","h1.entry-title"],header:["h2","h3","h4","h5","h6"],container:[".elementor-section-wrap",".elementor-inner"],containerWidget:".elementor-widget-container",containerWidgetImages:["img"],saveAction:"save_builder"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();if($element.find(builderSelectorsSettings.containerWidget).length){$element=$element.find(builderSelectorsSettings.containerWidget)}$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$("#elementor-loading").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded")}},1e3)})})};$this.parseOxygen=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#ct-artificial-viewport"],title:["h1.ct-headline"],header:["div.bnb-subheading"],container:["#ct-builder"],containerWidget:".ct-inner-wrap",containerWidgetImages:[".ct-image"],saveAction:"oxygen-save-button",draftButton:"oxygen-save-button"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".ct-page-overlay").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($(".oxygen-left-button-wrap").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".oxygen-left-button-wrap").after($icon);$icon.css("position","initial");$icon.css("margin-left","2px")}}},1e3)})})};$this.parseDivi=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#et-fb-app-frame"],title:["h1.entry-title","h1.et_pb_module_header"],header:["h2","h3","h4","h5","h6"],container:["#et-boc"],containerWidget:".et_pb_section",containerWidgetImages:[".et_pb_image_wrap"],saveButton:"et_fb_ajax_save",draftButton:"et-fb-button--save-draft"};$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".et-fb-page-preloading").length){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($(".et-fb-button--help").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".et-fb-button--help").after($icon);$icon.css("position","initial");$icon.css("margin-right","5px")}}},1e3)})})};$this.parseWPBakery=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#vc_inline-frame"],title:["h1.entry-title","h1.wp-block-post-title",".vc_container-block h1"],header:[".vc_container-block h2,.vc_container-block h3,.vc_container-block h4,.vc_container-block h5,.vc_container-block h6"],container:[".vc-main-sortable-container"],containerWidget:".wpb_wrapper",containerWidgetImages:[".vc_single_image-img",".wpb_gallery_slides"],saveAction:"vc_save"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$("#vc_preloader").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if(!$("body > #postsquirrly").length){$("#postsquirrly").appendTo("body")}if($(".vc_navbar-header").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".vc_navbar-header").append($icon);$icon.css("position","initial");$icon.css("margin-top","10px")}}},1e3)})})};$this.parseThrive=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#tve-editor-frame"],title:["h1"],header:["h2","h3","h4","h5","h6"],container:["#tve_editor"],containerWidget:".thrv_wrapper",containerWidgetImages:["img"],saveAction:"tcb_editor_ajax"};$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.children(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$("#tve-page-loader").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($("#sidebar-bottom").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$("#sidebar-bottom").prepend($icon);$icon.css("position","initial");$icon.css("margin-right","2px")}}},1e3)})})};$this.parseZion=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#znpb-editor-iframe"],title:["h1.entry-title","h1.zb-el-zionHeading .mce-content-body"],header:["h2.zb-el-zionHeading .mce-content-body","h3.zb-el-zionHeading .mce-content-body","h4.zb-el-zionHeading .mce-content-body","h5.zb-el-zionHeading .mce-content-body","h6.zb-el-zionHeading .mce-content-body"],container:[".znpb-preview-page-wrapper"],containerWidget:".zb-section__innerWrapper",containerWidgetImages:[".znpb-element__wrapper img"],saveButton:".znpb-editor-header__page-save-wrapper--save",draftButton:".znpb-editor-header__page-save-wrapper"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".znpb-loading-wrapper-gif").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($(".znpb-editor-header__first").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$(".znpb-editor-header__first").append($icon);$icon.css("position","initial");$icon.css("margin-top","5px")}}},1e3)})})};$this.parseBricks=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#bricks-builder-iframe"],title:["h1.entry-title","h1.brxe-post-title","h1.brxe-heading"],header:["h2","h3","h4","h5","h6"],container:[".brx-body"],containerWidget:"#brx-content",containerWidgetImages:[".brxe-image"],saveAction:"bricks_save_post"};$.each(builderSelectorsSettings.container,function(index,container){$this.waitForElementToDisplay(container,$builderContents,$.sq_config.delay_seo,function(){var $container=$($builderContents).find(container);var $elementorWidgets=$container.find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$.each(builderSelectorsSettings.title,function(index,value){if($this.getPageTitle()===""&&$this.elementExists(value,$element)){$this.setPageTitle($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.getPageHeadline()===""&&$this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}});$element.remove()});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".et-fb-page-preloading").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded");if($("#bricks-toolbar").length&&$("button.components-squirrly-icon").length){var $icon=$("button.components-squirrly-icon");$("#bricks-toolbar .group-wrapper.left").append($icon);$icon.css("position","initial");$icon.css("margin-left","2px")}}},1e3)})})};$this.setBuilderExists=function(builderName){builderExists=true;builderInUse=builderName};$this.getBuilderExists=function(){return builderExists};$this.getBuilderName=function(){return builderInUse};$this.getBuilderContainer=function(){if($(builderSelectorsSettings.preview[0]).contents().find(builderSelectorsSettings.container[0]).length>0){return $(builderSelectorsSettings.preview[0]).contents().find(builderSelectorsSettings.container[0]).first()}if(builderSelectorsSettings.preview.length>0){return $(builderSelectorsSettings.preview[0]).contents().find("body")}return false};$this.getPageData=function(){return pageData};$this.getPageURL=function(){return pageData.url};$this.getPageTitle=function(){return pageData.title};$this.getMultipleH1=function(){return pageData.hasMultipleH1};$this.getH1=function(){return pageData.h1};$this.getPageContent=function(){return pageData.content};$this.getPageImages=function(){return pageData.images};$this.getPageHeadline=function(){return pageData.headline};$this.setPageURL=function(url){pageData.url=url};$this.setPageTitle=function(title){pageData.title=title};$this.setH1=function(h1Text){pageData.h1=h1Text};$this.setPageHeadline=function(headline){pageData.headline=headline};$this.setMultipleH1=function(flag){pageData.hasMultipleH1=flag};$this.setPageContent=function(content){pageData.content=content};$this.setPageImages=function(images){pageData.images=images};$this.triggerPageHasChanges=function(){SQ_DEBUG&&console.log("triggerPageHasChanges");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.new_changes")};$this.triggerButtonSaveClicked=function(){SQ_DEBUG&&console.log("triggerButtonSaveClicked");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.page_saved")};$this.on("seo.frontend.refresh",function(){$this.parseBuilders()});$(document).on("click","button",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.saveButton){$this.triggerButtonSaveClicked()}if(typeof builderSelectorsSettings.saveButton!="undefined"){if(builderSelectorsSettings.saveButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.saveButton)){$this.triggerButtonSaveClicked()}}}});$(document).on("click","div",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.draftButton){$this.triggerButtonSaveClicked()}if(typeof builderSelectorsSettings.saveButton!="undefined"){if(builderSelectorsSettings.saveButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.saveButton)){$this.triggerButtonSaveClicked()}}}if(typeof builderSelectorsSettings.draftButton!="undefined"){if(builderSelectorsSettings.draftButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.draftButton)){$this.triggerButtonSaveClicked()}}}});$(document).ajaxSend(function(event,jqxhr,settings){if(typeof settings.data!=="undefined"){if(typeof builderSelectorsSettings.saveAction!="undefined"&&$.isFunction(settings.data.indexOf)){if(settings.data.indexOf(builderSelectorsSettings.saveAction)!==-1){$this.triggerButtonSaveClicked()}}}});setInterval(function(){$this.trigger("seo.frontend.refresh");SQ_DEBUG&&console.log("Check Blocks number: "+$lastNumberOfNodes+" = "+$currentNumberOfNodes);if($lastNumberOfNodes!==$currentNumberOfNodes){$lastNumberOfNodes=$currentNumberOfNodes;$this.triggerPageHasChanges()}},3e4);$.sq_blockseo.on("seo.task_loaded",function(){$(".sq_tasks").find("#sq_alt").remove()});$this.init();window.sq_editor=$this;$this.trigger("seo.frontend.editor_loaded");return $this}})(jQuery);
view/assets/js/assistant/squirrly.min.js CHANGED
@@ -1 +1 @@
1
- if(typeof SQ_DEBUG==="undefined"){var SQ_DEBUG=false}(function($){"use strict";if($.isFunction($.fn.sq_main)||typeof $.sq_config==="undefined"){return}$.sq_initialized=false;$.sq_setConfig=function(){$.sq_config=$.extend({div:$("#postsquirrly"),editor:false,editor_type:false,active_editor:false,token:"",url_token:"",sq_apiurl:"//api.squirrly.co/v2/",ajaxurl:"",sq_nonce:"",sq_version:"",is_gutenberg:0,referer:"",keyword:"",lsi:[],language:"en-US",subscription_active:1,subscription_paid:0,sq_keywordtag:"",postID:0,prevNonce:"",user_url:"http://"+document.domain,research_language:"us",timeout_seo:null,timeout_search:null,timeout_research:null,sq_windowerror:false,interval_seo:null,calltimeout:5e3,delay_seo:3e4,cookie_expires:60*24*2,nrb:8,after_insert:'<div><br style="clear:both" /></div>',firsttime:false,manual:false,silent:false,briefcase:false,sq_cache:[]},$.sq_config)};$.sq_setParams=function(){$.sq_params=$.extend({low_density:1,high_density:2.5,high_density_title:35,low_density_title:2.5,min_length_title:10,max_length_title:75,min_length_body:80,max_length_body:0,min_length_description:20,max_length_description:160,begin_last_max_chars:400,max_word_density:3,beginning_length:255,ending_length:255,min_words_between_keywords:70,min_chars_between_keywords:200,max_keywords:5},$.sq_params)};$.sq_setfields=function(){$.sq_fields=$.extend({wp_title:$("#titlediv"),wp_input_title:$("#post").find("#title"),wp_postimagediv:$("#postimagediv"),wp_content_wrap:$(".wp-editor-wrap"),wp_content:$(".wp-editor-area"),wp_publish:$("#publish"),wp_postarea:$(".postarea"),wp_thumbnail_alt:$("#attachment_alt"),wp_thumbnail:$(".wp_attachment_image"),content_html:$("#content-html"),content_tmce:$("#content-tmce"),content_html_wp3:$("#edButtonHTML"),content_tmce_wp3:$("#edButtonPreview"),sq_box:$.sq_config.div.find(".sq_box"),sq_preloading:$.sq_config.div.find("#sq_preloading"),sq_preloading_keyword:$.sq_config.div.find("#sq_preloading_keyword"),sq_errorloading:$.sq_config.div.find("#sq_errorloading"),div_blocksearch:$.sq_config.div.find("#sq_blocksearch"),div_blockseo:$.sq_config.div.find("#sq_blockseo"),div_blockbriefacse:$("#sq_briefcase"),div_blocksnippet:$("#sq_blocksnippet"),sq_blocktabs:$.sq_config.div.find("#sq_block_tabs"),sq_blocksteps:$.sq_config.div.find(".sq_block_steps"),sq_search:$.sq_config.div.find(".sq_search"),sq_search_img_filter:$.sq_config.div.find("#sq_search_img_filter"),sq_search_second:$.sq_config.div.find("#sq_search_second"),sq_keyword_second:$.sq_config.div.find("#sq_keyword_second"),sq_keyword_second_check:$.sq_config.div.find("#sq_keyword_second_check"),sq_briefcase_icon:$.sq_config.div.find("#sq_briefcase_icon"),sq_briefcase_list:$.sq_config.div.find("#sq_briefcase_list"),sq_research_link:$.sq_config.div.find("#sq_research_link"),sq_selectit:$.sq_config.div.find("#sq_selectit"),sq_types:$.sq_config.div.find("#sq_types"),sq_type_img:$.sq_config.div.find("#sq_type_img"),sq_type_twitter:$.sq_config.div.find("#sq_type_twitter"),sq_type_news:$.sq_config.div.find("#sq_type_news"),sq_type_blog:$.sq_config.div.find("#sq_type_blog"),sq_type_wiki:$.sq_config.div.find("#sq_type_wiki"),sq_type_local:$.sq_config.div.find("#sq_type_local"),sq_research:$("#sq_research"),sq_blog_preview:$('<div id="sq_blog_preview"><div id="sq_blog_preview_close" >x</div><div id="sq_blog_preview_title"></div><div id="sq_blog_preview_body"></div></div><div id="sq_blog_preview_overlay"></div>'),sq_search_img_nolicence:$("#sq_search_img_nolicence"),sq_keyword_div:$.sq_config.div.find(".sq_keyword"),sq_keyword:$.sq_config.div.find("#sq_keyword"),sq_keyword_score:$.sq_config.div.find("#sq_keyword_score"),sq_keyword_check:$.sq_config.div.find("#sq_keyword_check"),sq_keyword_nokeyword:$.sq_config.div.find("#sq_nokeyword"),sq_keywords_research:$("#sq_keywords_research"),sq_keywords_research_add:$(".sq_keywords_research_add"),sq_keywords_research_submit:$(".sq_keywords_research_submit"),sq_keywords_research_clear:$(".sq_keywords_research_clear"),sq_research_close:$("#sq_research_close")},$.sq_fields)};$.isDom=function(inp){return inp&&inp.tagName&&inp.nodeName&&inp.ownerDocument&&inp.removeAttribute};$.sq_isGutenberg=function(){if(typeof wp!=="undefined"&&typeof wp.data!=="undefined"&&typeof wp.data.select("core/editor")!=="undefined"&&typeof wp.blocks!=="undefined"){if(wp.data.select("core/editor")&&$.isFunction(wp.data.select("core/editor").getEditedPostAttribute)&&$(".block-editor").length>0){return true}}return false};$.sq_isDiviBuilder=function(){if($("#et_pb_layout:visible").length>0){return true}return false};$.sq_getBuilderEditorContainer=function(){if($.sq_isGutenberg()){if($(".block-editor-block-list__layout.is-root-container").length>0){return $(".block-editor-block-list__layout.is-root-container")}}else if($.sq_isFrontend()){if($.sq_editor.getFrontendEditor()&&$.sq_editor.getFrontendEditor().getBuilderContainer()){return $.sq_editor.getFrontendEditor().getBuilderContainer()}}else if($.sq_config.active_editor){return $.sq_config.active_editor}return $("<div></div>")};$.sq_isFrontend=function(){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}if($.sq_config.div.length>0&&$.sq_config.div.hasClass("sq_frontend")){return true}return false};$.sq_getDomain=function(url,ret,separator){var domainName="";if(typeof ret==="undefined"){var ret=[8,10]}if(typeof separator==="undefined"){var separator=""}url=url.split(/([a-z0-9_\-]{1,5}:\/\/)?(([a-z0-9_\-]{1,}):([a-z0-9_\-]{1,})\@)?((www\.)|([a-z0-9_\-]{1,}\.)+)?([a-z0-9_\-]{3,})((\.[a-z]{2,4})(:(\d{1,5}))?)(\/([a-z0-9_\-]{1,}\/)+)?([a-z0-9_\-]{1,})?(\.[a-z]{2,})?(\?)?(((\&)?[a-z0-9_\-]{1,}(\=[a-z0-9_\-]{1,})?)+)?/g);$.each(ret,function(key,val){if(typeof url[val]!=="undefined"){domainName=domainName+(domainName!==""?separator:"")+url[val]}});return domainName};if(!$.sq_showMessage)$.sq_showMessage=function(text,time){$(".sq_notice").hide();var $div=$('<div class="sq_notice sq_fixed" ><div>'+text+"</div></div>");$("body").prepend($div);if(typeof time==="undefined"){time=2e3}setTimeout(function(){$div.remove()},time);return $div.find("div")};if(!$.sq_getHashParam)$.sq_getHashParam=function(key){if(location.href.indexOf("#")!==-1&&location.href.indexOf("#"+key)!==-1&&window.location.href.split("#")[1]!==""){var results=new RegExp("[\\?&#]"+key+"=([^&#]*)").exec(window.location.href);if(results){return results[1]||0}else{var results=new RegExp("[\\?&#]"+key+"[^&#]*").exec(window.location.href);if(results){return"1"}}}return false};if(!$.sq_setHashParam)$.sq_setHashParam=function(key){var separator="";if(!$.sq_getHashParam(key)){if(location.href.indexOf("#")!==-1){if(location.href.split("#")[1]!=="")separator="&"}else{separator="#"}window.location.href=window.location.href+separator+key}return false};if(!$.sq_deleteHashParam)$.sq_deleteHashParam=function(key){if($.sq_getHashParam(key)){window.location.href=window.location.href.replace("&"+key,"")}if($.sq_getHashParam(key)){window.location.href=window.location.href.replace(key,"")}return false};$.sq_formatNumber=function(number){var x,x1,x2;number+="";x=number.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,"$1"+","+"$2")}return x1+x2};$.sq_clearText=function(str){if(typeof str!=="undefined"&&str.length>0){str=$.sq_clearDiacritics(str);str=$.sq_stripTags(str)}return str};$.sq_umlautsText=function(str){str=str.replace("ä","ae");str=str.replace("ö","oe");str=str.replace("ß","ss");str=str.replace("ü","ue");str=str.replace("æ","ae");str=str.replace("ø","oe");str=str.replace("å","aa");str=str.replace("é","e");str=str.replace("è","e");return str};$.sq_stripTags=function(str){if(typeof str!=="undefined"&&str.length>0){str=$("<div />").html(str).text()}return str};$.sq_stripShortcode=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/\\[[^\\]]+\\]/g,"")}return str};$.sq_stripChars=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/[-.\/]+/g," ");var pattern=$.sq_regex("[^\\p{L}\\d\\s]");if(pattern){str=str.replace(pattern,"")}str=str.replace(/\s{2,}/g," ");str=str.trim()}return str};$.sq_clearDiacritics=function(str){if(typeof sqDiacritics!=="undefined"&&typeof str=="string"){return sqDiacritics.clear(str)}return str};$.sq_getCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return decodeURIComponent(c.substring(nameEQ.length,c.length))}return null};$.sq_setCookie=function(name,value){value=value.replace(new RegExp("\\\\","g"),"");document.cookie=name+"="+encodeURIComponent(value)+"; expires="+$.sq_config.cookie_expires+"; path=/"};$.sq_uriEncode=function(url){return url.replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")};$.sq_getCache=function(name){if(typeof $.sq_config.sq_cache!=="undefined")if(typeof $.sq_config.sq_cache[name]!=="undefined")return $.sq_config.sq_cache[name];return""};$.sq_setCache=function(name,value){if(typeof name!=="undefined"&&typeof $.sq_config.sq_cache!=="undefined"){$.sq_config.sq_cache[name]=value}};$.sq_strEqual=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b,undefined,{sensitivity:"accent"})===0:a===b};$.sq_isArray=function(input){return typeof input==="object"&&input instanceof Array};$.sq_regex=function(striptag){if(typeof XRegExp!=="undefined"){return XRegExp(striptag,"gi")}return false};$.fn.sq_loading=function(name){var $this=this;if(typeof name==="undefined"){$this.sq_classname="sq_minloading"}else{$this.sq_classname=name}clearTimeout($.sq_loadprocess);$this.addClass($this.sq_classname);return $this};$.fn.sq_doneloading=function(name){var $this=this;if(typeof name==="undefined"){name="sq_minloading"}clearTimeout($.sq_loadprocess);$this.removeClass(name);$this.find(".sq_error_message").remove();return $this};$.sq_checkin=function(){return $.post($.sq_config.ajaxurl,{action:"sla_checkin",sq_nonce:$.sq_config.sq_nonce,output:"json"}).done(function(response){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_preloading_keyword.show();if(typeof response.error!=="undefined"){if(response.error==="invalid_token"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;"><a href="admin.php?page=sq_dashboard" style="color: #df3434;font-size: 13px;font-weight: 500;">'+$.sq_config.__noconnection+"</a></div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}else if(response.error==="maintenance"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;font-size: 12px;">'+$.sq_config.__maintenance+"</div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}}if(typeof response.data!=="undefined"){var triggerLoadInterval=setInterval(function(){if($.sq_triggerLoad("seo.loaded")){clearInterval(triggerLoadInterval)}},1e3)}}).fail(function(){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_errorloading.show()})};$.sq_triggerLoad=function(message){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}if(typeof $.sq_blockbriefcase!=="undefined"&&typeof $.sq_blockseo!=="undefined"&&typeof $.sq_blocksearch!=="undefined"){$.sq_blockbriefcase.trigger(message);$.sq_blockseo.trigger(message);$.sq_blocksearch.trigger(message);$.sq_config.div.trigger(message);return true}else{return false}};$.sq_savePost=function(){var $sq_seo=[];$.sq_config.div.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.post($.sq_config.ajaxurl,{action:"sq_ajax_save_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"backend",sq_seo:$sq_seo})};$.sq_editor={getIframeEditor:function(element){var $this=$("#wpcontent");if(typeof element==="undefined"){element="#tinymce"}if($.sq_isGutenberg()){if($this.find("#editor").find("div.edit-post-visual-editor").length>0){return $this.find("#editor").find("div.edit-post-visual-editor")}if($this.find("#editor").find("div.edit-post-text-editor__body").length>0){return $this.find("#editor").find("div.edit-post-text-editor__body")}}if($this.find("#post").length>0&&$this.find("#post").find("iframe").length>0){if($this.find(".mce-container").find("iframe").contents().find(element+".has-focus").length>0){return $(".mce-container").find("iframe").contents().find(element+".has-focus")}if($this.find(".mce-container").find("iframe").contents().find(element).length>0){return $this.find(".mce-container").find("iframe").contents().find(element)}if($this.find("#content_ifr").contents().find(element).length>0){return $this.find("#content_ifr").contents().find(element)}if($this.find(".cke_contents").find("iframe").contents().find("body").length>0){return $this.find(".cke_contents").find("iframe").contents().find("body")}if($this.find("#cke_wysiwyg_frame").contents().find("body").length>0){return $this.find("#cke_wysiwyg_frame").contents().find("body")}}return false},getTinymceEditor:function(ed){var editor;if(typeof ed!=="undefined"&&typeof ed==="object"){editor=ed;if(typeof editor.activeEditor==="object")editor=editor.activeEditor}else{if(typeof tinyMCE==="object"){editor=tinyMCE;if(typeof tinyMCE.get("content")!=="undefined"){editor=tinyMCE.get("content")}else{if(typeof tinyMCE.activeEditor==="object"&&tinyMCE.activeEditor!==null){editor=tinyMCE.activeEditor}else{if(document.getElementById("content")!==null){editor=new tinymce.Editor("content");editor.contentCSS=["/wp-content/plugins/squirrly-seo/themes/default/css/sq_frontend.css"]}}}}}return editor},getBlockEditor:function(action){if($.sq_isGutenberg()){if(action==="select"){var ed=window.wp.data.select("core/editor")}else{var ed=window.wp.data.dispatch("core/editor")}return ed}return false},getFrontendEditor:function(action){if($.sq_isFrontend()){if(typeof window.sq_editor!=="undefined"){return window.sq_editor}}return false},createEditorButton:function(name){if($.sq_isFrontend()&&$("."+name).length==0){$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}else if($.sq_isGutenberg()){if($(".edit-post-more-menu").length>0){$(".edit-post-more-menu").before('<button type="button" class="sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}else if($(".interface-pinned-items").length>0){$(".interface-pinned-items").after('<button type="button" class="sq-ml-2 sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}else if($(".edit-post-header__settings").length>0){$(".edit-post-header__settings").append('<button type="button" class="sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}}else{$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}},listenHtml:function(e){if(e.originalEvent.dataTransfer===null)return;var img=e.originalEvent.dataTransfer.getData("text");if($("#"+$(img).attr("id")).parent("li").attr("class")==="sq_search_img_li"){$.sq_fields.wp_content.val($.sq_fields.wp_content.val()+$.sq_blocksearch.packimg($(img).attr("id"),$("#"+$(img).attr("id")).parent("li").attr("src"),$("#"+$(img).attr("id")).parent("li")))}},listen:function(e){if($("#"+e.target.id).parent("li").attr("class")==="sq_search_img_li"){if($.sq_editor.lastimage!==$("#"+e.target.id).parent("li").attr("src")){$.sq_editor.insert($.sq_blocksearch.packimg(e.target.id,$("#"+e.target.id).parent("li").attr("src"),$("#"+e.target.id).parent("li")))}}$.sq_editor.lastimage=$("#"+e.target.id).parent("li").attr("src")},setContent:function(content,ed){if($.sq_config.editor_type==="tinymce"){var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"){editor.setContent(content)}}},insert:function(content,ed){if($.sq_isDiviBuilder()||$.sq_isFrontend()){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("We've copied the code and you can paste it in the Page Builder.")}catch(e){alert("You can copy the box and paste it in the Page Builder")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#et_pb_layout").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#et_pb_layout").offset().top-50},"slow")}}else if($("#wpb_visual_composer:visible").length>0){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Visual Composer detected. We've copied the code and you can paste it in Visual Composer Editor.")}catch(e){alert("Visual Composer detected. You can copy the box and paste it in Visual Composer")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#wpb_visual_composer").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#wpb_visual_composer").offset().top-50},"slow")}}else if($("#elementor-switch-mode-input").length>0&&$("#elementor-switch-mode-input").val()=="builder"){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Elementor is detected. We've copied the code and you can paste it in Elementor Text Editor.")}catch(e){alert("Elementor detected. You can copy the box and paste it in Elementor Text Editor")}input.remove()}else if($("div.wp-editor-container").find("div.cs-editor-container.pro").length>0){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Themeco PRO is detected. We've copied the code and you can paste it in Themeco PRO Text Editor.")}catch(e){alert("Themeco PRO detected. You can copy the box and paste it in Themeco PRO Text Editor")}input.remove()}else if($.sq_config.editor_type==="tinymce"){if(typeof tinyMCE==="object"){var editor=tinyMCE;if(typeof editor.activeEditor==="object"){editor=editor.activeEditor}}if(typeof editor!=="undefined"&&editor!==null){if(typeof editor.selection!=="undefined"){editor.selection.setContent(content)}else{editor.setContent(content)}$.sq_blockseo.callback()}}else{$.sq_fields.wp_content.val($.sq_fields.wp_content.val().substr(0,$.sq_fields.wp_content[0].selectionStart)+content+$.sq_fields.wp_content.val().substr($.sq_fields.wp_content[0].selectionEnd));$.sq_blockseo.callback()}}};$.sq_tinymce={callback:function(ed){if(ed.id!=="content")return false;var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"&&typeof $.sq_blockseo==="object"){if($.sq_config.editor_type==="tinymce"){$.sq_blockseo.callback()}}},setup:function(ed){},addEvents:function(ed,dom){if(typeof $.sq_blockseo!=="undefined"&&typeof $.sq_editor==="object"&&!$.isDom($.sq_editor)){if($.sq_config.active_editor=$.sq_editor.getIframeEditor()){$.sq_blockseo.callback()}}}};$.fn.sq_main=function(){var $this=this;$this.load=function(){$.sq_setfields();$.sq_setParams();$.sq_initialized=true;$.sq_loadtabs();$.sq_highlight=function(element,text,params){var options=$.extend({element:"mark","acrossElements ":1,ignoreJoiners:1,diacritics:false,separateWordSearch:false,caseSensitive:false,accuracy:{value:"exactly",limiters:["`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',",",".","<",">","/","?","“","”"]},ignorePunctuation:[" ",",","`","~","!","@","#","$","%","^","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',"<",">","/","?"],counter:1},params);if(typeof element!=="undefined"&&element.html()!==""&&$.isFunction(element.sq_unmark)){if(typeof options.range!=="undefined"){element.sq_unmark({done:function(){element.sq_markRanges(options.range,options)}})}else{element.sq_unmark({done:function(){element.sq_mark(text,options)}})}}};$.sq_removeHighlight=function(element){if(typeof element!=="undefined"&&$.isFunction(element.sq_unmark)&&!$.sq_isDiviBuilder()){element.sq_unmark()}};if($.isFunction($.sq_fields.sq_briefcase_list.sq_briefcase)){$.sq_blockbriefcase=$.sq_fields.sq_briefcase_list.sq_briefcase([])}if($.isFunction($.sq_config.div.sq_frontend)){$.sq_frontend=$.sq_config.div.sq_frontend([]);$.sq_frontend.init()}if($.sq_fields.div_blockseo.length>0&&$.isFunction($.sq_fields.div_blockseo.sq_blockseo)){$.sq_blockseo=$.sq_fields.div_blockseo.sq_blockseo([])}if($.sq_fields.div_blocksearch.length>0&&$.isFunction($.sq_fields.div_blocksearch.sq_blocksearch)){$.sq_blocksearch=$.sq_fields.div_blocksearch.sq_blocksearch([])}if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);if(!$.sq_frontend){$.sq_floating.init()}}$.sq_checkin()};return $this};$.sq_loadtabs=function(){$.sq_fields.sq_blocktabs.find("div").on("click",function(){$.sq_fields.sq_selectit.trigger("click");$.sq_fields.sq_blocktabs.find("div").removeClass("sq_active");$(this).addClass("sq_active");$(".sq_block_steps").hide();$($(this).data("target")).show()});$.sq_fields.sq_blocksteps.find(".sq_nextstep").on("click",function(){$('.sq_block_tab[data-target="'+$(this).data("target")+'"]').trigger("click")})};$.sq_initialize=function(){$.sq_setConfig();if(typeof $.sq_config.div!=="undefined"&&!$.sq_initialized&&$.sq_config.div.length>0){$.sq_config.div.sq_main().load()}};$(document).ready(function(){$.sq_initialize()});window.onerror=function(){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}};$(document).ajaxSuccess(function(event){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}})})(jQuery);
1
+ if(typeof SQ_DEBUG==="undefined"){var SQ_DEBUG=false}(function($){"use strict";if($.isFunction($.fn.sq_main)||typeof $.sq_config==="undefined"){return}$.sq_initialized=false;$.sq_setConfig=function(){$.sq_config=$.extend({div:$("#postsquirrly"),editor:false,editor_type:false,active_editor:false,token:"",url_token:"",sq_apiurl:"//api.squirrly.co/v2/",ajaxurl:"",sq_nonce:"",sq_version:"",is_gutenberg:0,referer:"",keyword:"",lsi:[],language:"en-US",subscription_active:1,subscription_paid:0,sq_keywordtag:"",postID:0,prevNonce:"",user_url:"http://"+document.domain,research_language:"us",timeout_seo:null,timeout_search:null,timeout_research:null,sq_windowerror:false,interval_seo:null,calltimeout:5e3,delay_seo:3e4,cookie_expires:60*24*2,nrb:8,after_insert:'<div><br style="clear:both" /></div>',firsttime:false,manual:false,silent:false,briefcase:false,sq_cache:[]},$.sq_config)};$.sq_setParams=function(){$.sq_params=$.extend({low_density:1,high_density:2.5,high_density_title:35,low_density_title:2.5,min_length_title:10,max_length_title:75,min_length_body:80,max_length_body:0,min_length_description:20,max_length_description:160,begin_last_max_chars:400,max_word_density:3,beginning_length:255,ending_length:255,min_words_between_keywords:70,min_chars_between_keywords:200,max_keywords:5},$.sq_params)};$.sq_setfields=function(){$.sq_fields=$.extend({wp_title:$("#titlediv"),wp_input_title:$("#post").find("#title"),wp_postimagediv:$("#postimagediv"),wp_content_wrap:$(".wp-editor-wrap"),wp_content:$(".wp-editor-area"),wp_publish:$("#publish"),wp_postarea:$(".postarea"),wp_thumbnail_alt:$("#attachment_alt"),wp_thumbnail:$(".wp_attachment_image"),content_html:$("#content-html"),content_tmce:$("#content-tmce"),content_html_wp3:$("#edButtonHTML"),content_tmce_wp3:$("#edButtonPreview"),sq_box:$.sq_config.div.find(".sq_box"),sq_preloading:$.sq_config.div.find("#sq_preloading"),sq_preloading_keyword:$.sq_config.div.find("#sq_preloading_keyword"),sq_errorloading:$.sq_config.div.find("#sq_errorloading"),div_blocksearch:$.sq_config.div.find("#sq_blocksearch"),div_blockseo:$.sq_config.div.find("#sq_blockseo"),div_blockbriefacse:$("#sq_briefcase"),div_blocksnippet:$("#sq_blocksnippet"),sq_blocktabs:$.sq_config.div.find("#sq_block_tabs"),sq_blocksteps:$.sq_config.div.find(".sq_block_steps"),sq_search:$.sq_config.div.find(".sq_search"),sq_search_img_filter:$.sq_config.div.find("#sq_search_img_filter"),sq_search_second:$.sq_config.div.find("#sq_search_second"),sq_keyword_second:$.sq_config.div.find("#sq_keyword_second"),sq_keyword_second_check:$.sq_config.div.find("#sq_keyword_second_check"),sq_briefcase_icon:$.sq_config.div.find("#sq_briefcase_icon"),sq_briefcase_list:$.sq_config.div.find("#sq_briefcase_list"),sq_research_link:$.sq_config.div.find("#sq_research_link"),sq_selectit:$.sq_config.div.find("#sq_selectit"),sq_types:$.sq_config.div.find("#sq_types"),sq_type_img:$.sq_config.div.find("#sq_type_img"),sq_type_twitter:$.sq_config.div.find("#sq_type_twitter"),sq_type_news:$.sq_config.div.find("#sq_type_news"),sq_type_blog:$.sq_config.div.find("#sq_type_blog"),sq_type_wiki:$.sq_config.div.find("#sq_type_wiki"),sq_type_local:$.sq_config.div.find("#sq_type_local"),sq_research:$("#sq_research"),sq_blog_preview:$('<div id="sq_blog_preview"><div id="sq_blog_preview_close" >x</div><div id="sq_blog_preview_title"></div><div id="sq_blog_preview_body"></div></div><div id="sq_blog_preview_overlay"></div>'),sq_search_img_nolicence:$("#sq_search_img_nolicence"),sq_keyword_div:$.sq_config.div.find(".sq_keyword"),sq_keyword:$.sq_config.div.find("#sq_keyword"),sq_keyword_score:$.sq_config.div.find("#sq_keyword_score"),sq_keyword_check:$.sq_config.div.find("#sq_keyword_check"),sq_keyword_nokeyword:$.sq_config.div.find("#sq_nokeyword"),sq_keywords_research:$("#sq_keywords_research"),sq_keywords_research_add:$(".sq_keywords_research_add"),sq_keywords_research_submit:$(".sq_keywords_research_submit"),sq_keywords_research_clear:$(".sq_keywords_research_clear"),sq_research_close:$("#sq_research_close")},$.sq_fields)};$.isDom=function(inp){return inp&&inp.tagName&&inp.nodeName&&inp.ownerDocument&&inp.removeAttribute};$.sq_isGutenberg=function(){if(typeof wp!=="undefined"&&typeof wp.data!=="undefined"&&typeof wp.data.select("core/editor")!=="undefined"&&typeof wp.blocks!=="undefined"){if(wp.data.select("core/editor")&&$.isFunction(wp.data.select("core/editor").getEditedPostAttribute)&&$(".block-editor").length>0){return true}}return false};$.sq_isDiviBuilder=function(){if($("#et_pb_layout:visible").length>0){return true}return false};$.sq_getBuilderEditorContainer=function(){if($.sq_isGutenberg()){if($(".block-editor-block-list__layout.is-root-container").length>0){return $(".block-editor-block-list__layout.is-root-container")}}else if($.sq_isFrontend()){if($.sq_editor.getFrontendEditor()&&$.sq_editor.getFrontendEditor().getBuilderContainer()){return $.sq_editor.getFrontendEditor().getBuilderContainer()}}else if($.sq_config.active_editor){return $.sq_config.active_editor}return $("<div></div>")};$.sq_isFrontend=function(){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}if($.sq_config.div.length>0&&$.sq_config.div.hasClass("sq_frontend")){return true}return false};$.sq_getDomain=function(url,ret,separator){var domainName="";if(typeof ret==="undefined"){var ret=[8,10]}if(typeof separator==="undefined"){var separator=""}url=url.split(/([a-z0-9_\-]{1,5}:\/\/)?(([a-z0-9_\-]{1,}):([a-z0-9_\-]{1,})\@)?((www\.)|([a-z0-9_\-]{1,}\.)+)?([a-z0-9_\-]{3,})((\.[a-z]{2,4})(:(\d{1,5}))?)(\/([a-z0-9_\-]{1,}\/)+)?([a-z0-9_\-]{1,})?(\.[a-z]{2,})?(\?)?(((\&)?[a-z0-9_\-]{1,}(\=[a-z0-9_\-]{1,})?)+)?/g);$.each(ret,function(key,val){if(typeof url[val]!=="undefined"){domainName=domainName+(domainName!==""?separator:"")+url[val]}});return domainName};if(!$.sq_showMessage)$.sq_showMessage=function(text,time){$(".sq_notice").hide();var $div=$('<div class="sq_notice sq_fixed" ><div>'+text+"</div></div>");$("body").prepend($div);if(typeof time==="undefined"){time=2e3}setTimeout(function(){$div.remove()},time);return $div.find("div")};if(!$.sq_getHashParam)$.sq_getHashParam=function(key){if(location.href.indexOf("#")!==-1&&location.href.indexOf("#"+key)!==-1&&window.location.href.split("#")[1]!==""){var results=new RegExp("[\\?&#]"+key+"=([^&#]*)").exec(window.location.href);if(results){return results[1]||0}else{var results=new RegExp("[\\?&#]"+key+"[^&#]*").exec(window.location.href);if(results){return"1"}}}return false};if(!$.sq_setHashParam)$.sq_setHashParam=function(key){var separator="";if(!$.sq_getHashParam(key)){if(location.href.indexOf("#")!==-1){if(location.href.split("#")[1]!=="")separator="&"}else{separator="#"}window.location.href=window.location.href+separator+key}return false};if(!$.sq_deleteHashParam)$.sq_deleteHashParam=function(key){if($.sq_getHashParam(key)){window.location.href=window.location.href.replace("&"+key,"")}if($.sq_getHashParam(key)){window.location.href=window.location.href.replace(key,"")}return false};$.sq_formatNumber=function(number){var x,x1,x2;number+="";x=number.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,"$1"+","+"$2")}return x1+x2};$.sq_clearText=function(str){if(typeof str!=="undefined"&&str.length>0){str=$.sq_clearDiacritics(str);str=$.sq_stripTags(str)}return str};$.sq_umlautsText=function(str){str=str.replace("ä","ae");str=str.replace("ö","oe");str=str.replace("ß","ss");str=str.replace("ü","ue");str=str.replace("æ","ae");str=str.replace("ø","oe");str=str.replace("å","aa");str=str.replace("é","e");str=str.replace("è","e");return str};$.sq_stripTags=function(str){if(typeof str!=="undefined"&&str.length>0){str=$("<div />").html(str).text()}return str};$.sq_stripShortcode=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/\\[[^\\]]+\\]/g,"")}return str};$.sq_stripChars=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/[-.\/]+/g," ");var pattern=$.sq_regex("[^\\p{L}\\d\\s]");if(pattern){str=str.replace(pattern,"")}str=str.replace(/\s{2,}/g," ");str=str.trim()}return str};$.sq_clearDiacritics=function(str){if(typeof sqDiacritics!=="undefined"&&typeof str=="string"){return sqDiacritics.clear(str)}return str};$.sq_getCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return decodeURIComponent(c.substring(nameEQ.length,c.length))}return null};$.sq_setCookie=function(name,value){value=value.replace(new RegExp("\\\\","g"),"");document.cookie=name+"="+encodeURIComponent(value)+"; expires="+$.sq_config.cookie_expires+"; path=/"};$.sq_uriEncode=function(url){return url.replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")};$.sq_getCache=function(name){if(typeof $.sq_config.sq_cache!=="undefined")if(typeof $.sq_config.sq_cache[name]!=="undefined")return $.sq_config.sq_cache[name];return""};$.sq_setCache=function(name,value){if(typeof name!=="undefined"&&typeof $.sq_config.sq_cache!=="undefined"){$.sq_config.sq_cache[name]=value}};$.sq_strEqual=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b,undefined,{sensitivity:"accent"})===0:a===b};$.sq_isArray=function(input){return typeof input==="object"&&input instanceof Array};$.sq_regex=function(striptag){if(typeof XRegExp!=="undefined"){return XRegExp(striptag,"gi")}return false};$.fn.sq_loading=function(name){var $this=this;if(typeof name==="undefined"){$this.sq_classname="sq_minloading"}else{$this.sq_classname=name}clearTimeout($.sq_loadprocess);$this.addClass($this.sq_classname);return $this};$.fn.sq_doneloading=function(name){var $this=this;if(typeof name==="undefined"){name="sq_minloading"}clearTimeout($.sq_loadprocess);$this.removeClass(name);$this.find(".sq_error_message").remove();return $this};$.sq_checkin=function(){return $.post($.sq_config.ajaxurl,{action:"sla_checkin",sq_nonce:$.sq_config.sq_nonce,output:"json"}).done(function(response){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_preloading_keyword.show();if(typeof response.error!=="undefined"){if(response.error==="invalid_token"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;"><a href="admin.php?page=sq_dashboard" style="color: #df3434;font-size: 13px;font-weight: 500;">'+$.sq_config.__noconnection+"</a></div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}else if(response.error==="maintenance"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;font-size: 12px;">'+$.sq_config.__maintenance+"</div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}}if(typeof response.data!=="undefined"){var triggerLoadInterval=setInterval(function(){if($.sq_triggerLoad("seo.loaded")){clearInterval(triggerLoadInterval)}},1e3)}}).fail(function(){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_errorloading.show()})};$.sq_triggerLoad=function(message){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}if(typeof $.sq_blockbriefcase!=="undefined"&&typeof $.sq_blockseo!=="undefined"&&typeof $.sq_blocksearch!=="undefined"){$.sq_blockbriefcase.trigger(message);$.sq_blockseo.trigger(message);$.sq_blocksearch.trigger(message);$.sq_config.div.trigger(message);return true}else{return false}};$.sq_savePost=function(){var $sq_seo=[];$.sq_config.div.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.post($.sq_config.ajaxurl,{action:"sq_ajax_save_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"backend",sq_seo:$sq_seo})};$.sq_editor={getIframeEditor:function(element){var $this=$("#wpcontent");if(typeof element==="undefined"){element="#tinymce"}if($.sq_isGutenberg()){if($this.find("#editor").find("div.edit-post-visual-editor").length>0){return $this.find("#editor").find("div.edit-post-visual-editor")}if($this.find("#editor").find("div.edit-post-text-editor__body").length>0){return $this.find("#editor").find("div.edit-post-text-editor__body")}}if($this.find("#post").length>0&&$this.find("#post").find("iframe").length>0){if($this.find(".mce-container").find("iframe").contents().find(element+".has-focus").length>0){return $(".mce-container").find("iframe").contents().find(element+".has-focus")}if($this.find(".mce-container").find("iframe").contents().find(element).length>0){return $this.find(".mce-container").find("iframe").contents().find(element)}if($this.find("#content_ifr").contents().find(element).length>0){return $this.find("#content_ifr").contents().find(element)}if($this.find(".cke_contents").find("iframe").contents().find("body").length>0){return $this.find(".cke_contents").find("iframe").contents().find("body")}if($this.find("#cke_wysiwyg_frame").contents().find("body").length>0){return $this.find("#cke_wysiwyg_frame").contents().find("body")}}return false},getTinymceEditor:function(ed){var editor;if(typeof ed!=="undefined"&&typeof ed==="object"){editor=ed;if(typeof editor.activeEditor==="object")editor=editor.activeEditor}else{if(typeof tinyMCE==="object"){editor=tinyMCE;if(typeof tinyMCE.get("content")!=="undefined"){editor=tinyMCE.get("content")}else{if(typeof tinyMCE.activeEditor==="object"&&tinyMCE.activeEditor!==null){editor=tinyMCE.activeEditor}else{if(document.getElementById("content")!==null){editor=new tinymce.Editor("content");editor.contentCSS=["/wp-content/plugins/squirrly-seo/themes/default/css/sq_frontend.css"]}}}}}return editor},getBlockEditor:function(action){if($.sq_isGutenberg()){if(action==="select"){var ed=window.wp.data.select("core/editor")}else{var ed=window.wp.data.dispatch("core/editor")}return ed}return false},getFrontendEditor:function(action){if($.sq_isFrontend()){if(typeof window.sq_editor!=="undefined"){return window.sq_editor}}return false},createEditorButton:function(name){if($.sq_isFrontend()&&$("."+name).length==0){$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}else if($.sq_isGutenberg()){if($(".edit-post-more-menu").length>0){$(".edit-post-more-menu").before('<button type="button" class="sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}else if($(".interface-pinned-items").length>0){$(".interface-pinned-items").after('<button type="button" class="sq-ml-2 sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}else if($(".edit-post-header__settings").length>0){$(".edit-post-header__settings").append('<button type="button" class="sq-position-static '+name+'"><i class="sq_logo" ></i></button>')}}else{$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}},listenHtml:function(e){if(e.originalEvent.dataTransfer===null)return;var img=e.originalEvent.dataTransfer.getData("text");if($("#"+$(img).attr("id")).parent("li").attr("class")==="sq_search_img_li"){$.sq_fields.wp_content.val($.sq_fields.wp_content.val()+$.sq_blocksearch.packimg($(img).attr("id"),$("#"+$(img).attr("id")).parent("li").attr("src"),$("#"+$(img).attr("id")).parent("li")))}},listen:function(e){if($("#"+e.target.id).parent("li").attr("class")==="sq_search_img_li"){if($.sq_editor.lastimage!==$("#"+e.target.id).parent("li").attr("src")){$.sq_editor.insert($.sq_blocksearch.packimg(e.target.id,$("#"+e.target.id).parent("li").attr("src"),$("#"+e.target.id).parent("li")))}}$.sq_editor.lastimage=$("#"+e.target.id).parent("li").attr("src")},setContent:function(content,ed){if($.sq_config.editor_type==="tinymce"){var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"){editor.setContent(content)}}},insert:function(content,ed){if($.sq_isDiviBuilder()||$.sq_isFrontend()){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("We've copied the code and you can paste it in the Page Builder.")}catch(e){alert("You can copy the box and paste it in the Page Builder")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#et_pb_layout").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#et_pb_layout").offset().top-50},"slow")}}else if($("#wpb_visual_composer:visible").length>0){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Visual Composer detected. We've copied the code and you can paste it in Visual Composer Editor.")}catch(e){alert("Visual Composer detected. You can copy the box and paste it in Visual Composer")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#wpb_visual_composer").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#wpb_visual_composer").offset().top-50},"slow")}}else if($("#elementor-switch-mode-input").length>0&&$("#elementor-switch-mode-input").val()=="builder"){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Elementor is detected. We've copied the code and you can paste it in Elementor Text Editor.")}catch(e){alert("Elementor detected. You can copy the box and paste it in Elementor Text Editor")}input.remove()}else if($("div.wp-editor-container").find("div.cs-editor-container.pro").length>0){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Themeco PRO is detected. We've copied the code and you can paste it in Themeco PRO Text Editor.")}catch(e){alert("Themeco PRO detected. You can copy the box and paste it in Themeco PRO Text Editor")}input.remove()}else if($.sq_config.editor_type==="tinymce"){if(typeof tinyMCE==="object"){var editor=tinyMCE;if(typeof editor.activeEditor==="object"){editor=editor.activeEditor}}if(typeof editor!=="undefined"&&editor!==null){if(typeof editor.selection!=="undefined"){editor.selection.setContent(content)}else{editor.setContent(content)}$.sq_blockseo.callback()}}else{$.sq_fields.wp_content.val($.sq_fields.wp_content.val().substr(0,$.sq_fields.wp_content[0].selectionStart)+content+$.sq_fields.wp_content.val().substr($.sq_fields.wp_content[0].selectionEnd));$.sq_blockseo.callback()}}};$.sq_tinymce={callback:function(ed){if(ed.id!=="content")return false;var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"&&typeof $.sq_blockseo==="object"){if($.sq_config.editor_type==="tinymce"){$.sq_blockseo.callback()}}},setup:function(ed){},addEvents:function(ed,dom){if(typeof $.sq_blockseo!=="undefined"&&typeof $.sq_editor==="object"&&!$.isDom($.sq_editor)){if($.sq_config.active_editor=$.sq_editor.getIframeEditor()){$.sq_blockseo.callback()}}}};$.fn.sq_main=function(){var $this=this;$this.load=function(){$.sq_setfields();$.sq_setParams();$.sq_initialized=true;$.sq_loadtabs();$.sq_highlight=function(element,text,params){var options=$.extend({element:"mark","acrossElements ":1,ignoreJoiners:1,diacritics:false,separateWordSearch:false,caseSensitive:false,accuracy:{value:"exactly",limiters:["`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',",",".","<",">","/","?","“","”"]},ignorePunctuation:[" ",",","`","~","!","@","#","$","%","^","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',"<",">","/","?"],counter:1},params);if(typeof element!=="undefined"&&element.html()!==""&&$.isFunction(element.sq_unmark)){if(typeof options.range!=="undefined"){element.sq_unmark({done:function(){element.sq_markRanges(options.range,options)}})}else{element.sq_unmark({done:function(){element.sq_mark(text,options)}})}}};$.sq_removeHighlight=function(element){if(typeof element!=="undefined"&&$.isFunction(element.sq_unmark)&&!$.sq_isDiviBuilder()){element.sq_unmark()}};if($.isFunction($.sq_fields.sq_briefcase_list.sq_briefcase)){$.sq_blockbriefcase=$.sq_fields.sq_briefcase_list.sq_briefcase([])}if($.isFunction($.sq_config.div.sq_frontend)){$.sq_frontend=$.sq_config.div.sq_frontend([]);$.sq_frontend.init()}if($.sq_fields.div_blockseo.length>0&&$.isFunction($.sq_fields.div_blockseo.sq_blockseo)){$.sq_blockseo=$.sq_fields.div_blockseo.sq_blockseo([])}if($.sq_fields.div_blocksearch.length>0&&$.isFunction($.sq_fields.div_blocksearch.sq_blocksearch)){$.sq_blocksearch=$.sq_fields.div_blocksearch.sq_blocksearch([])}if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);if(!$.sq_frontend){if(typeof $.sq_config.div==="undefined"){$.sq_setConfig()}$.sq_floating.init()}}$.sq_checkin()};return $this};$.sq_loadtabs=function(){$.sq_fields.sq_blocktabs.find("div").on("click",function(){$.sq_fields.sq_selectit.trigger("click");$.sq_fields.sq_blocktabs.find("div").removeClass("sq_active");$(this).addClass("sq_active");$(".sq_block_steps").hide();$($(this).data("target")).show()});$.sq_fields.sq_blocksteps.find(".sq_nextstep").on("click",function(){$('.sq_block_tab[data-target="'+$(this).data("target")+'"]').trigger("click")})};$.sq_initialize=function(){$.sq_setConfig();if(typeof $.sq_config.div!=="undefined"&&!$.sq_initialized&&$.sq_config.div.length>0){$.sq_config.div.sq_main().load()}};$(document).ready(function(){var triggerInitiateInterval=setInterval(function(){$.sq_initialize();if($.sq_initialized){clearInterval(triggerInitiateInterval)}},1e3)});window.onerror=function(){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}};$(document).ajaxSuccess(function(event){if(typeof $.sq_config.div==="undefined"){$.sq_initialize()}})})(jQuery);