@@ -2,8 +2,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
2
2
var __require = /* @__PURE__ */ ( ( x ) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy ( x , {
3
3
get : ( a , b ) => ( typeof require !== "undefined" ? require : a ) [ b ]
4
4
} ) : x ) ( function ( x ) {
5
- if ( typeof require !== "undefined" )
6
- return require . apply ( this , arguments ) ;
5
+ if ( typeof require !== "undefined" ) return require . apply ( this , arguments ) ;
7
6
throw Error ( 'Dynamic require of "' + x + '" is not supported' ) ;
8
7
} ) ;
9
8
var __commonJS = ( cb , mod ) => function __require2 ( ) {
@@ -33,16 +32,14 @@ var require_sockjs = __commonJS({
33
32
}
34
33
} ) ( function ( ) {
35
34
var define2 , module2 , exports2 ;
36
- return function ( ) {
35
+ return ( /* @__PURE__ */ function ( ) {
37
36
function r ( e , n , t ) {
38
37
function o ( i2 , f ) {
39
38
if ( ! n [ i2 ] ) {
40
39
if ( ! e [ i2 ] ) {
41
40
var c = "function" == typeof __require && __require ;
42
- if ( ! f && c )
43
- return c ( i2 , true ) ;
44
- if ( u )
45
- return u ( i2 , true ) ;
41
+ if ( ! f && c ) return c ( i2 , true ) ;
42
+ if ( u ) return u ( i2 , true ) ;
46
43
var a = new Error ( "Cannot find module '" + i2 + "'" ) ;
47
44
throw a . code = "MODULE_NOT_FOUND" , a ;
48
45
}
@@ -54,12 +51,11 @@ var require_sockjs = __commonJS({
54
51
}
55
52
return n [ i2 ] . exports ;
56
53
}
57
- for ( var u = "function" == typeof __require && __require , i = 0 ; i < t . length ; i ++ )
58
- o ( t [ i ] ) ;
54
+ for ( var u = "function" == typeof __require && __require , i = 0 ; i < t . length ; i ++ ) o ( t [ i ] ) ;
59
55
return o ;
60
56
}
61
57
return r ;
62
- } ( ) ( { 1 : [ function ( require2 , module3 , exports3 ) {
58
+ } ( ) ) ( { 1 : [ function ( require2 , module3 , exports3 ) {
63
59
( function ( global2 ) {
64
60
( function ( ) {
65
61
"use strict" ;
@@ -2874,7 +2870,7 @@ var require_sockjs = __commonJS({
2874
2870
exports3 . load = load ;
2875
2871
exports3 . useColors = useColors ;
2876
2872
exports3 . storage = localstorage ( ) ;
2877
- exports3 . destroy = ( ( ) => {
2873
+ exports3 . destroy = /* @__PURE__ */ ( ( ) => {
2878
2874
let warned = false ;
2879
2875
return ( ) => {
2880
2876
if ( ! warned ) {
@@ -3240,17 +3236,15 @@ var require_sockjs = __commonJS({
3240
3236
var parser = / ( [ ^ = ? & ] + ) = ? ( [ ^ & ] * ) / g, result = { } , part ;
3241
3237
while ( part = parser . exec ( query ) ) {
3242
3238
var key = decode ( part [ 1 ] ) , value = decode ( part [ 2 ] ) ;
3243
- if ( key === null || value === null || key in result )
3244
- continue ;
3239
+ if ( key === null || value === null || key in result ) continue ;
3245
3240
result [ key ] = value ;
3246
3241
}
3247
3242
return result ;
3248
3243
}
3249
3244
function querystringify ( obj , prefix ) {
3250
3245
prefix = prefix || "" ;
3251
3246
var pairs = [ ] , value , key ;
3252
- if ( "string" !== typeof prefix )
3253
- prefix = "?" ;
3247
+ if ( "string" !== typeof prefix ) prefix = "?" ;
3254
3248
for ( key in obj ) {
3255
3249
if ( has . call ( obj , key ) ) {
3256
3250
value = obj [ key ] ;
@@ -3259,8 +3253,7 @@ var require_sockjs = __commonJS({
3259
3253
}
3260
3254
key = encodeURIComponent ( key ) ;
3261
3255
value = encodeURIComponent ( value ) ;
3262
- if ( key === null || value === null )
3263
- continue ;
3256
+ if ( key === null || value === null ) continue ;
3264
3257
pairs . push ( key + "=" + value ) ;
3265
3258
}
3266
3259
}
@@ -3273,8 +3266,7 @@ var require_sockjs = __commonJS({
3273
3266
module3 . exports = function required ( port , protocol ) {
3274
3267
protocol = protocol . split ( ":" ) [ 0 ] ;
3275
3268
port = + port ;
3276
- if ( ! port )
3277
- return false ;
3269
+ if ( ! port ) return false ;
3278
3270
switch ( protocol ) {
3279
3271
case "http" :
3280
3272
case "ws" :
@@ -3321,27 +3313,21 @@ var require_sockjs = __commonJS({
3321
3313
var ignore = { hash : 1 , query : 1 } ;
3322
3314
function lolcation ( loc ) {
3323
3315
var globalVar ;
3324
- if ( typeof window !== "undefined" )
3325
- globalVar = window ;
3326
- else if ( typeof global2 !== "undefined" )
3327
- globalVar = global2 ;
3328
- else if ( typeof self !== "undefined" )
3329
- globalVar = self ;
3330
- else
3331
- globalVar = { } ;
3316
+ if ( typeof window !== "undefined" ) globalVar = window ;
3317
+ else if ( typeof global2 !== "undefined" ) globalVar = global2 ;
3318
+ else if ( typeof self !== "undefined" ) globalVar = self ;
3319
+ else globalVar = { } ;
3332
3320
var location = globalVar . location || { } ;
3333
3321
loc = loc || location ;
3334
3322
var finaldestination = { } , type = typeof loc , key ;
3335
3323
if ( "blob:" === loc . protocol ) {
3336
3324
finaldestination = new Url ( unescape ( loc . pathname ) , { } ) ;
3337
3325
} else if ( "string" === type ) {
3338
3326
finaldestination = new Url ( loc , { } ) ;
3339
- for ( key in ignore )
3340
- delete finaldestination [ key ] ;
3327
+ for ( key in ignore ) delete finaldestination [ key ] ;
3341
3328
} else if ( "object" === type ) {
3342
3329
for ( key in loc ) {
3343
- if ( key in ignore )
3344
- continue ;
3330
+ if ( key in ignore ) continue ;
3345
3331
finaldestination [ key ] = loc [ key ] ;
3346
3332
}
3347
3333
if ( finaldestination . slashes === void 0 ) {
@@ -3400,8 +3386,7 @@ var require_sockjs = __commonJS({
3400
3386
} ;
3401
3387
}
3402
3388
function resolve ( relative , base ) {
3403
- if ( relative === "" )
3404
- return base ;
3389
+ if ( relative === "" ) return base ;
3405
3390
var path = ( base || "/" ) . split ( "/" ) . slice ( 0 , - 1 ) . concat ( relative . split ( "/" ) ) , i = path . length , last = path [ i - 1 ] , unshift = false , up = 0 ;
3406
3391
while ( i -- ) {
3407
3392
if ( path [ i ] === "." ) {
@@ -3410,16 +3395,13 @@ var require_sockjs = __commonJS({
3410
3395
path . splice ( i , 1 ) ;
3411
3396
up ++ ;
3412
3397
} else if ( up ) {
3413
- if ( i === 0 )
3414
- unshift = true ;
3398
+ if ( i === 0 ) unshift = true ;
3415
3399
path . splice ( i , 1 ) ;
3416
3400
up -- ;
3417
3401
}
3418
3402
}
3419
- if ( unshift )
3420
- path . unshift ( "" ) ;
3421
- if ( last === "." || last === ".." )
3422
- path . push ( "" ) ;
3403
+ if ( unshift ) path . unshift ( "" ) ;
3404
+ if ( last === "." || last === ".." ) path . push ( "" ) ;
3423
3405
return path . join ( "/" ) ;
3424
3406
}
3425
3407
function Url ( address , location , parser ) {
@@ -3433,8 +3415,7 @@ var require_sockjs = __commonJS({
3433
3415
parser = location ;
3434
3416
location = null ;
3435
3417
}
3436
- if ( parser && "function" !== typeof parser )
3437
- parser = qs . parse ;
3418
+ if ( parser && "function" !== typeof parser ) parser = qs . parse ;
3438
3419
location = lolcation ( location ) ;
3439
3420
extracted = extractProtocol ( address || "" , location ) ;
3440
3421
relative = ! extracted . protocol && ! extracted . slashes ;
@@ -3470,11 +3451,9 @@ var require_sockjs = __commonJS({
3470
3451
address = address . slice ( 0 , index . index ) ;
3471
3452
}
3472
3453
url [ key ] = url [ key ] || ( relative && instruction [ 3 ] ? location [ key ] || "" : "" ) ;
3473
- if ( instruction [ 4 ] )
3474
- url [ key ] = url [ key ] . toLowerCase ( ) ;
3454
+ if ( instruction [ 4 ] ) url [ key ] = url [ key ] . toLowerCase ( ) ;
3475
3455
}
3476
- if ( parser )
3477
- url . query = parser ( url . query ) ;
3456
+ if ( parser ) url . query = parser ( url . query ) ;
3478
3457
if ( relative && location . slashes && url . pathname . charAt ( 0 ) !== "/" && ( url . pathname !== "" || location . pathname !== "" ) ) {
3479
3458
url . pathname = resolve ( url . pathname , location . pathname ) ;
3480
3459
}
@@ -3521,8 +3500,7 @@ var require_sockjs = __commonJS({
3521
3500
break ;
3522
3501
case "hostname" :
3523
3502
url [ part ] = value ;
3524
- if ( url . port )
3525
- value += ":" + url . port ;
3503
+ if ( url . port ) value += ":" + url . port ;
3526
3504
url . host = value ;
3527
3505
break ;
3528
3506
case "host" :
@@ -3566,25 +3544,21 @@ var require_sockjs = __commonJS({
3566
3544
}
3567
3545
for ( var i = 0 ; i < rules . length ; i ++ ) {
3568
3546
var ins = rules [ i ] ;
3569
- if ( ins [ 4 ] )
3570
- url [ ins [ 1 ] ] = url [ ins [ 1 ] ] . toLowerCase ( ) ;
3547
+ if ( ins [ 4 ] ) url [ ins [ 1 ] ] = url [ ins [ 1 ] ] . toLowerCase ( ) ;
3571
3548
}
3572
3549
url . auth = url . password ? url . username + ":" + url . password : url . username ;
3573
3550
url . origin = url . protocol !== "file:" && isSpecial ( url . protocol ) && url . host ? url . protocol + "//" + url . host : "null" ;
3574
3551
url . href = url . toString ( ) ;
3575
3552
return url ;
3576
3553
}
3577
3554
function toString ( stringify ) {
3578
- if ( ! stringify || "function" !== typeof stringify )
3579
- stringify = qs . stringify ;
3555
+ if ( ! stringify || "function" !== typeof stringify ) stringify = qs . stringify ;
3580
3556
var query , url = this , host = url . host , protocol = url . protocol ;
3581
- if ( protocol && protocol . charAt ( protocol . length - 1 ) !== ":" )
3582
- protocol += ":" ;
3557
+ if ( protocol && protocol . charAt ( protocol . length - 1 ) !== ":" ) protocol += ":" ;
3583
3558
var result = protocol + ( url . protocol && url . slashes || isSpecial ( url . protocol ) ? "//" : "" ) ;
3584
3559
if ( url . username ) {
3585
3560
result += url . username ;
3586
- if ( url . password )
3587
- result += ":" + url . password ;
3561
+ if ( url . password ) result += ":" + url . password ;
3588
3562
result += "@" ;
3589
3563
} else if ( url . password ) {
3590
3564
result += ":" + url . password ;
@@ -3597,10 +3571,8 @@ var require_sockjs = __commonJS({
3597
3571
}
3598
3572
result += host + url . pathname ;
3599
3573
query = "object" === typeof url . query ? stringify ( url . query ) : url . query ;
3600
- if ( query )
3601
- result += "?" !== query . charAt ( 0 ) ? "?" + query : query ;
3602
- if ( url . hash )
3603
- result += url . hash ;
3574
+ if ( query ) result += "?" !== query . charAt ( 0 ) ? "?" + query : query ;
3575
+ if ( url . hash ) result += url . hash ;
3604
3576
return result ;
3605
3577
}
3606
3578
Url . prototype = { set, toString } ;
0 commit comments