Files
Grav-Admin-Plugin/themes/grav/js/admin.min.js

12 lines
332 KiB
JavaScript
Raw Normal View History

var Grav=webpackJsonpGrav([0],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(295),s=r(a),u=n(296),c=r(u),l=n(301),f=r(l),d=n(306),h=r(d),p=n(323),m=r(p);n(432),n(433),n(434),n(435),n(436);var v=n(437),g=r(v);s["default"].start(),e["default"]={GPM:{GPM:o["default"],Instance:i.Instance},KeepAlive:s["default"],Dashboard:f["default"],Pages:h["default"],Forms:m["default"],Updates:{Updates:c["default"],Instance:u.Instance},MobileSidebar:{MobileSidebar:g["default"],Instance:v.Instance}}},function(t,e,n){(function(t){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(288),u=n(293),c=n(294),l=function(e){function n(){var t=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];r(this,n);var e=i(this,Object.getPrototypeOf(n).call(this));return e.payload={},e.raw={},e.action=t,e}return o(n,e),a(n,[{key:"setPayload",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.payload=t,this.emit("payload",t),this}},{key:"setAction",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];return this.action=t,this.emit("action",t),this}},{key:"fetch",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var e=this,n=arguments.length<=0||void 0===arguments[0]?function(){return!0}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],i=new FormData;i.append("task","GPM"),i.append("action",this.action),r&&i.append("flush",!0),this.emit("fetching",this),t(u.config.base_url_relative,{credentials:"same-origin",method:"post",body:i}).then(function(t){return e.raw=t,t}).then(s.parseStatus).then(s.parseJSON).then(function(t){return e.response(t)}).then(function(t){return n(t,e.raw)}).then(function(t){return e.emit("fetched",e.payload,e.raw,e)})["catch"](s.userFeedbackError)})},{key:"response",value:function(t){return this.payload=t,t}}]),n}(c.EventEmitter);e["default"]=l;e.Instance=new l}).call(e,n(2))},function(t,e,n){(function(e,n){(function(){!function(t){"use strict";function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function o(t){return t.bodyUsed?e.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function a(t){return new e(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function s(t){var e=new FileReader;return e.readAsArrayBuffer(t),a(e)}function u(t){var e=new FileReader;return e.readAsText(t),a(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(m.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(m.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Erro
}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},function(t,e,n){var r=n(14);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(14),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(14);r(r.S,"Math",{expm1:n(116)})},function(t,e){t.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}},function(t,e,n){var r=n(14),i=n(112),o=Math.pow,a=o(2,-52),s=o(2,-23),u=o(2,127)*(2-s),c=o(2,-126),l=function(t){return t+1/a-1/a};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),o=i(t);return c>r?o*l(r/c/s)*c*s:(e=(1+s/a)*r,n=e-(e-r),n>u||n!=n?o*(1/0):o*n)}})},function(t,e,n){var r=n(14),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,u=0;s>a;)n=i(arguments[a++]),n>u?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(14),i=Math.imul;r(r.S+r.F*n(13)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(14);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(14);r(r.S,"Math",{log1p:n(108)})},function(t,e,n){var r=n(14);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(14);r(r.S,"Math",{sign:n(112)})},function(t,e,n){var r=n(14),i=n(116),o=Math.exp;r(r.S+r.F*n(13)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(14),i=n(116),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(14);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(14),i=n(41),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(65536>e?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(14),i=n(34),o=n(39);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),r>s&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,n){"use strict";n(86)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(131)(!0);n(132)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(40),i=n(37);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return 0>u||u>=c?t?"":void 0:(o=s.charCodeAt(u),55296>o||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var r=n(54),i=n(14),o=n(23),a=n(15),s=n(11),u=n(133),c=n(134),l=n(29),f=n(62),d=n(30)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",m="keys",v="values",g=function(){return this};t.exports=function(t,e,n,_,y,b,x){c(n,e,_);var w,k,S,M=function(t){if(!h&&t in j)return j[t];switch(t){case m:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},I=e+" Iterator",O=y==v,E=!1,j=t.prototype,z=j[d]||j[p]||y&&j[y],P=z||M(y),T=y?O?M("entries"):P:void 0,q="Array"==e?j.entries||z:z;if(q&&(S=f(q.call(new t)),S!==Object.prototype&&(l(S,I,!0),r||s(S,d)||a(S,d,g))),O&&z&&z.name!==v&&(E=!0,P=function(){return z.call(this)}),r&&!x||!h&&!E&&j[d]||a(j,d,P),u[e]=P,u[I]=g,y)if(w={values:O?P:M(v),keys:b?P:M(m),entries:T},x)for(k in w)k in j||o(j,k,w[k]);else i(i.P+i.F*(h||E),e,w);return w}},function(t,e){t.exports={}},function(t,e,n)
o||(Z.constructor=w)}var et=new k(new w(2)),nt=k[y].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||u(k[y],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else w=function(t){var e=Y(this,t);this._b=m.call(Array(e),0),this[C]=e},k=function(t,e,n){l(this,k,_),l(t,w,_);var r=t[C],i=f(e);if(0>i||i>r)throw M("Wrong offset!");if(n=void 0===n?r-i:d(n),i+n>r)throw M(b);this[D]=t,this[F]=i,this[C]=n},i&&(G(w,A,"_l"),G(k,q,"_b"),G(k,A,"_l"),G(k,L,"_o")),u(k[y],{getInt8:function(t){return H(this,1,t)[0]<<24>>24},getUint8:function(t){return H(this,1,t)[0]},getInt16:function(t){var e=H(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=H(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return U(H(this,4,t,arguments[1]))},getUint32:function(t){return U(H(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return R(H(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return R(H(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){J(this,1,t,B,e)},setUint8:function(t,e){J(this,1,t,B,e)},setInt16:function(t,e){J(this,2,t,K,e,arguments[2])},setUint16:function(t,e){J(this,2,t,K,e,arguments[2])},setInt32:function(t,e){J(this,4,t,V,e,arguments[2])},setUint32:function(t,e){J(this,4,t,V,e,arguments[2])},setFloat32:function(t,e){J(this,4,t,$,e,arguments[2])},setFloat64:function(t,e){J(this,8,t,W,e,arguments[2])}});v(w,g),v(k,_),s(k[y],a.VIEW,!0),e[g]=w,e[_]=k},function(t,e,n){var r=n(14);r(r.G+r.W+r.F*!n(218).ABV,{DataView:n(219).DataView})},function(t,e,n){n(222)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";if(n(12)){var r=n(54),i=n(9),o=n(13),a=n(14),s=n(218),u=n(219),c=n(25),l=n(93),f=n(22),d=n(15),h=n(209),p=(n(100),n(40)),m=n(39),v=n(41),g=n(21),_=n(11),y=n(74),b=n(78),x=n(18),w=n(61),k=n(164),S=n(48),M=n(62),I=n(52).f,O=(n(223),n(165)),E=n(24),j=n(30),z=n(173),P=n(38),T=n(206),q=n(193),A=n(133),L=n(166),D=n(192),C=n(188),F=n(185),N=n(16),R=n(53),U=N.f,B=R.f,K=i.RangeError,V=i.TypeError,W=i.Uint8Array,$="ArrayBuffer",G="Shared"+$,H="BYTES_PER_ELEMENT",J="prototype",Y=Array[J],X=u.ArrayBuffer,Z=u.DataView,Q=z(0),tt=z(2),et=z(3),nt=z(4),rt=z(5),it=z(6),ot=P(!0),at=P(!1),st=q.values,ut=q.keys,ct=q.entries,lt=Y.lastIndexOf,ft=Y.reduce,dt=Y.reduceRight,ht=Y.join,pt=Y.sort,mt=Y.slice,vt=Y.toString,gt=Y.toLocaleString,_t=j("iterator"),yt=j("toStringTag"),bt=E("typed_constructor"),xt=E("def_constructor"),wt=s.CONSTR,kt=s.TYPED,St=s.VIEW,Mt="Wrong length!",It=z(1,function(t,e){return Tt(T(t,t[xt]),e)}),Ot=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Et=!!W&&!!W[J].set&&o(function(){new W(1).set({})}),jt=function(t,e){if(void 0===t)throw V(Mt);var n=+t,r=m(t);if(e&&!y(n,r))throw K(Mt);return r},zt=function(t,e){var n=p(t);if(0>n||n%e)throw K("Wrong offset!");return n},Pt=function(t){if(x(t)&&kt in t)return t;throw V(t+" is not a typed array!")},Tt=function(t,e){if(!(x(t)&&bt in t))throw V("It is not a typed array constructor!");return new t(e)},qt=function(t,e){return At(T(t,t[xt]),e)},At=function(t,e){for(var n=0,r=e.length,i=Tt(t,r);r>n;)i[n]=e[n++];return i},Lt=function(t,e,n){U(t,e,{get:function(){return this._d[n]}})},Dt=function(t){var e,n,r,i,o,a,s=w(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=O(s);if(void 0!=d&&!k(d)){for(a=d.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=m(s.length),i=Tt(this,n);n>e;e++)i[e]=f?l(s[e],e):s[e];return i},Ct=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},Ft=!!W&&o(function(){gt.call(new W(1))}),Nt=function(){return gt.apply(Ft?mt.call(Pt(this)):Pt(this),arguments)},Rt={copyWithin:function(t,e){return F.call(Pt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Pt(this),arguments)},filter:function(t){return qt(this,tt(Pt(this),t,arguments.length>1?arguments[1]:void 0))},fin
this.setPayload(e),this.task="task"+u.config.param_sep}return o(t,[{key:"setPayload",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.payload=t,this}},{key:"fetch",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?!1:arguments[0];return f.Instance.fetch(function(e){return t.setPayload(e)},e),this}},{key:"maintenance",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"hide":arguments[0],e=(0,s["default"])("#updates [data-maintenance-update]");return e["show"===t?"fadeIn":"fadeOut"](),"hide"===t&&(0,s["default"])(".badges.with-updates").removeClass("with-updates").find(".badge.updates").remove(),this}},{key:"grav",value:function(){var t=this.payload.grav;if(t.isUpdatable){var e=this.task,n='\n <i class="fa fa-bullhorn"></i>\n Grav <b>v'+t.available+"</b> "+u.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+'! <span class="less">('+u.translations.PLUGIN_ADMIN.CURRENT+"v"+t.version+")</span>\n ";n+=t.isSymlink?'<span class="hint--left" style="float: right;" data-hint="'+u.translations.PLUGIN_ADMIN.GRAV_SYMBOLICALLY_LINKED+'"><i class="fa fa-fw fa-link"></i></span>':'<button data-maintenance-update="'+u.config.base_url_relative+"/update.json/"+e+"updategrav/admin-nonce"+u.config.param_sep+u.config.admin_nonce+'" class="button button-small secondary" id="grav-update-button">'+u.translations.PLUGIN_ADMIN.UPDATE_GRAV_NOW+"</button>",(0,s["default"])("[data-gpm-grav]").addClass("grav").html("<p>"+n+"</p>")}return(0,s["default"])("#grav-update-button").on("click",function(){(0,s["default"])(this).html(u.translations.PLUGIN_ADMIN.UPDATING_PLEASE_WAIT+" "+(0,l["default"])(t.assets["grav-update"].size)+"..")}),this}},{key:"resources",value:function(){if(!this.payload.resources.total)return this.maintenance("hide");var t=["plugins","themes"],e=["plugin","theme"],n=this.task,r=this.payload.resources,i=r.plugins,o=r.themes;return this.payload.resources.total?void[i,o].forEach(function(r,i){if(r&&!Array.isArray(r)){var o=Object.keys(r).length,a=t[i];(0,s["default"])('#admin-menu a[href$="/'+t[i]+'"]').find(".badges").addClass("with-updates").find(".badge.updates").text(o);var c=a.charAt(0).toUpperCase()+a.substr(1).toLowerCase(),l=(0,s["default"])(".grav-update."+a);l.html('\n <p>\n <i class="fa fa-bullhorn"></i>\n '+o+" "+u.translations.PLUGIN_ADMIN.OF_YOUR+" "+a+" "+u.translations.PLUGIN_ADMIN.HAVE_AN_UPDATE_AVAILABLE+'\n <a href="'+u.config.base_url_relative+"/"+a+"/"+n+"update/admin-nonce"+u.config.param_sep+u.config.admin_nonce+'" class="button button-small secondary">'+u.translations.PLUGIN_ADMIN.UPDATE+" All "+c+"</a>\n </p>\n "),Object.keys(r).forEach(function(t){var o=(0,s["default"])("[data-gpm-"+e[i]+'="'+t+'"] .gpm-name'),c=o.find("a");"plugins"!==a||o.find(".badge.update").length?"themes"===a&&o.append('<div class="gpm-ribbon"><a href="'+c.attr("href")+'">'+u.translations.PLUGIN_ADMIN.UPDATE.toUpperCase()+"</a></div>"):o.append('<a class="plugin-update-button" href="'+c.attr("href")+'"><span class="badge update">'+u.translations.PLUGIN_ADMIN.UPDATE_AVAILABLE+"!</span></a>");var l=(0,s["default"])(".grav-update."+e[i]);l.length&&l.html('\n <p>\n <i class="fa fa-bullhorn"></i>\n <strong>v'+r[t].available+"</strong> "+u.translations.PLUGIN_ADMIN.OF_THIS+" "+e[i]+" "+u.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+'!\n <a href="'+u.config.base_url_relative+"/"+a+"/"+t+"/"+n+"update/admin-nonce"+u.config.param_sep+u.config.admin_nonce+'" class="button button-small secondary">'+u.translations.PLUGIN_ADMIN.UPDATE+" "+(e[i].charAt(0).toUpperCase()+e[i].substr(1).toLowerCase())+"</a>\n </p>\n ")})}}):this}}]),t}();e["default"]=d;var h=new d;e.Instance=h,f.Instance.on("fetched",function(t,e){h.setPayload(t.payload||{}),h.grav().resources()}),"1"===u.config.enable_auto_updates_check&&f.Instance.fetch()},function(t,e){"use strict
return r}function p(t){return void 0===t.size&&(t.size=t.__iterate(v)),t.size}function m(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return 0>e?p(t)+e:e}function v(){return!0}function g(t,e,n){return(0===t||void 0!==n&&-n>=t)&&(void 0===e||void 0!==n&&e>=n)}function _(t,e){return b(t,e,0)}function y(t,e){return b(t,e,e)}function b(t,e,n){return void 0===t?n:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function x(t){this.next=t}function w(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function k(){return{value:void 0,done:!0}}function S(t){return!!O(t)}function M(t){return t&&"function"==typeof t.next}function I(t){var e=O(t);return e&&e.call(t)}function O(t){var e=t&&(kn&&t[kn]||t[Sn]);return"function"==typeof e?e:void 0}function E(t){return t&&"number"==typeof t.length}function j(t){return null===t||void 0===t?F():o(t)?t.toSeq():U(t)}function z(t){return null===t||void 0===t?F().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():N(t)}function P(t){return null===t||void 0===t?F():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():R(t)}function T(t){return(null===t||void 0===t?F():o(t)?a(t)?t.entrySeq():t:R(t)).toSetSeq()}function q(t){this._array=t,this.size=t.length}function A(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function L(t){this._iterable=t,this.size=t.length||t.size}function D(t){this._iterator=t,this._iteratorCache=[]}function C(t){return!(!t||!t[In])}function F(){return On||(On=new q([]))}function N(t){var e=Array.isArray(t)?new q(t).fromEntrySeq():M(t)?new D(t).fromEntrySeq():S(t)?new L(t).fromEntrySeq():"object"==typeof t?new A(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function R(t){var e=B(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function U(t){var e=B(t)||"object"==typeof t&&new A(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function B(t){return E(t)?new q(t):M(t)?new D(t):S(t)?new L(t):void 0}function K(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;o>=a;a++){var s=i[n?o-a:a];if(e(s[1],r?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,n)}function V(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new x(function(){var t=i[n?o-a:a];return a++>o?k():w(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function W(t,e){return e?$(e,t,"",{"":t}):G(t)}function $(t,e,n,r){return Array.isArray(e)?t.call(r,n,P(e).map(function(n,r){return $(t,n,r,e)})):H(e)?t.call(r,n,z(e).map(function(n,r){return $(t,n,r,e)})):e}function G(t){return Array.isArray(t)?P(t).map(G).toList():H(t)?z(t).map(G).toMap():t}function H(t){return t&&(t.constructor===Object||void 0===t.constructor)}function J(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function Y(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&J(i[1],t)&&(n||J(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var l=t;t=e,e=l}var f=!0,d=e.__iterate(function(e,r){return(n?t.has(e):i?J(e,t.get(r,gn)):J(t.get(r,gn),e))?void 0:(f=!1,!1)});return f&&t.size===d}function X(t,e){if(!(this instanceof X))return new X(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(En)return En;En=this}}function Z(t,e){if(!t)throw new Error(e)}function Q(t,e,n){if(!(this instanceof Q))return new Q(t,e,n);if(Z(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Mat
return r},ht.prototype.update=function(t,e,n,r,i,o,a){for(var s=i===gn,u=this.entries,c=0,l=u.length;l>c&&!J(r,u[c][0]);c++);var d=l>c;if(d?u[c][1]===i:s)return this;if(f(a),(s||!d)&&f(o),!s||1!==u.length){if(!d&&!s&&u.length>=Vn)return Ot(t,u,r,i);var p=t&&t===this.ownerID,m=p?u:h(u);return d?s?c===l-1?m.pop():m[c]=m.pop():m[c]=[r,i]:m.push([r,i]),p?(this.entries=m,this):new ht(t,m)}},pt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=1<<((0===t?e:e>>>t)&vn),o=this.bitmap;return 0===(o&i)?r:this.nodes[Lt(o&i-1)].get(t+pn,e,n,r)},pt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&vn,u=1<<s,c=this.bitmap,l=0!==(c&u);if(!l&&i===gn)return this;var f=Lt(c&u-1),d=this.nodes,h=l?d[f]:void 0,p=St(h,t,e+pn,n,r,i,o,a);if(p===h)return this;if(!l&&p&&d.length>=Wn)return jt(t,d,c,s,p);if(l&&!p&&2===d.length&&Mt(d[1^f]))return d[1^f];if(l&&p&&1===d.length&&Mt(p))return p;var m=t&&t===this.ownerID,v=l?p?c:c^u:c|u,g=l?p?Dt(d,f,p,m):Ft(d,f,m):Ct(d,f,p,m);return m?(this.bitmap=v,this.nodes=g,this):new pt(t,v,g)},mt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=(0===t?e:e>>>t)&vn,o=this.nodes[i];return o?o.get(t+pn,e,n,r):r},mt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&vn,u=i===gn,c=this.nodes,l=c[s];if(u&&!l)return this;var f=St(l,t,e+pn,n,r,i,o,a);if(f===l)return this;var d=this.count;if(l){if(!f&&(d--,$n>d))return Et(t,c,d,s)}else d++;var h=t&&t===this.ownerID,p=Dt(c,s,f,h);return h?(this.count=d,this.nodes=p,this):new mt(t,d,p)},vt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;a>o;o++)if(J(n,i[o][0]))return i[o][1];return r},vt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=i===gn;if(n!==this.keyHash)return s?this:(f(a),f(o),It(this,t,e,n,[r,i]));for(var u=this.entries,c=0,l=u.length;l>c&&!J(r,u[c][0]);c++);var d=l>c;if(d?u[c][1]===i:s)return this;if(f(a),(s||!d)&&f(o),s&&2===l)return new gt(t,this.keyHash,u[1^c]);var p=t&&t===this.ownerID,m=p?u:h(u);return d?s?c===l-1?m.pop():m[c]=m.pop():m[c]=[r,i]:m.push([r,i]),p?(this.entries=m,this):new vt(t,this.keyHash,m)},gt.prototype.get=function(t,e,n,r){return J(n,this.entry[0])?this.entry[1]:r},gt.prototype.update=function(t,e,n,r,i,o,a){var s=i===gn,u=J(r,this.entry[0]);return(u?i===this.entry[1]:s)?this:(f(a),s?void f(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new gt(t,this.keyHash,[r,i]):(f(o),It(this,t,e,ot(r),[r,i])))},ht.prototype.iterate=vt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;i>=r;r++)if(t(n[e?i-r:r])===!1)return!1},pt.prototype.iterate=mt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;i>=r;r++){var o=n[e?i-r:r];if(o&&o.iterate(t,e)===!1)return!1}},gt.prototype.iterate=function(t,e){return t(this.entry)},t(_t,x),_t.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return yt(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,n>=i)return yt(t,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,n>=i){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return yt(t,o.entry);e=this._stack=bt(o,e)}continue}e=this._stack=this._stack.__prev}return k()};var Kn,Vn=mn/4,Wn=mn/2,$n=mn/4;t(Nt,nt),Nt.of=function(){return this(arguments)},Nt.prototype.toString=function(){return this.__toString("List [","]")},Nt.prototype.get=function(t,e){if(t=m(this,t),t>=0&&t<this.size){t+=this._origin;var n=Ht(this,t);return n&&n.array[t&vn]}return e},Nt.prototype.set=function(t,e){return Wt(this,t,e)},Nt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Nt.prototype.insert=function(t,e){return this.splice(t,0,e)},Nt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=pn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Vt()},Nt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Jt(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,
}},{key:"addAction",value:function(t){var e=t.data("array-template"),n=t.closest('[data-grav-array-type="row"]');n.after(e.getNewRow())}},{key:"remAction",value:function(t){var e=t.data("array-template"),n=t.closest('[data-grav-array-type="row"]'),r=!n.siblings().length;if(r){var i=(0,s["default"])(e.getNewRow());n.after(i),i.find('[data-grav-array-type="value"]:last').attr("name",e.getName())}n.remove(),this.refreshNames(e)}},{key:"refreshNames",value:function(t){if(t.isValueOnly()){var e=t.container.find('> div > [data-grav-array-type="row"]'),n=e.find('[name]:not([name=""])');n.each(function(t,e){e=(0,s["default"])(e);var n=e.attr("name");n=n.replace(/\[\d+\]$/,"["+t+"]"),e.attr("name",n)}),n.length||e.find('[data-grav-array-type="value"]').attr("name",t.getName())}}},{key:"getIndexFor",value:function(t){var e=t.data("array-template"),n=t.closest('[data-grav-array-type="row"]');return e.container.find((e.isValueOnly()?"> div ":"")+' > [data-grav-array-type="row"]').index(n)}},{key:"_setTemplate",value:function(t){t.data("array-template")||t.data("array-template",new c(t.closest("[data-grav-array-name]")))}}]),t}();e["default"]=l;e.Instance=new l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(291),s=r(a),u=n(307),c=r(u);n(326);var l=function(){function t(){var e=this;i(this,t),this.lists=(0,s["default"])(),(0,s["default"])('[data-type="collection"]').each(function(t,n){return e.addList(n)}),(0,s["default"])("body").on("mutation._grav",this._onAddedNodes.bind(this))}return o(t,[{key:"addList",value:function(t){var e=this;t=(0,s["default"])(t),this.lists=this.lists.add(t),t.on("click",'> .collection-actions [data-action="add"]',function(t){return e.addItem(t)}),t.on("click",'> ul > li > .item-actions [data-action="delete"]',function(t){return e.removeItem(t)}),t.find("[data-collection-holder]").each(function(t,n){n=(0,s["default"])(n),n.data("collection-sort")||n.data("collection-sort",new c["default"](n.get(0),{forceFallback:!0,animation:150,filter:".CodeMirror",onUpdate:function(){return e.reindex(n)}}))})}},{key:"addItem",value:function(t){var e=(0,s["default"])(t.currentTarget),n=e.closest('[data-type="collection"]'),r=(0,s["default"])(n.find('> [data-collection-template="new"]').data("collection-template-html"));n.find("> [data-collection-holder]").append(r),this.reindex(n)}},{key:"removeItem",value:function(t){var e=(0,s["default"])(t.currentTarget),n=e.closest("[data-collection-item]"),r=e.closest('[data-type="collection"]');n.remove(),this.reindex(r)}},{key:"reindex",value:function(t){t=(0,s["default"])(t).closest('[data-type="collection"]');var e=t.find("> ul > [data-collection-item]");e.each(function(t,e){e=(0,s["default"])(e),e.attr("data-collection-key",t),["name","data-grav-field-name","id","for"].forEach(function(t){e.find("["+t+"]").each(function(){var e=(0,s["default"])(this),n=[];e.parents("[data-collection-key]").map(function(t,e){return n.push((0,s["default"])(e).attr("data-collection-key"))}),n.reverse();var r=e.attr(t).replace(/\[(\d+|\*)\]/g,function(){return"["+n.shift()+"]"});e.attr(t,r)})})})}},{key:"_onAddedNodes",value:function(t,e){var n=this,r=(0,s["default"])(e).find('[data-type="collection"]');r.length&&r.each(function(t,e){e=(0,s["default"])(e),~n.lists.index(e)||n.addList(e)})}}]),t}();e["default"]=l;e.Instance=new l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enum
t.registerHelper("hintWords","css",k),t.defineMIME("text/css",{documentTypes:i,mediaTypes:a,mediaFeatures:u,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:v,counterDescriptors:_,colorKeywords:b,valueKeywords:w,tokenHooks:{"/":function(t,e){return t.eat("*")?(e.tokenize=n,n(t,e)):!1}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:u,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:b,valueKeywords:w,fontProperties:v,allowNested:!0,tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=n,n(t,e)):["operator","operator"]},":":function(t){return t.match(/\s*\{/)?[null,"{"]:!1},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return t.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:u,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:b,valueKeywords:w,fontProperties:v,allowNested:!0,tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=n,n(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)?!1:(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:a,mediaFeatures:u,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:v,counterDescriptors:_,colorKeywords:b,valueKeywords:w,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return t.eat("*")?(e.tokenize=n,n(t,e)):!1}},name:"css",helperType:"gss"})})},function(t,e,n){!function(t){t(n(416),n(420),n(423))}(function(t){"use strict";var e=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;t.defineMode("gfm",function(n,r){function i(t){return t.code=!1,null}var o=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(t){return{code:t.code,codeBlock:t.codeBlock,ateSpace:t.ateSpace}},token:function(t,n){if(n.combineTokens=null,n.codeBlock)return t.match(/^```+/)?(n.codeBlock=!1,null):(t.skipToEnd(),null);if(t.sol()&&(n.code=!1),t.sol()&&t.match(/^```+/))return t.skipToEnd(),n.codeBlock=!0,null;if("`"===t.peek()){t.next();var i=t.pos;t.eatWhile("`");var a=1+t.pos-i;return n.code?a===o&&(n.code=!1):(o=a,n.code=!0),null}if(n.code)return t.next(),null;if(t.eatSpace())return n.ateSpace=!0,null;if((t.sol()||n.ateSpace)&&(n.ateSpace=!1,r.gitHubSpice!==!1)){if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"
return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:t.copyState(e,r.base),overlay:t.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(t,i){return(t!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<t.start)&&(i.streamSeen=t,i.basePos=i.overlayPos=t.start),t.start==i.basePos&&(i.baseCur=e.token(t,i.base),i.basePos=t.pos),t.start==i.overlayPos&&(t.pos=t.start,i.overlayCur=n.token(t,i.overlay),i.overlayPos=t.pos),t.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:e.indent&&function(t,n){return e.indent(t.base,n)},electricChars:e.electricChars,innerMode:function(t){return{state:t.base,mode:e}},blankLine:function(t){e.blankLine&&e.blankLine(t.base),n.blankLine&&n.blankLine(t.overlay)}}}})},function(t,e,n){!function(t){t(n(416),n(421),n(425),n(418))}(function(t){"use strict";function e(t,e,n){var r=t.current(),i=r.search(e);return i>-1?t.backUp(r.length-i):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}function n(t){var e=u[t];return e?e:u[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function r(t,e){var r=t.match(n(e));return r?r[2]:""}function i(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function o(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),i=t[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}function a(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(!i[0]||i[1].test(r(e,i[0])))return i[2]}}var s={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},u={};t.defineMode("htmlmixed",function(n,r){function u(r,o){var s,f=c.token(r,o.htmlState),d=/\btag\b/.test(f);if(d&&!/[<>\s\/]/.test(r.current())&&(s=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(s))o.inTag=s+" ";else if(o.inTag&&d&&/>$/.test(r.current())){var h=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==r.current()&&a(l[h[1]],h[2]),m=t.getMode(n,p),v=i(h[1],!0),g=i(h[1],!1);o.token=function(t,n){return t.match(v,!1)?(n.token=u,n.localState=n.localMode=null,null):e(t,g,n.localMode.token(t,n.localState))},o.localMode=m,o.localState=t.startState(m,c.indent(o.htmlState,""))}else o.inTag&&(o.inTag+=r.current(),r.eol()&&(o.inTag+=" "));return f}var c=t.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:r.multilineTagIndentFactor,multilineTagIndentPastTag:r.multilineTagIndentPastTag}),l={},f=r&&r.tags,d=r&&r.scriptTypes;if(o(s,l),f&&o(f,l),d)for(var h=d.length-1;h>=0;h--)l.script.unshift(["type",d[h].matches,d[h].mode]);return{startState:function(){var t=c.startState();return{token:u,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(e){var n;return e.localState&&(n=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(c,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n){return!e.localMode||/^\s*<\//.test(n)?c.indent(e.htmlState,n):e.localMode.indent?e.localMode.indent(e.localState,n):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||c}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")})},function(t,e,n){!function(t){t(n(416))}(function(t){"use strict";function e(t,e,n){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}t.defineMode("javascript",function(n,r){function i(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}function o(t,e,n){return bt=t,xt=n,e}function a(t,n){var r=t.next();i
for(var o=0;o<e.length;++o)t.defineMIME(e[o],n)}function g(t,e){for(var n=!1;!t.eol();){if(!n&&t.match('"""')){e.tokenize=null;break}n="\\"==t.next()&&!n}return"string"}function _(t){return function(e,n){for(var r,i=!1,o=!1;!e.eol();){if(!t&&!i&&e.match('"')){o=!0;break}if(t&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!t}return!o&&t||(n.tokenize=null),"string"}}function y(t){return function(e,n){for(var r,i=!1,o=!1;!e.eol();){if(!i&&e.match('"')&&("single"==t||e.match('""'))){o=!0;break}if(!i&&e.match("``")){w=y(t),o=!0;break}r=e.next(),i="single"==t&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}t.defineMode("clike",function(s,c){function l(t,e){var n=t.next();if(S[n]){var r=S[n](t,e);if(r!==!1)return r}if('"'==n||"'"==n)return e.tokenize=f(n),e.tokenize(t,e);if(j.test(n))return h=n,null;if(z.test(n)){if(t.backUp(1),t.match(P))return"number";t.next()}if("/"==n){if(t.eat("*"))return e.tokenize=d,d(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(T.test(n))return t.eatWhile(T),"operator";if(t.eatWhile(/[\w\$_\xa1-\uffff]/),E)for(;t.match(E);)t.eatWhile(/[\w\$_\xa1-\uffff]/);var i=t.current();return u(_,i)?(u(x,i)&&(h="newstatement"),u(w,i)&&(p=!0),"keyword"):u(y,i)?"variable-3":u(b,i)?(u(x,i)&&(h="newstatement"),"builtin"):u(k,i)?"atom":"variable"}function f(t){return function(e,n){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==t&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!M)&&(n.tokenize=null),"string"}}function d(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=null;break}r="*"==n}return"comment"}var h,p,m=s.indentUnit,v=c.statementIndentUnit||m,g=c.dontAlignCalls,_=c.keywords||{},y=c.types||{},b=c.builtin||{},x=c.blockKeywords||{},w=c.defKeywords||{},k=c.atoms||{},S=c.hooks||{},M=c.multiLineStrings,I=c.indentStatements!==!1,O=c.indentSwitch!==!1,E=c.namespaceSeparator,j=c.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,z=c.numberStart||/[\d\.]/,P=c.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,T=c.isOperatorChar||/[+\-*&%=<>!?|\/]/,q=c.endStatement||/^[;:,]$/;return{startState:function(t){return{tokenize:null,context:new e((t||0)-m,0,"top",!1),indented:0,startOfLine:!0,prevToken:null}},token:function(t,e){var s=e.context;if(t.sol()&&(null==s.align&&(s.align=!1),e.indented=t.indentation(),e.startOfLine=!0),t.eatSpace())return null;h=p=null;var u=(e.tokenize||l)(t,e);if("comment"==u||"meta"==u)return u;if(null==s.align&&(s.align=!0),q.test(h))for(;n(e.context.type);)i(e);else if("{"==h)r(e,t.column(),"}");else if("["==h)r(e,t.column(),"]");else if("("==h)r(e,t.column(),")");else if("}"==h){for(;n(s.type);)s=i(e);for("}"==s.type&&(s=i(e));n(s.type);)s=i(e)}else if(h==s.type)i(e);else if(I&&(("}"==s.type||"top"==s.type)&&";"!=h||n(s.type)&&"newstatement"==h)){var f="statement";"newstatement"==h&&O&&"switch"==t.current()?f="switchstatement":"keyword"==u&&"namespace"==t.current()&&(f="namespace"),r(e,t.column(),f)}if("variable"==u&&("def"==e.prevToken||c.typeFirstDefinitions&&o(t,e)&&a(e.context)&&t.match(/^\s*\(/,!1))&&(u="def"),S.token){var d=S.token(t,e,u);void 0!==d&&(u=d)}return"def"==u&&c.styleDefs===!1&&(u="variable"),e.startOfLine=!1,e.prevToken=p?"def":u||h,u},indent:function(e,r){if(e.tokenize!=l&&null!=e.tokenize)return t.Pass;var i=e.context,o=r&&r.charAt(0);if(n(i.type)&&"}"==o&&(i=i.prev),S.indent){var a=S.indent(e,i,r);if("number"==typeof a)return a}var s=o==i.type,u=i.prev&&"switchstatement"==i.prev.type;if(c.allmanIndentation&&/[{(]/.test(o)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return n(i.type)?i.indented+("{"==o?0:v):!i.align||g&&")"==i.type?")"!=i.type||s?i.indented+(s?0:m)+(s||!u||/^(?:case|default)\b/.test(r)?0:m):i.indented+v:i.column+(s?0:1)},electricInput:O?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var b="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",x="int long char short double float unsigned signed
e={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(t){return"__proto__"===t?void(e[t]={configurable:!0,enumerable:!1,writable:!0,value:void 0}):void(e[t]=n)}),Object.defineProperties(t,e),Object.defineProperty(r,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:t}),function(e,n){return i(null===e?t:e,n)}):i}()},function(t,e){"use strict";t.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},function(t,e,n){"use strict";var r,i=n(456),o=n(462),a=n(463),s=n(464);r=t.exports=function(t,e){var n,r,a,u,c;return arguments.length<2||"string"!=typeof t?(u=e,e=t,t=null):u=arguments[2],null==t?(n=a=!0,r=!1):(n=s.call(t,"c"),r=s.call(t,"e"),a=s.call(t,"w")),c={value:e,configurable:n,enumerable:r,writable:a},u?i(o(u),c):c},r.gs=function(t,e,n){var r,u,c,l;return"string"!=typeof t?(c=n,n=e,e=t,t=null):c=arguments[3],null==e?e=void 0:a(e)?null==n?n=void 0:a(n)||(c=n,n=void 0):(c=e,e=n=void 0),null==t?(r=!0,u=!1):(r=s.call(t,"c"),u=s.call(t,"e")),l={get:e,set:n,configurable:r,enumerable:u},c?i(o(c),l):l}},function(t,e,n){"use strict";t.exports=n(457)()?Object.assign:n(458)},function(t,e){"use strict";t.exports=function(){var t,e=Object.assign;return"function"!=typeof e?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,e,n){"use strict";var r=n(459),i=n(442),o=Math.max;t.exports=function(t,e){var n,a,s,u=o(arguments.length,2);for(t=Object(i(t)),s=function(r){try{t[r]=e[r]}catch(i){n||(n=i)}},a=1;u>a;++a)e=arguments[a],r(e).forEach(s);if(void 0!==n)throw n;return t}},function(t,e,n){"use strict";t.exports=n(460)()?Object.keys:n(461)},function(t,e){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},function(t,e){"use strict";var n=Object.keys;t.exports=function(t){return n(null==t?t:Object(t))}},function(t,e){"use strict";var n=Array.prototype.forEach,r=Object.create,i=function(t,e){var n;for(n in t)e[n]=t[n]};t.exports=function(t){var e=r(null);return n.call(arguments,function(t){null!=t&&i(Object(t),e)}),e}},function(t,e){"use strict";t.exports=function(t){return"function"==typeof t}},function(t,e,n){"use strict";t.exports=n(465)()?String.prototype.contains:n(466)},function(t,e){"use strict";var n="razdwatrzy";t.exports=function(){return"function"!=typeof n.contains?!1:n.contains("dwa")===!0&&n.contains("foo")===!1}},function(t,e){"use strict";var n=String.prototype.indexOf;t.exports=function(t){return n.call(this,t,arguments[1])>-1}},function(t,e,n){"use strict";var r,i,o,a,s,u,c,l=n(455),f=n(454),d=Function.prototype.apply,h=Function.prototype.call,p=Object.create,m=Object.defineProperty,v=Object.defineProperties,g=Object.prototype.hasOwnProperty,_={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var n;return f(e),g.call(this,"__ee__")?n=this.__ee__:(n=_.value=p(null),m(this,"__ee__",_),_.value=null),n[t]?"object"==typeof n[t]?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},i=function(t,e){var n,i;return f(e),i=this,r.call(this,t,n=function(){o.call(i,t,n),d.call(e,this,arguments)}),n.__eeOnceListener__=e,this},o=function(t,e){var n,r,i,o;if(f(e),!g.call(this,"__ee__"))return this;if(n=this.__ee__,!n[t])return this;if(r=n[t],"object"==typeof r)for(o=0;i=r[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===r.length?n[t]=r[o?0:1]:r.splice(o,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},a=function(t){var e,n,r,i,o;if(g.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),e=1;n>e;++e)o[e-1]=arguments[e];for(i=i.slice(),e=0;r=i[e];++e)d.call(r,this,o)}else switch(arguments.length){case 1:h.call(i,this);break;case 2:h.call(i,this,arguments[1]);break;case 3:h.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),e=1;n>e;++e)o[e-1]=arguments[e];d.call(i,this,o)}},s={on:r,once:i,off:o,emit:a},u={on:l(r),once:l(i),off:l(o),emit:l(a)},c=v({},u),t.exports=e=function(t){return null==t?p(c):v(Object(t),u)},e.methods=s},f
2016-02-05 12:37:48 -08:00
//# sourceMappingURL=admin.min.js.map