diff --git a/dist/js/tool.js b/dist/js/tool.js index 1e083ab..fe6ae47 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -1 +1 @@ -(()=>{var t={9264:(t,e,r)=>{"use strict";r.d(e,{Z:()=>a});var n=r(3645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,"#column-toggler~div{margin-left:.5rem}",""]);const a=o},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var a=0;a{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),a=r(7667),i=r(1327),c=r(1866);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(7040),o=r(4125),a=r(2117),i=r(7518),c=r(4705);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),a=r(6e3),i=r(9916),c=r(5265);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},6384:(t,e,r)=>{var n=r(8407),o=r(7465),a=r(3779),i=r(7599),c=r(4758),s=r(4309);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=c,u.prototype.set=s,t.exports=u},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},7412:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r{var n=r(2545),o=r(5694),a=r(1469),i=r(4144),c=r(5776),s=r(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=a(t),l=!r&&o(t),p=!r&&!l&&i(t),f=!r&&!l&&!p&&s(t),v=r||l||p||f,d=v?n(t.length,String):[],b=d.length;for(var y in t)!e&&!u.call(t,y)||v&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,b))||d.push(y);return d}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r{var n=r(9465),o=r(7813),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var i=t[e];a.call(t,e)&&o(i,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:(t,e,r)=>{var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:(t,e,r)=>{var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:(t,e,r)=>{var n=r(6384),o=r(7412),a=r(4865),i=r(4037),c=r(3886),s=r(4626),u=r(278),l=r(8805),p=r(1911),f=r(8234),v=r(6904),d=r(4160),b=r(3824),y=r(9148),h=r(8517),g=r(1469),m=r(4144),x=r(6688),j=r(3218),_=r(2928),w=r(3674),O=r(1704),S="[object Arguments]",C="[object Function]",k="[object Object]",A={};A[S]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[k]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,t.exports=function t(e,r,P,N,T,D){var E,I=1&r,z=2&r,B=4&r;if(P&&(E=T?P(e,N,T,D):P(e)),void 0!==E)return E;if(!j(e))return e;var R=g(e);if(R){if(E=b(e),!I)return u(e,E)}else{var F=d(e),M=F==C||"[object GeneratorFunction]"==F;if(m(e))return s(e,I);if(F==k||F==S||M&&!T){if(E=z||M?{}:h(e),!I)return z?p(e,c(E,e)):l(e,i(E,e))}else{if(!A[F])return T?e:{};E=y(e,F,I)}}D||(D=new n);var U=D.get(e);if(U)return U;D.set(e,E),_(e)?e.forEach((function(n){E.add(t(n,r,P,n,e,D))})):x(e)&&e.forEach((function(n,o){E.set(o,t(n,r,P,o,e,D))}));var V=R?void 0:(B?z?v:f:z?O:w)(e);return o(V||e,(function(n,o){V&&(n=e[o=n]),a(E,o,t(n,r,P,o,e,D))})),E}},3118:(t,e,r)=>{var n=r(3218),o=Object.create,a=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=a},8866:(t,e,r)=>{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var a=e(t);return o(t)?a:n(a,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),a=r(2333),i=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):a(t)}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},5588:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),a=r(3218),i=r(346),c=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?f:c).test(i(t))}},9221:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),a=r(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&o(t.length)&&!!i[n(t)]}},280:(t,e,r)=>{var n=r(5726),o=r(6916),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),o=r(5726),a=r(3498),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return a(t);var e=o(t),r=[];for(var c in t)("constructor"!=c||!e&&i.call(t,c))&&r.push(c);return r}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{t.exports=function(t){return function(e){return t(e)}}},4318:(t,e,r)=>{var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,i=a&&a.exports===o?n.Buffer:void 0,c=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=c?c(r):new t.constructor(r);return t.copy(n),n}},7157:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:(t,e,r)=>{var n=r(2705),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;t.exports=function(t){return a?Object(a.call(t)):{}}},7133:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r{var n=r(4865),o=r(9465);t.exports=function(t,e,r,a){var i=!r;r||(r={});for(var c=-1,s=e.length;++c{var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:(t,e,r)=>{var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),a=r(3674);t.exports=function(t){return n(t,a,o)}},6904:(t,e,r)=>{var n=r(8866),o=r(1442),a=r(1704);t.exports=function(t){return n(t,a,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[c]=r:delete t[c]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,c=i?function(t){return null==t?[]:(t=Object(t),n(i(t),(function(e){return a.call(t,e)})))}:o;t.exports=c},1442:(t,e,r)=>{var n=r(2488),o=r(5924),a=r(9551),i=r(479),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=c},4160:(t,e,r)=>{var n=r(8552),o=r(7071),a=r(3818),i=r(8525),c=r(577),s=r(4239),u=r(346),l="[object Map]",p="[object Promise]",f="[object Set]",v="[object WeakMap]",d="[object DataView]",b=u(n),y=u(o),h=u(a),g=u(i),m=u(c),x=s;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=l||a&&x(a.resolve())!=p||i&&x(new i)!=f||c&&x(new c)!=v)&&(x=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case b:return d;case y:return l;case h:return p;case g:return f;case m:return v}return e}),t.exports=x},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:(t,e,r)=>{var n=r(4318),o=r(7157),a=r(3147),i=r(419),c=r(7133);t.exports=function(t,e,r){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return a(t);case"[object Symbol]":return i(t)}}},8517:(t,e,r)=>{var n=r(3118),o=r(5924),a=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||a(t)?{}:n(o(t))}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),a=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,i=a&&a.exports===o&&n.process,c=function(){try{var t=a&&a.require&&a.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=c},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5639:(t,e,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();t.exports=a},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),a=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,5)}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5694:(t,e,r)=>{var n=r(9454),o=r(7005),a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&i.call(t,"callee")&&!c.call(t,"callee")};t.exports=s},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),a=e&&!e.nodeType&&e,i=a&&t&&!t.nodeType&&t,c=i&&i.exports===a?n.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;t.exports=s},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,r)=>{var n=r(5588),o=r(1717),a=r(1167),i=a&&a.isMap,c=i?o(i):n;t.exports=c},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2928:(t,e,r)=>{var n=r(9221),o=r(1717),a=r(1167),i=a&&a.isSet,c=i?o(i):n;t.exports=c},6719:(t,e,r)=>{var n=r(8749),o=r(1717),a=r(1167),i=a&&a.isTypedArray,c=i?o(i):n;t.exports=c},3674:(t,e,r)=>{var n=r(4636),o=r(280),a=r(8612);t.exports=function(t){return a(t)?n(t):o(t)}},1704:(t,e,r)=>{var n=r(4636),o=r(313),a=r(8612);t.exports=function(t){return a(t)?n(t,!0):o(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},3379:(t,e,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),i=[];function c(t){for(var e=-1,r=0;r{"use strict";e.Z=(t,e)=>{const r=t.__vccOpts||t;for(const[t,n]of e)r[t]=n;return r}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={id:n,loaded:!1,exports:{}};return t[n](a,a.exports,r),a.loaded=!0,a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.nc=void 0,(()=>{"use strict";const t=Vue;var e={class:"sr-only"},n={class:"bg-white dark:bg-gray-900"},o={ref:"theForm",class:"divide-y divide-gray-200 dark:divide-gray-800 divide-solid"},a={key:0,class:"bg-gray-100"},i={class:"p-3 px-4 text-xs uppercase font-bold tracking-wide flex justify-between items-center"},c={class:"flex flex-wrap p-4 space-y-1"};function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e div.hidden.md\\:flex.px-2');if(o){o.insertAdjacentElement("afterend",n);var a=(0,t.createVNode)(k,{resourceName:this._.props.resourceName});a.appContext=e._context,(0,t.render)(a,n)}}}})}))})()})(); \ No newline at end of file +(()=>{var e={4003:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(3645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,"#column-toggler~div{margin-left:.5rem}",""]);const a=o},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),a=r(7667),i=r(1327),c=r(1866);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7040),o=r(4125),a=r(2117),i=r(7518),c=r(4705);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),a=r(6e3),i=r(9916),c=r(5265);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),o=r(619),a=r(2385);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(8407),o=r(7465),a=r(3779),i=r(7599),c=r(4758),s=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=c,u.prototype.set=s,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},7412:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r{var n=r(2545),o=r(5694),a=r(1469),i=r(4144),c=r(5776),s=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),l=!r&&o(e),p=!r&&!l&&i(e),f=!r&&!l&&!p&&s(e),v=r||l||p||f,d=v?n(e.length,String):[],b=d.length;for(var h in e)!t&&!u.call(e,h)||v&&("length"==h||p&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||c(h,b))||d.push(h);return d}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(9465),o=r(7813),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4037:(e,t,r)=>{var n=r(8363),o=r(3674);e.exports=function(e,t){return e&&n(t,o(t),e)}},3886:(e,t,r)=>{var n=r(8363),o=r(1704);e.exports=function(e,t){return e&&n(t,o(t),e)}},9465:(e,t,r)=>{var n=r(8777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},5990:(e,t,r)=>{var n=r(6384),o=r(7412),a=r(4865),i=r(4037),c=r(3886),s=r(4626),u=r(278),l=r(8805),p=r(1911),f=r(8234),v=r(6904),d=r(4160),b=r(3824),h=r(9148),y=r(8517),g=r(1469),m=r(4144),x=r(6688),j=r(3218),_=r(2928),w=r(3674),O=r(1704),S="[object Arguments]",k="[object Function]",A="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[A]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[k]=C["[object WeakMap]"]=!1,e.exports=function e(t,r,T,E,N,D){var P,B=1&r,z=2&r,I=4&r;if(T&&(P=N?T(t,E,N,D):T(t)),void 0!==P)return P;if(!j(t))return t;var R=g(t);if(R){if(P=b(t),!B)return u(t,P)}else{var V=d(t),F=V==k||"[object GeneratorFunction]"==V;if(m(t))return s(t,B);if(V==A||V==S||F&&!N){if(P=z||F?{}:y(t),!B)return z?p(t,c(P,t)):l(t,i(P,t))}else{if(!C[V])return N?t:{};P=h(t,V,B)}}D||(D=new n);var M=D.get(t);if(M)return M;D.set(t,P),_(t)?t.forEach((function(n){P.add(e(n,r,T,n,t,D))})):x(t)&&t.forEach((function(n,o){P.set(o,e(n,r,T,o,t,D))}));var U=R?void 0:(I?z?v:f:z?O:w)(t);return o(U||t,(function(n,o){U&&(n=t[o=n]),a(P,o,e(n,r,T,o,t,D))})),P}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},8866:(e,t,r)=>{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),a=r(2333),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),o=r(7005);e.exports=function e(t,r,a,i,c){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,a,i,e,c))}},2492:(e,t,r)=>{var n=r(6384),o=r(7114),a=r(8351),i=r(6096),c=r(4160),s=r(1469),u=r(4144),l=r(6719),p="[object Arguments]",f="[object Array]",v="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,h,y){var g=s(e),m=s(t),x=g?f:c(e),j=m?f:c(t),_=(x=x==p?v:x)==v,w=(j=j==p?v:j)==v,O=x==j;if(O&&u(e)){if(!u(t))return!1;g=!0,_=!1}if(O&&!_)return y||(y=new n),g||l(e)?o(e,t,r,b,h,y):a(e,t,x,r,b,h,y);if(!(1&r)){var S=_&&d.call(e,"__wrapped__"),k=w&&d.call(t,"__wrapped__");if(S||k){var A=S?e.value():e,C=k?t.value():t;return y||(y=new n),h(A,C,r,b,y)}}return!!O&&(y||(y=new n),i(e,t,r,b,h,y))}},5588:(e,t,r)=>{var n=r(4160),o=r(7005);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),a=r(3218),i=r(346),c=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:c).test(i(e))}},9221:(e,t,r)=>{var n=r(4160),o=r(7005);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),a=r(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},280:(e,t,r)=>{var n=r(5726),o=r(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},313:(e,t,r)=>{var n=r(3218),o=r(5726),a=r(3498),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),r=[];for(var c in e)("constructor"!=c||!t&&i.call(e,c))&&r.push(c);return r}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4318:(e,t,r)=>{var n=r(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4626:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,c=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=c?c(r):new e.constructor(r);return e.copy(n),n}},7157:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},419:(e,t,r)=>{var n=r(2705),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},7133:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{var n=r(4865),o=r(9465);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var c=-1,s=t.length;++c{var n=r(8363),o=r(9551);e.exports=function(e,t){return n(e,o(e),t)}},1911:(e,t,r)=>{var n=r(8363),o=r(1442);e.exports=function(e,t){return n(e,o(e),t)}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:(e,t,r)=>{var n=r(8668),o=r(2908),a=r(4757);e.exports=function(e,t,r,i,c,s){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var f=s.get(e),v=s.get(t);if(f&&v)return f==t&&v==e;var d=-1,b=!0,h=2&r?new n:void 0;for(s.set(e,t),s.set(t,e);++d{var n=r(2705),o=r(1149),a=r(7813),i=r(7114),c=r(8776),s=r(1814),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var v=c;case"[object Set]":var d=1&n;if(v||(v=s),e.size!=t.size&&!d)return!1;var b=f.get(e);if(b)return b==t;n|=2,f.set(e,t);var h=i(v(e),v(t),n,u,p,f);return f.delete(e),h;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,c){var s=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!s)return!1;for(var p=l;p--;){var f=u[p];if(!(s?f in t:o.call(t,f)))return!1}var v=c.get(e),d=c.get(t);if(v&&d)return v==t&&d==e;var b=!0;c.set(e,t),c.set(t,e);for(var h=s;++p{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),a=r(3674);e.exports=function(e){return n(e,a,o)}},6904:(e,t,r)=>{var n=r(8866),o=r(1442),a=r(1704);e.exports=function(e){return n(e,a,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},5924:(e,t,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[c]=r:delete e[c]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,c=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=c},1442:(e,t,r)=>{var n=r(2488),o=r(5924),a=r(9551),i=r(479),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=o(e);return t}:i;e.exports=c},4160:(e,t,r)=>{var n=r(8552),o=r(7071),a=r(3818),i=r(8525),c=r(577),s=r(4239),u=r(346),l="[object Map]",p="[object Promise]",f="[object Set]",v="[object WeakMap]",d="[object DataView]",b=u(n),h=u(o),y=u(a),g=u(i),m=u(c),x=s;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=l||a&&x(a.resolve())!=p||i&&x(new i)!=f||c&&x(new c)!=v)&&(x=function(e){var t=s(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case b:return d;case h:return l;case y:return p;case g:return f;case m:return v}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},9148:(e,t,r)=>{var n=r(4318),o=r(7157),a=r(3147),i=r(419),c=r(7133);e.exports=function(e,t,r){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(e,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},8517:(e,t,r)=>{var n=r(3118),o=r(5924),a=r(5726);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),a=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,c=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=c},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),a=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:(e,t,r)=>{var n=r(5990);e.exports=function(e){return n(e,5)}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!c.call(e,"callee")};e.exports=s},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,c=i&&i.exports===a?n.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;e.exports=s},8446:(e,t,r)=>{var n=r(939);e.exports=function(e,t){return n(e,t)}},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,r)=>{var n=r(5588),o=r(1717),a=r(1167),i=a&&a.isMap,c=i?o(i):n;e.exports=c},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2928:(e,t,r)=>{var n=r(9221),o=r(1717),a=r(1167),i=a&&a.isSet,c=i?o(i):n;e.exports=c},6719:(e,t,r)=>{var n=r(8749),o=r(1717),a=r(1167),i=a&&a.isTypedArray,c=i?o(i):n;e.exports=c},3674:(e,t,r)=>{var n=r(4636),o=r(280),a=r(8612);e.exports=function(e){return a(e)?n(e):o(e)}},1704:(e,t,r)=>{var n=r(4636),o=r(313),a=r(8612);e.exports=function(e){return a(e)?n(e,!0):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},3379:(e,t,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),i=[];function c(e){for(var t=-1,r=0;r{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n](a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0,(()=>{"use strict";const e=Vue;var t={class:"sr-only"},n={class:"bg-white dark:bg-gray-900"},o={ref:"theForm",class:"divide-y divide-gray-200 dark:divide-gray-800 divide-solid"},a={key:0,class:"bg-gray-100"},i={class:"p-3 px-4 text-xs uppercase font-bold tracking-wide flex justify-between items-center"},c={class:"flex flex-wrap p-4 space-y-1"};var s=r(8446),u=r.n(s),l=r(361),p=r.n(l);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t0&&u.tableToolbar.resources.length>0?((0,e.openBlock)(),(0,e.createBlock)(y,{key:0,"handle-internal-clicks":!1,class:(0,e.normalizeClass)(["flex h-9 hover:bg-gray-100 dark:hover:bg-gray-700 rounded",{"bg-primary-500 hover:bg-primary-600 border-primary-500":f.isDirty,"dark:bg-primary-500 dark:hover:bg-primary-600 dark:border-primary-500":f.isDirty}])},{menu:(0,e.withCtx)((function(){return[(0,e.createVNode)(h,{width:"260"},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",n,[(0,e.createElementVNode)("div",o,[f.isDirty?((0,e.openBlock)(),(0,e.createElementBlock)("div",a,[(0,e.createElementVNode)("button",{class:"py-2 w-full block text-xs uppercase tracking-wide text-center text-gray-500 dark:bg-gray-800 dark:hover:bg-gray-700 font-bold focus:outline-none",onClick:s[0]||(s[0]=function(){return f.handleRestoreDefaultClick&&f.handleRestoreDefaultClick.apply(f,arguments)})},(0,e.toDisplayString)(r.__("Restore Default")),1)])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("h3",i,(0,e.toDisplayString)(r.__("Toggle Columns")),1),(0,e.createElementVNode)("div",c,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(p.state,(function(t,r){var n=t.label,o=t.visible;return(0,e.openBlock)(),(0,e.createBlock)(b,{class:"w-full leading-none whitespace-nowrap mr-4",checked:o,onInput:function(e){return f.updateCheckedState(r,e.target.checked)}},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n),1)]})),_:2},1032,["checked","onInput"])})),256))])],512)])]})),_:1})]})),default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("span",t,(0,e.toDisplayString)(r.__("Columns Dropdown")),1),(0,e.createVNode)(d,{class:(0,e.normalizeClass)(["toolbar-button px-2",{"text-white hover:text-white dark:text-gray-800 dark:hover:text-gray-800":f.isDirty}])},{default:(0,e.withCtx)((function(){return[(0,e.createVNode)(v,{type:"adjustments"}),f.isDirty?((0,e.openBlock)(),(0,e.createElementBlock)("span",{key:0,class:(0,e.normalizeClass)([{"text-white dark:text-gray-800":f.isDirty},"ml-2 font-bold"])},(0,e.toDisplayString)(f.dirtyCount),3)):(0,e.createCommentVNode)("",!0)]})),_:1},8,["class"])]})),_:1},8,["class"])):(0,e.createCommentVNode)("",!0)]})),_:1})}]]);try{m(Nova.pages["Nova.Lens"].components.ResourceLens)}catch(e){console.error("ColumnToggler: Unable to register mixin for Lens view")}Nova.booting((function(t){var r=t.component;t.component=function(e,t){return"ResourceIndex"===e&&m(t),r.call(this,e,t)},t.mixin({mounted:function(){var r;if(null!==(r=this._.type)&&void 0!==r&&null!==(r=r.__file)&&void 0!==r&&r.endsWith("ResourceTableToolbar.vue")){var n=document.createElement("div");n.id="column-toggler";var o=this._.vnode.el.querySelector(this.isLensView?'[dusk$="-lens-component"] div.h-9.ml-auto.flex.items-center.pr-2.md\\:pr-3 > div.hidden.md\\:flex.px-2':'[dusk$="-index-component"] div.h-9.ml-auto.flex.items-center.pr-2.md\\:pr-3 > div.hidden.md\\:flex.px-2');if(o){o.insertAdjacentElement("afterend",n);var a=(0,e.createVNode)(S,{tableToolbar:this});a.appContext=t._context,(0,e.render)(a,n)}}}})}))})()})(); \ No newline at end of file diff --git a/resources/js/components/ColumnToggler.js b/resources/js/components/ColumnToggler.js index e2fd046..1b385f8 100644 --- a/resources/js/components/ColumnToggler.js +++ b/resources/js/components/ColumnToggler.js @@ -1,9 +1,16 @@ +import isEqual from 'lodash/isEqual' +import cloneDeep from 'lodash/cloneDeep' + export function toList(state) { return Object.keys(state).filter(key => state[ key ].visible) } export function encode(state) { - return btoa(unescape(encodeURIComponent(JSON.stringify(state)))); + return btoa(unescape(encodeURIComponent(JSON.stringify(state)))) +} + +export function decode(state) { + return state ? JSON.parse(decodeURIComponent(escape(atob(state)))) : null } export function getStateFromLocalStorage(cacheKey) { @@ -26,20 +33,20 @@ export function generateCacheKey(cacheKey) { return `column-toggler/${ cacheKey }/${ Nova.$router.page.component }` } -export function decode(state) { - return state ? JSON.parse(decodeURIComponent(escape(atob(state)))) : null; -} - export function registerMixin(component) { + if (component.computed.resourceRequestQueryString === undefined) { + component = component.mixins.find(({ computed }) => typeof computed.resourceRequestQueryString === 'function') + } + const originalResourceRequestQueryString = component.computed.resourceRequestQueryString component.mixins.push({ - mounted() { - Nova.$on(`column-toggler:state-changed:${ this.resourceName }`, this.onColumTogglerStateChange) + created() { + Nova.$on(this.columnTogglerEventKey, this.columnTogglerOnStateChange) }, unmounted() { - Nova.$off(`column-toggler:state-changed:${ this.resourceName }`, this.onColumTogglerStateChange) + Nova.$off(this.columnTogglerEventKey, this.columnTogglerOnStateChange) }, data() { return { @@ -47,14 +54,29 @@ export function registerMixin(component) { } }, methods: { - onColumTogglerStateChange(state) { - saveStateToLocalStorage(state, this.resourceName) - this.columnTogglerState = state - this.getResources() + columnTogglerOnStateChange(state) { + + const currentState = this.columnTogglerState + + if (isEqual(state, currentState) === false) { + + saveStateToLocalStorage(state, this.resourceName) + + this.columnTogglerState = cloneDeep(state) + + if (currentState !== true) { + this.getResources() + } + + } + }, }, computed: { - encodedColumnTogglerColumns() { + columnTogglerEventKey() { + return `column-toggler:state-changed:${ [ this.resourceName, this.lens ].filter(Boolean).join('/') }` + }, + columnTogglerEncodedColumns() { if (typeof this.columnTogglerState === 'boolean') { return this.columnTogglerState @@ -75,7 +97,7 @@ export function registerMixin(component) { component.computed.resourceRequestQueryString = function () { return { ...originalResourceRequestQueryString.call(this), - columnToggler: this.encodedColumnTogglerColumns, + columnToggler: this.columnTogglerEncodedColumns, } } diff --git a/resources/js/components/ColumnToggler.vue b/resources/js/components/ColumnToggler.vue index f8b6231..0e17cb3 100644 --- a/resources/js/components/ColumnToggler.vue +++ b/resources/js/components/ColumnToggler.vue @@ -1,78 +1,83 @@ @@ -83,38 +88,13 @@ export default { name: 'ColumnToggler', - props: [ 'resourceName' ], + props: [ 'tableToolbar' ], data() { return { - extraParams: {}, state: {}, originalState: {}, } }, - mounted() { - - Nova.$on('custom-relationship-field:extra-params', this.appendToRequestCallback) - Nova.$emit('custom-relationship-field:request-extra-params') - - const queryString = new URLSearchParams(this.extraParams) - - Nova.request().get(`/nova-vendor/column-toggler/fields/${ this.resourceName }?${ queryString }`).then(({ data }) => { - - let localStorageState = getStateFromLocalStorage(this.resourceName) - - if (localStorageState && this.isDifferentState(data.attributes, localStorageState)) { - localStorageState = data.attributes - } - - this.originalState = cloneDeep(data.attributes) - this.state = localStorageState ?? data.attributes - - }) - - }, - unmounted() { - Nova.$off('custom-relationship-field:extra-params', this.appendToRequestCallback) - }, computed: { dirtyCount() { @@ -138,10 +118,28 @@ }, }, watch: { + 'tableToolbar.resources'(resources) { + + const attributes = resources[ 0 ]?.columnToggler + + if (attributes) { + + let localStorageState = getStateFromLocalStorage(this.tableToolbar.resourceName) + + if (localStorageState && this.isDifferentState(attributes, localStorageState)) { + localStorageState = attributes + } + + this.originalState = cloneDeep(attributes) + this.state = localStorageState ?? attributes + + } + + }, state: { deep: true, handler(state) { - Nova.$emit(`column-toggler:state-changed:${ this.resourceName }`, state) + Nova.$emit(`column-toggler:state-changed:${ [ this.tableToolbar.resourceName, this.tableToolbar.lens ].filter(Boolean).join('/') }`, state) }, }, }, @@ -164,9 +162,6 @@ updateCheckedState(attribute, checked) { this.state[ attribute ].visible = checked }, - appendToRequestCallback(params) { - this.extraParams = { ...this.extraParams, ...params } - }, }, } diff --git a/resources/js/tool.js b/resources/js/tool.js index d935dd5..608f1da 100644 --- a/resources/js/tool.js +++ b/resources/js/tool.js @@ -2,6 +2,16 @@ import ColumnToggler from './components/ColumnToggler.vue' import { registerMixin } from './components/ColumnToggler' import { createVNode, render } from 'vue' +try { + + registerMixin(Nova.pages[ 'Nova.Lens' ].components[ 'ResourceLens' ]) + +} catch { + + console.error('ColumnToggler: Unable to register mixin for Lens view') + +} + Nova.booting(app => { const componentFn = app.component @@ -22,17 +32,18 @@ Nova.booting(app => { if (this._.type?.__file?.endsWith('ResourceTableToolbar.vue')) { const toolbarTarget = '[dusk$="-index-component"] div.h-9.ml-auto.flex.items-center.pr-2.md\\:pr-3 > div.hidden.md\\:flex.px-2' + const lensToolbarTarget = '[dusk$="-lens-component"] div.h-9.ml-auto.flex.items-center.pr-2.md\\:pr-3 > div.hidden.md\\:flex.px-2' const container = document.createElement('div') container.id = 'column-toggler' - const element = this._.vnode.el.querySelector(toolbarTarget) + const element = this._.vnode.el.querySelector(this.isLensView ? lensToolbarTarget : toolbarTarget) if (element) { element.insertAdjacentElement('afterend', container) - const vnode = createVNode(ColumnToggler, { resourceName: this._.props.resourceName }) + const vnode = createVNode(ColumnToggler, { tableToolbar: this }) vnode.appContext = app._context render(vnode, container) diff --git a/routes/api.php b/routes/api.php deleted file mode 100644 index cdff3eb..0000000 --- a/routes/api.php +++ /dev/null @@ -1,8 +0,0 @@ -name('nova.column-toggler.fields'); diff --git a/src/ColumnTogglerServiceProvider.php b/src/ColumnTogglerServiceProvider.php index fdd587d..516ebb8 100644 --- a/src/ColumnTogglerServiceProvider.php +++ b/src/ColumnTogglerServiceProvider.php @@ -4,7 +4,6 @@ namespace DigitalCreative\ColumnToggler; -use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; use Laravel\Nova\Events\ServingNova; use Laravel\Nova\Fields\Field; @@ -14,10 +13,6 @@ class ColumnTogglerServiceProvider extends ServiceProvider { public function boot(): void { - $this->app->booted(function (): void { - $this->routes(); - }); - Field::macro('hideByDefault', function () { return $this->withMeta([ 'columnToggleVisible' => false ]); }); @@ -26,15 +21,4 @@ public function boot(): void Nova::script('column-toggler', __DIR__ . '/../dist/js/tool.js'); }); } - - protected function routes(): void - { - if ($this->app->routesAreCached()) { - return; - } - - Route::middleware([ 'nova' ]) - ->prefix('nova-vendor/column-toggler') - ->group(__DIR__ . '/../routes/api.php'); - } } diff --git a/src/ColumnTogglerTrait.php b/src/ColumnTogglerTrait.php index 41b45d1..01efc12 100644 --- a/src/ColumnTogglerTrait.php +++ b/src/ColumnTogglerTrait.php @@ -14,9 +14,30 @@ */ trait ColumnTogglerTrait { + public function serializeForIndex(NovaRequest $request, $fields = null): array + { + $indexFields = $fields ?? parent::indexFields($request); + + $columns = $indexFields->mapWithKeys(fn (Field $field) => [ + $field->attribute => [ + 'label' => $field->name, + 'visible' => data_get($field->meta(), 'columnToggleVisible', true), + ], + ]); + + return array_merge(parent::serializeForIndex($request, $this->filterFields($request, $indexFields)), [ + 'columnToggler' => $columns, + ]); + } + public function indexFields(NovaRequest $request): FieldCollection { - return parent::indexFields($request)->when( + return $this->filterFields($request, parent::indexFields($request)); + } + + private function filterFields(NovaRequest $request, FieldCollection $fields): FieldCollection + { + return $fields->when( value: $request->has('columnToggler') && !$request->routeIs('nova.column-toggler.fields'), callback: function (FieldCollection $fields) use ($request) { diff --git a/src/Http/Controllers/FieldsController.php b/src/Http/Controllers/FieldsController.php deleted file mode 100644 index e985cd7..0000000 --- a/src/Http/Controllers/FieldsController.php +++ /dev/null @@ -1,28 +0,0 @@ -authorizedResourceForRequest($request); - - return response()->json([ - 'status' => 200, - 'attributes' => $request->newResource()->indexFields($request)->mapWithKeys(fn (Field $field) => [ - $field->attribute => [ - 'label' => $field->name, - 'visible' => data_get($field->meta(), 'columnToggleVisible', true), - ], - ]), - ]); - } -}