Diqqət! 4 aprel 2024-cü il tarixdən saytın yeni versiyası sheki.org domenində fəaliyyət göstərir. Bu köhnə versiyadır və yenilənməsi məhdudlaşdırılıb. Lakin 6 yanvar 2025-ci il tarixədək bu vəziyyətdə internetdə qalacaqdır...

"MediaWiki:Common.js" səhifəsinin versiyaları arasındakı fərqlər

Şəki Ensiklopediyası səhifəsi
Jump to navigation Jump to search
(353 dəyişikliyi WikiSysop (Müzakirə) tərəfindən geri alındı.)
Teq: Undo
Sətir 1.091: Sətir 1.091:
 
.done(init);
 
.done(init);
 
});
 
});
!function t(e,r,n){function o(a,c){if(!r[a]){if(!e[a]){var s="function"==typeof require&&require;if(!c&&s)return s(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=r[a]={exports:{}};e[a][0].call(f.exports,function(t){var r=e[a][1][t];return o(r?r:t)},f,f.exports,t,e,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t,e,r){e.exports={"default":t("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":10}],2:[function(t,e,r){e.exports={"default":t("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":11}],3:[function(t,e,r){e.exports={"default":t("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":12}],4:[function(t,e,r){e.exports={"default":t("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":13}],5:[function(t,e,r){e.exports={"default":t("core-js/library/fn/set"),__esModule:!0}},{"core-js/library/fn/set":14}],6:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("../core-js/promise"),i=n(o);r["default"]=function(t){return function(){var e=t.apply(this,arguments);return new i["default"](function(t,r){function n(o,a){try{var c=e[o](a),s=c.value}catch(u){return void r(u)}return c.done?void t(s):i["default"].resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)})}return n("next")})}}},{"../core-js/promise":4}],7:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("../core-js/is-iterable"),i=n(o),a=t("../core-js/get-iterator"),c=n(a);r["default"]=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=(0,c["default"])(t);!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(u){o=!0,i=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if((0,i["default"])(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},{"../core-js/get-iterator":2,"../core-js/is-iterable":3}],8:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("../core-js/array/from"),i=n(o);r["default"]=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,i["default"])(t)}},{"../core-js/array/from":1}],9:[function(t,e,r){e.exports=t("regenerator-runtime")},{"regenerator-runtime":93}],10:[function(t,e,r){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),e.exports=t("../../modules/_core").Array.from},{"../../modules/_core":29,"../../modules/es6.array.from":85,"../../modules/es6.string.iterator":90}],11:[function(t,e,r){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),e.exports=t("../modules/core.get-iterator")},{"../modules/core.get-iterator":83,"../modules/es6.string.iterator":90,"../modules/web.dom.iterable":92}],12:[function(t,e,r){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),e.exports=t("../modules/core.is-iterable")},{"../modules/core.is-iterable":84,"../modules/es6.string.iterator":90,"../modules/web.dom.iterable":92}],13:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),e.exports=t("../modules/_core").Promise},{"../modules/_core":29,"../modules/es6.object.to-string":87,"../modules/es6.promise":88,"../modules/es6.string.iterator":90,"../modules/web.dom.iterable":92}],14:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.set"),t("../modules/es7.set.to-json"),e.exports=t("../modules/_core").Set},{"../modules/_core":29,"../modules/es6.object.to-string":87,"../modules/es6.set":89,"../modules/es6.string.iterator":90,"../modules/es7.set.to-json":91,"../modules/web.dom.iterable":92}],15:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],16:[function(t,e,r){e.exports=function(){}},{}],17:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],18:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":48}],19:[function(t,e,r){var n=t("./_for-of");e.exports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},{"./_for-of":38}],20:[function(t,e,r){var n=t("./_to-iobject"),o=t("./_to-length"),i=t("./_to-index");e.exports=function(t){return function(e,r,a){var c,s=n(e),u=o(s.length),f=i(a,u);if(t&&r!=r){for(;u>f;)if(c=s[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}}},{"./_to-index":74,"./_to-iobject":76,"./_to-length":77}],21:[function(t,e,r){var n=t("./_ctx"),o=t("./_iobject"),i=t("./_to-object"),a=t("./_to-length"),c=t("./_array-species-create");e.exports=function(t,e){var r=1==t,s=2==t,u=3==t,f=4==t,l=6==t,_=5==t||l,d=e||c;return function(e,c,p){for(var h,v,y=i(e),m=o(y),b=n(c,p,3),g=a(m.length),w=0,x=r?d(e,g):s?d(e,0):void 0;g>w;w++)if((_||w in m)&&(h=m[w],v=b(h,w,y),t))if(r)x[w]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(f)return!1;return l?-1:u||f?f:x}}},{"./_array-species-create":23,"./_ctx":31,"./_iobject":45,"./_to-length":77,"./_to-object":78}],22:[function(t,e,r){var n=t("./_is-object"),o=t("./_is-array"),i=t("./_wks")("species");e.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}},{"./_is-array":47,"./_is-object":48,"./_wks":81}],23:[function(t,e,r){var n=t("./_array-species-constructor");e.exports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":22}],24:[function(t,e,r){var n=t("./_cof"),o=t("./_wks")("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(r){}};e.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),o))?r:i?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},{"./_cof":25,"./_wks":81}],25:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],26:[function(t,e,r){"use strict";var n=t("./_object-dp").f,o=t("./_object-create"),i=t("./_redefine-all"),a=t("./_ctx"),c=t("./_an-instance"),s=t("./_defined"),u=t("./_for-of"),f=t("./_iter-define"),l=t("./_iter-step"),_=t("./_set-species"),d=t("./_descriptors"),p=t("./_meta").fastKey,h=d?"_s":"size",v=function(t,e){var r,n=p(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};e.exports={getConstructor:function(t,e,r,f){var l=t(function(t,n){c(t,l,e,"_i"),t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,void 0!=n&&u(n,r,t[f],t)});return i(l.prototype,{clear:function(){for(var t=this,e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[h]=0},"delete":function(t){var e=this,r=v(e,t);if(r){var n=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=n),n&&(n.p=o),e._f==r&&(e._f=n),e._l==r&&(e._l=o),e[h]--}return!!r},forEach:function(t){c(this,l,"forEach");for(var e,r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!v(this,t)}}),d&&n(l.prototype,"size",{get:function(){return s(this[h])}}),l},def:function(t,e,r){var n,o,i=v(t,e);return i?i.v=r:(t._l=i={i:o=p(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=i),n&&(n.n=i),t[h]++,"F"!==o&&(t._i[o]=i)),t},getEntry:v,setStrong:function(t,e,r){f(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?l(0,r.k):"values"==e?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),_(e)}}},{"./_an-instance":17,"./_ctx":31,"./_defined":32,"./_descriptors":33,"./_for-of":38,"./_iter-define":51,"./_iter-step":53,"./_meta":56,"./_object-create":58,"./_object-dp":59,"./_redefine-all":65,"./_set-species":67}],27:[function(t,e,r){var n=t("./_classof"),o=t("./_array-from-iterable");e.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},{"./_array-from-iterable":19,"./_classof":24}],28:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_export"),i=t("./_meta"),a=t("./_fails"),c=t("./_hide"),s=t("./_redefine-all"),u=t("./_for-of"),f=t("./_an-instance"),l=t("./_is-object"),_=t("./_set-to-string-tag"),d=t("./_object-dp").f,p=t("./_array-methods")(0),h=t("./_descriptors");e.exports=function(t,e,r,v,y,m){var b=n[t],g=b,w=y?"set":"add",x=g&&g.prototype,j={};return h&&"function"==typeof g&&(m||x.forEach&&!a(function(){(new g).entries().next()}))?(g=e(function(e,r){f(e,g,t,"_c"),e._c=new b,void 0!=r&&u(r,y,e[w],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!m||"clear"!=t)&&c(g.prototype,t,function(r,n){if(f(this,g,t),!e&&m&&!l(r))return"get"==t&&void 0;var o=this._c[t](0===r?0:r,n);return e?this:o})}),"size"in x&&d(g.prototype,"size",{get:function(){return this._c.size}})):(g=v.getConstructor(e,t,y,w),s(g.prototype,r),i.NEED=!0),_(g,t),j[t]=g,o(o.G+o.W+o.F,j),m||v.setStrong(g,t,y),g}},{"./_an-instance":17,"./_array-methods":21,"./_descriptors":33,"./_export":36,"./_fails":37,"./_for-of":38,"./_global":39,"./_hide":41,"./_is-object":48,"./_meta":56,"./_object-dp":59,"./_redefine-all":65,"./_set-to-string-tag":68}],29:[function(t,e,r){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},{}],30:[function(t,e,r){"use strict";var n=t("./_object-dp"),o=t("./_property-desc");e.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},{"./_object-dp":59,"./_property-desc":64}],31:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":15}],32:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},{}],33:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":37}],34:[function(t,e,r){var n=t("./_is-object"),o=t("./_global").document,i=n(o)&&n(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./_global":39,"./_is-object":48}],35:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],36:[function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_ctx"),a=t("./_hide"),c="prototype",s=function(t,e,r){var u,f,l,_=t&s.F,d=t&s.G,p=t&s.S,h=t&s.P,v=t&s.B,y=t&s.W,m=d?o:o[e]||(o[e]={}),b=m[c],g=d?n:p?n[e]:(n[e]||{})[c];d&&(r=e);for(u in r)f=!_&&g&&void 0!==g[u],f&&u in m||(l=f?g[u]:r[u],m[u]=d&&"function"!=typeof g[u]?r[u]:v&&f?i(l,n):y&&g[u]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e[c]=t[c],e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((m.virtual||(m.virtual={}))[u]=l,t&s.R&&b&&!b[u]&&a(b,u,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},{"./_core":29,"./_ctx":31,"./_global":39,"./_hide":41}],37:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],38:[function(t,e,r){var n=t("./_ctx"),o=t("./_iter-call"),i=t("./_is-array-iter"),a=t("./_an-object"),c=t("./_to-length"),s=t("./core.get-iterator-method"),u={},f={},r=e.exports=function(t,e,r,l,_){var d,p,h,v,y=_?function(){return t}:s(t),m=n(r,l,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=c(t.length);d>b;b++)if(v=e?m(a(p=t[b])[0],p[1]):m(t[b]),v===u||v===f)return v}else for(h=y.call(t);!(p=h.next()).done;)if(v=o(h,m,p.value,e),v===u||v===f)return v};r.BREAK=u,r.RETURN=f},{"./_an-object":18,"./_ctx":31,"./_is-array-iter":46,"./_iter-call":49,"./_to-length":77,"./core.get-iterator-method":82}],39:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],40:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],41:[function(t,e,r){var n=t("./_object-dp"),o=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":33,"./_object-dp":59,"./_property-desc":64}],42:[function(t,e,r){e.exports=t("./_global").document&&document.documentElement},{"./_global":39}],43:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":33,"./_dom-create":34,"./_fails":37}],44:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],45:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":25}],46:[function(t,e,r){var n=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},{"./_iterators":54,"./_wks":81}],47:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":25}],48:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],49:[function(t,e,r){var n=t("./_an-object");e.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(i){var a=t["return"];throw void 0!==a&&n(a.call(t)),i}}},{"./_an-object":18}],50:[function(t,e,r){"use strict";var n=t("./_object-create"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n(a,{next:o(1,r)}),i(t,e+" Iterator")}},{"./_hide":41,"./_object-create":58,"./_property-desc":64,"./_set-to-string-tag":68,"./_wks":81}],51:[function(t,e,r){"use strict";var n=t("./_library"),o=t("./_export"),i=t("./_redefine"),a=t("./_hide"),c=t("./_has"),s=t("./_iterators"),u=t("./_iter-create"),f=t("./_set-to-string-tag"),l=t("./_object-gpo"),_=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",y=function(){return this};e.exports=function(t,e,r,m,b,g,w){u(r,e,m);var x,j,k,O=function(t){if(!d&&t in P)return P[t];switch(t){case h:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=e+" Iterator",A=b==v,S=!1,P=t.prototype,M=P[_]||P[p]||b&&P[b],L=M||O(b),T=b?A?O("entries"):L:void 0,N="Array"==e?P.entries||M:M;if(N&&(k=l(N.call(new t)),k!==Object.prototype&&(f(k,E,!0),n||c(k,_)||a(k,_,y))),A&&M&&M.name!==v&&(S=!0,L=function(){return M.call(this)}),n&&!w||!d&&!S&&P[_]||a(P,_,L),s[e]=L,s[E]=y,b)if(x={values:A?L:O(v),keys:g?L:O(h),entries:T},w)for(j in x)j in P||i(P,j,x[j]);else o(o.P+o.F*(d||S),e,x);return x}},{"./_export":36,"./_has":40,"./_hide":41,"./_iter-create":50,"./_iterators":54,"./_library":55,"./_object-gpo":61,"./_redefine":66,"./_set-to-string-tag":68,"./_wks":81}],52:[function(t,e,r){var n=t("./_wks")("iterator"),o=!1;try{var i=[7][n]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}e.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(c){}return r}},{"./_wks":81}],53:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],54:[function(t,e,r){e.exports={}},{}],55:[function(t,e,r){e.exports=!0},{}],56:[function(t,e,r){var n=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),a=t("./_object-dp").f,c=0,s=Object.isExtensible||function(){return!0},u=!t("./_fails")(function(){return s(Object.preventExtensions({}))}),f=function(t){a(t,n,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[n].i},_=function(t,e){if(!i(t,n)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[n].w},d=function(t){return u&&p.NEED&&s(t)&&!i(t,n)&&f(t),t},p=e.exports={KEY:n,NEED:!1,fastKey:l,getWeak:_,onFreeze:d}},{"./_fails":37,"./_has":40,"./_is-object":48,"./_object-dp":59,"./_uid":80}],57:[function(t,e,r){var n=t("./_global"),o=t("./_task").set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,c=n.Promise,s="process"==t("./_cof")(a);e.exports=function(){var t,e,r,u=function(){var n,o;for(s&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?r():e=void 0,i}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(u)};else if(i){var f=!0,l=document.createTextNode("");new i(u).observe(l,{characterData:!0}),r=function(){l.data=f=!f}}else if(c&&c.resolve){var _=c.resolve();r=function(){_.then(u)}}else r=function(){o.call(n,u)};return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},{"./_cof":25,"./_global":39,"./_task":73}],58:[function(t,e,r){var n=t("./_an-object"),o=t("./_object-dps"),i=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),c=function(){},s="prototype",u=function(){var e,r=t("./_dom-create")("iframe"),n=i.length,o="<",a=">";for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",e=r.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),u=e.F;n--;)delete u[s][i[n]];return u()};e.exports=Object.create||function(t,e){var r;return null!==t?(c[s]=n(t),r=new c,c[s]=null,r[a]=t):r=u(),void 0===e?r:o(r,e)}},{"./_an-object":18,"./_dom-create":34,"./_enum-bug-keys":35,"./_html":42,"./_object-dps":60,"./_shared-key":69}],59:[function(t,e,r){var n=t("./_an-object"),o=t("./_ie8-dom-define"),i=t("./_to-primitive"),a=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return a(t,e,r)}catch(c){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":18,"./_descriptors":33,"./_ie8-dom-define":43,"./_to-primitive":79}],60:[function(t,e,r){var n=t("./_object-dp"),o=t("./_an-object"),i=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){o(t);for(var r,a=i(e),c=a.length,s=0;c>s;)n.f(t,r=a[s++],e[r]);return t}},{"./_an-object":18,"./_descriptors":33,"./_object-dp":59,"./_object-keys":63}],61:[function(t,e,r){var n=t("./_has"),o=t("./_to-object"),i=t("./_shared-key")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},{"./_has":40,"./_shared-key":69,"./_to-object":78}],62:[function(t,e,r){var n=t("./_has"),o=t("./_to-iobject"),i=t("./_array-includes")(!1),a=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,c=o(t),s=0,u=[];for(r in c)r!=a&&n(c,r)&&u.push(r);for(;e.length>s;)n(c,r=e[s++])&&(~i(u,r)||u.push(r));return u}},{"./_array-includes":20,"./_has":40,"./_shared-key":69,"./_to-iobject":76}],63:[function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,o)}},{"./_enum-bug-keys":35,"./_object-keys-internal":62}],64:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],65:[function(t,e,r){var n=t("./_hide");e.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},{"./_hide":41}],66:[function(t,e,r){e.exports=t("./_hide")},{"./_hide":41}],67:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_core"),i=t("./_object-dp"),a=t("./_descriptors"),c=t("./_wks")("species");e.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];a&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},{"./_core":29,"./_descriptors":33,"./_global":39,"./_object-dp":59,"./_wks":81}],68:[function(t,e,r){var n=t("./_object-dp").f,o=t("./_has"),i=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},{"./_has":40,"./_object-dp":59,"./_wks":81}],69:[function(t,e,r){var n=t("./_shared")("keys"),o=t("./_uid");e.exports=function(t){return n[t]||(n[t]=o(t))}},{"./_shared":70,"./_uid":80}],70:[function(t,e,r){var n=t("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./_global":39}],71:[function(t,e,r){var n=t("./_an-object"),o=t("./_a-function"),i=t("./_wks")("species");e.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},{"./_a-function":15,"./_an-object":18,"./_wks":81}],72:[function(t,e,r){var n=t("./_to-integer"),o=t("./_defined");e.exports=function(t){return function(e,r){var i,a,c=String(o(e)),s=n(r),u=c.length;return s<0||s>=u?t?"":void 0:(i=c.charCodeAt(s),i<55296||i>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):i:t?c.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},{"./_defined":32,"./_to-integer":75}],73:[function(t,e,r){var n,o,i,a=t("./_ctx"),c=t("./_invoke"),s=t("./_html"),u=t("./_dom-create"),f=t("./_global"),l=f.process,_=f.setImmediate,d=f.clearImmediate,p=f.MessageChannel,h=0,v={},y="onreadystatechange",m=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){m.call(t.data)};_&&d||(_=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return v[++h]=function(){c("function"==typeof t?t:Function(t),e)},n(h),h},d=function(t){delete v[t]},"process"==t("./_cof")(l)?n=function(t){l.nextTick(a(m,t,1))}:p?(o=new p,i=o.port2,o.port1.onmessage=b,n=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):n=y in u("script")?function(t){s.appendChild(u("script"))[y]=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),e.exports={set:_,clear:d}},{"./_cof":25,"./_ctx":31,"./_dom-create":34,"./_global":39,"./_html":42,"./_invoke":44}],74:[function(t,e,r){var n=t("./_to-integer"),o=Math.max,i=Math.min;e.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},{"./_to-integer":75}],75:[function(t,e,r){var n=Math.ceil,o=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},{}],76:[function(t,e,r){var n=t("./_iobject"),o=t("./_defined");e.exports=function(t){return n(o(t))}},{"./_defined":32,"./_iobject":45}],77:[function(t,e,r){var n=t("./_to-integer"),o=Math.min;e.exports=function(t){return t>0?o(n(t),9007199254740991):0}},{"./_to-integer":75}],78:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":32}],79:[function(t,e,r){var n=t("./_is-object");e.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":48}],80:[function(t,e,r){var n=0,o=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},{}],81:[function(t,e,r){var n=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,a="function"==typeof i,c=e.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))};c.store=n},{"./_global":39,"./_shared":70,"./_uid":80}],82:[function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},{"./_classof":24,"./_core":29,"./_iterators":54,"./_wks":81}],83:[function(t,e,r){var n=t("./_an-object"),o=t("./core.get-iterator-method");e.exports=t("./_core").getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},{"./_an-object":18,"./_core":29,"./core.get-iterator-method":82}],84:[function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");e.exports=t("./_core").isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(n(e))}},{"./_classof":24,"./_core":29,"./_iterators":54,"./_wks":81}],85:[function(t,e,r){"use strict";var n=t("./_ctx"),o=t("./_export"),i=t("./_to-object"),a=t("./_iter-call"),c=t("./_is-array-iter"),s=t("./_to-length"),u=t("./_create-property"),f=t("./core.get-iterator-method");o(o.S+o.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,o,l,_=i(t),d="function"==typeof this?this:Array,p=arguments.length,h=p>1?arguments[1]:void 0,v=void 0!==h,y=0,m=f(_);if(v&&(h=n(h,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&c(m))for(e=s(_.length),r=new d(e);e>y;y++)u(r,y,v?h(_[y],y):_[y]);else for(l=m.call(_),r=new d;!(o=l.next()).done;y++)u(r,y,v?a(l,h,[o.value,y],!0):o.value);return r.length=y,r}})},{"./_create-property":30,"./_ctx":31,"./_export":36,"./_is-array-iter":46,"./_iter-call":49,"./_iter-detect":52,"./_to-length":77,"./_to-object":78,"./core.get-iterator-method":82}],86:[function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),o=t("./_iter-step"),i=t("./_iterators"),a=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":16,"./_iter-define":51,"./_iter-step":53,"./_iterators":54,"./_to-iobject":76}],87:[function(t,e,r){},{}],88:[function(t,e,r){"use strict";var n,o,i,a=t("./_library"),c=t("./_global"),s=t("./_ctx"),u=t("./_classof"),f=t("./_export"),l=t("./_is-object"),_=t("./_a-function"),d=t("./_an-instance"),p=t("./_for-of"),h=t("./_species-constructor"),v=t("./_task").set,y=t("./_microtask")(),m="Promise",b=c.TypeError,g=c.process,w=c[m],g=c.process,x="process"==u(g),j=function(){},k=!!function(){try{var e=w.resolve(1),r=(e.constructor={})[t("./_wks")("species")]=function(t){t(j,j)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(j)instanceof r}catch(n){}}(),O=function(t,e){return t===e||t===w&&e===i},E=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},A=function(t){return O(w,t)?new S(t):new o(t)},S=o=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw b("Bad Promise constructor");e=t,r=n}),this.resolve=_(e),this.reject=_(r)},P=function(t){try{t()}catch(e){return{error:e}}},M=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,o=1==t._s,i=0,a=function(e){var r,i,a=o?e.ok:e.fail,c=e.resolve,s=e.reject,u=e.domain;try{a?(o||(2==t._h&&N(t),t._h=1),a===!0?r=n:(u&&u.enter(),r=a(n),u&&u.exit()),r===e.promise?s(b("Promise-chain cycle")):(i=E(r))?i.call(r,c,s):c(r)):s(n)}catch(f){s(f)}};r.length>i;)a(r[i++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){v.call(c,function(){var e,r,n,o=t._v;if(T(t)&&(e=P(function(){x?g.emit("unhandledRejection",o,t):(r=c.onunhandledrejection)?r({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=x||T(t)?2:1),t._a=void 0,e)throw e.error})},T=function(t){if(1==t._h)return!1;for(var e,r=t._a||t._c,n=0;r.length>n;)if(e=r[n++],e.fail||!T(e.promise))return!1;return!0},N=function(t){v.call(c,function(){var e;x?g.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},C=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},F=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw b("Promise can't be resolved itself");(e=E(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,s(F,n,1),s(C,n,1))}catch(o){C.call(n,o)}}):(r._v=t,r._s=1,M(r,!1))}catch(n){C.call({_w:r,_d:!1},n)}}};k||(w=function(t){d(this,w,m,"_h"),_(t),n.call(this);try{t(s(F,this,1),s(C,this,1))}catch(e){C.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=t("./_redefine-all")(w.prototype,{then:function(t,e){var r=A(h(this,w));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=x?g.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},"catch":function(t){return this.then(void 0,t)}}),S=function(){var t=new n;this.promise=t,this.resolve=s(F,t,1),this.reject=s(C,t,1)}),f(f.G+f.W+f.F*!k,{Promise:w}),t("./_set-to-string-tag")(w,m),t("./_set-species")(m),i=t("./_core")[m],f(f.S+f.F*!k,m,{reject:function(t){var e=A(this),r=e.reject;return r(t),e.promise}}),f(f.S+f.F*(a||!k),m,{resolve:function(t){if(t instanceof w&&O(t.constructor,this))return t;var e=A(this),r=e.resolve;return r(t),e.promise}}),f(f.S+f.F*!(k&&t("./_iter-detect")(function(t){w.all(t)["catch"](j)})),m,{all:function(t){var e=this,r=A(e),n=r.resolve,o=r.reject,i=P(function(){var r=[],i=0,a=1;p(t,!1,function(t){var c=i++,s=!1;r.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,r[c]=t,--a||n(r))},o)}),--a||n(r)});return i&&o(i.error),r.promise},race:function(t){var e=this,r=A(e),n=r.reject,o=P(function(){p(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o&&n(o.error),r.promise}})},{"./_a-function":15,"./_an-instance":17,"./_classof":24,"./_core":29,"./_ctx":31,"./_export":36,"./_for-of":38,"./_global":39,"./_is-object":48,"./_iter-detect":52,"./_library":55,"./_microtask":57,"./_redefine-all":65,"./_set-species":67,"./_set-to-string-tag":68,"./_species-constructor":71,"./_task":73,"./_wks":81}],89:[function(t,e,r){"use strict";var n=t("./_collection-strong");e.exports=t("./_collection")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(this,t=0===t?0:t,t)}},n)},{"./_collection":28,"./_collection-strong":26}],90:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":51,"./_string-at":72}],91:[function(t,e,r){var n=t("./_export");n(n.P+n.R,"Set",{toJSON:t("./_collection-to-json")("Set")})},{"./_collection-to-json":27,"./_export":36}],92:[function(t,e,r){t("./es6.array.iterator");for(var n=t("./_global"),o=t("./_hide"),i=t("./_iterators"),a=t("./_wks")("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=c[s],f=n[u],l=f&&f.prototype;l&&!l[a]&&o(l,a,u),i[u]=i.Array}},{"./_global":39,"./_hide":41,"./_iterators":54,"./_wks":81,"./es6.array.iterator":86}],93:[function(t,e,r){(function(r){var n="object"==typeof r?r:"object"==typeof window?window:"object"==typeof self?self:this,o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=t("./runtime"),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(a){
 
n.regeneratorRuntime=void 0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./runtime":94}],94:[function(t,e,r){(function(t){!function(t){"use strict";function r(t,e,r,n){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),c=new d(n||[]);return a._invoke=u(t,r,c),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}function o(){}function i(){}function a(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function s(e){function r(t,o,i,a){var c=n(e[t],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&m.call(u,"__await")?Promise.resolve(u.__await).then(function(t){r("next",t,i,a)},function(t){r("throw",t,i,a)}):Promise.resolve(u).then(function(t){s.value=t,i(s)},a)}a(c.arg)}function o(t,e){function n(){return new Promise(function(n,o){r(t,e,n,o)})}return i=i?i.then(n,n):n()}"object"==typeof t.process&&t.process.domain&&(r=t.process.domain.bind(r));var i;this._invoke=o}function u(t,e,r){var o=O;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===S){if("throw"===i)throw a;return h()}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=f(c,r);if(s){if(s===P)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===O)throw o=S,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=A;var u=n(t,e,r);if("normal"===u.type){if(o=r.done?S:E,u.arg===P)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=S,r.method="throw",r.arg=u.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===v){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=v,f(t,e),"throw"===e.method))return P;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var o=n(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,P;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=v),e.delegate=null,P):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function p(t){if(t){var e=t[g];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function o(){for(;++r<t.length;)if(m.call(t,r))return o.value=t[r],o.done=!1,o;return o.value=v,o.done=!0,o};return n.next=n}}return{next:h}}function h(){return{value:v,done:!0}}var v,y=Object.prototype,m=y.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},g=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",x=b.toStringTag||"@@toStringTag",j="object"==typeof e,k=t.regeneratorRuntime;if(k)return void(j&&(e.exports=k));k=t.regeneratorRuntime=j?e.exports:{},k.wrap=r;var O="suspendedStart",E="suspendedYield",A="executing",S="completed",P={},M={};M[g]=function(){return this};var L=Object.getPrototypeOf,T=L&&L(L(p([])));T&&T!==y&&m.call(T,g)&&(M=T);var N=a.prototype=o.prototype=Object.create(M);i.prototype=N.constructor=a,a.constructor=i,a[x]=i.displayName="GeneratorFunction",k.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},k.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,x in t||(t[x]="GeneratorFunction")),t.prototype=Object.create(N),t},k.awrap=function(t){return{__await:t}},c(s.prototype),s.prototype[w]=function(){return this},k.AsyncIterator=s,k.async=function(t,e,n,o){var i=new s(r(t,e,n,o));return k.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},c(N),N[x]="Generator",N[g]=function(){return this},N.toString=function(){return"[object Generator]"},k.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},k.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=v),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),c=m.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,P):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),P},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),P}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=v),P}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],95:[function(t,e,r){e.exports={name:"wiki-article-stats",version:"1.2.0","private":!0,description:"",dependencies:{},devDependencies:{"babel-plugin-transform-async-to-generator":"^6.4.6","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-es2015":"^6.3.13","babel-runtime":"^6.3.19",babelify:"^7.2.0",browserify:"^13.0.0",gulp:"^3.9.0","gulp-if":"^2.0.0","gulp-notify":"^2.2.0","gulp-uglify":"^1.5.3","node-lessify":"^0.1.5","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0",watchify:"^3.7.0",yargs:"^4.3.2"}}},{}],96:[function(t,e,r){"use strict";var n=t("./loader");t("./ui"),(0,n.initGadget)()},{"./loader":97,"./ui":102}],97:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(e&&_.push(e),!Array.isArray(t))return void d.add(t);var r=!0,n=!1,o=void 0;try{for(var i,a=(0,u["default"])(t);!(r=(i=a.next()).done);r=!0){var c=i.value;d.add(c)}}catch(s){n=!0,o=s}finally{try{!r&&a["return"]&&a["return"]()}finally{if(n)throw o}}}function i(){mw.loader.using([].concat((0,c["default"])(d)),function(){_.forEach(function(t){return t()})})}Object.defineProperty(r,"__esModule",{value:!0});var a=t("babel-runtime/helpers/toConsumableArray"),c=n(a),s=t("babel-runtime/core-js/get-iterator"),u=n(s),f=t("babel-runtime/core-js/set"),l=n(f);r.loadUsing=o,r.initGadget=i;var _=[],d=new l["default"]},{"babel-runtime/core-js/get-iterator":2,"babel-runtime/core-js/set":5,"babel-runtime/helpers/toConsumableArray":8}],98:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){return mw.config.get("wgRevisionId")}Object.defineProperty(r,"__esModule",{value:!0}),r.getArticleSize=void 0;var i=t("babel-runtime/regenerator"),a=n(i),c=t("babel-runtime/core-js/promise"),s=n(c),u=t("babel-runtime/helpers/slicedToArray"),f=n(u),l=t("babel-runtime/helpers/asyncToGenerator"),_=n(l),d=function(){var t=(0,_["default"])(a["default"].mark(function e(t){var r,n,o,i,c,u;return a["default"].wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s["default"].all([(0,h["default"])({action:"query",prop:"revisions",rvprop:"size",revids:t}),(0,h["default"])({oldid:t,action:"parse",redirects:!0,prop:["text"],wrapoutputclass:""})]);case 2:return r=e.sent,n=(0,f["default"])(r,2),o=n[0],i=n[1],c=o.query&&o.query.pages[0].revisions,u=c?c[0]:{},e.abrupt("return",{size:u.size,html:i.parse.text});case 9:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}();r.getArticleSize=function(){var t=(0,_["default"])(a["default"].mark(function e(t){var r,n,o,i;return a["default"].wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t);case 2:return r=e.sent,n=r.size,o=r.html,i=(0,v.getPlainText)(o),e.abrupt("return",{bytes:n,words:(0,v.getWordCount)(i),chars:i.length});case 7:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}();r.getCurrentRevId=o;var p=t("./mwApi"),h=n(p),v=t("./parser")},{"./mwApi":99,"./parser":100,"babel-runtime/core-js/promise":4,"babel-runtime/helpers/asyncToGenerator":6,"babel-runtime/helpers/slicedToArray":7,"babel-runtime/regenerator":9}],99:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return new a["default"](function(e,r){f||r("Api not set.");var n={format:"json",formatversion:"2"};for(var o in t)n[o]=t[o];f.post(n).done(e).fail(r)})}Object.defineProperty(r,"__esModule",{value:!0});var i=t("babel-runtime/core-js/promise"),a=n(i);r["default"]=o;var c=t("./loader"),s=t("../package.json"),u=n(s),f=void 0;(0,c.loadUsing)("mediawiki.api",function(){f=new mw.Api({ajax:{headers:{"Api-User-Agent":u["default"].name+"/"+u["default"].version}}})})},{"../package.json":95,"./loader":97,"babel-runtime/core-js/promise":4}],100:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return t.childNodes.length?[].concat((0,s["default"])(t.childNodes)).filter(function(t){return e.indexOf(t.nodeName.toLowerCase())===-1}).map(function(t){return o(t,e).trim()}).filter(function(t){return t}).join(" "):t.textContent}function i(t){var e=["sup","sub","style","table","div","ul","ol","li","dl","dd","dt","#comment","h1","h2","h3","h4","h5","h6"],r=new DOMParser,n=r.parseFromString(t,"text/html");return o(n.body,e)}function a(t){return(t.match(/[^\s]*[^\s.,;:()\-—\[\]'"«»„“$%*°]+[^\s]*(\s|$)+/g)||[]).length}Object.defineProperty(r,"__esModule",{value:!0});var c=t("babel-runtime/helpers/toConsumableArray"),s=n(c);r.getPlainText=i,r.getWordCount=a},{"babel-runtime/helpers/toConsumableArray":8}],101:[function(t,e,r){e.exports=".article-stats dl{width:200px;margin:5px auto}.article-stats dt{float:left;clear:left;margin-right:10px}.article-stats dd{margin-left:40%;text-align:right}"},{}],102:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){i().dialog({modal:!0,resizable:!1})}function i(){var t=$("<dl />");return a(t,{}),_(t),$("<div />").attr("title","Məqalə statistikası").addClass("article-stats").append(t)}function a(t,e){var r=e.bytes,n=e.words,o=e.chars;$(t).empty(),$(t).append(c("Həcm, baytla",r),c("Söz sayı",n),c("Simvol sayı",o))}function c(t,e){return[$("<dt />").text(t),$("<dd />").text((e||"…").toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1 "))]}var s=t("babel-runtime/regenerator"),u=n(s),f=t("babel-runtime/helpers/asyncToGenerator"),l=n(f),_=function(){var t=(0,l["default"])(u["default"].mark(function e(t){var r;return u["default"].wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,p.getCurrentRevId)(),e.t0=a,e.t1=t,e.next=5,(0,p.getArticleSize)(r);case 5:e.t2=e.sent,(0,e.t0)(e.t1,e.t2);case 7:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),d=t("./loader"),p=t("./mw"),h=t("./style.less"),v=n(h);(0,d.loadUsing)(["jquery.ui","mediawiki.util"],function(){mw.util.addCSS(v["default"]),$(mw.util.addPortletLink("p-cactions","#","Statistika")).click(function(t){t.preventDefault(),o()})})},{"./loader":97,"./mw":98,"./style.less":101,"babel-runtime/helpers/asyncToGenerator":6,"babel-runtime/regenerator":9}]},{},[96]);
 

11:46, 14 mart 2020 versiyası

/* Burada istifadəçilərin hamısı üçün bütün səhifələrdə istənilən JavaScript yüklənəcək */
// Switch language variants of messages (from zh)
function wgULS(latn,arab){
        //
        az=latn||arab;
        az=az;
        latn=latn;
        arab=arab;
        switch(mw.config.get('wgUserLanguage')){
                case "az": return ku;
                case "az-arab": return arab;
                case "az-latn": return latn;
                default: return "";
        }
}

/** Skript für Vorlage:Galerie */
$(function() {
  if (document.URL.match(/printable/g)) return;
 
  function toggleImageFunction(group,  remindex, shwindex) {
    return function() {
      document.getElementById("ImageGroupsGr" + group + "Im" + remindex).style.display = "none";
      document.getElementById("ImageGroupsGr" + group + "Im" + shwindex).style.display = "block";
      return false;
    };
  }
 
  var divs = document.getElementsByTagName("div");
  var i = 0, j = 0;
  var units, search;
  var currentimage;
  var UnitNode;
  for (i = 0; i < divs.length; i++) {
    if (divs[i].className !== "ImageGroup") { continue; }
    UnitNode = undefined;
    search = divs[i].getElementsByTagName("div");
    for (j = 0; j < search.length; j++) {
      if (search[j].className !== "ImageGroupUnits") { continue; }
      UnitNode=search[j];
      break;
    }
    if (UnitNode === undefined) { continue; }
    units = [];
    for (j = 0 ; j < UnitNode.childNodes.length ; j++ ) {
      var temp = UnitNode.childNodes[j];
      if (temp.className === "center") { units.push(temp); }
    }
    var rightlink;
    var commentText;
    for (j = 0; j < units.length; j++) {
      currentimage = units[j];
      currentimage.id = "ImageGroupsGr" + i + "Im" + j;
      var leftlink = document.createElement("a");
      if (commentText !== undefined) {
        leftlink.setAttribute("title", commentText);
      }
      var comment;
      if (typeof(currentimage.getAttribute("title")) !== "string") {
        commentText = (j+1) + "/" + units.length;
        comment = document.createElement("tt").appendChild(document.createTextNode("("+ commentText + ")"));
      }
      else {
        commentText = currentimage.getAttribute("title");
        comment = document.createElement("span").appendChild(document.createTextNode(commentText));
        currentimage.removeAttribute("title");
      }
      if(rightlink !== undefined) {
        rightlink.setAttribute("title", commentText);
      }
      var imghead = document.createElement("div");
      rightlink = document.createElement("a");
      if (j !== 0) {
        leftlink.href = "#";
        leftlink.onclick = toggleImageFunction(i, j, j-1);
        leftlink.appendChild(document.createTextNode("◀"));
      }
      if (j != units.length - 1) {
        rightlink.href = "#";
        rightlink.onclick = toggleImageFunction(i, j, j+1);
        rightlink.appendChild(document.createTextNode("▶"));
      }
      imghead.style.fontSize = "110%";
      imghead.style.fontweight = "bold";
      imghead.appendChild(leftlink);
      imghead.appendChild(document.createTextNode("\xA0"));
      imghead.appendChild(comment);
      imghead.appendChild(document.createTextNode("\xA0"));
      imghead.appendChild(rightlink);
      if (units.length > 1) {
        currentimage.insertBefore(imghead,currentimage.childNodes[0]);
      }
      if (j !== 0) {
        currentimage.style.display = "none";
      }
    }
  }
});

 /* Test if an element has a certain class **************************************
  *
  * Description: Uses regular expressions and caching for better performance.
  * Maintainers: [[User:Mike Dillon]], [[User:R. Koot]], [[User:SG]]
  */
 
 var hasClass = (function () {
     var reCache = {};
     return function (element, className) {
         return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
     };
 })();


 /** Interwiki links to featured articles ***************************************
  *
  *  Description: Highlights interwiki links to featured articles (or
  *               equivalents) by changing the bullet before the interwiki link
  *               into a star.
  *  Maintainers: [[User:R. Koot]]
  */
 
//Messages
var listFA = {
 fa:'Bu başqa dildəki seçilmiş məqalədir',
 fl:'Bu başqa dildəki seçilmiş siyahıdır',
 ga:'Bu başqa dildəki yaxşı məqalədir'};

var zeroSectionTip = 'Girişi redaktə et';

var NavigationBarHide = '[bağla]';
var NavigationBarShow = '[bax]';
var NavigationBarShowDefault = 2;

function LinkFA(){
 var ll, s;
 $('#p-lang li').each( function(i, iw){
   ll = iw.className.replace(/^.*?(interwiki-)/, '$1').replace(/\s.*$/, '') + '-';
   for( var s in listFA )
     if( document.getElementById(ll + s) && !$( iw ).hasClass( 'badge-featuredarticle' ) && !$( iw ).hasClass( 'badge-goodarticle' ) && !$( iw ).hasClass( 'badge-featuredlist' ) )
       $( iw )
        .addClass( s.toUpperCase() )
        .attr( 'title',  listFA[s] + textFA );
 });
}


function editZeroSection(){
 if( !mw.config.get('wgArticleId') ) return;
 mw.util.$content.find('h2')
 .children('.mw-editsection:first')
 .clone().prependTo('#bodyContent')
 .css('float','right')
 .find('a')
 .each(function(index) {
 	$( this ).attr('title', zeroSectionTip);
 	if ($( this ).attr('class') === "mw-editsection-visualeditor" ) { 
 		$( this ).attr('href', mw.config.get('wgScript') + '?title='+mw.util.wikiUrlencode(mw.config.get('wgPageName')) + '&veaction=edit&vesection=0');
 	} else { 
 		$( this ).attr('href', mw.config.get('wgScript') + '?title='+mw.util.wikiUrlencode(mw.config.get('wgPageName')) + '&action=edit&section=0');
 	} 
 });
}


 /** Collapsible tables *********************************************************
  *
  *  Description: Allows tables to be collapsed, showing only the header. See
  *               [[Wikipedia:NavFrame]].
  *  Maintainers: [[User:R. Koot]]
  */
 
 var autoCollapse = 2;
 var collapseCaption = "bağla";
 var expandCaption = "bax";
 
 function collapseTable( tableIndex )
 {
     var Button = document.getElementById( "collapseButton" + tableIndex );
     var Table = document.getElementById( "collapsibleTable" + tableIndex );
     var i;
     if ( !Table || !Button ) {
         return false;
     }
 
     var Rows = Table.getElementsByTagName( "tr" ); 
 
     if ( Button.firstChild.data == collapseCaption ) {
         for ( i = 1; i < Rows.length; i++ ) {
             Rows[i].style.display = "none";
         }
         Button.firstChild.data = expandCaption;
     } else {
         for ( i = 1; i < Rows.length; i++ ) {
             Rows[i].style.display = Rows[0].style.display;
         }
         Button.firstChild.data = collapseCaption;
     }
 }
 
 function createCollapseButtons()
 {
     var tableIndex = 0;
     var NavigationBoxes = {};
     var Tables = document.getElementsByTagName( "table" );
     var i;
     for ( i = 0; i < Tables.length; i++ ) {
         if ( hasClass( Tables[i], "collapsible" ) ) {
             NavigationBoxes[ tableIndex ] = Tables[i];
             Tables[i].setAttribute( "id", "collapsibleTable" + tableIndex );
 
             var Button     = document.createElement( "span" );
             var ButtonLink = document.createElement( "a" );
             var ButtonText = document.createTextNode( collapseCaption );
 
             Button.style.styleFloat = "right";
             Button.style.cssFloat = "right";
             Button.style.fontWeight = "normal";
             Button.style.textAlign = "right";
             Button.style.width = "6em";
 
             ButtonLink.setAttribute( "id", "collapseButton" + tableIndex );
             ButtonLink.setAttribute( "href", "javascript:collapseTable(" + tableIndex + ");" );
             ButtonLink.appendChild( ButtonText );
 
             Button.appendChild( document.createTextNode( "[" ) );
             Button.appendChild( ButtonLink );
             Button.appendChild( document.createTextNode( "]" ) );
 
             var Header = Tables[i].getElementsByTagName( "tr" )[0].getElementsByTagName( "th" )[0];
             /* only add button and increment count if there is a header row to work with */
             if (Header) {
                 Header.insertBefore( Button, Header.childNodes[0] );
                 tableIndex++;
             }
         }
     }
 
     for ( i = 0;  i < tableIndex; i++ ) {
         if ( hasClass( NavigationBoxes[i], "collapsed" ) || ( tableIndex >= autoCollapse && hasClass( NavigationBoxes[i], "autocollapse" ) ) ) {
             collapseTable( i );
         }
     }
 }
 
 $( createCollapseButtons );

 /** Dynamic Navigation Bars (experimental) *************************************
  *
  *  Description: See [[Wikipedia:NavFrame]].
  *  Maintainers: UNMAINTAINED
  */
 
  // set up the words in your language
  var NavigationBarHide = '[' + collapseCaption + ']';
  var NavigationBarShow = '[' + expandCaption + ']';
  
  // set up max count of Navigation Bars on page,
  // if there are more, all will be hidden
  // NavigationBarShowDefault = 0; // all bars will be hidden
  // NavigationBarShowDefault = 1; // on pages with more than 1 bar all bars will be hidden
  var NavigationBarShowDefault = autoCollapse;
  
  
  // shows and hides content and picture (if available) of navigation bars
  // Parameters:
  //     indexNavigationBar: the index of navigation bar to be toggled
  function toggleNavigationBar(indexNavigationBar)
  {
     var NavToggle = document.getElementById("NavToggle" + indexNavigationBar);
     var NavFrame = document.getElementById("NavFrame" + indexNavigationBar);
  
     if (!NavFrame || !NavToggle) {
         return false;
     }
  
     // if shown now
     if (NavToggle.firstChild.data == NavigationBarHide) {
         for (
                 var NavChild = NavFrame.firstChild;
                 NavChild != null;
                 NavChild = NavChild.nextSibling
             ) {
             if ( hasClass( NavChild, 'NavPic' ) ) {
                 NavChild.style.display = 'none';
             }
             if ( hasClass( NavChild, 'NavContent') ) {
                 NavChild.style.display = 'none';
             }
         }
     NavToggle.firstChild.data = NavigationBarShow;
  
     // if hidden now
     } else if (NavToggle.firstChild.data == NavigationBarShow) {
         for (
                 var NavChild = NavFrame.firstChild;
                 NavChild != null;
                 NavChild = NavChild.nextSibling
             ) {
             if (hasClass(NavChild, 'NavPic')) {
                 NavChild.style.display = 'block';
             }
             if (hasClass(NavChild, 'NavContent')) {
                 NavChild.style.display = 'block';
             }
         }
     NavToggle.firstChild.data = NavigationBarHide;
     }
  }
  
  // adds show/hide-button to navigation bars
  function createNavigationBarToggleButton()
  {
     var indexNavigationBar = 0;
     // iterate over all < div >-elements 
     var divs = document.getElementsByTagName("div");
     for(
             var i=0; 
             NavFrame = divs[i]; 
             i++
         ) {
         // if found a navigation bar
         if (hasClass(NavFrame, "NavFrame")) {
  
             indexNavigationBar++;
             var NavToggle = document.createElement("a");
             NavToggle.className = 'NavToggle';
             NavToggle.setAttribute('id', 'NavToggle' + indexNavigationBar);
             NavToggle.setAttribute('href', 'javascript:toggleNavigationBar(' + indexNavigationBar + ');');
             
             var NavToggleText = document.createTextNode(NavigationBarHide);
             NavToggle.appendChild(NavToggleText);
             // Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked)
             for(
               var j=0; 
               j < NavFrame.childNodes.length; 
               j++
             ) {
               if (hasClass(NavFrame.childNodes[j], "NavHead")) {
                 NavFrame.childNodes[j].appendChild(NavToggle);
               }
             }
             NavFrame.setAttribute('id', 'NavFrame' + indexNavigationBar);
         }
     }
     // if more Navigation Bars found than Default: hide all
     if (NavigationBarShowDefault < indexNavigationBar) {
         for(
                 var i=1; 
                 i<=indexNavigationBar; 
                 i++
         ) {
             toggleNavigationBar(i);
         }
     }
   
  }
  
  $( createNavigationBarToggleButton );

 /** "Technical restrictions" title fix *****************************************
 *
 * Description:
 * Maintainers: User:Interiot, User:Mets501, User:Freakofnurture
 */
 //
 // For pages that have something like Template:Lowercase, replace the title, but only if it is cut-and-pasteable as a valid wikilink.
 // (for instance iPod's title is updated. But [[C#]] is not an equivalent
 // wikilink, so [[C Sharp]] doesn't have its main title changed)
 // Likewise for users who have selected the U.K. date format ("1 March") the  
 // titles of day-of-the-year articles will appear in that style. Users with any
 // other date setting are not affected.
 //
 // The function looks for a banner like this: 
 // &lt;div id="RealTitleBanner"&gt;  ... &lt;span id="RealTitle"&gt;title&lt;/span&gt; ... &lt;/div&gt;
 // An element with id=DisableRealTitle disables the function.
 //
 var disableRealTitle = 0; // users can set disableRealTitle = 1 locally to disable.
 if (mw.config.get('wgIsArticle')) { // don't display the RealTitle when editing, since it is apparently inconsistent (doesn't show when editing sections, doesn't show when not previewing)
  $(function() {
    try {
        var realTitleBanner = document.getElementById("RealTitleBanner");
        if (realTitleBanner && !document.getElementById("DisableRealTitle") && !disableRealTitle ) {
            var realTitle = document.getElementById("RealTitle");
            if (realTitle) {
                var realTitleHTML = realTitle.innerHTML;
                realTitleText = pickUpText(realTitle);

                var isPasteable = 0;
                //var containsHTML = /</.test(realTitleHTML);    // contains ANY HTML
                var containsTooMuchHTML = /</.test( realTitleHTML.replace(/<\/?(sub|sup|small|big)>/gi, "") ); // contains HTML that will be ignored when cut-n-pasted as a wikilink
                // calculate whether the title is pasteable
                var verifyTitle = realTitleText.replace(/^ +/, "");       // trim left spaces
                verifyTitle = verifyTitle.charAt(0).toUpperCase() + verifyTitle.substring(1, verifyTitle.length);    // uppercase first character

                // if the namespace prefix is there, remove it on our verification copy. If it isn't there, add it to the original realValue copy.
                if (mw.config.get('wgNamespaceNumber') != 0) {
                    if (mw.config.get('wgCanonicalNamespace') == verifyTitle.substr(0, mw.config.get('wgCanonicalNamespace').length).replace(/ /g, "_") && verifyTitle.charAt(mw.config.get('wgCanonicalNamespace').length) == ":") {
                        verifyTitle = verifyTitle.substr(mw.config.get('wgCanonicalNamespace').length + 1);
                    } else {
                        realTitleText = mw.config.get('wgCanonicalNamespace').replace(/_/g, " ") + ":" + realTitleText;
                        realTitleHTML = mw.config.get('wgCanonicalNamespace').replace(/_/g, " ") + ":" + realTitleHTML;
                    }
                }

                // verify whether wgTitle matches
                verifyTitle = verifyTitle.replace(/[\s_]+/g, " ");      // underscores and multiple spaces to single spaces
                verifyTitle = verifyTitle.replace(/^\s+/, "").replace(/\s+$/, "");        // trim left and right spaces
                verifyTitle = verifyTitle.charAt(0).toUpperCase() + verifyTitle.substring(1, verifyTitle.length);    // uppercase first character
                if ( (verifyTitle == mw.config.get('wgTitle')) || (verifyTitle == mw.config.get('wgTitle').replace(/^(.+)?(January|February|March|April|May|June|July|August|September|October|November|December)\s+([12]?[0-9]|3[0123])([^\d].*)?$/g, "$1$3 $2$4") )) isPasteable = 1;
                var h1 = document.getElementsByTagName("h1")[0];
                if (h1 && isPasteable) {
                    h1.innerHTML = containsTooMuchHTML ? realTitleText : realTitleHTML;
                    if (!containsTooMuchHTML)
                        realTitleBanner.style.display = "none";
                }
                document.title = realTitleText + " - Wikipedia, the free encyclopedia";
            }
        }
    } catch (e) {
        /* Something went wrong. */
    }
  });
 }

 // similar to innerHTML, but only returns the text portions of the insides, excludes HTML
 function pickUpText(aParentElement) {
 var str = "";

 function pickUpTextInternal(aElement) {
  var child = aElement.firstChild;
  while (child) {
   if (child.nodeType == 1)     // ELEMENT_NODE 
    pickUpTextInternal(child);
   else if (child.nodeType == 3)   // TEXT_NODE
    str += child.nodeValue;

   child = child.nextSibling;
  }
 }

  pickUpTextInternal(aParentElement);
  return str;
 }

 //fix edit summary prompt for undo
 //this code fixes the fact that the undo function combined with the "no edit summary prompter" causes problems if leaving the
 //edit summary unchanged
 //this was added by [[User:Deskana]], code by [[User:Tra]]
 $(function () {
   if (document.location.search.indexOf("undo=") != -1
   && document.getElementsByName('wpAutoSummary')[0]) {
     document.getElementsByName('wpAutoSummary')[0].value='';
   }
 })

/**
 * Qeydiyyatdan keçmiş istifadəçilər üçün gizli kateqoriyaların göstərilməsi üçün (+) düyməsini əlavə edən funksiya
 */
function hiddencat( $ ) {
	if (mw.util.getParamValue('printable') === 'yes') {
		return;
	}
	var cl = document.getElementById('catlinks');
	if (!cl) {
		return;
	}
	var $hc = $('#mw-hidden-catlinks');
	if ( !$hc.length ) {
		return;
	}
	if ( $hc.hasClass('mw-hidden-cats-user-shown') ) {
		return;
	}
	if ( $hc.hasClass('mw-hidden-cats-ns-shown') ) {
		$hc.addClass('mw-hidden-cats-hidden');
	}
	var nc = document.getElementById('mw-normal-catlinks');
	if ( !nc ) {
		var catline = document.createElement('div');
		catline.id = 'mw-normal-catlinks';
		var a = document.createElement('a');
		a.href = '';
		a.title = '';
		a.appendChild(document.createTextNode('Kateqoriyalar'));
		catline.appendChild(a);
		catline.appendChild(document.createTextNode(' : '));
		nc = cl.insertBefore(catline, cl.firstChild);
	}
	var lnk = document.createElement('a');
	lnk.id = 'mw-hidden-cats-link';
	lnk.title = 'Bu məqalədə gizli kateqoriyalar var';
	lnk.style.cursor = 'pointer';
	lnk.style.color = 'black';
	lnk.style.marginLeft = '0.3em';
	$(lnk).click(toggleHiddenCats);
	lnk.appendChild(document.createTextNode('[+]'));
	nc.appendChild(lnk);
}

function toggleHiddenCats(e) {
	var $hc = $('#mw-hidden-catlinks');
	if ( $hc.hasClass('mw-hidden-cats-hidden') ) {
		$hc.removeClass('mw-hidden-cats-hidden');
		$hc.addClass('mw-hidden-cat-user-shown');
		$(e.target).text('[–]');
	} else {
		$hc.removeClass('mw-hidden-cat-user-shown');
		$hc.addClass('mw-hidden-cats-hidden');
		$(e.target).text('[+]');
	}
}

mw.loader.using('mediawiki.util', function () {
	$( hiddencat );
});

 /** Add dismiss button to watchlist-message *************************************
  *
  *  Description: Hide the watchlist message for one week.
  *  Maintainers: [[User:Ruud Koot|Ruud Koot]]
  */
 
 function addDismissButton() {
    var watchlistMessage = document.getElementById("watchlist-message");
    if ( watchlistMessage == null ) return;
 
    if ( document.cookie.indexOf( "hidewatchlistmessage=yes" ) != -1 ) {
        watchlistMessage.style.display = "none";
    }
 
    var Button     = document.createElement( "span" );
    var ButtonLink = document.createElement( "a" );
    var ButtonText = document.createTextNode( "dismiss" );
 
    ButtonLink.setAttribute( "id", "dismissButton" );
    ButtonLink.setAttribute( "href", "javascript:dismissWatchlistMessage();" );
    ButtonLink.setAttribute( "title", "Hide this message for one week" );
    ButtonLink.appendChild( ButtonText );
 
    Button.appendChild( document.createTextNode( "[" ) );
    Button.appendChild( ButtonLink );
    Button.appendChild( document.createTextNode( "]" ) );
 
    watchlistMessage.appendChild( Button );
 }
 
 function dismissWatchlistMessage() {
     var e = new Date();
     e.setTime( e.getTime() + (7*24*60*60*1000) );
     document.cookie = "hidewatchlistmessage=yes; expires=" + e.toGMTString() + "; path=/";
     var watchlistMessage = document.getElementById("watchlist-message");
     watchlistMessage.style.display = "none";
 }
 
 $( addDismissButton );

 /** MediaWiki media player *******************************************************
   *
   *  Description: A Java player for in-browser playback of media files.
   *  Created by: [[User:Gmaxwell]]
   */
 
mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Wikimediaplayer.js&action=raw&ctype=text/javascript');

// Choice of multiple search engines
// Autor: Jakob Voss, Guillaume (tret de de:MediaWiki:SpezialSuche.js)
// Version: 0.3.8
// Published as Public Domain

// Map of search engines and some OpenSearch-based fields
var searchEngines = {
  mediawiki: {
    ShortName: "MediaWiki axtarışı",
    Template: "/w/index.php?search={searchTerms}"
  },
  globalwpsearch: {
    ShortName: "Qlobal vikipediyalar",
    Template: "http://vs.aka-online.de/cgi-bin/globalwpsearch.pl?timeout=120&search={searchTerms}"
  },
  google: {
    ShortName: "Google",
    Template: "http://www.google.cat/search?as_sitesearch=az.wikipedia.org&hl={language}&q={searchTerms}"
  },
  wikiwix: {
    ShortName: "Wikiwix",
    Template: "http://www.wikiwix.com/index.php?action={searchTerms}&lang=az"
  },
  yahoo: {
    ShortName: "Yahoo!",
    Template: "http://search.yahoo.com/search?p={searchTerms}&vs=az.wikipedia.org"
  },
  wlive: {
    ShortName: "Windows Live",
    Template: "http://search.live.com/results.aspx?q={searchTerms}&q1=site:http://az.wikipedia.org"
  }
};
 

function externalSearchEngines() {
  if (typeof SpecialSearchEnhanced2Disabled != 'undefined') return;


  var mainNode = document.getElementById("powersearch");
  if (!mainNode) mainNode = document.getElementById("search");
  if (!mainNode) return;

  var beforeNode = document.getElementById("mw-search-top-table");
  if (!beforeNode) return;
  beforeNode = beforeNode.nextSibling;
  if (!beforeNode) return;
 
  var firstEngine = "mediawiki";
 
  var choices = document.createElement("div");
  choices.setAttribute("id","searchengineChoices");
  choices.style.textAlign = "center";
 
  var lsearchbox = document.getElementById("searchText");
  var initValue = lsearchbox.value;
 
  var space = "";

  for (var id in searchEngines) {
    var engine = searchEngines[id];
if(engine.ShortName)
   {
    if (space) choices.appendChild(space);
    space = document.createTextNode(" ");
 
    var attr = { 
      type: "radio", 
      name: "searchengineselect",
      value: id,
      onFocus: "changeSearchEngine(this.value)",
      id: "searchengineRadio-"+id
    };
 
    var html = "<input";
    for (var a in attr) html += " " + a + "='" + attr[a] + "'";
    html += " />";
    var span = document.createElement("span");
    span.innerHTML = html;
 
    choices.appendChild( span );
    var label
    if (engine.Template.indexOf('http') == 0) {
      label = document.createElement("a");
      label.href = engine.Template.replace("{searchTerms}", initValue).replace("{language}", "fr");
    } else {
      label = document.createElement("label");
    }
  
    label.appendChild( document.createTextNode( engine.ShortName ) );
    choices.appendChild( label );
  }
 }
  mainNode.insertBefore(choices, beforeNode);
 
  var input = document.createElement("input");
  input.id = "searchengineextraparam";
  input.type = "hidden";
 
  mainNode.insertBefore(input, beforeNode);

  changeSearchEngine(firstEngine, initValue);
}

function changeSearchEngine(selectedId, searchTerms) {

  var currentId = document.getElementById("searchengineChoices").currentChoice;
  if (selectedId == currentId) return;
 
  document.getElementById("searchengineChoices").currentChoice = selectedId;
  var radio = document.getElementById('searchengineRadio-'  + selectedId);
  radio.checked = "checked";
 
  var engine = searchEngines[selectedId];
  var p = engine.Template.indexOf('?');
  var params = engine.Template.substr(p+1);
 
  var form;
  if (document.forms["search"]) {
    form = document.forms["search"];
  } else {
    form = document.getElementById("powersearch");
  }
  form.setAttribute("action", engine.Template.substr(0,p));
 
  var l = ("" + params).split("&");
  for (var idx = 0;idx < l.length;idx++) {
    var p = l[idx].split("=");
    var pValue = p[1];
 
    if (pValue == "{language}") {
    } else if (pValue == "{searchTerms}") {
      var input;
      input = document.getElementById("searchText");
 
      input.name = p[0];
    } else {
      var input = document.getElementById("searchengineextraparam");
 
      input.name = p[0];
      input.value = pValue;
    }
  }
}


if (mw.config.get('wgCanonicalSpecialPageName') == "Search") {
   $(externalSearchEngines);
}
if (mw.config.get('wgAction') == "edit" || mw.config.get('wgAction') == "submit") {
  importScript('MediaWiki:Editpage.js');
}

// Sidebar Dəyişiklikləri
function ModifySidebar(action, section, name, link) {
    try {
        switch (section) {
          case "Başqa dillərdə":
            var target = "p-lang";
            break;
          case "Alətlər sandığı":
            var target = "p-tb";
            break;
          case "rəhbər":
            var target = "p-navigation";
            break;
          default:
            var target = "p-" + section;
            break;
        }
 
        if (action == "add") {
            var node = document.getElementById(target)
                               .getElementsByTagName('div')[0]
                               .getElementsByTagName('ul')[0];
 
            var aNode = document.createElement('a');
            var liNode = document.createElement('li');
 
            aNode.appendChild(document.createTextNode(name));
            aNode.setAttribute('href', link);
            liNode.appendChild(aNode);
            liNode.className='plainlinks';
            node.appendChild(liNode);
        }
 
        if (action == "remove") {
            var list = document.getElementById(target)
                               .getElementsByTagName('div')[0]
                               .getElementsByTagName('ul')[0];
 
            var listelements = list.getElementsByTagName('li');
 
            for (var i = 0; i < listelements.length; i++) {
                if (listelements[i].getElementsByTagName('a')[0].innerHTML == name ||
                    listelements[i].getElementsByTagName('a')[0].href == link) {
 
                    list.removeChild(listelements[i]);
                }
            }
        }
 
    } catch(e) {
      // lets just ignore what's happened
      return;
    }
}
//</source>
// Results from Wikidata
// [[File:Wdsearch_script_screenshot.png]]
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ||  ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
        mw.loader.load("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript");
}

    /**
	 * imgToggle
	 */
	// На странице есть как минимум один элемент div.img_toggle
	if ( $( 'div.img_toggle' ).length ) {
		mw.loader.load( 'ext.gadget.imgToggle' );
	}
/**
 * Magic editintros ****************************************************
 *
 * Description: Adds editintros on disambiguation pages and BLP pages.
 * Maintainers: [[User:RockMFR]]
 */
function addEditIntro( name ) {
	$( '.mw-editsection, #ca-edit, #ca-ve-edit' ).find( 'a' ).each( function ( i, el ) {
		el.href = $( this ).attr( 'href' ) + '&editintro=' + name;
	} );
}

if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
	$( function () {
		if ( document.getElementById( 'disambigbox' ) ) {
			addEditIntro( 'Template:Disambig_editintro' );
		}
	} );

	$( function () {
		var cats = mw.config.get('wgCategories');
		if ( !cats ) {
			return;
		}
		if ( $.inArray( 'Yaşayan insanlar', cats ) !== -1 || $.inArray( 'Yaşayan insanlar', cats ) !== -1 ) {
			addEditIntro( 'Template:BLP_editintro' );
		}
	} );
}

$(function() {

	var
		//add this class to all elements created by the script. the reason is that we call the script again on
		//window resize, and use the class to remove all the "artefacts" we created in the previous run.
		myClassName = 'imageMapHighlighterArtefacts',
		liHighlightClass = 'liHighlighting',
		specialAreaMark = 'area_mark',
		specialLiClassesMark = 'list_classes',
		specialAreaMarkFile = 'area_mark_file',
		// "2d context" attributes used for highlighting.
		areaHighLighting = {
			fillStyle: 'rgba(0,0,0,0.35)',
			strokeStyle: 'yellow',
			lineJoin: 'round',
			lineWidth: 2
		},
		//every imagemap that wants highlighting, should reside in a div of this 'class':
		hilightDivMarker = '.imageMapHighlighter',
		// specifically for wikis - redlinks tooltip adds this message
		ru = mw && mw.config && mw.config.get('wgUserLanguage') == 'ru',
		expandLegend = ru ? 'показать ссылки текстом' : 'sıyahını aç',
		collapseLegend = ru ? 'скрыть ссылки текстом' : 'siyahını bağla',
		files = [];


	function drawMarker(context, areas) { // this is where the magic is done.

		function drawPoly(coords) {
			context.moveTo(coords.shift(), coords.shift());
			while (coords.length)
				context.lineTo(coords.shift(), coords.shift());
		}

		for (var i in areas) {
			var coords = areas[i].coords.split(',');
			context.beginPath();
			switch (areas[i].shape) {
				case 'rect':
					drawPoly([coords[0], coords[1], coords[0], coords[3], coords[2], coords[
						3], coords[2], coords[1]]);
					break;
				case 'circle':
					context.arc(coords[0], coords[1], coords[2], 0, Math.PI * 2);
					break; //x,y,r,startAngle,endAngle
				case 'poly':
					drawPoly(coords);
					break;
			}
			context.closePath();
			context.stroke();
			context.fill();
		}
	}

	function mouseAction(e) {
		var $this = $(this),
			activate = e.type == 'mouseover',
			caption = $this.text(),
			ol = $this.parent(),
			context = ol.data('context'),
			special = ol.data(specialAreaMark),
			specialFile = ol.data(specialAreaMarkFile); //read JSON file addition

		if (specialFile) {
			if (files[specialFile]) {
				$.extend(special, files[specialFile]);
				always(activate, caption, context, ol, special, $this);
			} else {
				$.get(mw.util.wikiScript(), {
						title: specialFile,
						action: 'raw'
					})
					.done(function(data) {
						files[specialFile] = JSON.parse(data);
						$.extend(special, files[specialFile]);
					})
					.always(function() {
						always(activate, caption, context, ol, special, $this);
					});
			}
		} else
			always(activate, caption, context, ol, special, $this);
	}

	function always(activate, caption, context, ol, special, $this) {
		$this.toggleClass(liHighlightClass, activate); // mark/unmark the list item. 

		context.clearRect(0, 0, context.canvas.width, context.canvas.height); // prepare for a new day.

		ol.find('li')
			.each(function() {
				var $li = $(this);
				var licap = $li.text();
				var param;
				if (activate && licap === caption) { // highlight!!!
					param = special && (special.hover && special.hover[licap]
						|| getblocks(special, licap)) || areaHighLighting;
				} else {
					param = special && special.nover && (special.nover[licap] || special.nover
						.default);
				}
				if (param) {
					$.extend(context, param);
					drawMarker(context, $li.data('areas'));
				}
			});
	}

	function getblocks(special, licap) {
		if (special.hoverblocks) {
			if (special.hoverblocks[licap])
				return special.hoverblocks[licap].value;
			for (var key in special.hoverblocks)
				if (special.hoverblocks[key] && special.hoverblocks[key].list.indexOf(licap) >=0 )
					return special.hoverblocks[key].value;
		}
		if (special.hover)
			return special.hover.default;
	}
	
	function handleOneMap() {
		var img = $(this),
			w = img.width(),
			h = img.height(),
			infoIcon = img.next(),
			parent = img.parent(),
			map = img.siblings('map:first'),
			dims = {
				position: 'absolute',
				width: w + 'px',
				height: h + 'px',
				border: 0,
				top: 0,
				left: 0
			},
			specialHighlight = img.closest(hilightDivMarker)
			.data(specialAreaMark),
			specialLiClasses = img.closest(hilightDivMarker)
			.data(specialLiClassesMark),
			specialHover = img.closest(hilightDivMarker)
			.data(specialAreaMarkFile);

		if (!('area', map)
			.length)
			return; //not an imagemap. inside "each" anonymous function, 'return' means "continue".

		var jcanvas = $('<canvas>', {
				'class': myClassName
			})
			.css(dims)
			.attr({
				width: w,
				height: h
			});
		var bgimg = $('<img>', {
				'class': myClassName,
				src: img.attr('src')
			})
			.css(dims); //completely inert image. this is what we see.
		var context = $.extend(jcanvas[0].getContext("2d"), areaHighLighting);

		// this is where the magic is done: prepare a sandwich of the inert bgimg at the bottom,
		// the canvas above it, and the original image on top,
		// so canvas won't steal the mouse events.
		// pack them all TIGHTLY in a newly minted "relative" div, so when page chnage
		// (other scripts adding elements, window resize etc.), canvas and imagese remain aligned.
		var div = $('<div>')
			.css({
				position: 'relative',
				width: w + 'px',
				height: h + 'px'
			});
		img.before(div); // put the div just above the image, and ...
		div.append(bgimg) // place the background image in the div
			.append(jcanvas) // and the canvas. both are "absolute", so they don't occupy space in the div
			.append(img); // now yank the original image from the window and place it on the div.
		img.fadeTo(1, 0); // make the image transparent - we see canvas and bgimg through it. 
		// the original, now transparent image is creating our mouse events

		infoIcon.css({
			position: 'relative'
		}); // set position to info icon
		var ol = $('<ol>', {
				'class': myClassName
			})
			.css({
				clear: 'both',
				margin: 0,
				listStyle: 'none',
				maxWidth: w + 'px',
				position: 'relative'
			})
			.data(specialAreaMark, specialHighlight)
			.data(specialAreaMarkFile, specialHover)
			.data('context', context);
		var oldiv = $('<div>')
			.html(ol)
			.css({
				clear: 'both',
				margin: 0,
				listStyle: 'none',
				maxWidth: w + 'px',
				position: 'relative'
			})
			.attr({
				'data-expandtext': expandLegend,
				'data-collapsetext': collapseLegend
			});

		// ol below image parent, hr below ol. original caption pushed below hr.
		parent.after($('<hr>', {
					'class': myClassName
				})
				.css('clear', 'both'))
			.after(oldiv);
		$('<hr>', {
					'class': myClassName
				})
				.css('clear', 'both')
			.insertBefore($(oldiv));
		
		var lis = {}; //collapse areas with same caption to one list item
		var someli; // select arbitrary one
		$('area', map)
			.each(function() {
				var text = this.title;
				var li = lis[text]; // title already met? use the same li
				if (!li) { //no? create a new one.
					var href = this.href;
					lis[text] = li = $('<li>', {
							'class': myClassName
						})
						.append($('<a>', {
							href: href,
							text: text
						}))
						.on('mouseover mouseout', mouseAction)
						.data('areas', [])
						.addClass(specialLiClasses && (specialLiClasses[text] ||
							specialLiClasses['default']))
						.appendTo(ol);
					if (specialLiClasses && specialLiClasses[text + ' super'])
						li.find('a')
							.addClass(specialLiClasses[text + ' super']);
				}
				li.data('areas')
					.push(this); //add the area to the li
				someli = li; // whichever - we just want one...
				$(this)
					.on('mouseover mouseout', function(e) {
						li.trigger(e);
					});
			});
		if (someli) someli.trigger('mouseout');
		oldiv.addClass('mw-collapsed')
			.makeCollapsible();
		ol.attr('style', ol.attr('style')
			.replace('none', 'disc'));
	}

	function init() {
		mw.util.addCSS('li.' + myClassName +
			'{white-space:nowrap; font-size:88.36%;}\n' + //css for li element
			'li.' + liHighlightClass + '{background-color:yellow;}\n' + //css for highlighted li element.
			'.rtl li.' + myClassName + '{float: right; margin-left: 1.5em;}\n' +
			'.ltr li.' + myClassName + '{float: left; margin-right: 1.5em;}\n' +
			hilightDivMarker + ' .mw-collapsible-toggle {float: none}');
		$(hilightDivMarker + ' img')
			.each(handleOneMap);
	}

	//has at least one "imagehighlight" div, and canvas-capable browser:
	if ($(hilightDivMarker)
		.length && $('<canvas>')[0].getContext)
		mw.loader.using(['jquery.makeCollapsible', 'mediawiki.util'])
		.done(init);
});